From addb38dfc3708d883087ed4e0351b16535e05217 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 12:25:11 +0000
Subject: [PATCH 001/451] chore(internal): remove .eslintcache
---
.eslintcache | 1 -
1 file changed, 1 deletion(-)
delete mode 100644 .eslintcache
diff --git a/.eslintcache b/.eslintcache
deleted file mode 100644
index cd44813307..0000000000
--- a/.eslintcache
+++ /dev/null
@@ -1 +0,0 @@
-[{"/home/tempuser-z687wq/run/codegen-output/cloudflare/cloudflare-node/src/resources/ai/to-markdown.ts":"1"},{"size":1733,"mtime":1759266822909}]
\ No newline at end of file
From 87bc28f3558be008d07e31b5ae7ecf48d5cbd2df Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 12:25:08 +0000
Subject: [PATCH 002/451] chore(api): update composite API spec
---
.stats.yml | 4 +-
api.md | 2 +-
.../alerting/destinations/webhooks.ts | 6 +-
src/resources/alerting/policies.ts | 6 +-
src/resources/pages/index.ts | 1 +
src/resources/pages/pages.ts | 6 +-
src/resources/pages/projects/index.ts | 1 +
src/resources/pages/projects/projects.ts | 22 ++++--
.../r2/super-slurper/connectivity-precheck.ts | 76 +++++++++++++------
src/resources/r2/super-slurper/jobs/jobs.ts | 52 +++++++------
src/resources/radar/as112/summary.ts | 34 ++-------
.../radar/as112/timeseries-groups.ts | 36 ++-------
src/resources/radar/attacks/layer3/summary.ts | 42 ++--------
.../radar/attacks/layer3/timeseries-groups.ts | 42 ++--------
src/resources/radar/attacks/layer7/summary.ts | 42 ++--------
.../radar/attacks/layer7/timeseries-groups.ts | 42 ++--------
src/resources/radar/dns/summary.ts | 54 +++----------
src/resources/radar/dns/timeseries-groups.ts | 60 +++------------
src/resources/radar/email/routing/summary.ts | 36 ++-------
.../radar/email/routing/timeseries-groups.ts | 36 ++-------
src/resources/radar/email/security/summary.ts | 54 +++----------
.../radar/email/security/timeseries-groups.ts | 54 +++----------
src/resources/radar/entities/asns.ts | 12 ++-
src/resources/radar/netflows/netflows.ts | 2 +-
src/resources/stream/downloads.ts | 5 +-
src/resources/workers/scripts/versions.ts | 5 ++
src/resources/zones/settings.ts | 38 ++++------
.../alerting/destinations/webhooks.test.ts | 51 +++++--------
tests/api-resources/alerting/policies.test.ts | 24 +++---
.../pages/projects/projects.test.ts | 6 +-
.../connectivity-precheck.test.ts | 20 ++++-
.../r2/super-slurper/jobs/jobs.test.ts | 6 +-
.../workers/scripts/versions.test.ts | 6 +-
33 files changed, 301 insertions(+), 582 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 5637fc3e0e..d3fa9fc00d 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ca8fbfa82d19dca400ec61b8c93392de1acd157860e435419f9a5e9ec8c586e0.yml
-openapi_spec_hash: 77d55c70bc3824ac61bd056e2319ee18
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-04d690a4c4e9c1e193ed3daed3e4a27fdb70dfd27aae505f16a2db4a59cd6793.yml
+openapi_spec_hash: 902bd6518dab40dd55bfeb3ed94ffc7f
config_hash: 107e0f1f8a98b007260b319226b88b3c
diff --git a/api.md b/api.md
index 7ffb0aa433..866462c86c 100644
--- a/api.md
+++ b/api.md
@@ -3925,7 +3925,7 @@ Types:
Methods:
- client.pages.projects.create({ ...params }) -> Project
-- client.pages.projects.list({ ...params }) -> DeploymentsSinglePage
+- client.pages.projects.list({ ...params }) -> DeploymentsV4PagePaginationArray
- client.pages.projects.delete(projectName, { ...params }) -> ProjectDeleteResponse | null
- client.pages.projects.edit(projectName, { ...params }) -> Project
- client.pages.projects.get(projectName, { ...params }) -> Project
diff --git a/src/resources/alerting/destinations/webhooks.ts b/src/resources/alerting/destinations/webhooks.ts
index 279c67d0bf..605e015ae3 100644
--- a/src/resources/alerting/destinations/webhooks.ts
+++ b/src/resources/alerting/destinations/webhooks.ts
@@ -35,7 +35,7 @@ export class Webhooks extends APIResource {
* ```ts
* const webhook =
* await client.alerting.destinations.webhooks.update(
- * 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
+ * 'b115d5ec15c641ee8b7692c449b5227b',
* {
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* name: 'Slack Webhook',
@@ -90,7 +90,7 @@ export class Webhooks extends APIResource {
* ```ts
* const webhook =
* await client.alerting.destinations.webhooks.delete(
- * 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
+ * 'b115d5ec15c641ee8b7692c449b5227b',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
@@ -114,7 +114,7 @@ export class Webhooks extends APIResource {
* ```ts
* const webhooks =
* await client.alerting.destinations.webhooks.get(
- * 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
+ * 'b115d5ec15c641ee8b7692c449b5227b',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
diff --git a/src/resources/alerting/policies.ts b/src/resources/alerting/policies.ts
index c2caed4005..5991ca0862 100644
--- a/src/resources/alerting/policies.ts
+++ b/src/resources/alerting/policies.ts
@@ -35,7 +35,7 @@ export class Policies extends APIResource {
* @example
* ```ts
* const policy = await client.alerting.policies.update(
- * '0da2b59e-f118-439d-8097-bdfb215203c9',
+ * '0da2b59ef118439d8097bdfb215203c9',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
@@ -85,7 +85,7 @@ export class Policies extends APIResource {
* @example
* ```ts
* const policy = await client.alerting.policies.delete(
- * '0da2b59e-f118-439d-8097-bdfb215203c9',
+ * '0da2b59ef118439d8097bdfb215203c9',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
@@ -105,7 +105,7 @@ export class Policies extends APIResource {
* @example
* ```ts
* const policy = await client.alerting.policies.get(
- * '0da2b59e-f118-439d-8097-bdfb215203c9',
+ * '0da2b59ef118439d8097bdfb215203c9',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
diff --git a/src/resources/pages/index.ts b/src/resources/pages/index.ts
index 2b2862b5c1..ede14daf73 100644
--- a/src/resources/pages/index.ts
+++ b/src/resources/pages/index.ts
@@ -2,6 +2,7 @@
export {
DeploymentsSinglePage,
+ DeploymentsV4PagePaginationArray,
Projects,
type Deployment,
type Project,
diff --git a/src/resources/pages/pages.ts b/src/resources/pages/pages.ts
index e92779690f..e0331f786f 100644
--- a/src/resources/pages/pages.ts
+++ b/src/resources/pages/pages.ts
@@ -4,7 +4,7 @@ import { APIResource } from '../../resource';
import * as ProjectsAPI from './projects/projects';
import {
Deployment,
- DeploymentsSinglePage,
+ DeploymentsV4PagePaginationArray,
Project,
ProjectCreateParams,
ProjectDeleteParams,
@@ -23,7 +23,7 @@ export class Pages extends APIResource {
}
Pages.Projects = Projects;
-Pages.DeploymentsSinglePage = DeploymentsSinglePage;
+Pages.DeploymentsV4PagePaginationArray = DeploymentsV4PagePaginationArray;
export declare namespace Pages {
export {
@@ -33,7 +33,7 @@ export declare namespace Pages {
type Stage as Stage,
type ProjectDeleteResponse as ProjectDeleteResponse,
type ProjectPurgeBuildCacheResponse as ProjectPurgeBuildCacheResponse,
- DeploymentsSinglePage as DeploymentsSinglePage,
+ DeploymentsV4PagePaginationArray as DeploymentsV4PagePaginationArray,
type ProjectCreateParams as ProjectCreateParams,
type ProjectListParams as ProjectListParams,
type ProjectDeleteParams as ProjectDeleteParams,
diff --git a/src/resources/pages/projects/index.ts b/src/resources/pages/projects/index.ts
index a40f121ec5..867a3f7b6b 100644
--- a/src/resources/pages/projects/index.ts
+++ b/src/resources/pages/projects/index.ts
@@ -12,6 +12,7 @@ export {
} from './deployments/index';
export {
DeploymentsSinglePage,
+ DeploymentsV4PagePaginationArray,
Projects,
type Deployment,
type Project,
diff --git a/src/resources/pages/projects/projects.ts b/src/resources/pages/projects/projects.ts
index 01225591dc..efac2c7d22 100644
--- a/src/resources/pages/projects/projects.ts
+++ b/src/resources/pages/projects/projects.ts
@@ -28,7 +28,7 @@ import {
DeploymentRollbackParams,
Deployments,
} from './deployments/deployments';
-import { SinglePage } from '../../../pagination';
+import { SinglePage, V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../../pagination';
export class Projects extends APIResource {
deployments: DeploymentsAPI.Deployments = new DeploymentsAPI.Deployments(this._client);
@@ -69,9 +69,13 @@ export class Projects extends APIResource {
list(
params: ProjectListParams,
options?: Core.RequestOptions,
- ): Core.PagePromise {
- const { account_id } = params;
- return this._client.getAPIList(`/accounts/${account_id}/pages/projects`, DeploymentsSinglePage, options);
+ ): Core.PagePromise {
+ const { account_id, ...query } = params;
+ return this._client.getAPIList(
+ `/accounts/${account_id}/pages/projects`,
+ DeploymentsV4PagePaginationArray,
+ { query, ...options },
+ );
}
/**
@@ -176,6 +180,8 @@ export class Projects extends APIResource {
}
}
+export class DeploymentsV4PagePaginationArray extends V4PagePaginationArray {}
+
export class DeploymentsSinglePage extends SinglePage {}
export interface Deployment {
@@ -1641,9 +1647,9 @@ export namespace ProjectCreateParams {
}
}
-export interface ProjectListParams {
+export interface ProjectListParams extends V4PagePaginationArrayParams {
/**
- * Identifier
+ * Path param: Identifier
*/
account_id: string;
}
@@ -2270,7 +2276,7 @@ export interface ProjectPurgeBuildCacheParams {
account_id: string;
}
-Projects.DeploymentsSinglePage = DeploymentsSinglePage;
+Projects.DeploymentsV4PagePaginationArray = DeploymentsV4PagePaginationArray;
Projects.Deployments = Deployments;
Projects.Domains = Domains;
Projects.DomainListResponsesSinglePage = DomainListResponsesSinglePage;
@@ -2282,7 +2288,7 @@ export declare namespace Projects {
type Stage as Stage,
type ProjectDeleteResponse as ProjectDeleteResponse,
type ProjectPurgeBuildCacheResponse as ProjectPurgeBuildCacheResponse,
- DeploymentsSinglePage as DeploymentsSinglePage,
+ DeploymentsV4PagePaginationArray as DeploymentsV4PagePaginationArray,
type ProjectCreateParams as ProjectCreateParams,
type ProjectListParams as ProjectListParams,
type ProjectDeleteParams as ProjectDeleteParams,
diff --git a/src/resources/r2/super-slurper/connectivity-precheck.ts b/src/resources/r2/super-slurper/connectivity-precheck.ts
index 654a8193d5..2283824388 100644
--- a/src/resources/r2/super-slurper/connectivity-precheck.ts
+++ b/src/resources/r2/super-slurper/connectivity-precheck.ts
@@ -13,6 +13,12 @@ export class ConnectivityPrecheck extends APIResource {
* const response =
* await client.r2.superSlurper.connectivityPrecheck.source({
* account_id: 'account_id',
+ * bucket: 'bucket',
+ * secret: {
+ * accessKeyId: 'accessKeyId',
+ * secretAccessKey: 'secretAccessKey',
+ * },
+ * vendor: 's3',
* });
* ```
*/
@@ -37,6 +43,12 @@ export class ConnectivityPrecheck extends APIResource {
* const response =
* await client.r2.superSlurper.connectivityPrecheck.target({
* account_id: 'account_id',
+ * bucket: 'bucket',
+ * secret: {
+ * accessKeyId: 'accessKeyId',
+ * secretAccessKey: 'secretAccessKey',
+ * },
+ * vendor: 'r2',
* });
* ```
*/
@@ -77,7 +89,17 @@ export declare namespace ConnectivityPrecheckSourceParams {
/**
* Body param:
*/
- bucket?: string;
+ bucket: string;
+
+ /**
+ * Body param:
+ */
+ secret: R2SlurperS3SourceSchema.Secret;
+
+ /**
+ * Body param:
+ */
+ vendor: 's3';
/**
* Body param:
@@ -87,19 +109,19 @@ export declare namespace ConnectivityPrecheckSourceParams {
/**
* Body param:
*/
- secret?: R2SlurperS3SourceSchema.Secret;
+ pathPrefix?: string | null;
/**
* Body param:
*/
- vendor?: 's3';
+ region?: string | null;
}
export namespace R2SlurperS3SourceSchema {
export interface Secret {
- accessKeyId?: string;
+ accessKeyId: string;
- secretAccessKey?: string;
+ secretAccessKey: string;
}
}
@@ -112,24 +134,29 @@ export declare namespace ConnectivityPrecheckSourceParams {
/**
* Body param:
*/
- bucket?: string;
+ bucket: string;
+
+ /**
+ * Body param:
+ */
+ secret: R2SlurperGcsSourceSchema.Secret;
/**
* Body param:
*/
- secret?: R2SlurperGcsSourceSchema.Secret;
+ vendor: 'gcs';
/**
* Body param:
*/
- vendor?: 'gcs';
+ pathPrefix?: string | null;
}
export namespace R2SlurperGcsSourceSchema {
export interface Secret {
- clientEmail?: string;
+ clientEmail: string;
- privateKey?: string;
+ privateKey: string;
}
}
@@ -142,29 +169,34 @@ export declare namespace ConnectivityPrecheckSourceParams {
/**
* Body param:
*/
- bucket?: string;
+ bucket: string;
/**
* Body param:
*/
- jurisdiction?: 'default' | 'eu' | 'fedramp';
+ secret: R2SlurperR2SourceSchema.Secret;
+
+ /**
+ * Body param:
+ */
+ vendor: SippyAPI.ProviderParam;
/**
* Body param:
*/
- secret?: R2SlurperR2SourceSchema.Secret;
+ jurisdiction?: 'default' | 'eu' | 'fedramp';
/**
* Body param:
*/
- vendor?: SippyAPI.ProviderParam;
+ pathPrefix?: string | null;
}
export namespace R2SlurperR2SourceSchema {
export interface Secret {
- accessKeyId?: string;
+ accessKeyId: string;
- secretAccessKey?: string;
+ secretAccessKey: string;
}
}
}
@@ -178,29 +210,29 @@ export interface ConnectivityPrecheckTargetParams {
/**
* Body param:
*/
- bucket?: string;
+ bucket: string;
/**
* Body param:
*/
- jurisdiction?: 'default' | 'eu' | 'fedramp';
+ secret: ConnectivityPrecheckTargetParams.Secret;
/**
* Body param:
*/
- secret?: ConnectivityPrecheckTargetParams.Secret;
+ vendor: SippyAPI.ProviderParam;
/**
* Body param:
*/
- vendor?: SippyAPI.ProviderParam;
+ jurisdiction?: 'default' | 'eu' | 'fedramp';
}
export namespace ConnectivityPrecheckTargetParams {
export interface Secret {
- accessKeyId?: string;
+ accessKeyId: string;
- secretAccessKey?: string;
+ secretAccessKey: string;
}
}
diff --git a/src/resources/r2/super-slurper/jobs/jobs.ts b/src/resources/r2/super-slurper/jobs/jobs.ts
index 0e70bb10e5..7732e944b1 100644
--- a/src/resources/r2/super-slurper/jobs/jobs.ts
+++ b/src/resources/r2/super-slurper/jobs/jobs.ts
@@ -360,72 +360,80 @@ export interface JobCreateParams {
export namespace JobCreateParams {
export interface R2SlurperS3SourceSchema {
- bucket?: string;
+ bucket: string;
+
+ secret: R2SlurperS3SourceSchema.Secret;
+
+ vendor: 's3';
endpoint?: string | null;
- secret?: R2SlurperS3SourceSchema.Secret;
+ pathPrefix?: string | null;
- vendor?: 's3';
+ region?: string | null;
}
export namespace R2SlurperS3SourceSchema {
export interface Secret {
- accessKeyId?: string;
+ accessKeyId: string;
- secretAccessKey?: string;
+ secretAccessKey: string;
}
}
export interface R2SlurperGcsSourceSchema {
- bucket?: string;
+ bucket: string;
- secret?: R2SlurperGcsSourceSchema.Secret;
+ secret: R2SlurperGcsSourceSchema.Secret;
- vendor?: 'gcs';
+ vendor: 'gcs';
+
+ pathPrefix?: string | null;
}
export namespace R2SlurperGcsSourceSchema {
export interface Secret {
- clientEmail?: string;
+ clientEmail: string;
- privateKey?: string;
+ privateKey: string;
}
}
export interface R2SlurperR2SourceSchema {
- bucket?: string;
+ bucket: string;
- jurisdiction?: 'default' | 'eu' | 'fedramp';
+ secret: R2SlurperR2SourceSchema.Secret;
- secret?: R2SlurperR2SourceSchema.Secret;
+ vendor: SippyAPI.ProviderParam;
+
+ jurisdiction?: 'default' | 'eu' | 'fedramp';
- vendor?: SippyAPI.ProviderParam;
+ pathPrefix?: string | null;
}
export namespace R2SlurperR2SourceSchema {
export interface Secret {
- accessKeyId?: string;
+ accessKeyId: string;
- secretAccessKey?: string;
+ secretAccessKey: string;
}
}
export interface Target {
- bucket?: string;
+ bucket: string;
- jurisdiction?: 'default' | 'eu' | 'fedramp';
+ secret: Target.Secret;
- secret?: Target.Secret;
+ vendor: SippyAPI.ProviderParam;
- vendor?: SippyAPI.ProviderParam;
+ jurisdiction?: 'default' | 'eu' | 'fedramp';
}
export namespace Target {
export interface Secret {
- accessKeyId?: string;
+ accessKeyId: string;
- secretAccessKey?: string;
+ secretAccessKey: string;
}
}
}
diff --git a/src/resources/radar/as112/summary.ts b/src/resources/radar/as112/summary.ts
index c59fdaeb5a..d6034b19c4 100644
--- a/src/resources/radar/as112/summary.ts
+++ b/src/resources/radar/as112/summary.ts
@@ -9,10 +9,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNS queries to AS112 by DNSSEC (DNS Security
* Extensions) support.
*
- * @example
- * ```ts
- * const response = await client.radar.as112.summary.dnssec();
- * ```
+ * @deprecated
*/
dnssec(query?: SummaryDNSSECParams, options?: Core.RequestOptions): Core.APIPromise;
dnssec(options?: Core.RequestOptions): Core.APIPromise;
@@ -34,10 +31,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNS queries to AS112 by EDNS (Extension Mechanisms
* for DNS) support.
*
- * @example
- * ```ts
- * const response = await client.radar.as112.summary.edns();
- * ```
+ * @deprecated
*/
edns(query?: SummaryEdnsParams, options?: Core.RequestOptions): Core.APIPromise;
edns(options?: Core.RequestOptions): Core.APIPromise;
@@ -58,11 +52,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries to AS112 by IP version.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.summary.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -86,11 +76,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries to AS112 by protocol.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.summary.protocol();
- * ```
+ * @deprecated
*/
protocol(
query?: SummaryProtocolParams,
@@ -114,11 +100,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries to AS112 by type.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.summary.queryType();
- * ```
+ * @deprecated
*/
queryType(
query?: SummaryQueryTypeParams,
@@ -142,11 +124,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of AS112 DNS requests classified by response code.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.summary.responseCodes();
- * ```
+ * @deprecated
*/
responseCodes(
query?: SummaryResponseCodesParams,
diff --git a/src/resources/radar/as112/timeseries-groups.ts b/src/resources/radar/as112/timeseries-groups.ts
index a9e2aa049c..e5593df35c 100644
--- a/src/resources/radar/as112/timeseries-groups.ts
+++ b/src/resources/radar/as112/timeseries-groups.ts
@@ -9,11 +9,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of AS112 DNS queries by DNSSEC (DNS Security
* Extensions) support over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.timeseriesGroups.dnssec();
- * ```
+ * @deprecated
*/
dnssec(
query?: TimeseriesGroupDNSSECParams,
@@ -38,11 +34,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of AS112 DNS queries by EDNS (Extension Mechanisms
* for DNS) support over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.timeseriesGroups.edns();
- * ```
+ * @deprecated
*/
edns(
query?: TimeseriesGroupEdnsParams,
@@ -66,11 +58,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of AS112 DNS queries by IP version over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.timeseriesGroups.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -96,11 +84,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of AS112 DNS requests classified by protocol over
* time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.timeseriesGroups.protocol();
- * ```
+ * @deprecated
*/
protocol(
query?: TimeseriesGroupProtocolParams,
@@ -124,11 +108,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of AS112 DNS queries by type over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.timeseriesGroups.queryType();
- * ```
+ * @deprecated
*/
queryType(
query?: TimeseriesGroupQueryTypeParams,
@@ -154,11 +134,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of AS112 DNS requests classified by response code
* over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.timeseriesGroups.responseCodes();
- * ```
+ * @deprecated
*/
responseCodes(
query?: TimeseriesGroupResponseCodesParams,
diff --git a/src/resources/radar/attacks/layer3/summary.ts b/src/resources/radar/attacks/layer3/summary.ts
index 73ed7d7c70..bc4ccc4c81 100644
--- a/src/resources/radar/attacks/layer3/summary.ts
+++ b/src/resources/radar/attacks/layer3/summary.ts
@@ -8,11 +8,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by bitrate.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.summary.bitrate();
- * ```
+ * @deprecated
*/
bitrate(
query?: SummaryBitrateParams,
@@ -36,11 +32,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by duration.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.summary.duration();
- * ```
+ * @deprecated
*/
duration(
query?: SummaryDurationParams,
@@ -64,11 +56,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by targeted industry.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.summary.industry();
- * ```
+ * @deprecated
*/
industry(
query?: SummaryIndustryParams,
@@ -92,11 +80,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by IP version.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.summary.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -120,11 +104,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by protocol.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.summary.protocol();
- * ```
+ * @deprecated
*/
protocol(
query?: SummaryProtocolParams,
@@ -148,11 +128,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by vector.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.summary.vector();
- * ```
+ * @deprecated
*/
vector(query?: SummaryVectorParams, options?: Core.RequestOptions): Core.APIPromise;
vector(options?: Core.RequestOptions): Core.APIPromise;
@@ -173,11 +149,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by targeted vertical.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.summary.vertical();
- * ```
+ * @deprecated
*/
vertical(
query?: SummaryVerticalParams,
diff --git a/src/resources/radar/attacks/layer3/timeseries-groups.ts b/src/resources/radar/attacks/layer3/timeseries-groups.ts
index 740bb97cae..9f8d171a40 100644
--- a/src/resources/radar/attacks/layer3/timeseries-groups.ts
+++ b/src/resources/radar/attacks/layer3/timeseries-groups.ts
@@ -8,11 +8,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by bitrate over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.timeseriesGroups.bitrate();
- * ```
+ * @deprecated
*/
bitrate(
query?: TimeseriesGroupBitrateParams,
@@ -37,11 +33,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by duration over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.timeseriesGroups.duration();
- * ```
+ * @deprecated
*/
duration(
query?: TimeseriesGroupDurationParams,
@@ -66,11 +58,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by targeted industry over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.timeseriesGroups.industry();
- * ```
+ * @deprecated
*/
industry(
query?: TimeseriesGroupIndustryParams,
@@ -95,11 +83,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by IP version over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.timeseriesGroups.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -124,11 +108,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by protocol over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.timeseriesGroups.protocol();
- * ```
+ * @deprecated
*/
protocol(
query?: TimeseriesGroupProtocolParams,
@@ -153,11 +133,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by vector over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.timeseriesGroups.vector();
- * ```
+ * @deprecated
*/
vector(
query?: TimeseriesGroupVectorParams,
@@ -182,11 +158,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by targeted vertical over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.timeseriesGroups.vertical();
- * ```
+ * @deprecated
*/
vertical(
query?: TimeseriesGroupVerticalParams,
diff --git a/src/resources/radar/attacks/layer7/summary.ts b/src/resources/radar/attacks/layer7/summary.ts
index 4afa3d68d0..160eb24dd8 100644
--- a/src/resources/radar/attacks/layer7/summary.ts
+++ b/src/resources/radar/attacks/layer7/summary.ts
@@ -8,11 +8,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by HTTP method.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.summary.httpMethod();
- * ```
+ * @deprecated
*/
httpMethod(
query?: SummaryHTTPMethodParams,
@@ -37,11 +33,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by HTTP version.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.summary.httpVersion();
- * ```
+ * @deprecated
*/
httpVersion(
query?: SummaryHTTPVersionParams,
@@ -66,11 +58,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by targeted industry.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.summary.industry();
- * ```
+ * @deprecated
*/
industry(
query?: SummaryIndustryParams,
@@ -94,11 +82,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by IP version.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.summary.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -122,11 +106,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by managed rules.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.summary.managedRules();
- * ```
+ * @deprecated
*/
managedRules(
query?: SummaryManagedRulesParams,
@@ -151,11 +131,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by mitigation product.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.summary.mitigationProduct();
- * ```
+ * @deprecated
*/
mitigationProduct(
query?: SummaryMitigationProductParams,
@@ -180,11 +156,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by targeted vertical.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.summary.vertical();
- * ```
+ * @deprecated
*/
vertical(
query?: SummaryVerticalParams,
diff --git a/src/resources/radar/attacks/layer7/timeseries-groups.ts b/src/resources/radar/attacks/layer7/timeseries-groups.ts
index ab7e962788..ce7c62ce1e 100644
--- a/src/resources/radar/attacks/layer7/timeseries-groups.ts
+++ b/src/resources/radar/attacks/layer7/timeseries-groups.ts
@@ -8,11 +8,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by HTTP method over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.timeseriesGroups.httpMethod();
- * ```
+ * @deprecated
*/
httpMethod(
query?: TimeseriesGroupHTTPMethodParams,
@@ -37,11 +33,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by HTTP version over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.timeseriesGroups.httpVersion();
- * ```
+ * @deprecated
*/
httpVersion(
query?: TimeseriesGroupHTTPVersionParams,
@@ -66,11 +58,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by targeted industry over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.timeseriesGroups.industry();
- * ```
+ * @deprecated
*/
industry(
query?: TimeseriesGroupIndustryParams,
@@ -95,11 +83,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by IP version used over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.timeseriesGroups.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -124,11 +108,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by managed rules over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.timeseriesGroups.managedRules();
- * ```
+ * @deprecated
*/
managedRules(
query?: TimeseriesGroupManagedRulesParams,
@@ -153,11 +133,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by mitigation product over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.timeseriesGroups.mitigationProduct();
- * ```
+ * @deprecated
*/
mitigationProduct(
query?: TimeseriesGroupMitigationProductParams,
@@ -182,11 +158,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by targeted vertical over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.timeseriesGroups.vertical();
- * ```
+ * @deprecated
*/
vertical(
query?: TimeseriesGroupVerticalParams,
diff --git a/src/resources/radar/dns/summary.ts b/src/resources/radar/dns/summary.ts
index 9bc87aa1f9..575afc929b 100644
--- a/src/resources/radar/dns/summary.ts
+++ b/src/resources/radar/dns/summary.ts
@@ -8,10 +8,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by cache status.
*
- * @example
- * ```ts
- * const response = await client.radar.dns.summary.cacheHit();
- * ```
+ * @deprecated
*/
cacheHit(
query?: SummaryCacheHitParams,
@@ -36,10 +33,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNS responses by DNSSEC (DNS Security Extensions)
* support.
*
- * @example
- * ```ts
- * const response = await client.radar.dns.summary.dnssec();
- * ```
+ * @deprecated
*/
dnssec(query?: SummaryDNSSECParams, options?: Core.RequestOptions): Core.APIPromise;
dnssec(options?: Core.RequestOptions): Core.APIPromise;
@@ -61,11 +55,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNS queries by DNSSEC (DNS Security Extensions)
* client awareness.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.summary.dnssecAware();
- * ```
+ * @deprecated
*/
dnssecAware(
query?: SummaryDNSSECAwareParams,
@@ -90,10 +80,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNSSEC-validated answers by end-to-end security
* status.
*
- * @example
- * ```ts
- * const response = await client.radar.dns.summary.dnssecE2E();
- * ```
+ * @deprecated
*/
dnssecE2E(
query?: SummaryDNSSECE2EParams,
@@ -117,10 +104,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by IP version.
*
- * @example
- * ```ts
- * const response = await client.radar.dns.summary.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -144,11 +128,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by matching answers.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.summary.matchingAnswer();
- * ```
+ * @deprecated
*/
matchingAnswer(
query?: SummaryMatchingAnswerParams,
@@ -172,10 +152,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by DNS transport protocol.
*
- * @example
- * ```ts
- * const response = await client.radar.dns.summary.protocol();
- * ```
+ * @deprecated
*/
protocol(
query?: SummaryProtocolParams,
@@ -199,10 +176,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by type.
*
- * @example
- * ```ts
- * const response = await client.radar.dns.summary.queryType();
- * ```
+ * @deprecated
*/
queryType(
query?: SummaryQueryTypeParams,
@@ -226,11 +200,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by response code.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.summary.responseCode();
- * ```
+ * @deprecated
*/
responseCode(
query?: SummaryResponseCodeParams,
@@ -254,11 +224,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by minimum response TTL.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.summary.responseTTL();
- * ```
+ * @deprecated
*/
responseTTL(
query?: SummaryResponseTTLParams,
diff --git a/src/resources/radar/dns/timeseries-groups.ts b/src/resources/radar/dns/timeseries-groups.ts
index 9a242a93fb..5e1ea8a4e1 100644
--- a/src/resources/radar/dns/timeseries-groups.ts
+++ b/src/resources/radar/dns/timeseries-groups.ts
@@ -8,11 +8,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by cache status over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.cacheHit();
- * ```
+ * @deprecated
*/
cacheHit(
query?: TimeseriesGroupCacheHitParams,
@@ -37,11 +33,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of DNS responses by DNSSEC (DNS Security Extensions)
* support over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.dnssec();
- * ```
+ * @deprecated
*/
dnssec(
query?: TimeseriesGroupDNSSECParams,
@@ -66,11 +58,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of DNS queries by DNSSEC (DNS Security Extensions)
* client awareness over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.dnssecAware();
- * ```
+ * @deprecated
*/
dnssecAware(
query?: TimeseriesGroupDNSSECAwareParams,
@@ -96,11 +84,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of DNSSEC-validated answers by end-to-end security
* status over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.dnssecE2E();
- * ```
+ * @deprecated
*/
dnssecE2E(
query?: TimeseriesGroupDNSSECE2EParams,
@@ -124,11 +108,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by IP version over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -152,11 +132,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by matching answers over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.matchingAnswer();
- * ```
+ * @deprecated
*/
matchingAnswer(
query?: TimeseriesGroupMatchingAnswerParams,
@@ -181,11 +157,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by DNS transport protocol over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.protocol();
- * ```
+ * @deprecated
*/
protocol(
query?: TimeseriesGroupProtocolParams,
@@ -209,11 +181,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by type over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.queryType();
- * ```
+ * @deprecated
*/
queryType(
query?: TimeseriesGroupQueryTypeParams,
@@ -237,11 +205,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by response code over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.responseCode();
- * ```
+ * @deprecated
*/
responseCode(
query?: TimeseriesGroupResponseCodeParams,
@@ -266,11 +230,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by minimum answer TTL over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.responseTTL();
- * ```
+ * @deprecated
*/
responseTTL(
query?: TimeseriesGroupResponseTTLParams,
diff --git a/src/resources/radar/email/routing/summary.ts b/src/resources/radar/email/routing/summary.ts
index 4085dc05e9..00defd2b84 100644
--- a/src/resources/radar/email/routing/summary.ts
+++ b/src/resources/radar/email/routing/summary.ts
@@ -10,11 +10,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by ARC (Authenticated Received Chain)
* validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.summary.arc();
- * ```
+ * @deprecated
*/
arc(query?: SummaryARCParams, options?: Core.RequestOptions): Core.APIPromise;
arc(options?: Core.RequestOptions): Core.APIPromise;
@@ -36,11 +32,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by DKIM (DomainKeys Identified Mail)
* validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.summary.dkim();
- * ```
+ * @deprecated
*/
dkim(query?: SummaryDKIMParams, options?: Core.RequestOptions): Core.APIPromise;
dkim(options?: Core.RequestOptions): Core.APIPromise;
@@ -62,11 +54,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by DMARC (Domain-based Message
* Authentication, Reporting and Conformance) validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.summary.dmarc();
- * ```
+ * @deprecated
*/
dmarc(query?: SummaryDMARCParams, options?: Core.RequestOptions): Core.APIPromise;
dmarc(options?: Core.RequestOptions): Core.APIPromise;
@@ -88,11 +76,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by encryption status (encrypted vs.
* not-encrypted).
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.summary.encrypted();
- * ```
+ * @deprecated
*/
encrypted(
query?: SummaryEncryptedParams,
@@ -116,11 +100,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of emails by IP version.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.summary.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -145,11 +125,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by SPF (Sender Policy Framework)
* validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.summary.spf();
- * ```
+ * @deprecated
*/
spf(query?: SummarySPFParams, options?: Core.RequestOptions): Core.APIPromise;
spf(options?: Core.RequestOptions): Core.APIPromise;
diff --git a/src/resources/radar/email/routing/timeseries-groups.ts b/src/resources/radar/email/routing/timeseries-groups.ts
index c398945534..3a9801b143 100644
--- a/src/resources/radar/email/routing/timeseries-groups.ts
+++ b/src/resources/radar/email/routing/timeseries-groups.ts
@@ -10,11 +10,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by ARC (Authenticated Received Chain)
* validation over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.timeseriesGroups.arc();
- * ```
+ * @deprecated
*/
arc(
query?: TimeseriesGroupARCParams,
@@ -40,11 +36,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by DKIM (DomainKeys Identified Mail)
* validation over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.timeseriesGroups.dkim();
- * ```
+ * @deprecated
*/
dkim(
query?: TimeseriesGroupDKIMParams,
@@ -70,11 +62,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by DMARC (Domain-based Message
* Authentication, Reporting and Conformance) validation over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.timeseriesGroups.dmarc();
- * ```
+ * @deprecated
*/
dmarc(
query?: TimeseriesGroupDMARCParams,
@@ -100,11 +88,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by encryption status (encrypted vs.
* not-encrypted) over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.timeseriesGroups.encrypted();
- * ```
+ * @deprecated
*/
encrypted(
query?: TimeseriesGroupEncryptedParams,
@@ -129,11 +113,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of emails by IP version over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.timeseriesGroups.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -159,11 +139,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by SPF (Sender Policy Framework) validation
* over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.timeseriesGroups.spf();
- * ```
+ * @deprecated
*/
spf(
query?: TimeseriesGroupSPFParams,
diff --git a/src/resources/radar/email/security/summary.ts b/src/resources/radar/email/security/summary.ts
index 3a984c2f4f..5136a742ff 100644
--- a/src/resources/radar/email/security/summary.ts
+++ b/src/resources/radar/email/security/summary.ts
@@ -10,11 +10,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by ARC (Authenticated Received Chain)
* validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.arc();
- * ```
+ * @deprecated
*/
arc(query?: SummaryARCParams, options?: Core.RequestOptions): Core.APIPromise;
arc(options?: Core.RequestOptions): Core.APIPromise;
@@ -36,11 +32,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by DKIM (DomainKeys Identified Mail)
* validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.dkim();
- * ```
+ * @deprecated
*/
dkim(query?: SummaryDKIMParams, options?: Core.RequestOptions): Core.APIPromise;
dkim(options?: Core.RequestOptions): Core.APIPromise;
@@ -62,11 +54,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by DMARC (Domain-based Message
* Authentication, Reporting and Conformance) validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.dmarc();
- * ```
+ * @deprecated
*/
dmarc(query?: SummaryDMARCParams, options?: Core.RequestOptions): Core.APIPromise;
dmarc(options?: Core.RequestOptions): Core.APIPromise;
@@ -87,11 +75,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of emails by malicious classification.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.malicious();
- * ```
+ * @deprecated
*/
malicious(
query?: SummaryMaliciousParams,
@@ -115,11 +99,7 @@ export class Summary extends APIResource {
/**
* Retrieves the proportion of emails by spam classification (spam vs. non-spam).
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.spam();
- * ```
+ * @deprecated
*/
spam(query?: SummarySpamParams, options?: Core.RequestOptions): Core.APIPromise;
spam(options?: Core.RequestOptions): Core.APIPromise;
@@ -141,11 +121,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by SPF (Sender Policy Framework)
* validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.spf();
- * ```
+ * @deprecated
*/
spf(query?: SummarySPFParams, options?: Core.RequestOptions): Core.APIPromise;
spf(options?: Core.RequestOptions): Core.APIPromise;
@@ -167,11 +143,7 @@ export class Summary extends APIResource {
* Retrieves the proportion of emails by spoof classification (spoof vs.
* non-spoof).
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.spoof();
- * ```
+ * @deprecated
*/
spoof(query?: SummarySpoofParams, options?: Core.RequestOptions): Core.APIPromise;
spoof(options?: Core.RequestOptions): Core.APIPromise;
@@ -192,11 +164,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of emails by threat categories.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.threatCategory();
- * ```
+ * @deprecated
*/
threatCategory(
query?: SummaryThreatCategoryParams,
@@ -221,11 +189,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of emails by TLS version.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.tlsVersion();
- * ```
+ * @deprecated
*/
tlsVersion(
query?: SummaryTLSVersionParams,
diff --git a/src/resources/radar/email/security/timeseries-groups.ts b/src/resources/radar/email/security/timeseries-groups.ts
index 2fb9bbef99..aa620088a0 100644
--- a/src/resources/radar/email/security/timeseries-groups.ts
+++ b/src/resources/radar/email/security/timeseries-groups.ts
@@ -10,11 +10,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by ARC (Authenticated Received Chain)
* validation over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.arc();
- * ```
+ * @deprecated
*/
arc(
query?: TimeseriesGroupARCParams,
@@ -40,11 +36,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by DKIM (DomainKeys Identified Mail)
* validation over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.dkim();
- * ```
+ * @deprecated
*/
dkim(
query?: TimeseriesGroupDKIMParams,
@@ -70,11 +62,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by DMARC (Domain-based Message
* Authentication, Reporting and Conformance) validation over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.dmarc();
- * ```
+ * @deprecated
*/
dmarc(
query?: TimeseriesGroupDMARCParams,
@@ -99,11 +87,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of emails by malicious classification over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.malicious();
- * ```
+ * @deprecated
*/
malicious(
query?: TimeseriesGroupMaliciousParams,
@@ -129,11 +113,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by spam classification (spam vs. non-spam)
* over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.spam();
- * ```
+ * @deprecated
*/
spam(
query?: TimeseriesGroupSpamParams,
@@ -159,11 +139,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by SPF (Sender Policy Framework) validation
* over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.spf();
- * ```
+ * @deprecated
*/
spf(
query?: TimeseriesGroupSPFParams,
@@ -189,11 +165,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by spoof classification (spoof vs.
* non-spoof) over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.spoof();
- * ```
+ * @deprecated
*/
spoof(
query?: TimeseriesGroupSpoofParams,
@@ -218,11 +190,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of emails by threat category over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.threatCategory();
- * ```
+ * @deprecated
*/
threatCategory(
query?: TimeseriesGroupThreatCategoryParams,
@@ -247,11 +215,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of emails by TLS version over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.tlsVersion();
- * ```
+ * @deprecated
*/
tlsVersion(
query?: TimeseriesGroupTLSVersionParams,
diff --git a/src/resources/radar/entities/asns.ts b/src/resources/radar/entities/asns.ts
index 66ecf4a6e9..7697e9dd84 100644
--- a/src/resources/radar/entities/asns.ts
+++ b/src/resources/radar/entities/asns.ts
@@ -194,10 +194,20 @@ export namespace ASNAsSetResponse {
*/
name: string;
+ /**
+ * The AS number following hierarchical AS-SET name
+ */
+ hierarchical_asn?: number;
+
/**
* The inferred AS number of the AS-SET
*/
- asn?: number;
+ inferred_asn?: number;
+
+ /**
+ * The AS number matching PeeringDB record
+ */
+ peeringdb_asn?: number;
}
}
diff --git a/src/resources/radar/netflows/netflows.ts b/src/resources/radar/netflows/netflows.ts
index c484510bb6..55c05d441b 100644
--- a/src/resources/radar/netflows/netflows.ts
+++ b/src/resources/radar/netflows/netflows.ts
@@ -13,7 +13,7 @@ export class Netflows extends APIResource {
* Retrieves the distribution of network traffic (NetFlows) by HTTP vs other
* protocols.
*
- * @deprecated
+ * @deprecated Use [Get Network Traffic Distribution By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/netflows/methods/summary_v2/) instead.
*/
summary(
query?: NetflowSummaryParams,
diff --git a/src/resources/stream/downloads.ts b/src/resources/stream/downloads.ts
index a9d2589f13..1fd7a50c02 100644
--- a/src/resources/stream/downloads.ts
+++ b/src/resources/stream/downloads.ts
@@ -6,7 +6,8 @@ import * as Core from '../../core';
export class Downloads extends APIResource {
/**
* Creates a download for a video when a video is ready to view. Use
- * `/downloads/{download_type}` instead for type-specific downloads.
+ * `/downloads/{download_type}` instead for type-specific downloads. Available
+ * types are `default` and `audio`.
*
* @example
* ```ts
@@ -35,7 +36,7 @@ export class Downloads extends APIResource {
/**
* Delete the downloads for a video. Use `/downloads/{download_type}` instead for
- * type-specific downloads.
+ * type-specific downloads. Available types are `default` and `audio`.
*
* @example
* ```ts
diff --git a/src/resources/workers/scripts/versions.ts b/src/resources/workers/scripts/versions.ts
index d4334609ad..c07bc881ba 100644
--- a/src/resources/workers/scripts/versions.ts
+++ b/src/resources/workers/scripts/versions.ts
@@ -1634,6 +1634,11 @@ export namespace VersionCreateParams {
export namespace Metadata {
export interface Annotations {
+ /**
+ * Associated alias for a version.
+ */
+ 'workers/alias'?: string;
+
/**
* Human-readable message about the version. Truncated to 100 bytes.
*/
diff --git a/src/resources/zones/settings.ts b/src/resources/zones/settings.ts
index 0838680bb9..4a3ad6c613 100644
--- a/src/resources/zones/settings.ts
+++ b/src/resources/zones/settings.ts
@@ -301,13 +301,8 @@ export interface BrowserCacheTTL {
id?: 'browser_cache_ttl';
/**
- * The number of seconds to cache resources for. Minimum values by plan:
- *
- * - Free: 7200 seconds (2 hours)
- * - Pro: 3600 seconds (1 hour)
- * - Business: 1 second
- * - Enterprise: 1 second Setting this to 0 enables "Respect Existing Headers" and
- * is allowed for all plans.
+ * The number of seconds to cache resources for. Setting this to 0 enables "Respect
+ * Existing Headers".
*/
value?: number;
}
@@ -319,13 +314,8 @@ export interface BrowserCacheTTLParam {
id?: 'browser_cache_ttl';
/**
- * The number of seconds to cache resources for. Minimum values by plan:
- *
- * - Free: 7200 seconds (2 hours)
- * - Pro: 3600 seconds (1 hour)
- * - Business: 1 second
- * - Enterprise: 1 second Setting this to 0 enables "Respect Existing Headers" and
- * is allowed for all plans.
+ * The number of seconds to cache resources for. Setting this to 0 enables "Respect
+ * Existing Headers".
*/
value?: number;
}
@@ -1102,6 +1092,10 @@ export interface PseudoIPV4 {
modified_on?: string | null;
}
+/**
+ * @deprecated This page rule is deprecated. This functionality is no longer
+ * supported.
+ */
export interface ResponseBuffering {
/**
* Turn on or off whether Cloudflare should wait for an entire file from the origin
@@ -1116,6 +1110,10 @@ export interface ResponseBuffering {
value?: 'on' | 'off';
}
+/**
+ * @deprecated This page rule is deprecated. This functionality is no longer
+ * supported.
+ */
export interface ResponseBufferingParam {
/**
* Turn on or off whether Cloudflare should wait for an entire file from the origin
@@ -2215,10 +2213,8 @@ export namespace SettingEditResponse {
}
/**
- * Enables or disables buffering of responses from the proxied server. Cloudflare
- * may buffer the whole payload to deliver it at once to the client versus allowing
- * it to be delivered in chunks. By default, the proxied server streams directly
- * and is not buffered by Cloudflare. This is limited to Enterprise Zones.
+ * @deprecated This zone setting is deprecated. This functionality is no longer
+ * supported.
*/
export interface ZonesSchemasResponseBuffering {
/**
@@ -3258,10 +3254,8 @@ export namespace SettingGetResponse {
}
/**
- * Enables or disables buffering of responses from the proxied server. Cloudflare
- * may buffer the whole payload to deliver it at once to the client versus allowing
- * it to be delivered in chunks. By default, the proxied server streams directly
- * and is not buffered by Cloudflare. This is limited to Enterprise Zones.
+ * @deprecated This zone setting is deprecated. This functionality is no longer
+ * supported.
*/
export interface ZonesSchemasResponseBuffering {
/**
diff --git a/tests/api-resources/alerting/destinations/webhooks.test.ts b/tests/api-resources/alerting/destinations/webhooks.test.ts
index 400214bb31..f7e64ac407 100644
--- a/tests/api-resources/alerting/destinations/webhooks.test.ts
+++ b/tests/api-resources/alerting/destinations/webhooks.test.ts
@@ -38,14 +38,11 @@ describe('resource webhooks', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291
test.skip('update: only required params', async () => {
- const responsePromise = client.alerting.destinations.webhooks.update(
- 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
- {
- account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- name: 'Slack Webhook',
- url: 'https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd',
- },
- );
+ const responsePromise = client.alerting.destinations.webhooks.update('b115d5ec15c641ee8b7692c449b5227b', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ name: 'Slack Webhook',
+ url: 'https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd',
+ });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -57,15 +54,12 @@ describe('resource webhooks', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291
test.skip('update: required and optional params', async () => {
- const response = await client.alerting.destinations.webhooks.update(
- 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
- {
- account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- name: 'Slack Webhook',
- url: 'https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd',
- secret: 'secret',
- },
- );
+ const response = await client.alerting.destinations.webhooks.update('b115d5ec15c641ee8b7692c449b5227b', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ name: 'Slack Webhook',
+ url: 'https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd',
+ secret: 'secret',
+ });
});
test('list: only required params', async () => {
@@ -88,10 +82,9 @@ describe('resource webhooks', () => {
});
test('delete: only required params', async () => {
- const responsePromise = client.alerting.destinations.webhooks.delete(
- 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
- { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- );
+ const responsePromise = client.alerting.destinations.webhooks.delete('b115d5ec15c641ee8b7692c449b5227b', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -102,18 +95,16 @@ describe('resource webhooks', () => {
});
test('delete: required and optional params', async () => {
- const response = await client.alerting.destinations.webhooks.delete(
- 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
- { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- );
+ const response = await client.alerting.destinations.webhooks.delete('b115d5ec15c641ee8b7692c449b5227b', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ });
});
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291
test.skip('get: only required params', async () => {
- const responsePromise = client.alerting.destinations.webhooks.get(
- 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
- { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- );
+ const responsePromise = client.alerting.destinations.webhooks.get('b115d5ec15c641ee8b7692c449b5227b', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -125,7 +116,7 @@ describe('resource webhooks', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291
test.skip('get: required and optional params', async () => {
- const response = await client.alerting.destinations.webhooks.get('b115d5ec-15c6-41ee-8b76-92c449b5227b', {
+ const response = await client.alerting.destinations.webhooks.get('b115d5ec15c641ee8b7692c449b5227b', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
});
diff --git a/tests/api-resources/alerting/policies.test.ts b/tests/api-resources/alerting/policies.test.ts
index aed5640624..3de56f13b7 100644
--- a/tests/api-resources/alerting/policies.test.ts
+++ b/tests/api-resources/alerting/policies.test.ts
@@ -35,9 +35,9 @@ describe('resource policies', () => {
alert_type: 'universal_ssl_event_type',
enabled: true,
mechanisms: {
- email: [{ id: 'test@example.com' }],
- pagerduty: [{ id: 'e8133a15-00a4-4d69-aec1-32f70c51f6e5' }],
- webhooks: [{ id: '14cc1190-5d2b-4b98-a696-c424cb2ad05f' }],
+ email: [{ id: 'id' }],
+ pagerduty: [{ id: 'f174e90afafe4643bbbc4a0ed4fc8415' }],
+ webhooks: [{ id: 'f174e90afafe4643bbbc4a0ed4fc8415' }],
},
name: 'SSL Notification Event Policy',
alert_interval: '30m',
@@ -91,7 +91,7 @@ describe('resource policies', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4274
test.skip('update: only required params', async () => {
- const responsePromise = client.alerting.policies.update('0da2b59e-f118-439d-8097-bdfb215203c9', {
+ const responsePromise = client.alerting.policies.update('0da2b59ef118439d8097bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
const rawResponse = await responsePromise.asResponse();
@@ -105,7 +105,7 @@ describe('resource policies', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4274
test.skip('update: required and optional params', async () => {
- const response = await client.alerting.policies.update('0da2b59e-f118-439d-8097-bdfb215203c9', {
+ const response = await client.alerting.policies.update('0da2b59ef118439d8097bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
alert_interval: '30m',
alert_type: 'universal_ssl_event_type',
@@ -156,9 +156,9 @@ describe('resource policies', () => {
zones: ['string'],
},
mechanisms: {
- email: [{ id: 'test@example.com' }],
- pagerduty: [{ id: 'e8133a15-00a4-4d69-aec1-32f70c51f6e5' }],
- webhooks: [{ id: '14cc1190-5d2b-4b98-a696-c424cb2ad05f' }],
+ email: [{ id: 'id' }],
+ pagerduty: [{ id: 'f174e90afafe4643bbbc4a0ed4fc8415' }],
+ webhooks: [{ id: 'f174e90afafe4643bbbc4a0ed4fc8415' }],
},
name: 'SSL Notification Event Policy',
});
@@ -180,7 +180,7 @@ describe('resource policies', () => {
});
test('delete: only required params', async () => {
- const responsePromise = client.alerting.policies.delete('0da2b59e-f118-439d-8097-bdfb215203c9', {
+ const responsePromise = client.alerting.policies.delete('0da2b59ef118439d8097bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
const rawResponse = await responsePromise.asResponse();
@@ -193,14 +193,14 @@ describe('resource policies', () => {
});
test('delete: required and optional params', async () => {
- const response = await client.alerting.policies.delete('0da2b59e-f118-439d-8097-bdfb215203c9', {
+ const response = await client.alerting.policies.delete('0da2b59ef118439d8097bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
});
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4274
test.skip('get: only required params', async () => {
- const responsePromise = client.alerting.policies.get('0da2b59e-f118-439d-8097-bdfb215203c9', {
+ const responsePromise = client.alerting.policies.get('0da2b59ef118439d8097bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
const rawResponse = await responsePromise.asResponse();
@@ -214,7 +214,7 @@ describe('resource policies', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4274
test.skip('get: required and optional params', async () => {
- const response = await client.alerting.policies.get('0da2b59e-f118-439d-8097-bdfb215203c9', {
+ const response = await client.alerting.policies.get('0da2b59ef118439d8097bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
});
diff --git a/tests/api-resources/pages/projects/projects.test.ts b/tests/api-resources/pages/projects/projects.test.ts
index 2057a0124d..41a92b2403 100644
--- a/tests/api-resources/pages/projects/projects.test.ts
+++ b/tests/api-resources/pages/projects/projects.test.ts
@@ -115,7 +115,11 @@ describe('resource projects', () => {
});
test('list: required and optional params', async () => {
- const response = await client.pages.projects.list({ account_id: '023e105f4ecef8ad9ca31a8372d0c353' });
+ const response = await client.pages.projects.list({
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ page: 1,
+ per_page: 10,
+ });
});
test('delete: only required params', async () => {
diff --git a/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts b/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts
index c3238ed19b..597bcca970 100644
--- a/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts
+++ b/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts
@@ -11,7 +11,12 @@ const client = new Cloudflare({
describe('resource connectivityPrecheck', () => {
test('source: only required params', async () => {
- const responsePromise = client.r2.superSlurper.connectivityPrecheck.source({ account_id: 'account_id' });
+ const responsePromise = client.r2.superSlurper.connectivityPrecheck.source({
+ account_id: 'account_id',
+ bucket: 'bucket',
+ secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
+ vendor: 's3',
+ });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -25,14 +30,21 @@ describe('resource connectivityPrecheck', () => {
const response = await client.r2.superSlurper.connectivityPrecheck.source({
account_id: 'account_id',
bucket: 'bucket',
- endpoint: 'endpoint',
secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
vendor: 's3',
+ endpoint: 'endpoint',
+ pathPrefix: 'pathPrefix',
+ region: 'region',
});
});
test('target: only required params', async () => {
- const responsePromise = client.r2.superSlurper.connectivityPrecheck.target({ account_id: 'account_id' });
+ const responsePromise = client.r2.superSlurper.connectivityPrecheck.target({
+ account_id: 'account_id',
+ bucket: 'bucket',
+ secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
+ vendor: 'r2',
+ });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -46,9 +58,9 @@ describe('resource connectivityPrecheck', () => {
const response = await client.r2.superSlurper.connectivityPrecheck.target({
account_id: 'account_id',
bucket: 'bucket',
- jurisdiction: 'default',
secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
vendor: 'r2',
+ jurisdiction: 'default',
});
});
});
diff --git a/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts b/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts
index 8376af108a..e2806bfb82 100644
--- a/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts
+++ b/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts
@@ -27,15 +27,17 @@ describe('resource jobs', () => {
overwrite: true,
source: {
bucket: 'bucket',
- endpoint: 'endpoint',
secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
vendor: 's3',
+ endpoint: 'endpoint',
+ pathPrefix: 'pathPrefix',
+ region: 'region',
},
target: {
bucket: 'bucket',
- jurisdiction: 'default',
secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
vendor: 'r2',
+ jurisdiction: 'default',
},
});
});
diff --git a/tests/api-resources/workers/scripts/versions.test.ts b/tests/api-resources/workers/scripts/versions.test.ts
index 82c89f8328..437f382fd7 100644
--- a/tests/api-resources/workers/scripts/versions.test.ts
+++ b/tests/api-resources/workers/scripts/versions.test.ts
@@ -31,7 +31,11 @@ describe('resource versions', () => {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
metadata: {
main_module: 'worker.js',
- annotations: { 'workers/message': 'Fixed worker code.', 'workers/tag': 'workers/tag' },
+ annotations: {
+ 'workers/alias': 'staging',
+ 'workers/message': 'Fixed worker code.',
+ 'workers/tag': 'workers/tag',
+ },
bindings: [{ name: 'MY_ENV_VAR', text: 'my_data', type: 'plain_text' }],
compatibility_date: '2021-01-01',
compatibility_flags: ['nodejs_compat'],
From 06f922349bd6240de4ada569b17d9e8b71c3c988 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 12:26:41 +0000
Subject: [PATCH 003/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index d3fa9fc00d..a96cbaf996 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-04d690a4c4e9c1e193ed3daed3e4a27fdb70dfd27aae505f16a2db4a59cd6793.yml
-openapi_spec_hash: 902bd6518dab40dd55bfeb3ed94ffc7f
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5172b3168331d41dc62cce06d8a009b0463d0c6265d4e582c7aa4541b36ddaa8.yml
+openapi_spec_hash: 473cb4b65ccabb26fdee3e9df96b8afd
config_hash: 107e0f1f8a98b007260b319226b88b3c
From ff417daaa77c70e2e68aa5306174f16c5a0ee4b8 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 12:28:24 +0000
Subject: [PATCH 004/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index a96cbaf996..90aa103726 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5172b3168331d41dc62cce06d8a009b0463d0c6265d4e582c7aa4541b36ddaa8.yml
-openapi_spec_hash: 473cb4b65ccabb26fdee3e9df96b8afd
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9b6e8ab1bd98c31e547acd9a362dd37f6c99b5374b8704656bcacbd907b2fecf.yml
+openapi_spec_hash: 3555741ffe1182a65afc82cc9d8a3b8e
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 3e172d83bbf911d9b93f90bdf4eec5ed18fa8f5b Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 13:10:54 +0000
Subject: [PATCH 005/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 90aa103726..a96cbaf996 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9b6e8ab1bd98c31e547acd9a362dd37f6c99b5374b8704656bcacbd907b2fecf.yml
-openapi_spec_hash: 3555741ffe1182a65afc82cc9d8a3b8e
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5172b3168331d41dc62cce06d8a009b0463d0c6265d4e582c7aa4541b36ddaa8.yml
+openapi_spec_hash: 473cb4b65ccabb26fdee3e9df96b8afd
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 4804e746b3d6725f2b9fb41f8aa7a16cfb1ef5c2 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 13:12:31 +0000
Subject: [PATCH 006/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index a96cbaf996..44ac413cd0 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5172b3168331d41dc62cce06d8a009b0463d0c6265d4e582c7aa4541b36ddaa8.yml
-openapi_spec_hash: 473cb4b65ccabb26fdee3e9df96b8afd
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b67fbd6354a04a99b4aabe846de0e130c31d5fb3494350e1beda0673fc2d6b2e.yml
+openapi_spec_hash: fd30c4d5c962417249bb0b108c17d2db
config_hash: 107e0f1f8a98b007260b319226b88b3c
From f42a3a7754216ce097b5fefca25b064460f7d94f Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 13:26:42 +0000
Subject: [PATCH 007/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 44ac413cd0..3c1c2ab177 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b67fbd6354a04a99b4aabe846de0e130c31d5fb3494350e1beda0673fc2d6b2e.yml
-openapi_spec_hash: fd30c4d5c962417249bb0b108c17d2db
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6aa366a0c97409615fe48ff1c4bee5ea9abf54903092b3b81c4047210bcad39d.yml
+openapi_spec_hash: 0f692ae2fa408640947890f2d6245536
config_hash: 107e0f1f8a98b007260b319226b88b3c
From aaf917c96218bcc574c7f1212b49d3186af3fc04 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 13:51:11 +0000
Subject: [PATCH 008/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 3c1c2ab177..12ff249ce6 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6aa366a0c97409615fe48ff1c4bee5ea9abf54903092b3b81c4047210bcad39d.yml
-openapi_spec_hash: 0f692ae2fa408640947890f2d6245536
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1dc6364e113f0ef5fd5ad80a1bb0be3de5079fed0e7f106495ecd8cb570c240e.yml
+openapi_spec_hash: 2019a1df67d77926725688aa6538cf4f
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 40edffd63923b542ca759c7b64c386ba9642de9e Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 13:52:57 +0000
Subject: [PATCH 009/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 12ff249ce6..f9aea78af0 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1dc6364e113f0ef5fd5ad80a1bb0be3de5079fed0e7f106495ecd8cb570c240e.yml
-openapi_spec_hash: 2019a1df67d77926725688aa6538cf4f
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-24fe94e0d6636d4c7345aadcd03c593de56e7f5dd9ea4c23d9d06fbf534d2db2.yml
+openapi_spec_hash: c4dda2fde35dec529d977a9f98071b9a
config_hash: 107e0f1f8a98b007260b319226b88b3c
From c295bdde067cd0e82461e7c77fa4487370713b5c Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 14:24:58 +0000
Subject: [PATCH 010/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index f9aea78af0..4c66979d72 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-24fe94e0d6636d4c7345aadcd03c593de56e7f5dd9ea4c23d9d06fbf534d2db2.yml
-openapi_spec_hash: c4dda2fde35dec529d977a9f98071b9a
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-571f1debc8e63cbc59b33302aa8c0f7e57779c3bf22ef1096864d296f18bb098.yml
+openapi_spec_hash: 2b16a59b556bc2e2a2cb629675e270e9
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 710fdc56a21b790eca7ceb6fb9ddbb0407e9f553 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 14:26:35 +0000
Subject: [PATCH 011/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 4c66979d72..af373819bc 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-571f1debc8e63cbc59b33302aa8c0f7e57779c3bf22ef1096864d296f18bb098.yml
-openapi_spec_hash: 2b16a59b556bc2e2a2cb629675e270e9
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c9c26403ed2c9e6bfa7b83f1be66375b7b6b5642ac2c70209b599bd7517eaceb.yml
+openapi_spec_hash: 9a1047da703e12d606096d20d61683ea
config_hash: 107e0f1f8a98b007260b319226b88b3c
From cd6f5f9bd2c905bc3373435311230cadc749a2ec Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 14:35:17 +0000
Subject: [PATCH 012/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index af373819bc..b91295b41a 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c9c26403ed2c9e6bfa7b83f1be66375b7b6b5642ac2c70209b599bd7517eaceb.yml
-openapi_spec_hash: 9a1047da703e12d606096d20d61683ea
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9be4234db8d3a4dc416a5377e8bdec2b3f724527526b1743b060799802f72498.yml
+openapi_spec_hash: 4904dca83e16f0da9827d99c58338e8d
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 2df62954a40feae7070f43266fcfe4671aa6c9db Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 14:36:56 +0000
Subject: [PATCH 013/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index b91295b41a..af373819bc 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9be4234db8d3a4dc416a5377e8bdec2b3f724527526b1743b060799802f72498.yml
-openapi_spec_hash: 4904dca83e16f0da9827d99c58338e8d
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c9c26403ed2c9e6bfa7b83f1be66375b7b6b5642ac2c70209b599bd7517eaceb.yml
+openapi_spec_hash: 9a1047da703e12d606096d20d61683ea
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 8ac1f02f8331b97a75b5b3663afdfcaa386cca11 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 14:38:36 +0000
Subject: [PATCH 014/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index af373819bc..e66e0c6bfa 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c9c26403ed2c9e6bfa7b83f1be66375b7b6b5642ac2c70209b599bd7517eaceb.yml
-openapi_spec_hash: 9a1047da703e12d606096d20d61683ea
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dc85b9602a2121470011eed2dc6e4c57d44b42c88e91421426a38a4bcdc5af4b.yml
+openapi_spec_hash: 1cf30f6f7de381d58a0ab3ae2c256da4
config_hash: 107e0f1f8a98b007260b319226b88b3c
From d2de6282906ef11d2a7386b9395e0856f0668746 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 15:19:28 +0000
Subject: [PATCH 015/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index e66e0c6bfa..1b2d67b005 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dc85b9602a2121470011eed2dc6e4c57d44b42c88e91421426a38a4bcdc5af4b.yml
-openapi_spec_hash: 1cf30f6f7de381d58a0ab3ae2c256da4
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cd2e3166c140de7ce9aea4624294ca908024d6f69f940bbc1e1ecb3849024bc6.yml
+openapi_spec_hash: b46a43636d5d233304475e2267c771fe
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 10bfa92be31281375ec132134a413cfe80870a5e Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 15:23:19 +0000
Subject: [PATCH 016/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 1b2d67b005..5af9635fb7 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cd2e3166c140de7ce9aea4624294ca908024d6f69f940bbc1e1ecb3849024bc6.yml
-openapi_spec_hash: b46a43636d5d233304475e2267c771fe
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a3736df8c0ff4b844dd241b3568597757220226d32e6ae00d21c4dd282008edb.yml
+openapi_spec_hash: 254d8cd4faecf90574a85dd47572f2ca
config_hash: 107e0f1f8a98b007260b319226b88b3c
From b1609d241ac08658aa5547a01c50b2ff7bd8938c Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 15:29:47 +0000
Subject: [PATCH 017/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 5af9635fb7..f9aea78af0 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a3736df8c0ff4b844dd241b3568597757220226d32e6ae00d21c4dd282008edb.yml
-openapi_spec_hash: 254d8cd4faecf90574a85dd47572f2ca
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-24fe94e0d6636d4c7345aadcd03c593de56e7f5dd9ea4c23d9d06fbf534d2db2.yml
+openapi_spec_hash: c4dda2fde35dec529d977a9f98071b9a
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 0e2e7090fc3ef234e2e01db0fe12e9c4e6842abd Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 15:31:41 +0000
Subject: [PATCH 018/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index f9aea78af0..3c1c2ab177 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-24fe94e0d6636d4c7345aadcd03c593de56e7f5dd9ea4c23d9d06fbf534d2db2.yml
-openapi_spec_hash: c4dda2fde35dec529d977a9f98071b9a
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6aa366a0c97409615fe48ff1c4bee5ea9abf54903092b3b81c4047210bcad39d.yml
+openapi_spec_hash: 0f692ae2fa408640947890f2d6245536
config_hash: 107e0f1f8a98b007260b319226b88b3c
From ebb7b3d2f1250a5cf29a523c384a85ca228f640f Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 15:33:37 +0000
Subject: [PATCH 019/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 3c1c2ab177..409dbf5a1f 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6aa366a0c97409615fe48ff1c4bee5ea9abf54903092b3b81c4047210bcad39d.yml
-openapi_spec_hash: 0f692ae2fa408640947890f2d6245536
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e442fce0dce2e390b39c69d751c1b58044f37132fd9c5a6b62b0454b8e3d2b5.yml
+openapi_spec_hash: 63128c5acd4c35d5adf4ffb260450f00
config_hash: 107e0f1f8a98b007260b319226b88b3c
From b2ea18346b0aa9282478e5904d40c1fcc578829c Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 15:37:36 +0000
Subject: [PATCH 020/451] chore(api): update composite API spec
---
.stats.yml | 4 +-
.../dispatch/namespaces/scripts/bindings.ts | 2 +-
.../dispatch/namespaces/scripts/scripts.ts | 2 +-
.../dispatch/namespaces/scripts/settings.ts | 6 +-
.../workers/beta/workers/versions.ts | 4 +-
src/resources/workers/beta/workers/workers.ts | 138 ++++++++++++++++++
.../scripts/script-and-version-settings.ts | 6 +-
src/resources/workers/scripts/scripts.ts | 2 +-
src/resources/workers/scripts/versions.ts | 6 +-
9 files changed, 154 insertions(+), 16 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 409dbf5a1f..4298fd9111 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e442fce0dce2e390b39c69d751c1b58044f37132fd9c5a6b62b0454b8e3d2b5.yml
-openapi_spec_hash: 63128c5acd4c35d5adf4ffb260450f00
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-da898c50e812b8d004199a66cbadb1ce43450928a6700f9fa0d7ae26d61df08b.yml
+openapi_spec_hash: bd9a337e74a90fd0e886dbea5631766e
config_hash: 107e0f1f8a98b007260b319226b88b3c
diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts
index 8b15a53e2d..4af2451c88 100644
--- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts
+++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts
@@ -168,7 +168,7 @@ export namespace BindingGetResponse {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts
index 9170366dbd..78e5e95423 100644
--- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts
+++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts
@@ -616,7 +616,7 @@ export namespace ScriptUpdateParams {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts
index fea3a53ffc..216456a041 100644
--- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts
+++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts
@@ -247,7 +247,7 @@ export namespace SettingEditResponse {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
@@ -999,7 +999,7 @@ export namespace SettingGetResponse {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
@@ -1769,7 +1769,7 @@ export namespace SettingEditParams {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
diff --git a/src/resources/workers/beta/workers/versions.ts b/src/resources/workers/beta/workers/versions.ts
index 300510fc56..185cea7033 100644
--- a/src/resources/workers/beta/workers/versions.ts
+++ b/src/resources/workers/beta/workers/versions.ts
@@ -409,7 +409,7 @@ export namespace Version {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
@@ -1263,7 +1263,7 @@ export namespace VersionCreateParams {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
diff --git a/src/resources/workers/beta/workers/workers.ts b/src/resources/workers/beta/workers/workers.ts
index ba7791704e..d4e49b0055 100644
--- a/src/resources/workers/beta/workers/workers.ts
+++ b/src/resources/workers/beta/workers/workers.ts
@@ -193,6 +193,11 @@ export interface Worker {
*/
observability: Worker.Observability;
+ /**
+ * Other resources that reference the Worker and depend on it existing.
+ */
+ references: Worker.References;
+
/**
* Subdomain settings for the Worker.
*/
@@ -259,6 +264,139 @@ export namespace Worker {
}
}
+ /**
+ * Other resources that reference the Worker and depend on it existing.
+ */
+ export interface References {
+ /**
+ * Other Workers that reference the Worker as an outbound for a dispatch namespace.
+ */
+ dispatch_namespace_outbounds: Array;
+
+ /**
+ * Custom domains connected to the Worker.
+ */
+ domains: Array;
+
+ /**
+ * Other Workers that reference Durable Object classes implemented by the Worker.
+ */
+ durable_objects: Array;
+
+ /**
+ * Queues that send messages to the Worker.
+ */
+ queues: Array;
+
+ /**
+ * Other Workers that reference the Worker using
+ * [service bindings](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/).
+ */
+ workers: Array;
+ }
+
+ export namespace References {
+ export interface DispatchNamespaceOutbound {
+ /**
+ * ID of the dispatch namespace.
+ */
+ namespace_id: string;
+
+ /**
+ * Name of the dispatch namespace.
+ */
+ namespace_name: string;
+
+ /**
+ * ID of the Worker using the dispatch namespace.
+ */
+ worker_id: string;
+
+ /**
+ * Name of the Worker using the dispatch namespace.
+ */
+ worker_name: string;
+ }
+
+ export interface Domain {
+ /**
+ * ID of the custom domain.
+ */
+ id: string;
+
+ /**
+ * ID of the TLS certificate issued for the custom domain.
+ */
+ certificate_id: string;
+
+ /**
+ * Full hostname of the custom domain, including the zone name.
+ */
+ hostname: string;
+
+ /**
+ * ID of the zone.
+ */
+ zone_id: string;
+
+ /**
+ * Name of the zone.
+ */
+ zone_name: string;
+ }
+
+ export interface DurableObject {
+ /**
+ * ID of the Durable Object namespace being used.
+ */
+ namespace_id: string;
+
+ /**
+ * Name of the Durable Object namespace being used.
+ */
+ namespace_name: string;
+
+ /**
+ * ID of the Worker using the Durable Object implementation.
+ */
+ worker_id: string;
+
+ /**
+ * Name of the Worker using the Durable Object implementation.
+ */
+ worker_name: string;
+ }
+
+ export interface Queue {
+ /**
+ * ID of the queue consumer configuration.
+ */
+ queue_consumer_id: string;
+
+ /**
+ * ID of the queue.
+ */
+ queue_id: string;
+
+ /**
+ * Name of the queue.
+ */
+ queue_name: string;
+ }
+
+ export interface Worker {
+ /**
+ * ID of the referencing Worker.
+ */
+ id: string;
+
+ /**
+ * Name of the referencing Worker.
+ */
+ name: string;
+ }
+ }
+
/**
* Subdomain settings for the Worker.
*/
diff --git a/src/resources/workers/scripts/script-and-version-settings.ts b/src/resources/workers/scripts/script-and-version-settings.ts
index 05bc7152a0..d6ef7552ca 100644
--- a/src/resources/workers/scripts/script-and-version-settings.ts
+++ b/src/resources/workers/scripts/script-and-version-settings.ts
@@ -243,7 +243,7 @@ export namespace ScriptAndVersionSettingEditResponse {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
@@ -995,7 +995,7 @@ export namespace ScriptAndVersionSettingGetResponse {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
@@ -1765,7 +1765,7 @@ export namespace ScriptAndVersionSettingEditParams {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
diff --git a/src/resources/workers/scripts/scripts.ts b/src/resources/workers/scripts/scripts.ts
index d96bb354dc..70546d5580 100644
--- a/src/resources/workers/scripts/scripts.ts
+++ b/src/resources/workers/scripts/scripts.ts
@@ -925,7 +925,7 @@ export namespace ScriptUpdateParams {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
diff --git a/src/resources/workers/scripts/versions.ts b/src/resources/workers/scripts/versions.ts
index c07bc881ba..c9027b6f0c 100644
--- a/src/resources/workers/scripts/versions.ts
+++ b/src/resources/workers/scripts/versions.ts
@@ -245,7 +245,7 @@ export namespace VersionCreateResponse {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
@@ -981,7 +981,7 @@ export namespace VersionGetResponse {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
@@ -1745,7 +1745,7 @@ export namespace VersionCreateParams {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
From cb86be162fad39d06b7d9d8e6577c820584086ab Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 16:05:29 +0000
Subject: [PATCH 021/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 4298fd9111..74d98e8eae 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-da898c50e812b8d004199a66cbadb1ce43450928a6700f9fa0d7ae26d61df08b.yml
-openapi_spec_hash: bd9a337e74a90fd0e886dbea5631766e
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e72bea1cac5e5deaf366b954dc79ebc69af2ff2ebaeba7db2d1c7b5c2c199422.yml
+openapi_spec_hash: fd6022951e9e6a5bb2a436b3717ae0a2
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 12b6809278736db05c4bfed974e40ba37d07bc19 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 16:07:28 +0000
Subject: [PATCH 022/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 74d98e8eae..b3477d0701 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e72bea1cac5e5deaf366b954dc79ebc69af2ff2ebaeba7db2d1c7b5c2c199422.yml
-openapi_spec_hash: fd6022951e9e6a5bb2a436b3717ae0a2
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9c002df6c6110e7f2fa55aee367ae282e9a2c1448b577ecd209be6df21d98ead.yml
+openapi_spec_hash: af2939e2bdae76e43d7e11d0528f394e
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 57914061afef14cd9d39f63087c87b7c4914bcd6 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 16:09:26 +0000
Subject: [PATCH 023/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index b3477d0701..f01541f3ee 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9c002df6c6110e7f2fa55aee367ae282e9a2c1448b577ecd209be6df21d98ead.yml
-openapi_spec_hash: af2939e2bdae76e43d7e11d0528f394e
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b7533b344002c9ae4cddd499f99ed64fd80378c48e1bac2f350ae306278f963e.yml
+openapi_spec_hash: 56c274598dcb75f3a4420b3eb7fee24d
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 00fa5dbe22ff0d336de245cf5fedeac8e7d5fb2b Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 16:11:24 +0000
Subject: [PATCH 024/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index f01541f3ee..d212dc6903 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b7533b344002c9ae4cddd499f99ed64fd80378c48e1bac2f350ae306278f963e.yml
-openapi_spec_hash: 56c274598dcb75f3a4420b3eb7fee24d
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7e7cd547a7d0b9e18383f377c31a882520ef30173a79ef080108afe29cf8cdc1.yml
+openapi_spec_hash: 4458adef537a902f28f046be44c814d4
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 199bc6c888938f307c2e36599d3e6479fe8d7c7e Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 16:13:18 +0000
Subject: [PATCH 025/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index d212dc6903..833a20f236 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7e7cd547a7d0b9e18383f377c31a882520ef30173a79ef080108afe29cf8cdc1.yml
-openapi_spec_hash: 4458adef537a902f28f046be44c814d4
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2871db6c3262a226c8faf8267f99594cfe2e2703c50668bcc583945960738797.yml
+openapi_spec_hash: abf319e7a2d8f54b72159593ebb6a0a9
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 9bbbd7f4f2f6717d0a04931d49c82d46625b84e2 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 16:14:54 +0000
Subject: [PATCH 026/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 833a20f236..466a4a72b6 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2871db6c3262a226c8faf8267f99594cfe2e2703c50668bcc583945960738797.yml
-openapi_spec_hash: abf319e7a2d8f54b72159593ebb6a0a9
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6285010832480b69f3928734beb046f853a7d4d486af26a66a77c3d0b24bfa48.yml
+openapi_spec_hash: 972234a7df41077ed962de19b1c971b6
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 96e4153bae080bea0f5809817c1decdcdac7e633 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 16:16:47 +0000
Subject: [PATCH 027/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 466a4a72b6..4125df33a7 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6285010832480b69f3928734beb046f853a7d4d486af26a66a77c3d0b24bfa48.yml
-openapi_spec_hash: 972234a7df41077ed962de19b1c971b6
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f446e48d4dafa2c9794ec2b412699fef9a4e1b93c2b07f94ca793bcdb11b87cd.yml
+openapi_spec_hash: 87c86f08a9a9cd39ba460cfd51043c3d
config_hash: 107e0f1f8a98b007260b319226b88b3c
From ec3ef70ff6d114315e535ff57f9bece456e6f7d6 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 16:18:43 +0000
Subject: [PATCH 028/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 4125df33a7..8973c9a945 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f446e48d4dafa2c9794ec2b412699fef9a4e1b93c2b07f94ca793bcdb11b87cd.yml
-openapi_spec_hash: 87c86f08a9a9cd39ba460cfd51043c3d
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-953e1af510667e5f98406d0398d734f21d6713690863fca8d22196f4d65c0915.yml
+openapi_spec_hash: ac5752bb413db0f9201e5f2727a504ec
config_hash: 107e0f1f8a98b007260b319226b88b3c
From b618a380d28a5a95f1a1ca2d69a9108582d3a5d4 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 16:26:22 +0000
Subject: [PATCH 029/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 8973c9a945..e7d6132c63 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-953e1af510667e5f98406d0398d734f21d6713690863fca8d22196f4d65c0915.yml
-openapi_spec_hash: ac5752bb413db0f9201e5f2727a504ec
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1b0c0a4571bda3df4507a5083833699b6a7231b99f46b6f269ea6c9c3df994d8.yml
+openapi_spec_hash: ddb58f8c947acabbcf1720f01d50b496
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 8f4584edef342f1f62d2429b3a293d75b22af797 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 16:28:42 +0000
Subject: [PATCH 030/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index e7d6132c63..382f6a750d 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1b0c0a4571bda3df4507a5083833699b6a7231b99f46b6f269ea6c9c3df994d8.yml
-openapi_spec_hash: ddb58f8c947acabbcf1720f01d50b496
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-22f5436065b535d4c9c61ee0e38663b28b3f8686ec004850570f9df78f40e239.yml
+openapi_spec_hash: bde4d0471370dc8d0e66ecc31ef4f044
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 7d63a6353df57ca679d7ef0e2370df1c4acf3d3f Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 16:30:38 +0000
Subject: [PATCH 031/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 382f6a750d..1cde3ac93f 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-22f5436065b535d4c9c61ee0e38663b28b3f8686ec004850570f9df78f40e239.yml
-openapi_spec_hash: bde4d0471370dc8d0e66ecc31ef4f044
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-550fcf5a8da88cc946f7dea5821a1645a287e289648ae68cdc1f634b68a75ccf.yml
+openapi_spec_hash: 13f0ad5a5e110aa41a1c9bbd7eeb5334
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 87e246daa3860956922d9c9a36e8b212c93e8891 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 16:32:14 +0000
Subject: [PATCH 032/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 1cde3ac93f..5ab9ad12f8 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-550fcf5a8da88cc946f7dea5821a1645a287e289648ae68cdc1f634b68a75ccf.yml
-openapi_spec_hash: 13f0ad5a5e110aa41a1c9bbd7eeb5334
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3a0147d11c6b749de3475fa20b20e8a759e0aeeef36413b4faf584dc5d44f7c2.yml
+openapi_spec_hash: 1b299d0c174e2d28de5958758b5a2001
config_hash: 107e0f1f8a98b007260b319226b88b3c
From c1895d3a429578da012386fd38e189a901120a41 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 16:51:58 +0000
Subject: [PATCH 033/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 5ab9ad12f8..b75082cc2e 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3a0147d11c6b749de3475fa20b20e8a759e0aeeef36413b4faf584dc5d44f7c2.yml
-openapi_spec_hash: 1b299d0c174e2d28de5958758b5a2001
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-45c0ed4d92d7995c36daeb7c26163ecbdda2ed124a14a14bf8d6fc0ee89fbf5c.yml
+openapi_spec_hash: 478f09f6efd702c9129f0236e91f3936
config_hash: 107e0f1f8a98b007260b319226b88b3c
From f1f486d4d67a257e0e17fd065617b5da2be2031a Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 16:53:55 +0000
Subject: [PATCH 034/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index b75082cc2e..466a4a72b6 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-45c0ed4d92d7995c36daeb7c26163ecbdda2ed124a14a14bf8d6fc0ee89fbf5c.yml
-openapi_spec_hash: 478f09f6efd702c9129f0236e91f3936
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6285010832480b69f3928734beb046f853a7d4d486af26a66a77c3d0b24bfa48.yml
+openapi_spec_hash: 972234a7df41077ed962de19b1c971b6
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 453828a6967bd654302823f84a37bd835007c491 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 17:23:30 +0000
Subject: [PATCH 035/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 466a4a72b6..37cacc49cd 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6285010832480b69f3928734beb046f853a7d4d486af26a66a77c3d0b24bfa48.yml
-openapi_spec_hash: 972234a7df41077ed962de19b1c971b6
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-03b64425cfdbf051936f027e52eb9442d2b5e10ae571b197dcd97da2f7b3d9b0.yml
+openapi_spec_hash: 6c1ad8cc9ec7e90daf15f4154d25791a
config_hash: 107e0f1f8a98b007260b319226b88b3c
From c788e2d9ba74017a6245efb18a96acd3a01c3519 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 17:44:33 +0000
Subject: [PATCH 036/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 37cacc49cd..5f1ff485c1 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-03b64425cfdbf051936f027e52eb9442d2b5e10ae571b197dcd97da2f7b3d9b0.yml
-openapi_spec_hash: 6c1ad8cc9ec7e90daf15f4154d25791a
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-71417f591eca0bbd6ae202f5a763b5434d539feefea14b6883320c87b3bee939.yml
+openapi_spec_hash: 14d04fe4571e0532a8bc0202e0a816ac
config_hash: 107e0f1f8a98b007260b319226b88b3c
From f8cfbd659bf8ff739505424026124211b098a94d Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 17:46:28 +0000
Subject: [PATCH 037/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 5f1ff485c1..d212dc6903 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-71417f591eca0bbd6ae202f5a763b5434d539feefea14b6883320c87b3bee939.yml
-openapi_spec_hash: 14d04fe4571e0532a8bc0202e0a816ac
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7e7cd547a7d0b9e18383f377c31a882520ef30173a79ef080108afe29cf8cdc1.yml
+openapi_spec_hash: 4458adef537a902f28f046be44c814d4
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 55571ca178c260c4dd426c1b2b81209e1ae85281 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 17:48:27 +0000
Subject: [PATCH 038/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index d212dc6903..6dedc7eb99 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7e7cd547a7d0b9e18383f377c31a882520ef30173a79ef080108afe29cf8cdc1.yml
-openapi_spec_hash: 4458adef537a902f28f046be44c814d4
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-11760442735126f858083e3dda6dad148717429747b07e65ddfe81e3b29c0447.yml
+openapi_spec_hash: 9e78c9ec5468b182551410d1eb522b60
config_hash: 107e0f1f8a98b007260b319226b88b3c
From dbdfd47c604a13c7181f44f28f3c2c38a8934485 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 18:05:01 +0000
Subject: [PATCH 039/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 6dedc7eb99..32f0629d05 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-11760442735126f858083e3dda6dad148717429747b07e65ddfe81e3b29c0447.yml
-openapi_spec_hash: 9e78c9ec5468b182551410d1eb522b60
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e771e43866ebf265f94acb68fe8c565eff7eb07669766c9d316ba26798ca0cd5.yml
+openapi_spec_hash: ddd24276a1bdfffe0e79f0099bf812b8
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 7f070f849fad43be57f0e1d7b03f56c643e80392 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 18:07:04 +0000
Subject: [PATCH 040/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 32f0629d05..466a4a72b6 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e771e43866ebf265f94acb68fe8c565eff7eb07669766c9d316ba26798ca0cd5.yml
-openapi_spec_hash: ddd24276a1bdfffe0e79f0099bf812b8
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6285010832480b69f3928734beb046f853a7d4d486af26a66a77c3d0b24bfa48.yml
+openapi_spec_hash: 972234a7df41077ed962de19b1c971b6
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 4d1456eadb332111a92f4a648010d0f085a17f19 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 18:20:45 +0000
Subject: [PATCH 041/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 466a4a72b6..7b37664f14 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6285010832480b69f3928734beb046f853a7d4d486af26a66a77c3d0b24bfa48.yml
-openapi_spec_hash: 972234a7df41077ed962de19b1c971b6
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-72f6a7c4a5bbe992c6f7100ae66a62fee1befb6b8aee9a189c169df76ca1ec27.yml
+openapi_spec_hash: a3b05b450863be9e4e78da28ea3bcdbf
config_hash: 107e0f1f8a98b007260b319226b88b3c
From ea68e4ef11814adad24786b33568dfb7b28f4fc7 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 18:24:04 +0000
Subject: [PATCH 042/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 7b37664f14..2fdd64bf03 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-72f6a7c4a5bbe992c6f7100ae66a62fee1befb6b8aee9a189c169df76ca1ec27.yml
-openapi_spec_hash: a3b05b450863be9e4e78da28ea3bcdbf
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-063ae8fad5c12bc83f1175532cbb5ae6e97a261dd91522f5733290f66a031fac.yml
+openapi_spec_hash: 1315978f7cc6bbd06caff1e6c2481d15
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 0a840c3b81a14c9713f681fdb45d92ca5ce004d9 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 18:26:01 +0000
Subject: [PATCH 043/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 2fdd64bf03..044e0ee3f4 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-063ae8fad5c12bc83f1175532cbb5ae6e97a261dd91522f5733290f66a031fac.yml
-openapi_spec_hash: 1315978f7cc6bbd06caff1e6c2481d15
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-34fac9517dafa7a70a3de8f59b8fbff204199eb3c136ad1d375f5ef158f87d90.yml
+openapi_spec_hash: 6a915873baf7fcdca625c90909492e28
config_hash: 107e0f1f8a98b007260b319226b88b3c
From e7b03f5a4881b9f91a02397bda81ab913537983e Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 18:28:01 +0000
Subject: [PATCH 044/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 044e0ee3f4..a381b2646e 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-34fac9517dafa7a70a3de8f59b8fbff204199eb3c136ad1d375f5ef158f87d90.yml
-openapi_spec_hash: 6a915873baf7fcdca625c90909492e28
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5a0a8eba270d75f3bba1a7568734b7e5608539b9ff6adf0f266555d85b849ec4.yml
+openapi_spec_hash: 075f7dae6333e825e9d61299ef213783
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 6dd404e795e5e8b9e4087fc2fad7ba075477d0f8 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 18:35:29 +0000
Subject: [PATCH 045/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index a381b2646e..0a983f097f 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5a0a8eba270d75f3bba1a7568734b7e5608539b9ff6adf0f266555d85b849ec4.yml
-openapi_spec_hash: 075f7dae6333e825e9d61299ef213783
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7492bc33f84221ee63fe654c22680333788bfd2dfe8985c58f9d3db555ffca2b.yml
+openapi_spec_hash: b454db8aa8af2160a780a5b69445f3a4
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 0af1302f0e0525980610eed4fa7ca2cc5ef9bf30 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 19:15:26 +0000
Subject: [PATCH 046/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 0a983f097f..90bcc72500 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7492bc33f84221ee63fe654c22680333788bfd2dfe8985c58f9d3db555ffca2b.yml
-openapi_spec_hash: b454db8aa8af2160a780a5b69445f3a4
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ea2ee1798186868a7dd47b3afbbece4bd85f9a5425375195a4d7b64cd59907f0.yml
+openapi_spec_hash: e9e0b5b59b267d960e765280f2f2fbd9
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 49c9ce2656676d00ec080f01d7e5429cce0f328c Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 19:17:10 +0000
Subject: [PATCH 047/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 90bcc72500..fc5403188c 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ea2ee1798186868a7dd47b3afbbece4bd85f9a5425375195a4d7b64cd59907f0.yml
-openapi_spec_hash: e9e0b5b59b267d960e765280f2f2fbd9
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-63b8350ae06828cd3ff3a440a34dc60f4205dce02c04ea20fd976bd7339a4640.yml
+openapi_spec_hash: 17955e6cfc168a84c2154ab49906caab
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 7cdfb53afcb74d9a73601f379b41533ab5a8a295 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 19:19:35 +0000
Subject: [PATCH 048/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index fc5403188c..e9206b4840 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-63b8350ae06828cd3ff3a440a34dc60f4205dce02c04ea20fd976bd7339a4640.yml
-openapi_spec_hash: 17955e6cfc168a84c2154ab49906caab
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ebe03fcf85908149a91832a8145651eb2df1ec5c331716ab81a0403e54c023d2.yml
+openapi_spec_hash: 832b81737e7605f27834256f85591544
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 2f78f989ae3ff8b49c0f9b00740a3e9856071b86 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 19:21:28 +0000
Subject: [PATCH 049/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index e9206b4840..7c90e88838 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ebe03fcf85908149a91832a8145651eb2df1ec5c331716ab81a0403e54c023d2.yml
-openapi_spec_hash: 832b81737e7605f27834256f85591544
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-abf02ffd59ffe6b3897731e47497336e6d6399cd49d3f097c7b9ace581727642.yml
+openapi_spec_hash: 6125e56ed7bb75a72d09c4f9acf65d34
config_hash: 107e0f1f8a98b007260b319226b88b3c
From ffabf908876da6c84a2d84c72c75d74b6771f986 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 19:25:19 +0000
Subject: [PATCH 050/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 7c90e88838..044e0ee3f4 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-abf02ffd59ffe6b3897731e47497336e6d6399cd49d3f097c7b9ace581727642.yml
-openapi_spec_hash: 6125e56ed7bb75a72d09c4f9acf65d34
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-34fac9517dafa7a70a3de8f59b8fbff204199eb3c136ad1d375f5ef158f87d90.yml
+openapi_spec_hash: 6a915873baf7fcdca625c90909492e28
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 3c169b4d4735e2374c44e9c88d68bf5e3339002e Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 19:27:12 +0000
Subject: [PATCH 051/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 044e0ee3f4..567cf59238 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-34fac9517dafa7a70a3de8f59b8fbff204199eb3c136ad1d375f5ef158f87d90.yml
-openapi_spec_hash: 6a915873baf7fcdca625c90909492e28
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-aee423c17b926f1afe767922a4575edc0124072663364a2c3406a7b7195f277f.yml
+openapi_spec_hash: 2cf3996fe0a6c6706788e5f1e072cf36
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 1b0680bc7dc780f13c47353a9fceaecf29189744 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 19:55:49 +0000
Subject: [PATCH 052/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 567cf59238..6a469e89c2 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-aee423c17b926f1afe767922a4575edc0124072663364a2c3406a7b7195f277f.yml
-openapi_spec_hash: 2cf3996fe0a6c6706788e5f1e072cf36
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-352a4816985c297d8a280fd0add8eca0d15f056c8e9fa34d3496526ac753b82e.yml
+openapi_spec_hash: 3c03db54250b75e7d446c7b9e35d303d
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 6ec90aace2c6d051067a77e502626dd10b551c10 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 19:57:41 +0000
Subject: [PATCH 053/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 6a469e89c2..08180c149b 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-352a4816985c297d8a280fd0add8eca0d15f056c8e9fa34d3496526ac753b82e.yml
-openapi_spec_hash: 3c03db54250b75e7d446c7b9e35d303d
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-40178787343443c721e2a8a3f6c3fd8d78127f7ecb984d46d8eece2bf95015bc.yml
+openapi_spec_hash: b784af904ab876932d74fd678d89a4f2
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 46be02bc504ad745daed148d223fa245c6c0cd44 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 20:01:22 +0000
Subject: [PATCH 054/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 08180c149b..044e0ee3f4 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-40178787343443c721e2a8a3f6c3fd8d78127f7ecb984d46d8eece2bf95015bc.yml
-openapi_spec_hash: b784af904ab876932d74fd678d89a4f2
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-34fac9517dafa7a70a3de8f59b8fbff204199eb3c136ad1d375f5ef158f87d90.yml
+openapi_spec_hash: 6a915873baf7fcdca625c90909492e28
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 52fda57f60361853412b3b40bc78d7ab340f69a9 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 20:24:22 +0000
Subject: [PATCH 055/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 044e0ee3f4..86b0e81bca 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-34fac9517dafa7a70a3de8f59b8fbff204199eb3c136ad1d375f5ef158f87d90.yml
-openapi_spec_hash: 6a915873baf7fcdca625c90909492e28
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6eea9aed3d1f9c62552736c6565fb80c9356bb3e49cf2dcd2755d958582ec229.yml
+openapi_spec_hash: 22f228203c9f53196132085852317e4f
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 2d20a6ce3e48c5e5892b9e57743938e184cd6903 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 20:27:09 +0000
Subject: [PATCH 056/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 86b0e81bca..2b95ac2fe1 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6eea9aed3d1f9c62552736c6565fb80c9356bb3e49cf2dcd2755d958582ec229.yml
-openapi_spec_hash: 22f228203c9f53196132085852317e4f
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f3bdad647c2632923da769367c580bb650ef4f18a8f1f6d4a911e95018a3e015.yml
+openapi_spec_hash: ce8cc9d02a08c4ab56d5ec624334b32f
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 01e6012dc294c01a4dca5d448fdef6a786c23bf6 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 20:34:52 +0000
Subject: [PATCH 057/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 2b95ac2fe1..0133e9ed93 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f3bdad647c2632923da769367c580bb650ef4f18a8f1f6d4a911e95018a3e015.yml
-openapi_spec_hash: ce8cc9d02a08c4ab56d5ec624334b32f
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e832fad247781dd77df3158e12d1106dc6220dc89709cd7930ad793f3192e07c.yml
+openapi_spec_hash: b703ba1646cdcc86a380c58062a6983d
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 1d331d969cee3e1094f6375aecd5e6683f952075 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 20:36:33 +0000
Subject: [PATCH 058/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 0133e9ed93..0a983f097f 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e832fad247781dd77df3158e12d1106dc6220dc89709cd7930ad793f3192e07c.yml
-openapi_spec_hash: b703ba1646cdcc86a380c58062a6983d
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7492bc33f84221ee63fe654c22680333788bfd2dfe8985c58f9d3db555ffca2b.yml
+openapi_spec_hash: b454db8aa8af2160a780a5b69445f3a4
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 336de3ff7745f606bd6c1454e10647fbcb21d113 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 20:38:12 +0000
Subject: [PATCH 059/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 0a983f097f..3156197131 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7492bc33f84221ee63fe654c22680333788bfd2dfe8985c58f9d3db555ffca2b.yml
-openapi_spec_hash: b454db8aa8af2160a780a5b69445f3a4
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4e9d90b983d84904f3e1fd499fed3e179543d44f742fcf27d35cdf38f628ac4f.yml
+openapi_spec_hash: 99841f78b73c890841459a4bdf739766
config_hash: 107e0f1f8a98b007260b319226b88b3c
From cb255df1dd2c511562c11005207111f2062b2f5c Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 21:27:50 +0000
Subject: [PATCH 060/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 3156197131..64447303b1 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4e9d90b983d84904f3e1fd499fed3e179543d44f742fcf27d35cdf38f628ac4f.yml
-openapi_spec_hash: 99841f78b73c890841459a4bdf739766
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cd4a6a750ee22555bdd74a2ac5735afc694ae54451f088a8fbc2891d2230ece8.yml
+openapi_spec_hash: 8d7ac055ab6c215cfeffaeedbba9f67c
config_hash: 107e0f1f8a98b007260b319226b88b3c
From c0b39fc802ad6af06a402a4000a6e5b6e66b9d6c Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 21:29:58 +0000
Subject: [PATCH 061/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 64447303b1..044e0ee3f4 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cd4a6a750ee22555bdd74a2ac5735afc694ae54451f088a8fbc2891d2230ece8.yml
-openapi_spec_hash: 8d7ac055ab6c215cfeffaeedbba9f67c
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-34fac9517dafa7a70a3de8f59b8fbff204199eb3c136ad1d375f5ef158f87d90.yml
+openapi_spec_hash: 6a915873baf7fcdca625c90909492e28
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 211539333bc65b89c920ee9e3b3cff92ef3ea232 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 21:38:49 +0000
Subject: [PATCH 062/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 044e0ee3f4..4c4123cd99 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-34fac9517dafa7a70a3de8f59b8fbff204199eb3c136ad1d375f5ef158f87d90.yml
-openapi_spec_hash: 6a915873baf7fcdca625c90909492e28
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c6563b6973fb591d95f5df9adeaa9e01ea139c88614d7b454b5f4e3f8748541a.yml
+openapi_spec_hash: aff860d040d08352b10ca736c9cedfcc
config_hash: 107e0f1f8a98b007260b319226b88b3c
From a828dbd81bd28997cfa6934c94b72a3f059ce326 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 21:40:46 +0000
Subject: [PATCH 063/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 4c4123cd99..2b95ac2fe1 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c6563b6973fb591d95f5df9adeaa9e01ea139c88614d7b454b5f4e3f8748541a.yml
-openapi_spec_hash: aff860d040d08352b10ca736c9cedfcc
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f3bdad647c2632923da769367c580bb650ef4f18a8f1f6d4a911e95018a3e015.yml
+openapi_spec_hash: ce8cc9d02a08c4ab56d5ec624334b32f
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 23079b9f77d63b2a7cb8da14078003211bca441d Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 22:24:55 +0000
Subject: [PATCH 064/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 2b95ac2fe1..8443e994fa 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f3bdad647c2632923da769367c580bb650ef4f18a8f1f6d4a911e95018a3e015.yml
-openapi_spec_hash: ce8cc9d02a08c4ab56d5ec624334b32f
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2fd2ca0c203204f81e365a4319e68ce937987823a9aebefe8ed8a486119a91a5.yml
+openapi_spec_hash: c4f5e4bd3ee53a43318cf78a11cc8494
config_hash: 107e0f1f8a98b007260b319226b88b3c
From f547584a140c7cb25c2636ed931e8d7deae43413 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 22:31:37 +0000
Subject: [PATCH 065/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 8443e994fa..044e0ee3f4 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2fd2ca0c203204f81e365a4319e68ce937987823a9aebefe8ed8a486119a91a5.yml
-openapi_spec_hash: c4f5e4bd3ee53a43318cf78a11cc8494
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-34fac9517dafa7a70a3de8f59b8fbff204199eb3c136ad1d375f5ef158f87d90.yml
+openapi_spec_hash: 6a915873baf7fcdca625c90909492e28
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 71c4a8b25bce012be9aa5420f5be6363cc91ba5e Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 22:35:33 +0000
Subject: [PATCH 066/451] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 044e0ee3f4..0a983f097f 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-34fac9517dafa7a70a3de8f59b8fbff204199eb3c136ad1d375f5ef158f87d90.yml
-openapi_spec_hash: 6a915873baf7fcdca625c90909492e28
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7492bc33f84221ee63fe654c22680333788bfd2dfe8985c58f9d3db555ffca2b.yml
+openapi_spec_hash: b454db8aa8af2160a780a5b69445f3a4
config_hash: 107e0f1f8a98b007260b319226b88b3c
From 139dd063ef5fc36d5b674d27f67758937a010e19 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 22:48:13 +0000
Subject: [PATCH 067/451] chore(api): update composite API spec
---
.stats.yml | 4 +-
api.md | 2 +-
.../alerting/destinations/webhooks.ts | 6 +-
src/resources/alerting/policies.ts | 6 +-
src/resources/pages/index.ts | 1 -
src/resources/pages/pages.ts | 6 +-
src/resources/pages/projects/index.ts | 1 -
src/resources/pages/projects/projects.ts | 22 +--
.../r2/super-slurper/connectivity-precheck.ts | 76 +++-------
src/resources/r2/super-slurper/jobs/jobs.ts | 52 +++----
src/resources/radar/as112/summary.ts | 34 ++++-
.../radar/as112/timeseries-groups.ts | 36 ++++-
src/resources/radar/attacks/layer3/summary.ts | 42 +++++-
.../radar/attacks/layer3/timeseries-groups.ts | 42 +++++-
src/resources/radar/attacks/layer7/summary.ts | 42 +++++-
.../radar/attacks/layer7/timeseries-groups.ts | 42 +++++-
src/resources/radar/dns/summary.ts | 54 +++++--
src/resources/radar/dns/timeseries-groups.ts | 60 ++++++--
src/resources/radar/email/routing/summary.ts | 36 ++++-
.../radar/email/routing/timeseries-groups.ts | 36 ++++-
src/resources/radar/email/security/summary.ts | 54 +++++--
.../radar/email/security/timeseries-groups.ts | 54 +++++--
src/resources/radar/entities/asns.ts | 12 +-
src/resources/radar/netflows/netflows.ts | 2 +-
src/resources/stream/downloads.ts | 5 +-
.../dispatch/namespaces/scripts/bindings.ts | 2 +-
.../dispatch/namespaces/scripts/scripts.ts | 2 +-
.../dispatch/namespaces/scripts/settings.ts | 6 +-
.../workers/beta/workers/versions.ts | 4 +-
src/resources/workers/beta/workers/workers.ts | 138 ------------------
.../scripts/script-and-version-settings.ts | 6 +-
src/resources/workers/scripts/scripts.ts | 2 +-
src/resources/workers/scripts/versions.ts | 11 +-
src/resources/zones/settings.ts | 38 +++--
.../alerting/destinations/webhooks.test.ts | 51 ++++---
tests/api-resources/alerting/policies.test.ts | 24 +--
.../pages/projects/projects.test.ts | 6 +-
.../connectivity-precheck.test.ts | 20 +--
.../r2/super-slurper/jobs/jobs.test.ts | 6 +-
.../workers/scripts/versions.test.ts | 6 +-
40 files changed, 596 insertions(+), 453 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 0a983f097f..5637fc3e0e 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7492bc33f84221ee63fe654c22680333788bfd2dfe8985c58f9d3db555ffca2b.yml
-openapi_spec_hash: b454db8aa8af2160a780a5b69445f3a4
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ca8fbfa82d19dca400ec61b8c93392de1acd157860e435419f9a5e9ec8c586e0.yml
+openapi_spec_hash: 77d55c70bc3824ac61bd056e2319ee18
config_hash: 107e0f1f8a98b007260b319226b88b3c
diff --git a/api.md b/api.md
index 866462c86c..7ffb0aa433 100644
--- a/api.md
+++ b/api.md
@@ -3925,7 +3925,7 @@ Types:
Methods:
- client.pages.projects.create({ ...params }) -> Project
-- client.pages.projects.list({ ...params }) -> DeploymentsV4PagePaginationArray
+- client.pages.projects.list({ ...params }) -> DeploymentsSinglePage
- client.pages.projects.delete(projectName, { ...params }) -> ProjectDeleteResponse | null
- client.pages.projects.edit(projectName, { ...params }) -> Project
- client.pages.projects.get(projectName, { ...params }) -> Project
diff --git a/src/resources/alerting/destinations/webhooks.ts b/src/resources/alerting/destinations/webhooks.ts
index 605e015ae3..279c67d0bf 100644
--- a/src/resources/alerting/destinations/webhooks.ts
+++ b/src/resources/alerting/destinations/webhooks.ts
@@ -35,7 +35,7 @@ export class Webhooks extends APIResource {
* ```ts
* const webhook =
* await client.alerting.destinations.webhooks.update(
- * 'b115d5ec15c641ee8b7692c449b5227b',
+ * 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
* {
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* name: 'Slack Webhook',
@@ -90,7 +90,7 @@ export class Webhooks extends APIResource {
* ```ts
* const webhook =
* await client.alerting.destinations.webhooks.delete(
- * 'b115d5ec15c641ee8b7692c449b5227b',
+ * 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
@@ -114,7 +114,7 @@ export class Webhooks extends APIResource {
* ```ts
* const webhooks =
* await client.alerting.destinations.webhooks.get(
- * 'b115d5ec15c641ee8b7692c449b5227b',
+ * 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
diff --git a/src/resources/alerting/policies.ts b/src/resources/alerting/policies.ts
index 5991ca0862..c2caed4005 100644
--- a/src/resources/alerting/policies.ts
+++ b/src/resources/alerting/policies.ts
@@ -35,7 +35,7 @@ export class Policies extends APIResource {
* @example
* ```ts
* const policy = await client.alerting.policies.update(
- * '0da2b59ef118439d8097bdfb215203c9',
+ * '0da2b59e-f118-439d-8097-bdfb215203c9',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
@@ -85,7 +85,7 @@ export class Policies extends APIResource {
* @example
* ```ts
* const policy = await client.alerting.policies.delete(
- * '0da2b59ef118439d8097bdfb215203c9',
+ * '0da2b59e-f118-439d-8097-bdfb215203c9',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
@@ -105,7 +105,7 @@ export class Policies extends APIResource {
* @example
* ```ts
* const policy = await client.alerting.policies.get(
- * '0da2b59ef118439d8097bdfb215203c9',
+ * '0da2b59e-f118-439d-8097-bdfb215203c9',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
diff --git a/src/resources/pages/index.ts b/src/resources/pages/index.ts
index ede14daf73..2b2862b5c1 100644
--- a/src/resources/pages/index.ts
+++ b/src/resources/pages/index.ts
@@ -2,7 +2,6 @@
export {
DeploymentsSinglePage,
- DeploymentsV4PagePaginationArray,
Projects,
type Deployment,
type Project,
diff --git a/src/resources/pages/pages.ts b/src/resources/pages/pages.ts
index e0331f786f..e92779690f 100644
--- a/src/resources/pages/pages.ts
+++ b/src/resources/pages/pages.ts
@@ -4,7 +4,7 @@ import { APIResource } from '../../resource';
import * as ProjectsAPI from './projects/projects';
import {
Deployment,
- DeploymentsV4PagePaginationArray,
+ DeploymentsSinglePage,
Project,
ProjectCreateParams,
ProjectDeleteParams,
@@ -23,7 +23,7 @@ export class Pages extends APIResource {
}
Pages.Projects = Projects;
-Pages.DeploymentsV4PagePaginationArray = DeploymentsV4PagePaginationArray;
+Pages.DeploymentsSinglePage = DeploymentsSinglePage;
export declare namespace Pages {
export {
@@ -33,7 +33,7 @@ export declare namespace Pages {
type Stage as Stage,
type ProjectDeleteResponse as ProjectDeleteResponse,
type ProjectPurgeBuildCacheResponse as ProjectPurgeBuildCacheResponse,
- DeploymentsV4PagePaginationArray as DeploymentsV4PagePaginationArray,
+ DeploymentsSinglePage as DeploymentsSinglePage,
type ProjectCreateParams as ProjectCreateParams,
type ProjectListParams as ProjectListParams,
type ProjectDeleteParams as ProjectDeleteParams,
diff --git a/src/resources/pages/projects/index.ts b/src/resources/pages/projects/index.ts
index 867a3f7b6b..a40f121ec5 100644
--- a/src/resources/pages/projects/index.ts
+++ b/src/resources/pages/projects/index.ts
@@ -12,7 +12,6 @@ export {
} from './deployments/index';
export {
DeploymentsSinglePage,
- DeploymentsV4PagePaginationArray,
Projects,
type Deployment,
type Project,
diff --git a/src/resources/pages/projects/projects.ts b/src/resources/pages/projects/projects.ts
index efac2c7d22..01225591dc 100644
--- a/src/resources/pages/projects/projects.ts
+++ b/src/resources/pages/projects/projects.ts
@@ -28,7 +28,7 @@ import {
DeploymentRollbackParams,
Deployments,
} from './deployments/deployments';
-import { SinglePage, V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../../pagination';
+import { SinglePage } from '../../../pagination';
export class Projects extends APIResource {
deployments: DeploymentsAPI.Deployments = new DeploymentsAPI.Deployments(this._client);
@@ -69,13 +69,9 @@ export class Projects extends APIResource {
list(
params: ProjectListParams,
options?: Core.RequestOptions,
- ): Core.PagePromise {
- const { account_id, ...query } = params;
- return this._client.getAPIList(
- `/accounts/${account_id}/pages/projects`,
- DeploymentsV4PagePaginationArray,
- { query, ...options },
- );
+ ): Core.PagePromise {
+ const { account_id } = params;
+ return this._client.getAPIList(`/accounts/${account_id}/pages/projects`, DeploymentsSinglePage, options);
}
/**
@@ -180,8 +176,6 @@ export class Projects extends APIResource {
}
}
-export class DeploymentsV4PagePaginationArray extends V4PagePaginationArray {}
-
export class DeploymentsSinglePage extends SinglePage {}
export interface Deployment {
@@ -1647,9 +1641,9 @@ export namespace ProjectCreateParams {
}
}
-export interface ProjectListParams extends V4PagePaginationArrayParams {
+export interface ProjectListParams {
/**
- * Path param: Identifier
+ * Identifier
*/
account_id: string;
}
@@ -2276,7 +2270,7 @@ export interface ProjectPurgeBuildCacheParams {
account_id: string;
}
-Projects.DeploymentsV4PagePaginationArray = DeploymentsV4PagePaginationArray;
+Projects.DeploymentsSinglePage = DeploymentsSinglePage;
Projects.Deployments = Deployments;
Projects.Domains = Domains;
Projects.DomainListResponsesSinglePage = DomainListResponsesSinglePage;
@@ -2288,7 +2282,7 @@ export declare namespace Projects {
type Stage as Stage,
type ProjectDeleteResponse as ProjectDeleteResponse,
type ProjectPurgeBuildCacheResponse as ProjectPurgeBuildCacheResponse,
- DeploymentsV4PagePaginationArray as DeploymentsV4PagePaginationArray,
+ DeploymentsSinglePage as DeploymentsSinglePage,
type ProjectCreateParams as ProjectCreateParams,
type ProjectListParams as ProjectListParams,
type ProjectDeleteParams as ProjectDeleteParams,
diff --git a/src/resources/r2/super-slurper/connectivity-precheck.ts b/src/resources/r2/super-slurper/connectivity-precheck.ts
index 2283824388..654a8193d5 100644
--- a/src/resources/r2/super-slurper/connectivity-precheck.ts
+++ b/src/resources/r2/super-slurper/connectivity-precheck.ts
@@ -13,12 +13,6 @@ export class ConnectivityPrecheck extends APIResource {
* const response =
* await client.r2.superSlurper.connectivityPrecheck.source({
* account_id: 'account_id',
- * bucket: 'bucket',
- * secret: {
- * accessKeyId: 'accessKeyId',
- * secretAccessKey: 'secretAccessKey',
- * },
- * vendor: 's3',
* });
* ```
*/
@@ -43,12 +37,6 @@ export class ConnectivityPrecheck extends APIResource {
* const response =
* await client.r2.superSlurper.connectivityPrecheck.target({
* account_id: 'account_id',
- * bucket: 'bucket',
- * secret: {
- * accessKeyId: 'accessKeyId',
- * secretAccessKey: 'secretAccessKey',
- * },
- * vendor: 'r2',
* });
* ```
*/
@@ -89,17 +77,7 @@ export declare namespace ConnectivityPrecheckSourceParams {
/**
* Body param:
*/
- bucket: string;
-
- /**
- * Body param:
- */
- secret: R2SlurperS3SourceSchema.Secret;
-
- /**
- * Body param:
- */
- vendor: 's3';
+ bucket?: string;
/**
* Body param:
@@ -109,19 +87,19 @@ export declare namespace ConnectivityPrecheckSourceParams {
/**
* Body param:
*/
- pathPrefix?: string | null;
+ secret?: R2SlurperS3SourceSchema.Secret;
/**
* Body param:
*/
- region?: string | null;
+ vendor?: 's3';
}
export namespace R2SlurperS3SourceSchema {
export interface Secret {
- accessKeyId: string;
+ accessKeyId?: string;
- secretAccessKey: string;
+ secretAccessKey?: string;
}
}
@@ -134,29 +112,24 @@ export declare namespace ConnectivityPrecheckSourceParams {
/**
* Body param:
*/
- bucket: string;
-
- /**
- * Body param:
- */
- secret: R2SlurperGcsSourceSchema.Secret;
+ bucket?: string;
/**
* Body param:
*/
- vendor: 'gcs';
+ secret?: R2SlurperGcsSourceSchema.Secret;
/**
* Body param:
*/
- pathPrefix?: string | null;
+ vendor?: 'gcs';
}
export namespace R2SlurperGcsSourceSchema {
export interface Secret {
- clientEmail: string;
+ clientEmail?: string;
- privateKey: string;
+ privateKey?: string;
}
}
@@ -169,34 +142,29 @@ export declare namespace ConnectivityPrecheckSourceParams {
/**
* Body param:
*/
- bucket: string;
-
- /**
- * Body param:
- */
- secret: R2SlurperR2SourceSchema.Secret;
+ bucket?: string;
/**
* Body param:
*/
- vendor: SippyAPI.ProviderParam;
+ jurisdiction?: 'default' | 'eu' | 'fedramp';
/**
* Body param:
*/
- jurisdiction?: 'default' | 'eu' | 'fedramp';
+ secret?: R2SlurperR2SourceSchema.Secret;
/**
* Body param:
*/
- pathPrefix?: string | null;
+ vendor?: SippyAPI.ProviderParam;
}
export namespace R2SlurperR2SourceSchema {
export interface Secret {
- accessKeyId: string;
+ accessKeyId?: string;
- secretAccessKey: string;
+ secretAccessKey?: string;
}
}
}
@@ -210,29 +178,29 @@ export interface ConnectivityPrecheckTargetParams {
/**
* Body param:
*/
- bucket: string;
+ bucket?: string;
/**
* Body param:
*/
- secret: ConnectivityPrecheckTargetParams.Secret;
+ jurisdiction?: 'default' | 'eu' | 'fedramp';
/**
* Body param:
*/
- vendor: SippyAPI.ProviderParam;
+ secret?: ConnectivityPrecheckTargetParams.Secret;
/**
* Body param:
*/
- jurisdiction?: 'default' | 'eu' | 'fedramp';
+ vendor?: SippyAPI.ProviderParam;
}
export namespace ConnectivityPrecheckTargetParams {
export interface Secret {
- accessKeyId: string;
+ accessKeyId?: string;
- secretAccessKey: string;
+ secretAccessKey?: string;
}
}
diff --git a/src/resources/r2/super-slurper/jobs/jobs.ts b/src/resources/r2/super-slurper/jobs/jobs.ts
index 7732e944b1..0e70bb10e5 100644
--- a/src/resources/r2/super-slurper/jobs/jobs.ts
+++ b/src/resources/r2/super-slurper/jobs/jobs.ts
@@ -360,80 +360,72 @@ export interface JobCreateParams {
export namespace JobCreateParams {
export interface R2SlurperS3SourceSchema {
- bucket: string;
-
- secret: R2SlurperS3SourceSchema.Secret;
-
- vendor: 's3';
+ bucket?: string;
endpoint?: string | null;
- pathPrefix?: string | null;
+ secret?: R2SlurperS3SourceSchema.Secret;
- region?: string | null;
+ vendor?: 's3';
}
export namespace R2SlurperS3SourceSchema {
export interface Secret {
- accessKeyId: string;
+ accessKeyId?: string;
- secretAccessKey: string;
+ secretAccessKey?: string;
}
}
export interface R2SlurperGcsSourceSchema {
- bucket: string;
-
- secret: R2SlurperGcsSourceSchema.Secret;
+ bucket?: string;
- vendor: 'gcs';
+ secret?: R2SlurperGcsSourceSchema.Secret;
- pathPrefix?: string | null;
+ vendor?: 'gcs';
}
export namespace R2SlurperGcsSourceSchema {
export interface Secret {
- clientEmail: string;
+ clientEmail?: string;
- privateKey: string;
+ privateKey?: string;
}
}
export interface R2SlurperR2SourceSchema {
- bucket: string;
-
- secret: R2SlurperR2SourceSchema.Secret;
-
- vendor: SippyAPI.ProviderParam;
+ bucket?: string;
jurisdiction?: 'default' | 'eu' | 'fedramp';
- pathPrefix?: string | null;
+ secret?: R2SlurperR2SourceSchema.Secret;
+
+ vendor?: SippyAPI.ProviderParam;
}
export namespace R2SlurperR2SourceSchema {
export interface Secret {
- accessKeyId: string;
+ accessKeyId?: string;
- secretAccessKey: string;
+ secretAccessKey?: string;
}
}
export interface Target {
- bucket: string;
+ bucket?: string;
- secret: Target.Secret;
+ jurisdiction?: 'default' | 'eu' | 'fedramp';
- vendor: SippyAPI.ProviderParam;
+ secret?: Target.Secret;
- jurisdiction?: 'default' | 'eu' | 'fedramp';
+ vendor?: SippyAPI.ProviderParam;
}
export namespace Target {
export interface Secret {
- accessKeyId: string;
+ accessKeyId?: string;
- secretAccessKey: string;
+ secretAccessKey?: string;
}
}
}
diff --git a/src/resources/radar/as112/summary.ts b/src/resources/radar/as112/summary.ts
index d6034b19c4..c59fdaeb5a 100644
--- a/src/resources/radar/as112/summary.ts
+++ b/src/resources/radar/as112/summary.ts
@@ -9,7 +9,10 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNS queries to AS112 by DNSSEC (DNS Security
* Extensions) support.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response = await client.radar.as112.summary.dnssec();
+ * ```
*/
dnssec(query?: SummaryDNSSECParams, options?: Core.RequestOptions): Core.APIPromise;
dnssec(options?: Core.RequestOptions): Core.APIPromise;
@@ -31,7 +34,10 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNS queries to AS112 by EDNS (Extension Mechanisms
* for DNS) support.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response = await client.radar.as112.summary.edns();
+ * ```
*/
edns(query?: SummaryEdnsParams, options?: Core.RequestOptions): Core.APIPromise;
edns(options?: Core.RequestOptions): Core.APIPromise;
@@ -52,7 +58,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries to AS112 by IP version.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.as112.summary.ipVersion();
+ * ```
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -76,7 +86,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries to AS112 by protocol.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.as112.summary.protocol();
+ * ```
*/
protocol(
query?: SummaryProtocolParams,
@@ -100,7 +114,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries to AS112 by type.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.as112.summary.queryType();
+ * ```
*/
queryType(
query?: SummaryQueryTypeParams,
@@ -124,7 +142,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of AS112 DNS requests classified by response code.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.as112.summary.responseCodes();
+ * ```
*/
responseCodes(
query?: SummaryResponseCodesParams,
diff --git a/src/resources/radar/as112/timeseries-groups.ts b/src/resources/radar/as112/timeseries-groups.ts
index e5593df35c..a9e2aa049c 100644
--- a/src/resources/radar/as112/timeseries-groups.ts
+++ b/src/resources/radar/as112/timeseries-groups.ts
@@ -9,7 +9,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of AS112 DNS queries by DNSSEC (DNS Security
* Extensions) support over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.as112.timeseriesGroups.dnssec();
+ * ```
*/
dnssec(
query?: TimeseriesGroupDNSSECParams,
@@ -34,7 +38,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of AS112 DNS queries by EDNS (Extension Mechanisms
* for DNS) support over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.as112.timeseriesGroups.edns();
+ * ```
*/
edns(
query?: TimeseriesGroupEdnsParams,
@@ -58,7 +66,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of AS112 DNS queries by IP version over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.as112.timeseriesGroups.ipVersion();
+ * ```
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -84,7 +96,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of AS112 DNS requests classified by protocol over
* time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.as112.timeseriesGroups.protocol();
+ * ```
*/
protocol(
query?: TimeseriesGroupProtocolParams,
@@ -108,7 +124,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of AS112 DNS queries by type over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.as112.timeseriesGroups.queryType();
+ * ```
*/
queryType(
query?: TimeseriesGroupQueryTypeParams,
@@ -134,7 +154,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of AS112 DNS requests classified by response code
* over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.as112.timeseriesGroups.responseCodes();
+ * ```
*/
responseCodes(
query?: TimeseriesGroupResponseCodesParams,
diff --git a/src/resources/radar/attacks/layer3/summary.ts b/src/resources/radar/attacks/layer3/summary.ts
index bc4ccc4c81..73ed7d7c70 100644
--- a/src/resources/radar/attacks/layer3/summary.ts
+++ b/src/resources/radar/attacks/layer3/summary.ts
@@ -8,7 +8,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by bitrate.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer3.summary.bitrate();
+ * ```
*/
bitrate(
query?: SummaryBitrateParams,
@@ -32,7 +36,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by duration.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer3.summary.duration();
+ * ```
*/
duration(
query?: SummaryDurationParams,
@@ -56,7 +64,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by targeted industry.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer3.summary.industry();
+ * ```
*/
industry(
query?: SummaryIndustryParams,
@@ -80,7 +92,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by IP version.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer3.summary.ipVersion();
+ * ```
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -104,7 +120,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by protocol.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer3.summary.protocol();
+ * ```
*/
protocol(
query?: SummaryProtocolParams,
@@ -128,7 +148,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by vector.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer3.summary.vector();
+ * ```
*/
vector(query?: SummaryVectorParams, options?: Core.RequestOptions): Core.APIPromise;
vector(options?: Core.RequestOptions): Core.APIPromise;
@@ -149,7 +173,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by targeted vertical.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer3.summary.vertical();
+ * ```
*/
vertical(
query?: SummaryVerticalParams,
diff --git a/src/resources/radar/attacks/layer3/timeseries-groups.ts b/src/resources/radar/attacks/layer3/timeseries-groups.ts
index 9f8d171a40..740bb97cae 100644
--- a/src/resources/radar/attacks/layer3/timeseries-groups.ts
+++ b/src/resources/radar/attacks/layer3/timeseries-groups.ts
@@ -8,7 +8,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by bitrate over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer3.timeseriesGroups.bitrate();
+ * ```
*/
bitrate(
query?: TimeseriesGroupBitrateParams,
@@ -33,7 +37,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by duration over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer3.timeseriesGroups.duration();
+ * ```
*/
duration(
query?: TimeseriesGroupDurationParams,
@@ -58,7 +66,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by targeted industry over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer3.timeseriesGroups.industry();
+ * ```
*/
industry(
query?: TimeseriesGroupIndustryParams,
@@ -83,7 +95,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by IP version over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer3.timeseriesGroups.ipVersion();
+ * ```
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -108,7 +124,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by protocol over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer3.timeseriesGroups.protocol();
+ * ```
*/
protocol(
query?: TimeseriesGroupProtocolParams,
@@ -133,7 +153,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by vector over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer3.timeseriesGroups.vector();
+ * ```
*/
vector(
query?: TimeseriesGroupVectorParams,
@@ -158,7 +182,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by targeted vertical over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer3.timeseriesGroups.vertical();
+ * ```
*/
vertical(
query?: TimeseriesGroupVerticalParams,
diff --git a/src/resources/radar/attacks/layer7/summary.ts b/src/resources/radar/attacks/layer7/summary.ts
index 160eb24dd8..4afa3d68d0 100644
--- a/src/resources/radar/attacks/layer7/summary.ts
+++ b/src/resources/radar/attacks/layer7/summary.ts
@@ -8,7 +8,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by HTTP method.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer7.summary.httpMethod();
+ * ```
*/
httpMethod(
query?: SummaryHTTPMethodParams,
@@ -33,7 +37,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by HTTP version.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer7.summary.httpVersion();
+ * ```
*/
httpVersion(
query?: SummaryHTTPVersionParams,
@@ -58,7 +66,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by targeted industry.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer7.summary.industry();
+ * ```
*/
industry(
query?: SummaryIndustryParams,
@@ -82,7 +94,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by IP version.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer7.summary.ipVersion();
+ * ```
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -106,7 +122,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by managed rules.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer7.summary.managedRules();
+ * ```
*/
managedRules(
query?: SummaryManagedRulesParams,
@@ -131,7 +151,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by mitigation product.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer7.summary.mitigationProduct();
+ * ```
*/
mitigationProduct(
query?: SummaryMitigationProductParams,
@@ -156,7 +180,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by targeted vertical.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer7.summary.vertical();
+ * ```
*/
vertical(
query?: SummaryVerticalParams,
diff --git a/src/resources/radar/attacks/layer7/timeseries-groups.ts b/src/resources/radar/attacks/layer7/timeseries-groups.ts
index ce7c62ce1e..ab7e962788 100644
--- a/src/resources/radar/attacks/layer7/timeseries-groups.ts
+++ b/src/resources/radar/attacks/layer7/timeseries-groups.ts
@@ -8,7 +8,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by HTTP method over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer7.timeseriesGroups.httpMethod();
+ * ```
*/
httpMethod(
query?: TimeseriesGroupHTTPMethodParams,
@@ -33,7 +37,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by HTTP version over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer7.timeseriesGroups.httpVersion();
+ * ```
*/
httpVersion(
query?: TimeseriesGroupHTTPVersionParams,
@@ -58,7 +66,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by targeted industry over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer7.timeseriesGroups.industry();
+ * ```
*/
industry(
query?: TimeseriesGroupIndustryParams,
@@ -83,7 +95,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by IP version used over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer7.timeseriesGroups.ipVersion();
+ * ```
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -108,7 +124,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by managed rules over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer7.timeseriesGroups.managedRules();
+ * ```
*/
managedRules(
query?: TimeseriesGroupManagedRulesParams,
@@ -133,7 +153,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by mitigation product over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer7.timeseriesGroups.mitigationProduct();
+ * ```
*/
mitigationProduct(
query?: TimeseriesGroupMitigationProductParams,
@@ -158,7 +182,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by targeted vertical over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.attacks.layer7.timeseriesGroups.vertical();
+ * ```
*/
vertical(
query?: TimeseriesGroupVerticalParams,
diff --git a/src/resources/radar/dns/summary.ts b/src/resources/radar/dns/summary.ts
index 575afc929b..9bc87aa1f9 100644
--- a/src/resources/radar/dns/summary.ts
+++ b/src/resources/radar/dns/summary.ts
@@ -8,7 +8,10 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by cache status.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response = await client.radar.dns.summary.cacheHit();
+ * ```
*/
cacheHit(
query?: SummaryCacheHitParams,
@@ -33,7 +36,10 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNS responses by DNSSEC (DNS Security Extensions)
* support.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response = await client.radar.dns.summary.dnssec();
+ * ```
*/
dnssec(query?: SummaryDNSSECParams, options?: Core.RequestOptions): Core.APIPromise;
dnssec(options?: Core.RequestOptions): Core.APIPromise;
@@ -55,7 +61,11 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNS queries by DNSSEC (DNS Security Extensions)
* client awareness.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.dns.summary.dnssecAware();
+ * ```
*/
dnssecAware(
query?: SummaryDNSSECAwareParams,
@@ -80,7 +90,10 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNSSEC-validated answers by end-to-end security
* status.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response = await client.radar.dns.summary.dnssecE2E();
+ * ```
*/
dnssecE2E(
query?: SummaryDNSSECE2EParams,
@@ -104,7 +117,10 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by IP version.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response = await client.radar.dns.summary.ipVersion();
+ * ```
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -128,7 +144,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by matching answers.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.dns.summary.matchingAnswer();
+ * ```
*/
matchingAnswer(
query?: SummaryMatchingAnswerParams,
@@ -152,7 +172,10 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by DNS transport protocol.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response = await client.radar.dns.summary.protocol();
+ * ```
*/
protocol(
query?: SummaryProtocolParams,
@@ -176,7 +199,10 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by type.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response = await client.radar.dns.summary.queryType();
+ * ```
*/
queryType(
query?: SummaryQueryTypeParams,
@@ -200,7 +226,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by response code.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.dns.summary.responseCode();
+ * ```
*/
responseCode(
query?: SummaryResponseCodeParams,
@@ -224,7 +254,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by minimum response TTL.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.dns.summary.responseTTL();
+ * ```
*/
responseTTL(
query?: SummaryResponseTTLParams,
diff --git a/src/resources/radar/dns/timeseries-groups.ts b/src/resources/radar/dns/timeseries-groups.ts
index 5e1ea8a4e1..9a242a93fb 100644
--- a/src/resources/radar/dns/timeseries-groups.ts
+++ b/src/resources/radar/dns/timeseries-groups.ts
@@ -8,7 +8,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by cache status over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.dns.timeseriesGroups.cacheHit();
+ * ```
*/
cacheHit(
query?: TimeseriesGroupCacheHitParams,
@@ -33,7 +37,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of DNS responses by DNSSEC (DNS Security Extensions)
* support over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.dns.timeseriesGroups.dnssec();
+ * ```
*/
dnssec(
query?: TimeseriesGroupDNSSECParams,
@@ -58,7 +66,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of DNS queries by DNSSEC (DNS Security Extensions)
* client awareness over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.dns.timeseriesGroups.dnssecAware();
+ * ```
*/
dnssecAware(
query?: TimeseriesGroupDNSSECAwareParams,
@@ -84,7 +96,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of DNSSEC-validated answers by end-to-end security
* status over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.dns.timeseriesGroups.dnssecE2E();
+ * ```
*/
dnssecE2E(
query?: TimeseriesGroupDNSSECE2EParams,
@@ -108,7 +124,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by IP version over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.dns.timeseriesGroups.ipVersion();
+ * ```
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -132,7 +152,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by matching answers over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.dns.timeseriesGroups.matchingAnswer();
+ * ```
*/
matchingAnswer(
query?: TimeseriesGroupMatchingAnswerParams,
@@ -157,7 +181,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by DNS transport protocol over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.dns.timeseriesGroups.protocol();
+ * ```
*/
protocol(
query?: TimeseriesGroupProtocolParams,
@@ -181,7 +209,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by type over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.dns.timeseriesGroups.queryType();
+ * ```
*/
queryType(
query?: TimeseriesGroupQueryTypeParams,
@@ -205,7 +237,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by response code over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.dns.timeseriesGroups.responseCode();
+ * ```
*/
responseCode(
query?: TimeseriesGroupResponseCodeParams,
@@ -230,7 +266,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by minimum answer TTL over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.dns.timeseriesGroups.responseTTL();
+ * ```
*/
responseTTL(
query?: TimeseriesGroupResponseTTLParams,
diff --git a/src/resources/radar/email/routing/summary.ts b/src/resources/radar/email/routing/summary.ts
index 00defd2b84..4085dc05e9 100644
--- a/src/resources/radar/email/routing/summary.ts
+++ b/src/resources/radar/email/routing/summary.ts
@@ -10,7 +10,11 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by ARC (Authenticated Received Chain)
* validation.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.routing.summary.arc();
+ * ```
*/
arc(query?: SummaryARCParams, options?: Core.RequestOptions): Core.APIPromise;
arc(options?: Core.RequestOptions): Core.APIPromise;
@@ -32,7 +36,11 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by DKIM (DomainKeys Identified Mail)
* validation.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.routing.summary.dkim();
+ * ```
*/
dkim(query?: SummaryDKIMParams, options?: Core.RequestOptions): Core.APIPromise;
dkim(options?: Core.RequestOptions): Core.APIPromise;
@@ -54,7 +62,11 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by DMARC (Domain-based Message
* Authentication, Reporting and Conformance) validation.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.routing.summary.dmarc();
+ * ```
*/
dmarc(query?: SummaryDMARCParams, options?: Core.RequestOptions): Core.APIPromise;
dmarc(options?: Core.RequestOptions): Core.APIPromise;
@@ -76,7 +88,11 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by encryption status (encrypted vs.
* not-encrypted).
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.routing.summary.encrypted();
+ * ```
*/
encrypted(
query?: SummaryEncryptedParams,
@@ -100,7 +116,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of emails by IP version.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.routing.summary.ipVersion();
+ * ```
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -125,7 +145,11 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by SPF (Sender Policy Framework)
* validation.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.routing.summary.spf();
+ * ```
*/
spf(query?: SummarySPFParams, options?: Core.RequestOptions): Core.APIPromise;
spf(options?: Core.RequestOptions): Core.APIPromise;
diff --git a/src/resources/radar/email/routing/timeseries-groups.ts b/src/resources/radar/email/routing/timeseries-groups.ts
index 3a9801b143..c398945534 100644
--- a/src/resources/radar/email/routing/timeseries-groups.ts
+++ b/src/resources/radar/email/routing/timeseries-groups.ts
@@ -10,7 +10,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by ARC (Authenticated Received Chain)
* validation over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.routing.timeseriesGroups.arc();
+ * ```
*/
arc(
query?: TimeseriesGroupARCParams,
@@ -36,7 +40,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by DKIM (DomainKeys Identified Mail)
* validation over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.routing.timeseriesGroups.dkim();
+ * ```
*/
dkim(
query?: TimeseriesGroupDKIMParams,
@@ -62,7 +70,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by DMARC (Domain-based Message
* Authentication, Reporting and Conformance) validation over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.routing.timeseriesGroups.dmarc();
+ * ```
*/
dmarc(
query?: TimeseriesGroupDMARCParams,
@@ -88,7 +100,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by encryption status (encrypted vs.
* not-encrypted) over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.routing.timeseriesGroups.encrypted();
+ * ```
*/
encrypted(
query?: TimeseriesGroupEncryptedParams,
@@ -113,7 +129,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of emails by IP version over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.routing.timeseriesGroups.ipVersion();
+ * ```
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -139,7 +159,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by SPF (Sender Policy Framework) validation
* over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.routing.timeseriesGroups.spf();
+ * ```
*/
spf(
query?: TimeseriesGroupSPFParams,
diff --git a/src/resources/radar/email/security/summary.ts b/src/resources/radar/email/security/summary.ts
index 5136a742ff..3a984c2f4f 100644
--- a/src/resources/radar/email/security/summary.ts
+++ b/src/resources/radar/email/security/summary.ts
@@ -10,7 +10,11 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by ARC (Authenticated Received Chain)
* validation.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.summary.arc();
+ * ```
*/
arc(query?: SummaryARCParams, options?: Core.RequestOptions): Core.APIPromise;
arc(options?: Core.RequestOptions): Core.APIPromise;
@@ -32,7 +36,11 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by DKIM (DomainKeys Identified Mail)
* validation.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.summary.dkim();
+ * ```
*/
dkim(query?: SummaryDKIMParams, options?: Core.RequestOptions): Core.APIPromise;
dkim(options?: Core.RequestOptions): Core.APIPromise;
@@ -54,7 +62,11 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by DMARC (Domain-based Message
* Authentication, Reporting and Conformance) validation.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.summary.dmarc();
+ * ```
*/
dmarc(query?: SummaryDMARCParams, options?: Core.RequestOptions): Core.APIPromise;
dmarc(options?: Core.RequestOptions): Core.APIPromise;
@@ -75,7 +87,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of emails by malicious classification.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.summary.malicious();
+ * ```
*/
malicious(
query?: SummaryMaliciousParams,
@@ -99,7 +115,11 @@ export class Summary extends APIResource {
/**
* Retrieves the proportion of emails by spam classification (spam vs. non-spam).
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.summary.spam();
+ * ```
*/
spam(query?: SummarySpamParams, options?: Core.RequestOptions): Core.APIPromise;
spam(options?: Core.RequestOptions): Core.APIPromise;
@@ -121,7 +141,11 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by SPF (Sender Policy Framework)
* validation.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.summary.spf();
+ * ```
*/
spf(query?: SummarySPFParams, options?: Core.RequestOptions): Core.APIPromise;
spf(options?: Core.RequestOptions): Core.APIPromise;
@@ -143,7 +167,11 @@ export class Summary extends APIResource {
* Retrieves the proportion of emails by spoof classification (spoof vs.
* non-spoof).
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.summary.spoof();
+ * ```
*/
spoof(query?: SummarySpoofParams, options?: Core.RequestOptions): Core.APIPromise;
spoof(options?: Core.RequestOptions): Core.APIPromise;
@@ -164,7 +192,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of emails by threat categories.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.summary.threatCategory();
+ * ```
*/
threatCategory(
query?: SummaryThreatCategoryParams,
@@ -189,7 +221,11 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of emails by TLS version.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.summary.tlsVersion();
+ * ```
*/
tlsVersion(
query?: SummaryTLSVersionParams,
diff --git a/src/resources/radar/email/security/timeseries-groups.ts b/src/resources/radar/email/security/timeseries-groups.ts
index aa620088a0..2fb9bbef99 100644
--- a/src/resources/radar/email/security/timeseries-groups.ts
+++ b/src/resources/radar/email/security/timeseries-groups.ts
@@ -10,7 +10,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by ARC (Authenticated Received Chain)
* validation over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.timeseriesGroups.arc();
+ * ```
*/
arc(
query?: TimeseriesGroupARCParams,
@@ -36,7 +40,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by DKIM (DomainKeys Identified Mail)
* validation over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.timeseriesGroups.dkim();
+ * ```
*/
dkim(
query?: TimeseriesGroupDKIMParams,
@@ -62,7 +70,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by DMARC (Domain-based Message
* Authentication, Reporting and Conformance) validation over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.timeseriesGroups.dmarc();
+ * ```
*/
dmarc(
query?: TimeseriesGroupDMARCParams,
@@ -87,7 +99,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of emails by malicious classification over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.timeseriesGroups.malicious();
+ * ```
*/
malicious(
query?: TimeseriesGroupMaliciousParams,
@@ -113,7 +129,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by spam classification (spam vs. non-spam)
* over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.timeseriesGroups.spam();
+ * ```
*/
spam(
query?: TimeseriesGroupSpamParams,
@@ -139,7 +159,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by SPF (Sender Policy Framework) validation
* over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.timeseriesGroups.spf();
+ * ```
*/
spf(
query?: TimeseriesGroupSPFParams,
@@ -165,7 +189,11 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by spoof classification (spoof vs.
* non-spoof) over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.timeseriesGroups.spoof();
+ * ```
*/
spoof(
query?: TimeseriesGroupSpoofParams,
@@ -190,7 +218,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of emails by threat category over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.timeseriesGroups.threatCategory();
+ * ```
*/
threatCategory(
query?: TimeseriesGroupThreatCategoryParams,
@@ -215,7 +247,11 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of emails by TLS version over time.
*
- * @deprecated
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.email.security.timeseriesGroups.tlsVersion();
+ * ```
*/
tlsVersion(
query?: TimeseriesGroupTLSVersionParams,
diff --git a/src/resources/radar/entities/asns.ts b/src/resources/radar/entities/asns.ts
index 7697e9dd84..66ecf4a6e9 100644
--- a/src/resources/radar/entities/asns.ts
+++ b/src/resources/radar/entities/asns.ts
@@ -194,20 +194,10 @@ export namespace ASNAsSetResponse {
*/
name: string;
- /**
- * The AS number following hierarchical AS-SET name
- */
- hierarchical_asn?: number;
-
/**
* The inferred AS number of the AS-SET
*/
- inferred_asn?: number;
-
- /**
- * The AS number matching PeeringDB record
- */
- peeringdb_asn?: number;
+ asn?: number;
}
}
diff --git a/src/resources/radar/netflows/netflows.ts b/src/resources/radar/netflows/netflows.ts
index 55c05d441b..c484510bb6 100644
--- a/src/resources/radar/netflows/netflows.ts
+++ b/src/resources/radar/netflows/netflows.ts
@@ -13,7 +13,7 @@ export class Netflows extends APIResource {
* Retrieves the distribution of network traffic (NetFlows) by HTTP vs other
* protocols.
*
- * @deprecated Use [Get Network Traffic Distribution By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/netflows/methods/summary_v2/) instead.
+ * @deprecated
*/
summary(
query?: NetflowSummaryParams,
diff --git a/src/resources/stream/downloads.ts b/src/resources/stream/downloads.ts
index 1fd7a50c02..a9d2589f13 100644
--- a/src/resources/stream/downloads.ts
+++ b/src/resources/stream/downloads.ts
@@ -6,8 +6,7 @@ import * as Core from '../../core';
export class Downloads extends APIResource {
/**
* Creates a download for a video when a video is ready to view. Use
- * `/downloads/{download_type}` instead for type-specific downloads. Available
- * types are `default` and `audio`.
+ * `/downloads/{download_type}` instead for type-specific downloads.
*
* @example
* ```ts
@@ -36,7 +35,7 @@ export class Downloads extends APIResource {
/**
* Delete the downloads for a video. Use `/downloads/{download_type}` instead for
- * type-specific downloads. Available types are `default` and `audio`.
+ * type-specific downloads.
*
* @example
* ```ts
diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts
index 4af2451c88..8b15a53e2d 100644
--- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts
+++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts
@@ -168,7 +168,7 @@ export namespace BindingGetResponse {
name: string;
/**
- * The name of the dispatch namespace.
+ * Namespace to bind to.
*/
namespace: string;
diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts
index 78e5e95423..9170366dbd 100644
--- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts
+++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts
@@ -616,7 +616,7 @@ export namespace ScriptUpdateParams {
name: string;
/**
- * The name of the dispatch namespace.
+ * Namespace to bind to.
*/
namespace: string;
diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts
index 216456a041..fea3a53ffc 100644
--- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts
+++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts
@@ -247,7 +247,7 @@ export namespace SettingEditResponse {
name: string;
/**
- * The name of the dispatch namespace.
+ * Namespace to bind to.
*/
namespace: string;
@@ -999,7 +999,7 @@ export namespace SettingGetResponse {
name: string;
/**
- * The name of the dispatch namespace.
+ * Namespace to bind to.
*/
namespace: string;
@@ -1769,7 +1769,7 @@ export namespace SettingEditParams {
name: string;
/**
- * The name of the dispatch namespace.
+ * Namespace to bind to.
*/
namespace: string;
diff --git a/src/resources/workers/beta/workers/versions.ts b/src/resources/workers/beta/workers/versions.ts
index 185cea7033..300510fc56 100644
--- a/src/resources/workers/beta/workers/versions.ts
+++ b/src/resources/workers/beta/workers/versions.ts
@@ -409,7 +409,7 @@ export namespace Version {
name: string;
/**
- * The name of the dispatch namespace.
+ * Namespace to bind to.
*/
namespace: string;
@@ -1263,7 +1263,7 @@ export namespace VersionCreateParams {
name: string;
/**
- * The name of the dispatch namespace.
+ * Namespace to bind to.
*/
namespace: string;
diff --git a/src/resources/workers/beta/workers/workers.ts b/src/resources/workers/beta/workers/workers.ts
index d4e49b0055..ba7791704e 100644
--- a/src/resources/workers/beta/workers/workers.ts
+++ b/src/resources/workers/beta/workers/workers.ts
@@ -193,11 +193,6 @@ export interface Worker {
*/
observability: Worker.Observability;
- /**
- * Other resources that reference the Worker and depend on it existing.
- */
- references: Worker.References;
-
/**
* Subdomain settings for the Worker.
*/
@@ -264,139 +259,6 @@ export namespace Worker {
}
}
- /**
- * Other resources that reference the Worker and depend on it existing.
- */
- export interface References {
- /**
- * Other Workers that reference the Worker as an outbound for a dispatch namespace.
- */
- dispatch_namespace_outbounds: Array;
-
- /**
- * Custom domains connected to the Worker.
- */
- domains: Array;
-
- /**
- * Other Workers that reference Durable Object classes implemented by the Worker.
- */
- durable_objects: Array;
-
- /**
- * Queues that send messages to the Worker.
- */
- queues: Array;
-
- /**
- * Other Workers that reference the Worker using
- * [service bindings](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/).
- */
- workers: Array;
- }
-
- export namespace References {
- export interface DispatchNamespaceOutbound {
- /**
- * ID of the dispatch namespace.
- */
- namespace_id: string;
-
- /**
- * Name of the dispatch namespace.
- */
- namespace_name: string;
-
- /**
- * ID of the Worker using the dispatch namespace.
- */
- worker_id: string;
-
- /**
- * Name of the Worker using the dispatch namespace.
- */
- worker_name: string;
- }
-
- export interface Domain {
- /**
- * ID of the custom domain.
- */
- id: string;
-
- /**
- * ID of the TLS certificate issued for the custom domain.
- */
- certificate_id: string;
-
- /**
- * Full hostname of the custom domain, including the zone name.
- */
- hostname: string;
-
- /**
- * ID of the zone.
- */
- zone_id: string;
-
- /**
- * Name of the zone.
- */
- zone_name: string;
- }
-
- export interface DurableObject {
- /**
- * ID of the Durable Object namespace being used.
- */
- namespace_id: string;
-
- /**
- * Name of the Durable Object namespace being used.
- */
- namespace_name: string;
-
- /**
- * ID of the Worker using the Durable Object implementation.
- */
- worker_id: string;
-
- /**
- * Name of the Worker using the Durable Object implementation.
- */
- worker_name: string;
- }
-
- export interface Queue {
- /**
- * ID of the queue consumer configuration.
- */
- queue_consumer_id: string;
-
- /**
- * ID of the queue.
- */
- queue_id: string;
-
- /**
- * Name of the queue.
- */
- queue_name: string;
- }
-
- export interface Worker {
- /**
- * ID of the referencing Worker.
- */
- id: string;
-
- /**
- * Name of the referencing Worker.
- */
- name: string;
- }
- }
-
/**
* Subdomain settings for the Worker.
*/
diff --git a/src/resources/workers/scripts/script-and-version-settings.ts b/src/resources/workers/scripts/script-and-version-settings.ts
index d6ef7552ca..05bc7152a0 100644
--- a/src/resources/workers/scripts/script-and-version-settings.ts
+++ b/src/resources/workers/scripts/script-and-version-settings.ts
@@ -243,7 +243,7 @@ export namespace ScriptAndVersionSettingEditResponse {
name: string;
/**
- * The name of the dispatch namespace.
+ * Namespace to bind to.
*/
namespace: string;
@@ -995,7 +995,7 @@ export namespace ScriptAndVersionSettingGetResponse {
name: string;
/**
- * The name of the dispatch namespace.
+ * Namespace to bind to.
*/
namespace: string;
@@ -1765,7 +1765,7 @@ export namespace ScriptAndVersionSettingEditParams {
name: string;
/**
- * The name of the dispatch namespace.
+ * Namespace to bind to.
*/
namespace: string;
diff --git a/src/resources/workers/scripts/scripts.ts b/src/resources/workers/scripts/scripts.ts
index 70546d5580..d96bb354dc 100644
--- a/src/resources/workers/scripts/scripts.ts
+++ b/src/resources/workers/scripts/scripts.ts
@@ -925,7 +925,7 @@ export namespace ScriptUpdateParams {
name: string;
/**
- * The name of the dispatch namespace.
+ * Namespace to bind to.
*/
namespace: string;
diff --git a/src/resources/workers/scripts/versions.ts b/src/resources/workers/scripts/versions.ts
index c9027b6f0c..d4334609ad 100644
--- a/src/resources/workers/scripts/versions.ts
+++ b/src/resources/workers/scripts/versions.ts
@@ -245,7 +245,7 @@ export namespace VersionCreateResponse {
name: string;
/**
- * The name of the dispatch namespace.
+ * Namespace to bind to.
*/
namespace: string;
@@ -981,7 +981,7 @@ export namespace VersionGetResponse {
name: string;
/**
- * The name of the dispatch namespace.
+ * Namespace to bind to.
*/
namespace: string;
@@ -1634,11 +1634,6 @@ export namespace VersionCreateParams {
export namespace Metadata {
export interface Annotations {
- /**
- * Associated alias for a version.
- */
- 'workers/alias'?: string;
-
/**
* Human-readable message about the version. Truncated to 100 bytes.
*/
@@ -1745,7 +1740,7 @@ export namespace VersionCreateParams {
name: string;
/**
- * The name of the dispatch namespace.
+ * Namespace to bind to.
*/
namespace: string;
diff --git a/src/resources/zones/settings.ts b/src/resources/zones/settings.ts
index 4a3ad6c613..0838680bb9 100644
--- a/src/resources/zones/settings.ts
+++ b/src/resources/zones/settings.ts
@@ -301,8 +301,13 @@ export interface BrowserCacheTTL {
id?: 'browser_cache_ttl';
/**
- * The number of seconds to cache resources for. Setting this to 0 enables "Respect
- * Existing Headers".
+ * The number of seconds to cache resources for. Minimum values by plan:
+ *
+ * - Free: 7200 seconds (2 hours)
+ * - Pro: 3600 seconds (1 hour)
+ * - Business: 1 second
+ * - Enterprise: 1 second Setting this to 0 enables "Respect Existing Headers" and
+ * is allowed for all plans.
*/
value?: number;
}
@@ -314,8 +319,13 @@ export interface BrowserCacheTTLParam {
id?: 'browser_cache_ttl';
/**
- * The number of seconds to cache resources for. Setting this to 0 enables "Respect
- * Existing Headers".
+ * The number of seconds to cache resources for. Minimum values by plan:
+ *
+ * - Free: 7200 seconds (2 hours)
+ * - Pro: 3600 seconds (1 hour)
+ * - Business: 1 second
+ * - Enterprise: 1 second Setting this to 0 enables "Respect Existing Headers" and
+ * is allowed for all plans.
*/
value?: number;
}
@@ -1092,10 +1102,6 @@ export interface PseudoIPV4 {
modified_on?: string | null;
}
-/**
- * @deprecated This page rule is deprecated. This functionality is no longer
- * supported.
- */
export interface ResponseBuffering {
/**
* Turn on or off whether Cloudflare should wait for an entire file from the origin
@@ -1110,10 +1116,6 @@ export interface ResponseBuffering {
value?: 'on' | 'off';
}
-/**
- * @deprecated This page rule is deprecated. This functionality is no longer
- * supported.
- */
export interface ResponseBufferingParam {
/**
* Turn on or off whether Cloudflare should wait for an entire file from the origin
@@ -2213,8 +2215,10 @@ export namespace SettingEditResponse {
}
/**
- * @deprecated This zone setting is deprecated. This functionality is no longer
- * supported.
+ * Enables or disables buffering of responses from the proxied server. Cloudflare
+ * may buffer the whole payload to deliver it at once to the client versus allowing
+ * it to be delivered in chunks. By default, the proxied server streams directly
+ * and is not buffered by Cloudflare. This is limited to Enterprise Zones.
*/
export interface ZonesSchemasResponseBuffering {
/**
@@ -3254,8 +3258,10 @@ export namespace SettingGetResponse {
}
/**
- * @deprecated This zone setting is deprecated. This functionality is no longer
- * supported.
+ * Enables or disables buffering of responses from the proxied server. Cloudflare
+ * may buffer the whole payload to deliver it at once to the client versus allowing
+ * it to be delivered in chunks. By default, the proxied server streams directly
+ * and is not buffered by Cloudflare. This is limited to Enterprise Zones.
*/
export interface ZonesSchemasResponseBuffering {
/**
diff --git a/tests/api-resources/alerting/destinations/webhooks.test.ts b/tests/api-resources/alerting/destinations/webhooks.test.ts
index f7e64ac407..400214bb31 100644
--- a/tests/api-resources/alerting/destinations/webhooks.test.ts
+++ b/tests/api-resources/alerting/destinations/webhooks.test.ts
@@ -38,11 +38,14 @@ describe('resource webhooks', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291
test.skip('update: only required params', async () => {
- const responsePromise = client.alerting.destinations.webhooks.update('b115d5ec15c641ee8b7692c449b5227b', {
- account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- name: 'Slack Webhook',
- url: 'https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd',
- });
+ const responsePromise = client.alerting.destinations.webhooks.update(
+ 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
+ {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ name: 'Slack Webhook',
+ url: 'https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd',
+ },
+ );
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -54,12 +57,15 @@ describe('resource webhooks', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291
test.skip('update: required and optional params', async () => {
- const response = await client.alerting.destinations.webhooks.update('b115d5ec15c641ee8b7692c449b5227b', {
- account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- name: 'Slack Webhook',
- url: 'https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd',
- secret: 'secret',
- });
+ const response = await client.alerting.destinations.webhooks.update(
+ 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
+ {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ name: 'Slack Webhook',
+ url: 'https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd',
+ secret: 'secret',
+ },
+ );
});
test('list: only required params', async () => {
@@ -82,9 +88,10 @@ describe('resource webhooks', () => {
});
test('delete: only required params', async () => {
- const responsePromise = client.alerting.destinations.webhooks.delete('b115d5ec15c641ee8b7692c449b5227b', {
- account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- });
+ const responsePromise = client.alerting.destinations.webhooks.delete(
+ 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
+ { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
+ );
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -95,16 +102,18 @@ describe('resource webhooks', () => {
});
test('delete: required and optional params', async () => {
- const response = await client.alerting.destinations.webhooks.delete('b115d5ec15c641ee8b7692c449b5227b', {
- account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- });
+ const response = await client.alerting.destinations.webhooks.delete(
+ 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
+ { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
+ );
});
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291
test.skip('get: only required params', async () => {
- const responsePromise = client.alerting.destinations.webhooks.get('b115d5ec15c641ee8b7692c449b5227b', {
- account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- });
+ const responsePromise = client.alerting.destinations.webhooks.get(
+ 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
+ { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
+ );
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -116,7 +125,7 @@ describe('resource webhooks', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291
test.skip('get: required and optional params', async () => {
- const response = await client.alerting.destinations.webhooks.get('b115d5ec15c641ee8b7692c449b5227b', {
+ const response = await client.alerting.destinations.webhooks.get('b115d5ec-15c6-41ee-8b76-92c449b5227b', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
});
diff --git a/tests/api-resources/alerting/policies.test.ts b/tests/api-resources/alerting/policies.test.ts
index 3de56f13b7..aed5640624 100644
--- a/tests/api-resources/alerting/policies.test.ts
+++ b/tests/api-resources/alerting/policies.test.ts
@@ -35,9 +35,9 @@ describe('resource policies', () => {
alert_type: 'universal_ssl_event_type',
enabled: true,
mechanisms: {
- email: [{ id: 'id' }],
- pagerduty: [{ id: 'f174e90afafe4643bbbc4a0ed4fc8415' }],
- webhooks: [{ id: 'f174e90afafe4643bbbc4a0ed4fc8415' }],
+ email: [{ id: 'test@example.com' }],
+ pagerduty: [{ id: 'e8133a15-00a4-4d69-aec1-32f70c51f6e5' }],
+ webhooks: [{ id: '14cc1190-5d2b-4b98-a696-c424cb2ad05f' }],
},
name: 'SSL Notification Event Policy',
alert_interval: '30m',
@@ -91,7 +91,7 @@ describe('resource policies', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4274
test.skip('update: only required params', async () => {
- const responsePromise = client.alerting.policies.update('0da2b59ef118439d8097bdfb215203c9', {
+ const responsePromise = client.alerting.policies.update('0da2b59e-f118-439d-8097-bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
const rawResponse = await responsePromise.asResponse();
@@ -105,7 +105,7 @@ describe('resource policies', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4274
test.skip('update: required and optional params', async () => {
- const response = await client.alerting.policies.update('0da2b59ef118439d8097bdfb215203c9', {
+ const response = await client.alerting.policies.update('0da2b59e-f118-439d-8097-bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
alert_interval: '30m',
alert_type: 'universal_ssl_event_type',
@@ -156,9 +156,9 @@ describe('resource policies', () => {
zones: ['string'],
},
mechanisms: {
- email: [{ id: 'id' }],
- pagerduty: [{ id: 'f174e90afafe4643bbbc4a0ed4fc8415' }],
- webhooks: [{ id: 'f174e90afafe4643bbbc4a0ed4fc8415' }],
+ email: [{ id: 'test@example.com' }],
+ pagerduty: [{ id: 'e8133a15-00a4-4d69-aec1-32f70c51f6e5' }],
+ webhooks: [{ id: '14cc1190-5d2b-4b98-a696-c424cb2ad05f' }],
},
name: 'SSL Notification Event Policy',
});
@@ -180,7 +180,7 @@ describe('resource policies', () => {
});
test('delete: only required params', async () => {
- const responsePromise = client.alerting.policies.delete('0da2b59ef118439d8097bdfb215203c9', {
+ const responsePromise = client.alerting.policies.delete('0da2b59e-f118-439d-8097-bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
const rawResponse = await responsePromise.asResponse();
@@ -193,14 +193,14 @@ describe('resource policies', () => {
});
test('delete: required and optional params', async () => {
- const response = await client.alerting.policies.delete('0da2b59ef118439d8097bdfb215203c9', {
+ const response = await client.alerting.policies.delete('0da2b59e-f118-439d-8097-bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
});
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4274
test.skip('get: only required params', async () => {
- const responsePromise = client.alerting.policies.get('0da2b59ef118439d8097bdfb215203c9', {
+ const responsePromise = client.alerting.policies.get('0da2b59e-f118-439d-8097-bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
const rawResponse = await responsePromise.asResponse();
@@ -214,7 +214,7 @@ describe('resource policies', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4274
test.skip('get: required and optional params', async () => {
- const response = await client.alerting.policies.get('0da2b59ef118439d8097bdfb215203c9', {
+ const response = await client.alerting.policies.get('0da2b59e-f118-439d-8097-bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
});
diff --git a/tests/api-resources/pages/projects/projects.test.ts b/tests/api-resources/pages/projects/projects.test.ts
index 41a92b2403..2057a0124d 100644
--- a/tests/api-resources/pages/projects/projects.test.ts
+++ b/tests/api-resources/pages/projects/projects.test.ts
@@ -115,11 +115,7 @@ describe('resource projects', () => {
});
test('list: required and optional params', async () => {
- const response = await client.pages.projects.list({
- account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- page: 1,
- per_page: 10,
- });
+ const response = await client.pages.projects.list({ account_id: '023e105f4ecef8ad9ca31a8372d0c353' });
});
test('delete: only required params', async () => {
diff --git a/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts b/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts
index 597bcca970..c3238ed19b 100644
--- a/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts
+++ b/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts
@@ -11,12 +11,7 @@ const client = new Cloudflare({
describe('resource connectivityPrecheck', () => {
test('source: only required params', async () => {
- const responsePromise = client.r2.superSlurper.connectivityPrecheck.source({
- account_id: 'account_id',
- bucket: 'bucket',
- secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
- vendor: 's3',
- });
+ const responsePromise = client.r2.superSlurper.connectivityPrecheck.source({ account_id: 'account_id' });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -30,21 +25,14 @@ describe('resource connectivityPrecheck', () => {
const response = await client.r2.superSlurper.connectivityPrecheck.source({
account_id: 'account_id',
bucket: 'bucket',
+ endpoint: 'endpoint',
secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
vendor: 's3',
- endpoint: 'endpoint',
- pathPrefix: 'pathPrefix',
- region: 'region',
});
});
test('target: only required params', async () => {
- const responsePromise = client.r2.superSlurper.connectivityPrecheck.target({
- account_id: 'account_id',
- bucket: 'bucket',
- secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
- vendor: 'r2',
- });
+ const responsePromise = client.r2.superSlurper.connectivityPrecheck.target({ account_id: 'account_id' });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -58,9 +46,9 @@ describe('resource connectivityPrecheck', () => {
const response = await client.r2.superSlurper.connectivityPrecheck.target({
account_id: 'account_id',
bucket: 'bucket',
+ jurisdiction: 'default',
secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
vendor: 'r2',
- jurisdiction: 'default',
});
});
});
diff --git a/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts b/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts
index e2806bfb82..8376af108a 100644
--- a/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts
+++ b/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts
@@ -27,17 +27,15 @@ describe('resource jobs', () => {
overwrite: true,
source: {
bucket: 'bucket',
+ endpoint: 'endpoint',
secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
vendor: 's3',
- endpoint: 'endpoint',
- pathPrefix: 'pathPrefix',
- region: 'region',
},
target: {
bucket: 'bucket',
+ jurisdiction: 'default',
secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
vendor: 'r2',
- jurisdiction: 'default',
},
});
});
diff --git a/tests/api-resources/workers/scripts/versions.test.ts b/tests/api-resources/workers/scripts/versions.test.ts
index 437f382fd7..82c89f8328 100644
--- a/tests/api-resources/workers/scripts/versions.test.ts
+++ b/tests/api-resources/workers/scripts/versions.test.ts
@@ -31,11 +31,7 @@ describe('resource versions', () => {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
metadata: {
main_module: 'worker.js',
- annotations: {
- 'workers/alias': 'staging',
- 'workers/message': 'Fixed worker code.',
- 'workers/tag': 'workers/tag',
- },
+ annotations: { 'workers/message': 'Fixed worker code.', 'workers/tag': 'workers/tag' },
bindings: [{ name: 'MY_ENV_VAR', text: 'my_data', type: 'plain_text' }],
compatibility_date: '2021-01-01',
compatibility_flags: ['nodejs_compat'],
From fd5bffab1fd369b9ab609cff60f6e2f7208d2ffe Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 22:56:10 +0000
Subject: [PATCH 068/451] chore(api): update composite API spec
---
.stats.yml | 4 +-
api.md | 2 +-
.../alerting/destinations/webhooks.ts | 6 +-
src/resources/alerting/policies.ts | 6 +-
src/resources/pages/index.ts | 1 +
src/resources/pages/pages.ts | 6 +-
src/resources/pages/projects/index.ts | 1 +
src/resources/pages/projects/projects.ts | 22 ++-
.../r2/super-slurper/connectivity-precheck.ts | 76 +++++++---
src/resources/r2/super-slurper/jobs/jobs.ts | 52 ++++---
src/resources/radar/as112/summary.ts | 34 +----
.../radar/as112/timeseries-groups.ts | 36 +----
src/resources/radar/attacks/layer3/summary.ts | 42 +-----
.../radar/attacks/layer3/timeseries-groups.ts | 42 +-----
src/resources/radar/attacks/layer7/summary.ts | 42 +-----
.../radar/attacks/layer7/timeseries-groups.ts | 42 +-----
src/resources/radar/dns/summary.ts | 54 ++-----
src/resources/radar/dns/timeseries-groups.ts | 60 ++------
src/resources/radar/email/routing/summary.ts | 36 +----
.../radar/email/routing/timeseries-groups.ts | 36 +----
src/resources/radar/email/security/summary.ts | 54 ++-----
.../radar/email/security/timeseries-groups.ts | 54 ++-----
src/resources/radar/entities/asns.ts | 12 +-
src/resources/radar/netflows/netflows.ts | 2 +-
src/resources/stream/downloads.ts | 5 +-
.../dispatch/namespaces/scripts/bindings.ts | 2 +-
.../dispatch/namespaces/scripts/scripts.ts | 2 +-
.../dispatch/namespaces/scripts/settings.ts | 6 +-
.../workers/beta/workers/versions.ts | 4 +-
src/resources/workers/beta/workers/workers.ts | 138 ++++++++++++++++++
.../scripts/script-and-version-settings.ts | 6 +-
src/resources/workers/scripts/scripts.ts | 2 +-
src/resources/workers/scripts/versions.ts | 11 +-
src/resources/zones/settings.ts | 38 ++---
.../alerting/destinations/webhooks.test.ts | 51 +++----
tests/api-resources/alerting/policies.test.ts | 24 +--
.../pages/projects/projects.test.ts | 6 +-
.../connectivity-precheck.test.ts | 20 ++-
.../r2/super-slurper/jobs/jobs.test.ts | 6 +-
.../workers/scripts/versions.test.ts | 6 +-
40 files changed, 453 insertions(+), 596 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 5637fc3e0e..0a983f097f 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ca8fbfa82d19dca400ec61b8c93392de1acd157860e435419f9a5e9ec8c586e0.yml
-openapi_spec_hash: 77d55c70bc3824ac61bd056e2319ee18
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7492bc33f84221ee63fe654c22680333788bfd2dfe8985c58f9d3db555ffca2b.yml
+openapi_spec_hash: b454db8aa8af2160a780a5b69445f3a4
config_hash: 107e0f1f8a98b007260b319226b88b3c
diff --git a/api.md b/api.md
index 7ffb0aa433..866462c86c 100644
--- a/api.md
+++ b/api.md
@@ -3925,7 +3925,7 @@ Types:
Methods:
- client.pages.projects.create({ ...params }) -> Project
-- client.pages.projects.list({ ...params }) -> DeploymentsSinglePage
+- client.pages.projects.list({ ...params }) -> DeploymentsV4PagePaginationArray
- client.pages.projects.delete(projectName, { ...params }) -> ProjectDeleteResponse | null
- client.pages.projects.edit(projectName, { ...params }) -> Project
- client.pages.projects.get(projectName, { ...params }) -> Project
diff --git a/src/resources/alerting/destinations/webhooks.ts b/src/resources/alerting/destinations/webhooks.ts
index 279c67d0bf..605e015ae3 100644
--- a/src/resources/alerting/destinations/webhooks.ts
+++ b/src/resources/alerting/destinations/webhooks.ts
@@ -35,7 +35,7 @@ export class Webhooks extends APIResource {
* ```ts
* const webhook =
* await client.alerting.destinations.webhooks.update(
- * 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
+ * 'b115d5ec15c641ee8b7692c449b5227b',
* {
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* name: 'Slack Webhook',
@@ -90,7 +90,7 @@ export class Webhooks extends APIResource {
* ```ts
* const webhook =
* await client.alerting.destinations.webhooks.delete(
- * 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
+ * 'b115d5ec15c641ee8b7692c449b5227b',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
@@ -114,7 +114,7 @@ export class Webhooks extends APIResource {
* ```ts
* const webhooks =
* await client.alerting.destinations.webhooks.get(
- * 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
+ * 'b115d5ec15c641ee8b7692c449b5227b',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
diff --git a/src/resources/alerting/policies.ts b/src/resources/alerting/policies.ts
index c2caed4005..5991ca0862 100644
--- a/src/resources/alerting/policies.ts
+++ b/src/resources/alerting/policies.ts
@@ -35,7 +35,7 @@ export class Policies extends APIResource {
* @example
* ```ts
* const policy = await client.alerting.policies.update(
- * '0da2b59e-f118-439d-8097-bdfb215203c9',
+ * '0da2b59ef118439d8097bdfb215203c9',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
@@ -85,7 +85,7 @@ export class Policies extends APIResource {
* @example
* ```ts
* const policy = await client.alerting.policies.delete(
- * '0da2b59e-f118-439d-8097-bdfb215203c9',
+ * '0da2b59ef118439d8097bdfb215203c9',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
@@ -105,7 +105,7 @@ export class Policies extends APIResource {
* @example
* ```ts
* const policy = await client.alerting.policies.get(
- * '0da2b59e-f118-439d-8097-bdfb215203c9',
+ * '0da2b59ef118439d8097bdfb215203c9',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
diff --git a/src/resources/pages/index.ts b/src/resources/pages/index.ts
index 2b2862b5c1..ede14daf73 100644
--- a/src/resources/pages/index.ts
+++ b/src/resources/pages/index.ts
@@ -2,6 +2,7 @@
export {
DeploymentsSinglePage,
+ DeploymentsV4PagePaginationArray,
Projects,
type Deployment,
type Project,
diff --git a/src/resources/pages/pages.ts b/src/resources/pages/pages.ts
index e92779690f..e0331f786f 100644
--- a/src/resources/pages/pages.ts
+++ b/src/resources/pages/pages.ts
@@ -4,7 +4,7 @@ import { APIResource } from '../../resource';
import * as ProjectsAPI from './projects/projects';
import {
Deployment,
- DeploymentsSinglePage,
+ DeploymentsV4PagePaginationArray,
Project,
ProjectCreateParams,
ProjectDeleteParams,
@@ -23,7 +23,7 @@ export class Pages extends APIResource {
}
Pages.Projects = Projects;
-Pages.DeploymentsSinglePage = DeploymentsSinglePage;
+Pages.DeploymentsV4PagePaginationArray = DeploymentsV4PagePaginationArray;
export declare namespace Pages {
export {
@@ -33,7 +33,7 @@ export declare namespace Pages {
type Stage as Stage,
type ProjectDeleteResponse as ProjectDeleteResponse,
type ProjectPurgeBuildCacheResponse as ProjectPurgeBuildCacheResponse,
- DeploymentsSinglePage as DeploymentsSinglePage,
+ DeploymentsV4PagePaginationArray as DeploymentsV4PagePaginationArray,
type ProjectCreateParams as ProjectCreateParams,
type ProjectListParams as ProjectListParams,
type ProjectDeleteParams as ProjectDeleteParams,
diff --git a/src/resources/pages/projects/index.ts b/src/resources/pages/projects/index.ts
index a40f121ec5..867a3f7b6b 100644
--- a/src/resources/pages/projects/index.ts
+++ b/src/resources/pages/projects/index.ts
@@ -12,6 +12,7 @@ export {
} from './deployments/index';
export {
DeploymentsSinglePage,
+ DeploymentsV4PagePaginationArray,
Projects,
type Deployment,
type Project,
diff --git a/src/resources/pages/projects/projects.ts b/src/resources/pages/projects/projects.ts
index 01225591dc..efac2c7d22 100644
--- a/src/resources/pages/projects/projects.ts
+++ b/src/resources/pages/projects/projects.ts
@@ -28,7 +28,7 @@ import {
DeploymentRollbackParams,
Deployments,
} from './deployments/deployments';
-import { SinglePage } from '../../../pagination';
+import { SinglePage, V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../../pagination';
export class Projects extends APIResource {
deployments: DeploymentsAPI.Deployments = new DeploymentsAPI.Deployments(this._client);
@@ -69,9 +69,13 @@ export class Projects extends APIResource {
list(
params: ProjectListParams,
options?: Core.RequestOptions,
- ): Core.PagePromise {
- const { account_id } = params;
- return this._client.getAPIList(`/accounts/${account_id}/pages/projects`, DeploymentsSinglePage, options);
+ ): Core.PagePromise {
+ const { account_id, ...query } = params;
+ return this._client.getAPIList(
+ `/accounts/${account_id}/pages/projects`,
+ DeploymentsV4PagePaginationArray,
+ { query, ...options },
+ );
}
/**
@@ -176,6 +180,8 @@ export class Projects extends APIResource {
}
}
+export class DeploymentsV4PagePaginationArray extends V4PagePaginationArray {}
+
export class DeploymentsSinglePage extends SinglePage {}
export interface Deployment {
@@ -1641,9 +1647,9 @@ export namespace ProjectCreateParams {
}
}
-export interface ProjectListParams {
+export interface ProjectListParams extends V4PagePaginationArrayParams {
/**
- * Identifier
+ * Path param: Identifier
*/
account_id: string;
}
@@ -2270,7 +2276,7 @@ export interface ProjectPurgeBuildCacheParams {
account_id: string;
}
-Projects.DeploymentsSinglePage = DeploymentsSinglePage;
+Projects.DeploymentsV4PagePaginationArray = DeploymentsV4PagePaginationArray;
Projects.Deployments = Deployments;
Projects.Domains = Domains;
Projects.DomainListResponsesSinglePage = DomainListResponsesSinglePage;
@@ -2282,7 +2288,7 @@ export declare namespace Projects {
type Stage as Stage,
type ProjectDeleteResponse as ProjectDeleteResponse,
type ProjectPurgeBuildCacheResponse as ProjectPurgeBuildCacheResponse,
- DeploymentsSinglePage as DeploymentsSinglePage,
+ DeploymentsV4PagePaginationArray as DeploymentsV4PagePaginationArray,
type ProjectCreateParams as ProjectCreateParams,
type ProjectListParams as ProjectListParams,
type ProjectDeleteParams as ProjectDeleteParams,
diff --git a/src/resources/r2/super-slurper/connectivity-precheck.ts b/src/resources/r2/super-slurper/connectivity-precheck.ts
index 654a8193d5..2283824388 100644
--- a/src/resources/r2/super-slurper/connectivity-precheck.ts
+++ b/src/resources/r2/super-slurper/connectivity-precheck.ts
@@ -13,6 +13,12 @@ export class ConnectivityPrecheck extends APIResource {
* const response =
* await client.r2.superSlurper.connectivityPrecheck.source({
* account_id: 'account_id',
+ * bucket: 'bucket',
+ * secret: {
+ * accessKeyId: 'accessKeyId',
+ * secretAccessKey: 'secretAccessKey',
+ * },
+ * vendor: 's3',
* });
* ```
*/
@@ -37,6 +43,12 @@ export class ConnectivityPrecheck extends APIResource {
* const response =
* await client.r2.superSlurper.connectivityPrecheck.target({
* account_id: 'account_id',
+ * bucket: 'bucket',
+ * secret: {
+ * accessKeyId: 'accessKeyId',
+ * secretAccessKey: 'secretAccessKey',
+ * },
+ * vendor: 'r2',
* });
* ```
*/
@@ -77,7 +89,17 @@ export declare namespace ConnectivityPrecheckSourceParams {
/**
* Body param:
*/
- bucket?: string;
+ bucket: string;
+
+ /**
+ * Body param:
+ */
+ secret: R2SlurperS3SourceSchema.Secret;
+
+ /**
+ * Body param:
+ */
+ vendor: 's3';
/**
* Body param:
@@ -87,19 +109,19 @@ export declare namespace ConnectivityPrecheckSourceParams {
/**
* Body param:
*/
- secret?: R2SlurperS3SourceSchema.Secret;
+ pathPrefix?: string | null;
/**
* Body param:
*/
- vendor?: 's3';
+ region?: string | null;
}
export namespace R2SlurperS3SourceSchema {
export interface Secret {
- accessKeyId?: string;
+ accessKeyId: string;
- secretAccessKey?: string;
+ secretAccessKey: string;
}
}
@@ -112,24 +134,29 @@ export declare namespace ConnectivityPrecheckSourceParams {
/**
* Body param:
*/
- bucket?: string;
+ bucket: string;
+
+ /**
+ * Body param:
+ */
+ secret: R2SlurperGcsSourceSchema.Secret;
/**
* Body param:
*/
- secret?: R2SlurperGcsSourceSchema.Secret;
+ vendor: 'gcs';
/**
* Body param:
*/
- vendor?: 'gcs';
+ pathPrefix?: string | null;
}
export namespace R2SlurperGcsSourceSchema {
export interface Secret {
- clientEmail?: string;
+ clientEmail: string;
- privateKey?: string;
+ privateKey: string;
}
}
@@ -142,29 +169,34 @@ export declare namespace ConnectivityPrecheckSourceParams {
/**
* Body param:
*/
- bucket?: string;
+ bucket: string;
/**
* Body param:
*/
- jurisdiction?: 'default' | 'eu' | 'fedramp';
+ secret: R2SlurperR2SourceSchema.Secret;
+
+ /**
+ * Body param:
+ */
+ vendor: SippyAPI.ProviderParam;
/**
* Body param:
*/
- secret?: R2SlurperR2SourceSchema.Secret;
+ jurisdiction?: 'default' | 'eu' | 'fedramp';
/**
* Body param:
*/
- vendor?: SippyAPI.ProviderParam;
+ pathPrefix?: string | null;
}
export namespace R2SlurperR2SourceSchema {
export interface Secret {
- accessKeyId?: string;
+ accessKeyId: string;
- secretAccessKey?: string;
+ secretAccessKey: string;
}
}
}
@@ -178,29 +210,29 @@ export interface ConnectivityPrecheckTargetParams {
/**
* Body param:
*/
- bucket?: string;
+ bucket: string;
/**
* Body param:
*/
- jurisdiction?: 'default' | 'eu' | 'fedramp';
+ secret: ConnectivityPrecheckTargetParams.Secret;
/**
* Body param:
*/
- secret?: ConnectivityPrecheckTargetParams.Secret;
+ vendor: SippyAPI.ProviderParam;
/**
* Body param:
*/
- vendor?: SippyAPI.ProviderParam;
+ jurisdiction?: 'default' | 'eu' | 'fedramp';
}
export namespace ConnectivityPrecheckTargetParams {
export interface Secret {
- accessKeyId?: string;
+ accessKeyId: string;
- secretAccessKey?: string;
+ secretAccessKey: string;
}
}
diff --git a/src/resources/r2/super-slurper/jobs/jobs.ts b/src/resources/r2/super-slurper/jobs/jobs.ts
index 0e70bb10e5..7732e944b1 100644
--- a/src/resources/r2/super-slurper/jobs/jobs.ts
+++ b/src/resources/r2/super-slurper/jobs/jobs.ts
@@ -360,72 +360,80 @@ export interface JobCreateParams {
export namespace JobCreateParams {
export interface R2SlurperS3SourceSchema {
- bucket?: string;
+ bucket: string;
+
+ secret: R2SlurperS3SourceSchema.Secret;
+
+ vendor: 's3';
endpoint?: string | null;
- secret?: R2SlurperS3SourceSchema.Secret;
+ pathPrefix?: string | null;
- vendor?: 's3';
+ region?: string | null;
}
export namespace R2SlurperS3SourceSchema {
export interface Secret {
- accessKeyId?: string;
+ accessKeyId: string;
- secretAccessKey?: string;
+ secretAccessKey: string;
}
}
export interface R2SlurperGcsSourceSchema {
- bucket?: string;
+ bucket: string;
- secret?: R2SlurperGcsSourceSchema.Secret;
+ secret: R2SlurperGcsSourceSchema.Secret;
- vendor?: 'gcs';
+ vendor: 'gcs';
+
+ pathPrefix?: string | null;
}
export namespace R2SlurperGcsSourceSchema {
export interface Secret {
- clientEmail?: string;
+ clientEmail: string;
- privateKey?: string;
+ privateKey: string;
}
}
export interface R2SlurperR2SourceSchema {
- bucket?: string;
+ bucket: string;
- jurisdiction?: 'default' | 'eu' | 'fedramp';
+ secret: R2SlurperR2SourceSchema.Secret;
- secret?: R2SlurperR2SourceSchema.Secret;
+ vendor: SippyAPI.ProviderParam;
+
+ jurisdiction?: 'default' | 'eu' | 'fedramp';
- vendor?: SippyAPI.ProviderParam;
+ pathPrefix?: string | null;
}
export namespace R2SlurperR2SourceSchema {
export interface Secret {
- accessKeyId?: string;
+ accessKeyId: string;
- secretAccessKey?: string;
+ secretAccessKey: string;
}
}
export interface Target {
- bucket?: string;
+ bucket: string;
- jurisdiction?: 'default' | 'eu' | 'fedramp';
+ secret: Target.Secret;
- secret?: Target.Secret;
+ vendor: SippyAPI.ProviderParam;
- vendor?: SippyAPI.ProviderParam;
+ jurisdiction?: 'default' | 'eu' | 'fedramp';
}
export namespace Target {
export interface Secret {
- accessKeyId?: string;
+ accessKeyId: string;
- secretAccessKey?: string;
+ secretAccessKey: string;
}
}
}
diff --git a/src/resources/radar/as112/summary.ts b/src/resources/radar/as112/summary.ts
index c59fdaeb5a..d6034b19c4 100644
--- a/src/resources/radar/as112/summary.ts
+++ b/src/resources/radar/as112/summary.ts
@@ -9,10 +9,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNS queries to AS112 by DNSSEC (DNS Security
* Extensions) support.
*
- * @example
- * ```ts
- * const response = await client.radar.as112.summary.dnssec();
- * ```
+ * @deprecated
*/
dnssec(query?: SummaryDNSSECParams, options?: Core.RequestOptions): Core.APIPromise;
dnssec(options?: Core.RequestOptions): Core.APIPromise;
@@ -34,10 +31,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNS queries to AS112 by EDNS (Extension Mechanisms
* for DNS) support.
*
- * @example
- * ```ts
- * const response = await client.radar.as112.summary.edns();
- * ```
+ * @deprecated
*/
edns(query?: SummaryEdnsParams, options?: Core.RequestOptions): Core.APIPromise;
edns(options?: Core.RequestOptions): Core.APIPromise;
@@ -58,11 +52,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries to AS112 by IP version.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.summary.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -86,11 +76,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries to AS112 by protocol.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.summary.protocol();
- * ```
+ * @deprecated
*/
protocol(
query?: SummaryProtocolParams,
@@ -114,11 +100,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries to AS112 by type.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.summary.queryType();
- * ```
+ * @deprecated
*/
queryType(
query?: SummaryQueryTypeParams,
@@ -142,11 +124,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of AS112 DNS requests classified by response code.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.summary.responseCodes();
- * ```
+ * @deprecated
*/
responseCodes(
query?: SummaryResponseCodesParams,
diff --git a/src/resources/radar/as112/timeseries-groups.ts b/src/resources/radar/as112/timeseries-groups.ts
index a9e2aa049c..e5593df35c 100644
--- a/src/resources/radar/as112/timeseries-groups.ts
+++ b/src/resources/radar/as112/timeseries-groups.ts
@@ -9,11 +9,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of AS112 DNS queries by DNSSEC (DNS Security
* Extensions) support over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.timeseriesGroups.dnssec();
- * ```
+ * @deprecated
*/
dnssec(
query?: TimeseriesGroupDNSSECParams,
@@ -38,11 +34,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of AS112 DNS queries by EDNS (Extension Mechanisms
* for DNS) support over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.timeseriesGroups.edns();
- * ```
+ * @deprecated
*/
edns(
query?: TimeseriesGroupEdnsParams,
@@ -66,11 +58,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of AS112 DNS queries by IP version over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.timeseriesGroups.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -96,11 +84,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of AS112 DNS requests classified by protocol over
* time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.timeseriesGroups.protocol();
- * ```
+ * @deprecated
*/
protocol(
query?: TimeseriesGroupProtocolParams,
@@ -124,11 +108,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of AS112 DNS queries by type over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.timeseriesGroups.queryType();
- * ```
+ * @deprecated
*/
queryType(
query?: TimeseriesGroupQueryTypeParams,
@@ -154,11 +134,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of AS112 DNS requests classified by response code
* over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.as112.timeseriesGroups.responseCodes();
- * ```
+ * @deprecated
*/
responseCodes(
query?: TimeseriesGroupResponseCodesParams,
diff --git a/src/resources/radar/attacks/layer3/summary.ts b/src/resources/radar/attacks/layer3/summary.ts
index 73ed7d7c70..bc4ccc4c81 100644
--- a/src/resources/radar/attacks/layer3/summary.ts
+++ b/src/resources/radar/attacks/layer3/summary.ts
@@ -8,11 +8,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by bitrate.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.summary.bitrate();
- * ```
+ * @deprecated
*/
bitrate(
query?: SummaryBitrateParams,
@@ -36,11 +32,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by duration.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.summary.duration();
- * ```
+ * @deprecated
*/
duration(
query?: SummaryDurationParams,
@@ -64,11 +56,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by targeted industry.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.summary.industry();
- * ```
+ * @deprecated
*/
industry(
query?: SummaryIndustryParams,
@@ -92,11 +80,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by IP version.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.summary.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -120,11 +104,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by protocol.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.summary.protocol();
- * ```
+ * @deprecated
*/
protocol(
query?: SummaryProtocolParams,
@@ -148,11 +128,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by vector.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.summary.vector();
- * ```
+ * @deprecated
*/
vector(query?: SummaryVectorParams, options?: Core.RequestOptions): Core.APIPromise;
vector(options?: Core.RequestOptions): Core.APIPromise;
@@ -173,11 +149,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by targeted vertical.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.summary.vertical();
- * ```
+ * @deprecated
*/
vertical(
query?: SummaryVerticalParams,
diff --git a/src/resources/radar/attacks/layer3/timeseries-groups.ts b/src/resources/radar/attacks/layer3/timeseries-groups.ts
index 740bb97cae..9f8d171a40 100644
--- a/src/resources/radar/attacks/layer3/timeseries-groups.ts
+++ b/src/resources/radar/attacks/layer3/timeseries-groups.ts
@@ -8,11 +8,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by bitrate over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.timeseriesGroups.bitrate();
- * ```
+ * @deprecated
*/
bitrate(
query?: TimeseriesGroupBitrateParams,
@@ -37,11 +33,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by duration over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.timeseriesGroups.duration();
- * ```
+ * @deprecated
*/
duration(
query?: TimeseriesGroupDurationParams,
@@ -66,11 +58,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by targeted industry over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.timeseriesGroups.industry();
- * ```
+ * @deprecated
*/
industry(
query?: TimeseriesGroupIndustryParams,
@@ -95,11 +83,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by IP version over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.timeseriesGroups.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -124,11 +108,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by protocol over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.timeseriesGroups.protocol();
- * ```
+ * @deprecated
*/
protocol(
query?: TimeseriesGroupProtocolParams,
@@ -153,11 +133,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by vector over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.timeseriesGroups.vector();
- * ```
+ * @deprecated
*/
vector(
query?: TimeseriesGroupVectorParams,
@@ -182,11 +158,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by targeted vertical over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer3.timeseriesGroups.vertical();
- * ```
+ * @deprecated
*/
vertical(
query?: TimeseriesGroupVerticalParams,
diff --git a/src/resources/radar/attacks/layer7/summary.ts b/src/resources/radar/attacks/layer7/summary.ts
index 4afa3d68d0..160eb24dd8 100644
--- a/src/resources/radar/attacks/layer7/summary.ts
+++ b/src/resources/radar/attacks/layer7/summary.ts
@@ -8,11 +8,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by HTTP method.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.summary.httpMethod();
- * ```
+ * @deprecated
*/
httpMethod(
query?: SummaryHTTPMethodParams,
@@ -37,11 +33,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by HTTP version.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.summary.httpVersion();
- * ```
+ * @deprecated
*/
httpVersion(
query?: SummaryHTTPVersionParams,
@@ -66,11 +58,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by targeted industry.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.summary.industry();
- * ```
+ * @deprecated
*/
industry(
query?: SummaryIndustryParams,
@@ -94,11 +82,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by IP version.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.summary.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -122,11 +106,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by managed rules.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.summary.managedRules();
- * ```
+ * @deprecated
*/
managedRules(
query?: SummaryManagedRulesParams,
@@ -151,11 +131,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by mitigation product.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.summary.mitigationProduct();
- * ```
+ * @deprecated
*/
mitigationProduct(
query?: SummaryMitigationProductParams,
@@ -180,11 +156,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by targeted vertical.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.summary.vertical();
- * ```
+ * @deprecated
*/
vertical(
query?: SummaryVerticalParams,
diff --git a/src/resources/radar/attacks/layer7/timeseries-groups.ts b/src/resources/radar/attacks/layer7/timeseries-groups.ts
index ab7e962788..ce7c62ce1e 100644
--- a/src/resources/radar/attacks/layer7/timeseries-groups.ts
+++ b/src/resources/radar/attacks/layer7/timeseries-groups.ts
@@ -8,11 +8,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by HTTP method over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.timeseriesGroups.httpMethod();
- * ```
+ * @deprecated
*/
httpMethod(
query?: TimeseriesGroupHTTPMethodParams,
@@ -37,11 +33,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by HTTP version over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.timeseriesGroups.httpVersion();
- * ```
+ * @deprecated
*/
httpVersion(
query?: TimeseriesGroupHTTPVersionParams,
@@ -66,11 +58,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by targeted industry over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.timeseriesGroups.industry();
- * ```
+ * @deprecated
*/
industry(
query?: TimeseriesGroupIndustryParams,
@@ -95,11 +83,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by IP version used over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.timeseriesGroups.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -124,11 +108,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by managed rules over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.timeseriesGroups.managedRules();
- * ```
+ * @deprecated
*/
managedRules(
query?: TimeseriesGroupManagedRulesParams,
@@ -153,11 +133,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by mitigation product over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.timeseriesGroups.mitigationProduct();
- * ```
+ * @deprecated
*/
mitigationProduct(
query?: TimeseriesGroupMitigationProductParams,
@@ -182,11 +158,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of layer 7 attacks by targeted vertical over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.attacks.layer7.timeseriesGroups.vertical();
- * ```
+ * @deprecated
*/
vertical(
query?: TimeseriesGroupVerticalParams,
diff --git a/src/resources/radar/dns/summary.ts b/src/resources/radar/dns/summary.ts
index 9bc87aa1f9..575afc929b 100644
--- a/src/resources/radar/dns/summary.ts
+++ b/src/resources/radar/dns/summary.ts
@@ -8,10 +8,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by cache status.
*
- * @example
- * ```ts
- * const response = await client.radar.dns.summary.cacheHit();
- * ```
+ * @deprecated
*/
cacheHit(
query?: SummaryCacheHitParams,
@@ -36,10 +33,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNS responses by DNSSEC (DNS Security Extensions)
* support.
*
- * @example
- * ```ts
- * const response = await client.radar.dns.summary.dnssec();
- * ```
+ * @deprecated
*/
dnssec(query?: SummaryDNSSECParams, options?: Core.RequestOptions): Core.APIPromise;
dnssec(options?: Core.RequestOptions): Core.APIPromise;
@@ -61,11 +55,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNS queries by DNSSEC (DNS Security Extensions)
* client awareness.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.summary.dnssecAware();
- * ```
+ * @deprecated
*/
dnssecAware(
query?: SummaryDNSSECAwareParams,
@@ -90,10 +80,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of DNSSEC-validated answers by end-to-end security
* status.
*
- * @example
- * ```ts
- * const response = await client.radar.dns.summary.dnssecE2E();
- * ```
+ * @deprecated
*/
dnssecE2E(
query?: SummaryDNSSECE2EParams,
@@ -117,10 +104,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by IP version.
*
- * @example
- * ```ts
- * const response = await client.radar.dns.summary.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -144,11 +128,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by matching answers.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.summary.matchingAnswer();
- * ```
+ * @deprecated
*/
matchingAnswer(
query?: SummaryMatchingAnswerParams,
@@ -172,10 +152,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by DNS transport protocol.
*
- * @example
- * ```ts
- * const response = await client.radar.dns.summary.protocol();
- * ```
+ * @deprecated
*/
protocol(
query?: SummaryProtocolParams,
@@ -199,10 +176,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by type.
*
- * @example
- * ```ts
- * const response = await client.radar.dns.summary.queryType();
- * ```
+ * @deprecated
*/
queryType(
query?: SummaryQueryTypeParams,
@@ -226,11 +200,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by response code.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.summary.responseCode();
- * ```
+ * @deprecated
*/
responseCode(
query?: SummaryResponseCodeParams,
@@ -254,11 +224,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of DNS queries by minimum response TTL.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.summary.responseTTL();
- * ```
+ * @deprecated
*/
responseTTL(
query?: SummaryResponseTTLParams,
diff --git a/src/resources/radar/dns/timeseries-groups.ts b/src/resources/radar/dns/timeseries-groups.ts
index 9a242a93fb..5e1ea8a4e1 100644
--- a/src/resources/radar/dns/timeseries-groups.ts
+++ b/src/resources/radar/dns/timeseries-groups.ts
@@ -8,11 +8,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by cache status over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.cacheHit();
- * ```
+ * @deprecated
*/
cacheHit(
query?: TimeseriesGroupCacheHitParams,
@@ -37,11 +33,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of DNS responses by DNSSEC (DNS Security Extensions)
* support over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.dnssec();
- * ```
+ * @deprecated
*/
dnssec(
query?: TimeseriesGroupDNSSECParams,
@@ -66,11 +58,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of DNS queries by DNSSEC (DNS Security Extensions)
* client awareness over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.dnssecAware();
- * ```
+ * @deprecated
*/
dnssecAware(
query?: TimeseriesGroupDNSSECAwareParams,
@@ -96,11 +84,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of DNSSEC-validated answers by end-to-end security
* status over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.dnssecE2E();
- * ```
+ * @deprecated
*/
dnssecE2E(
query?: TimeseriesGroupDNSSECE2EParams,
@@ -124,11 +108,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by IP version over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -152,11 +132,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by matching answers over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.matchingAnswer();
- * ```
+ * @deprecated
*/
matchingAnswer(
query?: TimeseriesGroupMatchingAnswerParams,
@@ -181,11 +157,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by DNS transport protocol over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.protocol();
- * ```
+ * @deprecated
*/
protocol(
query?: TimeseriesGroupProtocolParams,
@@ -209,11 +181,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by type over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.queryType();
- * ```
+ * @deprecated
*/
queryType(
query?: TimeseriesGroupQueryTypeParams,
@@ -237,11 +205,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by response code over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.responseCode();
- * ```
+ * @deprecated
*/
responseCode(
query?: TimeseriesGroupResponseCodeParams,
@@ -266,11 +230,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of DNS queries by minimum answer TTL over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.dns.timeseriesGroups.responseTTL();
- * ```
+ * @deprecated
*/
responseTTL(
query?: TimeseriesGroupResponseTTLParams,
diff --git a/src/resources/radar/email/routing/summary.ts b/src/resources/radar/email/routing/summary.ts
index 4085dc05e9..00defd2b84 100644
--- a/src/resources/radar/email/routing/summary.ts
+++ b/src/resources/radar/email/routing/summary.ts
@@ -10,11 +10,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by ARC (Authenticated Received Chain)
* validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.summary.arc();
- * ```
+ * @deprecated
*/
arc(query?: SummaryARCParams, options?: Core.RequestOptions): Core.APIPromise;
arc(options?: Core.RequestOptions): Core.APIPromise;
@@ -36,11 +32,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by DKIM (DomainKeys Identified Mail)
* validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.summary.dkim();
- * ```
+ * @deprecated
*/
dkim(query?: SummaryDKIMParams, options?: Core.RequestOptions): Core.APIPromise;
dkim(options?: Core.RequestOptions): Core.APIPromise;
@@ -62,11 +54,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by DMARC (Domain-based Message
* Authentication, Reporting and Conformance) validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.summary.dmarc();
- * ```
+ * @deprecated
*/
dmarc(query?: SummaryDMARCParams, options?: Core.RequestOptions): Core.APIPromise;
dmarc(options?: Core.RequestOptions): Core.APIPromise;
@@ -88,11 +76,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by encryption status (encrypted vs.
* not-encrypted).
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.summary.encrypted();
- * ```
+ * @deprecated
*/
encrypted(
query?: SummaryEncryptedParams,
@@ -116,11 +100,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of emails by IP version.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.summary.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: SummaryIPVersionParams,
@@ -145,11 +125,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by SPF (Sender Policy Framework)
* validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.summary.spf();
- * ```
+ * @deprecated
*/
spf(query?: SummarySPFParams, options?: Core.RequestOptions): Core.APIPromise;
spf(options?: Core.RequestOptions): Core.APIPromise;
diff --git a/src/resources/radar/email/routing/timeseries-groups.ts b/src/resources/radar/email/routing/timeseries-groups.ts
index c398945534..3a9801b143 100644
--- a/src/resources/radar/email/routing/timeseries-groups.ts
+++ b/src/resources/radar/email/routing/timeseries-groups.ts
@@ -10,11 +10,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by ARC (Authenticated Received Chain)
* validation over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.timeseriesGroups.arc();
- * ```
+ * @deprecated
*/
arc(
query?: TimeseriesGroupARCParams,
@@ -40,11 +36,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by DKIM (DomainKeys Identified Mail)
* validation over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.timeseriesGroups.dkim();
- * ```
+ * @deprecated
*/
dkim(
query?: TimeseriesGroupDKIMParams,
@@ -70,11 +62,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by DMARC (Domain-based Message
* Authentication, Reporting and Conformance) validation over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.timeseriesGroups.dmarc();
- * ```
+ * @deprecated
*/
dmarc(
query?: TimeseriesGroupDMARCParams,
@@ -100,11 +88,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by encryption status (encrypted vs.
* not-encrypted) over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.timeseriesGroups.encrypted();
- * ```
+ * @deprecated
*/
encrypted(
query?: TimeseriesGroupEncryptedParams,
@@ -129,11 +113,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of emails by IP version over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.timeseriesGroups.ipVersion();
- * ```
+ * @deprecated
*/
ipVersion(
query?: TimeseriesGroupIPVersionParams,
@@ -159,11 +139,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by SPF (Sender Policy Framework) validation
* over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.routing.timeseriesGroups.spf();
- * ```
+ * @deprecated
*/
spf(
query?: TimeseriesGroupSPFParams,
diff --git a/src/resources/radar/email/security/summary.ts b/src/resources/radar/email/security/summary.ts
index 3a984c2f4f..5136a742ff 100644
--- a/src/resources/radar/email/security/summary.ts
+++ b/src/resources/radar/email/security/summary.ts
@@ -10,11 +10,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by ARC (Authenticated Received Chain)
* validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.arc();
- * ```
+ * @deprecated
*/
arc(query?: SummaryARCParams, options?: Core.RequestOptions): Core.APIPromise;
arc(options?: Core.RequestOptions): Core.APIPromise;
@@ -36,11 +32,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by DKIM (DomainKeys Identified Mail)
* validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.dkim();
- * ```
+ * @deprecated
*/
dkim(query?: SummaryDKIMParams, options?: Core.RequestOptions): Core.APIPromise;
dkim(options?: Core.RequestOptions): Core.APIPromise;
@@ -62,11 +54,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by DMARC (Domain-based Message
* Authentication, Reporting and Conformance) validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.dmarc();
- * ```
+ * @deprecated
*/
dmarc(query?: SummaryDMARCParams, options?: Core.RequestOptions): Core.APIPromise;
dmarc(options?: Core.RequestOptions): Core.APIPromise;
@@ -87,11 +75,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of emails by malicious classification.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.malicious();
- * ```
+ * @deprecated
*/
malicious(
query?: SummaryMaliciousParams,
@@ -115,11 +99,7 @@ export class Summary extends APIResource {
/**
* Retrieves the proportion of emails by spam classification (spam vs. non-spam).
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.spam();
- * ```
+ * @deprecated
*/
spam(query?: SummarySpamParams, options?: Core.RequestOptions): Core.APIPromise;
spam(options?: Core.RequestOptions): Core.APIPromise;
@@ -141,11 +121,7 @@ export class Summary extends APIResource {
* Retrieves the distribution of emails by SPF (Sender Policy Framework)
* validation.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.spf();
- * ```
+ * @deprecated
*/
spf(query?: SummarySPFParams, options?: Core.RequestOptions): Core.APIPromise;
spf(options?: Core.RequestOptions): Core.APIPromise;
@@ -167,11 +143,7 @@ export class Summary extends APIResource {
* Retrieves the proportion of emails by spoof classification (spoof vs.
* non-spoof).
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.spoof();
- * ```
+ * @deprecated
*/
spoof(query?: SummarySpoofParams, options?: Core.RequestOptions): Core.APIPromise;
spoof(options?: Core.RequestOptions): Core.APIPromise;
@@ -192,11 +164,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of emails by threat categories.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.threatCategory();
- * ```
+ * @deprecated
*/
threatCategory(
query?: SummaryThreatCategoryParams,
@@ -221,11 +189,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of emails by TLS version.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.summary.tlsVersion();
- * ```
+ * @deprecated
*/
tlsVersion(
query?: SummaryTLSVersionParams,
diff --git a/src/resources/radar/email/security/timeseries-groups.ts b/src/resources/radar/email/security/timeseries-groups.ts
index 2fb9bbef99..aa620088a0 100644
--- a/src/resources/radar/email/security/timeseries-groups.ts
+++ b/src/resources/radar/email/security/timeseries-groups.ts
@@ -10,11 +10,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by ARC (Authenticated Received Chain)
* validation over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.arc();
- * ```
+ * @deprecated
*/
arc(
query?: TimeseriesGroupARCParams,
@@ -40,11 +36,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by DKIM (DomainKeys Identified Mail)
* validation over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.dkim();
- * ```
+ * @deprecated
*/
dkim(
query?: TimeseriesGroupDKIMParams,
@@ -70,11 +62,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by DMARC (Domain-based Message
* Authentication, Reporting and Conformance) validation over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.dmarc();
- * ```
+ * @deprecated
*/
dmarc(
query?: TimeseriesGroupDMARCParams,
@@ -99,11 +87,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of emails by malicious classification over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.malicious();
- * ```
+ * @deprecated
*/
malicious(
query?: TimeseriesGroupMaliciousParams,
@@ -129,11 +113,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by spam classification (spam vs. non-spam)
* over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.spam();
- * ```
+ * @deprecated
*/
spam(
query?: TimeseriesGroupSpamParams,
@@ -159,11 +139,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by SPF (Sender Policy Framework) validation
* over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.spf();
- * ```
+ * @deprecated
*/
spf(
query?: TimeseriesGroupSPFParams,
@@ -189,11 +165,7 @@ export class TimeseriesGroups extends APIResource {
* Retrieves the distribution of emails by spoof classification (spoof vs.
* non-spoof) over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.spoof();
- * ```
+ * @deprecated
*/
spoof(
query?: TimeseriesGroupSpoofParams,
@@ -218,11 +190,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of emails by threat category over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.threatCategory();
- * ```
+ * @deprecated
*/
threatCategory(
query?: TimeseriesGroupThreatCategoryParams,
@@ -247,11 +215,7 @@ export class TimeseriesGroups extends APIResource {
/**
* Retrieves the distribution of emails by TLS version over time.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.email.security.timeseriesGroups.tlsVersion();
- * ```
+ * @deprecated
*/
tlsVersion(
query?: TimeseriesGroupTLSVersionParams,
diff --git a/src/resources/radar/entities/asns.ts b/src/resources/radar/entities/asns.ts
index 66ecf4a6e9..7697e9dd84 100644
--- a/src/resources/radar/entities/asns.ts
+++ b/src/resources/radar/entities/asns.ts
@@ -194,10 +194,20 @@ export namespace ASNAsSetResponse {
*/
name: string;
+ /**
+ * The AS number following hierarchical AS-SET name
+ */
+ hierarchical_asn?: number;
+
/**
* The inferred AS number of the AS-SET
*/
- asn?: number;
+ inferred_asn?: number;
+
+ /**
+ * The AS number matching PeeringDB record
+ */
+ peeringdb_asn?: number;
}
}
diff --git a/src/resources/radar/netflows/netflows.ts b/src/resources/radar/netflows/netflows.ts
index c484510bb6..55c05d441b 100644
--- a/src/resources/radar/netflows/netflows.ts
+++ b/src/resources/radar/netflows/netflows.ts
@@ -13,7 +13,7 @@ export class Netflows extends APIResource {
* Retrieves the distribution of network traffic (NetFlows) by HTTP vs other
* protocols.
*
- * @deprecated
+ * @deprecated Use [Get Network Traffic Distribution By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/netflows/methods/summary_v2/) instead.
*/
summary(
query?: NetflowSummaryParams,
diff --git a/src/resources/stream/downloads.ts b/src/resources/stream/downloads.ts
index a9d2589f13..1fd7a50c02 100644
--- a/src/resources/stream/downloads.ts
+++ b/src/resources/stream/downloads.ts
@@ -6,7 +6,8 @@ import * as Core from '../../core';
export class Downloads extends APIResource {
/**
* Creates a download for a video when a video is ready to view. Use
- * `/downloads/{download_type}` instead for type-specific downloads.
+ * `/downloads/{download_type}` instead for type-specific downloads. Available
+ * types are `default` and `audio`.
*
* @example
* ```ts
@@ -35,7 +36,7 @@ export class Downloads extends APIResource {
/**
* Delete the downloads for a video. Use `/downloads/{download_type}` instead for
- * type-specific downloads.
+ * type-specific downloads. Available types are `default` and `audio`.
*
* @example
* ```ts
diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts
index 8b15a53e2d..4af2451c88 100644
--- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts
+++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts
@@ -168,7 +168,7 @@ export namespace BindingGetResponse {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts
index 9170366dbd..78e5e95423 100644
--- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts
+++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts
@@ -616,7 +616,7 @@ export namespace ScriptUpdateParams {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts
index fea3a53ffc..216456a041 100644
--- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts
+++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts
@@ -247,7 +247,7 @@ export namespace SettingEditResponse {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
@@ -999,7 +999,7 @@ export namespace SettingGetResponse {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
@@ -1769,7 +1769,7 @@ export namespace SettingEditParams {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
diff --git a/src/resources/workers/beta/workers/versions.ts b/src/resources/workers/beta/workers/versions.ts
index 300510fc56..185cea7033 100644
--- a/src/resources/workers/beta/workers/versions.ts
+++ b/src/resources/workers/beta/workers/versions.ts
@@ -409,7 +409,7 @@ export namespace Version {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
@@ -1263,7 +1263,7 @@ export namespace VersionCreateParams {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
diff --git a/src/resources/workers/beta/workers/workers.ts b/src/resources/workers/beta/workers/workers.ts
index ba7791704e..d4e49b0055 100644
--- a/src/resources/workers/beta/workers/workers.ts
+++ b/src/resources/workers/beta/workers/workers.ts
@@ -193,6 +193,11 @@ export interface Worker {
*/
observability: Worker.Observability;
+ /**
+ * Other resources that reference the Worker and depend on it existing.
+ */
+ references: Worker.References;
+
/**
* Subdomain settings for the Worker.
*/
@@ -259,6 +264,139 @@ export namespace Worker {
}
}
+ /**
+ * Other resources that reference the Worker and depend on it existing.
+ */
+ export interface References {
+ /**
+ * Other Workers that reference the Worker as an outbound for a dispatch namespace.
+ */
+ dispatch_namespace_outbounds: Array;
+
+ /**
+ * Custom domains connected to the Worker.
+ */
+ domains: Array;
+
+ /**
+ * Other Workers that reference Durable Object classes implemented by the Worker.
+ */
+ durable_objects: Array;
+
+ /**
+ * Queues that send messages to the Worker.
+ */
+ queues: Array;
+
+ /**
+ * Other Workers that reference the Worker using
+ * [service bindings](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/).
+ */
+ workers: Array;
+ }
+
+ export namespace References {
+ export interface DispatchNamespaceOutbound {
+ /**
+ * ID of the dispatch namespace.
+ */
+ namespace_id: string;
+
+ /**
+ * Name of the dispatch namespace.
+ */
+ namespace_name: string;
+
+ /**
+ * ID of the Worker using the dispatch namespace.
+ */
+ worker_id: string;
+
+ /**
+ * Name of the Worker using the dispatch namespace.
+ */
+ worker_name: string;
+ }
+
+ export interface Domain {
+ /**
+ * ID of the custom domain.
+ */
+ id: string;
+
+ /**
+ * ID of the TLS certificate issued for the custom domain.
+ */
+ certificate_id: string;
+
+ /**
+ * Full hostname of the custom domain, including the zone name.
+ */
+ hostname: string;
+
+ /**
+ * ID of the zone.
+ */
+ zone_id: string;
+
+ /**
+ * Name of the zone.
+ */
+ zone_name: string;
+ }
+
+ export interface DurableObject {
+ /**
+ * ID of the Durable Object namespace being used.
+ */
+ namespace_id: string;
+
+ /**
+ * Name of the Durable Object namespace being used.
+ */
+ namespace_name: string;
+
+ /**
+ * ID of the Worker using the Durable Object implementation.
+ */
+ worker_id: string;
+
+ /**
+ * Name of the Worker using the Durable Object implementation.
+ */
+ worker_name: string;
+ }
+
+ export interface Queue {
+ /**
+ * ID of the queue consumer configuration.
+ */
+ queue_consumer_id: string;
+
+ /**
+ * ID of the queue.
+ */
+ queue_id: string;
+
+ /**
+ * Name of the queue.
+ */
+ queue_name: string;
+ }
+
+ export interface Worker {
+ /**
+ * ID of the referencing Worker.
+ */
+ id: string;
+
+ /**
+ * Name of the referencing Worker.
+ */
+ name: string;
+ }
+ }
+
/**
* Subdomain settings for the Worker.
*/
diff --git a/src/resources/workers/scripts/script-and-version-settings.ts b/src/resources/workers/scripts/script-and-version-settings.ts
index 05bc7152a0..d6ef7552ca 100644
--- a/src/resources/workers/scripts/script-and-version-settings.ts
+++ b/src/resources/workers/scripts/script-and-version-settings.ts
@@ -243,7 +243,7 @@ export namespace ScriptAndVersionSettingEditResponse {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
@@ -995,7 +995,7 @@ export namespace ScriptAndVersionSettingGetResponse {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
@@ -1765,7 +1765,7 @@ export namespace ScriptAndVersionSettingEditParams {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
diff --git a/src/resources/workers/scripts/scripts.ts b/src/resources/workers/scripts/scripts.ts
index d96bb354dc..70546d5580 100644
--- a/src/resources/workers/scripts/scripts.ts
+++ b/src/resources/workers/scripts/scripts.ts
@@ -925,7 +925,7 @@ export namespace ScriptUpdateParams {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
diff --git a/src/resources/workers/scripts/versions.ts b/src/resources/workers/scripts/versions.ts
index d4334609ad..c9027b6f0c 100644
--- a/src/resources/workers/scripts/versions.ts
+++ b/src/resources/workers/scripts/versions.ts
@@ -245,7 +245,7 @@ export namespace VersionCreateResponse {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
@@ -981,7 +981,7 @@ export namespace VersionGetResponse {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
@@ -1634,6 +1634,11 @@ export namespace VersionCreateParams {
export namespace Metadata {
export interface Annotations {
+ /**
+ * Associated alias for a version.
+ */
+ 'workers/alias'?: string;
+
/**
* Human-readable message about the version. Truncated to 100 bytes.
*/
@@ -1740,7 +1745,7 @@ export namespace VersionCreateParams {
name: string;
/**
- * Namespace to bind to.
+ * The name of the dispatch namespace.
*/
namespace: string;
diff --git a/src/resources/zones/settings.ts b/src/resources/zones/settings.ts
index 0838680bb9..4a3ad6c613 100644
--- a/src/resources/zones/settings.ts
+++ b/src/resources/zones/settings.ts
@@ -301,13 +301,8 @@ export interface BrowserCacheTTL {
id?: 'browser_cache_ttl';
/**
- * The number of seconds to cache resources for. Minimum values by plan:
- *
- * - Free: 7200 seconds (2 hours)
- * - Pro: 3600 seconds (1 hour)
- * - Business: 1 second
- * - Enterprise: 1 second Setting this to 0 enables "Respect Existing Headers" and
- * is allowed for all plans.
+ * The number of seconds to cache resources for. Setting this to 0 enables "Respect
+ * Existing Headers".
*/
value?: number;
}
@@ -319,13 +314,8 @@ export interface BrowserCacheTTLParam {
id?: 'browser_cache_ttl';
/**
- * The number of seconds to cache resources for. Minimum values by plan:
- *
- * - Free: 7200 seconds (2 hours)
- * - Pro: 3600 seconds (1 hour)
- * - Business: 1 second
- * - Enterprise: 1 second Setting this to 0 enables "Respect Existing Headers" and
- * is allowed for all plans.
+ * The number of seconds to cache resources for. Setting this to 0 enables "Respect
+ * Existing Headers".
*/
value?: number;
}
@@ -1102,6 +1092,10 @@ export interface PseudoIPV4 {
modified_on?: string | null;
}
+/**
+ * @deprecated This page rule is deprecated. This functionality is no longer
+ * supported.
+ */
export interface ResponseBuffering {
/**
* Turn on or off whether Cloudflare should wait for an entire file from the origin
@@ -1116,6 +1110,10 @@ export interface ResponseBuffering {
value?: 'on' | 'off';
}
+/**
+ * @deprecated This page rule is deprecated. This functionality is no longer
+ * supported.
+ */
export interface ResponseBufferingParam {
/**
* Turn on or off whether Cloudflare should wait for an entire file from the origin
@@ -2215,10 +2213,8 @@ export namespace SettingEditResponse {
}
/**
- * Enables or disables buffering of responses from the proxied server. Cloudflare
- * may buffer the whole payload to deliver it at once to the client versus allowing
- * it to be delivered in chunks. By default, the proxied server streams directly
- * and is not buffered by Cloudflare. This is limited to Enterprise Zones.
+ * @deprecated This zone setting is deprecated. This functionality is no longer
+ * supported.
*/
export interface ZonesSchemasResponseBuffering {
/**
@@ -3258,10 +3254,8 @@ export namespace SettingGetResponse {
}
/**
- * Enables or disables buffering of responses from the proxied server. Cloudflare
- * may buffer the whole payload to deliver it at once to the client versus allowing
- * it to be delivered in chunks. By default, the proxied server streams directly
- * and is not buffered by Cloudflare. This is limited to Enterprise Zones.
+ * @deprecated This zone setting is deprecated. This functionality is no longer
+ * supported.
*/
export interface ZonesSchemasResponseBuffering {
/**
diff --git a/tests/api-resources/alerting/destinations/webhooks.test.ts b/tests/api-resources/alerting/destinations/webhooks.test.ts
index 400214bb31..f7e64ac407 100644
--- a/tests/api-resources/alerting/destinations/webhooks.test.ts
+++ b/tests/api-resources/alerting/destinations/webhooks.test.ts
@@ -38,14 +38,11 @@ describe('resource webhooks', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291
test.skip('update: only required params', async () => {
- const responsePromise = client.alerting.destinations.webhooks.update(
- 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
- {
- account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- name: 'Slack Webhook',
- url: 'https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd',
- },
- );
+ const responsePromise = client.alerting.destinations.webhooks.update('b115d5ec15c641ee8b7692c449b5227b', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ name: 'Slack Webhook',
+ url: 'https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd',
+ });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -57,15 +54,12 @@ describe('resource webhooks', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291
test.skip('update: required and optional params', async () => {
- const response = await client.alerting.destinations.webhooks.update(
- 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
- {
- account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- name: 'Slack Webhook',
- url: 'https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd',
- secret: 'secret',
- },
- );
+ const response = await client.alerting.destinations.webhooks.update('b115d5ec15c641ee8b7692c449b5227b', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ name: 'Slack Webhook',
+ url: 'https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd',
+ secret: 'secret',
+ });
});
test('list: only required params', async () => {
@@ -88,10 +82,9 @@ describe('resource webhooks', () => {
});
test('delete: only required params', async () => {
- const responsePromise = client.alerting.destinations.webhooks.delete(
- 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
- { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- );
+ const responsePromise = client.alerting.destinations.webhooks.delete('b115d5ec15c641ee8b7692c449b5227b', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -102,18 +95,16 @@ describe('resource webhooks', () => {
});
test('delete: required and optional params', async () => {
- const response = await client.alerting.destinations.webhooks.delete(
- 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
- { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- );
+ const response = await client.alerting.destinations.webhooks.delete('b115d5ec15c641ee8b7692c449b5227b', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ });
});
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291
test.skip('get: only required params', async () => {
- const responsePromise = client.alerting.destinations.webhooks.get(
- 'b115d5ec-15c6-41ee-8b76-92c449b5227b',
- { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- );
+ const responsePromise = client.alerting.destinations.webhooks.get('b115d5ec15c641ee8b7692c449b5227b', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -125,7 +116,7 @@ describe('resource webhooks', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291
test.skip('get: required and optional params', async () => {
- const response = await client.alerting.destinations.webhooks.get('b115d5ec-15c6-41ee-8b76-92c449b5227b', {
+ const response = await client.alerting.destinations.webhooks.get('b115d5ec15c641ee8b7692c449b5227b', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
});
diff --git a/tests/api-resources/alerting/policies.test.ts b/tests/api-resources/alerting/policies.test.ts
index aed5640624..3de56f13b7 100644
--- a/tests/api-resources/alerting/policies.test.ts
+++ b/tests/api-resources/alerting/policies.test.ts
@@ -35,9 +35,9 @@ describe('resource policies', () => {
alert_type: 'universal_ssl_event_type',
enabled: true,
mechanisms: {
- email: [{ id: 'test@example.com' }],
- pagerduty: [{ id: 'e8133a15-00a4-4d69-aec1-32f70c51f6e5' }],
- webhooks: [{ id: '14cc1190-5d2b-4b98-a696-c424cb2ad05f' }],
+ email: [{ id: 'id' }],
+ pagerduty: [{ id: 'f174e90afafe4643bbbc4a0ed4fc8415' }],
+ webhooks: [{ id: 'f174e90afafe4643bbbc4a0ed4fc8415' }],
},
name: 'SSL Notification Event Policy',
alert_interval: '30m',
@@ -91,7 +91,7 @@ describe('resource policies', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4274
test.skip('update: only required params', async () => {
- const responsePromise = client.alerting.policies.update('0da2b59e-f118-439d-8097-bdfb215203c9', {
+ const responsePromise = client.alerting.policies.update('0da2b59ef118439d8097bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
const rawResponse = await responsePromise.asResponse();
@@ -105,7 +105,7 @@ describe('resource policies', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4274
test.skip('update: required and optional params', async () => {
- const response = await client.alerting.policies.update('0da2b59e-f118-439d-8097-bdfb215203c9', {
+ const response = await client.alerting.policies.update('0da2b59ef118439d8097bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
alert_interval: '30m',
alert_type: 'universal_ssl_event_type',
@@ -156,9 +156,9 @@ describe('resource policies', () => {
zones: ['string'],
},
mechanisms: {
- email: [{ id: 'test@example.com' }],
- pagerduty: [{ id: 'e8133a15-00a4-4d69-aec1-32f70c51f6e5' }],
- webhooks: [{ id: '14cc1190-5d2b-4b98-a696-c424cb2ad05f' }],
+ email: [{ id: 'id' }],
+ pagerduty: [{ id: 'f174e90afafe4643bbbc4a0ed4fc8415' }],
+ webhooks: [{ id: 'f174e90afafe4643bbbc4a0ed4fc8415' }],
},
name: 'SSL Notification Event Policy',
});
@@ -180,7 +180,7 @@ describe('resource policies', () => {
});
test('delete: only required params', async () => {
- const responsePromise = client.alerting.policies.delete('0da2b59e-f118-439d-8097-bdfb215203c9', {
+ const responsePromise = client.alerting.policies.delete('0da2b59ef118439d8097bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
const rawResponse = await responsePromise.asResponse();
@@ -193,14 +193,14 @@ describe('resource policies', () => {
});
test('delete: required and optional params', async () => {
- const response = await client.alerting.policies.delete('0da2b59e-f118-439d-8097-bdfb215203c9', {
+ const response = await client.alerting.policies.delete('0da2b59ef118439d8097bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
});
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4274
test.skip('get: only required params', async () => {
- const responsePromise = client.alerting.policies.get('0da2b59e-f118-439d-8097-bdfb215203c9', {
+ const responsePromise = client.alerting.policies.get('0da2b59ef118439d8097bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
const rawResponse = await responsePromise.asResponse();
@@ -214,7 +214,7 @@ describe('resource policies', () => {
// prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4274
test.skip('get: required and optional params', async () => {
- const response = await client.alerting.policies.get('0da2b59e-f118-439d-8097-bdfb215203c9', {
+ const response = await client.alerting.policies.get('0da2b59ef118439d8097bdfb215203c9', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
});
diff --git a/tests/api-resources/pages/projects/projects.test.ts b/tests/api-resources/pages/projects/projects.test.ts
index 2057a0124d..41a92b2403 100644
--- a/tests/api-resources/pages/projects/projects.test.ts
+++ b/tests/api-resources/pages/projects/projects.test.ts
@@ -115,7 +115,11 @@ describe('resource projects', () => {
});
test('list: required and optional params', async () => {
- const response = await client.pages.projects.list({ account_id: '023e105f4ecef8ad9ca31a8372d0c353' });
+ const response = await client.pages.projects.list({
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ page: 1,
+ per_page: 10,
+ });
});
test('delete: only required params', async () => {
diff --git a/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts b/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts
index c3238ed19b..597bcca970 100644
--- a/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts
+++ b/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts
@@ -11,7 +11,12 @@ const client = new Cloudflare({
describe('resource connectivityPrecheck', () => {
test('source: only required params', async () => {
- const responsePromise = client.r2.superSlurper.connectivityPrecheck.source({ account_id: 'account_id' });
+ const responsePromise = client.r2.superSlurper.connectivityPrecheck.source({
+ account_id: 'account_id',
+ bucket: 'bucket',
+ secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
+ vendor: 's3',
+ });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -25,14 +30,21 @@ describe('resource connectivityPrecheck', () => {
const response = await client.r2.superSlurper.connectivityPrecheck.source({
account_id: 'account_id',
bucket: 'bucket',
- endpoint: 'endpoint',
secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
vendor: 's3',
+ endpoint: 'endpoint',
+ pathPrefix: 'pathPrefix',
+ region: 'region',
});
});
test('target: only required params', async () => {
- const responsePromise = client.r2.superSlurper.connectivityPrecheck.target({ account_id: 'account_id' });
+ const responsePromise = client.r2.superSlurper.connectivityPrecheck.target({
+ account_id: 'account_id',
+ bucket: 'bucket',
+ secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
+ vendor: 'r2',
+ });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -46,9 +58,9 @@ describe('resource connectivityPrecheck', () => {
const response = await client.r2.superSlurper.connectivityPrecheck.target({
account_id: 'account_id',
bucket: 'bucket',
- jurisdiction: 'default',
secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
vendor: 'r2',
+ jurisdiction: 'default',
});
});
});
diff --git a/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts b/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts
index 8376af108a..e2806bfb82 100644
--- a/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts
+++ b/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts
@@ -27,15 +27,17 @@ describe('resource jobs', () => {
overwrite: true,
source: {
bucket: 'bucket',
- endpoint: 'endpoint',
secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
vendor: 's3',
+ endpoint: 'endpoint',
+ pathPrefix: 'pathPrefix',
+ region: 'region',
},
target: {
bucket: 'bucket',
- jurisdiction: 'default',
secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' },
vendor: 'r2',
+ jurisdiction: 'default',
},
});
});
diff --git a/tests/api-resources/workers/scripts/versions.test.ts b/tests/api-resources/workers/scripts/versions.test.ts
index 82c89f8328..437f382fd7 100644
--- a/tests/api-resources/workers/scripts/versions.test.ts
+++ b/tests/api-resources/workers/scripts/versions.test.ts
@@ -31,7 +31,11 @@ describe('resource versions', () => {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
metadata: {
main_module: 'worker.js',
- annotations: { 'workers/message': 'Fixed worker code.', 'workers/tag': 'workers/tag' },
+ annotations: {
+ 'workers/alias': 'staging',
+ 'workers/message': 'Fixed worker code.',
+ 'workers/tag': 'workers/tag',
+ },
bindings: [{ name: 'MY_ENV_VAR', text: 'my_data', type: 'plain_text' }],
compatibility_date: '2021-01-01',
compatibility_flags: ['nodejs_compat'],
From d70b57dbc9635cca506fa164e0782687b843bb6a Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 2 Oct 2025 23:03:18 +0000
Subject: [PATCH 069/451] chore(api): update composite API spec
---
.stats.yml | 6 +-
api.md | 174 +-
scripts/detect-breaking-changes | 19 -
.../cloudforce-one/threat-events/index.ts | 6 +-
.../threat-events/indicator-types.ts | 48 +-
.../threat-events/threat-events.ts | 8 +-
src/resources/custom-pages.ts | 48 +-
.../email-security/investigate/investigate.ts | 46 +
src/resources/kv/index.ts | 3 +-
src/resources/kv/kv.ts | 6 +-
src/resources/kv/namespaces/index.ts | 5 +-
src/resources/kv/namespaces/keys.ts | 139 +-
src/resources/kv/namespaces/metadata.ts | 4 +-
src/resources/kv/namespaces/namespaces.ts | 164 +-
src/resources/kv/namespaces/values.ts | 27 +-
.../leaked-credential-checks/detections.ts | 240 +--
.../leaked-credential-checks/index.ts | 13 +-
.../leaked-credential-checks.ts | 121 +-
src/resources/logs/control/cmb/cmb.ts | 18 +-
src/resources/logs/control/cmb/config.ts | 120 +-
src/resources/logs/control/cmb/index.ts | 9 +-
src/resources/logs/control/control.ts | 16 +-
src/resources/logs/control/index.ts | 8 +-
src/resources/logs/control/retention.ts | 91 +-
src/resources/logs/index.ts | 4 +-
src/resources/logs/logs.ts | 12 +-
src/resources/logs/rayid.ts | 61 +-
src/resources/logs/received/fields.ts | 34 +-
src/resources/logs/received/index.ts | 4 +-
src/resources/logs/received/received.ts | 104 +-
.../pages/projects/deployments/deployments.ts | 66 +
src/resources/pages/projects/projects.ts | 547 +++++-
src/resources/pipelines.ts | 138 +-
src/resources/queues/consumers.ts | 35 -
src/resources/queues/index.ts | 19 +-
src/resources/queues/messages.ts | 217 +--
src/resources/queues/queues.ts | 40 +-
src/resources/queues/subscriptions.ts | 871 +---------
src/resources/workers/observability/index.ts | 12 +-
.../workers/observability/observability.ts | 26 +-
.../workers/observability/telemetry.ts | 1538 +----------------
src/resources/workflows/index.ts | 23 +-
src/resources/workflows/instances/events.ts | 40 +-
src/resources/workflows/instances/index.ts | 18 +-
.../workflows/instances/instances.ts | 416 +----
src/resources/workflows/instances/status.ts | 54 +-
src/resources/workflows/versions.ts | 87 +-
src/resources/workflows/workflows.ts | 274 +--
src/resources/zero-trust/devices/dex-tests.ts | 80 +-
src/resources/zero-trust/dex/colos.ts | 17 +-
src/resources/zero-trust/dex/dex.ts | 5 +
.../dex/fleet-status/fleet-status.ts | 75 +-
.../zero-trust/dex/fleet-status/index.ts | 1 +
src/resources/zero-trust/dex/index.ts | 1 +
.../threat-events/indicator-types.test.ts | 33 -
.../api-resources/kv/namespaces/keys.test.ts | 31 +-
.../kv/namespaces/namespaces.test.ts | 33 +-
.../kv/namespaces/values.test.ts | 3 +-
.../detections.test.ts | 98 --
.../leaked-credential-checks.test.ts | 49 -
.../logs/control/cmb/config.test.ts | 71 -
.../logs/control/retention.test.ts | 49 -
tests/api-resources/logs/rayid.test.ts | 33 -
.../logs/received/fields.test.ts | 27 -
.../logs/received/received.test.ts | 38 -
.../projects/deployments/deployments.test.ts | 14 +-
.../pages/projects/projects.test.ts | 64 +-
tests/api-resources/pipelines.test.ts | 20 +-
tests/api-resources/queues/consumers.test.ts | 23 -
tests/api-resources/queues/messages.test.ts | 43 -
.../queues/subscriptions.test.ts | 101 --
.../workers/observability/telemetry.test.ts | 110 --
.../workflows/instances/events.test.ts | 32 -
.../workflows/instances/instances.test.ts | 89 -
.../workflows/instances/status.test.ts | 33 -
.../api-resources/workflows/versions.test.ts | 50 -
.../api-resources/workflows/workflows.test.ts | 85 -
.../zero-trust/devices/dex-tests.test.ts | 8 +-
78 files changed, 1094 insertions(+), 6201 deletions(-)
delete mode 100644 tests/api-resources/cloudforce-one/threat-events/indicator-types.test.ts
delete mode 100644 tests/api-resources/leaked-credential-checks/detections.test.ts
delete mode 100644 tests/api-resources/leaked-credential-checks/leaked-credential-checks.test.ts
delete mode 100644 tests/api-resources/logs/control/cmb/config.test.ts
delete mode 100644 tests/api-resources/logs/control/retention.test.ts
delete mode 100644 tests/api-resources/logs/rayid.test.ts
delete mode 100644 tests/api-resources/logs/received/fields.test.ts
delete mode 100644 tests/api-resources/logs/received/received.test.ts
delete mode 100644 tests/api-resources/queues/subscriptions.test.ts
delete mode 100644 tests/api-resources/workers/observability/telemetry.test.ts
delete mode 100644 tests/api-resources/workflows/instances/events.test.ts
delete mode 100644 tests/api-resources/workflows/instances/instances.test.ts
delete mode 100644 tests/api-resources/workflows/instances/status.test.ts
delete mode 100644 tests/api-resources/workflows/versions.test.ts
delete mode 100644 tests/api-resources/workflows/workflows.test.ts
diff --git a/.stats.yml b/.stats.yml
index 0a983f097f..76df3072dc 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
-configured_endpoints: 1822
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7492bc33f84221ee63fe654c22680333788bfd2dfe8985c58f9d3db555ffca2b.yml
-openapi_spec_hash: b454db8aa8af2160a780a5b69445f3a4
+configured_endpoints: 1784
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dc74d0ad57a48a9c661dba02d85a87e2a3d49a5e28dfadfe220d121dc8f923a3.yml
+openapi_spec_hash: 74feca1304da3345536352544a3d4def
config_hash: 107e0f1f8a98b007260b319226b88b3c
diff --git a/api.md b/api.md
index 866462c86c..4df6e7455e 100644
--- a/api.md
+++ b/api.md
@@ -1715,61 +1715,16 @@ Methods:
### Retention
-Types:
-
-- RetentionCreateResponse
-- RetentionGetResponse
-
-Methods:
-
-- client.logs.control.retention.create({ ...params }) -> RetentionCreateResponse | null
-- client.logs.control.retention.get({ ...params }) -> RetentionGetResponse | null
-
### Cmb
#### Config
-Types:
-
-- CmbConfig
-- ConfigDeleteResponse
-
-Methods:
-
-- client.logs.control.cmb.config.create({ ...params }) -> CmbConfig | null
-- client.logs.control.cmb.config.delete({ ...params }) -> ConfigDeleteResponse | null
-- client.logs.control.cmb.config.get({ ...params }) -> CmbConfig | null
-
## RayID
-Types:
-
-- RayIDGetResponse
-
-Methods:
-
-- client.logs.RayID.get(RayID, { ...params }) -> RayIDGetResponse
-
## Received
-Types:
-
-- ReceivedGetResponse
-
-Methods:
-
-- client.logs.received.get({ ...params }) -> ReceivedGetResponse
-
### Fields
-Types:
-
-- FieldGetResponse
-
-Methods:
-
-- client.logs.received.fields.get({ ...params }) -> FieldGetResponse
-
# OriginTLSClientAuth
Types:
@@ -2259,18 +2214,6 @@ Methods:
### Telemetry
-Types:
-
-- TelemetryKeysResponse
-- TelemetryQueryResponse
-- TelemetryValuesResponse
-
-Methods:
-
-- client.workers.observability.telemetry.keys({ ...params }) -> TelemetryKeysResponsesSinglePage
-- client.workers.observability.telemetry.query({ ...params }) -> TelemetryQueryResponse
-- client.workers.observability.telemetry.values({ ...params }) -> TelemetryValuesResponsesSinglePage
-
# KV
## Namespaces
@@ -2278,19 +2221,18 @@ Methods:
Types:
- Namespace
+- NamespaceUpdateResponse
- NamespaceDeleteResponse
- NamespaceBulkDeleteResponse
-- NamespaceBulkGetResponse
- NamespaceBulkUpdateResponse
Methods:
- client.kv.namespaces.create({ ...params }) -> Namespace
-- client.kv.namespaces.update(namespaceId, { ...params }) -> Namespace
+- client.kv.namespaces.update(namespaceId, { ...params }) -> NamespaceUpdateResponse | null
- client.kv.namespaces.list({ ...params }) -> NamespacesV4PagePaginationArray
- client.kv.namespaces.delete(namespaceId, { ...params }) -> NamespaceDeleteResponse | null
- client.kv.namespaces.bulkDelete(namespaceId, [ ...body ]) -> NamespaceBulkDeleteResponse | null
-- client.kv.namespaces.bulkGet(namespaceId, { ...params }) -> NamespaceBulkGetResponse | null
- client.kv.namespaces.bulkUpdate(namespaceId, [ ...body ]) -> NamespaceBulkUpdateResponse | null
- client.kv.namespaces.get(namespaceId, { ...params }) -> Namespace
@@ -2300,14 +2242,12 @@ Types:
- Key
- KeyBulkDeleteResponse
-- KeyBulkGetResponse
- KeyBulkUpdateResponse
Methods:
- client.kv.namespaces.keys.list(namespaceId, { ...params }) -> KeysCursorPaginationAfter
- client.kv.namespaces.keys.bulkDelete(namespaceId, [ ...body ]) -> KeyBulkDeleteResponse | null
-- client.kv.namespaces.keys.bulkGet(namespaceId, { ...params }) -> KeyBulkGetResponse | null
- client.kv.namespaces.keys.bulkUpdate(namespaceId, [ ...body ]) -> KeyBulkUpdateResponse | null
### Metadata
@@ -2376,16 +2316,12 @@ Methods:
Types:
- MessageAckResponse
-- MessageBulkPushResponse
- MessagePullResponse
-- MessagePushResponse
Methods:
- client.queues.messages.ack(queueId, { ...params }) -> MessageAckResponse
-- client.queues.messages.bulkPush(queueId, { ...params }) -> MessageBulkPushResponse
-- client.queues.messages.pull(queueId, { ...params }) -> MessagePullResponse
-- client.queues.messages.push(queueId, { ...params }) -> MessagePushResponse
+- client.queues.messages.pull(queueId, { ...params }) -> MessagePullResponsesSinglePage
## Purge
@@ -2411,24 +2347,9 @@ Methods:
- client.queues.consumers.update(queueId, consumerId, { ...params }) -> Consumer
- client.queues.consumers.list(queueId, { ...params }) -> ConsumersSinglePage
- client.queues.consumers.delete(queueId, consumerId, { ...params }) -> ConsumerDeleteResponse
-- client.queues.consumers.get(queueId, consumerId, { ...params }) -> Consumer
## Subscriptions
-Types:
-
-- SubscriptionCreateResponse
-- SubscriptionUpdateResponse
-- SubscriptionListResponse
-- SubscriptionDeleteResponse
-
-Methods:
-
-- client.queues.subscriptions.create({ ...params }) -> SubscriptionCreateResponse
-- client.queues.subscriptions.update(subscriptionId, { ...params }) -> SubscriptionUpdateResponse
-- client.queues.subscriptions.list({ ...params }) -> SubscriptionListResponsesV4PagePaginationArray
-- client.queues.subscriptions.delete(subscriptionId, { ...params }) -> SubscriptionDeleteResponse
-
# APIGateway
## Configurations
@@ -5482,11 +5403,12 @@ Types:
- LiveStat
- FleetStatusLiveResponse
+- FleetStatusOverTimeResponse
Methods:
- client.zeroTrust.dex.fleetStatus.live({ ...params }) -> FleetStatusLiveResponse
-- client.zeroTrust.dex.fleetStatus.overTime({ ...params }) -> void
+- client.zeroTrust.dex.fleetStatus.overTime({ ...params }) -> FleetStatusOverTimeResponse
#### Devices
@@ -8083,14 +8005,6 @@ Methods:
### IndicatorTypes
-Types:
-
-- IndicatorTypeListResponse
-
-Methods:
-
-- client.cloudforceOne.threatEvents.indicatorTypes.list({ ...params }) -> IndicatorTypeListResponse
-
### Raw
Types:
@@ -8363,68 +8277,14 @@ Methods:
# Workflows
-Types:
-
-- WorkflowUpdateResponse
-- WorkflowListResponse
-- WorkflowDeleteResponse
-- WorkflowGetResponse
-
-Methods:
-
-- client.workflows.update(workflowName, { ...params }) -> WorkflowUpdateResponse
-- client.workflows.list({ ...params }) -> WorkflowListResponsesV4PagePaginationArray
-- client.workflows.delete(workflowName, { ...params }) -> WorkflowDeleteResponse
-- client.workflows.get(workflowName, { ...params }) -> WorkflowGetResponse
-
## Instances
-Types:
-
-- InstanceCreateResponse
-- InstanceListResponse
-- InstanceBulkResponse
-- InstanceGetResponse
-
-Methods:
-
-- client.workflows.instances.create(workflowName, { ...params }) -> InstanceCreateResponse
-- client.workflows.instances.list(workflowName, { ...params }) -> InstanceListResponsesV4PagePaginationArray
-- client.workflows.instances.bulk(workflowName, [ ...body ]) -> InstanceBulkResponsesSinglePage
-- client.workflows.instances.get(workflowName, instanceId, { ...params }) -> InstanceGetResponse
-
### Status
-Types:
-
-- StatusEditResponse
-
-Methods:
-
-- client.workflows.instances.status.edit(workflowName, instanceId, { ...params }) -> StatusEditResponse
-
### Events
-Types:
-
-- EventCreateResponse
-
-Methods:
-
-- client.workflows.instances.events.create(workflowName, instanceId, eventType, { ...params }) -> EventCreateResponse
-
## Versions
-Types:
-
-- VersionListResponse
-- VersionGetResponse
-
-Methods:
-
-- client.workflows.versions.list(workflowName, { ...params }) -> VersionListResponsesV4PagePaginationArray
-- client.workflows.versions.get(workflowName, versionId, { ...params }) -> VersionGetResponse
-
# ResourceSharing
Types:
@@ -8479,32 +8339,8 @@ Methods:
# LeakedCredentialChecks
-Types:
-
-- LeakedCredentialCheckCreateResponse
-- LeakedCredentialCheckGetResponse
-
-Methods:
-
-- client.leakedCredentialChecks.create({ ...params }) -> LeakedCredentialCheckCreateResponse
-- client.leakedCredentialChecks.get({ ...params }) -> LeakedCredentialCheckGetResponse
-
## Detections
-Types:
-
-- DetectionCreateResponse
-- DetectionUpdateResponse
-- DetectionListResponse
-- DetectionDeleteResponse
-
-Methods:
-
-- client.leakedCredentialChecks.detections.create({ ...params }) -> DetectionCreateResponse
-- client.leakedCredentialChecks.detections.update(detectionId, { ...params }) -> DetectionUpdateResponse
-- client.leakedCredentialChecks.detections.list({ ...params }) -> DetectionListResponsesSinglePage
-- client.leakedCredentialChecks.detections.delete(detectionId, { ...params }) -> DetectionDeleteResponse
-
# ContentScanning
Types:
diff --git a/scripts/detect-breaking-changes b/scripts/detect-breaking-changes
index 4580a22d2d..8c8c3ce4bf 100755
--- a/scripts/detect-breaking-changes
+++ b/scripts/detect-breaking-changes
@@ -143,14 +143,6 @@ TEST_PATHS=(
tests/api-resources/logpush/jobs.test.ts
tests/api-resources/logpush/ownership.test.ts
tests/api-resources/logpush/validate.test.ts
- tests/api-resources/logs/logs.test.ts
- tests/api-resources/logs/control/control.test.ts
- tests/api-resources/logs/control/retention.test.ts
- tests/api-resources/logs/control/cmb/cmb.test.ts
- tests/api-resources/logs/control/cmb/config.test.ts
- tests/api-resources/logs/rayid.test.ts
- tests/api-resources/logs/received/received.test.ts
- tests/api-resources/logs/received/fields.test.ts
tests/api-resources/origin-tls-client-auth/origin-tls-client-auth.test.ts
tests/api-resources/origin-tls-client-auth/hostnames/hostnames.test.ts
tests/api-resources/origin-tls-client-auth/hostnames/certificates.test.ts
@@ -191,8 +183,6 @@ TEST_PATHS=(
tests/api-resources/workers/account-settings.test.ts
tests/api-resources/workers/domains.test.ts
tests/api-resources/workers/subdomains.test.ts
- tests/api-resources/workers/observability/observability.test.ts
- tests/api-resources/workers/observability/telemetry.test.ts
tests/api-resources/kv/kv.test.ts
tests/api-resources/kv/namespaces/namespaces.test.ts
tests/api-resources/kv/namespaces/keys.test.ts
@@ -205,7 +195,6 @@ TEST_PATHS=(
tests/api-resources/queues/messages.test.ts
tests/api-resources/queues/purge.test.ts
tests/api-resources/queues/consumers.test.ts
- tests/api-resources/queues/subscriptions.test.ts
tests/api-resources/api-gateway/api-gateway.test.ts
tests/api-resources/api-gateway/configurations.test.ts
tests/api-resources/api-gateway/discovery/discovery.test.ts
@@ -684,7 +673,6 @@ TEST_PATHS=(
tests/api-resources/cloudforce-one/threat-events/categories.test.ts
tests/api-resources/cloudforce-one/threat-events/countries.test.ts
tests/api-resources/cloudforce-one/threat-events/datasets/datasets.test.ts
- tests/api-resources/cloudforce-one/threat-events/indicator-types.test.ts
tests/api-resources/cloudforce-one/threat-events/raw.test.ts
tests/api-resources/cloudforce-one/threat-events/relate.test.ts
tests/api-resources/cloudforce-one/threat-events/tags.test.ts
@@ -708,16 +696,9 @@ TEST_PATHS=(
tests/api-resources/botnet-feed/configs/configs.test.ts
tests/api-resources/botnet-feed/configs/asn.test.ts
tests/api-resources/security-txt.test.ts
- tests/api-resources/workflows/workflows.test.ts
- tests/api-resources/workflows/instances/instances.test.ts
- tests/api-resources/workflows/instances/status.test.ts
- tests/api-resources/workflows/instances/events.test.ts
- tests/api-resources/workflows/versions.test.ts
tests/api-resources/resource-sharing/resource-sharing.test.ts
tests/api-resources/resource-sharing/recipients.test.ts
tests/api-resources/resource-sharing/resources.test.ts
- tests/api-resources/leaked-credential-checks/leaked-credential-checks.test.ts
- tests/api-resources/leaked-credential-checks/detections.test.ts
tests/api-resources/content-scanning/content-scanning.test.ts
tests/api-resources/content-scanning/payloads.test.ts
tests/api-resources/content-scanning/settings.test.ts
diff --git a/src/resources/cloudforce-one/threat-events/index.ts b/src/resources/cloudforce-one/threat-events/index.ts
index 02c8bab160..d797682ddd 100644
--- a/src/resources/cloudforce-one/threat-events/index.ts
+++ b/src/resources/cloudforce-one/threat-events/index.ts
@@ -36,11 +36,7 @@ export {
type EventTagCreateParams,
type EventTagDeleteParams,
} from './event-tags';
-export {
- IndicatorTypes,
- type IndicatorTypeListResponse,
- type IndicatorTypeListParams,
-} from './indicator-types';
+export { IndicatorTypes } from './indicator-types';
export { Insights } from './insights';
export { Raw, type RawEditResponse, type RawGetResponse, type RawEditParams, type RawGetParams } from './raw';
export { Relate, type RelateDeleteResponse, type RelateDeleteParams } from './relate';
diff --git a/src/resources/cloudforce-one/threat-events/indicator-types.ts b/src/resources/cloudforce-one/threat-events/indicator-types.ts
index 7fa1b77a16..99e5ccc453 100644
--- a/src/resources/cloudforce-one/threat-events/indicator-types.ts
+++ b/src/resources/cloudforce-one/threat-events/indicator-types.ts
@@ -1,51 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../resource';
-import * as Core from '../../../core';
-export class IndicatorTypes extends APIResource {
- /**
- * Lists all indicator types
- *
- * @example
- * ```ts
- * const indicatorTypes =
- * await client.cloudforceOne.threatEvents.indicatorTypes.list(
- * { account_id: 'account_id' },
- * );
- * ```
- */
- list(
- params: IndicatorTypeListParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id } = params;
- return this._client.get(`/accounts/${account_id}/cloudforce-one/events/indicatorTypes`, options);
- }
-}
-
-export interface IndicatorTypeListResponse {
- items: IndicatorTypeListResponse.Items;
-
- type: string;
-}
-
-export namespace IndicatorTypeListResponse {
- export interface Items {
- type: string;
- }
-}
-
-export interface IndicatorTypeListParams {
- /**
- * Account ID.
- */
- account_id: string;
-}
-
-export declare namespace IndicatorTypes {
- export {
- type IndicatorTypeListResponse as IndicatorTypeListResponse,
- type IndicatorTypeListParams as IndicatorTypeListParams,
- };
-}
+export class IndicatorTypes extends APIResource {}
diff --git a/src/resources/cloudforce-one/threat-events/threat-events.ts b/src/resources/cloudforce-one/threat-events/threat-events.ts
index 119f0b95d8..d23c37b5db 100644
--- a/src/resources/cloudforce-one/threat-events/threat-events.ts
+++ b/src/resources/cloudforce-one/threat-events/threat-events.ts
@@ -31,7 +31,7 @@ import {
EventTags,
} from './event-tags';
import * as IndicatorTypesAPI from './indicator-types';
-import { IndicatorTypeListParams, IndicatorTypeListResponse, IndicatorTypes } from './indicator-types';
+import { IndicatorTypes } from './indicator-types';
import * as InsightsAPI from './insights';
import { Insights } from './insights';
import * as RawAPI from './raw';
@@ -821,11 +821,7 @@ export declare namespace ThreatEvents {
type DatasetRawParams as DatasetRawParams,
};
- export {
- IndicatorTypes as IndicatorTypes,
- type IndicatorTypeListResponse as IndicatorTypeListResponse,
- type IndicatorTypeListParams as IndicatorTypeListParams,
- };
+ export { IndicatorTypes as IndicatorTypes };
export {
RawAPIRaw as Raw,
diff --git a/src/resources/custom-pages.ts b/src/resources/custom-pages.ts
index 6bd1b13cf7..4c861b1e41 100644
--- a/src/resources/custom-pages.ts
+++ b/src/resources/custom-pages.ts
@@ -24,13 +24,15 @@ export class CustomPages extends APIResource {
*/
update(
identifier:
- | 'waf_block'
- | 'ip_block'
- | 'country_challenge'
- | '500_errors'
| '1000_errors'
+ | '500_errors'
+ | 'basic_challenge'
+ | 'country_challenge'
+ | 'ip_block'
| 'managed_challenge'
- | 'ratelimit_block',
+ | 'ratelimit_block'
+ | 'under_attack'
+ | 'waf_block',
params: CustomPageUpdateParams,
options?: Core.RequestOptions,
): Core.APIPromise {
@@ -123,36 +125,42 @@ export class CustomPages extends APIResource {
*/
get(
identifier:
- | 'waf_block'
- | 'ip_block'
- | 'country_challenge'
- | '500_errors'
| '1000_errors'
+ | '500_errors'
+ | 'basic_challenge'
+ | 'country_challenge'
+ | 'ip_block'
| 'managed_challenge'
- | 'ratelimit_block',
+ | 'ratelimit_block'
+ | 'under_attack'
+ | 'waf_block',
params?: CustomPageGetParams,
options?: Core.RequestOptions,
): Core.APIPromise;
get(
identifier:
- | 'waf_block'
- | 'ip_block'
- | 'country_challenge'
- | '500_errors'
| '1000_errors'
+ | '500_errors'
+ | 'basic_challenge'
+ | 'country_challenge'
+ | 'ip_block'
| 'managed_challenge'
- | 'ratelimit_block',
+ | 'ratelimit_block'
+ | 'under_attack'
+ | 'waf_block',
options?: Core.RequestOptions,
): Core.APIPromise;
get(
identifier:
- | 'waf_block'
- | 'ip_block'
- | 'country_challenge'
- | '500_errors'
| '1000_errors'
+ | '500_errors'
+ | 'basic_challenge'
+ | 'country_challenge'
+ | 'ip_block'
| 'managed_challenge'
- | 'ratelimit_block',
+ | 'ratelimit_block'
+ | 'under_attack'
+ | 'waf_block',
params: CustomPageGetParams | Core.RequestOptions = {},
options?: Core.RequestOptions,
): Core.APIPromise {
diff --git a/src/resources/email-security/investigate/investigate.ts b/src/resources/email-security/investigate/investigate.ts
index a15d9630ba..7093627a0f 100644
--- a/src/resources/email-security/investigate/investigate.ts
+++ b/src/resources/email-security/investigate/investigate.ts
@@ -199,10 +199,33 @@ export namespace InvestigateListResponse {
}
export interface Finding {
+ attachment?: string | null;
+
detail?: string | null;
+ detection?:
+ | 'MALICIOUS'
+ | 'MALICIOUS-BEC'
+ | 'SUSPICIOUS'
+ | 'SPOOF'
+ | 'SPAM'
+ | 'BULK'
+ | 'ENCRYPTED'
+ | 'EXTERNAL'
+ | 'UNKNOWN'
+ | 'NONE'
+ | null;
+
+ field?: string | null;
+
name?: string | null;
+ portion?: string | null;
+
+ reason?: string | null;
+
+ score?: number | null;
+
value?: string | null;
}
@@ -321,10 +344,33 @@ export namespace InvestigateGetResponse {
}
export interface Finding {
+ attachment?: string | null;
+
detail?: string | null;
+ detection?:
+ | 'MALICIOUS'
+ | 'MALICIOUS-BEC'
+ | 'SUSPICIOUS'
+ | 'SPOOF'
+ | 'SPAM'
+ | 'BULK'
+ | 'ENCRYPTED'
+ | 'EXTERNAL'
+ | 'UNKNOWN'
+ | 'NONE'
+ | null;
+
+ field?: string | null;
+
name?: string | null;
+ portion?: string | null;
+
+ reason?: string | null;
+
+ score?: number | null;
+
value?: string | null;
}
diff --git a/src/resources/kv/index.ts b/src/resources/kv/index.ts
index 6b8512b78a..a8c5f15acb 100644
--- a/src/resources/kv/index.ts
+++ b/src/resources/kv/index.ts
@@ -5,16 +5,15 @@ export {
NamespacesV4PagePaginationArray,
Namespaces,
type Namespace,
+ type NamespaceUpdateResponse,
type NamespaceDeleteResponse,
type NamespaceBulkDeleteResponse,
- type NamespaceBulkGetResponse,
type NamespaceBulkUpdateResponse,
type NamespaceCreateParams,
type NamespaceUpdateParams,
type NamespaceListParams,
type NamespaceDeleteParams,
type NamespaceBulkDeleteParams,
- type NamespaceBulkGetParams,
type NamespaceBulkUpdateParams,
type NamespaceGetParams,
} from './namespaces/index';
diff --git a/src/resources/kv/kv.ts b/src/resources/kv/kv.ts
index 6edb9e18af..15034b22f4 100644
--- a/src/resources/kv/kv.ts
+++ b/src/resources/kv/kv.ts
@@ -6,8 +6,6 @@ import {
Namespace,
NamespaceBulkDeleteParams,
NamespaceBulkDeleteResponse,
- NamespaceBulkGetParams,
- NamespaceBulkGetResponse,
NamespaceBulkUpdateParams,
NamespaceBulkUpdateResponse,
NamespaceCreateParams,
@@ -16,6 +14,7 @@ import {
NamespaceGetParams,
NamespaceListParams,
NamespaceUpdateParams,
+ NamespaceUpdateResponse,
Namespaces,
NamespacesV4PagePaginationArray,
} from './namespaces/namespaces';
@@ -31,9 +30,9 @@ export declare namespace KV {
export {
Namespaces as Namespaces,
type Namespace as Namespace,
+ type NamespaceUpdateResponse as NamespaceUpdateResponse,
type NamespaceDeleteResponse as NamespaceDeleteResponse,
type NamespaceBulkDeleteResponse as NamespaceBulkDeleteResponse,
- type NamespaceBulkGetResponse as NamespaceBulkGetResponse,
type NamespaceBulkUpdateResponse as NamespaceBulkUpdateResponse,
NamespacesV4PagePaginationArray as NamespacesV4PagePaginationArray,
type NamespaceCreateParams as NamespaceCreateParams,
@@ -41,7 +40,6 @@ export declare namespace KV {
type NamespaceListParams as NamespaceListParams,
type NamespaceDeleteParams as NamespaceDeleteParams,
type NamespaceBulkDeleteParams as NamespaceBulkDeleteParams,
- type NamespaceBulkGetParams as NamespaceBulkGetParams,
type NamespaceBulkUpdateParams as NamespaceBulkUpdateParams,
type NamespaceGetParams as NamespaceGetParams,
};
diff --git a/src/resources/kv/namespaces/index.ts b/src/resources/kv/namespaces/index.ts
index c581632a76..f8b3034d84 100644
--- a/src/resources/kv/namespaces/index.ts
+++ b/src/resources/kv/namespaces/index.ts
@@ -5,11 +5,9 @@ export {
Keys,
type Key,
type KeyBulkDeleteResponse,
- type KeyBulkGetResponse,
type KeyBulkUpdateResponse,
type KeyListParams,
type KeyBulkDeleteParams,
- type KeyBulkGetParams,
type KeyBulkUpdateParams,
} from './keys';
export { Metadata, type MetadataGetResponse, type MetadataGetParams } from './metadata';
@@ -17,16 +15,15 @@ export {
NamespacesV4PagePaginationArray,
Namespaces,
type Namespace,
+ type NamespaceUpdateResponse,
type NamespaceDeleteResponse,
type NamespaceBulkDeleteResponse,
- type NamespaceBulkGetResponse,
type NamespaceBulkUpdateResponse,
type NamespaceCreateParams,
type NamespaceUpdateParams,
type NamespaceListParams,
type NamespaceDeleteParams,
type NamespaceBulkDeleteParams,
- type NamespaceBulkGetParams,
type NamespaceBulkUpdateParams,
type NamespaceGetParams,
} from './namespaces';
diff --git a/src/resources/kv/namespaces/keys.ts b/src/resources/kv/namespaces/keys.ts
index 138942ad57..a4db89243d 100644
--- a/src/resources/kv/namespaces/keys.ts
+++ b/src/resources/kv/namespaces/keys.ts
@@ -52,27 +52,6 @@ export class Keys extends APIResource {
)._thenUnwrap((obj) => obj.result);
}
- /**
- * Retrieve up to 100 KV pairs from the namespace. Keys must contain text-based
- * values. JSON values can optionally be parsed instead of being returned as a
- * string value. Metadata can be included if `withMetadata` is true.
- *
- * @deprecated Please use kv.namespaces.bulk_get instead
- */
- bulkGet(
- namespaceId: string,
- params: KeyBulkGetParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id, ...body } = params;
- return (
- this._client.post(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/bulk/get`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: KeyBulkGetResponse | null }>
- )._thenUnwrap((obj) => obj.result);
- }
-
/**
* Write multiple keys and values at once. Body should be an array of up to 10,000
* key-value pairs to be stored, along with optional expiration information.
@@ -120,12 +99,12 @@ export interface Key {
/**
* Arbitrary JSON that is associated with a key.
*/
- metadata?: unknown;
+ metadata?: { [key: string]: unknown };
}
export interface KeyBulkDeleteResponse {
/**
- * Number of keys successfully updated.
+ * Number of keys successfully updated
*/
successful_key_count?: number;
@@ -135,49 +114,9 @@ export interface KeyBulkDeleteResponse {
unsuccessful_keys?: Array;
}
-export type KeyBulkGetResponse =
- | KeyBulkGetResponse.WorkersKVBulkGetResult
- | KeyBulkGetResponse.WorkersKVBulkGetResultWithMetadata;
-
-export namespace KeyBulkGetResponse {
- export interface WorkersKVBulkGetResult {
- /**
- * Requested keys are paired with their values in an object.
- */
- values?: { [key: string]: string | number | boolean | { [key: string]: unknown } };
- }
-
- export interface WorkersKVBulkGetResultWithMetadata {
- /**
- * Requested keys are paired with their values and metadata in an object.
- */
- values?: { [key: string]: WorkersKVBulkGetResultWithMetadata.Values | null };
- }
-
- export namespace WorkersKVBulkGetResultWithMetadata {
- export interface Values {
- /**
- * The metadata associated with the key.
- */
- metadata: unknown;
-
- /**
- * The value associated with the key.
- */
- value: unknown;
-
- /**
- * Expires the key at a certain time, measured in number of seconds since the UNIX
- * epoch.
- */
- expiration?: number;
- }
- }
-}
-
export interface KeyBulkUpdateResponse {
/**
- * Number of keys successfully updated.
+ * Number of keys successfully updated
*/
successful_key_count?: number;
@@ -189,27 +128,26 @@ export interface KeyBulkUpdateResponse {
export interface KeyListParams extends CursorPaginationAfterParams {
/**
- * Path param: Identifier.
+ * Path param: Identifier
*/
account_id: string;
/**
- * Query param: Limits the number of keys returned in the response. The cursor
- * attribute may be used to iterate over the next batch of keys if there are more
- * than the limit.
+ * Query param: The number of keys to return. The cursor attribute may be used to
+ * iterate over the next batch of keys if there are more than the limit.
*/
limit?: number;
/**
- * Query param: Filters returned keys by a name prefix. Exact matches and any key
- * names that begin with the prefix will be returned.
+ * Query param: A string prefix used to filter down which keys will be returned.
+ * Exact matches and any key names that begin with the prefix will be returned.
*/
prefix?: string;
}
export interface KeyBulkDeleteParams {
/**
- * Path param: Identifier.
+ * Path param: Identifier
*/
account_id: string;
@@ -219,31 +157,9 @@ export interface KeyBulkDeleteParams {
body: Array;
}
-export interface KeyBulkGetParams {
- /**
- * Path param: Identifier.
- */
- account_id: string;
-
- /**
- * Body param: Array of keys to retrieve (maximum of 100).
- */
- keys: Array;
-
- /**
- * Body param: Whether to parse JSON values in the response.
- */
- type?: 'text' | 'json';
-
- /**
- * Body param: Whether to include metadata in the response.
- */
- withMetadata?: boolean;
-}
-
export interface KeyBulkUpdateParams {
/**
- * Path param: Identifier.
+ * Path param: Identifier
*/
account_id: string;
@@ -256,38 +172,39 @@ export interface KeyBulkUpdateParams {
export namespace KeyBulkUpdateParams {
export interface Body {
/**
- * A key's name. The name may be at most 512 bytes. All printable, non-whitespace
- * characters are valid.
+ * Whether or not the server should base64 decode the value before storing it.
+ * Useful for writing values that wouldn't otherwise be valid JSON strings, such as
+ * images.
*/
- key: string;
+ base64?: boolean;
/**
- * A UTF-8 encoded string to be stored, up to 25 MiB in length.
+ * The time, measured in number of seconds since the UNIX epoch, at which the key
+ * should expire.
*/
- value: string;
+ expiration?: number;
/**
- * Indicates whether or not the server should base64 decode the value before
- * storing it. Useful for writing values that wouldn't otherwise be valid JSON
- * strings, such as images.
+ * The number of seconds for which the key should be visible before it expires. At
+ * least 60.
*/
- base64?: boolean;
+ expiration_ttl?: number;
/**
- * Expires the key at a certain time, measured in number of seconds since the UNIX
- * epoch.
+ * A key's name. The name may be at most 512 bytes. All printable, non-whitespace
+ * characters are valid.
*/
- expiration?: number;
+ key?: string;
/**
- * Expires the key after a number of seconds. Must be at least 60.
+ * Arbitrary JSON that is associated with a key.
*/
- expiration_ttl?: number;
+ metadata?: { [key: string]: unknown };
/**
- * Arbitrary JSON that is associated with a key.
+ * A UTF-8 encoded string to be stored, up to 25 MiB in length.
*/
- metadata?: unknown;
+ value?: string;
}
}
@@ -297,12 +214,10 @@ export declare namespace Keys {
export {
type Key as Key,
type KeyBulkDeleteResponse as KeyBulkDeleteResponse,
- type KeyBulkGetResponse as KeyBulkGetResponse,
type KeyBulkUpdateResponse as KeyBulkUpdateResponse,
KeysCursorPaginationAfter as KeysCursorPaginationAfter,
type KeyListParams as KeyListParams,
type KeyBulkDeleteParams as KeyBulkDeleteParams,
- type KeyBulkGetParams as KeyBulkGetParams,
type KeyBulkUpdateParams as KeyBulkUpdateParams,
};
}
diff --git a/src/resources/kv/namespaces/metadata.ts b/src/resources/kv/namespaces/metadata.ts
index 927ba8a17d..5e16f872e9 100644
--- a/src/resources/kv/namespaces/metadata.ts
+++ b/src/resources/kv/namespaces/metadata.ts
@@ -37,11 +37,11 @@ export class Metadata extends APIResource {
/**
* Arbitrary JSON that is associated with a key.
*/
-export type MetadataGetResponse = unknown;
+export type MetadataGetResponse = { [key: string]: unknown };
export interface MetadataGetParams {
/**
- * Identifier.
+ * Identifier
*/
account_id: string;
}
diff --git a/src/resources/kv/namespaces/namespaces.ts b/src/resources/kv/namespaces/namespaces.ts
index df179e53bb..3ec43aa7c5 100644
--- a/src/resources/kv/namespaces/namespaces.ts
+++ b/src/resources/kv/namespaces/namespaces.ts
@@ -7,8 +7,6 @@ import {
Key,
KeyBulkDeleteParams,
KeyBulkDeleteResponse,
- KeyBulkGetParams,
- KeyBulkGetResponse,
KeyBulkUpdateParams,
KeyBulkUpdateResponse,
KeyListParams,
@@ -24,7 +22,7 @@ import {
ValueGetParams,
ValueUpdateParams,
ValueUpdateResponse,
- Values as ValuesAPIValues,
+ Values,
} from './values';
import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../../pagination';
@@ -74,13 +72,13 @@ export class Namespaces extends APIResource {
namespaceId: string,
params: NamespaceUpdateParams,
options?: Core.RequestOptions,
- ): Core.APIPromise {
+ ): Core.APIPromise {
const { account_id, ...body } = params;
return (
this._client.put(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}`, {
body,
...options,
- }) as Core.APIPromise<{ result: Namespace }>
+ }) as Core.APIPromise<{ result: NamespaceUpdateResponse | null }>
)._thenUnwrap((obj) => obj.result);
}
@@ -163,36 +161,6 @@ export class Namespaces extends APIResource {
)._thenUnwrap((obj) => obj.result);
}
- /**
- * Retrieve up to 100 KV pairs from the namespace. Keys must contain text-based
- * values. JSON values can optionally be parsed instead of being returned as a
- * string value. Metadata can be included if `withMetadata` is true.
- *
- * @example
- * ```ts
- * const response = await client.kv.namespaces.bulkGet(
- * '0f2ac74b498b48028cb68387c421e279',
- * {
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * keys: ['My-Key'],
- * },
- * );
- * ```
- */
- bulkGet(
- namespaceId: string,
- params: NamespaceBulkGetParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id, ...body } = params;
- return (
- this._client.post(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/bulk/get`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: NamespaceBulkGetResponse | null }>
- )._thenUnwrap((obj) => obj.result);
- }
-
/**
* Write multiple keys and values at once. Body should be an array of up to 10,000
* key-value pairs to be stored, along with optional expiration information.
@@ -207,7 +175,7 @@ export class Namespaces extends APIResource {
* '0f2ac74b498b48028cb68387c421e279',
* {
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * body: [{ key: 'My-Key', value: 'Some string' }],
+ * body: [{}],
* },
* );
* ```
@@ -272,11 +240,13 @@ export interface Namespace {
supports_url_encoding?: boolean;
}
+export interface NamespaceUpdateResponse {}
+
export interface NamespaceDeleteResponse {}
export interface NamespaceBulkDeleteResponse {
/**
- * Number of keys successfully updated.
+ * Number of keys successfully updated
*/
successful_key_count?: number;
@@ -286,49 +256,9 @@ export interface NamespaceBulkDeleteResponse {
unsuccessful_keys?: Array;
}
-export type NamespaceBulkGetResponse =
- | NamespaceBulkGetResponse.WorkersKVBulkGetResult
- | NamespaceBulkGetResponse.WorkersKVBulkGetResultWithMetadata;
-
-export namespace NamespaceBulkGetResponse {
- export interface WorkersKVBulkGetResult {
- /**
- * Requested keys are paired with their values in an object.
- */
- values?: { [key: string]: string | number | boolean | { [key: string]: unknown } };
- }
-
- export interface WorkersKVBulkGetResultWithMetadata {
- /**
- * Requested keys are paired with their values and metadata in an object.
- */
- values?: { [key: string]: WorkersKVBulkGetResultWithMetadata.Values | null };
- }
-
- export namespace WorkersKVBulkGetResultWithMetadata {
- export interface Values {
- /**
- * The metadata associated with the key.
- */
- metadata: unknown;
-
- /**
- * The value associated with the key.
- */
- value: unknown;
-
- /**
- * Expires the key at a certain time, measured in number of seconds since the UNIX
- * epoch.
- */
- expiration?: number;
- }
- }
-}
-
export interface NamespaceBulkUpdateResponse {
/**
- * Number of keys successfully updated.
+ * Number of keys successfully updated
*/
successful_key_count?: number;
@@ -340,7 +270,7 @@ export interface NamespaceBulkUpdateResponse {
export interface NamespaceCreateParams {
/**
- * Path param: Identifier.
+ * Path param: Identifier
*/
account_id: string;
@@ -352,7 +282,7 @@ export interface NamespaceCreateParams {
export interface NamespaceUpdateParams {
/**
- * Path param: Identifier.
+ * Path param: Identifier
*/
account_id: string;
@@ -364,7 +294,7 @@ export interface NamespaceUpdateParams {
export interface NamespaceListParams extends V4PagePaginationArrayParams {
/**
- * Path param: Identifier.
+ * Path param: Identifier
*/
account_id: string;
@@ -381,14 +311,14 @@ export interface NamespaceListParams extends V4PagePaginationArrayParams {
export interface NamespaceDeleteParams {
/**
- * Identifier.
+ * Identifier
*/
account_id: string;
}
export interface NamespaceBulkDeleteParams {
/**
- * Path param: Identifier.
+ * Path param: Identifier
*/
account_id: string;
@@ -398,31 +328,9 @@ export interface NamespaceBulkDeleteParams {
body: Array;
}
-export interface NamespaceBulkGetParams {
- /**
- * Path param: Identifier.
- */
- account_id: string;
-
- /**
- * Body param: Array of keys to retrieve (maximum of 100).
- */
- keys: Array;
-
- /**
- * Body param: Whether to parse JSON values in the response.
- */
- type?: 'text' | 'json';
-
- /**
- * Body param: Whether to include metadata in the response.
- */
- withMetadata?: boolean;
-}
-
export interface NamespaceBulkUpdateParams {
/**
- * Path param: Identifier.
+ * Path param: Identifier
*/
account_id: string;
@@ -435,44 +343,45 @@ export interface NamespaceBulkUpdateParams {
export namespace NamespaceBulkUpdateParams {
export interface Body {
/**
- * A key's name. The name may be at most 512 bytes. All printable, non-whitespace
- * characters are valid.
+ * Whether or not the server should base64 decode the value before storing it.
+ * Useful for writing values that wouldn't otherwise be valid JSON strings, such as
+ * images.
*/
- key: string;
+ base64?: boolean;
/**
- * A UTF-8 encoded string to be stored, up to 25 MiB in length.
+ * The time, measured in number of seconds since the UNIX epoch, at which the key
+ * should expire.
*/
- value: string;
+ expiration?: number;
/**
- * Indicates whether or not the server should base64 decode the value before
- * storing it. Useful for writing values that wouldn't otherwise be valid JSON
- * strings, such as images.
+ * The number of seconds for which the key should be visible before it expires. At
+ * least 60.
*/
- base64?: boolean;
+ expiration_ttl?: number;
/**
- * Expires the key at a certain time, measured in number of seconds since the UNIX
- * epoch.
+ * A key's name. The name may be at most 512 bytes. All printable, non-whitespace
+ * characters are valid.
*/
- expiration?: number;
+ key?: string;
/**
- * Expires the key after a number of seconds. Must be at least 60.
+ * Arbitrary JSON that is associated with a key.
*/
- expiration_ttl?: number;
+ metadata?: { [key: string]: unknown };
/**
- * Arbitrary JSON that is associated with a key.
+ * A UTF-8 encoded string to be stored, up to 25 MiB in length.
*/
- metadata?: unknown;
+ value?: string;
}
}
export interface NamespaceGetParams {
/**
- * Identifier.
+ * Identifier
*/
account_id: string;
}
@@ -481,14 +390,14 @@ Namespaces.NamespacesV4PagePaginationArray = NamespacesV4PagePaginationArray;
Namespaces.Keys = Keys;
Namespaces.KeysCursorPaginationAfter = KeysCursorPaginationAfter;
Namespaces.Metadata = Metadata;
-Namespaces.Values = ValuesAPIValues;
+Namespaces.Values = Values;
export declare namespace Namespaces {
export {
type Namespace as Namespace,
+ type NamespaceUpdateResponse as NamespaceUpdateResponse,
type NamespaceDeleteResponse as NamespaceDeleteResponse,
type NamespaceBulkDeleteResponse as NamespaceBulkDeleteResponse,
- type NamespaceBulkGetResponse as NamespaceBulkGetResponse,
type NamespaceBulkUpdateResponse as NamespaceBulkUpdateResponse,
NamespacesV4PagePaginationArray as NamespacesV4PagePaginationArray,
type NamespaceCreateParams as NamespaceCreateParams,
@@ -496,7 +405,6 @@ export declare namespace Namespaces {
type NamespaceListParams as NamespaceListParams,
type NamespaceDeleteParams as NamespaceDeleteParams,
type NamespaceBulkDeleteParams as NamespaceBulkDeleteParams,
- type NamespaceBulkGetParams as NamespaceBulkGetParams,
type NamespaceBulkUpdateParams as NamespaceBulkUpdateParams,
type NamespaceGetParams as NamespaceGetParams,
};
@@ -505,12 +413,10 @@ export declare namespace Namespaces {
Keys as Keys,
type Key as Key,
type KeyBulkDeleteResponse as KeyBulkDeleteResponse,
- type KeyBulkGetResponse as KeyBulkGetResponse,
type KeyBulkUpdateResponse as KeyBulkUpdateResponse,
KeysCursorPaginationAfter as KeysCursorPaginationAfter,
type KeyListParams as KeyListParams,
type KeyBulkDeleteParams as KeyBulkDeleteParams,
- type KeyBulkGetParams as KeyBulkGetParams,
type KeyBulkUpdateParams as KeyBulkUpdateParams,
};
@@ -521,7 +427,7 @@ export declare namespace Namespaces {
};
export {
- ValuesAPIValues as Values,
+ Values as Values,
type ValueUpdateResponse as ValueUpdateResponse,
type ValueDeleteResponse as ValueDeleteResponse,
type ValueUpdateParams as ValueUpdateParams,
diff --git a/src/resources/kv/namespaces/values.ts b/src/resources/kv/namespaces/values.ts
index a8de1f25b5..1fa5ff39ed 100644
--- a/src/resources/kv/namespaces/values.ts
+++ b/src/resources/kv/namespaces/values.ts
@@ -22,6 +22,7 @@ export class Values extends APIResource {
* 'My-Key',
* {
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ * metadata: '{"someMetadataKey": "someMetadataValue"}',
* value: 'Some Value',
* },
* );
@@ -37,11 +38,12 @@ export class Values extends APIResource {
return (
this._client.put(
`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/values/${keyName}`,
- Core.multipartFormRequestOptions({
+ Core.maybeMultipartFormRequestOptions({
query: { expiration, expiration_ttl },
body,
__multipartSyntax: 'json',
...options,
+ headers: { 'Content-Type': '*/*', ...options?.headers },
}),
) as Core.APIPromise<{ result: ValueUpdateResponse | null }>
)._thenUnwrap((obj) => obj.result);
@@ -118,42 +120,43 @@ export interface ValueDeleteResponse {}
export interface ValueUpdateParams {
/**
- * Path param: Identifier.
+ * Path param: Identifier
*/
account_id: string;
+ /**
+ * Body param: Arbitrary JSON to be associated with a key/value pair.
+ */
+ metadata: string;
+
/**
* Body param: A byte sequence to be stored, up to 25 MiB in length.
*/
value: string;
/**
- * Query param: Expires the key at a certain time, measured in number of seconds
- * since the UNIX epoch.
+ * Query param: The time, measured in number of seconds since the UNIX epoch, at
+ * which the key should expire.
*/
expiration?: number;
/**
- * Query param: Expires the key after a number of seconds. Must be at least 60.
+ * Query param: The number of seconds for which the key should be visible before it
+ * expires. At least 60.
*/
expiration_ttl?: number;
-
- /**
- * Body param: Associates arbitrary JSON data with a key/value pair.
- */
- metadata?: unknown;
}
export interface ValueDeleteParams {
/**
- * Identifier.
+ * Identifier
*/
account_id: string;
}
export interface ValueGetParams {
/**
- * Identifier.
+ * Identifier
*/
account_id: string;
}
diff --git a/src/resources/leaked-credential-checks/detections.ts b/src/resources/leaked-credential-checks/detections.ts
index ca2e008bd9..2a6de390ad 100644
--- a/src/resources/leaked-credential-checks/detections.ts
+++ b/src/resources/leaked-credential-checks/detections.ts
@@ -1,243 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
-import * as Core from '../../core';
-import { SinglePage } from '../../pagination';
-export class Detections extends APIResource {
- /**
- * Create user-defined detection pattern for Leaked Credential Checks.
- *
- * @example
- * ```ts
- * const detection =
- * await client.leakedCredentialChecks.detections.create({
- * zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * });
- * ```
- */
- create(
- params: DetectionCreateParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { zone_id, ...body } = params;
- return (
- this._client.post(`/zones/${zone_id}/leaked-credential-checks/detections`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: DetectionCreateResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-
- /**
- * Update user-defined detection pattern for Leaked Credential Checks.
- *
- * @example
- * ```ts
- * const detection =
- * await client.leakedCredentialChecks.detections.update(
- * '18a14bafaa8eb1df04ce683ec18c765e',
- * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * );
- * ```
- */
- update(
- detectionId: string,
- params: DetectionUpdateParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { zone_id, ...body } = params;
- return (
- this._client.put(`/zones/${zone_id}/leaked-credential-checks/detections/${detectionId}`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: DetectionUpdateResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-
- /**
- * List user-defined detection patterns for Leaked Credential Checks.
- *
- * @example
- * ```ts
- * // Automatically fetches more pages as needed.
- * for await (const detectionListResponse of client.leakedCredentialChecks.detections.list(
- * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * )) {
- * // ...
- * }
- * ```
- */
- list(
- params: DetectionListParams,
- options?: Core.RequestOptions,
- ): Core.PagePromise {
- const { zone_id } = params;
- return this._client.getAPIList(
- `/zones/${zone_id}/leaked-credential-checks/detections`,
- DetectionListResponsesSinglePage,
- options,
- );
- }
-
- /**
- * Remove user-defined detection pattern for Leaked Credential Checks.
- *
- * @example
- * ```ts
- * const detection =
- * await client.leakedCredentialChecks.detections.delete(
- * '18a14bafaa8eb1df04ce683ec18c765e',
- * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * );
- * ```
- */
- delete(
- detectionId: string,
- params: DetectionDeleteParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { zone_id } = params;
- return (
- this._client.delete(
- `/zones/${zone_id}/leaked-credential-checks/detections/${detectionId}`,
- options,
- ) as Core.APIPromise<{ result: DetectionDeleteResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-}
-
-export class DetectionListResponsesSinglePage extends SinglePage {}
-
-/**
- * Defines a custom set of username/password expressions to match Leaked Credential
- * Checks on.
- */
-export interface DetectionCreateResponse {
- /**
- * Defines the unique ID for this custom detection.
- */
- id?: string;
-
- /**
- * Defines ehe ruleset expression to use in matching the password in a request.
- */
- password?: string;
-
- /**
- * Defines the ruleset expression to use in matching the username in a request.
- */
- username?: string;
-}
-
-/**
- * Defines a custom set of username/password expressions to match Leaked Credential
- * Checks on.
- */
-export interface DetectionUpdateResponse {
- /**
- * Defines the unique ID for this custom detection.
- */
- id?: string;
-
- /**
- * Defines ehe ruleset expression to use in matching the password in a request.
- */
- password?: string;
-
- /**
- * Defines the ruleset expression to use in matching the username in a request.
- */
- username?: string;
-}
-
-/**
- * Defines a custom set of username/password expressions to match Leaked Credential
- * Checks on.
- */
-export interface DetectionListResponse {
- /**
- * Defines the unique ID for this custom detection.
- */
- id?: string;
-
- /**
- * Defines ehe ruleset expression to use in matching the password in a request.
- */
- password?: string;
-
- /**
- * Defines the ruleset expression to use in matching the username in a request.
- */
- username?: string;
-}
-
-export type DetectionDeleteResponse = unknown;
-
-export interface DetectionCreateParams {
- /**
- * Path param: Defines an identifier.
- */
- zone_id: string;
-
- /**
- * Body param: Defines ehe ruleset expression to use in matching the password in a
- * request.
- */
- password?: string;
-
- /**
- * Body param: Defines the ruleset expression to use in matching the username in a
- * request.
- */
- username?: string;
-}
-
-export interface DetectionUpdateParams {
- /**
- * Path param: Defines an identifier.
- */
- zone_id: string;
-
- /**
- * Body param: Defines ehe ruleset expression to use in matching the password in a
- * request.
- */
- password?: string;
-
- /**
- * Body param: Defines the ruleset expression to use in matching the username in a
- * request.
- */
- username?: string;
-}
-
-export interface DetectionListParams {
- /**
- * Defines an identifier.
- */
- zone_id: string;
-}
-
-export interface DetectionDeleteParams {
- /**
- * Defines an identifier.
- */
- zone_id: string;
-}
-
-Detections.DetectionListResponsesSinglePage = DetectionListResponsesSinglePage;
-
-export declare namespace Detections {
- export {
- type DetectionCreateResponse as DetectionCreateResponse,
- type DetectionUpdateResponse as DetectionUpdateResponse,
- type DetectionListResponse as DetectionListResponse,
- type DetectionDeleteResponse as DetectionDeleteResponse,
- DetectionListResponsesSinglePage as DetectionListResponsesSinglePage,
- type DetectionCreateParams as DetectionCreateParams,
- type DetectionUpdateParams as DetectionUpdateParams,
- type DetectionListParams as DetectionListParams,
- type DetectionDeleteParams as DetectionDeleteParams,
- };
-}
+export class Detections extends APIResource {}
diff --git a/src/resources/leaked-credential-checks/index.ts b/src/resources/leaked-credential-checks/index.ts
index 1844848bf2..7e3e1a0dd7 100644
--- a/src/resources/leaked-credential-checks/index.ts
+++ b/src/resources/leaked-credential-checks/index.ts
@@ -1,15 +1,4 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-export {
- DetectionListResponsesSinglePage,
- Detections,
- type DetectionCreateResponse,
- type DetectionUpdateResponse,
- type DetectionListResponse,
- type DetectionDeleteResponse,
- type DetectionCreateParams,
- type DetectionUpdateParams,
- type DetectionListParams,
- type DetectionDeleteParams,
-} from './detections';
+export { Detections } from './detections';
export { LeakedCredentialChecks } from './leaked-credential-checks';
diff --git a/src/resources/leaked-credential-checks/leaked-credential-checks.ts b/src/resources/leaked-credential-checks/leaked-credential-checks.ts
index d8d8de90c1..c89821160c 100644
--- a/src/resources/leaked-credential-checks/leaked-credential-checks.ts
+++ b/src/resources/leaked-credential-checks/leaked-credential-checks.ts
@@ -1,132 +1,15 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
-import * as Core from '../../core';
import * as DetectionsAPI from './detections';
-import {
- DetectionCreateParams,
- DetectionCreateResponse,
- DetectionDeleteParams,
- DetectionDeleteResponse,
- DetectionListParams,
- DetectionListResponse,
- DetectionListResponsesSinglePage,
- DetectionUpdateParams,
- DetectionUpdateResponse,
- Detections,
-} from './detections';
+import { Detections } from './detections';
export class LeakedCredentialChecks extends APIResource {
detections: DetectionsAPI.Detections = new DetectionsAPI.Detections(this._client);
-
- /**
- * Updates the current status of Leaked Credential Checks.
- *
- * @example
- * ```ts
- * const leakedCredentialCheck =
- * await client.leakedCredentialChecks.create({
- * zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * });
- * ```
- */
- create(
- params: LeakedCredentialCheckCreateParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { zone_id, ...body } = params;
- return (
- this._client.post(`/zones/${zone_id}/leaked-credential-checks`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: LeakedCredentialCheckCreateResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-
- /**
- * Retrieves the current status of Leaked Credential Checks.
- *
- * @example
- * ```ts
- * const leakedCredentialCheck =
- * await client.leakedCredentialChecks.get({
- * zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * });
- * ```
- */
- get(
- params: LeakedCredentialCheckGetParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { zone_id } = params;
- return (
- this._client.get(`/zones/${zone_id}/leaked-credential-checks`, options) as Core.APIPromise<{
- result: LeakedCredentialCheckGetResponse;
- }>
- )._thenUnwrap((obj) => obj.result);
- }
-}
-
-/**
- * Defines the overall status for Leaked Credential Checks.
- */
-export interface LeakedCredentialCheckCreateResponse {
- /**
- * Determines whether or not Leaked Credential Checks are enabled.
- */
- enabled?: boolean;
-}
-
-/**
- * Defines the overall status for Leaked Credential Checks.
- */
-export interface LeakedCredentialCheckGetResponse {
- /**
- * Determines whether or not Leaked Credential Checks are enabled.
- */
- enabled?: boolean;
-}
-
-export interface LeakedCredentialCheckCreateParams {
- /**
- * Path param: Defines an identifier.
- */
- zone_id: string;
-
- /**
- * Body param: Determines whether or not Leaked Credential Checks are enabled.
- */
- enabled?: boolean;
-}
-
-export interface LeakedCredentialCheckGetParams {
- /**
- * Defines an identifier.
- */
- zone_id: string;
}
LeakedCredentialChecks.Detections = Detections;
-LeakedCredentialChecks.DetectionListResponsesSinglePage = DetectionListResponsesSinglePage;
export declare namespace LeakedCredentialChecks {
- export {
- type LeakedCredentialCheckCreateResponse as LeakedCredentialCheckCreateResponse,
- type LeakedCredentialCheckGetResponse as LeakedCredentialCheckGetResponse,
- type LeakedCredentialCheckCreateParams as LeakedCredentialCheckCreateParams,
- type LeakedCredentialCheckGetParams as LeakedCredentialCheckGetParams,
- };
-
- export {
- Detections as Detections,
- type DetectionCreateResponse as DetectionCreateResponse,
- type DetectionUpdateResponse as DetectionUpdateResponse,
- type DetectionListResponse as DetectionListResponse,
- type DetectionDeleteResponse as DetectionDeleteResponse,
- DetectionListResponsesSinglePage as DetectionListResponsesSinglePage,
- type DetectionCreateParams as DetectionCreateParams,
- type DetectionUpdateParams as DetectionUpdateParams,
- type DetectionListParams as DetectionListParams,
- type DetectionDeleteParams as DetectionDeleteParams,
- };
+ export { Detections as Detections };
}
diff --git a/src/resources/logs/control/cmb/cmb.ts b/src/resources/logs/control/cmb/cmb.ts
index 281cbbf509..d272ff9745 100644
--- a/src/resources/logs/control/cmb/cmb.ts
+++ b/src/resources/logs/control/cmb/cmb.ts
@@ -2,14 +2,7 @@
import { APIResource } from '../../../../resource';
import * as ConfigAPI from './config';
-import {
- CmbConfig,
- Config,
- ConfigCreateParams,
- ConfigDeleteParams,
- ConfigDeleteResponse,
- ConfigGetParams,
-} from './config';
+import { Config } from './config';
export class Cmb extends APIResource {
config: ConfigAPI.Config = new ConfigAPI.Config(this._client);
@@ -18,12 +11,5 @@ export class Cmb extends APIResource {
Cmb.Config = Config;
export declare namespace Cmb {
- export {
- Config as Config,
- type CmbConfig as CmbConfig,
- type ConfigDeleteResponse as ConfigDeleteResponse,
- type ConfigCreateParams as ConfigCreateParams,
- type ConfigDeleteParams as ConfigDeleteParams,
- type ConfigGetParams as ConfigGetParams,
- };
+ export { Config as Config };
}
diff --git a/src/resources/logs/control/cmb/config.ts b/src/resources/logs/control/cmb/config.ts
index 63af7fdb83..98c038ce8c 100644
--- a/src/resources/logs/control/cmb/config.ts
+++ b/src/resources/logs/control/cmb/config.ts
@@ -1,123 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../../resource';
-import * as Core from '../../../../core';
-export class Config extends APIResource {
- /**
- * Updates CMB config.
- *
- * @example
- * ```ts
- * const cmbConfig =
- * await client.logs.control.cmb.config.create({
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * });
- * ```
- */
- create(params: ConfigCreateParams, options?: Core.RequestOptions): Core.APIPromise {
- const { account_id, ...body } = params;
- return (
- this._client.post(`/accounts/${account_id}/logs/control/cmb/config`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: CmbConfig | null }>
- )._thenUnwrap((obj) => obj.result);
- }
-
- /**
- * Deletes CMB config.
- *
- * @example
- * ```ts
- * const config = await client.logs.control.cmb.config.delete({
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * });
- * ```
- */
- delete(
- params: ConfigDeleteParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id } = params;
- return (
- this._client.delete(`/accounts/${account_id}/logs/control/cmb/config`, options) as Core.APIPromise<{
- result: ConfigDeleteResponse | null;
- }>
- )._thenUnwrap((obj) => obj.result);
- }
-
- /**
- * Gets CMB config.
- *
- * @example
- * ```ts
- * const cmbConfig = await client.logs.control.cmb.config.get({
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * });
- * ```
- */
- get(params: ConfigGetParams, options?: Core.RequestOptions): Core.APIPromise {
- const { account_id } = params;
- return (
- this._client.get(`/accounts/${account_id}/logs/control/cmb/config`, options) as Core.APIPromise<{
- result: CmbConfig | null;
- }>
- )._thenUnwrap((obj) => obj.result);
- }
-}
-
-export interface CmbConfig {
- /**
- * Allow out of region access
- */
- allow_out_of_region_access?: boolean;
-
- /**
- * Name of the region.
- */
- regions?: string;
-}
-
-export type ConfigDeleteResponse = unknown;
-
-export interface ConfigCreateParams {
- /**
- * Path param: Identifier.
- */
- account_id: string;
-
- /**
- * Body param: Allow out of region access
- */
- allow_out_of_region_access?: boolean;
-
- /**
- * Body param: Name of the region.
- */
- regions?: string;
-}
-
-export interface ConfigDeleteParams {
- /**
- * Identifier.
- */
- account_id: string;
-}
-
-export interface ConfigGetParams {
- /**
- * Identifier.
- */
- account_id: string;
-}
-
-export declare namespace Config {
- export {
- type CmbConfig as CmbConfig,
- type ConfigDeleteResponse as ConfigDeleteResponse,
- type ConfigCreateParams as ConfigCreateParams,
- type ConfigDeleteParams as ConfigDeleteParams,
- type ConfigGetParams as ConfigGetParams,
- };
-}
+export class Config extends APIResource {}
diff --git a/src/resources/logs/control/cmb/index.ts b/src/resources/logs/control/cmb/index.ts
index 0d9ca574cc..c65febf631 100644
--- a/src/resources/logs/control/cmb/index.ts
+++ b/src/resources/logs/control/cmb/index.ts
@@ -1,11 +1,4 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
export { Cmb } from './cmb';
-export {
- Config,
- type CmbConfig,
- type ConfigDeleteResponse,
- type ConfigCreateParams,
- type ConfigDeleteParams,
- type ConfigGetParams,
-} from './config';
+export { Config } from './config';
diff --git a/src/resources/logs/control/control.ts b/src/resources/logs/control/control.ts
index 8c4fdeea5c..da86c60aed 100644
--- a/src/resources/logs/control/control.ts
+++ b/src/resources/logs/control/control.ts
@@ -2,13 +2,7 @@
import { APIResource } from '../../../resource';
import * as RetentionAPI from './retention';
-import {
- Retention,
- RetentionCreateParams,
- RetentionCreateResponse,
- RetentionGetParams,
- RetentionGetResponse,
-} from './retention';
+import { Retention } from './retention';
import * as CmbAPI from './cmb/cmb';
import { Cmb } from './cmb/cmb';
@@ -21,13 +15,7 @@ Control.Retention = Retention;
Control.Cmb = Cmb;
export declare namespace Control {
- export {
- Retention as Retention,
- type RetentionCreateResponse as RetentionCreateResponse,
- type RetentionGetResponse as RetentionGetResponse,
- type RetentionCreateParams as RetentionCreateParams,
- type RetentionGetParams as RetentionGetParams,
- };
+ export { Retention as Retention };
export { Cmb as Cmb };
}
diff --git a/src/resources/logs/control/index.ts b/src/resources/logs/control/index.ts
index 700f3ebeda..7b4f398e46 100644
--- a/src/resources/logs/control/index.ts
+++ b/src/resources/logs/control/index.ts
@@ -2,10 +2,4 @@
export { Cmb } from './cmb/index';
export { Control } from './control';
-export {
- Retention,
- type RetentionCreateResponse,
- type RetentionGetResponse,
- type RetentionCreateParams,
- type RetentionGetParams,
-} from './retention';
+export { Retention } from './retention';
diff --git a/src/resources/logs/control/retention.ts b/src/resources/logs/control/retention.ts
index c25faf78af..9e00c15d66 100644
--- a/src/resources/logs/control/retention.ts
+++ b/src/resources/logs/control/retention.ts
@@ -1,94 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../resource';
-import * as Core from '../../../core';
-export class Retention extends APIResource {
- /**
- * Updates log retention flag for Logpull API.
- *
- * @example
- * ```ts
- * const retention =
- * await client.logs.control.retention.create({
- * zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * });
- * ```
- */
- create(
- params: RetentionCreateParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { zone_id, ...body } = params;
- return (
- this._client.post(`/zones/${zone_id}/logs/control/retention/flag`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: RetentionCreateResponse | null }>
- )._thenUnwrap((obj) => obj.result);
- }
-
- /**
- * Gets log retention flag for Logpull API.
- *
- * @example
- * ```ts
- * const retention = await client.logs.control.retention.get({
- * zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * });
- * ```
- */
- get(
- params: RetentionGetParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { zone_id } = params;
- return (
- this._client.get(`/zones/${zone_id}/logs/control/retention/flag`, options) as Core.APIPromise<{
- result: RetentionGetResponse | null;
- }>
- )._thenUnwrap((obj) => obj.result);
- }
-}
-
-export interface RetentionCreateResponse {
- /**
- * The log retention flag for Logpull API.
- */
- flag?: boolean;
-}
-
-export interface RetentionGetResponse {
- /**
- * The log retention flag for Logpull API.
- */
- flag?: boolean;
-}
-
-export interface RetentionCreateParams {
- /**
- * Path param: Identifier.
- */
- zone_id: string;
-
- /**
- * Body param: The log retention flag for Logpull API.
- */
- flag?: boolean;
-}
-
-export interface RetentionGetParams {
- /**
- * Identifier.
- */
- zone_id: string;
-}
-
-export declare namespace Retention {
- export {
- type RetentionCreateResponse as RetentionCreateResponse,
- type RetentionGetResponse as RetentionGetResponse,
- type RetentionCreateParams as RetentionCreateParams,
- type RetentionGetParams as RetentionGetParams,
- };
-}
+export class Retention extends APIResource {}
diff --git a/src/resources/logs/index.ts b/src/resources/logs/index.ts
index edef47a1eb..75ecc8c68f 100644
--- a/src/resources/logs/index.ts
+++ b/src/resources/logs/index.ts
@@ -2,5 +2,5 @@
export { Control } from './control/index';
export { Logs } from './logs';
-export { RayID, type RayIDGetResponse, type RayIDGetParams } from './rayid';
-export { Received, type ReceivedGetResponse, type ReceivedGetParams } from './received/index';
+export { RayID } from './rayid';
+export { Received } from './received/index';
diff --git a/src/resources/logs/logs.ts b/src/resources/logs/logs.ts
index 8bc3fd5875..f1245aa7aa 100644
--- a/src/resources/logs/logs.ts
+++ b/src/resources/logs/logs.ts
@@ -2,11 +2,11 @@
import { APIResource } from '../../resource';
import * as RayIDAPI from './rayid';
-import { RayID, RayIDGetParams, RayIDGetResponse } from './rayid';
+import { RayID } from './rayid';
import * as ControlAPI from './control/control';
import { Control } from './control/control';
import * as ReceivedAPI from './received/received';
-import { Received, ReceivedGetParams, ReceivedGetResponse } from './received/received';
+import { Received } from './received/received';
export class Logs extends APIResource {
control: ControlAPI.Control = new ControlAPI.Control(this._client);
@@ -21,11 +21,7 @@ Logs.Received = Received;
export declare namespace Logs {
export { Control as Control };
- export { RayID as RayID, type RayIDGetResponse as RayIDGetResponse, type RayIDGetParams as RayIDGetParams };
+ export { RayID as RayID };
- export {
- Received as Received,
- type ReceivedGetResponse as ReceivedGetResponse,
- type ReceivedGetParams as ReceivedGetParams,
- };
+ export { Received as Received };
}
diff --git a/src/resources/logs/rayid.ts b/src/resources/logs/rayid.ts
index 6e40d6cfa9..11b29ce4b0 100644
--- a/src/resources/logs/rayid.ts
+++ b/src/resources/logs/rayid.ts
@@ -1,64 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
-import * as Core from '../../core';
-export class RayID extends APIResource {
- /**
- * The `/rayids` api route allows lookups by specific rayid. The rayids route will
- * return zero, one, or more records (ray ids are not unique).
- *
- * @example
- * ```ts
- * const RayID = await client.logs.RayID.get(
- * '41ddf1740f67442d',
- * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * );
- * ```
- */
- get(
- RayID: string,
- params: RayIDGetParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { zone_id, ...query } = params;
- return this._client.get(`/zones/${zone_id}/logs/rayids/${RayID}`, { query, ...options });
- }
-}
-
-export type RayIDGetResponse = string | unknown;
-
-export interface RayIDGetParams {
- /**
- * Path param: Identifier.
- */
- zone_id: string;
-
- /**
- * Query param: The `/received` route by default returns a limited set of fields,
- * and allows customers to override the default field set by specifying individual
- * fields. The reasons for this are: 1. Most customers require only a small subset
- * of fields, but that subset varies from customer to customer; 2. Flat schema is
- * much easier to work with downstream (importing into BigTable etc); 3.
- * Performance (time to process, file size). If `?fields=` is not specified,
- * default field set is returned. This default field set may change at any time.
- * When `?fields=` is provided, each record is returned with the specified fields.
- * `fields` must be specified as a comma separated list without any whitespaces,
- * and all fields must exist. The order in which fields are specified does not
- * matter, and the order of fields in the response is not specified.
- */
- fields?: string;
-
- /**
- * Query param: By default, timestamps in responses are returned as Unix nanosecond
- * integers. The `?timestamps=` argument can be set to change the format in which
- * response timestamps are returned. Possible values are: `unix`, `unixnano`,
- * `rfc3339`. Note that `unix` and `unixnano` return timestamps as integers;
- * `rfc3339` returns timestamps as strings.
- */
- timestamps?: 'unix' | 'unixnano' | 'rfc3339';
-}
-
-export declare namespace RayID {
- export { type RayIDGetResponse as RayIDGetResponse, type RayIDGetParams as RayIDGetParams };
-}
+export class RayID extends APIResource {}
diff --git a/src/resources/logs/received/fields.ts b/src/resources/logs/received/fields.ts
index 5e289166d6..9bd4c53066 100644
--- a/src/resources/logs/received/fields.ts
+++ b/src/resources/logs/received/fields.ts
@@ -1,37 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../resource';
-import * as Core from '../../../core';
-export class Fields extends APIResource {
- /**
- * Lists all fields available. The response is json object with key-value pairs,
- * where keys are field names, and values are descriptions.
- *
- * @example
- * ```ts
- * const field = await client.logs.received.fields.get({
- * zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * });
- * ```
- */
- get(params: FieldGetParams, options?: Core.RequestOptions): Core.APIPromise {
- const { zone_id } = params;
- return this._client.get(`/zones/${zone_id}/logs/received/fields`, options);
- }
-}
-
-export interface FieldGetResponse {
- key?: string;
-}
-
-export interface FieldGetParams {
- /**
- * Identifier.
- */
- zone_id: string;
-}
-
-export declare namespace Fields {
- export { type FieldGetResponse as FieldGetResponse, type FieldGetParams as FieldGetParams };
-}
+export class Fields extends APIResource {}
diff --git a/src/resources/logs/received/index.ts b/src/resources/logs/received/index.ts
index 872f107c23..b39faedbf8 100644
--- a/src/resources/logs/received/index.ts
+++ b/src/resources/logs/received/index.ts
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-export { Fields, type FieldGetResponse, type FieldGetParams } from './fields';
-export { Received, type ReceivedGetResponse, type ReceivedGetParams } from './received';
+export { Fields } from './fields';
+export { Received } from './received';
diff --git a/src/resources/logs/received/received.ts b/src/resources/logs/received/received.ts
index 6f0ab3dbaa..2d2550f8c9 100644
--- a/src/resources/logs/received/received.ts
+++ b/src/resources/logs/received/received.ts
@@ -1,115 +1,15 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../resource';
-import * as Core from '../../../core';
import * as FieldsAPI from './fields';
-import { FieldGetParams, FieldGetResponse, Fields } from './fields';
+import { Fields } from './fields';
export class Received extends APIResource {
fields: FieldsAPI.Fields = new FieldsAPI.Fields(this._client);
-
- /**
- * The `/received` api route allows customers to retrieve their edge HTTP logs. The
- * basic access pattern is "give me all the logs for zone Z for minute M", where
- * the minute M refers to the time records were received at Cloudflare's central
- * data center. `start` is inclusive, and `end` is exclusive. Because of that, to
- * get all data, at minutely cadence, starting at 10AM, the proper values are:
- * `start=2018-05-20T10:00:00Z&end=2018-05-20T10:01:00Z`, then
- * `start=2018-05-20T10:01:00Z&end=2018-05-20T10:02:00Z` and so on; the overlap
- * will be handled properly.
- *
- * @example
- * ```ts
- * const received = await client.logs.received.get({
- * zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * end: '2018-05-20T10:01:00Z',
- * });
- * ```
- */
- get(params: ReceivedGetParams, options?: Core.RequestOptions): Core.APIPromise {
- const { zone_id, ...query } = params;
- return this._client.get(`/zones/${zone_id}/logs/received`, { query, ...options });
- }
-}
-
-export type ReceivedGetResponse = string | unknown;
-
-export interface ReceivedGetParams {
- /**
- * Path param: Identifier.
- */
- zone_id: string;
-
- /**
- * Query param: Sets the (exclusive) end of the requested time frame. This can be a
- * unix timestamp (in seconds or nanoseconds), or an absolute timestamp that
- * conforms to RFC 3339. `end` must be at least five minutes earlier than now and
- * must be later than `start`. Difference between `start` and `end` must be not
- * greater than one hour.
- */
- end: string | number;
-
- /**
- * Query param: When `?count=` is provided, the response will contain up to `count`
- * results. Since results are not sorted, you are likely to get different data for
- * repeated requests. `count` must be an integer > 0.
- */
- count?: number;
-
- /**
- * Query param: The `/received` route by default returns a limited set of fields,
- * and allows customers to override the default field set by specifying individual
- * fields. The reasons for this are: 1. Most customers require only a small subset
- * of fields, but that subset varies from customer to customer; 2. Flat schema is
- * much easier to work with downstream (importing into BigTable etc); 3.
- * Performance (time to process, file size). If `?fields=` is not specified,
- * default field set is returned. This default field set may change at any time.
- * When `?fields=` is provided, each record is returned with the specified fields.
- * `fields` must be specified as a comma separated list without any whitespaces,
- * and all fields must exist. The order in which fields are specified does not
- * matter, and the order of fields in the response is not specified.
- */
- fields?: string;
-
- /**
- * Query param: When `?sample=` is provided, a sample of matching records is
- * returned. If `sample=0.1` then 10% of records will be returned. Sampling is
- * random: repeated calls will not only return different records, but likely will
- * also vary slightly in number of returned records. When `?count=` is also
- * specified, `count` is applied to the number of returned records, not the sampled
- * records. So, with `sample=0.05` and `count=7`, when there is a total of 100
- * records available, approximately five will be returned. When there are 1000
- * records, seven will be returned. When there are 10,000 records, seven will be
- * returned.
- */
- sample?: number;
-
- /**
- * Query param: Sets the (inclusive) beginning of the requested time frame. This
- * can be a unix timestamp (in seconds or nanoseconds), or an absolute timestamp
- * that conforms to RFC 3339. At this point in time, it cannot exceed a time in the
- * past greater than seven days.
- */
- start?: string | number;
-
- /**
- * Query param: By default, timestamps in responses are returned as Unix nanosecond
- * integers. The `?timestamps=` argument can be set to change the format in which
- * response timestamps are returned. Possible values are: `unix`, `unixnano`,
- * `rfc3339`. Note that `unix` and `unixnano` return timestamps as integers;
- * `rfc3339` returns timestamps as strings.
- */
- timestamps?: 'unix' | 'unixnano' | 'rfc3339';
}
Received.Fields = Fields;
export declare namespace Received {
- export { type ReceivedGetResponse as ReceivedGetResponse, type ReceivedGetParams as ReceivedGetParams };
-
- export {
- Fields as Fields,
- type FieldGetResponse as FieldGetResponse,
- type FieldGetParams as FieldGetParams,
- };
+ export { Fields as Fields };
}
diff --git a/src/resources/pages/projects/deployments/deployments.ts b/src/resources/pages/projects/deployments/deployments.ts
index 97b2b41db9..e1a307e7bf 100644
--- a/src/resources/pages/projects/deployments/deployments.ts
+++ b/src/resources/pages/projects/deployments/deployments.ts
@@ -192,11 +192,77 @@ export interface DeploymentCreateParams {
*/
account_id: string;
+ /**
+ * Body param: Headers configuration file for the deployment.
+ */
+ _headers?: Core.Uploadable;
+
+ /**
+ * Body param: Redirects configuration file for the deployment.
+ */
+ _redirects?: Core.Uploadable;
+
+ /**
+ * Body param: Routes configuration file defining routing rules.
+ */
+ '_routes.json'?: Core.Uploadable;
+
+ /**
+ * Body param: Worker bundle file in multipart/form-data format. Mutually exclusive
+ * with `_worker.js`. Cannot specify both `_worker.js` and `_worker.bundle` in the
+ * same request. Maximum size: 25 MiB.
+ */
+ '_worker.bundle'?: Core.Uploadable;
+
+ /**
+ * Body param: Worker JavaScript file. Mutually exclusive with `_worker.bundle`.
+ * Cannot specify both `_worker.js` and `_worker.bundle` in the same request.
+ */
+ '_worker.js'?: Core.Uploadable;
+
/**
* Body param: The branch to build the new deployment from. The `HEAD` of the
* branch will be used. If omitted, the production branch will be used by default.
*/
branch?: string;
+
+ /**
+ * Body param: Boolean string indicating if the working directory has uncommitted
+ * changes.
+ */
+ commit_dirty?: 'true' | 'false';
+
+ /**
+ * Body param: Git commit SHA associated with this deployment.
+ */
+ commit_hash?: string;
+
+ /**
+ * Body param: Git commit message associated with this deployment.
+ */
+ commit_message?: string;
+
+ /**
+ * Body param: Functions routing configuration file.
+ */
+ 'functions-filepath-routing-config.json'?: Core.Uploadable;
+
+ /**
+ * Body param: JSON string containing a manifest of files to deploy. Maps file
+ * paths to their content hashes. Required for direct upload deployments. Maximum
+ * 20,000 entries.
+ */
+ manifest?: string;
+
+ /**
+ * Body param: The build output directory path.
+ */
+ pages_build_output_dir?: string;
+
+ /**
+ * Body param: Hash of the Wrangler configuration file used for this deployment.
+ */
+ wrangler_config_hash?: string;
}
export interface DeploymentListParams {
diff --git a/src/resources/pages/projects/projects.ts b/src/resources/pages/projects/projects.ts
index efac2c7d22..f14c2e99bf 100644
--- a/src/resources/pages/projects/projects.ts
+++ b/src/resources/pages/projects/projects.ts
@@ -41,6 +41,8 @@ export class Projects extends APIResource {
* ```ts
* const project = await client.pages.projects.create({
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ * name: 'my-pages-app',
+ * production_branch: 'main',
* });
* ```
*/
@@ -111,7 +113,11 @@ export class Projects extends APIResource {
* ```ts
* const project = await client.pages.projects.edit(
* 'this-is-my-project-01',
- * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
+ * {
+ * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ * name: 'my-pages-app',
+ * production_branch: 'main',
+ * },
* );
* ```
*/
@@ -215,7 +221,7 @@ export interface Deployment {
*/
env_vars?: {
[key: string]: Deployment.PagesPlainTextEnvVar | null | Deployment.PagesSecretTextEnvVar | null;
- };
+ } | null;
/**
* Type of deploy.
@@ -365,31 +371,74 @@ export namespace Deployment {
export interface Source {
config?: Source.Config;
- type?: string;
+ /**
+ * The source control management provider.
+ */
+ type?: 'github' | 'gitlab';
}
export namespace Source {
export interface Config {
+ /**
+ * @deprecated Use `production_deployments_enabled` and
+ * `preview_deployment_setting` for more granular control.
+ */
deployments_enabled?: boolean;
+ /**
+ * The owner of the repository.
+ */
owner?: string;
+ /**
+ * A list of paths that should be excluded from triggering a preview deployment.
+ * Wildcard syntax (`*`) is supported.
+ */
path_excludes?: Array;
+ /**
+ * A list of paths that should be watched to trigger a preview deployment. Wildcard
+ * syntax (`*`) is supported.
+ */
path_includes?: Array;
+ /**
+ * Whether to enable PR comments.
+ */
pr_comments_enabled?: boolean;
+ /**
+ * A list of branches that should not trigger a preview deployment. Wildcard syntax
+ * (`*`) is supported. Must be used with `preview_deployment_setting` set to
+ * `custom`.
+ */
preview_branch_excludes?: Array;
+ /**
+ * A list of branches that should trigger a preview deployment. Wildcard syntax
+ * (`*`) is supported. Must be used with `preview_deployment_setting` set to
+ * `custom`.
+ */
preview_branch_includes?: Array;
+ /**
+ * Controls whether commits to preview branches trigger a preview deployment.
+ */
preview_deployment_setting?: 'all' | 'none' | 'custom';
+ /**
+ * The production branch of the repository.
+ */
production_branch?: string;
+ /**
+ * Whether to trigger a production deployment on commits to the production branch.
+ */
production_deployments_enabled?: boolean;
+ /**
+ * The name of the repository.
+ */
repo_name?: string;
}
}
@@ -397,17 +446,27 @@ export namespace Deployment {
export interface Project {
/**
- * Id of the project.
+ * ID of the project.
*/
- id?: string;
+ id: string;
+
+ /**
+ * Name of the project.
+ */
+ name: string;
+
+ /**
+ * Production branch of the project. Used to identify production deployments.
+ */
+ production_branch: string;
/**
* Configs for the project build process.
*/
- build_config?: Project.BuildConfig;
+ build_config?: Project.BuildConfig | null;
/**
- * Most recent deployment to the repo.
+ * Most recent production deployment of the project.
*/
canonical_deployment?: Deployment | null;
@@ -419,7 +478,7 @@ export interface Project {
/**
* Configs for deployments in a project.
*/
- deployment_configs?: Project.DeploymentConfigs;
+ deployment_configs?: Project.DeploymentConfigs | null;
/**
* A list of associated custom domains for the project.
@@ -427,19 +486,29 @@ export interface Project {
domains?: Array;
/**
- * Most recent deployment to the repo.
+ * Framework the project is using.
+ */
+ framework?: string;
+
+ /**
+ * Version of the framework the project is using.
+ */
+ framework_version?: string;
+
+ /**
+ * Most recent deployment of the project.
*/
latest_deployment?: Deployment | null;
/**
- * Name of the project.
+ * Name of the preview script.
*/
- name?: string;
+ preview_script_name?: string;
/**
- * Production branch of the project. Used to identify production deployments.
+ * Name of the production script.
*/
- production_branch?: string;
+ production_script_name?: string;
source?: Project.Source;
@@ -447,6 +516,11 @@ export interface Project {
* The Cloudflare subdomain associated with the project.
*/
subdomain?: string;
+
+ /**
+ * Whether the project uses functions.
+ */
+ uses_functions?: boolean;
}
export namespace Project {
@@ -492,12 +566,12 @@ export namespace Project {
/**
* Configs for preview deploys.
*/
- preview?: DeploymentConfigs.Preview;
+ preview?: DeploymentConfigs.Preview | null;
/**
* Configs for production deploys.
*/
- production?: DeploymentConfigs.Production;
+ production?: DeploymentConfigs.Production | null;
}
export namespace DeploymentConfigs {
@@ -510,6 +584,11 @@ export namespace Project {
*/
ai_bindings?: { [key: string]: Preview.AIBindings | null } | null;
+ /**
+ * Whether to always use the latest compatibility date for Pages Functions.
+ */
+ always_use_latest_compatibility_date?: boolean;
+
/**
* Analytics Engine bindings used for Pages Functions.
*/
@@ -520,6 +599,11 @@ export namespace Project {
*/
browsers?: { [key: string]: Preview.Browsers | null } | null;
+ /**
+ * The major version of the build image to use for Pages Functions.
+ */
+ build_image_major_version?: number;
+
/**
* Compatibility date used for Pages Functions.
*/
@@ -528,7 +612,7 @@ export namespace Project {
/**
* Compatibility flags used for Pages Functions.
*/
- compatibility_flags?: Array;
+ compatibility_flags?: Array | null;
/**
* D1 databases used for Pages Functions.
@@ -545,7 +629,12 @@ export namespace Project {
*/
env_vars?: {
[key: string]: Preview.PagesPlainTextEnvVar | null | Preview.PagesSecretTextEnvVar | null;
- };
+ } | null;
+
+ /**
+ * Whether to fail open when the deployment config cannot be applied.
+ */
+ fail_open?: boolean;
/**
* Hyperdrive bindings used for Pages Functions.
@@ -557,6 +646,11 @@ export namespace Project {
*/
kv_namespaces?: { [key: string]: Preview.KVNamespaces | null } | null;
+ /**
+ * Limits for Pages Functions.
+ */
+ limits?: Preview.Limits | null;
+
/**
* mTLS bindings used for Pages Functions.
*/
@@ -582,10 +676,20 @@ export namespace Project {
*/
services?: { [key: string]: Preview.Services | null } | null;
+ /**
+ * @deprecated All new projects now use the Standard usage model.
+ */
+ usage_model?: 'standard' | 'bundled' | 'unbound';
+
/**
* Vectorize bindings used for Pages Functions.
*/
vectorize_bindings?: { [key: string]: Preview.VectorizeBindings | null } | null;
+
+ /**
+ * Hash of the Wrangler configuration used for the deployment.
+ */
+ wrangler_config_hash?: string;
}
export namespace Preview {
@@ -672,6 +776,16 @@ export namespace Project {
namespace_id?: string;
}
+ /**
+ * Limits for Pages Functions.
+ */
+ export interface Limits {
+ /**
+ * CPU time limit in milliseconds.
+ */
+ cpu_ms?: number;
+ }
+
/**
* mTLS binding.
*/
@@ -751,6 +865,11 @@ export namespace Project {
*/
ai_bindings?: { [key: string]: Production.AIBindings | null } | null;
+ /**
+ * Whether to always use the latest compatibility date for Pages Functions.
+ */
+ always_use_latest_compatibility_date?: boolean;
+
/**
* Analytics Engine bindings used for Pages Functions.
*/
@@ -761,6 +880,11 @@ export namespace Project {
*/
browsers?: { [key: string]: Production.Browsers | null } | null;
+ /**
+ * The major version of the build image to use for Pages Functions.
+ */
+ build_image_major_version?: number;
+
/**
* Compatibility date used for Pages Functions.
*/
@@ -769,7 +893,7 @@ export namespace Project {
/**
* Compatibility flags used for Pages Functions.
*/
- compatibility_flags?: Array;
+ compatibility_flags?: Array | null;
/**
* D1 databases used for Pages Functions.
@@ -786,7 +910,12 @@ export namespace Project {
*/
env_vars?: {
[key: string]: Production.PagesPlainTextEnvVar | null | Production.PagesSecretTextEnvVar | null;
- };
+ } | null;
+
+ /**
+ * Whether to fail open when the deployment config cannot be applied.
+ */
+ fail_open?: boolean;
/**
* Hyperdrive bindings used for Pages Functions.
@@ -798,6 +927,11 @@ export namespace Project {
*/
kv_namespaces?: { [key: string]: Production.KVNamespaces | null } | null;
+ /**
+ * Limits for Pages Functions.
+ */
+ limits?: Production.Limits | null;
+
/**
* mTLS bindings used for Pages Functions.
*/
@@ -823,10 +957,20 @@ export namespace Project {
*/
services?: { [key: string]: Production.Services | null } | null;
+ /**
+ * @deprecated All new projects now use the Standard usage model.
+ */
+ usage_model?: 'standard' | 'bundled' | 'unbound';
+
/**
* Vectorize bindings used for Pages Functions.
*/
vectorize_bindings?: { [key: string]: Production.VectorizeBindings | null } | null;
+
+ /**
+ * Hash of the Wrangler configuration used for the deployment.
+ */
+ wrangler_config_hash?: string;
}
export namespace Production {
@@ -913,6 +1057,16 @@ export namespace Project {
namespace_id?: string;
}
+ /**
+ * Limits for Pages Functions.
+ */
+ export interface Limits {
+ /**
+ * CPU time limit in milliseconds.
+ */
+ cpu_ms?: number;
+ }
+
/**
* mTLS binding.
*/
@@ -987,31 +1141,74 @@ export namespace Project {
export interface Source {
config?: Source.Config;
- type?: string;
+ /**
+ * The source control management provider.
+ */
+ type?: 'github' | 'gitlab';
}
export namespace Source {
export interface Config {
+ /**
+ * @deprecated Use `production_deployments_enabled` and
+ * `preview_deployment_setting` for more granular control.
+ */
deployments_enabled?: boolean;
+ /**
+ * The owner of the repository.
+ */
owner?: string;
+ /**
+ * A list of paths that should be excluded from triggering a preview deployment.
+ * Wildcard syntax (`*`) is supported.
+ */
path_excludes?: Array;
+ /**
+ * A list of paths that should be watched to trigger a preview deployment. Wildcard
+ * syntax (`*`) is supported.
+ */
path_includes?: Array;
+ /**
+ * Whether to enable PR comments.
+ */
pr_comments_enabled?: boolean;
+ /**
+ * A list of branches that should not trigger a preview deployment. Wildcard syntax
+ * (`*`) is supported. Must be used with `preview_deployment_setting` set to
+ * `custom`.
+ */
preview_branch_excludes?: Array;
+ /**
+ * A list of branches that should trigger a preview deployment. Wildcard syntax
+ * (`*`) is supported. Must be used with `preview_deployment_setting` set to
+ * `custom`.
+ */
preview_branch_includes?: Array;
+ /**
+ * Controls whether commits to preview branches trigger a preview deployment.
+ */
preview_deployment_setting?: 'all' | 'none' | 'custom';
+ /**
+ * The production branch of the repository.
+ */
production_branch?: string;
+ /**
+ * Whether to trigger a production deployment on commits to the production branch.
+ */
production_deployments_enabled?: boolean;
+ /**
+ * The name of the repository.
+ */
repo_name?: string;
}
}
@@ -1053,25 +1250,25 @@ export interface ProjectCreateParams {
account_id: string;
/**
- * Body param: Configs for the project build process.
+ * Body param: Name of the project.
*/
- build_config?: ProjectCreateParams.BuildConfig;
+ name: string;
/**
- * Body param: Configs for deployments in a project.
+ * Body param: Production branch of the project. Used to identify production
+ * deployments.
*/
- deployment_configs?: ProjectCreateParams.DeploymentConfigs;
+ production_branch: string;
/**
- * Body param: Name of the project.
+ * Body param: Configs for the project build process.
*/
- name?: string;
+ build_config?: ProjectCreateParams.BuildConfig | null;
/**
- * Body param: Production branch of the project. Used to identify production
- * deployments.
+ * Body param: Configs for deployments in a project.
*/
- production_branch?: string;
+ deployment_configs?: ProjectCreateParams.DeploymentConfigs | null;
/**
* Body param:
@@ -1122,12 +1319,12 @@ export namespace ProjectCreateParams {
/**
* Configs for preview deploys.
*/
- preview?: DeploymentConfigs.Preview;
+ preview?: DeploymentConfigs.Preview | null;
/**
* Configs for production deploys.
*/
- production?: DeploymentConfigs.Production;
+ production?: DeploymentConfigs.Production | null;
}
export namespace DeploymentConfigs {
@@ -1140,6 +1337,11 @@ export namespace ProjectCreateParams {
*/
ai_bindings?: { [key: string]: Preview.AIBindings | null } | null;
+ /**
+ * Whether to always use the latest compatibility date for Pages Functions.
+ */
+ always_use_latest_compatibility_date?: boolean;
+
/**
* Analytics Engine bindings used for Pages Functions.
*/
@@ -1150,6 +1352,11 @@ export namespace ProjectCreateParams {
*/
browsers?: { [key: string]: Preview.Browsers | null } | null;
+ /**
+ * The major version of the build image to use for Pages Functions.
+ */
+ build_image_major_version?: number;
+
/**
* Compatibility date used for Pages Functions.
*/
@@ -1158,7 +1365,7 @@ export namespace ProjectCreateParams {
/**
* Compatibility flags used for Pages Functions.
*/
- compatibility_flags?: Array;
+ compatibility_flags?: Array | null;
/**
* D1 databases used for Pages Functions.
@@ -1175,7 +1382,12 @@ export namespace ProjectCreateParams {
*/
env_vars?: {
[key: string]: Preview.PagesPlainTextEnvVar | null | Preview.PagesSecretTextEnvVar | null;
- };
+ } | null;
+
+ /**
+ * Whether to fail open when the deployment config cannot be applied.
+ */
+ fail_open?: boolean;
/**
* Hyperdrive bindings used for Pages Functions.
@@ -1187,6 +1399,11 @@ export namespace ProjectCreateParams {
*/
kv_namespaces?: { [key: string]: Preview.KVNamespaces | null } | null;
+ /**
+ * Limits for Pages Functions.
+ */
+ limits?: Preview.Limits | null;
+
/**
* mTLS bindings used for Pages Functions.
*/
@@ -1212,10 +1429,20 @@ export namespace ProjectCreateParams {
*/
services?: { [key: string]: Preview.Services | null } | null;
+ /**
+ * @deprecated All new projects now use the Standard usage model.
+ */
+ usage_model?: 'standard' | 'bundled' | 'unbound';
+
/**
* Vectorize bindings used for Pages Functions.
*/
vectorize_bindings?: { [key: string]: Preview.VectorizeBindings | null } | null;
+
+ /**
+ * Hash of the Wrangler configuration used for the deployment.
+ */
+ wrangler_config_hash?: string;
}
export namespace Preview {
@@ -1302,6 +1529,16 @@ export namespace ProjectCreateParams {
namespace_id?: string;
}
+ /**
+ * Limits for Pages Functions.
+ */
+ export interface Limits {
+ /**
+ * CPU time limit in milliseconds.
+ */
+ cpu_ms?: number;
+ }
+
/**
* mTLS binding.
*/
@@ -1381,6 +1618,11 @@ export namespace ProjectCreateParams {
*/
ai_bindings?: { [key: string]: Production.AIBindings | null } | null;
+ /**
+ * Whether to always use the latest compatibility date for Pages Functions.
+ */
+ always_use_latest_compatibility_date?: boolean;
+
/**
* Analytics Engine bindings used for Pages Functions.
*/
@@ -1391,6 +1633,11 @@ export namespace ProjectCreateParams {
*/
browsers?: { [key: string]: Production.Browsers | null } | null;
+ /**
+ * The major version of the build image to use for Pages Functions.
+ */
+ build_image_major_version?: number;
+
/**
* Compatibility date used for Pages Functions.
*/
@@ -1399,7 +1646,7 @@ export namespace ProjectCreateParams {
/**
* Compatibility flags used for Pages Functions.
*/
- compatibility_flags?: Array;
+ compatibility_flags?: Array | null;
/**
* D1 databases used for Pages Functions.
@@ -1416,7 +1663,12 @@ export namespace ProjectCreateParams {
*/
env_vars?: {
[key: string]: Production.PagesPlainTextEnvVar | null | Production.PagesSecretTextEnvVar | null;
- };
+ } | null;
+
+ /**
+ * Whether to fail open when the deployment config cannot be applied.
+ */
+ fail_open?: boolean;
/**
* Hyperdrive bindings used for Pages Functions.
@@ -1428,6 +1680,11 @@ export namespace ProjectCreateParams {
*/
kv_namespaces?: { [key: string]: Production.KVNamespaces | null } | null;
+ /**
+ * Limits for Pages Functions.
+ */
+ limits?: Production.Limits | null;
+
/**
* mTLS bindings used for Pages Functions.
*/
@@ -1453,10 +1710,20 @@ export namespace ProjectCreateParams {
*/
services?: { [key: string]: Production.Services | null } | null;
+ /**
+ * @deprecated All new projects now use the Standard usage model.
+ */
+ usage_model?: 'standard' | 'bundled' | 'unbound';
+
/**
* Vectorize bindings used for Pages Functions.
*/
vectorize_bindings?: { [key: string]: Production.VectorizeBindings | null } | null;
+
+ /**
+ * Hash of the Wrangler configuration used for the deployment.
+ */
+ wrangler_config_hash?: string;
}
export namespace Production {
@@ -1543,6 +1810,16 @@ export namespace ProjectCreateParams {
namespace_id?: string;
}
+ /**
+ * Limits for Pages Functions.
+ */
+ export interface Limits {
+ /**
+ * CPU time limit in milliseconds.
+ */
+ cpu_ms?: number;
+ }
+
/**
* mTLS binding.
*/
@@ -1617,31 +1894,74 @@ export namespace ProjectCreateParams {
export interface Source {
config?: Source.Config;
- type?: string;
+ /**
+ * The source control management provider.
+ */
+ type?: 'github' | 'gitlab';
}
export namespace Source {
export interface Config {
+ /**
+ * @deprecated Use `production_deployments_enabled` and
+ * `preview_deployment_setting` for more granular control.
+ */
deployments_enabled?: boolean;
+ /**
+ * The owner of the repository.
+ */
owner?: string;
+ /**
+ * A list of paths that should be excluded from triggering a preview deployment.
+ * Wildcard syntax (`*`) is supported.
+ */
path_excludes?: Array;
+ /**
+ * A list of paths that should be watched to trigger a preview deployment. Wildcard
+ * syntax (`*`) is supported.
+ */
path_includes?: Array;
+ /**
+ * Whether to enable PR comments.
+ */
pr_comments_enabled?: boolean;
+ /**
+ * A list of branches that should not trigger a preview deployment. Wildcard syntax
+ * (`*`) is supported. Must be used with `preview_deployment_setting` set to
+ * `custom`.
+ */
preview_branch_excludes?: Array;
+ /**
+ * A list of branches that should trigger a preview deployment. Wildcard syntax
+ * (`*`) is supported. Must be used with `preview_deployment_setting` set to
+ * `custom`.
+ */
preview_branch_includes?: Array;
+ /**
+ * Controls whether commits to preview branches trigger a preview deployment.
+ */
preview_deployment_setting?: 'all' | 'none' | 'custom';
+ /**
+ * The production branch of the repository.
+ */
production_branch?: string;
+ /**
+ * Whether to trigger a production deployment on commits to the production branch.
+ */
production_deployments_enabled?: boolean;
+ /**
+ * The name of the repository.
+ */
repo_name?: string;
}
}
@@ -1668,25 +1988,25 @@ export interface ProjectEditParams {
account_id: string;
/**
- * Body param: Configs for the project build process.
+ * Body param: Name of the project.
*/
- build_config?: ProjectEditParams.BuildConfig;
+ name: string;
/**
- * Body param: Configs for deployments in a project.
+ * Body param: Production branch of the project. Used to identify production
+ * deployments.
*/
- deployment_configs?: ProjectEditParams.DeploymentConfigs;
+ production_branch: string;
/**
- * Body param: Name of the project.
+ * Body param: Configs for the project build process.
*/
- name?: string;
+ build_config?: ProjectEditParams.BuildConfig | null;
/**
- * Body param: Production branch of the project. Used to identify production
- * deployments.
+ * Body param: Configs for deployments in a project.
*/
- production_branch?: string;
+ deployment_configs?: ProjectEditParams.DeploymentConfigs | null;
/**
* Body param:
@@ -1737,12 +2057,12 @@ export namespace ProjectEditParams {
/**
* Configs for preview deploys.
*/
- preview?: DeploymentConfigs.Preview;
+ preview?: DeploymentConfigs.Preview | null;
/**
* Configs for production deploys.
*/
- production?: DeploymentConfigs.Production;
+ production?: DeploymentConfigs.Production | null;
}
export namespace DeploymentConfigs {
@@ -1755,6 +2075,11 @@ export namespace ProjectEditParams {
*/
ai_bindings?: { [key: string]: Preview.AIBindings | null } | null;
+ /**
+ * Whether to always use the latest compatibility date for Pages Functions.
+ */
+ always_use_latest_compatibility_date?: boolean;
+
/**
* Analytics Engine bindings used for Pages Functions.
*/
@@ -1765,6 +2090,11 @@ export namespace ProjectEditParams {
*/
browsers?: { [key: string]: Preview.Browsers | null } | null;
+ /**
+ * The major version of the build image to use for Pages Functions.
+ */
+ build_image_major_version?: number;
+
/**
* Compatibility date used for Pages Functions.
*/
@@ -1773,7 +2103,7 @@ export namespace ProjectEditParams {
/**
* Compatibility flags used for Pages Functions.
*/
- compatibility_flags?: Array;
+ compatibility_flags?: Array | null;
/**
* D1 databases used for Pages Functions.
@@ -1790,7 +2120,12 @@ export namespace ProjectEditParams {
*/
env_vars?: {
[key: string]: Preview.PagesPlainTextEnvVar | null | Preview.PagesSecretTextEnvVar | null;
- };
+ } | null;
+
+ /**
+ * Whether to fail open when the deployment config cannot be applied.
+ */
+ fail_open?: boolean;
/**
* Hyperdrive bindings used for Pages Functions.
@@ -1802,6 +2137,11 @@ export namespace ProjectEditParams {
*/
kv_namespaces?: { [key: string]: Preview.KVNamespaces | null } | null;
+ /**
+ * Limits for Pages Functions.
+ */
+ limits?: Preview.Limits | null;
+
/**
* mTLS bindings used for Pages Functions.
*/
@@ -1827,10 +2167,20 @@ export namespace ProjectEditParams {
*/
services?: { [key: string]: Preview.Services | null } | null;
+ /**
+ * @deprecated All new projects now use the Standard usage model.
+ */
+ usage_model?: 'standard' | 'bundled' | 'unbound';
+
/**
* Vectorize bindings used for Pages Functions.
*/
vectorize_bindings?: { [key: string]: Preview.VectorizeBindings | null } | null;
+
+ /**
+ * Hash of the Wrangler configuration used for the deployment.
+ */
+ wrangler_config_hash?: string;
}
export namespace Preview {
@@ -1917,6 +2267,16 @@ export namespace ProjectEditParams {
namespace_id?: string;
}
+ /**
+ * Limits for Pages Functions.
+ */
+ export interface Limits {
+ /**
+ * CPU time limit in milliseconds.
+ */
+ cpu_ms?: number;
+ }
+
/**
* mTLS binding.
*/
@@ -1996,6 +2356,11 @@ export namespace ProjectEditParams {
*/
ai_bindings?: { [key: string]: Production.AIBindings | null } | null;
+ /**
+ * Whether to always use the latest compatibility date for Pages Functions.
+ */
+ always_use_latest_compatibility_date?: boolean;
+
/**
* Analytics Engine bindings used for Pages Functions.
*/
@@ -2006,6 +2371,11 @@ export namespace ProjectEditParams {
*/
browsers?: { [key: string]: Production.Browsers | null } | null;
+ /**
+ * The major version of the build image to use for Pages Functions.
+ */
+ build_image_major_version?: number;
+
/**
* Compatibility date used for Pages Functions.
*/
@@ -2014,7 +2384,7 @@ export namespace ProjectEditParams {
/**
* Compatibility flags used for Pages Functions.
*/
- compatibility_flags?: Array;
+ compatibility_flags?: Array | null;
/**
* D1 databases used for Pages Functions.
@@ -2031,7 +2401,12 @@ export namespace ProjectEditParams {
*/
env_vars?: {
[key: string]: Production.PagesPlainTextEnvVar | null | Production.PagesSecretTextEnvVar | null;
- };
+ } | null;
+
+ /**
+ * Whether to fail open when the deployment config cannot be applied.
+ */
+ fail_open?: boolean;
/**
* Hyperdrive bindings used for Pages Functions.
@@ -2043,6 +2418,11 @@ export namespace ProjectEditParams {
*/
kv_namespaces?: { [key: string]: Production.KVNamespaces | null } | null;
+ /**
+ * Limits for Pages Functions.
+ */
+ limits?: Production.Limits | null;
+
/**
* mTLS bindings used for Pages Functions.
*/
@@ -2068,10 +2448,20 @@ export namespace ProjectEditParams {
*/
services?: { [key: string]: Production.Services | null } | null;
+ /**
+ * @deprecated All new projects now use the Standard usage model.
+ */
+ usage_model?: 'standard' | 'bundled' | 'unbound';
+
/**
* Vectorize bindings used for Pages Functions.
*/
vectorize_bindings?: { [key: string]: Production.VectorizeBindings | null } | null;
+
+ /**
+ * Hash of the Wrangler configuration used for the deployment.
+ */
+ wrangler_config_hash?: string;
}
export namespace Production {
@@ -2158,6 +2548,16 @@ export namespace ProjectEditParams {
namespace_id?: string;
}
+ /**
+ * Limits for Pages Functions.
+ */
+ export interface Limits {
+ /**
+ * CPU time limit in milliseconds.
+ */
+ cpu_ms?: number;
+ }
+
/**
* mTLS binding.
*/
@@ -2232,31 +2632,74 @@ export namespace ProjectEditParams {
export interface Source {
config?: Source.Config;
- type?: string;
+ /**
+ * The source control management provider.
+ */
+ type?: 'github' | 'gitlab';
}
export namespace Source {
export interface Config {
+ /**
+ * @deprecated Use `production_deployments_enabled` and
+ * `preview_deployment_setting` for more granular control.
+ */
deployments_enabled?: boolean;
+ /**
+ * The owner of the repository.
+ */
owner?: string;
+ /**
+ * A list of paths that should be excluded from triggering a preview deployment.
+ * Wildcard syntax (`*`) is supported.
+ */
path_excludes?: Array;
+ /**
+ * A list of paths that should be watched to trigger a preview deployment. Wildcard
+ * syntax (`*`) is supported.
+ */
path_includes?: Array;
+ /**
+ * Whether to enable PR comments.
+ */
pr_comments_enabled?: boolean;
+ /**
+ * A list of branches that should not trigger a preview deployment. Wildcard syntax
+ * (`*`) is supported. Must be used with `preview_deployment_setting` set to
+ * `custom`.
+ */
preview_branch_excludes?: Array;
+ /**
+ * A list of branches that should trigger a preview deployment. Wildcard syntax
+ * (`*`) is supported. Must be used with `preview_deployment_setting` set to
+ * `custom`.
+ */
preview_branch_includes?: Array;
+ /**
+ * Controls whether commits to preview branches trigger a preview deployment.
+ */
preview_deployment_setting?: 'all' | 'none' | 'custom';
+ /**
+ * The production branch of the repository.
+ */
production_branch?: string;
+ /**
+ * Whether to trigger a production deployment on commits to the production branch.
+ */
production_deployments_enabled?: boolean;
+ /**
+ * The name of the repository.
+ */
repo_name?: string;
}
}
diff --git a/src/resources/pipelines.ts b/src/resources/pipelines.ts
index 02e40368e4..cfc4b0add9 100644
--- a/src/resources/pipelines.ts
+++ b/src/resources/pipelines.ts
@@ -5,29 +5,10 @@ import * as Core from '../core';
export class Pipelines extends APIResource {
/**
- * Create a new pipeline.
+ * [DEPRECATED] Create a new pipeline. Use the new /pipelines/v1/pipelines endpoint
+ * instead.
*
- * @example
- * ```ts
- * const pipeline = await client.pipelines.create({
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * destination: {
- * batch: {},
- * compression: {},
- * credentials: {
- * access_key_id: '',
- * endpoint:
- * 'https://123f8a8258064ed892a347f173372359.r2.cloudflarestorage.com',
- * secret_access_key: '',
- * },
- * format: 'json',
- * path: { bucket: 'bucket' },
- * type: 'r2',
- * },
- * name: 'sample_pipeline',
- * source: [{ format: 'json', type: 'type' }],
- * });
- * ```
+ * @deprecated
*/
create(
params: PipelineCreateParams,
@@ -42,26 +23,10 @@ export class Pipelines extends APIResource {
}
/**
- * Update an existing pipeline.
+ * [DEPRECATED] Update an existing pipeline. Use the new /pipelines/v1/pipelines
+ * endpoint instead.
*
- * @example
- * ```ts
- * const pipeline = await client.pipelines.update(
- * 'sample_pipeline',
- * {
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * destination: {
- * batch: {},
- * compression: {},
- * format: 'json',
- * path: { bucket: 'bucket' },
- * type: 'r2',
- * },
- * name: 'sample_pipeline',
- * source: [{ format: 'json', type: 'type' }],
- * },
- * );
- * ```
+ * @deprecated
*/
update(
pipelineName: string,
@@ -78,14 +43,10 @@ export class Pipelines extends APIResource {
}
/**
- * List, filter, and paginate pipelines in an account.
+ * [DEPRECATED] List, filter, and paginate pipelines in an account. Use the new
+ * /pipelines/v1/pipelines endpoint instead.
*
- * @example
- * ```ts
- * const pipelines = await client.pipelines.list({
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * });
- * ```
+ * @deprecated
*/
list(params: PipelineListParams, options?: Core.RequestOptions): Core.APIPromise {
const { account_id, ...query } = params;
@@ -93,14 +54,10 @@ export class Pipelines extends APIResource {
}
/**
- * Delete a pipeline.
+ * [DEPRECATED] Delete a pipeline. Use the new /pipelines/v1/pipelines endpoint
+ * instead.
*
- * @example
- * ```ts
- * await client.pipelines.delete('sample_pipeline', {
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * });
- * ```
+ * @deprecated
*/
delete(
pipelineName: string,
@@ -115,15 +72,10 @@ export class Pipelines extends APIResource {
}
/**
- * Get configuration of a pipeline.
+ * [DEPRECATED] Get configuration of a pipeline. Use the new
+ * /pipelines/v1/pipelines endpoint instead.
*
- * @example
- * ```ts
- * const pipeline = await client.pipelines.get(
- * 'sample_pipeline',
- * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * );
- * ```
+ * @deprecated
*/
get(
pipelineName: string,
@@ -140,7 +92,8 @@ export class Pipelines extends APIResource {
}
/**
- * Describes the configuration of a pipeline.
+ * @deprecated [DEPRECATED] Describes the configuration of a pipeline. Use the new
+ * streams/sinks/pipelines API instead.
*/
export interface PipelineCreateResponse {
/**
@@ -238,6 +191,10 @@ export namespace PipelineCreateResponse {
}
}
+ /**
+ * @deprecated [DEPRECATED] HTTP source configuration. Use the new streams API
+ * instead.
+ */
export interface CloudflarePipelinesWorkersPipelinesHTTPSource {
/**
* Specifies the format of source data.
@@ -263,6 +220,10 @@ export namespace PipelineCreateResponse {
}
}
+ /**
+ * @deprecated [DEPRECATED] Worker binding source configuration. Use the new
+ * streams API instead.
+ */
export interface CloudflarePipelinesWorkersPipelinesBindingSource {
/**
* Specifies the format of source data.
@@ -274,7 +235,8 @@ export namespace PipelineCreateResponse {
}
/**
- * Describes the configuration of a pipeline.
+ * @deprecated [DEPRECATED] Describes the configuration of a pipeline. Use the new
+ * streams/sinks/pipelines API instead.
*/
export interface PipelineUpdateResponse {
/**
@@ -372,6 +334,10 @@ export namespace PipelineUpdateResponse {
}
}
+ /**
+ * @deprecated [DEPRECATED] HTTP source configuration. Use the new streams API
+ * instead.
+ */
export interface CloudflarePipelinesWorkersPipelinesHTTPSource {
/**
* Specifies the format of source data.
@@ -397,6 +363,10 @@ export namespace PipelineUpdateResponse {
}
}
+ /**
+ * @deprecated [DEPRECATED] Worker binding source configuration. Use the new
+ * streams API instead.
+ */
export interface CloudflarePipelinesWorkersPipelinesBindingSource {
/**
* Specifies the format of source data.
@@ -442,7 +412,8 @@ export namespace PipelineListResponse {
}
/**
- * Describes the configuration of a pipeline.
+ * @deprecated [DEPRECATED] Describes the configuration of a pipeline. Use the new
+ * streams/sinks/pipelines API instead.
*/
export interface Result {
/**
@@ -540,6 +511,10 @@ export namespace PipelineListResponse {
}
}
+ /**
+ * @deprecated [DEPRECATED] HTTP source configuration. Use the new streams API
+ * instead.
+ */
export interface CloudflarePipelinesWorkersPipelinesHTTPSource {
/**
* Specifies the format of source data.
@@ -565,6 +540,10 @@ export namespace PipelineListResponse {
}
}
+ /**
+ * @deprecated [DEPRECATED] Worker binding source configuration. Use the new
+ * streams API instead.
+ */
export interface CloudflarePipelinesWorkersPipelinesBindingSource {
/**
* Specifies the format of source data.
@@ -577,7 +556,8 @@ export namespace PipelineListResponse {
}
/**
- * Describes the configuration of a pipeline.
+ * @deprecated [DEPRECATED] Describes the configuration of a pipeline. Use the new
+ * streams/sinks/pipelines API instead.
*/
export interface PipelineGetResponse {
/**
@@ -675,6 +655,10 @@ export namespace PipelineGetResponse {
}
}
+ /**
+ * @deprecated [DEPRECATED] HTTP source configuration. Use the new streams API
+ * instead.
+ */
export interface CloudflarePipelinesWorkersPipelinesHTTPSource {
/**
* Specifies the format of source data.
@@ -700,6 +684,10 @@ export namespace PipelineGetResponse {
}
}
+ /**
+ * @deprecated [DEPRECATED] Worker binding source configuration. Use the new
+ * streams API instead.
+ */
export interface CloudflarePipelinesWorkersPipelinesBindingSource {
/**
* Specifies the format of source data.
@@ -821,6 +809,10 @@ export namespace PipelineCreateParams {
}
}
+ /**
+ * @deprecated [DEPRECATED] HTTP source configuration. Use the new streams API
+ * instead.
+ */
export interface CloudflarePipelinesWorkersPipelinesHTTPSource {
/**
* Specifies the format of source data.
@@ -846,6 +838,10 @@ export namespace PipelineCreateParams {
}
}
+ /**
+ * @deprecated [DEPRECATED] Worker binding source configuration. Use the new
+ * streams API instead.
+ */
export interface CloudflarePipelinesWorkersPipelinesBindingSource {
/**
* Specifies the format of source data.
@@ -967,6 +963,10 @@ export namespace PipelineUpdateParams {
}
}
+ /**
+ * @deprecated [DEPRECATED] HTTP source configuration. Use the new streams API
+ * instead.
+ */
export interface CloudflarePipelinesWorkersPipelinesHTTPSource {
/**
* Specifies the format of source data.
@@ -992,6 +992,10 @@ export namespace PipelineUpdateParams {
}
}
+ /**
+ * @deprecated [DEPRECATED] Worker binding source configuration. Use the new
+ * streams API instead.
+ */
export interface CloudflarePipelinesWorkersPipelinesBindingSource {
/**
* Specifies the format of source data.
diff --git a/src/resources/queues/consumers.ts b/src/resources/queues/consumers.ts
index 43eae71410..93596e00ee 100644
--- a/src/resources/queues/consumers.ts
+++ b/src/resources/queues/consumers.ts
@@ -106,33 +106,6 @@ export class Consumers extends APIResource {
const { account_id } = params;
return this._client.delete(`/accounts/${account_id}/queues/${queueId}/consumers/${consumerId}`, options);
}
-
- /**
- * Fetches the consumer for a queue by consumer id
- *
- * @example
- * ```ts
- * const consumer = await client.queues.consumers.get(
- * '023e105f4ecef8ad9ca31a8372d0c353',
- * '023e105f4ecef8ad9ca31a8372d0c353',
- * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * );
- * ```
- */
- get(
- queueId: string,
- consumerId: string,
- params: ConsumerGetParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id } = params;
- return (
- this._client.get(
- `/accounts/${account_id}/queues/${queueId}/consumers/${consumerId}`,
- options,
- ) as Core.APIPromise<{ result: Consumer }>
- )._thenUnwrap((obj) => obj.result);
- }
}
export class ConsumersSinglePage extends SinglePage {}
@@ -491,13 +464,6 @@ export interface ConsumerDeleteParams {
account_id: string;
}
-export interface ConsumerGetParams {
- /**
- * A Resource identifier.
- */
- account_id: string;
-}
-
Consumers.ConsumersSinglePage = ConsumersSinglePage;
export declare namespace Consumers {
@@ -509,6 +475,5 @@ export declare namespace Consumers {
type ConsumerUpdateParams as ConsumerUpdateParams,
type ConsumerListParams as ConsumerListParams,
type ConsumerDeleteParams as ConsumerDeleteParams,
- type ConsumerGetParams as ConsumerGetParams,
};
}
diff --git a/src/resources/queues/index.ts b/src/resources/queues/index.ts
index ebf2923861..32568cd469 100644
--- a/src/resources/queues/index.ts
+++ b/src/resources/queues/index.ts
@@ -9,30 +9,15 @@ export {
type ConsumerUpdateParams,
type ConsumerListParams,
type ConsumerDeleteParams,
- type ConsumerGetParams,
} from './consumers';
export {
+ MessagePullResponsesSinglePage,
Messages,
type MessageAckResponse,
- type MessageBulkPushResponse,
type MessagePullResponse,
- type MessagePushResponse,
type MessageAckParams,
- type MessageBulkPushParams,
type MessagePullParams,
- type MessagePushParams,
} from './messages';
export { Purge, type PurgeStatusResponse, type PurgeStartParams, type PurgeStatusParams } from './purge';
export { Queues } from './queues';
-export {
- SubscriptionListResponsesV4PagePaginationArray,
- Subscriptions,
- type SubscriptionCreateResponse,
- type SubscriptionUpdateResponse,
- type SubscriptionListResponse,
- type SubscriptionDeleteResponse,
- type SubscriptionCreateParams,
- type SubscriptionUpdateParams,
- type SubscriptionListParams,
- type SubscriptionDeleteParams,
-} from './subscriptions';
+export { Subscriptions } from './subscriptions';
diff --git a/src/resources/queues/messages.ts b/src/resources/queues/messages.ts
index 3557b14318..eb406d134e 100644
--- a/src/resources/queues/messages.ts
+++ b/src/resources/queues/messages.ts
@@ -2,7 +2,7 @@
import { APIResource } from '../../resource';
import * as Core from '../../core';
-import * as Shared from '../shared';
+import { SinglePage } from '../../pagination';
export class Messages extends APIResource {
/**
@@ -30,75 +30,36 @@ export class Messages extends APIResource {
)._thenUnwrap((obj) => obj.result);
}
- /**
- * Push a batch of message to a Queue
- *
- * @example
- * ```ts
- * const response = await client.queues.messages.bulkPush(
- * '023e105f4ecef8ad9ca31a8372d0c353',
- * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * );
- * ```
- */
- bulkPush(
- queueId: string,
- params: MessageBulkPushParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id, ...body } = params;
- return this._client.post(`/accounts/${account_id}/queues/${queueId}/messages/batch`, {
- body,
- ...options,
- });
- }
-
/**
* Pull a batch of messages from a Queue
*
* @example
* ```ts
- * const response = await client.queues.messages.pull(
+ * // Automatically fetches more pages as needed.
+ * for await (const messagePullResponse of client.queues.messages.pull(
* '023e105f4ecef8ad9ca31a8372d0c353',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * );
+ * )) {
+ * // ...
+ * }
* ```
*/
pull(
queueId: string,
params: MessagePullParams,
options?: Core.RequestOptions,
- ): Core.APIPromise {
+ ): Core.PagePromise {
const { account_id, ...body } = params;
- return (
- this._client.post(`/accounts/${account_id}/queues/${queueId}/messages/pull`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: MessagePullResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-
- /**
- * Push a message to a Queue
- *
- * @example
- * ```ts
- * const response = await client.queues.messages.push(
- * '023e105f4ecef8ad9ca31a8372d0c353',
- * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * );
- * ```
- */
- push(
- queueId: string,
- params: MessagePushParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id, ...body } = params;
- return this._client.post(`/accounts/${account_id}/queues/${queueId}/messages`, { body, ...options });
+ return this._client.getAPIList(
+ `/accounts/${account_id}/queues/${queueId}/messages/pull`,
+ MessagePullResponsesSinglePage,
+ { body, method: 'post', ...options },
+ );
}
}
+export class MessagePullResponsesSinglePage extends SinglePage {}
+
export interface MessageAckResponse {
/**
* The number of messages that were succesfully acknowledged.
@@ -113,55 +74,22 @@ export interface MessageAckResponse {
warnings?: Array;
}
-export interface MessageBulkPushResponse {
- errors?: Array;
+export interface MessagePullResponse {
+ id?: string;
- messages?: Array;
+ attempts?: number;
- /**
- * Indicates if the API call was successful or not.
- */
- success?: true;
-}
+ body?: string;
-export interface MessagePullResponse {
/**
- * The number of unacknowledged messages in the queue
+ * An ID that represents an "in-flight" message that has been pulled from a Queue.
+ * You must hold on to this ID and use it to acknowledge this message.
*/
- message_backlog_count?: number;
-
- messages?: Array;
-}
-
-export namespace MessagePullResponse {
- export interface Message {
- id?: string;
-
- attempts?: number;
+ lease_id?: string;
- body?: string;
+ metadata?: unknown;
- /**
- * An ID that represents an "in-flight" message that has been pulled from a Queue.
- * You must hold on to this ID and use it to acknowledge this message.
- */
- lease_id?: string;
-
- metadata?: unknown;
-
- timestamp_ms?: number;
- }
-}
-
-export interface MessagePushResponse {
- errors?: Array;
-
- messages?: Array;
-
- /**
- * Indicates if the API call was successful or not.
- */
- success?: true;
+ timestamp_ms?: number;
}
export interface MessageAckParams {
@@ -205,50 +133,6 @@ export namespace MessageAckParams {
}
}
-export interface MessageBulkPushParams {
- /**
- * Path param: A Resource identifier.
- */
- account_id: string;
-
- /**
- * Body param: The number of seconds to wait for attempting to deliver this batch
- * to consumers
- */
- delay_seconds?: number;
-
- /**
- * Body param:
- */
- messages?: Array;
-}
-
-export namespace MessageBulkPushParams {
- export interface MqQueueMessageText {
- body?: string;
-
- content_type?: 'text';
-
- /**
- * The number of seconds to wait for attempting to deliver this message to
- * consumers
- */
- delay_seconds?: number;
- }
-
- export interface MqQueueMessageJson {
- body?: unknown;
-
- content_type?: 'json';
-
- /**
- * The number of seconds to wait for attempting to deliver this message to
- * consumers
- */
- delay_seconds?: number;
- }
-}
-
export interface MessagePullParams {
/**
* Path param: A Resource identifier.
@@ -267,65 +151,14 @@ export interface MessagePullParams {
visibility_timeout_ms?: number;
}
-export type MessagePushParams = MessagePushParams.MqQueueMessageText | MessagePushParams.MqQueueMessageJson;
-
-export declare namespace MessagePushParams {
- export interface MqQueueMessageText {
- /**
- * Path param: A Resource identifier.
- */
- account_id: string;
-
- /**
- * Body param:
- */
- body?: string;
-
- /**
- * Body param:
- */
- content_type?: 'text';
-
- /**
- * Body param: The number of seconds to wait for attempting to deliver this message
- * to consumers
- */
- delay_seconds?: number;
- }
-
- export interface MqQueueMessageJson {
- /**
- * Path param: A Resource identifier.
- */
- account_id: string;
-
- /**
- * Body param:
- */
- body?: unknown;
-
- /**
- * Body param:
- */
- content_type?: 'json';
-
- /**
- * Body param: The number of seconds to wait for attempting to deliver this message
- * to consumers
- */
- delay_seconds?: number;
- }
-}
+Messages.MessagePullResponsesSinglePage = MessagePullResponsesSinglePage;
export declare namespace Messages {
export {
type MessageAckResponse as MessageAckResponse,
- type MessageBulkPushResponse as MessageBulkPushResponse,
type MessagePullResponse as MessagePullResponse,
- type MessagePushResponse as MessagePushResponse,
+ MessagePullResponsesSinglePage as MessagePullResponsesSinglePage,
type MessageAckParams as MessageAckParams,
- type MessageBulkPushParams as MessageBulkPushParams,
type MessagePullParams as MessagePullParams,
- type MessagePushParams as MessagePushParams,
};
}
diff --git a/src/resources/queues/queues.ts b/src/resources/queues/queues.ts
index 667ab7a44a..15d1651711 100644
--- a/src/resources/queues/queues.ts
+++ b/src/resources/queues/queues.ts
@@ -9,7 +9,6 @@ import {
ConsumerCreateParams,
ConsumerDeleteParams,
ConsumerDeleteResponse,
- ConsumerGetParams,
ConsumerListParams,
ConsumerUpdateParams,
Consumers,
@@ -19,29 +18,15 @@ import * as MessagesAPI from './messages';
import {
MessageAckParams,
MessageAckResponse,
- MessageBulkPushParams,
- MessageBulkPushResponse,
MessagePullParams,
MessagePullResponse,
- MessagePushParams,
- MessagePushResponse,
+ MessagePullResponsesSinglePage,
Messages,
} from './messages';
import * as PurgeAPI from './purge';
import { Purge, PurgeStartParams, PurgeStatusParams, PurgeStatusResponse } from './purge';
import * as SubscriptionsAPI from './subscriptions';
-import {
- SubscriptionCreateParams,
- SubscriptionCreateResponse,
- SubscriptionDeleteParams,
- SubscriptionDeleteResponse,
- SubscriptionListParams,
- SubscriptionListResponse,
- SubscriptionListResponsesV4PagePaginationArray,
- SubscriptionUpdateParams,
- SubscriptionUpdateResponse,
- Subscriptions,
-} from './subscriptions';
+import { Subscriptions } from './subscriptions';
import { SinglePage } from '../../pagination';
export class Queues extends APIResource {
@@ -343,11 +328,11 @@ export interface QueueGetParams {
Queues.QueuesSinglePage = QueuesSinglePage;
Queues.Messages = Messages;
+Queues.MessagePullResponsesSinglePage = MessagePullResponsesSinglePage;
Queues.Purge = Purge;
Queues.Consumers = Consumers;
Queues.ConsumersSinglePage = ConsumersSinglePage;
Queues.Subscriptions = Subscriptions;
-Queues.SubscriptionListResponsesV4PagePaginationArray = SubscriptionListResponsesV4PagePaginationArray;
export declare namespace Queues {
export {
@@ -365,13 +350,10 @@ export declare namespace Queues {
export {
Messages as Messages,
type MessageAckResponse as MessageAckResponse,
- type MessageBulkPushResponse as MessageBulkPushResponse,
type MessagePullResponse as MessagePullResponse,
- type MessagePushResponse as MessagePushResponse,
+ MessagePullResponsesSinglePage as MessagePullResponsesSinglePage,
type MessageAckParams as MessageAckParams,
- type MessageBulkPushParams as MessageBulkPushParams,
type MessagePullParams as MessagePullParams,
- type MessagePushParams as MessagePushParams,
};
export {
@@ -390,19 +372,7 @@ export declare namespace Queues {
type ConsumerUpdateParams as ConsumerUpdateParams,
type ConsumerListParams as ConsumerListParams,
type ConsumerDeleteParams as ConsumerDeleteParams,
- type ConsumerGetParams as ConsumerGetParams,
};
- export {
- Subscriptions as Subscriptions,
- type SubscriptionCreateResponse as SubscriptionCreateResponse,
- type SubscriptionUpdateResponse as SubscriptionUpdateResponse,
- type SubscriptionListResponse as SubscriptionListResponse,
- type SubscriptionDeleteResponse as SubscriptionDeleteResponse,
- SubscriptionListResponsesV4PagePaginationArray as SubscriptionListResponsesV4PagePaginationArray,
- type SubscriptionCreateParams as SubscriptionCreateParams,
- type SubscriptionUpdateParams as SubscriptionUpdateParams,
- type SubscriptionListParams as SubscriptionListParams,
- type SubscriptionDeleteParams as SubscriptionDeleteParams,
- };
+ export { Subscriptions as Subscriptions };
}
diff --git a/src/resources/queues/subscriptions.ts b/src/resources/queues/subscriptions.ts
index 3bb405e3fc..42d6ea9ea6 100644
--- a/src/resources/queues/subscriptions.ts
+++ b/src/resources/queues/subscriptions.ts
@@ -1,874 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
-import * as Core from '../../core';
-import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../pagination';
-export class Subscriptions extends APIResource {
- /**
- * Create a new event subscription for a queue
- *
- * @example
- * ```ts
- * const subscription =
- * await client.queues.subscriptions.create({
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * });
- * ```
- */
- create(
- params: SubscriptionCreateParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id, ...body } = params;
- return (
- this._client.post(`/accounts/${account_id}/event_subscriptions/subscriptions`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: SubscriptionCreateResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-
- /**
- * Update an existing event subscription
- *
- * @example
- * ```ts
- * const subscription =
- * await client.queues.subscriptions.update(
- * '023e105f4ecef8ad9ca31a8372d0c353',
- * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * );
- * ```
- */
- update(
- subscriptionId: string,
- params: SubscriptionUpdateParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id, ...body } = params;
- return (
- this._client.patch(`/accounts/${account_id}/event_subscriptions/subscriptions/${subscriptionId}`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: SubscriptionUpdateResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-
- /**
- * Get a paginated list of event subscriptions with optional sorting and filtering
- *
- * @example
- * ```ts
- * // Automatically fetches more pages as needed.
- * for await (const subscriptionListResponse of client.queues.subscriptions.list(
- * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * )) {
- * // ...
- * }
- * ```
- */
- list(
- params: SubscriptionListParams,
- options?: Core.RequestOptions,
- ): Core.PagePromise {
- const { account_id, ...query } = params;
- return this._client.getAPIList(
- `/accounts/${account_id}/event_subscriptions/subscriptions`,
- SubscriptionListResponsesV4PagePaginationArray,
- { query, ...options },
- );
- }
-
- /**
- * Delete an existing event subscription
- *
- * @example
- * ```ts
- * const subscription =
- * await client.queues.subscriptions.delete(
- * '023e105f4ecef8ad9ca31a8372d0c353',
- * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * );
- * ```
- */
- delete(
- subscriptionId: string,
- params: SubscriptionDeleteParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id } = params;
- return (
- this._client.delete(
- `/accounts/${account_id}/event_subscriptions/subscriptions/${subscriptionId}`,
- options,
- ) as Core.APIPromise<{ result: SubscriptionDeleteResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-}
-
-export class SubscriptionListResponsesV4PagePaginationArray extends V4PagePaginationArray {}
-
-export interface SubscriptionCreateResponse {
- /**
- * Unique identifier for the subscription
- */
- id: string;
-
- /**
- * When the subscription was created
- */
- created_at: string;
-
- /**
- * Destination configuration for the subscription
- */
- destination: SubscriptionCreateResponse.Destination;
-
- /**
- * Whether the subscription is active
- */
- enabled: boolean;
-
- /**
- * List of event types this subscription handles
- */
- events: Array;
-
- /**
- * When the subscription was last modified
- */
- modified_at: string;
-
- /**
- * Name of the subscription
- */
- name: string;
-
- /**
- * Source configuration for the subscription
- */
- source:
- | SubscriptionCreateResponse.MqEventSourceImages
- | SubscriptionCreateResponse.MqEventSourceKV
- | SubscriptionCreateResponse.MqEventSourceR2
- | SubscriptionCreateResponse.MqEventSourceSuperSlurper
- | SubscriptionCreateResponse.MqEventSourceVectorize
- | SubscriptionCreateResponse.MqEventSourceWorkersAIModel
- | SubscriptionCreateResponse.MqEventSourceWorkersBuildsWorker
- | SubscriptionCreateResponse.MqEventSourceWorkflowsWorkflow;
-}
-
-export namespace SubscriptionCreateResponse {
- /**
- * Destination configuration for the subscription
- */
- export interface Destination {
- /**
- * ID of the target queue
- */
- queue_id: string;
-
- /**
- * Type of destination
- */
- type: 'queues.queue';
- }
-
- export interface MqEventSourceImages {
- /**
- * Type of source
- */
- type?: 'images';
- }
-
- export interface MqEventSourceKV {
- /**
- * Type of source
- */
- type?: 'kv';
- }
-
- export interface MqEventSourceR2 {
- /**
- * Type of source
- */
- type?: 'r2';
- }
-
- export interface MqEventSourceSuperSlurper {
- /**
- * Type of source
- */
- type?: 'superSlurper';
- }
-
- export interface MqEventSourceVectorize {
- /**
- * Type of source
- */
- type?: 'vectorize';
- }
-
- export interface MqEventSourceWorkersAIModel {
- /**
- * Name of the Workers AI model
- */
- model_name?: string;
-
- /**
- * Type of source
- */
- type?: 'workersAi.model';
- }
-
- export interface MqEventSourceWorkersBuildsWorker {
- /**
- * Type of source
- */
- type?: 'workersBuilds.worker';
-
- /**
- * Name of the worker
- */
- worker_name?: string;
- }
-
- export interface MqEventSourceWorkflowsWorkflow {
- /**
- * Type of source
- */
- type?: 'workflows.workflow';
-
- /**
- * Name of the workflow
- */
- workflow_name?: string;
- }
-}
-
-export interface SubscriptionUpdateResponse {
- /**
- * Unique identifier for the subscription
- */
- id: string;
-
- /**
- * When the subscription was created
- */
- created_at: string;
-
- /**
- * Destination configuration for the subscription
- */
- destination: SubscriptionUpdateResponse.Destination;
-
- /**
- * Whether the subscription is active
- */
- enabled: boolean;
-
- /**
- * List of event types this subscription handles
- */
- events: Array;
-
- /**
- * When the subscription was last modified
- */
- modified_at: string;
-
- /**
- * Name of the subscription
- */
- name: string;
-
- /**
- * Source configuration for the subscription
- */
- source:
- | SubscriptionUpdateResponse.MqEventSourceImages
- | SubscriptionUpdateResponse.MqEventSourceKV
- | SubscriptionUpdateResponse.MqEventSourceR2
- | SubscriptionUpdateResponse.MqEventSourceSuperSlurper
- | SubscriptionUpdateResponse.MqEventSourceVectorize
- | SubscriptionUpdateResponse.MqEventSourceWorkersAIModel
- | SubscriptionUpdateResponse.MqEventSourceWorkersBuildsWorker
- | SubscriptionUpdateResponse.MqEventSourceWorkflowsWorkflow;
-}
-
-export namespace SubscriptionUpdateResponse {
- /**
- * Destination configuration for the subscription
- */
- export interface Destination {
- /**
- * ID of the target queue
- */
- queue_id: string;
-
- /**
- * Type of destination
- */
- type: 'queues.queue';
- }
-
- export interface MqEventSourceImages {
- /**
- * Type of source
- */
- type?: 'images';
- }
-
- export interface MqEventSourceKV {
- /**
- * Type of source
- */
- type?: 'kv';
- }
-
- export interface MqEventSourceR2 {
- /**
- * Type of source
- */
- type?: 'r2';
- }
-
- export interface MqEventSourceSuperSlurper {
- /**
- * Type of source
- */
- type?: 'superSlurper';
- }
-
- export interface MqEventSourceVectorize {
- /**
- * Type of source
- */
- type?: 'vectorize';
- }
-
- export interface MqEventSourceWorkersAIModel {
- /**
- * Name of the Workers AI model
- */
- model_name?: string;
-
- /**
- * Type of source
- */
- type?: 'workersAi.model';
- }
-
- export interface MqEventSourceWorkersBuildsWorker {
- /**
- * Type of source
- */
- type?: 'workersBuilds.worker';
-
- /**
- * Name of the worker
- */
- worker_name?: string;
- }
-
- export interface MqEventSourceWorkflowsWorkflow {
- /**
- * Type of source
- */
- type?: 'workflows.workflow';
-
- /**
- * Name of the workflow
- */
- workflow_name?: string;
- }
-}
-
-export interface SubscriptionListResponse {
- /**
- * Unique identifier for the subscription
- */
- id: string;
-
- /**
- * When the subscription was created
- */
- created_at: string;
-
- /**
- * Destination configuration for the subscription
- */
- destination: SubscriptionListResponse.Destination;
-
- /**
- * Whether the subscription is active
- */
- enabled: boolean;
-
- /**
- * List of event types this subscription handles
- */
- events: Array;
-
- /**
- * When the subscription was last modified
- */
- modified_at: string;
-
- /**
- * Name of the subscription
- */
- name: string;
-
- /**
- * Source configuration for the subscription
- */
- source:
- | SubscriptionListResponse.MqEventSourceImages
- | SubscriptionListResponse.MqEventSourceKV
- | SubscriptionListResponse.MqEventSourceR2
- | SubscriptionListResponse.MqEventSourceSuperSlurper
- | SubscriptionListResponse.MqEventSourceVectorize
- | SubscriptionListResponse.MqEventSourceWorkersAIModel
- | SubscriptionListResponse.MqEventSourceWorkersBuildsWorker
- | SubscriptionListResponse.MqEventSourceWorkflowsWorkflow;
-}
-
-export namespace SubscriptionListResponse {
- /**
- * Destination configuration for the subscription
- */
- export interface Destination {
- /**
- * ID of the target queue
- */
- queue_id: string;
-
- /**
- * Type of destination
- */
- type: 'queues.queue';
- }
-
- export interface MqEventSourceImages {
- /**
- * Type of source
- */
- type?: 'images';
- }
-
- export interface MqEventSourceKV {
- /**
- * Type of source
- */
- type?: 'kv';
- }
-
- export interface MqEventSourceR2 {
- /**
- * Type of source
- */
- type?: 'r2';
- }
-
- export interface MqEventSourceSuperSlurper {
- /**
- * Type of source
- */
- type?: 'superSlurper';
- }
-
- export interface MqEventSourceVectorize {
- /**
- * Type of source
- */
- type?: 'vectorize';
- }
-
- export interface MqEventSourceWorkersAIModel {
- /**
- * Name of the Workers AI model
- */
- model_name?: string;
-
- /**
- * Type of source
- */
- type?: 'workersAi.model';
- }
-
- export interface MqEventSourceWorkersBuildsWorker {
- /**
- * Type of source
- */
- type?: 'workersBuilds.worker';
-
- /**
- * Name of the worker
- */
- worker_name?: string;
- }
-
- export interface MqEventSourceWorkflowsWorkflow {
- /**
- * Type of source
- */
- type?: 'workflows.workflow';
-
- /**
- * Name of the workflow
- */
- workflow_name?: string;
- }
-}
-
-export interface SubscriptionDeleteResponse {
- /**
- * Unique identifier for the subscription
- */
- id: string;
-
- /**
- * When the subscription was created
- */
- created_at: string;
-
- /**
- * Destination configuration for the subscription
- */
- destination: SubscriptionDeleteResponse.Destination;
-
- /**
- * Whether the subscription is active
- */
- enabled: boolean;
-
- /**
- * List of event types this subscription handles
- */
- events: Array;
-
- /**
- * When the subscription was last modified
- */
- modified_at: string;
-
- /**
- * Name of the subscription
- */
- name: string;
-
- /**
- * Source configuration for the subscription
- */
- source:
- | SubscriptionDeleteResponse.MqEventSourceImages
- | SubscriptionDeleteResponse.MqEventSourceKV
- | SubscriptionDeleteResponse.MqEventSourceR2
- | SubscriptionDeleteResponse.MqEventSourceSuperSlurper
- | SubscriptionDeleteResponse.MqEventSourceVectorize
- | SubscriptionDeleteResponse.MqEventSourceWorkersAIModel
- | SubscriptionDeleteResponse.MqEventSourceWorkersBuildsWorker
- | SubscriptionDeleteResponse.MqEventSourceWorkflowsWorkflow;
-}
-
-export namespace SubscriptionDeleteResponse {
- /**
- * Destination configuration for the subscription
- */
- export interface Destination {
- /**
- * ID of the target queue
- */
- queue_id: string;
-
- /**
- * Type of destination
- */
- type: 'queues.queue';
- }
-
- export interface MqEventSourceImages {
- /**
- * Type of source
- */
- type?: 'images';
- }
-
- export interface MqEventSourceKV {
- /**
- * Type of source
- */
- type?: 'kv';
- }
-
- export interface MqEventSourceR2 {
- /**
- * Type of source
- */
- type?: 'r2';
- }
-
- export interface MqEventSourceSuperSlurper {
- /**
- * Type of source
- */
- type?: 'superSlurper';
- }
-
- export interface MqEventSourceVectorize {
- /**
- * Type of source
- */
- type?: 'vectorize';
- }
-
- export interface MqEventSourceWorkersAIModel {
- /**
- * Name of the Workers AI model
- */
- model_name?: string;
-
- /**
- * Type of source
- */
- type?: 'workersAi.model';
- }
-
- export interface MqEventSourceWorkersBuildsWorker {
- /**
- * Type of source
- */
- type?: 'workersBuilds.worker';
-
- /**
- * Name of the worker
- */
- worker_name?: string;
- }
-
- export interface MqEventSourceWorkflowsWorkflow {
- /**
- * Type of source
- */
- type?: 'workflows.workflow';
-
- /**
- * Name of the workflow
- */
- workflow_name?: string;
- }
-}
-
-export interface SubscriptionCreateParams {
- /**
- * Path param: A Resource identifier.
- */
- account_id: string;
-
- /**
- * Body param: Destination configuration for the subscription
- */
- destination?: SubscriptionCreateParams.Destination;
-
- /**
- * Body param: Whether the subscription is active
- */
- enabled?: boolean;
-
- /**
- * Body param: List of event types this subscription handles
- */
- events?: Array;
-
- /**
- * Body param: Name of the subscription
- */
- name?: string;
-
- /**
- * Body param: Source configuration for the subscription
- */
- source?:
- | SubscriptionCreateParams.MqEventSourceImages
- | SubscriptionCreateParams.MqEventSourceKV
- | SubscriptionCreateParams.MqEventSourceR2
- | SubscriptionCreateParams.MqEventSourceSuperSlurper
- | SubscriptionCreateParams.MqEventSourceVectorize
- | SubscriptionCreateParams.MqEventSourceWorkersAIModel
- | SubscriptionCreateParams.MqEventSourceWorkersBuildsWorker
- | SubscriptionCreateParams.MqEventSourceWorkflowsWorkflow;
-}
-
-export namespace SubscriptionCreateParams {
- /**
- * Destination configuration for the subscription
- */
- export interface Destination {
- /**
- * ID of the target queue
- */
- queue_id: string;
-
- /**
- * Type of destination
- */
- type: 'queues.queue';
- }
-
- export interface MqEventSourceImages {
- /**
- * Type of source
- */
- type?: 'images';
- }
-
- export interface MqEventSourceKV {
- /**
- * Type of source
- */
- type?: 'kv';
- }
-
- export interface MqEventSourceR2 {
- /**
- * Type of source
- */
- type?: 'r2';
- }
-
- export interface MqEventSourceSuperSlurper {
- /**
- * Type of source
- */
- type?: 'superSlurper';
- }
-
- export interface MqEventSourceVectorize {
- /**
- * Type of source
- */
- type?: 'vectorize';
- }
-
- export interface MqEventSourceWorkersAIModel {
- /**
- * Name of the Workers AI model
- */
- model_name?: string;
-
- /**
- * Type of source
- */
- type?: 'workersAi.model';
- }
-
- export interface MqEventSourceWorkersBuildsWorker {
- /**
- * Type of source
- */
- type?: 'workersBuilds.worker';
-
- /**
- * Name of the worker
- */
- worker_name?: string;
- }
-
- export interface MqEventSourceWorkflowsWorkflow {
- /**
- * Type of source
- */
- type?: 'workflows.workflow';
-
- /**
- * Name of the workflow
- */
- workflow_name?: string;
- }
-}
-
-export interface SubscriptionUpdateParams {
- /**
- * Path param: A Resource identifier.
- */
- account_id: string;
-
- /**
- * Body param: Destination configuration for the subscription
- */
- destination?: SubscriptionUpdateParams.Destination;
-
- /**
- * Body param: Whether the subscription is active
- */
- enabled?: boolean;
-
- /**
- * Body param: List of event types this subscription handles
- */
- events?: Array;
-
- /**
- * Body param: Name of the subscription
- */
- name?: string;
-}
-
-export namespace SubscriptionUpdateParams {
- /**
- * Destination configuration for the subscription
- */
- export interface Destination {
- /**
- * ID of the target queue
- */
- queue_id: string;
-
- /**
- * Type of destination
- */
- type: 'queues.queue';
- }
-}
-
-export interface SubscriptionListParams extends V4PagePaginationArrayParams {
- /**
- * Path param: A Resource identifier.
- */
- account_id: string;
-
- /**
- * Query param: Sort direction
- */
- direction?: 'asc' | 'desc';
-
- /**
- * Query param: Field to sort by
- */
- order?: 'created_at' | 'name' | 'enabled' | 'source';
-}
-
-export interface SubscriptionDeleteParams {
- /**
- * A Resource identifier.
- */
- account_id: string;
-}
-
-Subscriptions.SubscriptionListResponsesV4PagePaginationArray = SubscriptionListResponsesV4PagePaginationArray;
-
-export declare namespace Subscriptions {
- export {
- type SubscriptionCreateResponse as SubscriptionCreateResponse,
- type SubscriptionUpdateResponse as SubscriptionUpdateResponse,
- type SubscriptionListResponse as SubscriptionListResponse,
- type SubscriptionDeleteResponse as SubscriptionDeleteResponse,
- SubscriptionListResponsesV4PagePaginationArray as SubscriptionListResponsesV4PagePaginationArray,
- type SubscriptionCreateParams as SubscriptionCreateParams,
- type SubscriptionUpdateParams as SubscriptionUpdateParams,
- type SubscriptionListParams as SubscriptionListParams,
- type SubscriptionDeleteParams as SubscriptionDeleteParams,
- };
-}
+export class Subscriptions extends APIResource {}
diff --git a/src/resources/workers/observability/index.ts b/src/resources/workers/observability/index.ts
index 0caddd5ae3..f79888ffc4 100644
--- a/src/resources/workers/observability/index.ts
+++ b/src/resources/workers/observability/index.ts
@@ -1,14 +1,4 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
export { Observability } from './observability';
-export {
- TelemetryKeysResponsesSinglePage,
- TelemetryValuesResponsesSinglePage,
- Telemetry,
- type TelemetryKeysResponse,
- type TelemetryQueryResponse,
- type TelemetryValuesResponse,
- type TelemetryKeysParams,
- type TelemetryQueryParams,
- type TelemetryValuesParams,
-} from './telemetry';
+export { Telemetry } from './telemetry';
diff --git a/src/resources/workers/observability/observability.ts b/src/resources/workers/observability/observability.ts
index 67d35532a5..275786dba8 100644
--- a/src/resources/workers/observability/observability.ts
+++ b/src/resources/workers/observability/observability.ts
@@ -2,36 +2,14 @@
import { APIResource } from '../../../resource';
import * as TelemetryAPI from './telemetry';
-import {
- Telemetry,
- TelemetryKeysParams,
- TelemetryKeysResponse,
- TelemetryKeysResponsesSinglePage,
- TelemetryQueryParams,
- TelemetryQueryResponse,
- TelemetryValuesParams,
- TelemetryValuesResponse,
- TelemetryValuesResponsesSinglePage,
-} from './telemetry';
+import { Telemetry } from './telemetry';
export class Observability extends APIResource {
telemetry: TelemetryAPI.Telemetry = new TelemetryAPI.Telemetry(this._client);
}
Observability.Telemetry = Telemetry;
-Observability.TelemetryKeysResponsesSinglePage = TelemetryKeysResponsesSinglePage;
-Observability.TelemetryValuesResponsesSinglePage = TelemetryValuesResponsesSinglePage;
export declare namespace Observability {
- export {
- Telemetry as Telemetry,
- type TelemetryKeysResponse as TelemetryKeysResponse,
- type TelemetryQueryResponse as TelemetryQueryResponse,
- type TelemetryValuesResponse as TelemetryValuesResponse,
- TelemetryKeysResponsesSinglePage as TelemetryKeysResponsesSinglePage,
- TelemetryValuesResponsesSinglePage as TelemetryValuesResponsesSinglePage,
- type TelemetryKeysParams as TelemetryKeysParams,
- type TelemetryQueryParams as TelemetryQueryParams,
- type TelemetryValuesParams as TelemetryValuesParams,
- };
+ export { Telemetry as Telemetry };
}
diff --git a/src/resources/workers/observability/telemetry.ts b/src/resources/workers/observability/telemetry.ts
index 9467608603..1a79e6da8e 100644
--- a/src/resources/workers/observability/telemetry.ts
+++ b/src/resources/workers/observability/telemetry.ts
@@ -1,1541 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../resource';
-import * as Core from '../../../core';
-import { SinglePage } from '../../../pagination';
-export class Telemetry extends APIResource {
- /**
- * List all the keys in your telemetry events.
- *
- * @example
- * ```ts
- * // Automatically fetches more pages as needed.
- * for await (const telemetryKeysResponse of client.workers.observability.telemetry.keys(
- * { account_id: 'account_id' },
- * )) {
- * // ...
- * }
- * ```
- */
- keys(
- params: TelemetryKeysParams,
- options?: Core.RequestOptions,
- ): Core.PagePromise {
- const { account_id, ...body } = params;
- return this._client.getAPIList(
- `/accounts/${account_id}/workers/observability/telemetry/keys`,
- TelemetryKeysResponsesSinglePage,
- { body, method: 'post', ...options },
- );
- }
-
- /**
- * Runs a temporary or saved query
- *
- * @example
- * ```ts
- * const response =
- * await client.workers.observability.telemetry.query({
- * account_id: 'account_id',
- * queryId: 'queryId',
- * timeframe: { from: 0, to: 0 },
- * });
- * ```
- */
- query(
- params: TelemetryQueryParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id, ...body } = params;
- return (
- this._client.post(`/accounts/${account_id}/workers/observability/telemetry/query`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: TelemetryQueryResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-
- /**
- * List unique values found in your events
- *
- * @example
- * ```ts
- * // Automatically fetches more pages as needed.
- * for await (const telemetryValuesResponse of client.workers.observability.telemetry.values(
- * {
- * account_id: 'account_id',
- * datasets: ['string'],
- * key: 'key',
- * timeframe: { from: 0, to: 0 },
- * type: 'string',
- * },
- * )) {
- * // ...
- * }
- * ```
- */
- values(
- params: TelemetryValuesParams,
- options?: Core.RequestOptions,
- ): Core.PagePromise {
- const { account_id, ...body } = params;
- return this._client.getAPIList(
- `/accounts/${account_id}/workers/observability/telemetry/values`,
- TelemetryValuesResponsesSinglePage,
- { body, method: 'post', ...options },
- );
- }
-}
-
-export class TelemetryKeysResponsesSinglePage extends SinglePage {}
-
-export class TelemetryValuesResponsesSinglePage extends SinglePage {}
-
-export interface TelemetryKeysResponse {
- key: string;
-
- lastSeenAt: number;
-
- type: 'string' | 'boolean' | 'number';
-}
-
-export interface TelemetryQueryResponse {
- /**
- * A Workers Observability Query Object
- */
- run: TelemetryQueryResponse.Run;
-
- /**
- * The statistics object contains information about query performance from the
- * database, it does not include any network latency
- */
- statistics: TelemetryQueryResponse.Statistics;
-
- calculations?: Array;
-
- compare?: Array;
-
- events?: TelemetryQueryResponse.Events;
-
- invocations?: { [key: string]: Array };
-
- patterns?: Array;
-}
-
-export namespace TelemetryQueryResponse {
- /**
- * A Workers Observability Query Object
- */
- export interface Run {
- id: string;
-
- accountId: string;
-
- dry: boolean;
-
- /**
- * @deprecated
- */
- environmentId: string;
-
- granularity: number;
-
- query: Run.Query;
-
- status: 'STARTED' | 'COMPLETED';
-
- timeframe: Run.Timeframe;
-
- userId: string;
-
- /**
- * @deprecated
- */
- workspaceId: string;
-
- created?: string;
-
- statistics?: Run.Statistics;
-
- updated?: string;
- }
-
- export namespace Run {
- export interface Query {
- /**
- * ID of the query
- */
- id: string;
-
- created: string;
-
- description: string | null;
-
- /**
- * ID of your environment
- */
- environmentId: string;
-
- /**
- * Flag for alerts automatically created
- */
- generated: boolean | null;
-
- /**
- * Query name
- */
- name: string | null;
-
- parameters: Query.Parameters;
-
- updated: string;
-
- userId: string;
-
- /**
- * ID of your workspace
- */
- workspaceId: string;
- }
-
- export namespace Query {
- export interface Parameters {
- /**
- * Create Calculations to compute as part of the query.
- */
- calculations?: Array;
-
- /**
- * Set the Datasets to query. Leave it empty to query all the datasets.
- */
- datasets?: Array;
-
- /**
- * Set a Flag to describe how to combine the filters on the query.
- */
- filterCombination?: 'and' | 'or' | 'AND' | 'OR';
-
- /**
- * Configure the Filters to apply to the query.
- */
- filters?: Array;
-
- /**
- * Define how to group the results of the query.
- */
- groupBys?: Array;
-
- /**
- * Configure the Having clauses that filter on calculations in the query result.
- */
- havings?: Array;
-
- /**
- * Set a limit on the number of results / records returned by the query
- */
- limit?: number;
-
- /**
- * Define an expression to search using full-text search.
- */
- needle?: Parameters.Needle;
-
- /**
- * Configure the order of the results returned by the query.
- */
- orderBy?: Parameters.OrderBy;
- }
-
- export namespace Parameters {
- export interface Calculation {
- operator:
- | 'uniq'
- | 'count'
- | 'max'
- | 'min'
- | 'sum'
- | 'avg'
- | 'median'
- | 'p001'
- | 'p01'
- | 'p05'
- | 'p10'
- | 'p25'
- | 'p75'
- | 'p90'
- | 'p95'
- | 'p99'
- | 'p999'
- | 'stddev'
- | 'variance'
- | 'COUNT_DISTINCT'
- | 'COUNT'
- | 'MAX'
- | 'MIN'
- | 'SUM'
- | 'AVG'
- | 'MEDIAN'
- | 'P001'
- | 'P01'
- | 'P05'
- | 'P10'
- | 'P25'
- | 'P75'
- | 'P90'
- | 'P95'
- | 'P99'
- | 'P999'
- | 'STDDEV'
- | 'VARIANCE';
-
- alias?: string;
-
- key?: string;
-
- keyType?: 'string' | 'number' | 'boolean';
- }
-
- export interface Filter {
- key: string;
-
- operation:
- | 'includes'
- | 'not_includes'
- | 'starts_with'
- | 'regex'
- | 'exists'
- | 'is_null'
- | 'in'
- | 'not_in'
- | 'eq'
- | 'neq'
- | 'gt'
- | 'gte'
- | 'lt'
- | 'lte'
- | '='
- | '!='
- | '>'
- | '>='
- | '<'
- | '<='
- | 'INCLUDES'
- | 'DOES_NOT_INCLUDE'
- | 'MATCH_REGEX'
- | 'EXISTS'
- | 'DOES_NOT_EXIST'
- | 'IN'
- | 'NOT_IN'
- | 'STARTS_WITH';
-
- type: 'string' | 'number' | 'boolean';
-
- value?: string | number | boolean;
- }
-
- export interface GroupBy {
- type: 'string' | 'number' | 'boolean';
-
- value: string;
- }
-
- export interface Having {
- key: string;
-
- operation: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
-
- value: number;
- }
-
- /**
- * Define an expression to search using full-text search.
- */
- export interface Needle {
- value: string | number | boolean;
-
- isRegex?: boolean;
-
- matchCase?: boolean;
- }
-
- /**
- * Configure the order of the results returned by the query.
- */
- export interface OrderBy {
- /**
- * Configure which Calculation to order the results by.
- */
- value: string;
-
- /**
- * Set the order of the results
- */
- order?: 'asc' | 'desc';
- }
- }
- }
-
- export interface Timeframe {
- /**
- * Set the start time for your query using UNIX time in milliseconds.
- */
- from: number;
-
- /**
- * Set the end time for your query using UNIX time in milliseconds.
- */
- to: number;
- }
-
- export interface Statistics {
- /**
- * Number of uncompressed bytes read from the table.
- */
- bytes_read: number;
-
- /**
- * Time in seconds for the query to run.
- */
- elapsed: number;
-
- /**
- * Number of rows scanned from the table.
- */
- rows_read: number;
- }
- }
-
- /**
- * The statistics object contains information about query performance from the
- * database, it does not include any network latency
- */
- export interface Statistics {
- /**
- * Number of uncompressed bytes read from the table.
- */
- bytes_read: number;
-
- /**
- * Time in seconds for the query to run.
- */
- elapsed: number;
-
- /**
- * Number of rows scanned from the table.
- */
- rows_read: number;
- }
-
- export interface Calculation {
- aggregates: Array;
-
- calculation: string;
-
- series: Array;
-
- alias?: string;
- }
-
- export namespace Calculation {
- export interface Aggregate {
- count: number;
-
- interval: number;
-
- sampleInterval: number;
-
- value: number;
-
- groups?: Array;
- }
-
- export namespace Aggregate {
- export interface Group {
- key: string;
-
- value: string | number | boolean;
- }
- }
-
- export interface Series {
- data: Array;
-
- time: string;
- }
-
- export namespace Series {
- export interface Data {
- count: number;
-
- firstSeen: string;
-
- interval: number;
-
- lastSeen: string;
-
- sampleInterval: number;
-
- value: number;
-
- groups?: Array;
- }
-
- export namespace Data {
- export interface Group {
- key: string;
-
- value: string | number | boolean;
- }
- }
- }
- }
-
- export interface Compare {
- aggregates: Array;
-
- calculation: string;
-
- series: Array;
-
- alias?: string;
- }
-
- export namespace Compare {
- export interface Aggregate {
- count: number;
-
- interval: number;
-
- sampleInterval: number;
-
- value: number;
-
- groups?: Array;
- }
-
- export namespace Aggregate {
- export interface Group {
- key: string;
-
- value: string | number | boolean;
- }
- }
-
- export interface Series {
- data: Array;
-
- time: string;
- }
-
- export namespace Series {
- export interface Data {
- count: number;
-
- firstSeen: string;
-
- interval: number;
-
- lastSeen: string;
-
- sampleInterval: number;
-
- value: number;
-
- groups?: Array;
- }
-
- export namespace Data {
- export interface Group {
- key: string;
-
- value: string | number | boolean;
- }
- }
- }
- }
-
- export interface Events {
- count?: number;
-
- events?: Array;
-
- fields?: Array;
-
- series?: Array;
- }
-
- export namespace Events {
- /**
- * The data structure of a telemetry event
- */
- export interface Event {
- $metadata: Event.Metadata;
-
- dataset: string;
-
- source: string | unknown;
-
- timestamp: number;
-
- /**
- * Cloudflare Workers event information enriches your logs so you can easily
- * identify and debug issues.
- */
- $workers?: Event.UnionMember0 | Event.UnionMember1;
- }
-
- export namespace Event {
- export interface Metadata {
- id: string;
-
- account?: string;
-
- cloudService?: string;
-
- coldStart?: number;
-
- cost?: number;
-
- duration?: number;
-
- endTime?: number;
-
- error?: string;
-
- errorTemplate?: string;
-
- fingerprint?: string;
-
- level?: string;
-
- message?: string;
-
- messageTemplate?: string;
-
- metricName?: string;
-
- origin?: string;
-
- parentSpanId?: string;
-
- provider?: string;
-
- region?: string;
-
- requestId?: string;
-
- service?: string;
-
- spanId?: string;
-
- spanName?: string;
-
- stackId?: string;
-
- startTime?: number;
-
- statusCode?: number;
-
- traceDuration?: number;
-
- traceId?: string;
-
- trigger?: string;
-
- type?: string;
-
- url?: string;
- }
-
- export interface UnionMember0 {
- eventType:
- | 'fetch'
- | 'scheduled'
- | 'alarm'
- | 'cron'
- | 'queue'
- | 'email'
- | 'tail'
- | 'rpc'
- | 'websocket'
- | 'unknown';
-
- outcome: string;
-
- requestId: string;
-
- scriptName: string;
-
- entrypoint?: string;
-
- event?: {
- [key: string]:
- | string
- | number
- | boolean
- | {
- [key: string]:
- | string
- | number
- | boolean
- | { [key: string]: Array | string | number | boolean };
- };
- };
-
- executionModel?: 'durableObject' | 'stateless';
-
- scriptVersion?: UnionMember0.ScriptVersion;
-
- truncated?: boolean;
- }
-
- export namespace UnionMember0 {
- export interface ScriptVersion {
- id?: string;
-
- message?: string;
-
- tag?: string;
- }
- }
-
- export interface UnionMember1 {
- cpuTimeMs: number;
-
- eventType:
- | 'fetch'
- | 'scheduled'
- | 'alarm'
- | 'cron'
- | 'queue'
- | 'email'
- | 'tail'
- | 'rpc'
- | 'websocket'
- | 'unknown';
-
- outcome: string;
-
- requestId: string;
-
- scriptName: string;
-
- wallTimeMs: number;
-
- diagnosticsChannelEvents?: Array;
-
- dispatchNamespace?: string;
-
- entrypoint?: string;
-
- event?: { [key: string]: string | number | boolean };
-
- executionModel?: 'durableObject' | 'stateless';
-
- scriptVersion?: UnionMember1.ScriptVersion;
-
- truncated?: boolean;
- }
-
- export namespace UnionMember1 {
- export interface DiagnosticsChannelEvent {
- channel: string;
-
- message: string;
-
- timestamp: number;
- }
-
- export interface ScriptVersion {
- id?: string;
-
- message?: string;
-
- tag?: string;
- }
- }
- }
-
- export interface Field {
- key: string;
-
- type: string;
- }
-
- export interface Series {
- data: Array;
-
- time: string;
- }
-
- export namespace Series {
- export interface Data {
- aggregates: Data.Aggregates;
-
- count: number;
-
- interval: number;
-
- sampleInterval: number;
-
- errors?: number;
-
- /**
- * Groups in the query results.
- */
- groups?: { [key: string]: string | number | boolean };
- }
-
- export namespace Data {
- export interface Aggregates {
- /**
- * @deprecated
- */
- _count: number;
-
- /**
- * @deprecated
- */
- _firstSeen: string;
-
- /**
- * @deprecated
- */
- _interval: number;
-
- /**
- * @deprecated
- */
- _lastSeen: string;
-
- /**
- * @deprecated
- */
- bin?: unknown;
- }
- }
- }
- }
-
- /**
- * The data structure of a telemetry event
- */
- export interface Invocation {
- $metadata: Invocation.Metadata;
-
- dataset: string;
-
- source: string | unknown;
-
- timestamp: number;
-
- /**
- * Cloudflare Workers event information enriches your logs so you can easily
- * identify and debug issues.
- */
- $workers?: Invocation.UnionMember0 | Invocation.UnionMember1;
- }
-
- export namespace Invocation {
- export interface Metadata {
- id: string;
-
- account?: string;
-
- cloudService?: string;
-
- coldStart?: number;
-
- cost?: number;
-
- duration?: number;
-
- endTime?: number;
-
- error?: string;
-
- errorTemplate?: string;
-
- fingerprint?: string;
-
- level?: string;
-
- message?: string;
-
- messageTemplate?: string;
-
- metricName?: string;
-
- origin?: string;
-
- parentSpanId?: string;
-
- provider?: string;
-
- region?: string;
-
- requestId?: string;
-
- service?: string;
-
- spanId?: string;
-
- spanName?: string;
-
- stackId?: string;
-
- startTime?: number;
-
- statusCode?: number;
-
- traceDuration?: number;
-
- traceId?: string;
-
- trigger?: string;
-
- type?: string;
-
- url?: string;
- }
-
- export interface UnionMember0 {
- eventType:
- | 'fetch'
- | 'scheduled'
- | 'alarm'
- | 'cron'
- | 'queue'
- | 'email'
- | 'tail'
- | 'rpc'
- | 'websocket'
- | 'unknown';
-
- outcome: string;
-
- requestId: string;
-
- scriptName: string;
-
- entrypoint?: string;
-
- event?: {
- [key: string]:
- | string
- | number
- | boolean
- | {
- [key: string]:
- | string
- | number
- | boolean
- | { [key: string]: Array | string | number | boolean };
- };
- };
-
- executionModel?: 'durableObject' | 'stateless';
-
- scriptVersion?: UnionMember0.ScriptVersion;
-
- truncated?: boolean;
- }
-
- export namespace UnionMember0 {
- export interface ScriptVersion {
- id?: string;
-
- message?: string;
-
- tag?: string;
- }
- }
-
- export interface UnionMember1 {
- cpuTimeMs: number;
-
- eventType:
- | 'fetch'
- | 'scheduled'
- | 'alarm'
- | 'cron'
- | 'queue'
- | 'email'
- | 'tail'
- | 'rpc'
- | 'websocket'
- | 'unknown';
-
- outcome: string;
-
- requestId: string;
-
- scriptName: string;
-
- wallTimeMs: number;
-
- diagnosticsChannelEvents?: Array;
-
- dispatchNamespace?: string;
-
- entrypoint?: string;
-
- event?: { [key: string]: string | number | boolean };
-
- executionModel?: 'durableObject' | 'stateless';
-
- scriptVersion?: UnionMember1.ScriptVersion;
-
- truncated?: boolean;
- }
-
- export namespace UnionMember1 {
- export interface DiagnosticsChannelEvent {
- channel: string;
-
- message: string;
-
- timestamp: number;
- }
-
- export interface ScriptVersion {
- id?: string;
-
- message?: string;
-
- tag?: string;
- }
- }
- }
-
- export interface Pattern {
- count: number;
-
- pattern: string;
-
- series: Array;
-
- service: string;
- }
-
- export namespace Pattern {
- export interface Series {
- data: Series.Data;
-
- time: string;
- }
-
- export namespace Series {
- export interface Data {
- count: number;
-
- interval: number;
-
- sampleInterval: number;
-
- value: number;
-
- groups?: Array;
- }
-
- export namespace Data {
- export interface Group {
- key: string;
-
- value: string | number | boolean;
- }
- }
- }
- }
-}
-
-export interface TelemetryValuesResponse {
- dataset: string;
-
- key: string;
-
- type: 'string' | 'boolean' | 'number';
-
- value: string | number | boolean;
-}
-
-export interface TelemetryKeysParams {
- /**
- * Path param: Your Cloudflare account ID.
- */
- account_id: string;
-
- /**
- * Body param:
- */
- datasets?: Array;
-
- /**
- * Body param:
- */
- filters?: Array;
-
- /**
- * Body param: Search for a specific substring in the keys.
- */
- keyNeedle?: TelemetryKeysParams.KeyNeedle;
-
- /**
- * Body param:
- */
- limit?: number;
-
- /**
- * Body param: Search for a specific substring in the event.
- */
- needle?: TelemetryKeysParams.Needle;
-
- /**
- * Body param:
- */
- timeframe?: TelemetryKeysParams.Timeframe;
-}
-
-export namespace TelemetryKeysParams {
- export interface Filter {
- key: string;
-
- operation:
- | 'includes'
- | 'not_includes'
- | 'starts_with'
- | 'regex'
- | 'exists'
- | 'is_null'
- | 'in'
- | 'not_in'
- | 'eq'
- | 'neq'
- | 'gt'
- | 'gte'
- | 'lt'
- | 'lte'
- | '='
- | '!='
- | '>'
- | '>='
- | '<'
- | '<='
- | 'INCLUDES'
- | 'DOES_NOT_INCLUDE'
- | 'MATCH_REGEX'
- | 'EXISTS'
- | 'DOES_NOT_EXIST'
- | 'IN'
- | 'NOT_IN'
- | 'STARTS_WITH';
-
- type: 'string' | 'number' | 'boolean';
-
- value?: string | number | boolean;
- }
-
- /**
- * Search for a specific substring in the keys.
- */
- export interface KeyNeedle {
- value: string | number | boolean;
-
- isRegex?: boolean;
-
- matchCase?: boolean;
- }
-
- /**
- * Search for a specific substring in the event.
- */
- export interface Needle {
- value: string | number | boolean;
-
- isRegex?: boolean;
-
- matchCase?: boolean;
- }
-
- export interface Timeframe {
- from: number;
-
- to: number;
- }
-}
-
-export interface TelemetryQueryParams {
- /**
- * Path param: Your Cloudflare account ID.
- */
- account_id: string;
-
- /**
- * Body param:
- */
- queryId: string;
-
- /**
- * Body param:
- */
- timeframe: TelemetryQueryParams.Timeframe;
-
- /**
- * Body param:
- */
- chart?: boolean;
-
- /**
- * Body param:
- */
- compare?: boolean;
-
- /**
- * Body param:
- */
- dry?: boolean;
-
- /**
- * Body param:
- */
- granularity?: number;
-
- /**
- * Body param:
- */
- ignoreSeries?: boolean;
-
- /**
- * Body param:
- */
- limit?: number;
-
- /**
- * Body param:
- */
- offset?: string;
-
- /**
- * Body param:
- */
- offsetBy?: number;
-
- /**
- * Body param:
- */
- offsetDirection?: string;
-
- /**
- * Body param:
- */
- parameters?: TelemetryQueryParams.Parameters;
-
- /**
- * Body param:
- */
- patternType?: 'message' | 'error';
-
- /**
- * Body param:
- */
- view?: 'traces' | 'events' | 'calculations' | 'invocations' | 'requests' | 'patterns';
-}
-
-export namespace TelemetryQueryParams {
- export interface Timeframe {
- from: number;
-
- to: number;
- }
-
- export interface Parameters {
- /**
- * Create Calculations to compute as part of the query.
- */
- calculations?: Array;
-
- /**
- * Set the Datasets to query. Leave it empty to query all the datasets.
- */
- datasets?: Array;
-
- /**
- * Set a Flag to describe how to combine the filters on the query.
- */
- filterCombination?: 'and' | 'or' | 'AND' | 'OR';
-
- /**
- * Configure the Filters to apply to the query.
- */
- filters?: Array;
-
- /**
- * Define how to group the results of the query.
- */
- groupBys?: Array;
-
- /**
- * Configure the Having clauses that filter on calculations in the query result.
- */
- havings?: Array;
-
- /**
- * Set a limit on the number of results / records returned by the query
- */
- limit?: number;
-
- /**
- * Define an expression to search using full-text search.
- */
- needle?: Parameters.Needle;
-
- /**
- * Configure the order of the results returned by the query.
- */
- orderBy?: Parameters.OrderBy;
- }
-
- export namespace Parameters {
- export interface Calculation {
- operator:
- | 'uniq'
- | 'count'
- | 'max'
- | 'min'
- | 'sum'
- | 'avg'
- | 'median'
- | 'p001'
- | 'p01'
- | 'p05'
- | 'p10'
- | 'p25'
- | 'p75'
- | 'p90'
- | 'p95'
- | 'p99'
- | 'p999'
- | 'stddev'
- | 'variance'
- | 'COUNT_DISTINCT'
- | 'COUNT'
- | 'MAX'
- | 'MIN'
- | 'SUM'
- | 'AVG'
- | 'MEDIAN'
- | 'P001'
- | 'P01'
- | 'P05'
- | 'P10'
- | 'P25'
- | 'P75'
- | 'P90'
- | 'P95'
- | 'P99'
- | 'P999'
- | 'STDDEV'
- | 'VARIANCE';
-
- alias?: string;
-
- key?: string;
-
- keyType?: 'string' | 'number' | 'boolean';
- }
-
- export interface Filter {
- key: string;
-
- operation:
- | 'includes'
- | 'not_includes'
- | 'starts_with'
- | 'regex'
- | 'exists'
- | 'is_null'
- | 'in'
- | 'not_in'
- | 'eq'
- | 'neq'
- | 'gt'
- | 'gte'
- | 'lt'
- | 'lte'
- | '='
- | '!='
- | '>'
- | '>='
- | '<'
- | '<='
- | 'INCLUDES'
- | 'DOES_NOT_INCLUDE'
- | 'MATCH_REGEX'
- | 'EXISTS'
- | 'DOES_NOT_EXIST'
- | 'IN'
- | 'NOT_IN'
- | 'STARTS_WITH';
-
- type: 'string' | 'number' | 'boolean';
-
- value?: string | number | boolean;
- }
-
- export interface GroupBy {
- type: 'string' | 'number' | 'boolean';
-
- value: string;
- }
-
- export interface Having {
- key: string;
-
- operation: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
-
- value: number;
- }
-
- /**
- * Define an expression to search using full-text search.
- */
- export interface Needle {
- value: string | number | boolean;
-
- isRegex?: boolean;
-
- matchCase?: boolean;
- }
-
- /**
- * Configure the order of the results returned by the query.
- */
- export interface OrderBy {
- /**
- * Configure which Calculation to order the results by.
- */
- value: string;
-
- /**
- * Set the order of the results
- */
- order?: 'asc' | 'desc';
- }
- }
-}
-
-export interface TelemetryValuesParams {
- /**
- * Path param: Your Cloudflare account ID.
- */
- account_id: string;
-
- /**
- * Body param:
- */
- datasets: Array;
-
- /**
- * Body param:
- */
- key: string;
-
- /**
- * Body param:
- */
- timeframe: TelemetryValuesParams.Timeframe;
-
- /**
- * Body param:
- */
- type: 'string' | 'boolean' | 'number';
-
- /**
- * Body param:
- */
- filters?: Array;
-
- /**
- * Body param:
- */
- limit?: number;
-
- /**
- * Body param: Search for a specific substring in the event.
- */
- needle?: TelemetryValuesParams.Needle;
-}
-
-export namespace TelemetryValuesParams {
- export interface Timeframe {
- from: number;
-
- to: number;
- }
-
- export interface Filter {
- key: string;
-
- operation:
- | 'includes'
- | 'not_includes'
- | 'starts_with'
- | 'regex'
- | 'exists'
- | 'is_null'
- | 'in'
- | 'not_in'
- | 'eq'
- | 'neq'
- | 'gt'
- | 'gte'
- | 'lt'
- | 'lte'
- | '='
- | '!='
- | '>'
- | '>='
- | '<'
- | '<='
- | 'INCLUDES'
- | 'DOES_NOT_INCLUDE'
- | 'MATCH_REGEX'
- | 'EXISTS'
- | 'DOES_NOT_EXIST'
- | 'IN'
- | 'NOT_IN'
- | 'STARTS_WITH';
-
- type: 'string' | 'number' | 'boolean';
-
- value?: string | number | boolean;
- }
-
- /**
- * Search for a specific substring in the event.
- */
- export interface Needle {
- value: string | number | boolean;
-
- isRegex?: boolean;
-
- matchCase?: boolean;
- }
-}
-
-Telemetry.TelemetryKeysResponsesSinglePage = TelemetryKeysResponsesSinglePage;
-Telemetry.TelemetryValuesResponsesSinglePage = TelemetryValuesResponsesSinglePage;
-
-export declare namespace Telemetry {
- export {
- type TelemetryKeysResponse as TelemetryKeysResponse,
- type TelemetryQueryResponse as TelemetryQueryResponse,
- type TelemetryValuesResponse as TelemetryValuesResponse,
- TelemetryKeysResponsesSinglePage as TelemetryKeysResponsesSinglePage,
- TelemetryValuesResponsesSinglePage as TelemetryValuesResponsesSinglePage,
- type TelemetryKeysParams as TelemetryKeysParams,
- type TelemetryQueryParams as TelemetryQueryParams,
- type TelemetryValuesParams as TelemetryValuesParams,
- };
-}
+export class Telemetry extends APIResource {}
diff --git a/src/resources/workflows/index.ts b/src/resources/workflows/index.ts
index f9356eadf4..ff9d0d44ac 100644
--- a/src/resources/workflows/index.ts
+++ b/src/resources/workflows/index.ts
@@ -1,24 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-export {
- InstanceListResponsesV4PagePaginationArray,
- InstanceBulkResponsesSinglePage,
- Instances,
- type InstanceCreateResponse,
- type InstanceListResponse,
- type InstanceBulkResponse,
- type InstanceGetResponse,
- type InstanceCreateParams,
- type InstanceListParams,
- type InstanceBulkParams,
- type InstanceGetParams,
-} from './instances/index';
-export {
- VersionListResponsesV4PagePaginationArray,
- Versions,
- type VersionListResponse,
- type VersionGetResponse,
- type VersionListParams,
- type VersionGetParams,
-} from './versions';
+export { Instances } from './instances/index';
+export { Versions } from './versions';
export { Workflows } from './workflows';
diff --git a/src/resources/workflows/instances/events.ts b/src/resources/workflows/instances/events.ts
index 20f3a15ba5..6e87ef6fb4 100644
--- a/src/resources/workflows/instances/events.ts
+++ b/src/resources/workflows/instances/events.ts
@@ -1,43 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../resource';
-import * as Core from '../../../core';
-export class Events extends APIResource {
- /**
- * Send event to instance
- */
- create(
- workflowName: string,
- instanceId: string,
- eventType: string,
- params: EventCreateParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id, body } = params ?? {};
- return (
- this._client.post(
- `/accounts/${account_id}/workflows/${workflowName}/instances/${instanceId}/events/${eventType}`,
- { body: body, ...options },
- ) as Core.APIPromise<{ result: EventCreateResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-}
-
-export type EventCreateResponse = unknown;
-
-export interface EventCreateParams {
- /**
- * Path param:
- */
- account_id: string;
-
- /**
- * Body param:
- */
- body?: unknown;
-}
-
-export declare namespace Events {
- export { type EventCreateResponse as EventCreateResponse, type EventCreateParams as EventCreateParams };
-}
+export class Events extends APIResource {}
diff --git a/src/resources/workflows/instances/index.ts b/src/resources/workflows/instances/index.ts
index 9c96da29fb..1c63a64a9d 100644
--- a/src/resources/workflows/instances/index.ts
+++ b/src/resources/workflows/instances/index.ts
@@ -1,17 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-export { Events, type EventCreateResponse, type EventCreateParams } from './events';
-export {
- InstanceListResponsesV4PagePaginationArray,
- InstanceBulkResponsesSinglePage,
- Instances,
- type InstanceCreateResponse,
- type InstanceListResponse,
- type InstanceBulkResponse,
- type InstanceGetResponse,
- type InstanceCreateParams,
- type InstanceListParams,
- type InstanceBulkParams,
- type InstanceGetParams,
-} from './instances';
-export { Status, type StatusEditResponse, type StatusEditParams } from './status';
+export { Events } from './events';
+export { Instances } from './instances';
+export { Status } from './status';
diff --git a/src/resources/workflows/instances/instances.ts b/src/resources/workflows/instances/instances.ts
index 2740494438..8ab49d5567 100644
--- a/src/resources/workflows/instances/instances.ts
+++ b/src/resources/workflows/instances/instances.ts
@@ -1,429 +1,21 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../resource';
-import * as Core from '../../../core';
import * as EventsAPI from './events';
-import { EventCreateParams, EventCreateResponse, Events } from './events';
+import { Events } from './events';
import * as StatusAPI from './status';
-import { Status, StatusEditParams, StatusEditResponse } from './status';
-import { SinglePage, V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../../pagination';
+import { Status } from './status';
export class Instances extends APIResource {
status: StatusAPI.Status = new StatusAPI.Status(this._client);
events: EventsAPI.Events = new EventsAPI.Events(this._client);
-
- /**
- * Create a new workflow instance
- */
- create(
- workflowName: string,
- params: InstanceCreateParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id, ...body } = params;
- return (
- this._client.post(`/accounts/${account_id}/workflows/${workflowName}/instances`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: InstanceCreateResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-
- /**
- * List of workflow instances
- */
- list(
- workflowName: string,
- params: InstanceListParams,
- options?: Core.RequestOptions,
- ): Core.PagePromise {
- const { account_id, ...query } = params;
- return this._client.getAPIList(
- `/accounts/${account_id}/workflows/${workflowName}/instances`,
- InstanceListResponsesV4PagePaginationArray,
- { query, ...options },
- );
- }
-
- /**
- * Batch create new Workflow instances
- */
- bulk(
- workflowName: string,
- params: InstanceBulkParams,
- options?: Core.RequestOptions,
- ): Core.PagePromise {
- const { account_id, body } = params ?? {};
- return this._client.getAPIList(
- `/accounts/${account_id}/workflows/${workflowName}/instances/batch`,
- InstanceBulkResponsesSinglePage,
- { body: body, method: 'post', ...options },
- );
- }
-
- /**
- * Get logs and status from instance
- */
- get(
- workflowName: string,
- instanceId: string,
- params: InstanceGetParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id } = params;
- return (
- this._client.get(
- `/accounts/${account_id}/workflows/${workflowName}/instances/${instanceId}`,
- options,
- ) as Core.APIPromise<{ result: InstanceGetResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-}
-
-export class InstanceListResponsesV4PagePaginationArray extends V4PagePaginationArray {}
-
-export class InstanceBulkResponsesSinglePage extends SinglePage {}
-
-export interface InstanceCreateResponse {
- id: string;
-
- status:
- | 'queued'
- | 'running'
- | 'paused'
- | 'errored'
- | 'terminated'
- | 'complete'
- | 'waitingForPause'
- | 'waiting';
-
- version_id: string;
-
- workflow_id: string;
-}
-
-export interface InstanceListResponse {
- id: string;
-
- created_on: string;
-
- ended_on: string | null;
-
- modified_on: string;
-
- started_on: string | null;
-
- status:
- | 'queued'
- | 'running'
- | 'paused'
- | 'errored'
- | 'terminated'
- | 'complete'
- | 'waitingForPause'
- | 'waiting';
-
- version_id: string;
-
- workflow_id: string;
-}
-
-export interface InstanceBulkResponse {
- id: string;
-
- status:
- | 'queued'
- | 'running'
- | 'paused'
- | 'errored'
- | 'terminated'
- | 'complete'
- | 'waitingForPause'
- | 'waiting';
-
- version_id: string;
-
- workflow_id: string;
-}
-
-export interface InstanceGetResponse {
- end: string | null;
-
- error: InstanceGetResponse.Error | null;
-
- output: string | number;
-
- params: unknown;
-
- queued: string;
-
- start: string | null;
-
- status:
- | 'queued'
- | 'running'
- | 'paused'
- | 'errored'
- | 'terminated'
- | 'complete'
- | 'waitingForPause'
- | 'waiting';
-
- steps: Array<
- | InstanceGetResponse.UnionMember0
- | InstanceGetResponse.UnionMember1
- | InstanceGetResponse.UnionMember2
- | InstanceGetResponse.UnionMember3
- >;
-
- success: boolean | null;
-
- trigger: InstanceGetResponse.Trigger;
-
- versionId: string;
-}
-
-export namespace InstanceGetResponse {
- export interface Error {
- message: string;
-
- name: string;
- }
-
- export interface UnionMember0 {
- attempts: Array;
-
- config: UnionMember0.Config;
-
- end: string | null;
-
- name: string;
-
- output: unknown;
-
- start: string;
-
- success: boolean | null;
-
- type: 'step';
- }
-
- export namespace UnionMember0 {
- export interface Attempt {
- end: string | null;
-
- error: Attempt.Error | null;
-
- start: string;
-
- success: boolean | null;
- }
-
- export namespace Attempt {
- export interface Error {
- message: string;
-
- name: string;
- }
- }
-
- export interface Config {
- retries: Config.Retries;
-
- timeout: unknown | number;
- }
-
- export namespace Config {
- export interface Retries {
- delay: unknown | number;
-
- limit: number;
-
- backoff?: 'constant' | 'linear' | 'exponential';
- }
- }
- }
-
- export interface UnionMember1 {
- end: string;
-
- error: UnionMember1.Error | null;
-
- finished: boolean;
-
- name: string;
-
- start: string;
-
- type: 'sleep';
- }
-
- export namespace UnionMember1 {
- export interface Error {
- message: string;
-
- name: string;
- }
- }
-
- export interface UnionMember2 {
- trigger: UnionMember2.Trigger;
-
- type: 'termination';
- }
-
- export namespace UnionMember2 {
- export interface Trigger {
- source: string;
- }
- }
-
- export interface UnionMember3 {
- end: string;
-
- error: UnionMember3.Error | null;
-
- finished: boolean;
-
- name: string;
-
- output: unknown | string | number | boolean;
-
- start: string;
-
- type: 'waitForEvent';
- }
-
- export namespace UnionMember3 {
- export interface Error {
- message: string;
-
- name: string;
- }
- }
-
- export interface Trigger {
- source: 'unknown' | 'api' | 'binding' | 'event' | 'cron';
- }
}
-export interface InstanceCreateParams {
- /**
- * Path param:
- */
- account_id: string;
-
- /**
- * Body param:
- */
- instance_id?: string;
-
- /**
- * Body param:
- */
- instance_retention?: unknown;
-
- /**
- * Body param:
- */
- params?: unknown;
-}
-
-export interface InstanceListParams extends V4PagePaginationArrayParams {
- /**
- * Path param:
- */
- account_id: string;
-
- /**
- * Query param: `page` and `cursor` are mutually exclusive, use one or the other.
- */
- cursor?: string;
-
- /**
- * Query param: Accepts ISO 8601 with no timezone offsets and in UTC.
- */
- date_end?: string;
-
- /**
- * Query param: Accepts ISO 8601 with no timezone offsets and in UTC.
- */
- date_start?: string;
-
- /**
- * Query param: should only be used when `cursor` is used, defines a new direction
- * for the cursor
- */
- direction?: 'asc' | 'desc';
-
- /**
- * Query param:
- */
- status?:
- | 'queued'
- | 'running'
- | 'paused'
- | 'errored'
- | 'terminated'
- | 'complete'
- | 'waitingForPause'
- | 'waiting';
-}
-
-export interface InstanceBulkParams {
- /**
- * Path param:
- */
- account_id: string;
-
- /**
- * Body param:
- */
- body?: Array;
-}
-
-export namespace InstanceBulkParams {
- export interface Body {
- instance_id?: string;
-
- instance_retention?: unknown;
-
- params?: unknown;
- }
-}
-
-export interface InstanceGetParams {
- account_id: string;
-}
-
-Instances.InstanceListResponsesV4PagePaginationArray = InstanceListResponsesV4PagePaginationArray;
-Instances.InstanceBulkResponsesSinglePage = InstanceBulkResponsesSinglePage;
Instances.Status = Status;
Instances.Events = Events;
export declare namespace Instances {
- export {
- type InstanceCreateResponse as InstanceCreateResponse,
- type InstanceListResponse as InstanceListResponse,
- type InstanceBulkResponse as InstanceBulkResponse,
- type InstanceGetResponse as InstanceGetResponse,
- InstanceListResponsesV4PagePaginationArray as InstanceListResponsesV4PagePaginationArray,
- InstanceBulkResponsesSinglePage as InstanceBulkResponsesSinglePage,
- type InstanceCreateParams as InstanceCreateParams,
- type InstanceListParams as InstanceListParams,
- type InstanceBulkParams as InstanceBulkParams,
- type InstanceGetParams as InstanceGetParams,
- };
-
- export {
- Status as Status,
- type StatusEditResponse as StatusEditResponse,
- type StatusEditParams as StatusEditParams,
- };
+ export { Status as Status };
- export {
- Events as Events,
- type EventCreateResponse as EventCreateResponse,
- type EventCreateParams as EventCreateParams,
- };
+ export { Events as Events };
}
diff --git a/src/resources/workflows/instances/status.ts b/src/resources/workflows/instances/status.ts
index 54b3ce3cc9..e8d042f21b 100644
--- a/src/resources/workflows/instances/status.ts
+++ b/src/resources/workflows/instances/status.ts
@@ -1,57 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../resource';
-import * as Core from '../../../core';
-export class Status extends APIResource {
- /**
- * Change status of instance
- */
- edit(
- workflowName: string,
- instanceId: string,
- params: StatusEditParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id, ...body } = params;
- return (
- this._client.patch(`/accounts/${account_id}/workflows/${workflowName}/instances/${instanceId}/status`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: StatusEditResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-}
-
-export interface StatusEditResponse {
- status:
- | 'queued'
- | 'running'
- | 'paused'
- | 'errored'
- | 'terminated'
- | 'complete'
- | 'waitingForPause'
- | 'waiting';
-
- /**
- * Accepts ISO 8601 with no timezone offsets and in UTC.
- */
- timestamp: string;
-}
-
-export interface StatusEditParams {
- /**
- * Path param:
- */
- account_id: string;
-
- /**
- * Body param: Apply action to instance.
- */
- status: 'resume' | 'pause' | 'terminate';
-}
-
-export declare namespace Status {
- export { type StatusEditResponse as StatusEditResponse, type StatusEditParams as StatusEditParams };
-}
+export class Status extends APIResource {}
diff --git a/src/resources/workflows/versions.ts b/src/resources/workflows/versions.ts
index dab04a8662..c0875b7239 100644
--- a/src/resources/workflows/versions.ts
+++ b/src/resources/workflows/versions.ts
@@ -1,90 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
-import * as Core from '../../core';
-import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../pagination';
-export class Versions extends APIResource {
- /**
- * List deployed Workflow versions
- */
- list(
- workflowName: string,
- params: VersionListParams,
- options?: Core.RequestOptions,
- ): Core.PagePromise {
- const { account_id, ...query } = params;
- return this._client.getAPIList(
- `/accounts/${account_id}/workflows/${workflowName}/versions`,
- VersionListResponsesV4PagePaginationArray,
- { query, ...options },
- );
- }
-
- /**
- * Get Workflow version details
- */
- get(
- workflowName: string,
- versionId: string,
- params: VersionGetParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id } = params;
- return (
- this._client.get(
- `/accounts/${account_id}/workflows/${workflowName}/versions/${versionId}`,
- options,
- ) as Core.APIPromise<{ result: VersionGetResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-}
-
-export class VersionListResponsesV4PagePaginationArray extends V4PagePaginationArray {}
-
-export interface VersionListResponse {
- id: string;
-
- class_name: string;
-
- created_on: string;
-
- modified_on: string;
-
- workflow_id: string;
-}
-
-export interface VersionGetResponse {
- id: string;
-
- class_name: string;
-
- created_on: string;
-
- modified_on: string;
-
- workflow_id: string;
-}
-
-export interface VersionListParams extends V4PagePaginationArrayParams {
- /**
- * Path param:
- */
- account_id: string;
-}
-
-export interface VersionGetParams {
- account_id: string;
-}
-
-Versions.VersionListResponsesV4PagePaginationArray = VersionListResponsesV4PagePaginationArray;
-
-export declare namespace Versions {
- export {
- type VersionListResponse as VersionListResponse,
- type VersionGetResponse as VersionGetResponse,
- VersionListResponsesV4PagePaginationArray as VersionListResponsesV4PagePaginationArray,
- type VersionListParams as VersionListParams,
- type VersionGetParams as VersionGetParams,
- };
-}
+export class Versions extends APIResource {}
diff --git a/src/resources/workflows/workflows.ts b/src/resources/workflows/workflows.ts
index d7f69588d8..e86558cce9 100644
--- a/src/resources/workflows/workflows.ts
+++ b/src/resources/workflows/workflows.ts
@@ -1,285 +1,21 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
-import * as Core from '../../core';
import * as VersionsAPI from './versions';
-import {
- VersionGetParams,
- VersionGetResponse,
- VersionListParams,
- VersionListResponse,
- VersionListResponsesV4PagePaginationArray,
- Versions,
-} from './versions';
+import { Versions } from './versions';
import * as InstancesAPI from './instances/instances';
-import {
- InstanceBulkParams,
- InstanceBulkResponse,
- InstanceBulkResponsesSinglePage,
- InstanceCreateParams,
- InstanceCreateResponse,
- InstanceGetParams,
- InstanceGetResponse,
- InstanceListParams,
- InstanceListResponse,
- InstanceListResponsesV4PagePaginationArray,
- Instances as InstancesAPIInstances,
-} from './instances/instances';
-import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../pagination';
+import { Instances } from './instances/instances';
export class Workflows extends APIResource {
instances: InstancesAPI.Instances = new InstancesAPI.Instances(this._client);
versions: VersionsAPI.Versions = new VersionsAPI.Versions(this._client);
-
- /**
- * Create/modify Workflow
- */
- update(
- workflowName: string,
- params: WorkflowUpdateParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise