From 798a3421c614733b6378c9ed5c0aff40cc134579 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 08:28:55 +0000 Subject: [PATCH 01/45] feat(api): OpenAPI spec update via Stainless API (#973) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index b45dbe1d84..4a8cb08780 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-49d54760f87326f9200c777f867e4ea579c92a43f481207ae252db9748c9b07b.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9d1a5f2de8e753867ab88ca1b88d1d1cdc944a7834fb81506a7ace10ed151624.yml From b6da688099f86e9e254456be9e0ba7e99f18d1f7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 08:54:37 +0000 Subject: [PATCH 02/45] feat(api): OpenAPI spec update via Stainless API (#975) --- .stats.yml | 2 +- api.md | 2 +- src/resources/radar/as112/as112.ts | 2 +- src/resources/radar/as112/summary.ts | 12 +++++------ src/resources/radar/as112/top.ts | 8 ++++---- src/resources/radar/attacks/layer3/summary.ts | 12 +++++------ .../radar/attacks/layer3/timeseries-groups.ts | 2 +- .../radar/attacks/layer3/top/locations.ts | 4 ++-- src/resources/radar/attacks/layer3/top/top.ts | 12 ++++++++--- src/resources/radar/attacks/layer7/layer7.ts | 2 +- src/resources/radar/attacks/layer7/summary.ts | 12 +++++------ .../radar/attacks/layer7/timeseries-groups.ts | 2 +- .../radar/attacks/layer7/top/ases.ts | 2 +- .../radar/attacks/layer7/top/locations.ts | 4 ++-- src/resources/radar/attacks/layer7/top/top.ts | 12 ++++++++--- src/resources/radar/bgp/bgp.ts | 6 ++++-- src/resources/radar/bgp/top/ases.ts | 4 +++- src/resources/radar/connection-tampering.ts | 4 ++-- src/resources/radar/datasets.ts | 20 +------------------ src/resources/radar/dns/top.ts | 4 ++-- src/resources/radar/email/routing/summary.ts | 12 +++++------ src/resources/radar/email/security/summary.ts | 18 ++++++++--------- .../email/security/top/tlds/malicious.ts | 2 +- .../radar/email/security/top/tlds/spam.ts | 2 +- .../radar/email/security/top/tlds/spoof.ts | 2 +- .../radar/email/security/top/tlds/tlds.ts | 2 +- src/resources/radar/http/ases/ases.ts | 2 +- src/resources/radar/http/ases/bot-class.ts | 2 +- .../radar/http/ases/browser-family.ts | 2 +- src/resources/radar/http/ases/device-type.ts | 2 +- src/resources/radar/http/ases/http-method.ts | 2 +- .../radar/http/ases/http-protocol.ts | 2 +- src/resources/radar/http/ases/ip-version.ts | 2 +- src/resources/radar/http/ases/os.ts | 2 +- src/resources/radar/http/ases/tls-version.ts | 2 +- src/resources/radar/http/http.ts | 2 +- .../radar/http/locations/bot-class.ts | 2 +- .../radar/http/locations/browser-family.ts | 2 +- .../radar/http/locations/device-type.ts | 2 +- .../radar/http/locations/http-method.ts | 2 +- .../radar/http/locations/http-protocol.ts | 2 +- .../radar/http/locations/ip-version.ts | 2 +- .../radar/http/locations/locations.ts | 2 +- src/resources/radar/http/locations/os.ts | 2 +- .../radar/http/locations/tls-version.ts | 2 +- src/resources/radar/http/summary.ts | 16 +++++++-------- src/resources/radar/http/top.ts | 4 ++-- src/resources/radar/index.ts | 1 - src/resources/radar/netflows/netflows.ts | 2 +- src/resources/radar/quality/iqi.ts | 2 +- src/resources/radar/quality/speed/speed.ts | 2 +- src/resources/radar/quality/speed/top.ts | 4 ++-- src/resources/radar/radar.ts | 1 - src/resources/radar/ranking/domain.ts | 2 +- src/resources/radar/ranking/ranking.ts | 2 +- src/resources/radar/verified-bots/top.ts | 4 ++-- .../radar/attacks/layer3/top/top.test.ts | 1 + .../radar/attacks/layer7/top/top.test.ts | 1 + tests/api-resources/radar/bgp/bgp.test.ts | 6 +++--- .../api-resources/radar/bgp/top/ases.test.ts | 6 +++--- tests/api-resources/radar/datasets.test.ts | 11 ---------- 61 files changed, 128 insertions(+), 141 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4a8cb08780..76fac26c15 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9d1a5f2de8e753867ab88ca1b88d1d1cdc944a7834fb81506a7ace10ed151624.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dfb8d2c58c029167d6eb04131ff40df5631570c1bc49279bc148b2331fa68dee.yml diff --git a/api.md b/api.md index 424700af10..56966b0abc 100644 --- a/api.md +++ b/api.md @@ -5684,7 +5684,7 @@ Methods: - client.radar.datasets.list({ ...params }) -> DatasetListResponse - client.radar.datasets.download({ ...params }) -> DatasetDownloadResponse -- client.radar.datasets.get(alias, { ...params }) -> string +- client.radar.datasets.get(alias) -> string ## DNS diff --git a/src/resources/radar/as112/as112.ts b/src/resources/radar/as112/as112.ts index c9924054ed..0ff911b752 100644 --- a/src/resources/radar/as112/as112.ts +++ b/src/resources/radar/as112/as112.ts @@ -82,7 +82,7 @@ export namespace AS112TimeseriesResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/as112/summary.ts b/src/resources/radar/as112/summary.ts index 3200fdc047..71dbedc423 100644 --- a/src/resources/radar/as112/summary.ts +++ b/src/resources/radar/as112/summary.ts @@ -177,7 +177,7 @@ export namespace SummaryDNSSECResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -239,7 +239,7 @@ export namespace SummaryEdnsResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -301,7 +301,7 @@ export namespace SummaryIPVersionResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -363,7 +363,7 @@ export namespace SummaryProtocolResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -425,7 +425,7 @@ export namespace SummaryQueryTypeResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -493,7 +493,7 @@ export namespace SummaryResponseCodesResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/as112/top.ts b/src/resources/radar/as112/top.ts index 09b77befed..b0d431ba7f 100644 --- a/src/resources/radar/as112/top.ts +++ b/src/resources/radar/as112/top.ts @@ -146,7 +146,7 @@ export namespace TopDNSSECResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -208,7 +208,7 @@ export namespace TopEdnsResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -270,7 +270,7 @@ export namespace TopIPVersionResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -332,7 +332,7 @@ export namespace TopLocationsResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/attacks/layer3/summary.ts b/src/resources/radar/attacks/layer3/summary.ts index b4ba6d2853..cf4421cdc9 100644 --- a/src/resources/radar/attacks/layer3/summary.ts +++ b/src/resources/radar/attacks/layer3/summary.ts @@ -178,7 +178,7 @@ export namespace SummaryBitrateResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -246,7 +246,7 @@ export namespace SummaryDurationResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -312,7 +312,7 @@ export namespace SummaryGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -378,7 +378,7 @@ export namespace SummaryIPVersionResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -440,7 +440,7 @@ export namespace SummaryProtocolResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -506,7 +506,7 @@ export namespace SummaryVectorResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/attacks/layer3/timeseries-groups.ts b/src/resources/radar/attacks/layer3/timeseries-groups.ts index 707223acad..dfc0f95444 100644 --- a/src/resources/radar/attacks/layer3/timeseries-groups.ts +++ b/src/resources/radar/attacks/layer3/timeseries-groups.ts @@ -281,7 +281,7 @@ export namespace TimeseriesGroupGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/attacks/layer3/top/locations.ts b/src/resources/radar/attacks/layer3/top/locations.ts index b02d30c2d0..e8c6711c4f 100644 --- a/src/resources/radar/attacks/layer3/top/locations.ts +++ b/src/resources/radar/attacks/layer3/top/locations.ts @@ -95,7 +95,7 @@ export namespace LocationOriginResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -159,7 +159,7 @@ export namespace LocationTargetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/attacks/layer3/top/top.ts b/src/resources/radar/attacks/layer3/top/top.ts index 7bfaaa5305..7e1563cafa 100644 --- a/src/resources/radar/attacks/layer3/top/top.ts +++ b/src/resources/radar/attacks/layer3/top/top.ts @@ -113,7 +113,7 @@ export namespace TopAttacksResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -175,7 +175,7 @@ export namespace TopIndustryResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -229,7 +229,7 @@ export namespace TopVerticalResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -322,6 +322,12 @@ export interface TopAttacksParams { */ name?: Array; + /** + * Normalization method applied. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization?: 'PERCENTAGE' | 'MIN_MAX'; + /** * Array of L3/4 attack types. */ diff --git a/src/resources/radar/attacks/layer7/layer7.ts b/src/resources/radar/attacks/layer7/layer7.ts index 1ff5784c3e..ed9de5ea34 100644 --- a/src/resources/radar/attacks/layer7/layer7.ts +++ b/src/resources/radar/attacks/layer7/layer7.ts @@ -83,7 +83,7 @@ export namespace Layer7TimeseriesResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/attacks/layer7/summary.ts b/src/resources/radar/attacks/layer7/summary.ts index fe7b61d10b..cf6fb89b14 100644 --- a/src/resources/radar/attacks/layer7/summary.ts +++ b/src/resources/radar/attacks/layer7/summary.ts @@ -180,7 +180,7 @@ export namespace SummaryGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -252,7 +252,7 @@ export namespace SummaryHTTPMethodResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -314,7 +314,7 @@ export namespace SummaryHTTPVersionResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -378,7 +378,7 @@ export namespace SummaryIPVersionResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -440,7 +440,7 @@ export namespace SummaryManagedRulesResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -502,7 +502,7 @@ export namespace SummaryMitigationProductResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/attacks/layer7/timeseries-groups.ts b/src/resources/radar/attacks/layer7/timeseries-groups.ts index 7a8945775b..5ab20ad863 100644 --- a/src/resources/radar/attacks/layer7/timeseries-groups.ts +++ b/src/resources/radar/attacks/layer7/timeseries-groups.ts @@ -235,7 +235,7 @@ export namespace TimeseriesGroupGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/attacks/layer7/top/ases.ts b/src/resources/radar/attacks/layer7/top/ases.ts index 27e9f59e36..2cfbf6e909 100644 --- a/src/resources/radar/attacks/layer7/top/ases.ts +++ b/src/resources/radar/attacks/layer7/top/ases.ts @@ -70,7 +70,7 @@ export namespace AseOriginResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/attacks/layer7/top/locations.ts b/src/resources/radar/attacks/layer7/top/locations.ts index 271986ca15..c23416ab6b 100644 --- a/src/resources/radar/attacks/layer7/top/locations.ts +++ b/src/resources/radar/attacks/layer7/top/locations.ts @@ -99,7 +99,7 @@ export namespace LocationOriginResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -163,7 +163,7 @@ export namespace LocationTargetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/attacks/layer7/top/top.ts b/src/resources/radar/attacks/layer7/top/top.ts index c3d6357ebe..a0310bd9d7 100644 --- a/src/resources/radar/attacks/layer7/top/top.ts +++ b/src/resources/radar/attacks/layer7/top/top.ts @@ -116,7 +116,7 @@ export namespace TopAttacksResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -182,7 +182,7 @@ export namespace TopIndustryResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -236,7 +236,7 @@ export namespace TopVerticalResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -336,6 +336,12 @@ export interface TopAttacksParams { * Array of names that will be used to name the series in responses. */ name?: Array; + + /** + * Normalization method applied. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization?: 'PERCENTAGE' | 'MIN_MAX'; } export interface TopIndustryParams { diff --git a/src/resources/radar/bgp/bgp.ts b/src/resources/radar/bgp/bgp.ts index 98ea78c8ed..81bc156587 100644 --- a/src/resources/radar/bgp/bgp.ts +++ b/src/resources/radar/bgp/bgp.ts @@ -86,7 +86,7 @@ export namespace BGPTimeseriesResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -175,10 +175,12 @@ export interface BGPTimeseriesParams { export namespace BGPTimeseriesParams { export interface Prefix { - location: string; + in: string; name: string; + test: number; + /** * Network prefix, IPv4 or IPv6. */ diff --git a/src/resources/radar/bgp/top/ases.ts b/src/resources/radar/bgp/top/ases.ts index e6c7311d4b..2285f1bc11 100644 --- a/src/resources/radar/bgp/top/ases.ts +++ b/src/resources/radar/bgp/top/ases.ts @@ -181,10 +181,12 @@ export interface AseGetParams { export namespace AseGetParams { export interface Prefix { - location: string; + in: string; name: string; + test: number; + /** * Network prefix, IPv4 or IPv6. */ diff --git a/src/resources/radar/connection-tampering.ts b/src/resources/radar/connection-tampering.ts index 34b4726e4a..a42d4f6f2c 100644 --- a/src/resources/radar/connection-tampering.ts +++ b/src/resources/radar/connection-tampering.ts @@ -94,7 +94,7 @@ export namespace ConnectionTamperingSummaryResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -182,7 +182,7 @@ export namespace ConnectionTamperingTimeseriesGroupsResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/datasets.ts b/src/resources/radar/datasets.ts index 2e0c939c22..6d40cc6182 100644 --- a/src/resources/radar/datasets.ts +++ b/src/resources/radar/datasets.ts @@ -47,18 +47,8 @@ export class Datasets extends APIResource { * by alias the latest dataset is returned, optionally filtered by the latest * available at a given date. */ - get(alias: string, query?: DatasetGetParams, options?: Core.RequestOptions): Core.APIPromise; - get(alias: string, options?: Core.RequestOptions): Core.APIPromise; - get( - alias: string, - query: DatasetGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get(alias, {}, query); - } + get(alias: string, options?: Core.RequestOptions): Core.APIPromise { return this._client.get(`/radar/datasets/${alias}`, { - query, ...options, headers: { Accept: 'text/csv', ...options?.headers }, }); @@ -131,18 +121,10 @@ export interface DatasetDownloadParams { format?: 'JSON' | 'CSV'; } -export interface DatasetGetParams { - /** - * Filter dataset alias by date - */ - date?: string | null; -} - export namespace Datasets { export import DatasetListResponse = DatasetsAPI.DatasetListResponse; export import DatasetDownloadResponse = DatasetsAPI.DatasetDownloadResponse; export import DatasetGetResponse = DatasetsAPI.DatasetGetResponse; export import DatasetListParams = DatasetsAPI.DatasetListParams; export import DatasetDownloadParams = DatasetsAPI.DatasetDownloadParams; - export import DatasetGetParams = DatasetsAPI.DatasetGetParams; } diff --git a/src/resources/radar/dns/top.ts b/src/resources/radar/dns/top.ts index a8d1d2d93a..6127424a12 100644 --- a/src/resources/radar/dns/top.ts +++ b/src/resources/radar/dns/top.ts @@ -69,7 +69,7 @@ export namespace TopAsesResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -129,7 +129,7 @@ export namespace TopLocationsResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/email/routing/summary.ts b/src/resources/radar/email/routing/summary.ts index 047adbc1e0..2017791d6f 100644 --- a/src/resources/radar/email/routing/summary.ts +++ b/src/resources/radar/email/routing/summary.ts @@ -172,7 +172,7 @@ export namespace SummaryARCResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -228,7 +228,7 @@ export namespace SummaryDKIMResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -284,7 +284,7 @@ export namespace SummaryDMARCResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -340,7 +340,7 @@ export namespace SummaryEncryptedResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -402,7 +402,7 @@ export namespace SummaryIPVersionResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -464,7 +464,7 @@ export namespace SummarySPFResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/email/security/summary.ts b/src/resources/radar/email/security/summary.ts index e813339ff5..9ab62a600a 100644 --- a/src/resources/radar/email/security/summary.ts +++ b/src/resources/radar/email/security/summary.ts @@ -234,7 +234,7 @@ export namespace SummaryARCResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -290,7 +290,7 @@ export namespace SummaryDKIMResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -346,7 +346,7 @@ export namespace SummaryDMARCResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -402,7 +402,7 @@ export namespace SummaryMaliciousResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -464,7 +464,7 @@ export namespace SummarySpamResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -526,7 +526,7 @@ export namespace SummarySPFResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -582,7 +582,7 @@ export namespace SummarySpoofResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -644,7 +644,7 @@ export namespace SummaryThreatCategoryResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -710,7 +710,7 @@ export namespace SummaryTLSVersionResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/email/security/top/tlds/malicious.ts b/src/resources/radar/email/security/top/tlds/malicious.ts index 735078f2f1..c5ba33d3f4 100644 --- a/src/resources/radar/email/security/top/tlds/malicious.ts +++ b/src/resources/radar/email/security/top/tlds/malicious.ts @@ -78,7 +78,7 @@ export namespace MaliciousGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/email/security/top/tlds/spam.ts b/src/resources/radar/email/security/top/tlds/spam.ts index ab7d5801af..b5a3c61434 100644 --- a/src/resources/radar/email/security/top/tlds/spam.ts +++ b/src/resources/radar/email/security/top/tlds/spam.ts @@ -75,7 +75,7 @@ export namespace SpamGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/email/security/top/tlds/spoof.ts b/src/resources/radar/email/security/top/tlds/spoof.ts index 8fc6a987d4..2ad6e4d928 100644 --- a/src/resources/radar/email/security/top/tlds/spoof.ts +++ b/src/resources/radar/email/security/top/tlds/spoof.ts @@ -75,7 +75,7 @@ export namespace SpoofGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/email/security/top/tlds/tlds.ts b/src/resources/radar/email/security/top/tlds/tlds.ts index 1407b10765..c2ed7dcbc3 100644 --- a/src/resources/radar/email/security/top/tlds/tlds.ts +++ b/src/resources/radar/email/security/top/tlds/tlds.ts @@ -77,7 +77,7 @@ export namespace TldGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/ases/ases.ts b/src/resources/radar/http/ases/ases.ts index e54b1e36e7..483951dfe0 100644 --- a/src/resources/radar/http/ases/ases.ts +++ b/src/resources/radar/http/ases/ases.ts @@ -86,7 +86,7 @@ export namespace AseGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/ases/bot-class.ts b/src/resources/radar/http/ases/bot-class.ts index e49673b002..7ce4b8441a 100644 --- a/src/resources/radar/http/ases/bot-class.ts +++ b/src/resources/radar/http/ases/bot-class.ts @@ -80,7 +80,7 @@ export namespace BotClassGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/ases/browser-family.ts b/src/resources/radar/http/ases/browser-family.ts index 40e14ef5fc..d57a2c8dde 100644 --- a/src/resources/radar/http/ases/browser-family.ts +++ b/src/resources/radar/http/ases/browser-family.ts @@ -78,7 +78,7 @@ export namespace BrowserFamilyGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/ases/device-type.ts b/src/resources/radar/http/ases/device-type.ts index 1357e1af21..b9049951d2 100644 --- a/src/resources/radar/http/ases/device-type.ts +++ b/src/resources/radar/http/ases/device-type.ts @@ -78,7 +78,7 @@ export namespace DeviceTypeGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/ases/http-method.ts b/src/resources/radar/http/ases/http-method.ts index c1acb3ed59..e42dc7af61 100644 --- a/src/resources/radar/http/ases/http-method.ts +++ b/src/resources/radar/http/ases/http-method.ts @@ -78,7 +78,7 @@ export namespace HTTPMethodGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/ases/http-protocol.ts b/src/resources/radar/http/ases/http-protocol.ts index 42e05e360b..e9521c7fc3 100644 --- a/src/resources/radar/http/ases/http-protocol.ts +++ b/src/resources/radar/http/ases/http-protocol.ts @@ -78,7 +78,7 @@ export namespace HTTPProtocolGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/ases/ip-version.ts b/src/resources/radar/http/ases/ip-version.ts index dc9eb9695c..c020d8674c 100644 --- a/src/resources/radar/http/ases/ip-version.ts +++ b/src/resources/radar/http/ases/ip-version.ts @@ -75,7 +75,7 @@ export namespace IPVersionGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/ases/os.ts b/src/resources/radar/http/ases/os.ts index 0b0683e0bd..97c802b53f 100644 --- a/src/resources/radar/http/ases/os.ts +++ b/src/resources/radar/http/ases/os.ts @@ -77,7 +77,7 @@ export namespace OSGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/ases/tls-version.ts b/src/resources/radar/http/ases/tls-version.ts index 188742dc55..8a84b7fe12 100644 --- a/src/resources/radar/http/ases/tls-version.ts +++ b/src/resources/radar/http/ases/tls-version.ts @@ -78,7 +78,7 @@ export namespace TLSVersionGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/http.ts b/src/resources/radar/http/http.ts index b52db2c5d0..9359e8f096 100644 --- a/src/resources/radar/http/http.ts +++ b/src/resources/radar/http/http.ts @@ -86,7 +86,7 @@ export namespace HTTPTimeseriesResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/locations/bot-class.ts b/src/resources/radar/http/locations/bot-class.ts index aa8911c2cd..125cc85758 100644 --- a/src/resources/radar/http/locations/bot-class.ts +++ b/src/resources/radar/http/locations/bot-class.ts @@ -80,7 +80,7 @@ export namespace BotClassGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/locations/browser-family.ts b/src/resources/radar/http/locations/browser-family.ts index cf8033b7ef..f684d06b9a 100644 --- a/src/resources/radar/http/locations/browser-family.ts +++ b/src/resources/radar/http/locations/browser-family.ts @@ -78,7 +78,7 @@ export namespace BrowserFamilyGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/locations/device-type.ts b/src/resources/radar/http/locations/device-type.ts index 6eca33427d..a19898dc23 100644 --- a/src/resources/radar/http/locations/device-type.ts +++ b/src/resources/radar/http/locations/device-type.ts @@ -78,7 +78,7 @@ export namespace DeviceTypeGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/locations/http-method.ts b/src/resources/radar/http/locations/http-method.ts index f1f56f4c45..4792e9379b 100644 --- a/src/resources/radar/http/locations/http-method.ts +++ b/src/resources/radar/http/locations/http-method.ts @@ -78,7 +78,7 @@ export namespace HTTPMethodGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/locations/http-protocol.ts b/src/resources/radar/http/locations/http-protocol.ts index 820832a817..2d06bac7aa 100644 --- a/src/resources/radar/http/locations/http-protocol.ts +++ b/src/resources/radar/http/locations/http-protocol.ts @@ -78,7 +78,7 @@ export namespace HTTPProtocolGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/locations/ip-version.ts b/src/resources/radar/http/locations/ip-version.ts index 99d5c098d4..5217272082 100644 --- a/src/resources/radar/http/locations/ip-version.ts +++ b/src/resources/radar/http/locations/ip-version.ts @@ -75,7 +75,7 @@ export namespace IPVersionGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/locations/locations.ts b/src/resources/radar/http/locations/locations.ts index 3fe6bfcf0f..eb8360b3e2 100644 --- a/src/resources/radar/http/locations/locations.ts +++ b/src/resources/radar/http/locations/locations.ts @@ -86,7 +86,7 @@ export namespace LocationGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/locations/os.ts b/src/resources/radar/http/locations/os.ts index 73e50b1045..540aad1fe4 100644 --- a/src/resources/radar/http/locations/os.ts +++ b/src/resources/radar/http/locations/os.ts @@ -77,7 +77,7 @@ export namespace OSGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/locations/tls-version.ts b/src/resources/radar/http/locations/tls-version.ts index 5eaf184e48..aa3cf9cc56 100644 --- a/src/resources/radar/http/locations/tls-version.ts +++ b/src/resources/radar/http/locations/tls-version.ts @@ -78,7 +78,7 @@ export namespace TLSVersionGetResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/summary.ts b/src/resources/radar/http/summary.ts index dd40d919b0..1ff88506cd 100644 --- a/src/resources/radar/http/summary.ts +++ b/src/resources/radar/http/summary.ts @@ -233,7 +233,7 @@ export namespace SummaryBotClassResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -295,7 +295,7 @@ export namespace SummaryDeviceTypeResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -359,7 +359,7 @@ export namespace SummaryHTTPProtocolResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -421,7 +421,7 @@ export namespace SummaryHTTPVersionResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -485,7 +485,7 @@ export namespace SummaryIPVersionResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -547,7 +547,7 @@ export namespace SummaryOSResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -609,7 +609,7 @@ export namespace SummaryPostQuantumResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -671,7 +671,7 @@ export namespace SummaryTLSVersionResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/http/top.ts b/src/resources/radar/http/top.ts index 9d17fc1bd1..e89682b621 100644 --- a/src/resources/radar/http/top.ts +++ b/src/resources/radar/http/top.ts @@ -98,7 +98,7 @@ export namespace TopBrowserFamiliesResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -152,7 +152,7 @@ export namespace TopBrowsersResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/index.ts b/src/resources/radar/index.ts index 589949ec80..19ddcd141a 100644 --- a/src/resources/radar/index.ts +++ b/src/resources/radar/index.ts @@ -18,7 +18,6 @@ export { DatasetGetResponse, DatasetListParams, DatasetDownloadParams, - DatasetGetParams, Datasets, } from './datasets'; export { EntityGetResponse, EntityGetParams, Entities } from './entities/index'; diff --git a/src/resources/radar/netflows/netflows.ts b/src/resources/radar/netflows/netflows.ts index 28ab287f19..d77f00057e 100644 --- a/src/resources/radar/netflows/netflows.ts +++ b/src/resources/radar/netflows/netflows.ts @@ -77,7 +77,7 @@ export namespace NetflowTimeseriesResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/quality/iqi.ts b/src/resources/radar/quality/iqi.ts index 32f64696cf..aceb6470e0 100644 --- a/src/resources/radar/quality/iqi.ts +++ b/src/resources/radar/quality/iqi.ts @@ -77,7 +77,7 @@ export namespace IQISummaryResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/quality/speed/speed.ts b/src/resources/radar/quality/speed/speed.ts index b2ad4f7fe2..0aa6b46850 100644 --- a/src/resources/radar/quality/speed/speed.ts +++ b/src/resources/radar/quality/speed/speed.ts @@ -113,7 +113,7 @@ export namespace SpeedSummaryResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/quality/speed/top.ts b/src/resources/radar/quality/speed/top.ts index b0c58cdb3e..2d0f824047 100644 --- a/src/resources/radar/quality/speed/top.ts +++ b/src/resources/radar/quality/speed/top.ts @@ -89,7 +89,7 @@ export namespace TopAsesResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -165,7 +165,7 @@ export namespace TopLocationsResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/src/resources/radar/radar.ts b/src/resources/radar/radar.ts index e80dc732b3..564b3ec2b8 100644 --- a/src/resources/radar/radar.ts +++ b/src/resources/radar/radar.ts @@ -51,7 +51,6 @@ export namespace Radar { export import DatasetGetResponse = DatasetsAPI.DatasetGetResponse; export import DatasetListParams = DatasetsAPI.DatasetListParams; export import DatasetDownloadParams = DatasetsAPI.DatasetDownloadParams; - export import DatasetGetParams = DatasetsAPI.DatasetGetParams; export import DNS = DNSAPI.DNS; export import Netflows = NetflowsAPI.Netflows; export import NetflowTimeseriesResponse = NetflowsAPI.NetflowTimeseriesResponse; diff --git a/src/resources/radar/ranking/domain.ts b/src/resources/radar/ranking/domain.ts index 9d159f3da1..447b3f0d9d 100644 --- a/src/resources/radar/ranking/domain.ts +++ b/src/resources/radar/ranking/domain.ts @@ -75,7 +75,7 @@ export interface DomainGetParams { /** * Array of dates to filter the ranking. */ - date?: Array; + date?: Array; /** * Format results are returned in. diff --git a/src/resources/radar/ranking/ranking.ts b/src/resources/radar/ranking/ranking.ts index 2dcab53b29..4b9f980b34 100644 --- a/src/resources/radar/ranking/ranking.ts +++ b/src/resources/radar/ranking/ranking.ts @@ -195,7 +195,7 @@ export interface RankingTopParams { /** * Array of dates to filter the ranking. */ - date?: Array; + date?: Array; /** * Format results are returned in. diff --git a/src/resources/radar/verified-bots/top.ts b/src/resources/radar/verified-bots/top.ts index 3dab14505b..e90923e98b 100644 --- a/src/resources/radar/verified-bots/top.ts +++ b/src/resources/radar/verified-bots/top.ts @@ -89,7 +89,7 @@ export namespace TopBotsResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; @@ -151,7 +151,7 @@ export namespace TopCategoriesResponse { eventType: string; - isInstantaneous: unknown; + isInstantaneous: boolean; endTime?: string; diff --git a/tests/api-resources/radar/attacks/layer3/top/top.test.ts b/tests/api-resources/radar/attacks/layer3/top/top.test.ts index df561ce3ff..6620583e59 100644 --- a/tests/api-resources/radar/attacks/layer3/top/top.test.ts +++ b/tests/api-resources/radar/attacks/layer3/top/top.test.ts @@ -44,6 +44,7 @@ describe('resource top', () => { limitPerLocation: 10, location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], + normalization: 'PERCENTAGE', protocol: ['UDP', 'TCP', 'ICMP'], }, { path: '/_stainless_unknown_path' }, diff --git a/tests/api-resources/radar/attacks/layer7/top/top.test.ts b/tests/api-resources/radar/attacks/layer7/top/top.test.ts index ac14b118b4..f82d329b1f 100644 --- a/tests/api-resources/radar/attacks/layer7/top/top.test.ts +++ b/tests/api-resources/radar/attacks/layer7/top/top.test.ts @@ -45,6 +45,7 @@ describe('resource top', () => { location: ['string', 'string', 'string'], magnitude: 'MITIGATED_REQUESTS', name: ['string', 'string', 'string'], + normalization: 'PERCENTAGE', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/radar/bgp/bgp.test.ts b/tests/api-resources/radar/bgp/bgp.test.ts index 265d6d3a20..9de0f01472 100644 --- a/tests/api-resources/radar/bgp/bgp.test.ts +++ b/tests/api-resources/radar/bgp/bgp.test.ts @@ -41,9 +41,9 @@ describe('resource bgp', () => { format: 'JSON', name: ['string', 'string', 'string'], prefix: [ - { location: 'query', name: 'prefix', type: '1.1.1.0/24' }, - { location: 'query', name: 'prefix', type: '1.1.1.0/24' }, - { location: 'query', name: 'prefix', type: '1.1.1.0/24' }, + { in: 'query', name: 'prefix', test: 12, type: '1.1.1.0/24' }, + { in: 'query', name: 'prefix', test: 12, type: '1.1.1.0/24' }, + { in: 'query', name: 'prefix', test: 12, type: '1.1.1.0/24' }, ], updateType: ['ANNOUNCEMENT', 'WITHDRAWAL'], }, diff --git a/tests/api-resources/radar/bgp/top/ases.test.ts b/tests/api-resources/radar/bgp/top/ases.test.ts index 246b444528..39637893cf 100644 --- a/tests/api-resources/radar/bgp/top/ases.test.ts +++ b/tests/api-resources/radar/bgp/top/ases.test.ts @@ -41,9 +41,9 @@ describe('resource ases', () => { limit: 5, name: ['string', 'string', 'string'], prefix: [ - { location: 'query', name: 'prefix', type: '1.1.1.0/24' }, - { location: 'query', name: 'prefix', type: '1.1.1.0/24' }, - { location: 'query', name: 'prefix', type: '1.1.1.0/24' }, + { in: 'query', name: 'prefix', test: 12, type: '1.1.1.0/24' }, + { in: 'query', name: 'prefix', test: 12, type: '1.1.1.0/24' }, + { in: 'query', name: 'prefix', test: 12, type: '1.1.1.0/24' }, ], updateType: ['ANNOUNCEMENT', 'WITHDRAWAL'], }, diff --git a/tests/api-resources/radar/datasets.test.ts b/tests/api-resources/radar/datasets.test.ts index 56c138cd94..e4b6e3e5a7 100644 --- a/tests/api-resources/radar/datasets.test.ts +++ b/tests/api-resources/radar/datasets.test.ts @@ -70,15 +70,4 @@ describe('resource datasets', () => { cloudflare.radar.datasets.get('ranking_top_1000', { path: '/_stainless_unknown_path' }), ).rejects.toThrow(Cloudflare.NotFoundError); }); - - test('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.datasets.get( - 'ranking_top_1000', - { date: 'string' }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); }); From ea4cfc259055e0b2cf00fadc9bed00df38c41542 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 09:50:45 +0000 Subject: [PATCH 03/45] feat(api): OpenAPI spec update via Stainless API (#976) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 76fac26c15..f05782e4a7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dfb8d2c58c029167d6eb04131ff40df5631570c1bc49279bc148b2331fa68dee.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b6aad108d9bd74ab205190cdefd1d4e7db82406d40095750346b1871e8b1619b.yml From 9a723ce1ed9f94146df96f82541c61ca458f8736 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:30:01 +0000 Subject: [PATCH 04/45] feat(api): OpenAPI spec update via Stainless API (#977) --- .stats.yml | 2 +- src/resources/dns/records.ts | 741 +++++++++++++++++++++--- tests/api-resources/dns/records.test.ts | 18 +- 3 files changed, 684 insertions(+), 77 deletions(-) diff --git a/.stats.yml b/.stats.yml index f05782e4a7..334f00871c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b6aad108d9bd74ab205190cdefd1d4e7db82406d40095750346b1871e8b1619b.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4dcc737ab91fdd1e0edc18214494d806b12d41df4d4641e26e718c8b9dced1dc.yml diff --git a/src/resources/dns/records.ts b/src/resources/dns/records.ts index 39a7d061c9..2679f19b50 100644 --- a/src/resources/dns/records.ts +++ b/src/resources/dns/records.ts @@ -19,11 +19,12 @@ export class Records extends APIResource { * were used when creating the record. */ create(params: RecordCreateParams, options?: Core.RequestOptions): Core.APIPromise { - const { zone_id, ...body } = params; + const { path_zone_id, body_zone_id, ...body } = params; return ( - this._client.post(`/zones/${zone_id}/dns_records`, { body, ...options }) as Core.APIPromise<{ - result: Record; - }> + this._client.post(`/zones/${path_zone_id}/dns_records`, { + body: { zone_id: body_zone_id, ...body }, + ...options, + }) as Core.APIPromise<{ result: Record }> )._thenUnwrap((obj) => obj.result); } @@ -40,10 +41,10 @@ export class Records extends APIResource { params: RecordUpdateParams, options?: Core.RequestOptions, ): Core.APIPromise { - const { zone_id, ...body } = params; + const { path_zone_id, body_zone_id, ...body } = params; return ( - this._client.put(`/zones/${zone_id}/dns_records/${dnsRecordId}`, { - body, + this._client.put(`/zones/${path_zone_id}/dns_records/${dnsRecordId}`, { + body: { zone_id: body_zone_id, ...body }, ...options, }) as Core.APIPromise<{ result: Record }> )._thenUnwrap((obj) => obj.result); @@ -92,10 +93,10 @@ export class Records extends APIResource { params: RecordEditParams, options?: Core.RequestOptions, ): Core.APIPromise { - const { zone_id, ...body } = params; + const { path_zone_id, body_zone_id, ...body } = params; return ( - this._client.patch(`/zones/${zone_id}/dns_records/${dnsRecordId}`, { - body, + this._client.patch(`/zones/${path_zone_id}/dns_records/${dnsRecordId}`, { + body: { zone_id: body_zone_id, ...body }, ...options, }) as Core.APIPromise<{ result: Record }> )._thenUnwrap((obj) => obj.result); @@ -2321,7 +2322,7 @@ export namespace RecordCreateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid IPv4 address. @@ -2338,6 +2339,11 @@ export namespace RecordCreateParams { */ type: 'A'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -2362,13 +2368,18 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface AAAARecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid IPv6 address. @@ -2385,6 +2396,11 @@ export namespace RecordCreateParams { */ type: 'AAAA'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -2409,13 +2425,18 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface CAARecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a CAA record. @@ -2432,6 +2453,11 @@ export namespace RecordCreateParams { */ type: 'CAA'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -2450,6 +2476,11 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace CAARecord { @@ -2478,7 +2509,7 @@ export namespace RecordCreateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a CERT record. @@ -2495,6 +2526,11 @@ export namespace RecordCreateParams { */ type: 'CERT'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -2513,6 +2549,11 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace CERTRecord { @@ -2546,7 +2587,7 @@ export namespace RecordCreateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid hostname. Must not match the record's name. @@ -2563,6 +2604,11 @@ export namespace RecordCreateParams { */ type: 'CNAME'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -2587,13 +2633,18 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface DNSKEYRecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a DNSKEY record. @@ -2610,6 +2661,11 @@ export namespace RecordCreateParams { */ type: 'DNSKEY'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -2628,6 +2684,11 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace DNSKEYRecord { @@ -2661,7 +2722,7 @@ export namespace RecordCreateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a DS record. @@ -2678,6 +2739,11 @@ export namespace RecordCreateParams { */ type: 'DS'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -2696,6 +2762,11 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace DSRecord { @@ -2729,7 +2800,7 @@ export namespace RecordCreateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a HTTPS record. @@ -2746,6 +2817,11 @@ export namespace RecordCreateParams { */ type: 'HTTPS'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -2764,6 +2840,11 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace HTTPSRecord { @@ -2792,7 +2873,7 @@ export namespace RecordCreateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a LOC record. @@ -2809,6 +2890,11 @@ export namespace RecordCreateParams { */ type: 'LOC'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -2827,6 +2913,11 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace LOCRecord { @@ -2900,7 +2991,7 @@ export namespace RecordCreateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid mail server hostname. @@ -2923,6 +3014,11 @@ export namespace RecordCreateParams { */ type: 'MX'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -2941,13 +3037,18 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface NAPTRRecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a NAPTR record. @@ -2964,6 +3065,11 @@ export namespace RecordCreateParams { */ type: 'NAPTR'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -2982,6 +3088,11 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace NAPTRRecord { @@ -3025,7 +3136,7 @@ export namespace RecordCreateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid name server host name. @@ -3042,6 +3153,11 @@ export namespace RecordCreateParams { */ type: 'NS'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3060,13 +3176,18 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface PTRRecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Domain name pointing to the address. @@ -3083,6 +3204,11 @@ export namespace RecordCreateParams { */ type: 'PTR'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3101,13 +3227,18 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface SMIMEARecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a SMIMEA record. @@ -3124,6 +3255,11 @@ export namespace RecordCreateParams { */ type: 'SMIMEA'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3142,6 +3278,11 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace SMIMEARecord { @@ -3175,7 +3316,7 @@ export namespace RecordCreateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a SRV record. @@ -3194,6 +3335,11 @@ export namespace RecordCreateParams { */ type: 'SRV'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3212,6 +3358,11 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace SRVRecord { @@ -3267,7 +3418,7 @@ export namespace RecordCreateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a SSHFP record. @@ -3284,6 +3435,11 @@ export namespace RecordCreateParams { */ type: 'SSHFP'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3302,6 +3458,11 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace SSHFPRecord { @@ -3330,7 +3491,7 @@ export namespace RecordCreateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a SVCB record. @@ -3347,6 +3508,11 @@ export namespace RecordCreateParams { */ type: 'SVCB'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3365,6 +3531,11 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace SVCBRecord { @@ -3393,7 +3564,7 @@ export namespace RecordCreateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a TLSA record. @@ -3410,6 +3581,11 @@ export namespace RecordCreateParams { */ type: 'TLSA'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3428,6 +3604,11 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace TLSARecord { @@ -3461,7 +3642,7 @@ export namespace RecordCreateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Text content for the record. @@ -3478,6 +3659,11 @@ export namespace RecordCreateParams { */ type: 'TXT'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3496,13 +3682,18 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface URIRecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a URI record. @@ -3525,6 +3716,11 @@ export namespace RecordCreateParams { */ type: 'URI'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3543,6 +3739,11 @@ export namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace URIRecord { @@ -3590,7 +3791,7 @@ export namespace RecordUpdateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid IPv4 address. @@ -3607,6 +3808,11 @@ export namespace RecordUpdateParams { */ type: 'A'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3631,13 +3837,18 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface AAAARecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid IPv6 address. @@ -3654,6 +3865,11 @@ export namespace RecordUpdateParams { */ type: 'AAAA'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3678,13 +3894,18 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface CAARecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a CAA record. @@ -3701,6 +3922,11 @@ export namespace RecordUpdateParams { */ type: 'CAA'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3719,6 +3945,11 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace CAARecord { @@ -3747,7 +3978,7 @@ export namespace RecordUpdateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a CERT record. @@ -3764,6 +3995,11 @@ export namespace RecordUpdateParams { */ type: 'CERT'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3782,6 +4018,11 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace CERTRecord { @@ -3815,7 +4056,7 @@ export namespace RecordUpdateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid hostname. Must not match the record's name. @@ -3832,6 +4073,11 @@ export namespace RecordUpdateParams { */ type: 'CNAME'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3856,13 +4102,18 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface DNSKEYRecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a DNSKEY record. @@ -3879,6 +4130,11 @@ export namespace RecordUpdateParams { */ type: 'DNSKEY'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3897,6 +4153,11 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace DNSKEYRecord { @@ -3930,7 +4191,7 @@ export namespace RecordUpdateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a DS record. @@ -3947,6 +4208,11 @@ export namespace RecordUpdateParams { */ type: 'DS'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -3965,6 +4231,11 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace DSRecord { @@ -3998,7 +4269,7 @@ export namespace RecordUpdateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a HTTPS record. @@ -4015,6 +4286,11 @@ export namespace RecordUpdateParams { */ type: 'HTTPS'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -4033,6 +4309,11 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace HTTPSRecord { @@ -4061,7 +4342,7 @@ export namespace RecordUpdateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a LOC record. @@ -4078,6 +4359,11 @@ export namespace RecordUpdateParams { */ type: 'LOC'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -4096,6 +4382,11 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace LOCRecord { @@ -4169,7 +4460,7 @@ export namespace RecordUpdateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid mail server hostname. @@ -4192,6 +4483,11 @@ export namespace RecordUpdateParams { */ type: 'MX'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -4210,13 +4506,18 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface NAPTRRecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a NAPTR record. @@ -4233,6 +4534,11 @@ export namespace RecordUpdateParams { */ type: 'NAPTR'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -4251,6 +4557,11 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace NAPTRRecord { @@ -4294,7 +4605,7 @@ export namespace RecordUpdateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid name server host name. @@ -4311,6 +4622,11 @@ export namespace RecordUpdateParams { */ type: 'NS'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -4329,13 +4645,18 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface PTRRecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Domain name pointing to the address. @@ -4352,6 +4673,11 @@ export namespace RecordUpdateParams { */ type: 'PTR'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -4370,13 +4696,18 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface SMIMEARecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a SMIMEA record. @@ -4393,6 +4724,11 @@ export namespace RecordUpdateParams { */ type: 'SMIMEA'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -4411,6 +4747,11 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace SMIMEARecord { @@ -4444,7 +4785,7 @@ export namespace RecordUpdateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a SRV record. @@ -4463,6 +4804,11 @@ export namespace RecordUpdateParams { */ type: 'SRV'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -4481,6 +4827,11 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace SRVRecord { @@ -4536,7 +4887,7 @@ export namespace RecordUpdateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a SSHFP record. @@ -4553,6 +4904,11 @@ export namespace RecordUpdateParams { */ type: 'SSHFP'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -4571,6 +4927,11 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace SSHFPRecord { @@ -4599,7 +4960,7 @@ export namespace RecordUpdateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a SVCB record. @@ -4616,6 +4977,11 @@ export namespace RecordUpdateParams { */ type: 'SVCB'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -4634,6 +5000,11 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace SVCBRecord { @@ -4662,7 +5033,7 @@ export namespace RecordUpdateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a TLSA record. @@ -4679,6 +5050,11 @@ export namespace RecordUpdateParams { */ type: 'TLSA'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -4697,6 +5073,11 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace TLSARecord { @@ -4730,7 +5111,7 @@ export namespace RecordUpdateParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Text content for the record. @@ -4747,6 +5128,11 @@ export namespace RecordUpdateParams { */ type: 'TXT'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -4765,13 +5151,18 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface URIRecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a URI record. @@ -4794,6 +5185,11 @@ export namespace RecordUpdateParams { */ type: 'URI'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -4812,6 +5208,11 @@ export namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace URIRecord { @@ -5036,7 +5437,7 @@ export namespace RecordEditParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid IPv4 address. @@ -5053,6 +5454,11 @@ export namespace RecordEditParams { */ type: 'A'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5077,13 +5483,18 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface AAAARecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid IPv6 address. @@ -5100,6 +5511,11 @@ export namespace RecordEditParams { */ type: 'AAAA'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5124,13 +5540,18 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface CAARecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a CAA record. @@ -5147,6 +5568,11 @@ export namespace RecordEditParams { */ type: 'CAA'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5165,6 +5591,11 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace CAARecord { @@ -5193,7 +5624,7 @@ export namespace RecordEditParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a CERT record. @@ -5210,6 +5641,11 @@ export namespace RecordEditParams { */ type: 'CERT'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5228,6 +5664,11 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace CERTRecord { @@ -5261,7 +5702,7 @@ export namespace RecordEditParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid hostname. Must not match the record's name. @@ -5278,6 +5719,11 @@ export namespace RecordEditParams { */ type: 'CNAME'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5302,13 +5748,18 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface DNSKEYRecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a DNSKEY record. @@ -5325,6 +5776,11 @@ export namespace RecordEditParams { */ type: 'DNSKEY'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5343,6 +5799,11 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace DNSKEYRecord { @@ -5376,7 +5837,7 @@ export namespace RecordEditParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a DS record. @@ -5393,6 +5854,11 @@ export namespace RecordEditParams { */ type: 'DS'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5411,6 +5877,11 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace DSRecord { @@ -5444,7 +5915,7 @@ export namespace RecordEditParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a HTTPS record. @@ -5461,6 +5932,11 @@ export namespace RecordEditParams { */ type: 'HTTPS'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5479,6 +5955,11 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace HTTPSRecord { @@ -5507,7 +5988,7 @@ export namespace RecordEditParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a LOC record. @@ -5524,6 +6005,11 @@ export namespace RecordEditParams { */ type: 'LOC'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5542,6 +6028,11 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace LOCRecord { @@ -5615,7 +6106,7 @@ export namespace RecordEditParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid mail server hostname. @@ -5638,6 +6129,11 @@ export namespace RecordEditParams { */ type: 'MX'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5656,13 +6152,18 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface NAPTRRecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a NAPTR record. @@ -5679,6 +6180,11 @@ export namespace RecordEditParams { */ type: 'NAPTR'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5697,6 +6203,11 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace NAPTRRecord { @@ -5740,7 +6251,7 @@ export namespace RecordEditParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: A valid name server host name. @@ -5757,6 +6268,11 @@ export namespace RecordEditParams { */ type: 'NS'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5775,13 +6291,18 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface PTRRecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Domain name pointing to the address. @@ -5798,6 +6319,11 @@ export namespace RecordEditParams { */ type: 'PTR'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5816,13 +6342,18 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface SMIMEARecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a SMIMEA record. @@ -5839,6 +6370,11 @@ export namespace RecordEditParams { */ type: 'SMIMEA'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5857,6 +6393,11 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace SMIMEARecord { @@ -5890,7 +6431,7 @@ export namespace RecordEditParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a SRV record. @@ -5909,6 +6450,11 @@ export namespace RecordEditParams { */ type: 'SRV'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5927,6 +6473,11 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace SRVRecord { @@ -5982,7 +6533,7 @@ export namespace RecordEditParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a SSHFP record. @@ -5999,6 +6550,11 @@ export namespace RecordEditParams { */ type: 'SSHFP'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6017,6 +6573,11 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace SSHFPRecord { @@ -6045,7 +6606,7 @@ export namespace RecordEditParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a SVCB record. @@ -6062,6 +6623,11 @@ export namespace RecordEditParams { */ type: 'SVCB'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6080,6 +6646,11 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace SVCBRecord { @@ -6108,7 +6679,7 @@ export namespace RecordEditParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a TLSA record. @@ -6125,6 +6696,11 @@ export namespace RecordEditParams { */ type: 'TLSA'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6143,6 +6719,11 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace TLSARecord { @@ -6176,7 +6757,7 @@ export namespace RecordEditParams { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Text content for the record. @@ -6193,6 +6774,11 @@ export namespace RecordEditParams { */ type: 'TXT'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6211,13 +6797,18 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export interface URIRecord { /** * Path param: Identifier */ - zone_id: string; + path_zone_id: string; /** * Body param: Components of a URI record. @@ -6240,6 +6831,11 @@ export namespace RecordEditParams { */ type: 'URI'; + /** + * Body param: Identifier + */ + id?: string; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6258,6 +6854,11 @@ export namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; + + /** + * Body param: Identifier + */ + body_zone_id?: string; } export namespace URIRecord { diff --git a/tests/api-resources/dns/records.test.ts b/tests/api-resources/dns/records.test.ts index e261eeeb86..2c0d00aaa1 100644 --- a/tests/api-resources/dns/records.test.ts +++ b/tests/api-resources/dns/records.test.ts @@ -13,7 +13,7 @@ describe('resource records', () => { // TODO: investigate broken test test.skip('create: only required params', async () => { const responsePromise = cloudflare.dns.records.create({ - zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + path_zone_id: '023e105f4ecef8ad9ca31a8372d0c353', content: '198.51.100.4', name: 'example.com', type: 'A', @@ -30,21 +30,23 @@ describe('resource records', () => { // TODO: investigate broken test test.skip('create: required and optional params', async () => { const response = await cloudflare.dns.records.create({ - zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + path_zone_id: '023e105f4ecef8ad9ca31a8372d0c353', content: '198.51.100.4', name: 'example.com', type: 'A', + id: '023e105f4ecef8ad9ca31a8372d0c353', comment: 'Domain verification record', proxied: false, tags: ['owner:dns-team', 'owner:dns-team', 'owner:dns-team'], ttl: 3600, + body_zone_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); // TODO: investigate broken test test.skip('update: only required params', async () => { const responsePromise = cloudflare.dns.records.update('023e105f4ecef8ad9ca31a8372d0c353', { - zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + path_zone_id: '023e105f4ecef8ad9ca31a8372d0c353', content: '198.51.100.4', name: 'example.com', type: 'A', @@ -61,14 +63,16 @@ describe('resource records', () => { // TODO: investigate broken test test.skip('update: required and optional params', async () => { const response = await cloudflare.dns.records.update('023e105f4ecef8ad9ca31a8372d0c353', { - zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + path_zone_id: '023e105f4ecef8ad9ca31a8372d0c353', content: '198.51.100.4', name: 'example.com', type: 'A', + id: '023e105f4ecef8ad9ca31a8372d0c353', comment: 'Domain verification record', proxied: false, tags: ['owner:dns-team', 'owner:dns-team', 'owner:dns-team'], ttl: 3600, + body_zone_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); @@ -138,7 +142,7 @@ describe('resource records', () => { // TODO: investigate broken test test.skip('edit: only required params', async () => { const responsePromise = cloudflare.dns.records.edit('023e105f4ecef8ad9ca31a8372d0c353', { - zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + path_zone_id: '023e105f4ecef8ad9ca31a8372d0c353', content: '198.51.100.4', name: 'example.com', type: 'A', @@ -155,14 +159,16 @@ describe('resource records', () => { // TODO: investigate broken test test.skip('edit: required and optional params', async () => { const response = await cloudflare.dns.records.edit('023e105f4ecef8ad9ca31a8372d0c353', { - zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + path_zone_id: '023e105f4ecef8ad9ca31a8372d0c353', content: '198.51.100.4', name: 'example.com', type: 'A', + id: '023e105f4ecef8ad9ca31a8372d0c353', comment: 'Domain verification record', proxied: false, tags: ['owner:dns-team', 'owner:dns-team', 'owner:dns-team'], ttl: 3600, + body_zone_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); From a5d1c324a2243f3dc4353d8fcea0eeeea1dff91a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:32:23 +0000 Subject: [PATCH 05/45] feat(api): OpenAPI spec update via Stainless API (#978) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 334f00871c..d06e1c36b0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4dcc737ab91fdd1e0edc18214494d806b12d41df4d4641e26e718c8b9dced1dc.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1187a02cdd7aa40eec7477b2a8bf81496a975bc81c366e499a8210d550f3ea08.yml From d52fc46e568135a9e98075e9bdd96ac8ea09bf44 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:36:53 +0000 Subject: [PATCH 06/45] feat(api): OpenAPI spec update via Stainless API (#979) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index d06e1c36b0..334f00871c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1187a02cdd7aa40eec7477b2a8bf81496a975bc81c366e499a8210d550f3ea08.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4dcc737ab91fdd1e0edc18214494d806b12d41df4d4641e26e718c8b9dced1dc.yml From f60c725b016d792559edb57f9c105d9a11de2ee5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:22:18 +0000 Subject: [PATCH 07/45] feat(api): OpenAPI spec update via Stainless API (#980) --- .stats.yml | 2 +- .../zero-trust/gateway/configurations.ts | 54 ++++++++++++++++--- .../zero-trust/gateway/lists/lists.ts | 17 +++++- src/resources/zero-trust/gateway/rules.ts | 34 ++++++++---- .../zero-trust/gateway/configurations.test.ts | 2 + .../zero-trust/gateway/lists/lists.test.ts | 13 ++++- .../zero-trust/gateway/rules.test.ts | 2 + 7 files changed, 103 insertions(+), 21 deletions(-) diff --git a/.stats.yml b/.stats.yml index 334f00871c..db0943d3d7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4dcc737ab91fdd1e0edc18214494d806b12d41df4d4641e26e718c8b9dced1dc.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml diff --git a/src/resources/zero-trust/gateway/configurations.ts b/src/resources/zero-trust/gateway/configurations.ts index 8918b4bd21..f297cc6b20 100644 --- a/src/resources/zero-trust/gateway/configurations.ts +++ b/src/resources/zero-trust/gateway/configurations.ts @@ -25,8 +25,8 @@ export class Configurations extends APIResource { * Patches the current Zero Trust account configuration. This endpoint can update a * single subcollection of settings such as `antivirus`, `tls_decrypt`, * `activity_log`, `block_page`, `browser_isolation`, `fips`, `body_scanning`, or - * `custom_certificate`, without updating the entire configuration object. Returns - * an error if any collection of settings is not properly configured. + * `certificate`, without updating the entire configuration object. Returns an + * error if any collection of settings is not properly configured. */ edit( params: ConfigurationEditParams, @@ -280,7 +280,8 @@ export interface BrowserIsolationSettingsParam { } /** - * Custom certificate settings for BYO-PKI. + * @deprecated: Custom certificate settings for BYO-PKI. (deprecated and replaced + * by `certificate`) */ export interface CustomCertificateSettings { /** @@ -302,7 +303,8 @@ export interface CustomCertificateSettings { } /** - * Custom certificate settings for BYO-PKI. + * @deprecated: Custom certificate settings for BYO-PKI. (deprecated and replaced + * by `certificate`) */ export interface CustomCertificateSettingsParam { /** @@ -388,7 +390,14 @@ export interface GatewayConfigurationSettings { browser_isolation?: BrowserIsolationSettings; /** - * Custom certificate settings for BYO-PKI. + * Certificate settings for Gateway TLS interception. If not specified, the + * Cloudflare Root CA will be used. + */ + certificate?: GatewayConfigurationSettings.Certificate; + + /** + * @deprecated: Custom certificate settings for BYO-PKI. (deprecated and replaced + * by `certificate`) */ custom_certificate?: CustomCertificateSettings; @@ -413,6 +422,19 @@ export interface GatewayConfigurationSettings { tls_decrypt?: TLSSettings; } +export namespace GatewayConfigurationSettings { + /** + * Certificate settings for Gateway TLS interception. If not specified, the + * Cloudflare Root CA will be used. + */ + export interface Certificate { + /** + * UUID of certificate to be used for interception. + */ + id: string; + } +} + /** * account settings. */ @@ -443,7 +465,14 @@ export interface GatewayConfigurationSettingsParam { browser_isolation?: BrowserIsolationSettingsParam; /** - * Custom certificate settings for BYO-PKI. + * Certificate settings for Gateway TLS interception. If not specified, the + * Cloudflare Root CA will be used. + */ + certificate?: GatewayConfigurationSettingsParam.Certificate; + + /** + * @deprecated: Custom certificate settings for BYO-PKI. (deprecated and replaced + * by `certificate`) */ custom_certificate?: CustomCertificateSettingsParam; @@ -468,6 +497,19 @@ export interface GatewayConfigurationSettingsParam { tls_decrypt?: TLSSettingsParam; } +export namespace GatewayConfigurationSettingsParam { + /** + * Certificate settings for Gateway TLS interception. If not specified, the + * Cloudflare Root CA will be used. + */ + export interface Certificate { + /** + * UUID of certificate to be used for interception. + */ + id: string; + } +} + /** * Configure a message to display on the user's device when an antivirus search is * performed. diff --git a/src/resources/zero-trust/gateway/lists/lists.ts b/src/resources/zero-trust/gateway/lists/lists.ts index 716fcd5834..a1552de861 100644 --- a/src/resources/zero-trust/gateway/lists/lists.ts +++ b/src/resources/zero-trust/gateway/lists/lists.ts @@ -45,8 +45,11 @@ export class Lists extends APIResource { params: ListListParams, options?: Core.RequestOptions, ): Core.PagePromise { - const { account_id } = params; - return this._client.getAPIList(`/accounts/${account_id}/gateway/lists`, GatewayListsSinglePage, options); + const { account_id, ...query } = params; + return this._client.getAPIList(`/accounts/${account_id}/gateway/lists`, GatewayListsSinglePage, { + query, + ...options, + }); } /** @@ -103,6 +106,8 @@ export interface GatewayItem { } export interface GatewayItemParam { + created_at?: string; + /** * The value of the item in a list. */ @@ -218,7 +223,15 @@ export interface ListUpdateParams { } export interface ListListParams { + /** + * Path param: + */ account_id: string; + + /** + * Query param: The type of list. + */ + type?: 'SERIAL' | 'URL' | 'DOMAIN' | 'EMAIL' | 'IP'; } export interface ListDeleteParams { diff --git a/src/resources/zero-trust/gateway/rules.ts b/src/resources/zero-trust/gateway/rules.ts index dd28917ea9..fcb0347e7d 100644 --- a/src/resources/zero-trust/gateway/rules.ts +++ b/src/resources/zero-trust/gateway/rules.ts @@ -335,6 +335,13 @@ export interface RuleSetting { */ egress?: RuleSetting.Egress; + /** + * Set to true, to ignore the category matches at CNAME domains in a response. If + * unchecked, the categories in this rule will be checked against all the CNAME + * domain categories in a response. + */ + ignore_cname_category_matches?: boolean; + /** * INSECURE - disable DNSSEC validation (for Allow actions). */ @@ -407,27 +414,27 @@ export namespace RuleSetting { */ export interface BisoAdminControls { /** - * Set to true to enable copy-pasting. + * Set to false to enable copy-pasting. */ dcp?: boolean; /** - * Set to true to enable downloading. + * Set to false to enable downloading. */ dd?: boolean; /** - * Set to true to enable keyboard usage. + * Set to false to enable keyboard usage. */ dk?: boolean; /** - * Set to true to enable printing. + * Set to false to enable printing. */ dp?: boolean; /** - * Set to true to enable uploading. + * Set to false to enable uploading. */ du?: boolean; } @@ -603,6 +610,13 @@ export interface RuleSettingParam { */ egress?: RuleSettingParam.Egress; + /** + * Set to true, to ignore the category matches at CNAME domains in a response. If + * unchecked, the categories in this rule will be checked against all the CNAME + * domain categories in a response. + */ + ignore_cname_category_matches?: boolean; + /** * INSECURE - disable DNSSEC validation (for Allow actions). */ @@ -675,27 +689,27 @@ export namespace RuleSettingParam { */ export interface BisoAdminControls { /** - * Set to true to enable copy-pasting. + * Set to false to enable copy-pasting. */ dcp?: boolean; /** - * Set to true to enable downloading. + * Set to false to enable downloading. */ dd?: boolean; /** - * Set to true to enable keyboard usage. + * Set to false to enable keyboard usage. */ dk?: boolean; /** - * Set to true to enable printing. + * Set to false to enable printing. */ dp?: boolean; /** - * Set to true to enable uploading. + * Set to false to enable uploading. */ du?: boolean; } diff --git a/tests/api-resources/zero-trust/gateway/configurations.test.ts b/tests/api-resources/zero-trust/gateway/configurations.test.ts index bbe8b139a3..b6f70c8bd3 100644 --- a/tests/api-resources/zero-trust/gateway/configurations.test.ts +++ b/tests/api-resources/zero-trust/gateway/configurations.test.ts @@ -47,6 +47,7 @@ describe('resource configurations', () => { }, body_scanning: { inspection_mode: 'deep' }, browser_isolation: { non_identity_enabled: true, url_browser_isolation_enabled: true }, + certificate: { id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, custom_certificate: { enabled: true, id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, extended_email_matching: { enabled: true }, fips: { tls: true }, @@ -93,6 +94,7 @@ describe('resource configurations', () => { }, body_scanning: { inspection_mode: 'deep' }, browser_isolation: { non_identity_enabled: true, url_browser_isolation_enabled: true }, + certificate: { id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, custom_certificate: { enabled: true, id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, extended_email_matching: { enabled: true }, fips: { tls: true }, diff --git a/tests/api-resources/zero-trust/gateway/lists/lists.test.ts b/tests/api-resources/zero-trust/gateway/lists/lists.test.ts index 94bd368d9c..a7c35b838f 100644 --- a/tests/api-resources/zero-trust/gateway/lists/lists.test.ts +++ b/tests/api-resources/zero-trust/gateway/lists/lists.test.ts @@ -31,7 +31,11 @@ describe('resource lists', () => { name: 'Admin Serial Numbers', type: 'SERIAL', description: 'The serial numbers for administrators', - items: [{ value: '8GE8721REF' }, { value: '8GE8721REF' }, { value: '8GE8721REF' }], + items: [ + { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, + { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, + { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, + ], }); }); @@ -73,6 +77,7 @@ describe('resource lists', () => { test('list: required and optional params', async () => { const response = await cloudflare.zeroTrust.gateway.lists.list({ account_id: '699d98642c564d2e855e9661899b7252', + type: 'SERIAL', }); }); @@ -112,7 +117,11 @@ describe('resource lists', () => { test('edit: required and optional params', async () => { const response = await cloudflare.zeroTrust.gateway.lists.edit('f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { account_id: '699d98642c564d2e855e9661899b7252', - append: [{ value: '8GE8721REF' }, { value: '8GE8721REF' }, { value: '8GE8721REF' }], + append: [ + { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, + { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, + { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, + ], remove: ['8GE8721REF', '8GE8721REF', '8GE8721REF'], }); }); diff --git a/tests/api-resources/zero-trust/gateway/rules.test.ts b/tests/api-resources/zero-trust/gateway/rules.test.ts index c0823a69db..f883ea6515 100644 --- a/tests/api-resources/zero-trust/gateway/rules.test.ts +++ b/tests/api-resources/zero-trust/gateway/rules.test.ts @@ -88,6 +88,7 @@ describe('resource rules', () => { ], }, egress: { ipv4: '192.0.2.2', ipv4_fallback: '192.0.2.3', ipv6: '2001:DB8::/64' }, + ignore_cname_category_matches: true, insecure_disable_dnssec_validation: false, ip_categories: true, ip_indicator_feeds: true, @@ -191,6 +192,7 @@ describe('resource rules', () => { ], }, egress: { ipv4: '192.0.2.2', ipv4_fallback: '192.0.2.3', ipv6: '2001:DB8::/64' }, + ignore_cname_category_matches: true, insecure_disable_dnssec_validation: false, ip_categories: true, ip_indicator_feeds: true, From 72a11c5cd6baba1727c6ae51ef9c7197983ce5aa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:24:41 +0000 Subject: [PATCH 08/45] feat(api): OpenAPI spec update via Stainless API (#981) --- .stats.yml | 2 +- .../zero-trust/gateway/configurations.ts | 54 +++---------------- .../zero-trust/gateway/lists/lists.ts | 17 +----- src/resources/zero-trust/gateway/rules.ts | 34 ++++-------- .../zero-trust/gateway/configurations.test.ts | 2 - .../zero-trust/gateway/lists/lists.test.ts | 13 +---- .../zero-trust/gateway/rules.test.ts | 2 - 7 files changed, 21 insertions(+), 103 deletions(-) diff --git a/.stats.yml b/.stats.yml index db0943d3d7..d1202adc94 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a4ad69b707d0e14c7a716a22c876ab03c40d8aefa59eec101c5c52260cb860f3.yml diff --git a/src/resources/zero-trust/gateway/configurations.ts b/src/resources/zero-trust/gateway/configurations.ts index f297cc6b20..8918b4bd21 100644 --- a/src/resources/zero-trust/gateway/configurations.ts +++ b/src/resources/zero-trust/gateway/configurations.ts @@ -25,8 +25,8 @@ export class Configurations extends APIResource { * Patches the current Zero Trust account configuration. This endpoint can update a * single subcollection of settings such as `antivirus`, `tls_decrypt`, * `activity_log`, `block_page`, `browser_isolation`, `fips`, `body_scanning`, or - * `certificate`, without updating the entire configuration object. Returns an - * error if any collection of settings is not properly configured. + * `custom_certificate`, without updating the entire configuration object. Returns + * an error if any collection of settings is not properly configured. */ edit( params: ConfigurationEditParams, @@ -280,8 +280,7 @@ export interface BrowserIsolationSettingsParam { } /** - * @deprecated: Custom certificate settings for BYO-PKI. (deprecated and replaced - * by `certificate`) + * Custom certificate settings for BYO-PKI. */ export interface CustomCertificateSettings { /** @@ -303,8 +302,7 @@ export interface CustomCertificateSettings { } /** - * @deprecated: Custom certificate settings for BYO-PKI. (deprecated and replaced - * by `certificate`) + * Custom certificate settings for BYO-PKI. */ export interface CustomCertificateSettingsParam { /** @@ -390,14 +388,7 @@ export interface GatewayConfigurationSettings { browser_isolation?: BrowserIsolationSettings; /** - * Certificate settings for Gateway TLS interception. If not specified, the - * Cloudflare Root CA will be used. - */ - certificate?: GatewayConfigurationSettings.Certificate; - - /** - * @deprecated: Custom certificate settings for BYO-PKI. (deprecated and replaced - * by `certificate`) + * Custom certificate settings for BYO-PKI. */ custom_certificate?: CustomCertificateSettings; @@ -422,19 +413,6 @@ export interface GatewayConfigurationSettings { tls_decrypt?: TLSSettings; } -export namespace GatewayConfigurationSettings { - /** - * Certificate settings for Gateway TLS interception. If not specified, the - * Cloudflare Root CA will be used. - */ - export interface Certificate { - /** - * UUID of certificate to be used for interception. - */ - id: string; - } -} - /** * account settings. */ @@ -465,14 +443,7 @@ export interface GatewayConfigurationSettingsParam { browser_isolation?: BrowserIsolationSettingsParam; /** - * Certificate settings for Gateway TLS interception. If not specified, the - * Cloudflare Root CA will be used. - */ - certificate?: GatewayConfigurationSettingsParam.Certificate; - - /** - * @deprecated: Custom certificate settings for BYO-PKI. (deprecated and replaced - * by `certificate`) + * Custom certificate settings for BYO-PKI. */ custom_certificate?: CustomCertificateSettingsParam; @@ -497,19 +468,6 @@ export interface GatewayConfigurationSettingsParam { tls_decrypt?: TLSSettingsParam; } -export namespace GatewayConfigurationSettingsParam { - /** - * Certificate settings for Gateway TLS interception. If not specified, the - * Cloudflare Root CA will be used. - */ - export interface Certificate { - /** - * UUID of certificate to be used for interception. - */ - id: string; - } -} - /** * Configure a message to display on the user's device when an antivirus search is * performed. diff --git a/src/resources/zero-trust/gateway/lists/lists.ts b/src/resources/zero-trust/gateway/lists/lists.ts index a1552de861..716fcd5834 100644 --- a/src/resources/zero-trust/gateway/lists/lists.ts +++ b/src/resources/zero-trust/gateway/lists/lists.ts @@ -45,11 +45,8 @@ export class Lists extends APIResource { params: ListListParams, options?: Core.RequestOptions, ): Core.PagePromise { - const { account_id, ...query } = params; - return this._client.getAPIList(`/accounts/${account_id}/gateway/lists`, GatewayListsSinglePage, { - query, - ...options, - }); + const { account_id } = params; + return this._client.getAPIList(`/accounts/${account_id}/gateway/lists`, GatewayListsSinglePage, options); } /** @@ -106,8 +103,6 @@ export interface GatewayItem { } export interface GatewayItemParam { - created_at?: string; - /** * The value of the item in a list. */ @@ -223,15 +218,7 @@ export interface ListUpdateParams { } export interface ListListParams { - /** - * Path param: - */ account_id: string; - - /** - * Query param: The type of list. - */ - type?: 'SERIAL' | 'URL' | 'DOMAIN' | 'EMAIL' | 'IP'; } export interface ListDeleteParams { diff --git a/src/resources/zero-trust/gateway/rules.ts b/src/resources/zero-trust/gateway/rules.ts index fcb0347e7d..dd28917ea9 100644 --- a/src/resources/zero-trust/gateway/rules.ts +++ b/src/resources/zero-trust/gateway/rules.ts @@ -335,13 +335,6 @@ export interface RuleSetting { */ egress?: RuleSetting.Egress; - /** - * Set to true, to ignore the category matches at CNAME domains in a response. If - * unchecked, the categories in this rule will be checked against all the CNAME - * domain categories in a response. - */ - ignore_cname_category_matches?: boolean; - /** * INSECURE - disable DNSSEC validation (for Allow actions). */ @@ -414,27 +407,27 @@ export namespace RuleSetting { */ export interface BisoAdminControls { /** - * Set to false to enable copy-pasting. + * Set to true to enable copy-pasting. */ dcp?: boolean; /** - * Set to false to enable downloading. + * Set to true to enable downloading. */ dd?: boolean; /** - * Set to false to enable keyboard usage. + * Set to true to enable keyboard usage. */ dk?: boolean; /** - * Set to false to enable printing. + * Set to true to enable printing. */ dp?: boolean; /** - * Set to false to enable uploading. + * Set to true to enable uploading. */ du?: boolean; } @@ -610,13 +603,6 @@ export interface RuleSettingParam { */ egress?: RuleSettingParam.Egress; - /** - * Set to true, to ignore the category matches at CNAME domains in a response. If - * unchecked, the categories in this rule will be checked against all the CNAME - * domain categories in a response. - */ - ignore_cname_category_matches?: boolean; - /** * INSECURE - disable DNSSEC validation (for Allow actions). */ @@ -689,27 +675,27 @@ export namespace RuleSettingParam { */ export interface BisoAdminControls { /** - * Set to false to enable copy-pasting. + * Set to true to enable copy-pasting. */ dcp?: boolean; /** - * Set to false to enable downloading. + * Set to true to enable downloading. */ dd?: boolean; /** - * Set to false to enable keyboard usage. + * Set to true to enable keyboard usage. */ dk?: boolean; /** - * Set to false to enable printing. + * Set to true to enable printing. */ dp?: boolean; /** - * Set to false to enable uploading. + * Set to true to enable uploading. */ du?: boolean; } diff --git a/tests/api-resources/zero-trust/gateway/configurations.test.ts b/tests/api-resources/zero-trust/gateway/configurations.test.ts index b6f70c8bd3..bbe8b139a3 100644 --- a/tests/api-resources/zero-trust/gateway/configurations.test.ts +++ b/tests/api-resources/zero-trust/gateway/configurations.test.ts @@ -47,7 +47,6 @@ describe('resource configurations', () => { }, body_scanning: { inspection_mode: 'deep' }, browser_isolation: { non_identity_enabled: true, url_browser_isolation_enabled: true }, - certificate: { id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, custom_certificate: { enabled: true, id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, extended_email_matching: { enabled: true }, fips: { tls: true }, @@ -94,7 +93,6 @@ describe('resource configurations', () => { }, body_scanning: { inspection_mode: 'deep' }, browser_isolation: { non_identity_enabled: true, url_browser_isolation_enabled: true }, - certificate: { id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, custom_certificate: { enabled: true, id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, extended_email_matching: { enabled: true }, fips: { tls: true }, diff --git a/tests/api-resources/zero-trust/gateway/lists/lists.test.ts b/tests/api-resources/zero-trust/gateway/lists/lists.test.ts index a7c35b838f..94bd368d9c 100644 --- a/tests/api-resources/zero-trust/gateway/lists/lists.test.ts +++ b/tests/api-resources/zero-trust/gateway/lists/lists.test.ts @@ -31,11 +31,7 @@ describe('resource lists', () => { name: 'Admin Serial Numbers', type: 'SERIAL', description: 'The serial numbers for administrators', - items: [ - { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, - { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, - { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, - ], + items: [{ value: '8GE8721REF' }, { value: '8GE8721REF' }, { value: '8GE8721REF' }], }); }); @@ -77,7 +73,6 @@ describe('resource lists', () => { test('list: required and optional params', async () => { const response = await cloudflare.zeroTrust.gateway.lists.list({ account_id: '699d98642c564d2e855e9661899b7252', - type: 'SERIAL', }); }); @@ -117,11 +112,7 @@ describe('resource lists', () => { test('edit: required and optional params', async () => { const response = await cloudflare.zeroTrust.gateway.lists.edit('f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { account_id: '699d98642c564d2e855e9661899b7252', - append: [ - { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, - { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, - { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, - ], + append: [{ value: '8GE8721REF' }, { value: '8GE8721REF' }, { value: '8GE8721REF' }], remove: ['8GE8721REF', '8GE8721REF', '8GE8721REF'], }); }); diff --git a/tests/api-resources/zero-trust/gateway/rules.test.ts b/tests/api-resources/zero-trust/gateway/rules.test.ts index f883ea6515..c0823a69db 100644 --- a/tests/api-resources/zero-trust/gateway/rules.test.ts +++ b/tests/api-resources/zero-trust/gateway/rules.test.ts @@ -88,7 +88,6 @@ describe('resource rules', () => { ], }, egress: { ipv4: '192.0.2.2', ipv4_fallback: '192.0.2.3', ipv6: '2001:DB8::/64' }, - ignore_cname_category_matches: true, insecure_disable_dnssec_validation: false, ip_categories: true, ip_indicator_feeds: true, @@ -192,7 +191,6 @@ describe('resource rules', () => { ], }, egress: { ipv4: '192.0.2.2', ipv4_fallback: '192.0.2.3', ipv6: '2001:DB8::/64' }, - ignore_cname_category_matches: true, insecure_disable_dnssec_validation: false, ip_categories: true, ip_indicator_feeds: true, From bfc9b67a93f2c186f1c26066ca9de347f5e24644 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:27:08 +0000 Subject: [PATCH 09/45] feat(api): OpenAPI spec update via Stainless API (#982) --- .stats.yml | 2 +- .../zero-trust/gateway/configurations.ts | 54 ++++++++++++++++--- .../zero-trust/gateway/lists/lists.ts | 17 +++++- src/resources/zero-trust/gateway/rules.ts | 34 ++++++++---- .../zero-trust/gateway/configurations.test.ts | 2 + .../zero-trust/gateway/lists/lists.test.ts | 13 ++++- .../zero-trust/gateway/rules.test.ts | 2 + 7 files changed, 103 insertions(+), 21 deletions(-) diff --git a/.stats.yml b/.stats.yml index d1202adc94..6d986a26f7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a4ad69b707d0e14c7a716a22c876ab03c40d8aefa59eec101c5c52260cb860f3.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml diff --git a/src/resources/zero-trust/gateway/configurations.ts b/src/resources/zero-trust/gateway/configurations.ts index 8918b4bd21..f297cc6b20 100644 --- a/src/resources/zero-trust/gateway/configurations.ts +++ b/src/resources/zero-trust/gateway/configurations.ts @@ -25,8 +25,8 @@ export class Configurations extends APIResource { * Patches the current Zero Trust account configuration. This endpoint can update a * single subcollection of settings such as `antivirus`, `tls_decrypt`, * `activity_log`, `block_page`, `browser_isolation`, `fips`, `body_scanning`, or - * `custom_certificate`, without updating the entire configuration object. Returns - * an error if any collection of settings is not properly configured. + * `certificate`, without updating the entire configuration object. Returns an + * error if any collection of settings is not properly configured. */ edit( params: ConfigurationEditParams, @@ -280,7 +280,8 @@ export interface BrowserIsolationSettingsParam { } /** - * Custom certificate settings for BYO-PKI. + * @deprecated: Custom certificate settings for BYO-PKI. (deprecated and replaced + * by `certificate`) */ export interface CustomCertificateSettings { /** @@ -302,7 +303,8 @@ export interface CustomCertificateSettings { } /** - * Custom certificate settings for BYO-PKI. + * @deprecated: Custom certificate settings for BYO-PKI. (deprecated and replaced + * by `certificate`) */ export interface CustomCertificateSettingsParam { /** @@ -388,7 +390,14 @@ export interface GatewayConfigurationSettings { browser_isolation?: BrowserIsolationSettings; /** - * Custom certificate settings for BYO-PKI. + * Certificate settings for Gateway TLS interception. If not specified, the + * Cloudflare Root CA will be used. + */ + certificate?: GatewayConfigurationSettings.Certificate; + + /** + * @deprecated: Custom certificate settings for BYO-PKI. (deprecated and replaced + * by `certificate`) */ custom_certificate?: CustomCertificateSettings; @@ -413,6 +422,19 @@ export interface GatewayConfigurationSettings { tls_decrypt?: TLSSettings; } +export namespace GatewayConfigurationSettings { + /** + * Certificate settings for Gateway TLS interception. If not specified, the + * Cloudflare Root CA will be used. + */ + export interface Certificate { + /** + * UUID of certificate to be used for interception. + */ + id: string; + } +} + /** * account settings. */ @@ -443,7 +465,14 @@ export interface GatewayConfigurationSettingsParam { browser_isolation?: BrowserIsolationSettingsParam; /** - * Custom certificate settings for BYO-PKI. + * Certificate settings for Gateway TLS interception. If not specified, the + * Cloudflare Root CA will be used. + */ + certificate?: GatewayConfigurationSettingsParam.Certificate; + + /** + * @deprecated: Custom certificate settings for BYO-PKI. (deprecated and replaced + * by `certificate`) */ custom_certificate?: CustomCertificateSettingsParam; @@ -468,6 +497,19 @@ export interface GatewayConfigurationSettingsParam { tls_decrypt?: TLSSettingsParam; } +export namespace GatewayConfigurationSettingsParam { + /** + * Certificate settings for Gateway TLS interception. If not specified, the + * Cloudflare Root CA will be used. + */ + export interface Certificate { + /** + * UUID of certificate to be used for interception. + */ + id: string; + } +} + /** * Configure a message to display on the user's device when an antivirus search is * performed. diff --git a/src/resources/zero-trust/gateway/lists/lists.ts b/src/resources/zero-trust/gateway/lists/lists.ts index 716fcd5834..a1552de861 100644 --- a/src/resources/zero-trust/gateway/lists/lists.ts +++ b/src/resources/zero-trust/gateway/lists/lists.ts @@ -45,8 +45,11 @@ export class Lists extends APIResource { params: ListListParams, options?: Core.RequestOptions, ): Core.PagePromise { - const { account_id } = params; - return this._client.getAPIList(`/accounts/${account_id}/gateway/lists`, GatewayListsSinglePage, options); + const { account_id, ...query } = params; + return this._client.getAPIList(`/accounts/${account_id}/gateway/lists`, GatewayListsSinglePage, { + query, + ...options, + }); } /** @@ -103,6 +106,8 @@ export interface GatewayItem { } export interface GatewayItemParam { + created_at?: string; + /** * The value of the item in a list. */ @@ -218,7 +223,15 @@ export interface ListUpdateParams { } export interface ListListParams { + /** + * Path param: + */ account_id: string; + + /** + * Query param: The type of list. + */ + type?: 'SERIAL' | 'URL' | 'DOMAIN' | 'EMAIL' | 'IP'; } export interface ListDeleteParams { diff --git a/src/resources/zero-trust/gateway/rules.ts b/src/resources/zero-trust/gateway/rules.ts index dd28917ea9..fcb0347e7d 100644 --- a/src/resources/zero-trust/gateway/rules.ts +++ b/src/resources/zero-trust/gateway/rules.ts @@ -335,6 +335,13 @@ export interface RuleSetting { */ egress?: RuleSetting.Egress; + /** + * Set to true, to ignore the category matches at CNAME domains in a response. If + * unchecked, the categories in this rule will be checked against all the CNAME + * domain categories in a response. + */ + ignore_cname_category_matches?: boolean; + /** * INSECURE - disable DNSSEC validation (for Allow actions). */ @@ -407,27 +414,27 @@ export namespace RuleSetting { */ export interface BisoAdminControls { /** - * Set to true to enable copy-pasting. + * Set to false to enable copy-pasting. */ dcp?: boolean; /** - * Set to true to enable downloading. + * Set to false to enable downloading. */ dd?: boolean; /** - * Set to true to enable keyboard usage. + * Set to false to enable keyboard usage. */ dk?: boolean; /** - * Set to true to enable printing. + * Set to false to enable printing. */ dp?: boolean; /** - * Set to true to enable uploading. + * Set to false to enable uploading. */ du?: boolean; } @@ -603,6 +610,13 @@ export interface RuleSettingParam { */ egress?: RuleSettingParam.Egress; + /** + * Set to true, to ignore the category matches at CNAME domains in a response. If + * unchecked, the categories in this rule will be checked against all the CNAME + * domain categories in a response. + */ + ignore_cname_category_matches?: boolean; + /** * INSECURE - disable DNSSEC validation (for Allow actions). */ @@ -675,27 +689,27 @@ export namespace RuleSettingParam { */ export interface BisoAdminControls { /** - * Set to true to enable copy-pasting. + * Set to false to enable copy-pasting. */ dcp?: boolean; /** - * Set to true to enable downloading. + * Set to false to enable downloading. */ dd?: boolean; /** - * Set to true to enable keyboard usage. + * Set to false to enable keyboard usage. */ dk?: boolean; /** - * Set to true to enable printing. + * Set to false to enable printing. */ dp?: boolean; /** - * Set to true to enable uploading. + * Set to false to enable uploading. */ du?: boolean; } diff --git a/tests/api-resources/zero-trust/gateway/configurations.test.ts b/tests/api-resources/zero-trust/gateway/configurations.test.ts index bbe8b139a3..b6f70c8bd3 100644 --- a/tests/api-resources/zero-trust/gateway/configurations.test.ts +++ b/tests/api-resources/zero-trust/gateway/configurations.test.ts @@ -47,6 +47,7 @@ describe('resource configurations', () => { }, body_scanning: { inspection_mode: 'deep' }, browser_isolation: { non_identity_enabled: true, url_browser_isolation_enabled: true }, + certificate: { id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, custom_certificate: { enabled: true, id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, extended_email_matching: { enabled: true }, fips: { tls: true }, @@ -93,6 +94,7 @@ describe('resource configurations', () => { }, body_scanning: { inspection_mode: 'deep' }, browser_isolation: { non_identity_enabled: true, url_browser_isolation_enabled: true }, + certificate: { id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, custom_certificate: { enabled: true, id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, extended_email_matching: { enabled: true }, fips: { tls: true }, diff --git a/tests/api-resources/zero-trust/gateway/lists/lists.test.ts b/tests/api-resources/zero-trust/gateway/lists/lists.test.ts index 94bd368d9c..a7c35b838f 100644 --- a/tests/api-resources/zero-trust/gateway/lists/lists.test.ts +++ b/tests/api-resources/zero-trust/gateway/lists/lists.test.ts @@ -31,7 +31,11 @@ describe('resource lists', () => { name: 'Admin Serial Numbers', type: 'SERIAL', description: 'The serial numbers for administrators', - items: [{ value: '8GE8721REF' }, { value: '8GE8721REF' }, { value: '8GE8721REF' }], + items: [ + { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, + { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, + { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, + ], }); }); @@ -73,6 +77,7 @@ describe('resource lists', () => { test('list: required and optional params', async () => { const response = await cloudflare.zeroTrust.gateway.lists.list({ account_id: '699d98642c564d2e855e9661899b7252', + type: 'SERIAL', }); }); @@ -112,7 +117,11 @@ describe('resource lists', () => { test('edit: required and optional params', async () => { const response = await cloudflare.zeroTrust.gateway.lists.edit('f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { account_id: '699d98642c564d2e855e9661899b7252', - append: [{ value: '8GE8721REF' }, { value: '8GE8721REF' }, { value: '8GE8721REF' }], + append: [ + { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, + { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, + { created_at: '2014-01-01T05:20:00.12345Z', value: '8GE8721REF' }, + ], remove: ['8GE8721REF', '8GE8721REF', '8GE8721REF'], }); }); diff --git a/tests/api-resources/zero-trust/gateway/rules.test.ts b/tests/api-resources/zero-trust/gateway/rules.test.ts index c0823a69db..f883ea6515 100644 --- a/tests/api-resources/zero-trust/gateway/rules.test.ts +++ b/tests/api-resources/zero-trust/gateway/rules.test.ts @@ -88,6 +88,7 @@ describe('resource rules', () => { ], }, egress: { ipv4: '192.0.2.2', ipv4_fallback: '192.0.2.3', ipv6: '2001:DB8::/64' }, + ignore_cname_category_matches: true, insecure_disable_dnssec_validation: false, ip_categories: true, ip_indicator_feeds: true, @@ -191,6 +192,7 @@ describe('resource rules', () => { ], }, egress: { ipv4: '192.0.2.2', ipv4_fallback: '192.0.2.3', ipv6: '2001:DB8::/64' }, + ignore_cname_category_matches: true, insecure_disable_dnssec_validation: false, ip_categories: true, ip_indicator_feeds: true, From f1927684a0c49bd02b678b914d6dc0a2851c536a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:29:30 +0000 Subject: [PATCH 10/45] feat(api): OpenAPI spec update via Stainless API (#983) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6d986a26f7..db0943d3d7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml From 9dadb45a7109e926770d45c9df18052864988b84 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:33:56 +0000 Subject: [PATCH 11/45] feat(api): OpenAPI spec update via Stainless API (#984) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index db0943d3d7..6d986a26f7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml From 8615203bea1924224bcdfee3cd44f4857b005d17 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:36:19 +0000 Subject: [PATCH 12/45] feat(api): OpenAPI spec update via Stainless API (#985) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6d986a26f7..e8e96654c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml From ac9c2b056ea9dc79d47d7f8a86d80c8530f8003e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:38:32 +0000 Subject: [PATCH 13/45] feat(api): OpenAPI spec update via Stainless API (#986) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e8e96654c4..6d986a26f7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml From a1c7011daf924dea782692624f4b9e49c0ae5472 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:40:52 +0000 Subject: [PATCH 14/45] feat(api): OpenAPI spec update via Stainless API (#987) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6d986a26f7..e8e96654c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml From 1249608f9b044048a9c0c75a7b2786b50d30cf94 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 16:08:53 +0000 Subject: [PATCH 15/45] feat(api): OpenAPI spec update via Stainless API (#988) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e8e96654c4..6d986a26f7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml From 15d17f494c6662513e07d4bec41c4370f1bc75a5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 16:14:04 +0000 Subject: [PATCH 16/45] feat(api): OpenAPI spec update via Stainless API (#989) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6d986a26f7..db0943d3d7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml From 9320192668997945ffd09a6211cddca799bc8721 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 16:39:49 +0000 Subject: [PATCH 17/45] feat(api): OpenAPI spec update via Stainless API (#990) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index db0943d3d7..e8e96654c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml From 79cb0c632be262a6f4e1214f733860a37b7de23c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 16:43:07 +0000 Subject: [PATCH 18/45] feat(api): OpenAPI spec update via Stainless API (#991) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e8e96654c4..db0943d3d7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml From b2956c03a30505980a9f1403253a5c6add10967f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 16:48:17 +0000 Subject: [PATCH 19/45] feat(api): OpenAPI spec update via Stainless API (#992) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index db0943d3d7..6d986a26f7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml From 3ae06e8afebad40fcb479db9de9e15cf85c78500 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 17:09:24 +0000 Subject: [PATCH 20/45] feat(api): OpenAPI spec update via Stainless API (#993) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6d986a26f7..9a6188f099 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c6e460b4a34d21b666d639912027e5225b6d5e98748056a269965b196157ec.yml From fe1fa69eb374d138139f1813986e1e5b5632aa5f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 17:11:48 +0000 Subject: [PATCH 21/45] feat(api): OpenAPI spec update via Stainless API (#994) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 9a6188f099..6d986a26f7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c6e460b4a34d21b666d639912027e5225b6d5e98748056a269965b196157ec.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml From dcfe2fbae026d9413fa04b5ac6ae6772c65ad53c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 17:18:42 +0000 Subject: [PATCH 22/45] feat(api): OpenAPI spec update via Stainless API (#995) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6d986a26f7..e8e96654c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml From 52fa755c2d13baa70ad7ac96c928e6c1ce52d1b0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 17:26:06 +0000 Subject: [PATCH 23/45] feat(api): OpenAPI spec update via Stainless API (#996) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e8e96654c4..db0943d3d7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml From 0c96bbdab0bb581aec0148d1634a163ee32a3ea7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 18:41:21 +0000 Subject: [PATCH 24/45] feat(api): OpenAPI spec update via Stainless API (#997) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index db0943d3d7..6d986a26f7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml From 336c4ec2e028bbf588fd9e3410d157785cf35794 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 18:44:00 +0000 Subject: [PATCH 25/45] feat(api): OpenAPI spec update via Stainless API (#998) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6d986a26f7..e8e96654c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml From 7062a47be14c5bda51a28fce8417f5c682f50469 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 18:55:57 +0000 Subject: [PATCH 26/45] feat(api): OpenAPI spec update via Stainless API (#999) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e8e96654c4..6d986a26f7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml From 893b2b78fc5c3a60dd9be30ec8bea86bfa75f9cf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 18:58:38 +0000 Subject: [PATCH 27/45] feat(api): OpenAPI spec update via Stainless API (#1000) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6d986a26f7..e8e96654c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml From 5eba581f8230c03a72f76eef9ebff71380497568 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 19:01:01 +0000 Subject: [PATCH 28/45] feat(api): OpenAPI spec update via Stainless API (#1001) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e8e96654c4..6d986a26f7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml From 3ef9c676471c62fcca8190a9d64ccebb177acaee Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 19:03:18 +0000 Subject: [PATCH 29/45] feat(api): OpenAPI spec update via Stainless API (#1002) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6d986a26f7..9a6188f099 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c6e460b4a34d21b666d639912027e5225b6d5e98748056a269965b196157ec.yml From 1ac908a59fe35cdf707f687f197e9111d1afdf7c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 20:32:36 +0000 Subject: [PATCH 30/45] feat(api): OpenAPI spec update via Stainless API (#1003) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 9a6188f099..6d986a26f7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c6e460b4a34d21b666d639912027e5225b6d5e98748056a269965b196157ec.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml From ff7a4167ff88d0788ba7752774d660ab3778f5d2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 20:34:56 +0000 Subject: [PATCH 31/45] feat(api): OpenAPI spec update via Stainless API (#1004) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6d986a26f7..9a6188f099 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c6e460b4a34d21b666d639912027e5225b6d5e98748056a269965b196157ec.yml From b82d6ae24402b6e016d12079bf082e961c323791 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 21:26:52 +0000 Subject: [PATCH 32/45] feat(api): OpenAPI spec update via Stainless API (#1005) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 9a6188f099..6d986a26f7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c6e460b4a34d21b666d639912027e5225b6d5e98748056a269965b196157ec.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml From 6f2f303bccb433c2cafdcb4ec70b58390a43097c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 21:29:24 +0000 Subject: [PATCH 33/45] feat(api): OpenAPI spec update via Stainless API (#1006) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6d986a26f7..e8e96654c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db421d07d58c7abf1af471a342e12789def4e83543dccea6aec34b8667646028.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml From a77513608e436350e2ba0ee6fa6196ed541fa2a0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 21:31:50 +0000 Subject: [PATCH 34/45] feat(api): OpenAPI spec update via Stainless API (#1007) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e8e96654c4..9a6188f099 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c6e460b4a34d21b666d639912027e5225b6d5e98748056a269965b196157ec.yml From 78c1f6d4702a11a197a131c0f09e59ba9b985632 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 21:36:28 +0000 Subject: [PATCH 35/45] feat(api): OpenAPI spec update via Stainless API (#1008) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 9a6188f099..db0943d3d7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c6e460b4a34d21b666d639912027e5225b6d5e98748056a269965b196157ec.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml From 1aa8f65064134ee0a67488b945af33789b9320e4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 21:41:18 +0000 Subject: [PATCH 36/45] feat(api): OpenAPI spec update via Stainless API (#1009) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index db0943d3d7..e8e96654c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml From 287efbfde87de2a12019b8e22e42e6a14ab46a68 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 21:45:52 +0000 Subject: [PATCH 37/45] feat(api): OpenAPI spec update via Stainless API (#1010) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e8e96654c4..db0943d3d7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml From bd685366786f815bb9da4d26286ae8be81f9391c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 21:48:10 +0000 Subject: [PATCH 38/45] feat(api): OpenAPI spec update via Stainless API (#1011) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index db0943d3d7..e8e96654c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml From 80301ca8a9aac1be08b7ba8e4439ad64a730dccf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 00:16:30 +0000 Subject: [PATCH 39/45] feat(api): OpenAPI spec update via Stainless API (#1012) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e8e96654c4..9a6188f099 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c6e460b4a34d21b666d639912027e5225b6d5e98748056a269965b196157ec.yml From a2b6200f4ea84c23913282875514379e1c5f8b8b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 00:26:16 +0000 Subject: [PATCH 40/45] feat(api): OpenAPI spec update via Stainless API (#1013) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 9a6188f099..e8e96654c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c6e460b4a34d21b666d639912027e5225b6d5e98748056a269965b196157ec.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml From 34d5a40f8245a6dcdf828299ae06629a69e5dcf8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 00:28:42 +0000 Subject: [PATCH 41/45] feat(api): OpenAPI spec update via Stainless API (#1014) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e8e96654c4..db0943d3d7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml From ee32177af8937651d0b3a0dfb867113503bc0e08 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 00:31:01 +0000 Subject: [PATCH 42/45] feat(api): OpenAPI spec update via Stainless API (#1015) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index db0943d3d7..e8e96654c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml From e0cc0ec0c523268fc5f3b092ffc1f2cd6d56c045 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 00:33:27 +0000 Subject: [PATCH 43/45] feat(api): OpenAPI spec update via Stainless API (#1016) --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e8e96654c4..db0943d3d7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad39d8181627a820e39f80ef9591f6b22b652379be11d473f3840201d66eba38.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml From 6f020bdc9db53a54b43cd48585cd831eaff6b9db Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 00:43:39 +0000 Subject: [PATCH 44/45] feat(api): update via SDK Studio (#1017) --- .stats.yml | 2 +- api.md | 13 ++-- src/resources/api-gateway/api-gateway.ts | 6 -- src/resources/api-gateway/index.ts | 1 - .../api-gateway/schema-validation.ts | 59 ------------------ src/resources/api-gateway/settings/index.ts | 4 +- .../api-gateway/settings/schema-validation.ts | 62 ++++++++++++++----- .../api-gateway/settings/settings.ts | 28 ++++++++- .../api-gateway/schema-validation.test.ts | 33 ---------- .../settings/schema-validation.test.ts | 21 +++++++ 10 files changed, 101 insertions(+), 128 deletions(-) delete mode 100644 src/resources/api-gateway/schema-validation.ts delete mode 100644 tests/api-resources/api-gateway/schema-validation.test.ts diff --git a/.stats.yml b/.stats.yml index db0943d3d7..9a6188f099 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1348 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36a9d717773ebb507fd0744af578aa64b697030857c602c77458156a911fcab9.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c6e460b4a34d21b666d639912027e5225b6d5e98748056a269965b196157ec.yml diff --git a/api.md b/api.md index 56966b0abc..7a3ab0b0c3 100644 --- a/api.md +++ b/api.md @@ -2631,15 +2631,16 @@ Methods: ## Settings -### SchemaValidation - Types: -- Settings +- Settings + +### SchemaValidation Methods: - client.apiGateway.settings.schemaValidation.update({ ...params }) -> Settings +- client.apiGateway.settings.schemaValidation.edit({ ...params }) -> Settings - client.apiGateway.settings.schemaValidation.get({ ...params }) -> Settings ## UserSchemas @@ -2669,12 +2670,6 @@ Methods: - client.apiGateway.userSchemas.operations.list(schemaId, { ...params }) -> OperationListResponsesSinglePage -## SchemaValidation - -Methods: - -- client.apiGateway.schemaValidation.edit({ ...params }) -> Settings - # ManagedHeaders Types: diff --git a/src/resources/api-gateway/api-gateway.ts b/src/resources/api-gateway/api-gateway.ts index 0957813e97..ee844ca289 100644 --- a/src/resources/api-gateway/api-gateway.ts +++ b/src/resources/api-gateway/api-gateway.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as ConfigurationsAPI from './configurations'; -import * as SchemaValidationAPI from './schema-validation'; import * as SchemasAPI from './schemas'; import * as DiscoveryAPI from './discovery/discovery'; import * as OperationsAPI from './operations/operations'; @@ -16,9 +15,6 @@ export class APIGateway extends APIResource { schemas: SchemasAPI.Schemas = new SchemasAPI.Schemas(this._client); settings: SettingsAPI.Settings = new SettingsAPI.Settings(this._client); userSchemas: UserSchemasAPI.UserSchemas = new UserSchemasAPI.UserSchemas(this._client); - schemaValidation: SchemaValidationAPI.SchemaValidation = new SchemaValidationAPI.SchemaValidation( - this._client, - ); } export namespace APIGateway { @@ -55,6 +51,4 @@ export namespace APIGateway { export import UserSchemaDeleteParams = UserSchemasAPI.UserSchemaDeleteParams; export import UserSchemaEditParams = UserSchemasAPI.UserSchemaEditParams; export import UserSchemaGetParams = UserSchemasAPI.UserSchemaGetParams; - export import SchemaValidation = SchemaValidationAPI.SchemaValidation; - export import SchemaValidationEditParams = SchemaValidationAPI.SchemaValidationEditParams; } diff --git a/src/resources/api-gateway/index.ts b/src/resources/api-gateway/index.ts index 80ea14c8e8..4f88ad0080 100644 --- a/src/resources/api-gateway/index.ts +++ b/src/resources/api-gateway/index.ts @@ -40,5 +40,4 @@ export { UserSchemas, } from './user-schemas/index'; export { SchemaListResponse, SchemaListParams, Schemas } from './schemas'; -export { SchemaValidationEditParams, SchemaValidation } from './schema-validation'; export { Settings } from './settings/index'; diff --git a/src/resources/api-gateway/schema-validation.ts b/src/resources/api-gateway/schema-validation.ts deleted file mode 100644 index cc8b8d52dd..0000000000 --- a/src/resources/api-gateway/schema-validation.ts +++ /dev/null @@ -1,59 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -import * as Core from '../../core'; -import { APIResource } from '../../resource'; -import * as SchemaValidationAPI from './schema-validation'; -import * as SettingsSchemaValidationAPI from './settings/schema-validation'; - -export class SchemaValidation extends APIResource { - /** - * Updates zone level schema validation settings on the zone - */ - edit( - params: SchemaValidationEditParams, - options?: Core.RequestOptions, - ): Core.APIPromise { - const { zone_id, ...body } = params; - return this._client.patch(`/zones/${zone_id}/api_gateway/settings/schema_validation`, { - body, - ...options, - }); - } -} - -export interface SchemaValidationEditParams { - /** - * Path param: Identifier - */ - zone_id: string; - - /** - * Body param: The default mitigation action used when there is no mitigation - * action defined on the operation Mitigation actions are as follows: - * - * - `log` - log request when request does not conform to schema - * - `block` - deny access to the site when request does not conform to schema - * - * A special value of of `none` will skip running schema validation entirely for - * the request when there is no mitigation action defined on the operation - * - * `null` will have no effect. - */ - validation_default_mitigation_action?: 'none' | 'log' | 'block' | null; - - /** - * Body param: When set, this overrides both zone level and operation level - * mitigation actions. - * - * - `none` will skip running schema validation entirely for the request - * - * To clear any override, use the special value `disable_override` - * - * `null` will have no effect. - */ - validation_override_mitigation_action?: 'none' | 'disable_override' | null; -} - -export namespace SchemaValidation { - export import SchemaValidationEditParams = SchemaValidationAPI.SchemaValidationEditParams; -} diff --git a/src/resources/api-gateway/settings/index.ts b/src/resources/api-gateway/settings/index.ts index dd78b487cc..d7a6691090 100644 --- a/src/resources/api-gateway/settings/index.ts +++ b/src/resources/api-gateway/settings/index.ts @@ -1,9 +1,9 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -export { Settings } from './settings'; export { - Settings, SchemaValidationUpdateParams, + SchemaValidationEditParams, SchemaValidationGetParams, SchemaValidation, } from './schema-validation'; +export { Settings } from './settings'; diff --git a/src/resources/api-gateway/settings/schema-validation.ts b/src/resources/api-gateway/settings/schema-validation.ts index ef00ebf503..4d06ce1f2b 100644 --- a/src/resources/api-gateway/settings/schema-validation.ts +++ b/src/resources/api-gateway/settings/schema-validation.ts @@ -3,29 +3,55 @@ import * as Core from '../../../core'; import { APIResource } from '../../../resource'; import * as SchemaValidationAPI from './schema-validation'; +import * as SettingsAPI from './settings'; export class SchemaValidation extends APIResource { /** * Updates zone level schema validation settings on the zone */ - update(params: SchemaValidationUpdateParams, options?: Core.RequestOptions): Core.APIPromise { + update( + params: SchemaValidationUpdateParams, + options?: Core.RequestOptions, + ): Core.APIPromise { const { zone_id, ...body } = params; return this._client.put(`/zones/${zone_id}/api_gateway/settings/schema_validation`, { body, ...options }); } + /** + * Updates zone level schema validation settings on the zone + */ + edit( + params: SchemaValidationEditParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { zone_id, ...body } = params; + return this._client.patch(`/zones/${zone_id}/api_gateway/settings/schema_validation`, { + body, + ...options, + }); + } + /** * Retrieves zone level schema validation settings currently set on the zone */ - get(params: SchemaValidationGetParams, options?: Core.RequestOptions): Core.APIPromise { + get( + params: SchemaValidationGetParams, + options?: Core.RequestOptions, + ): Core.APIPromise { const { zone_id } = params; return this._client.get(`/zones/${zone_id}/api_gateway/settings/schema_validation`, options); } } -export interface Settings { +export interface SchemaValidationUpdateParams { /** - * The default mitigation action used when there is no mitigation action defined on - * the operation + * Path param: Identifier + */ + zone_id: string; + + /** + * Body param: The default mitigation action used when there is no mitigation + * action defined on the operation * * Mitigation actions are as follows: * @@ -35,18 +61,21 @@ export interface Settings { * A special value of of `none` will skip running schema validation entirely for * the request when there is no mitigation action defined on the operation */ - validation_default_mitigation_action?: 'none' | 'log' | 'block'; + validation_default_mitigation_action: 'none' | 'log' | 'block'; /** - * When set, this overrides both zone level and operation level mitigation actions. + * Body param: When set, this overrides both zone level and operation level + * mitigation actions. * * - `none` will skip running schema validation entirely for the request * - `null` indicates that no override is in place + * + * To clear any override, use the special value `disable_override` or `null` */ - validation_override_mitigation_action?: 'none' | null; + validation_override_mitigation_action?: 'none' | 'disable_override' | null; } -export interface SchemaValidationUpdateParams { +export interface SchemaValidationEditParams { /** * Path param: Identifier */ @@ -54,26 +83,27 @@ export interface SchemaValidationUpdateParams { /** * Body param: The default mitigation action used when there is no mitigation - * action defined on the operation - * - * Mitigation actions are as follows: + * action defined on the operation Mitigation actions are as follows: * * - `log` - log request when request does not conform to schema * - `block` - deny access to the site when request does not conform to schema * * A special value of of `none` will skip running schema validation entirely for * the request when there is no mitigation action defined on the operation + * + * `null` will have no effect. */ - validation_default_mitigation_action: 'none' | 'log' | 'block'; + validation_default_mitigation_action?: 'none' | 'log' | 'block' | null; /** * Body param: When set, this overrides both zone level and operation level * mitigation actions. * * - `none` will skip running schema validation entirely for the request - * - `null` indicates that no override is in place * - * To clear any override, use the special value `disable_override` or `null` + * To clear any override, use the special value `disable_override` + * + * `null` will have no effect. */ validation_override_mitigation_action?: 'none' | 'disable_override' | null; } @@ -86,7 +116,7 @@ export interface SchemaValidationGetParams { } export namespace SchemaValidation { - export import Settings = SchemaValidationAPI.Settings; export import SchemaValidationUpdateParams = SchemaValidationAPI.SchemaValidationUpdateParams; + export import SchemaValidationEditParams = SchemaValidationAPI.SchemaValidationEditParams; export import SchemaValidationGetParams = SchemaValidationAPI.SchemaValidationGetParams; } diff --git a/src/resources/api-gateway/settings/settings.ts b/src/resources/api-gateway/settings/settings.ts index ce174db515..46c01c9f25 100644 --- a/src/resources/api-gateway/settings/settings.ts +++ b/src/resources/api-gateway/settings/settings.ts @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../../../resource'; +import * as SettingsAPI from './settings'; import * as SchemaValidationAPI from './schema-validation'; export class Settings extends APIResource { @@ -9,9 +10,34 @@ export class Settings extends APIResource { ); } +export interface Settings { + /** + * The default mitigation action used when there is no mitigation action defined on + * the operation + * + * Mitigation actions are as follows: + * + * - `log` - log request when request does not conform to schema + * - `block` - deny access to the site when request does not conform to schema + * + * A special value of of `none` will skip running schema validation entirely for + * the request when there is no mitigation action defined on the operation + */ + validation_default_mitigation_action?: 'none' | 'log' | 'block'; + + /** + * When set, this overrides both zone level and operation level mitigation actions. + * + * - `none` will skip running schema validation entirely for the request + * - `null` indicates that no override is in place + */ + validation_override_mitigation_action?: 'none' | null; +} + export namespace Settings { + export import Settings = SettingsAPI.Settings; export import SchemaValidation = SchemaValidationAPI.SchemaValidation; - export import Settings = SchemaValidationAPI.Settings; export import SchemaValidationUpdateParams = SchemaValidationAPI.SchemaValidationUpdateParams; + export import SchemaValidationEditParams = SchemaValidationAPI.SchemaValidationEditParams; export import SchemaValidationGetParams = SchemaValidationAPI.SchemaValidationGetParams; } diff --git a/tests/api-resources/api-gateway/schema-validation.test.ts b/tests/api-resources/api-gateway/schema-validation.test.ts deleted file mode 100644 index fd0ea78112..0000000000 --- a/tests/api-resources/api-gateway/schema-validation.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource schemaValidation', () => { - test('edit: only required params', async () => { - const responsePromise = cloudflare.apiGateway.schemaValidation.edit({ - zone_id: '023e105f4ecef8ad9ca31a8372d0c353', - }); - const rawResponse = await responsePromise.asResponse(); - expect(rawResponse).toBeInstanceOf(Response); - const response = await responsePromise; - expect(response).not.toBeInstanceOf(Response); - const dataAndResponse = await responsePromise.withResponse(); - expect(dataAndResponse.data).toBe(response); - expect(dataAndResponse.response).toBe(rawResponse); - }); - - test('edit: required and optional params', async () => { - const response = await cloudflare.apiGateway.schemaValidation.edit({ - zone_id: '023e105f4ecef8ad9ca31a8372d0c353', - validation_default_mitigation_action: 'block', - validation_override_mitigation_action: 'none', - }); - }); -}); diff --git a/tests/api-resources/api-gateway/settings/schema-validation.test.ts b/tests/api-resources/api-gateway/settings/schema-validation.test.ts index c57bcf2868..2f06ec1e95 100644 --- a/tests/api-resources/api-gateway/settings/schema-validation.test.ts +++ b/tests/api-resources/api-gateway/settings/schema-validation.test.ts @@ -32,6 +32,27 @@ describe('resource schemaValidation', () => { }); }); + test('edit: only required params', async () => { + const responsePromise = cloudflare.apiGateway.settings.schemaValidation.edit({ + zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('edit: required and optional params', async () => { + const response = await cloudflare.apiGateway.settings.schemaValidation.edit({ + zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + validation_default_mitigation_action: 'block', + validation_override_mitigation_action: 'none', + }); + }); + test('get: only required params', async () => { const responsePromise = cloudflare.apiGateway.settings.schemaValidation.get({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353', From 9a46b333aa2ce8a214795f961732b040e98c5fb3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 00:44:00 +0000 Subject: [PATCH 45/45] release: 3.4.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 51 +++++++++++++++++++++++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 54 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6110c0f05d..9dc6cef99b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.3.0" + ".": "3.4.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 0650dbd31c..c2db74d427 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,56 @@ # Changelog +## 3.4.0 (2024-06-19) + +Full Changelog: [v3.3.0...v3.4.0](https://github.com/cloudflare/cloudflare-typescript/compare/v3.3.0...v3.4.0) + +### Features + +* **api:** OpenAPI spec update via Stainless API ([#1000](https://github.com/cloudflare/cloudflare-typescript/issues/1000)) ([893b2b7](https://github.com/cloudflare/cloudflare-typescript/commit/893b2b78fc5c3a60dd9be30ec8bea86bfa75f9cf)) +* **api:** OpenAPI spec update via Stainless API ([#1001](https://github.com/cloudflare/cloudflare-typescript/issues/1001)) ([5eba581](https://github.com/cloudflare/cloudflare-typescript/commit/5eba581f8230c03a72f76eef9ebff71380497568)) +* **api:** OpenAPI spec update via Stainless API ([#1002](https://github.com/cloudflare/cloudflare-typescript/issues/1002)) ([3ef9c67](https://github.com/cloudflare/cloudflare-typescript/commit/3ef9c676471c62fcca8190a9d64ccebb177acaee)) +* **api:** OpenAPI spec update via Stainless API ([#1003](https://github.com/cloudflare/cloudflare-typescript/issues/1003)) ([1ac908a](https://github.com/cloudflare/cloudflare-typescript/commit/1ac908a59fe35cdf707f687f197e9111d1afdf7c)) +* **api:** OpenAPI spec update via Stainless API ([#1004](https://github.com/cloudflare/cloudflare-typescript/issues/1004)) ([ff7a416](https://github.com/cloudflare/cloudflare-typescript/commit/ff7a4167ff88d0788ba7752774d660ab3778f5d2)) +* **api:** OpenAPI spec update via Stainless API ([#1005](https://github.com/cloudflare/cloudflare-typescript/issues/1005)) ([b82d6ae](https://github.com/cloudflare/cloudflare-typescript/commit/b82d6ae24402b6e016d12079bf082e961c323791)) +* **api:** OpenAPI spec update via Stainless API ([#1006](https://github.com/cloudflare/cloudflare-typescript/issues/1006)) ([6f2f303](https://github.com/cloudflare/cloudflare-typescript/commit/6f2f303bccb433c2cafdcb4ec70b58390a43097c)) +* **api:** OpenAPI spec update via Stainless API ([#1007](https://github.com/cloudflare/cloudflare-typescript/issues/1007)) ([a775136](https://github.com/cloudflare/cloudflare-typescript/commit/a77513608e436350e2ba0ee6fa6196ed541fa2a0)) +* **api:** OpenAPI spec update via Stainless API ([#1008](https://github.com/cloudflare/cloudflare-typescript/issues/1008)) ([78c1f6d](https://github.com/cloudflare/cloudflare-typescript/commit/78c1f6d4702a11a197a131c0f09e59ba9b985632)) +* **api:** OpenAPI spec update via Stainless API ([#1009](https://github.com/cloudflare/cloudflare-typescript/issues/1009)) ([1aa8f65](https://github.com/cloudflare/cloudflare-typescript/commit/1aa8f65064134ee0a67488b945af33789b9320e4)) +* **api:** OpenAPI spec update via Stainless API ([#1010](https://github.com/cloudflare/cloudflare-typescript/issues/1010)) ([287efbf](https://github.com/cloudflare/cloudflare-typescript/commit/287efbfde87de2a12019b8e22e42e6a14ab46a68)) +* **api:** OpenAPI spec update via Stainless API ([#1011](https://github.com/cloudflare/cloudflare-typescript/issues/1011)) ([bd68536](https://github.com/cloudflare/cloudflare-typescript/commit/bd685366786f815bb9da4d26286ae8be81f9391c)) +* **api:** OpenAPI spec update via Stainless API ([#1012](https://github.com/cloudflare/cloudflare-typescript/issues/1012)) ([80301ca](https://github.com/cloudflare/cloudflare-typescript/commit/80301ca8a9aac1be08b7ba8e4439ad64a730dccf)) +* **api:** OpenAPI spec update via Stainless API ([#1013](https://github.com/cloudflare/cloudflare-typescript/issues/1013)) ([a2b6200](https://github.com/cloudflare/cloudflare-typescript/commit/a2b6200f4ea84c23913282875514379e1c5f8b8b)) +* **api:** OpenAPI spec update via Stainless API ([#1014](https://github.com/cloudflare/cloudflare-typescript/issues/1014)) ([34d5a40](https://github.com/cloudflare/cloudflare-typescript/commit/34d5a40f8245a6dcdf828299ae06629a69e5dcf8)) +* **api:** OpenAPI spec update via Stainless API ([#1015](https://github.com/cloudflare/cloudflare-typescript/issues/1015)) ([ee32177](https://github.com/cloudflare/cloudflare-typescript/commit/ee32177af8937651d0b3a0dfb867113503bc0e08)) +* **api:** OpenAPI spec update via Stainless API ([#1016](https://github.com/cloudflare/cloudflare-typescript/issues/1016)) ([e0cc0ec](https://github.com/cloudflare/cloudflare-typescript/commit/e0cc0ec0c523268fc5f3b092ffc1f2cd6d56c045)) +* **api:** OpenAPI spec update via Stainless API ([#973](https://github.com/cloudflare/cloudflare-typescript/issues/973)) ([798a342](https://github.com/cloudflare/cloudflare-typescript/commit/798a3421c614733b6378c9ed5c0aff40cc134579)) +* **api:** OpenAPI spec update via Stainless API ([#975](https://github.com/cloudflare/cloudflare-typescript/issues/975)) ([b6da688](https://github.com/cloudflare/cloudflare-typescript/commit/b6da688099f86e9e254456be9e0ba7e99f18d1f7)) +* **api:** OpenAPI spec update via Stainless API ([#976](https://github.com/cloudflare/cloudflare-typescript/issues/976)) ([ea4cfc2](https://github.com/cloudflare/cloudflare-typescript/commit/ea4cfc259055e0b2cf00fadc9bed00df38c41542)) +* **api:** OpenAPI spec update via Stainless API ([#977](https://github.com/cloudflare/cloudflare-typescript/issues/977)) ([9a723ce](https://github.com/cloudflare/cloudflare-typescript/commit/9a723ce1ed9f94146df96f82541c61ca458f8736)) +* **api:** OpenAPI spec update via Stainless API ([#978](https://github.com/cloudflare/cloudflare-typescript/issues/978)) ([a5d1c32](https://github.com/cloudflare/cloudflare-typescript/commit/a5d1c324a2243f3dc4353d8fcea0eeeea1dff91a)) +* **api:** OpenAPI spec update via Stainless API ([#979](https://github.com/cloudflare/cloudflare-typescript/issues/979)) ([d52fc46](https://github.com/cloudflare/cloudflare-typescript/commit/d52fc46e568135a9e98075e9bdd96ac8ea09bf44)) +* **api:** OpenAPI spec update via Stainless API ([#980](https://github.com/cloudflare/cloudflare-typescript/issues/980)) ([f60c725](https://github.com/cloudflare/cloudflare-typescript/commit/f60c725b016d792559edb57f9c105d9a11de2ee5)) +* **api:** OpenAPI spec update via Stainless API ([#981](https://github.com/cloudflare/cloudflare-typescript/issues/981)) ([72a11c5](https://github.com/cloudflare/cloudflare-typescript/commit/72a11c5cd6baba1727c6ae51ef9c7197983ce5aa)) +* **api:** OpenAPI spec update via Stainless API ([#982](https://github.com/cloudflare/cloudflare-typescript/issues/982)) ([bfc9b67](https://github.com/cloudflare/cloudflare-typescript/commit/bfc9b67a93f2c186f1c26066ca9de347f5e24644)) +* **api:** OpenAPI spec update via Stainless API ([#983](https://github.com/cloudflare/cloudflare-typescript/issues/983)) ([f192768](https://github.com/cloudflare/cloudflare-typescript/commit/f1927684a0c49bd02b678b914d6dc0a2851c536a)) +* **api:** OpenAPI spec update via Stainless API ([#984](https://github.com/cloudflare/cloudflare-typescript/issues/984)) ([9dadb45](https://github.com/cloudflare/cloudflare-typescript/commit/9dadb45a7109e926770d45c9df18052864988b84)) +* **api:** OpenAPI spec update via Stainless API ([#985](https://github.com/cloudflare/cloudflare-typescript/issues/985)) ([8615203](https://github.com/cloudflare/cloudflare-typescript/commit/8615203bea1924224bcdfee3cd44f4857b005d17)) +* **api:** OpenAPI spec update via Stainless API ([#986](https://github.com/cloudflare/cloudflare-typescript/issues/986)) ([ac9c2b0](https://github.com/cloudflare/cloudflare-typescript/commit/ac9c2b056ea9dc79d47d7f8a86d80c8530f8003e)) +* **api:** OpenAPI spec update via Stainless API ([#987](https://github.com/cloudflare/cloudflare-typescript/issues/987)) ([a1c7011](https://github.com/cloudflare/cloudflare-typescript/commit/a1c7011daf924dea782692624f4b9e49c0ae5472)) +* **api:** OpenAPI spec update via Stainless API ([#988](https://github.com/cloudflare/cloudflare-typescript/issues/988)) ([1249608](https://github.com/cloudflare/cloudflare-typescript/commit/1249608f9b044048a9c0c75a7b2786b50d30cf94)) +* **api:** OpenAPI spec update via Stainless API ([#989](https://github.com/cloudflare/cloudflare-typescript/issues/989)) ([15d17f4](https://github.com/cloudflare/cloudflare-typescript/commit/15d17f494c6662513e07d4bec41c4370f1bc75a5)) +* **api:** OpenAPI spec update via Stainless API ([#990](https://github.com/cloudflare/cloudflare-typescript/issues/990)) ([9320192](https://github.com/cloudflare/cloudflare-typescript/commit/9320192668997945ffd09a6211cddca799bc8721)) +* **api:** OpenAPI spec update via Stainless API ([#991](https://github.com/cloudflare/cloudflare-typescript/issues/991)) ([79cb0c6](https://github.com/cloudflare/cloudflare-typescript/commit/79cb0c632be262a6f4e1214f733860a37b7de23c)) +* **api:** OpenAPI spec update via Stainless API ([#992](https://github.com/cloudflare/cloudflare-typescript/issues/992)) ([b2956c0](https://github.com/cloudflare/cloudflare-typescript/commit/b2956c03a30505980a9f1403253a5c6add10967f)) +* **api:** OpenAPI spec update via Stainless API ([#993](https://github.com/cloudflare/cloudflare-typescript/issues/993)) ([3ae06e8](https://github.com/cloudflare/cloudflare-typescript/commit/3ae06e8afebad40fcb479db9de9e15cf85c78500)) +* **api:** OpenAPI spec update via Stainless API ([#994](https://github.com/cloudflare/cloudflare-typescript/issues/994)) ([fe1fa69](https://github.com/cloudflare/cloudflare-typescript/commit/fe1fa69eb374d138139f1813986e1e5b5632aa5f)) +* **api:** OpenAPI spec update via Stainless API ([#995](https://github.com/cloudflare/cloudflare-typescript/issues/995)) ([dcfe2fb](https://github.com/cloudflare/cloudflare-typescript/commit/dcfe2fbae026d9413fa04b5ac6ae6772c65ad53c)) +* **api:** OpenAPI spec update via Stainless API ([#996](https://github.com/cloudflare/cloudflare-typescript/issues/996)) ([52fa755](https://github.com/cloudflare/cloudflare-typescript/commit/52fa755c2d13baa70ad7ac96c928e6c1ce52d1b0)) +* **api:** OpenAPI spec update via Stainless API ([#997](https://github.com/cloudflare/cloudflare-typescript/issues/997)) ([0c96bbd](https://github.com/cloudflare/cloudflare-typescript/commit/0c96bbdab0bb581aec0148d1634a163ee32a3ea7)) +* **api:** OpenAPI spec update via Stainless API ([#998](https://github.com/cloudflare/cloudflare-typescript/issues/998)) ([336c4ec](https://github.com/cloudflare/cloudflare-typescript/commit/336c4ec2e028bbf588fd9e3410d157785cf35794)) +* **api:** OpenAPI spec update via Stainless API ([#999](https://github.com/cloudflare/cloudflare-typescript/issues/999)) ([7062a47](https://github.com/cloudflare/cloudflare-typescript/commit/7062a47be14c5bda51a28fce8417f5c682f50469)) +* **api:** update via SDK Studio ([#1017](https://github.com/cloudflare/cloudflare-typescript/issues/1017)) ([6f020bd](https://github.com/cloudflare/cloudflare-typescript/commit/6f020bdc9db53a54b43cd48585cd831eaff6b9db)) + ## 3.3.0 (2024-06-18) Full Changelog: [v3.2.0...v3.3.0](https://github.com/cloudflare/cloudflare-typescript/compare/v3.2.0...v3.3.0) diff --git a/package.json b/package.json index c7f7a8117a..ffdd4071a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cloudflare", - "version": "3.3.0", + "version": "3.4.0", "description": "The official TypeScript library for the Cloudflare API", "author": "Cloudflare ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index ab2e905dbf..d8607e3625 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '3.3.0'; // x-release-please-version +export const VERSION = '3.4.0'; // x-release-please-version