diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 43fd5a73f8..763462fada 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -9,7 +9,9 @@
"postCreateCommand": "yarn install",
"customizations": {
"vscode": {
- "extensions": ["esbenp.prettier-vscode"]
+ "extensions": [
+ "esbenp.prettier-vscode"
+ ]
}
}
}
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index a7b23ca1de..f416559983 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -5,10 +5,10 @@ body:
- type: checkboxes
id: non_api
attributes:
- label: Confirm this is a Typescript library issue and not an underlying Cloudflare API issue
+ label: Confirm this is a TypeScript library issue and not an underlying Cloudflare API issue
description: Issues with the underlying Cloudflare API should be reported via [Cloudflare Support](https://developers.cloudflare.com/support/contacting-cloudflare-support)
options:
- - label: This is an issue with the Typescript library
+ - label: This is an issue with the TypeScript library
required: true
- type: textarea
id: what-happened
@@ -34,7 +34,7 @@ body:
attributes:
label: Code snippets
description: If applicable, add code snippets to help explain your problem.
- render: Typescript
+ render: TypeScript
validations:
required: false
- type: input
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 66d7a52d0d..67ce232c33 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -23,7 +23,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Set up Node
uses: actions/setup-node@v4
@@ -45,7 +45,7 @@ jobs:
contents: read
id-token: write
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Set up Node
uses: actions/setup-node@v4
@@ -78,7 +78,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Set up Node
uses: actions/setup-node@v4
@@ -97,7 +97,7 @@ jobs:
if: github.repository == 'cloudflare/cloudflare-typescript' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Set up Node
uses: actions/setup-node@v4
diff --git a/.github/workflows/detect-breaking-changes.yml b/.github/workflows/detect-breaking-changes.yml
new file mode 100644
index 0000000000..bdd7ff0b1b
--- /dev/null
+++ b/.github/workflows/detect-breaking-changes.yml
@@ -0,0 +1,36 @@
+name: CI
+on:
+ pull_request:
+ branches:
+ - main
+ - next
+
+jobs:
+ detect_breaking_changes:
+ runs-on: 'ubuntu-latest'
+ name: detect-breaking-changes
+ if: github.repository == 'cloudflare/cloudflare-typescript'
+ steps:
+ - name: Calculate fetch-depth
+ run: |
+ echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV
+
+ - uses: actions/checkout@v6
+ with:
+ # Ensure we can check out the pull request base in the script below.
+ fetch-depth: ${{ env.FETCH_DEPTH }}
+
+ - name: Set up Node
+ uses: actions/setup-node@v3
+ with:
+ node-version: '20'
+ - name: Install dependencies
+ run: |
+ yarn install
+
+ - name: Detect breaking changes
+ run: |
+ # Try to check out previous versions of the breaking change detection script. This ensures that
+ # we still detect breaking changes when entire files and their tests are removed.
+ git checkout "${{ github.event.pull_request.base.sha }}" -- ./scripts/detect-breaking-changes 2>/dev/null || true
+ ./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}
diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml
index 00b533b27b..bb4c4943bb 100644
--- a/.github/workflows/publish-npm.yml
+++ b/.github/workflows/publish-npm.yml
@@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Set up Node
uses: actions/setup-node@v3
diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml
index 962bb2a13c..b7caf19872 100644
--- a/.github/workflows/release-doctor.yml
+++ b/.github/workflows/release-doctor.yml
@@ -17,7 +17,7 @@ jobs:
if: github.repository == 'cloudflare/cloudflare-typescript' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Check release environment
run: |
diff --git a/.stats.yml b/.stats.yml
index e9269938e3..2f45ab377d 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
-configured_endpoints: 1995
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-28b84a5db03b38290dfe7ef1de2c68feb68762d7a8f207bdbea4d39a7aeef1ea.yml
-openapi_spec_hash: ba6bd61621e4be20b581f4f3bf0978d3
-config_hash: 07dfb48a768bfdcfd417ec643bab23f5
+configured_endpoints: 2010
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c764e67a143aa372dd5f9971c38ba9cb79f063a8527bf09abe87bc40ea4e8d46.yml
+openapi_spec_hash: 0f0810f21752c54bb1e0cbaf15b09986
+config_hash: 4f7156f8131682ce0acd20f172d81e18
diff --git a/README.md b/README.md
index 9fd1925642..84d6c4b95c 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,15 @@ This library provides convenient access to the Cloudflare REST API from server-s
The REST API documentation can be found on [developers.cloudflare.com](https://developers.cloudflare.com/api). The full API of this library can be found in [api.md](api.md).
+## MCP Server
+
+Use the Cloudflare MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
+
+[](https://cursor.com/en-US/install-mcp?name=cloudflare-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImNsb3VkZmxhcmUtbWNwIl19)
+[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22cloudflare-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22cloudflare-mcp%22%5D%7D)
+
+> Note: You may need to set environment variables in your MCP client.
+
## Installation
```sh
@@ -72,36 +81,31 @@ import Cloudflare, { toFile } from 'cloudflare';
const client = new Cloudflare();
// If you have access to Node `fs` we recommend using `fs.createReadStream()`:
-await client.apiGateway.userSchemas.create({
- zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
- file: fs.createReadStream('/path/to/file'),
- kind: 'openapi_v3',
+await client.kv.namespaces.values.update('0f2ac74b498b48028cb68387c421e279', 'My-Key', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ value: fs.createReadStream('/path/to/file'),
});
// Or if you have the web `File` API you can pass a `File` instance:
-await client.apiGateway.userSchemas.create({
- zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
- file: new File(['my bytes'], 'file'),
- kind: 'openapi_v3',
+await client.kv.namespaces.values.update('0f2ac74b498b48028cb68387c421e279', 'My-Key', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ value: new File(['my bytes'], 'file'),
});
// You can also pass a `fetch` `Response`:
-await client.apiGateway.userSchemas.create({
- zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
- file: await fetch('https://somesite/file'),
- kind: 'openapi_v3',
+await client.kv.namespaces.values.update('0f2ac74b498b48028cb68387c421e279', 'My-Key', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ value: await fetch('https://somesite/file'),
});
// Finally, if none of the above are convenient, you can use our `toFile` helper:
-await client.apiGateway.userSchemas.create({
- zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
- file: await toFile(Buffer.from('my bytes'), 'file'),
- kind: 'openapi_v3',
+await client.kv.namespaces.values.update('0f2ac74b498b48028cb68387c421e279', 'My-Key', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ value: await toFile(Buffer.from('my bytes'), 'file'),
});
-await client.apiGateway.userSchemas.create({
- zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
- file: await toFile(new Uint8Array([0, 1, 2]), 'file'),
- kind: 'openapi_v3',
+await client.kv.namespaces.values.update('0f2ac74b498b48028cb68387c421e279', 'My-Key', {
+ account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ value: await toFile(new Uint8Array([0, 1, 2]), 'file'),
});
```
@@ -113,15 +117,17 @@ a subclass of `APIError` will be thrown:
```ts
-const zone = await client.zones.get({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }).catch(async (err) => {
- if (err instanceof Cloudflare.APIError) {
- console.log(err.status); // 400
- console.log(err.name); // BadRequestError
- console.log(err.headers); // {server: 'nginx', ...}
- } else {
- throw err;
- }
-});
+const zone = await client.zones
+ .get({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353' })
+ .catch(async (err) => {
+ if (err instanceof Cloudflare.APIError) {
+ console.log(err.status); // 400
+ console.log(err.name); // BadRequestError
+ console.log(err.headers); // {server: 'nginx', ...}
+ } else {
+ throw err;
+ }
+ });
```
Error codes are as follows:
@@ -223,13 +229,21 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi
const client = new Cloudflare();
const response = await client.zones
- .create({ account: { id: '023e105f4ecef8ad9ca31a8372d0c353' }, name: 'example.com', type: 'full' })
+ .create({
+ account: { id: '023e105f4ecef8ad9ca31a8372d0c353' },
+ name: 'example.com',
+ type: 'full',
+ })
.asResponse();
console.log(response.headers.get('X-My-Header'));
console.log(response.statusText); // access the underlying Response object
const { data: zone, response: raw } = await client.zones
- .create({ account: { id: '023e105f4ecef8ad9ca31a8372d0c353' }, name: 'example.com', type: 'full' })
+ .create({
+ account: { id: '023e105f4ecef8ad9ca31a8372d0c353' },
+ name: 'example.com',
+ type: 'full',
+ })
.withResponse();
console.log(raw.headers.get('X-My-Header'));
console.log(zone.id);
diff --git a/api.md b/api.md
index 43dece5972..85e5f48163 100644
--- a/api.md
+++ b/api.md
@@ -1806,7 +1806,6 @@ Methods:
Types:
-- ZoneAuthenticatedOriginPull
- OriginTLSClientAuthCreateResponse
- OriginTLSClientAuthListResponse
- OriginTLSClientAuthDeleteResponse
@@ -1819,34 +1818,51 @@ Methods:
- client.originTLSClientAuth.delete(certificateId, { ...params }) -> OriginTLSClientAuthDeleteResponse
- client.originTLSClientAuth.get(certificateId, { ...params }) -> OriginTLSClientAuthGetResponse
+## ZoneCertificates
+
+Types:
+
+- ZoneAuthenticatedOriginPull
+- ZoneCertificateCreateResponse
+- ZoneCertificateListResponse
+- ZoneCertificateDeleteResponse
+- ZoneCertificateGetResponse
+
+Methods:
+
+- client.originTLSClientAuth.zoneCertificates.create({ ...params }) -> ZoneCertificateCreateResponse
+- client.originTLSClientAuth.zoneCertificates.list({ ...params }) -> ZoneCertificateListResponsesSinglePage
+- client.originTLSClientAuth.zoneCertificates.delete(certificateId, { ...params }) -> ZoneCertificateDeleteResponse
+- client.originTLSClientAuth.zoneCertificates.get(certificateId, { ...params }) -> ZoneCertificateGetResponse
+
## Hostnames
Types:
-- AuthenticatedOriginPull
-- HostnameUpdateResponse
+- AuthenticatedOriginPull
+- HostnameUpdateResponse
Methods:
-- client.originTLSClientAuth.hostnames.update({ ...params }) -> HostnameUpdateResponsesSinglePage
-- client.originTLSClientAuth.hostnames.get(hostname, { ...params }) -> AuthenticatedOriginPull
+- client.originTLSClientAuth.hostnames.update({ ...params }) -> HostnameUpdateResponsesSinglePage
+- client.originTLSClientAuth.hostnames.get(hostname, { ...params }) -> AuthenticatedOriginPull
-### Certificates
+## HostnameCertificates
Types:
-- Certificate
-- CertificateCreateResponse
-- CertificateListResponse
-- CertificateDeleteResponse
-- CertificateGetResponse
+- Certificate
+- HostnameCertificateCreateResponse
+- HostnameCertificateListResponse
+- HostnameCertificateDeleteResponse
+- HostnameCertificateGetResponse
Methods:
-- client.originTLSClientAuth.hostnames.certificates.create({ ...params }) -> CertificateCreateResponse
-- client.originTLSClientAuth.hostnames.certificates.list({ ...params }) -> CertificateListResponsesSinglePage
-- client.originTLSClientAuth.hostnames.certificates.delete(certificateId, { ...params }) -> CertificateDeleteResponse
-- client.originTLSClientAuth.hostnames.certificates.get(certificateId, { ...params }) -> CertificateGetResponse
+- client.originTLSClientAuth.hostnameCertificates.create({ ...params }) -> HostnameCertificateCreateResponse
+- client.originTLSClientAuth.hostnameCertificates.list({ ...params }) -> HostnameCertificateListResponsesSinglePage
+- client.originTLSClientAuth.hostnameCertificates.delete(certificateId, { ...params }) -> HostnameCertificateDeleteResponse
+- client.originTLSClientAuth.hostnameCertificates.get(certificateId, { ...params }) -> HostnameCertificateGetResponse
## Settings
@@ -3298,10 +3314,6 @@ Types:
- IPList
-Methods:
-
-- client.intel.ipLists.get({ ...params }) -> IPListsSinglePage
-
## Miscategorizations
Types:
@@ -7939,6 +7951,17 @@ Methods:
- client.botManagement.update({ ...params }) -> BotManagementUpdateResponse
- client.botManagement.get({ ...params }) -> BotManagementGetResponse
+# Fraud
+
+Types:
+
+- FraudSettings
+
+Methods:
+
+- client.fraud.update({ ...params }) -> FraudSettings
+- client.fraud.get({ ...params }) -> FraudSettings
+
# OriginPostQuantumEncryption
Types:
@@ -8706,6 +8729,46 @@ Methods:
- client.aiGateway.evaluations.delete(gatewayId, id, { ...params }) -> EvaluationDeleteResponse
- client.aiGateway.evaluations.get(gatewayId, id, { ...params }) -> EvaluationGetResponse
+## DynamicRouting
+
+Types:
+
+- DynamicRoutingCreateResponse
+- DynamicRoutingUpdateResponse
+- DynamicRoutingListResponse
+- DynamicRoutingDeleteResponse
+- DynamicRoutingCreateDeploymentResponse
+- DynamicRoutingCreateVersionResponse
+- DynamicRoutingGetResponse
+- DynamicRoutingGetVersionResponse
+- DynamicRoutingListDeploymentsResponse
+- DynamicRoutingListVersionsResponse
+
+Methods:
+
+- client.aiGateway.dynamicRouting.create(gatewayId, { ...params }) -> DynamicRoutingCreateResponse
+- client.aiGateway.dynamicRouting.update(gatewayId, id, { ...params }) -> DynamicRoutingUpdateResponse
+- client.aiGateway.dynamicRouting.list(gatewayId, { ...params }) -> DynamicRoutingListResponse
+- client.aiGateway.dynamicRouting.delete(gatewayId, id, { ...params }) -> DynamicRoutingDeleteResponse
+- client.aiGateway.dynamicRouting.createDeployment(gatewayId, id, { ...params }) -> DynamicRoutingCreateDeploymentResponse
+- client.aiGateway.dynamicRouting.createVersion(gatewayId, id, { ...params }) -> DynamicRoutingCreateVersionResponse
+- client.aiGateway.dynamicRouting.get(gatewayId, id, { ...params }) -> DynamicRoutingGetResponse
+- client.aiGateway.dynamicRouting.getVersion(gatewayId, id, versionId, { ...params }) -> DynamicRoutingGetVersionResponse
+- client.aiGateway.dynamicRouting.listDeployments(gatewayId, id, { ...params }) -> DynamicRoutingListDeploymentsResponse
+- client.aiGateway.dynamicRouting.listVersions(gatewayId, id, { ...params }) -> DynamicRoutingListVersionsResponse
+
+## ProviderConfigs
+
+Types:
+
+- ProviderConfigCreateResponse
+- ProviderConfigListResponse
+
+Methods:
+
+- client.aiGateway.providerConfigs.create(gatewayId, { ...params }) -> ProviderConfigCreateResponse
+- client.aiGateway.providerConfigs.list(gatewayId, { ...params }) -> ProviderConfigListResponsesV4PagePaginationArray
+
## URLs
Types:
@@ -9176,7 +9239,9 @@ Types:
- InstanceUpdateResponse
- InstanceListResponse
- InstanceDeleteResponse
+- InstanceChatCompletionsResponse
- InstanceReadResponse
+- InstanceSearchResponse
- InstanceStatsResponse
Methods:
@@ -9185,7 +9250,9 @@ Methods:
- client.aiSearch.instances.update(id, { ...params }) -> InstanceUpdateResponse
- client.aiSearch.instances.list({ ...params }) -> InstanceListResponsesV4PagePaginationArray
- client.aiSearch.instances.delete(id, { ...params }) -> InstanceDeleteResponse
+- client.aiSearch.instances.chatCompletions(id, { ...params }) -> InstanceChatCompletionsResponse
- client.aiSearch.instances.read(id, { ...params }) -> InstanceReadResponse
+- client.aiSearch.instances.search(id, { ...params }) -> InstanceSearchResponse
- client.aiSearch.instances.stats(id, { ...params }) -> InstanceStatsResponse
### Items
diff --git a/release-please-config.json b/release-please-config.json
index 1ebd0bde2e..624ed99ecc 100644
--- a/release-please-config.json
+++ b/release-please-config.json
@@ -60,5 +60,8 @@
}
],
"release-type": "node",
- "extra-files": ["src/version.ts", "README.md"]
+ "extra-files": [
+ "src/version.ts",
+ "README.md"
+ ]
}
diff --git a/scripts/detect-breaking-changes b/scripts/detect-breaking-changes
index 91b21c284b..807eaf1da0 100755
--- a/scripts/detect-breaking-changes
+++ b/scripts/detect-breaking-changes
@@ -154,8 +154,9 @@ TEST_PATHS=(
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
+ tests/api-resources/origin-tls-client-auth/zone-certificates.test.ts
+ tests/api-resources/origin-tls-client-auth/hostnames.test.ts
+ tests/api-resources/origin-tls-client-auth/hostname-certificates.test.ts
tests/api-resources/origin-tls-client-auth/settings.test.ts
tests/api-resources/page-rules.test.ts
tests/api-resources/rate-limits.test.ts
@@ -283,7 +284,6 @@ TEST_PATHS=(
tests/api-resources/intel/domains/bulks.test.ts
tests/api-resources/intel/domain-history.test.ts
tests/api-resources/intel/ips.test.ts
- tests/api-resources/intel/ip-lists.test.ts
tests/api-resources/intel/miscategorizations.test.ts
tests/api-resources/intel/whois.test.ts
tests/api-resources/intel/indicator-feeds/indicator-feeds.test.ts
@@ -664,6 +664,7 @@ TEST_PATHS=(
tests/api-resources/radar/leaked-credentials/summary.test.ts
tests/api-resources/radar/leaked-credentials/timeseries-groups.test.ts
tests/api-resources/bot-management.test.ts
+ tests/api-resources/fraud.test.ts
tests/api-resources/origin-post-quantum-encryption.test.ts
tests/api-resources/zaraz/zaraz.test.ts
tests/api-resources/zaraz/config.test.ts
@@ -723,6 +724,8 @@ TEST_PATHS=(
tests/api-resources/ai-gateway/logs.test.ts
tests/api-resources/ai-gateway/datasets.test.ts
tests/api-resources/ai-gateway/evaluations.test.ts
+ tests/api-resources/ai-gateway/dynamic-routing.test.ts
+ tests/api-resources/ai-gateway/provider-configs.test.ts
tests/api-resources/ai-gateway/urls.test.ts
tests/api-resources/iam/iam.test.ts
tests/api-resources/iam/permission-groups.test.ts
diff --git a/src/index.ts b/src/index.ts
index d520290255..3f168787fe 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -27,6 +27,7 @@ import { CustomNameservers } from './resources/custom-nameservers';
import { CustomPages } from './resources/custom-pages';
import { DCVDelegation } from './resources/dcv-delegation';
import { Filters } from './resources/filters';
+import { Fraud } from './resources/fraud';
import { IPs } from './resources/ips';
import { KeylessCertificates } from './resources/keyless-certificates';
import { ManagedTransforms } from './resources/managed-transforms';
@@ -344,6 +345,7 @@ export class Cloudflare extends Core.APIClient {
urlScanner: API.URLScanner = new API.URLScanner(this);
radar: API.Radar = new API.Radar(this);
botManagement: API.BotManagement = new API.BotManagement(this);
+ fraud: API.Fraud = new API.Fraud(this);
originPostQuantumEncryption: API.OriginPostQuantumEncryption = new API.OriginPostQuantumEncryption(this);
zaraz: API.Zaraz = new API.Zaraz(this);
speed: API.Speed = new API.Speed(this);
@@ -587,6 +589,7 @@ Cloudflare.Vectorize = Vectorize;
Cloudflare.URLScanner = URLScanner;
Cloudflare.Radar = Radar;
Cloudflare.BotManagement = BotManagement;
+Cloudflare.Fraud = Fraud;
Cloudflare.OriginPostQuantumEncryption = OriginPostQuantumEncryption;
Cloudflare.Zaraz = Zaraz;
Cloudflare.Speed = Speed;
@@ -798,6 +801,8 @@ export declare namespace Cloudflare {
export { BotManagement as BotManagement };
+ export { Fraud as Fraud };
+
export { OriginPostQuantumEncryption as OriginPostQuantumEncryption };
export { Zaraz as Zaraz };
diff --git a/src/resources/accounts/accounts.ts b/src/resources/accounts/accounts.ts
index 332d3d488d..b0bd48a836 100644
--- a/src/resources/accounts/accounts.ts
+++ b/src/resources/accounts/accounts.ts
@@ -273,7 +273,7 @@ export interface AccountUpdateParams {
name: string;
/**
- * Body param:
+ * Body param
*/
type: 'standard' | 'enterprise';
diff --git a/src/resources/accounts/logs/audit.ts b/src/resources/accounts/logs/audit.ts
index c951fa3b1a..985eff5625 100644
--- a/src/resources/accounts/logs/audit.ts
+++ b/src/resources/accounts/logs/audit.ts
@@ -253,62 +253,62 @@ export interface AuditListParams extends CursorPaginationAfterParams {
since: string;
/**
- * Query param:
+ * Query param
*/
id?: AuditListParams.ID;
/**
- * Query param:
+ * Query param
*/
account_name?: AuditListParams.AccountName;
/**
- * Query param:
+ * Query param
*/
action_result?: AuditListParams.ActionResult;
/**
- * Query param:
+ * Query param
*/
action_type?: AuditListParams.ActionType;
/**
- * Query param:
+ * Query param
*/
actor_context?: AuditListParams.ActorContext;
/**
- * Query param:
+ * Query param
*/
actor_email?: AuditListParams.ActorEmail;
/**
- * Query param:
+ * Query param
*/
actor_id?: AuditListParams.ActorID;
/**
- * Query param:
+ * Query param
*/
actor_ip_address?: AuditListParams.ActorIPAddress;
/**
- * Query param:
+ * Query param
*/
actor_token_id?: AuditListParams.ActorTokenID;
/**
- * Query param:
+ * Query param
*/
actor_token_name?: AuditListParams.ActorTokenName;
/**
- * Query param:
+ * Query param
*/
actor_type?: AuditListParams.ActorType;
/**
- * Query param:
+ * Query param
*/
audit_log_id?: AuditListParams.AuditLogID;
@@ -325,52 +325,52 @@ export interface AuditListParams extends CursorPaginationAfterParams {
limit?: number;
/**
- * Query param:
+ * Query param
*/
raw_cf_ray_id?: AuditListParams.RawCfRayID;
/**
- * Query param:
+ * Query param
*/
raw_method?: AuditListParams.RawMethod;
/**
- * Query param:
+ * Query param
*/
raw_status_code?: AuditListParams.RawStatusCode;
/**
- * Query param:
+ * Query param
*/
raw_uri?: AuditListParams.RawURI;
/**
- * Query param:
+ * Query param
*/
resource_id?: AuditListParams.ResourceID;
/**
- * Query param:
+ * Query param
*/
resource_product?: AuditListParams.ResourceProduct;
/**
- * Query param:
+ * Query param
*/
resource_scope?: AuditListParams.ResourceScope;
/**
- * Query param:
+ * Query param
*/
resource_type?: AuditListParams.ResourceType;
/**
- * Query param:
+ * Query param
*/
zone_id?: AuditListParams.ZoneID;
/**
- * Query param:
+ * Query param
*/
zone_name?: AuditListParams.ZoneName;
}
diff --git a/src/resources/accounts/members.ts b/src/resources/accounts/members.ts
index d8e62fa448..7f068658b2 100644
--- a/src/resources/accounts/members.ts
+++ b/src/resources/accounts/members.ts
@@ -160,7 +160,7 @@ export declare namespace MemberCreateParams {
roles: Array;
/**
- * Body param:
+ * Body param
*/
status?: 'accepted' | 'pending';
}
@@ -182,7 +182,7 @@ export declare namespace MemberCreateParams {
policies: Array;
/**
- * Body param:
+ * Body param
*/
status?: 'accepted' | 'pending';
}
diff --git a/src/resources/accounts/tokens/tokens.ts b/src/resources/accounts/tokens/tokens.ts
index 964d4dbf9b..f5d2cf3575 100644
--- a/src/resources/accounts/tokens/tokens.ts
+++ b/src/resources/accounts/tokens/tokens.ts
@@ -306,7 +306,7 @@ export interface TokenCreateParams {
policies: Array;
/**
- * Body param:
+ * Body param
*/
condition?: TokenCreateParams.Condition;
@@ -365,7 +365,7 @@ export interface TokenUpdateParams {
policies: Array;
/**
- * Body param:
+ * Body param
*/
condition?: TokenUpdateParams.Condition;
diff --git a/src/resources/accounts/tokens/value.ts b/src/resources/accounts/tokens/value.ts
index 26a17684f0..dc8d6d702d 100644
--- a/src/resources/accounts/tokens/value.ts
+++ b/src/resources/accounts/tokens/value.ts
@@ -42,7 +42,7 @@ export interface ValueUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
diff --git a/src/resources/addressing/address-maps/accounts.ts b/src/resources/addressing/address-maps/accounts.ts
index 24ad9c25e4..ba351be422 100644
--- a/src/resources/addressing/address-maps/accounts.ts
+++ b/src/resources/addressing/address-maps/accounts.ts
@@ -201,7 +201,7 @@ export interface AccountUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
diff --git a/src/resources/addressing/address-maps/address-maps.ts b/src/resources/addressing/address-maps/address-maps.ts
index c883305809..4c868124c4 100644
--- a/src/resources/addressing/address-maps/address-maps.ts
+++ b/src/resources/addressing/address-maps/address-maps.ts
@@ -441,7 +441,7 @@ export interface AddressMapCreateParams {
enabled?: boolean | null;
/**
- * Body param:
+ * Body param
*/
ips?: Array;
diff --git a/src/resources/addressing/address-maps/ips.ts b/src/resources/addressing/address-maps/ips.ts
index 9200c70acd..ec5c346e57 100644
--- a/src/resources/addressing/address-maps/ips.ts
+++ b/src/resources/addressing/address-maps/ips.ts
@@ -203,7 +203,7 @@ export interface IPUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
diff --git a/src/resources/addressing/address-maps/zones.ts b/src/resources/addressing/address-maps/zones.ts
index 88c7b17abf..9014688d83 100644
--- a/src/resources/addressing/address-maps/zones.ts
+++ b/src/resources/addressing/address-maps/zones.ts
@@ -210,7 +210,7 @@ export interface ZoneUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
diff --git a/src/resources/addressing/prefixes/bgp-prefixes.ts b/src/resources/addressing/prefixes/bgp-prefixes.ts
index f8cd80f52e..feef99102e 100644
--- a/src/resources/addressing/prefixes/bgp-prefixes.ts
+++ b/src/resources/addressing/prefixes/bgp-prefixes.ts
@@ -247,7 +247,7 @@ export interface BGPPrefixEditParams {
auto_advertise_withdraw?: boolean;
/**
- * Body param:
+ * Body param
*/
on_demand?: BGPPrefixEditParams.OnDemand;
}
diff --git a/src/resources/ai-gateway/ai-gateway.ts b/src/resources/ai-gateway/ai-gateway.ts
index ab523f63fc..a283b2e8bd 100644
--- a/src/resources/ai-gateway/ai-gateway.ts
+++ b/src/resources/ai-gateway/ai-gateway.ts
@@ -17,6 +17,30 @@ import {
DatasetUpdateResponse,
Datasets,
} from './datasets';
+import * as DynamicRoutingAPI from './dynamic-routing';
+import {
+ DynamicRouting,
+ DynamicRoutingCreateDeploymentParams,
+ DynamicRoutingCreateDeploymentResponse,
+ DynamicRoutingCreateParams,
+ DynamicRoutingCreateResponse,
+ DynamicRoutingCreateVersionParams,
+ DynamicRoutingCreateVersionResponse,
+ DynamicRoutingDeleteParams,
+ DynamicRoutingDeleteResponse,
+ DynamicRoutingGetParams,
+ DynamicRoutingGetResponse,
+ DynamicRoutingGetVersionParams,
+ DynamicRoutingGetVersionResponse,
+ DynamicRoutingListDeploymentsParams,
+ DynamicRoutingListDeploymentsResponse,
+ DynamicRoutingListParams,
+ DynamicRoutingListResponse,
+ DynamicRoutingListVersionsParams,
+ DynamicRoutingListVersionsResponse,
+ DynamicRoutingUpdateParams,
+ DynamicRoutingUpdateResponse,
+} from './dynamic-routing';
import * as EvaluationTypesAPI from './evaluation-types';
import {
EvaluationTypeListParams,
@@ -54,6 +78,15 @@ import {
LogResponseResponse,
Logs,
} from './logs';
+import * as ProviderConfigsAPI from './provider-configs';
+import {
+ ProviderConfigCreateParams,
+ ProviderConfigCreateResponse,
+ ProviderConfigListParams,
+ ProviderConfigListResponse,
+ ProviderConfigListResponsesV4PagePaginationArray,
+ ProviderConfigs,
+} from './provider-configs';
import * as URLsAPI from './urls';
import { URLGetParams, URLGetResponse, URLs } from './urls';
import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../pagination';
@@ -63,6 +96,8 @@ export class AIGateway extends APIResource {
logs: LogsAPI.Logs = new LogsAPI.Logs(this._client);
datasets: DatasetsAPI.Datasets = new DatasetsAPI.Datasets(this._client);
evaluations: EvaluationsAPI.Evaluations = new EvaluationsAPI.Evaluations(this._client);
+ dynamicRouting: DynamicRoutingAPI.DynamicRouting = new DynamicRoutingAPI.DynamicRouting(this._client);
+ providerConfigs: ProviderConfigsAPI.ProviderConfigs = new ProviderConfigsAPI.ProviderConfigs(this._client);
urls: URLsAPI.URLs = new URLsAPI.URLs(this._client);
/**
@@ -710,7 +745,7 @@ export namespace AIGatewayGetResponse {
export interface AIGatewayCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -720,159 +755,159 @@ export interface AIGatewayCreateParams {
id: string;
/**
- * Body param:
+ * Body param
*/
cache_invalidate_on_update: boolean;
/**
- * Body param:
+ * Body param
*/
cache_ttl: number | null;
/**
- * Body param:
+ * Body param
*/
collect_logs: boolean;
/**
- * Body param:
+ * Body param
*/
rate_limiting_interval: number | null;
/**
- * Body param:
+ * Body param
*/
rate_limiting_limit: number | null;
/**
- * Body param:
+ * Body param
*/
rate_limiting_technique: 'fixed' | 'sliding';
/**
- * Body param:
+ * Body param
*/
authentication?: boolean;
/**
- * Body param:
+ * Body param
*/
is_default?: boolean;
/**
- * Body param:
+ * Body param
*/
log_management?: number | null;
/**
- * Body param:
+ * Body param
*/
log_management_strategy?: 'STOP_INSERTING' | 'DELETE_OLDEST' | null;
/**
- * Body param:
+ * Body param
*/
logpush?: boolean;
/**
- * Body param:
+ * Body param
*/
logpush_public_key?: string | null;
/**
- * Body param:
+ * Body param
*/
zdr?: boolean;
}
export interface AIGatewayUpdateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
cache_invalidate_on_update: boolean;
/**
- * Body param:
+ * Body param
*/
cache_ttl: number | null;
/**
- * Body param:
+ * Body param
*/
collect_logs: boolean;
/**
- * Body param:
+ * Body param
*/
rate_limiting_interval: number | null;
/**
- * Body param:
+ * Body param
*/
rate_limiting_limit: number | null;
/**
- * Body param:
+ * Body param
*/
rate_limiting_technique: 'fixed' | 'sliding';
/**
- * Body param:
+ * Body param
*/
authentication?: boolean;
/**
- * Body param:
+ * Body param
*/
dlp?: AIGatewayUpdateParams.UnionMember0 | AIGatewayUpdateParams.UnionMember1;
/**
- * Body param:
+ * Body param
*/
is_default?: boolean;
/**
- * Body param:
+ * Body param
*/
log_management?: number | null;
/**
- * Body param:
+ * Body param
*/
log_management_strategy?: 'STOP_INSERTING' | 'DELETE_OLDEST' | null;
/**
- * Body param:
+ * Body param
*/
logpush?: boolean;
/**
- * Body param:
+ * Body param
*/
logpush_public_key?: string | null;
/**
- * Body param:
+ * Body param
*/
otel?: Array | null;
/**
- * Body param:
+ * Body param
*/
store_id?: string | null;
/**
- * Body param:
+ * Body param
*/
stripe?: AIGatewayUpdateParams.Stripe | null;
/**
- * Body param:
+ * Body param
*/
zdr?: boolean;
}
@@ -929,7 +964,7 @@ export namespace AIGatewayUpdateParams {
export interface AIGatewayListParams extends V4PagePaginationArrayParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -956,6 +991,9 @@ AIGateway.Datasets = Datasets;
AIGateway.DatasetListResponsesV4PagePaginationArray = DatasetListResponsesV4PagePaginationArray;
AIGateway.Evaluations = Evaluations;
AIGateway.EvaluationListResponsesV4PagePaginationArray = EvaluationListResponsesV4PagePaginationArray;
+AIGateway.DynamicRouting = DynamicRouting;
+AIGateway.ProviderConfigs = ProviderConfigs;
+AIGateway.ProviderConfigListResponsesV4PagePaginationArray = ProviderConfigListResponsesV4PagePaginationArray;
AIGateway.URLs = URLs;
export declare namespace AIGateway {
@@ -1025,5 +1063,38 @@ export declare namespace AIGateway {
type EvaluationGetParams as EvaluationGetParams,
};
+ export {
+ DynamicRouting as DynamicRouting,
+ type DynamicRoutingCreateResponse as DynamicRoutingCreateResponse,
+ type DynamicRoutingUpdateResponse as DynamicRoutingUpdateResponse,
+ type DynamicRoutingListResponse as DynamicRoutingListResponse,
+ type DynamicRoutingDeleteResponse as DynamicRoutingDeleteResponse,
+ type DynamicRoutingCreateDeploymentResponse as DynamicRoutingCreateDeploymentResponse,
+ type DynamicRoutingCreateVersionResponse as DynamicRoutingCreateVersionResponse,
+ type DynamicRoutingGetResponse as DynamicRoutingGetResponse,
+ type DynamicRoutingGetVersionResponse as DynamicRoutingGetVersionResponse,
+ type DynamicRoutingListDeploymentsResponse as DynamicRoutingListDeploymentsResponse,
+ type DynamicRoutingListVersionsResponse as DynamicRoutingListVersionsResponse,
+ type DynamicRoutingCreateParams as DynamicRoutingCreateParams,
+ type DynamicRoutingUpdateParams as DynamicRoutingUpdateParams,
+ type DynamicRoutingListParams as DynamicRoutingListParams,
+ type DynamicRoutingDeleteParams as DynamicRoutingDeleteParams,
+ type DynamicRoutingCreateDeploymentParams as DynamicRoutingCreateDeploymentParams,
+ type DynamicRoutingCreateVersionParams as DynamicRoutingCreateVersionParams,
+ type DynamicRoutingGetParams as DynamicRoutingGetParams,
+ type DynamicRoutingGetVersionParams as DynamicRoutingGetVersionParams,
+ type DynamicRoutingListDeploymentsParams as DynamicRoutingListDeploymentsParams,
+ type DynamicRoutingListVersionsParams as DynamicRoutingListVersionsParams,
+ };
+
+ export {
+ ProviderConfigs as ProviderConfigs,
+ type ProviderConfigCreateResponse as ProviderConfigCreateResponse,
+ type ProviderConfigListResponse as ProviderConfigListResponse,
+ ProviderConfigListResponsesV4PagePaginationArray as ProviderConfigListResponsesV4PagePaginationArray,
+ type ProviderConfigCreateParams as ProviderConfigCreateParams,
+ type ProviderConfigListParams as ProviderConfigListParams,
+ };
+
export { URLs as URLs, type URLGetResponse as URLGetResponse, type URLGetParams as URLGetParams };
}
diff --git a/src/resources/ai-gateway/datasets.ts b/src/resources/ai-gateway/datasets.ts
index fdf7c5f990..3b9f2b71b1 100644
--- a/src/resources/ai-gateway/datasets.ts
+++ b/src/resources/ai-gateway/datasets.ts
@@ -395,22 +395,22 @@ export namespace DatasetGetResponse {
export interface DatasetCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
enable: boolean;
/**
- * Body param:
+ * Body param
*/
filters: Array;
/**
- * Body param:
+ * Body param
*/
name: string;
}
@@ -440,22 +440,22 @@ export namespace DatasetCreateParams {
export interface DatasetUpdateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
enable: boolean;
/**
- * Body param:
+ * Body param
*/
filters: Array;
/**
- * Body param:
+ * Body param
*/
name: string;
}
@@ -485,17 +485,17 @@ export namespace DatasetUpdateParams {
export interface DatasetListParams extends V4PagePaginationArrayParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
enable?: boolean;
/**
- * Query param:
+ * Query param
*/
name?: string;
diff --git a/src/resources/ai-gateway/dynamic-routing.ts b/src/resources/ai-gateway/dynamic-routing.ts
new file mode 100644
index 0000000000..ce08dfe018
--- /dev/null
+++ b/src/resources/ai-gateway/dynamic-routing.ts
@@ -0,0 +1,2394 @@
+// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+import { APIResource } from '../../resource';
+import * as Core from '../../core';
+
+export class DynamicRouting extends APIResource {
+ /**
+ * Create a new AI Gateway Dynamic Route.
+ *
+ * @example
+ * ```ts
+ * const dynamicRouting =
+ * await client.aiGateway.dynamicRouting.create('54442216', {
+ * account_id: '0d37909e38d3e99c29fa2cd343ac421a',
+ * elements: [
+ * {
+ * id: 'id',
+ * outputs: { next: { elementId: 'elementId' } },
+ * type: 'start',
+ * },
+ * ],
+ * name: 'name',
+ * });
+ * ```
+ */
+ create(
+ gatewayId: string,
+ params: DynamicRoutingCreateParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id, ...body } = params;
+ return (
+ this._client.post(`/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes`, {
+ body,
+ ...options,
+ }) as Core.APIPromise<{ result: DynamicRoutingCreateResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Update an AI Gateway Dynamic Route.
+ *
+ * @example
+ * ```ts
+ * const dynamicRouting =
+ * await client.aiGateway.dynamicRouting.update(
+ * '54442216',
+ * '54442216',
+ * {
+ * account_id: '0d37909e38d3e99c29fa2cd343ac421a',
+ * name: 'Route Name',
+ * },
+ * );
+ * ```
+ */
+ update(
+ gatewayId: string,
+ id: string,
+ params: DynamicRoutingUpdateParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id, ...body } = params;
+ return this._client.patch(`/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}`, {
+ body,
+ ...options,
+ });
+ }
+
+ /**
+ * List all AI Gateway Dynamic Routes.
+ *
+ * @example
+ * ```ts
+ * const dynamicRoutings =
+ * await client.aiGateway.dynamicRouting.list('54442216', {
+ * account_id: '0d37909e38d3e99c29fa2cd343ac421a',
+ * });
+ * ```
+ */
+ list(
+ gatewayId: string,
+ params: DynamicRoutingListParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id } = params;
+ return this._client.get(`/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes`, options);
+ }
+
+ /**
+ * Delete an AI Gateway Dynamic Route.
+ *
+ * @example
+ * ```ts
+ * const dynamicRouting =
+ * await client.aiGateway.dynamicRouting.delete(
+ * '54442216',
+ * '54442216',
+ * { account_id: '0d37909e38d3e99c29fa2cd343ac421a' },
+ * );
+ * ```
+ */
+ delete(
+ gatewayId: string,
+ id: string,
+ params: DynamicRoutingDeleteParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id } = params;
+ return (
+ this._client.delete(
+ `/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}`,
+ options,
+ ) as Core.APIPromise<{ result: DynamicRoutingDeleteResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Create a new AI Gateway Dynamic Route Deployment.
+ *
+ * @example
+ * ```ts
+ * const response =
+ * await client.aiGateway.dynamicRouting.createDeployment(
+ * '54442216',
+ * '54442216',
+ * {
+ * account_id: '0d37909e38d3e99c29fa2cd343ac421a',
+ * comment: 'Route Deployment Comment',
+ * version_id: '54442216',
+ * },
+ * );
+ * ```
+ */
+ createDeployment(
+ gatewayId: string,
+ id: string,
+ params: DynamicRoutingCreateDeploymentParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id, ...body } = params;
+ return (
+ this._client.post(`/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}/deployments`, {
+ body,
+ ...options,
+ }) as Core.APIPromise<{ result: DynamicRoutingCreateDeploymentResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Create a new AI Gateway Dynamic Route Version.
+ *
+ * @example
+ * ```ts
+ * const response =
+ * await client.aiGateway.dynamicRouting.createVersion(
+ * '54442216',
+ * '54442216',
+ * {
+ * account_id: '0d37909e38d3e99c29fa2cd343ac421a',
+ * comment: 'Route Version Comment',
+ * elements: [
+ * {
+ * id: 'id',
+ * outputs: { next: { elementId: 'elementId' } },
+ * type: 'start',
+ * },
+ * ],
+ * },
+ * );
+ * ```
+ */
+ createVersion(
+ gatewayId: string,
+ id: string,
+ params: DynamicRoutingCreateVersionParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id, ...body } = params;
+ return (
+ this._client.post(`/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}/versions`, {
+ body,
+ ...options,
+ }) as Core.APIPromise<{ result: DynamicRoutingCreateVersionResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Get an AI Gateway Dynamic Route.
+ *
+ * @example
+ * ```ts
+ * const dynamicRouting =
+ * await client.aiGateway.dynamicRouting.get(
+ * '54442216',
+ * '54442216',
+ * { account_id: '0d37909e38d3e99c29fa2cd343ac421a' },
+ * );
+ * ```
+ */
+ get(
+ gatewayId: string,
+ id: string,
+ params: DynamicRoutingGetParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id } = params;
+ return (
+ this._client.get(
+ `/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}`,
+ options,
+ ) as Core.APIPromise<{ result: DynamicRoutingGetResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Get an AI Gateway Dynamic Route Version.
+ *
+ * @example
+ * ```ts
+ * const response =
+ * await client.aiGateway.dynamicRouting.getVersion(
+ * '54442216',
+ * '54442216',
+ * '54442216',
+ * { account_id: '0d37909e38d3e99c29fa2cd343ac421a' },
+ * );
+ * ```
+ */
+ getVersion(
+ gatewayId: string,
+ id: string,
+ versionId: string,
+ params: DynamicRoutingGetVersionParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id } = params;
+ return (
+ this._client.get(
+ `/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}/versions/${versionId}`,
+ options,
+ ) as Core.APIPromise<{ result: DynamicRoutingGetVersionResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * List all AI Gateway Dynamic Route Deployments.
+ *
+ * @example
+ * ```ts
+ * const response =
+ * await client.aiGateway.dynamicRouting.listDeployments(
+ * '54442216',
+ * '54442216',
+ * { account_id: '0d37909e38d3e99c29fa2cd343ac421a' },
+ * );
+ * ```
+ */
+ listDeployments(
+ gatewayId: string,
+ id: string,
+ params: DynamicRoutingListDeploymentsParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id } = params;
+ return this._client.get(
+ `/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}/deployments`,
+ options,
+ );
+ }
+
+ /**
+ * List all AI Gateway Dynamic Route Versions.
+ *
+ * @example
+ * ```ts
+ * const response =
+ * await client.aiGateway.dynamicRouting.listVersions(
+ * '54442216',
+ * '54442216',
+ * { account_id: '0d37909e38d3e99c29fa2cd343ac421a' },
+ * );
+ * ```
+ */
+ listVersions(
+ gatewayId: string,
+ id: string,
+ params: DynamicRoutingListVersionsParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id } = params;
+ return this._client.get(
+ `/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}/versions`,
+ options,
+ );
+ }
+}
+
+export interface DynamicRoutingCreateResponse {
+ id: string;
+
+ account_tag: string;
+
+ created_at: string;
+
+ deployment: DynamicRoutingCreateResponse.Deployment;
+
+ elements: Array<
+ | DynamicRoutingCreateResponse.UnionMember0
+ | DynamicRoutingCreateResponse.UnionMember1
+ | DynamicRoutingCreateResponse.UnionMember2
+ | DynamicRoutingCreateResponse.UnionMember3
+ | DynamicRoutingCreateResponse.UnionMember4
+ | DynamicRoutingCreateResponse.UnionMember5
+ >;
+
+ gateway_id: string;
+
+ modified_at: string;
+
+ name: string;
+
+ version: DynamicRoutingCreateResponse.Version;
+}
+
+export namespace DynamicRoutingCreateResponse {
+ export interface Deployment {
+ created_at: string;
+
+ deployment_id: string;
+
+ version_id: string;
+
+ comment?: string | null;
+ }
+
+ export interface UnionMember0 {
+ id: string;
+
+ outputs: UnionMember0.Outputs;
+
+ type: 'start';
+ }
+
+ export namespace UnionMember0 {
+ export interface Outputs {
+ next: Outputs.Next;
+ }
+
+ export namespace Outputs {
+ export interface Next {
+ elementId: string;
+ }
+ }
+ }
+
+ export interface UnionMember1 {
+ id: string;
+
+ outputs: UnionMember1.Outputs;
+
+ properties: UnionMember1.Properties;
+
+ type: 'conditional';
+ }
+
+ export namespace UnionMember1 {
+ export interface Outputs {
+ false: Outputs.False;
+
+ true: Outputs.True;
+ }
+
+ export namespace Outputs {
+ export interface False {
+ elementId: string;
+ }
+
+ export interface True {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ conditions?: unknown;
+ }
+ }
+
+ export interface UnionMember2 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember2.Outputs };
+
+ type: 'percentage';
+ }
+
+ export namespace UnionMember2 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+
+ export interface UnionMember3 {
+ id: string;
+
+ outputs: UnionMember3.Outputs;
+
+ properties: UnionMember3.Properties;
+
+ type: 'rate';
+ }
+
+ export namespace UnionMember3 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ key: string;
+
+ limit: number;
+
+ limitType: 'count' | 'cost';
+
+ window: number;
+ }
+ }
+
+ export interface UnionMember4 {
+ id: string;
+
+ outputs: UnionMember4.Outputs;
+
+ properties: UnionMember4.Properties;
+
+ type: 'model';
+ }
+
+ export namespace UnionMember4 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ model: string;
+
+ provider: string;
+
+ retries: number;
+
+ timeout: number;
+ }
+ }
+
+ export interface UnionMember5 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember5.Outputs };
+
+ type: 'end';
+ }
+
+ export namespace UnionMember5 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+
+ export interface Version {
+ active: 'true' | 'false';
+
+ created_at: string;
+
+ data: string;
+
+ version_id: string;
+
+ comment?: string | null;
+ }
+}
+
+export interface DynamicRoutingUpdateResponse {
+ route: DynamicRoutingUpdateResponse.Route;
+
+ success: boolean;
+}
+
+export namespace DynamicRoutingUpdateResponse {
+ export interface Route {
+ id: string;
+
+ account_tag: string;
+
+ created_at: string;
+
+ deployment: Route.Deployment;
+
+ elements: Array<
+ | Route.UnionMember0
+ | Route.UnionMember1
+ | Route.UnionMember2
+ | Route.UnionMember3
+ | Route.UnionMember4
+ | Route.UnionMember5
+ >;
+
+ gateway_id: string;
+
+ modified_at: string;
+
+ name: string;
+
+ version: Route.Version;
+ }
+
+ export namespace Route {
+ export interface Deployment {
+ created_at: string;
+
+ deployment_id: string;
+
+ version_id: string;
+
+ comment?: string | null;
+ }
+
+ export interface UnionMember0 {
+ id: string;
+
+ outputs: UnionMember0.Outputs;
+
+ type: 'start';
+ }
+
+ export namespace UnionMember0 {
+ export interface Outputs {
+ next: Outputs.Next;
+ }
+
+ export namespace Outputs {
+ export interface Next {
+ elementId: string;
+ }
+ }
+ }
+
+ export interface UnionMember1 {
+ id: string;
+
+ outputs: UnionMember1.Outputs;
+
+ properties: UnionMember1.Properties;
+
+ type: 'conditional';
+ }
+
+ export namespace UnionMember1 {
+ export interface Outputs {
+ false: Outputs.False;
+
+ true: Outputs.True;
+ }
+
+ export namespace Outputs {
+ export interface False {
+ elementId: string;
+ }
+
+ export interface True {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ conditions?: unknown;
+ }
+ }
+
+ export interface UnionMember2 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember2.Outputs };
+
+ type: 'percentage';
+ }
+
+ export namespace UnionMember2 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+
+ export interface UnionMember3 {
+ id: string;
+
+ outputs: UnionMember3.Outputs;
+
+ properties: UnionMember3.Properties;
+
+ type: 'rate';
+ }
+
+ export namespace UnionMember3 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ key: string;
+
+ limit: number;
+
+ limitType: 'count' | 'cost';
+
+ window: number;
+ }
+ }
+
+ export interface UnionMember4 {
+ id: string;
+
+ outputs: UnionMember4.Outputs;
+
+ properties: UnionMember4.Properties;
+
+ type: 'model';
+ }
+
+ export namespace UnionMember4 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ model: string;
+
+ provider: string;
+
+ retries: number;
+
+ timeout: number;
+ }
+ }
+
+ export interface UnionMember5 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember5.Outputs };
+
+ type: 'end';
+ }
+
+ export namespace UnionMember5 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+
+ export interface Version {
+ active: 'true' | 'false';
+
+ created_at: string;
+
+ data: string;
+
+ version_id: string;
+
+ comment?: string | null;
+ }
+ }
+}
+
+export interface DynamicRoutingListResponse {
+ data: DynamicRoutingListResponse.Data;
+
+ success: boolean;
+}
+
+export namespace DynamicRoutingListResponse {
+ export interface Data {
+ order_by: string;
+
+ order_by_direction: string;
+
+ page: number;
+
+ per_page: number;
+
+ routes: Array;
+ }
+
+ export namespace Data {
+ export interface Route {
+ id: string;
+
+ account_tag: string;
+
+ created_at: string;
+
+ deployment: Route.Deployment;
+
+ elements: Array<
+ | Route.UnionMember0
+ | Route.UnionMember1
+ | Route.UnionMember2
+ | Route.UnionMember3
+ | Route.UnionMember4
+ | Route.UnionMember5
+ >;
+
+ gateway_id: string;
+
+ modified_at: string;
+
+ name: string;
+
+ version: Route.Version;
+ }
+
+ export namespace Route {
+ export interface Deployment {
+ created_at: string;
+
+ deployment_id: string;
+
+ version_id: string;
+
+ comment?: string | null;
+ }
+
+ export interface UnionMember0 {
+ id: string;
+
+ outputs: UnionMember0.Outputs;
+
+ type: 'start';
+ }
+
+ export namespace UnionMember0 {
+ export interface Outputs {
+ next: Outputs.Next;
+ }
+
+ export namespace Outputs {
+ export interface Next {
+ elementId: string;
+ }
+ }
+ }
+
+ export interface UnionMember1 {
+ id: string;
+
+ outputs: UnionMember1.Outputs;
+
+ properties: UnionMember1.Properties;
+
+ type: 'conditional';
+ }
+
+ export namespace UnionMember1 {
+ export interface Outputs {
+ false: Outputs.False;
+
+ true: Outputs.True;
+ }
+
+ export namespace Outputs {
+ export interface False {
+ elementId: string;
+ }
+
+ export interface True {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ conditions?: unknown;
+ }
+ }
+
+ export interface UnionMember2 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember2.Outputs };
+
+ type: 'percentage';
+ }
+
+ export namespace UnionMember2 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+
+ export interface UnionMember3 {
+ id: string;
+
+ outputs: UnionMember3.Outputs;
+
+ properties: UnionMember3.Properties;
+
+ type: 'rate';
+ }
+
+ export namespace UnionMember3 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ key: string;
+
+ limit: number;
+
+ limitType: 'count' | 'cost';
+
+ window: number;
+ }
+ }
+
+ export interface UnionMember4 {
+ id: string;
+
+ outputs: UnionMember4.Outputs;
+
+ properties: UnionMember4.Properties;
+
+ type: 'model';
+ }
+
+ export namespace UnionMember4 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ model: string;
+
+ provider: string;
+
+ retries: number;
+
+ timeout: number;
+ }
+ }
+
+ export interface UnionMember5 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember5.Outputs };
+
+ type: 'end';
+ }
+
+ export namespace UnionMember5 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+
+ export interface Version {
+ active: 'true' | 'false';
+
+ created_at: string;
+
+ data: string;
+
+ version_id: string;
+
+ comment?: string | null;
+ }
+ }
+ }
+}
+
+export interface DynamicRoutingDeleteResponse {
+ id: string;
+
+ account_tag: string;
+
+ created_at: string;
+
+ elements: Array<
+ | DynamicRoutingDeleteResponse.UnionMember0
+ | DynamicRoutingDeleteResponse.UnionMember1
+ | DynamicRoutingDeleteResponse.UnionMember2
+ | DynamicRoutingDeleteResponse.UnionMember3
+ | DynamicRoutingDeleteResponse.UnionMember4
+ | DynamicRoutingDeleteResponse.UnionMember5
+ >;
+
+ gateway_id: string;
+
+ modified_at: string;
+
+ name: string;
+}
+
+export namespace DynamicRoutingDeleteResponse {
+ export interface UnionMember0 {
+ id: string;
+
+ outputs: UnionMember0.Outputs;
+
+ type: 'start';
+ }
+
+ export namespace UnionMember0 {
+ export interface Outputs {
+ next: Outputs.Next;
+ }
+
+ export namespace Outputs {
+ export interface Next {
+ elementId: string;
+ }
+ }
+ }
+
+ export interface UnionMember1 {
+ id: string;
+
+ outputs: UnionMember1.Outputs;
+
+ properties: UnionMember1.Properties;
+
+ type: 'conditional';
+ }
+
+ export namespace UnionMember1 {
+ export interface Outputs {
+ false: Outputs.False;
+
+ true: Outputs.True;
+ }
+
+ export namespace Outputs {
+ export interface False {
+ elementId: string;
+ }
+
+ export interface True {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ conditions?: unknown;
+ }
+ }
+
+ export interface UnionMember2 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember2.Outputs };
+
+ type: 'percentage';
+ }
+
+ export namespace UnionMember2 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+
+ export interface UnionMember3 {
+ id: string;
+
+ outputs: UnionMember3.Outputs;
+
+ properties: UnionMember3.Properties;
+
+ type: 'rate';
+ }
+
+ export namespace UnionMember3 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ key: string;
+
+ limit: number;
+
+ limitType: 'count' | 'cost';
+
+ window: number;
+ }
+ }
+
+ export interface UnionMember4 {
+ id: string;
+
+ outputs: UnionMember4.Outputs;
+
+ properties: UnionMember4.Properties;
+
+ type: 'model';
+ }
+
+ export namespace UnionMember4 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ model: string;
+
+ provider: string;
+
+ retries: number;
+
+ timeout: number;
+ }
+ }
+
+ export interface UnionMember5 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember5.Outputs };
+
+ type: 'end';
+ }
+
+ export namespace UnionMember5 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+}
+
+export interface DynamicRoutingCreateDeploymentResponse {
+ id: string;
+
+ account_tag: string;
+
+ created_at: string;
+
+ elements: Array<
+ | DynamicRoutingCreateDeploymentResponse.UnionMember0
+ | DynamicRoutingCreateDeploymentResponse.UnionMember1
+ | DynamicRoutingCreateDeploymentResponse.UnionMember2
+ | DynamicRoutingCreateDeploymentResponse.UnionMember3
+ | DynamicRoutingCreateDeploymentResponse.UnionMember4
+ | DynamicRoutingCreateDeploymentResponse.UnionMember5
+ >;
+
+ gateway_id: string;
+
+ modified_at: string;
+
+ name: string;
+}
+
+export namespace DynamicRoutingCreateDeploymentResponse {
+ export interface UnionMember0 {
+ id: string;
+
+ outputs: UnionMember0.Outputs;
+
+ type: 'start';
+ }
+
+ export namespace UnionMember0 {
+ export interface Outputs {
+ next: Outputs.Next;
+ }
+
+ export namespace Outputs {
+ export interface Next {
+ elementId: string;
+ }
+ }
+ }
+
+ export interface UnionMember1 {
+ id: string;
+
+ outputs: UnionMember1.Outputs;
+
+ properties: UnionMember1.Properties;
+
+ type: 'conditional';
+ }
+
+ export namespace UnionMember1 {
+ export interface Outputs {
+ false: Outputs.False;
+
+ true: Outputs.True;
+ }
+
+ export namespace Outputs {
+ export interface False {
+ elementId: string;
+ }
+
+ export interface True {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ conditions?: unknown;
+ }
+ }
+
+ export interface UnionMember2 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember2.Outputs };
+
+ type: 'percentage';
+ }
+
+ export namespace UnionMember2 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+
+ export interface UnionMember3 {
+ id: string;
+
+ outputs: UnionMember3.Outputs;
+
+ properties: UnionMember3.Properties;
+
+ type: 'rate';
+ }
+
+ export namespace UnionMember3 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ key: string;
+
+ limit: number;
+
+ limitType: 'count' | 'cost';
+
+ window: number;
+ }
+ }
+
+ export interface UnionMember4 {
+ id: string;
+
+ outputs: UnionMember4.Outputs;
+
+ properties: UnionMember4.Properties;
+
+ type: 'model';
+ }
+
+ export namespace UnionMember4 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ model: string;
+
+ provider: string;
+
+ retries: number;
+
+ timeout: number;
+ }
+ }
+
+ export interface UnionMember5 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember5.Outputs };
+
+ type: 'end';
+ }
+
+ export namespace UnionMember5 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+}
+
+export interface DynamicRoutingCreateVersionResponse {
+ id: string;
+
+ account_tag: string;
+
+ created_at: string;
+
+ elements: Array<
+ | DynamicRoutingCreateVersionResponse.UnionMember0
+ | DynamicRoutingCreateVersionResponse.UnionMember1
+ | DynamicRoutingCreateVersionResponse.UnionMember2
+ | DynamicRoutingCreateVersionResponse.UnionMember3
+ | DynamicRoutingCreateVersionResponse.UnionMember4
+ | DynamicRoutingCreateVersionResponse.UnionMember5
+ >;
+
+ gateway_id: string;
+
+ modified_at: string;
+
+ name: string;
+}
+
+export namespace DynamicRoutingCreateVersionResponse {
+ export interface UnionMember0 {
+ id: string;
+
+ outputs: UnionMember0.Outputs;
+
+ type: 'start';
+ }
+
+ export namespace UnionMember0 {
+ export interface Outputs {
+ next: Outputs.Next;
+ }
+
+ export namespace Outputs {
+ export interface Next {
+ elementId: string;
+ }
+ }
+ }
+
+ export interface UnionMember1 {
+ id: string;
+
+ outputs: UnionMember1.Outputs;
+
+ properties: UnionMember1.Properties;
+
+ type: 'conditional';
+ }
+
+ export namespace UnionMember1 {
+ export interface Outputs {
+ false: Outputs.False;
+
+ true: Outputs.True;
+ }
+
+ export namespace Outputs {
+ export interface False {
+ elementId: string;
+ }
+
+ export interface True {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ conditions?: unknown;
+ }
+ }
+
+ export interface UnionMember2 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember2.Outputs };
+
+ type: 'percentage';
+ }
+
+ export namespace UnionMember2 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+
+ export interface UnionMember3 {
+ id: string;
+
+ outputs: UnionMember3.Outputs;
+
+ properties: UnionMember3.Properties;
+
+ type: 'rate';
+ }
+
+ export namespace UnionMember3 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ key: string;
+
+ limit: number;
+
+ limitType: 'count' | 'cost';
+
+ window: number;
+ }
+ }
+
+ export interface UnionMember4 {
+ id: string;
+
+ outputs: UnionMember4.Outputs;
+
+ properties: UnionMember4.Properties;
+
+ type: 'model';
+ }
+
+ export namespace UnionMember4 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ model: string;
+
+ provider: string;
+
+ retries: number;
+
+ timeout: number;
+ }
+ }
+
+ export interface UnionMember5 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember5.Outputs };
+
+ type: 'end';
+ }
+
+ export namespace UnionMember5 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+}
+
+export interface DynamicRoutingGetResponse {
+ id: string;
+
+ account_tag: string;
+
+ created_at: string;
+
+ deployment: DynamicRoutingGetResponse.Deployment;
+
+ elements: Array<
+ | DynamicRoutingGetResponse.UnionMember0
+ | DynamicRoutingGetResponse.UnionMember1
+ | DynamicRoutingGetResponse.UnionMember2
+ | DynamicRoutingGetResponse.UnionMember3
+ | DynamicRoutingGetResponse.UnionMember4
+ | DynamicRoutingGetResponse.UnionMember5
+ >;
+
+ gateway_id: string;
+
+ modified_at: string;
+
+ name: string;
+
+ version: DynamicRoutingGetResponse.Version;
+}
+
+export namespace DynamicRoutingGetResponse {
+ export interface Deployment {
+ created_at: string;
+
+ deployment_id: string;
+
+ version_id: string;
+
+ comment?: string | null;
+ }
+
+ export interface UnionMember0 {
+ id: string;
+
+ outputs: UnionMember0.Outputs;
+
+ type: 'start';
+ }
+
+ export namespace UnionMember0 {
+ export interface Outputs {
+ next: Outputs.Next;
+ }
+
+ export namespace Outputs {
+ export interface Next {
+ elementId: string;
+ }
+ }
+ }
+
+ export interface UnionMember1 {
+ id: string;
+
+ outputs: UnionMember1.Outputs;
+
+ properties: UnionMember1.Properties;
+
+ type: 'conditional';
+ }
+
+ export namespace UnionMember1 {
+ export interface Outputs {
+ false: Outputs.False;
+
+ true: Outputs.True;
+ }
+
+ export namespace Outputs {
+ export interface False {
+ elementId: string;
+ }
+
+ export interface True {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ conditions?: unknown;
+ }
+ }
+
+ export interface UnionMember2 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember2.Outputs };
+
+ type: 'percentage';
+ }
+
+ export namespace UnionMember2 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+
+ export interface UnionMember3 {
+ id: string;
+
+ outputs: UnionMember3.Outputs;
+
+ properties: UnionMember3.Properties;
+
+ type: 'rate';
+ }
+
+ export namespace UnionMember3 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ key: string;
+
+ limit: number;
+
+ limitType: 'count' | 'cost';
+
+ window: number;
+ }
+ }
+
+ export interface UnionMember4 {
+ id: string;
+
+ outputs: UnionMember4.Outputs;
+
+ properties: UnionMember4.Properties;
+
+ type: 'model';
+ }
+
+ export namespace UnionMember4 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ model: string;
+
+ provider: string;
+
+ retries: number;
+
+ timeout: number;
+ }
+ }
+
+ export interface UnionMember5 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember5.Outputs };
+
+ type: 'end';
+ }
+
+ export namespace UnionMember5 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+
+ export interface Version {
+ active: 'true' | 'false';
+
+ created_at: string;
+
+ data: string;
+
+ version_id: string;
+
+ comment?: string | null;
+ }
+}
+
+export interface DynamicRoutingGetVersionResponse {
+ id: string;
+
+ account_tag: string;
+
+ active: 'true' | 'false';
+
+ created_at: string;
+
+ data: string;
+
+ elements: Array<
+ | DynamicRoutingGetVersionResponse.UnionMember0
+ | DynamicRoutingGetVersionResponse.UnionMember1
+ | DynamicRoutingGetVersionResponse.UnionMember2
+ | DynamicRoutingGetVersionResponse.UnionMember3
+ | DynamicRoutingGetVersionResponse.UnionMember4
+ | DynamicRoutingGetVersionResponse.UnionMember5
+ >;
+
+ gateway_id: string;
+
+ modified_at: string;
+
+ name: string;
+
+ version_id: string;
+
+ comment?: string | null;
+}
+
+export namespace DynamicRoutingGetVersionResponse {
+ export interface UnionMember0 {
+ id: string;
+
+ outputs: UnionMember0.Outputs;
+
+ type: 'start';
+ }
+
+ export namespace UnionMember0 {
+ export interface Outputs {
+ next: Outputs.Next;
+ }
+
+ export namespace Outputs {
+ export interface Next {
+ elementId: string;
+ }
+ }
+ }
+
+ export interface UnionMember1 {
+ id: string;
+
+ outputs: UnionMember1.Outputs;
+
+ properties: UnionMember1.Properties;
+
+ type: 'conditional';
+ }
+
+ export namespace UnionMember1 {
+ export interface Outputs {
+ false: Outputs.False;
+
+ true: Outputs.True;
+ }
+
+ export namespace Outputs {
+ export interface False {
+ elementId: string;
+ }
+
+ export interface True {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ conditions?: unknown;
+ }
+ }
+
+ export interface UnionMember2 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember2.Outputs };
+
+ type: 'percentage';
+ }
+
+ export namespace UnionMember2 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+
+ export interface UnionMember3 {
+ id: string;
+
+ outputs: UnionMember3.Outputs;
+
+ properties: UnionMember3.Properties;
+
+ type: 'rate';
+ }
+
+ export namespace UnionMember3 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ key: string;
+
+ limit: number;
+
+ limitType: 'count' | 'cost';
+
+ window: number;
+ }
+ }
+
+ export interface UnionMember4 {
+ id: string;
+
+ outputs: UnionMember4.Outputs;
+
+ properties: UnionMember4.Properties;
+
+ type: 'model';
+ }
+
+ export namespace UnionMember4 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ model: string;
+
+ provider: string;
+
+ retries: number;
+
+ timeout: number;
+ }
+ }
+
+ export interface UnionMember5 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember5.Outputs };
+
+ type: 'end';
+ }
+
+ export namespace UnionMember5 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+}
+
+export interface DynamicRoutingListDeploymentsResponse {
+ data: DynamicRoutingListDeploymentsResponse.Data;
+
+ success: boolean;
+}
+
+export namespace DynamicRoutingListDeploymentsResponse {
+ export interface Data {
+ deployments: Array;
+
+ order_by: string;
+
+ order_by_direction: string;
+
+ page: number;
+
+ per_page: number;
+ }
+
+ export namespace Data {
+ export interface Deployment {
+ created_at: string;
+
+ deployment_id: string;
+
+ version_id: string;
+
+ comment?: string | null;
+ }
+ }
+}
+
+export interface DynamicRoutingListVersionsResponse {
+ data: DynamicRoutingListVersionsResponse.Data;
+
+ success: boolean;
+}
+
+export namespace DynamicRoutingListVersionsResponse {
+ export interface Data {
+ order_by: string;
+
+ order_by_direction: string;
+
+ page: number;
+
+ per_page: number;
+
+ versions: Array;
+ }
+
+ export namespace Data {
+ export interface Version {
+ active: 'true' | 'false';
+
+ created_at: string;
+
+ data: string;
+
+ version_id: string;
+
+ comment?: string | null;
+ }
+ }
+}
+
+export interface DynamicRoutingCreateParams {
+ /**
+ * Path param
+ */
+ account_id: string;
+
+ /**
+ * Body param
+ */
+ elements: Array<
+ | DynamicRoutingCreateParams.UnionMember0
+ | DynamicRoutingCreateParams.UnionMember1
+ | DynamicRoutingCreateParams.UnionMember2
+ | DynamicRoutingCreateParams.UnionMember3
+ | DynamicRoutingCreateParams.UnionMember4
+ | DynamicRoutingCreateParams.UnionMember5
+ >;
+
+ /**
+ * Body param
+ */
+ name: string;
+}
+
+export namespace DynamicRoutingCreateParams {
+ export interface UnionMember0 {
+ id: string;
+
+ outputs: UnionMember0.Outputs;
+
+ type: 'start';
+ }
+
+ export namespace UnionMember0 {
+ export interface Outputs {
+ next: Outputs.Next;
+ }
+
+ export namespace Outputs {
+ export interface Next {
+ elementId: string;
+ }
+ }
+ }
+
+ export interface UnionMember1 {
+ id: string;
+
+ outputs: UnionMember1.Outputs;
+
+ properties: UnionMember1.Properties;
+
+ type: 'conditional';
+ }
+
+ export namespace UnionMember1 {
+ export interface Outputs {
+ false: Outputs.False;
+
+ true: Outputs.True;
+ }
+
+ export namespace Outputs {
+ export interface False {
+ elementId: string;
+ }
+
+ export interface True {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ conditions?: unknown;
+ }
+ }
+
+ export interface UnionMember2 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember2.Outputs };
+
+ type: 'percentage';
+ }
+
+ export namespace UnionMember2 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+
+ export interface UnionMember3 {
+ id: string;
+
+ outputs: UnionMember3.Outputs;
+
+ properties: UnionMember3.Properties;
+
+ type: 'rate';
+ }
+
+ export namespace UnionMember3 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ key: string;
+
+ limit: number;
+
+ limitType: 'count' | 'cost';
+
+ window: number;
+ }
+ }
+
+ export interface UnionMember4 {
+ id: string;
+
+ outputs: UnionMember4.Outputs;
+
+ properties: UnionMember4.Properties;
+
+ type: 'model';
+ }
+
+ export namespace UnionMember4 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ model: string;
+
+ provider: string;
+
+ retries: number;
+
+ timeout: number;
+ }
+ }
+
+ export interface UnionMember5 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember5.Outputs };
+
+ type: 'end';
+ }
+
+ export namespace UnionMember5 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+}
+
+export interface DynamicRoutingUpdateParams {
+ /**
+ * Path param
+ */
+ account_id: string;
+
+ /**
+ * Body param
+ */
+ name: string;
+}
+
+export interface DynamicRoutingListParams {
+ account_id: string;
+}
+
+export interface DynamicRoutingDeleteParams {
+ account_id: string;
+}
+
+export interface DynamicRoutingCreateDeploymentParams {
+ /**
+ * Path param
+ */
+ account_id: string;
+
+ /**
+ * Body param
+ */
+ comment: string;
+
+ /**
+ * Body param
+ */
+ version_id: string;
+}
+
+export interface DynamicRoutingCreateVersionParams {
+ /**
+ * Path param
+ */
+ account_id: string;
+
+ /**
+ * Body param
+ */
+ comment: string;
+
+ /**
+ * Body param
+ */
+ elements: Array<
+ | DynamicRoutingCreateVersionParams.UnionMember0
+ | DynamicRoutingCreateVersionParams.UnionMember1
+ | DynamicRoutingCreateVersionParams.UnionMember2
+ | DynamicRoutingCreateVersionParams.UnionMember3
+ | DynamicRoutingCreateVersionParams.UnionMember4
+ | DynamicRoutingCreateVersionParams.UnionMember5
+ >;
+}
+
+export namespace DynamicRoutingCreateVersionParams {
+ export interface UnionMember0 {
+ id: string;
+
+ outputs: UnionMember0.Outputs;
+
+ type: 'start';
+ }
+
+ export namespace UnionMember0 {
+ export interface Outputs {
+ next: Outputs.Next;
+ }
+
+ export namespace Outputs {
+ export interface Next {
+ elementId: string;
+ }
+ }
+ }
+
+ export interface UnionMember1 {
+ id: string;
+
+ outputs: UnionMember1.Outputs;
+
+ properties: UnionMember1.Properties;
+
+ type: 'conditional';
+ }
+
+ export namespace UnionMember1 {
+ export interface Outputs {
+ false: Outputs.False;
+
+ true: Outputs.True;
+ }
+
+ export namespace Outputs {
+ export interface False {
+ elementId: string;
+ }
+
+ export interface True {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ conditions?: unknown;
+ }
+ }
+
+ export interface UnionMember2 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember2.Outputs };
+
+ type: 'percentage';
+ }
+
+ export namespace UnionMember2 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+
+ export interface UnionMember3 {
+ id: string;
+
+ outputs: UnionMember3.Outputs;
+
+ properties: UnionMember3.Properties;
+
+ type: 'rate';
+ }
+
+ export namespace UnionMember3 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ key: string;
+
+ limit: number;
+
+ limitType: 'count' | 'cost';
+
+ window: number;
+ }
+ }
+
+ export interface UnionMember4 {
+ id: string;
+
+ outputs: UnionMember4.Outputs;
+
+ properties: UnionMember4.Properties;
+
+ type: 'model';
+ }
+
+ export namespace UnionMember4 {
+ export interface Outputs {
+ fallback: Outputs.Fallback;
+
+ success: Outputs.Success;
+ }
+
+ export namespace Outputs {
+ export interface Fallback {
+ elementId: string;
+ }
+
+ export interface Success {
+ elementId: string;
+ }
+ }
+
+ export interface Properties {
+ model: string;
+
+ provider: string;
+
+ retries: number;
+
+ timeout: number;
+ }
+ }
+
+ export interface UnionMember5 {
+ id: string;
+
+ outputs: { [key: string]: UnionMember5.Outputs };
+
+ type: 'end';
+ }
+
+ export namespace UnionMember5 {
+ export interface Outputs {
+ elementId: string;
+ }
+ }
+}
+
+export interface DynamicRoutingGetParams {
+ account_id: string;
+}
+
+export interface DynamicRoutingGetVersionParams {
+ account_id: string;
+}
+
+export interface DynamicRoutingListDeploymentsParams {
+ account_id: string;
+}
+
+export interface DynamicRoutingListVersionsParams {
+ account_id: string;
+}
+
+export declare namespace DynamicRouting {
+ export {
+ type DynamicRoutingCreateResponse as DynamicRoutingCreateResponse,
+ type DynamicRoutingUpdateResponse as DynamicRoutingUpdateResponse,
+ type DynamicRoutingListResponse as DynamicRoutingListResponse,
+ type DynamicRoutingDeleteResponse as DynamicRoutingDeleteResponse,
+ type DynamicRoutingCreateDeploymentResponse as DynamicRoutingCreateDeploymentResponse,
+ type DynamicRoutingCreateVersionResponse as DynamicRoutingCreateVersionResponse,
+ type DynamicRoutingGetResponse as DynamicRoutingGetResponse,
+ type DynamicRoutingGetVersionResponse as DynamicRoutingGetVersionResponse,
+ type DynamicRoutingListDeploymentsResponse as DynamicRoutingListDeploymentsResponse,
+ type DynamicRoutingListVersionsResponse as DynamicRoutingListVersionsResponse,
+ type DynamicRoutingCreateParams as DynamicRoutingCreateParams,
+ type DynamicRoutingUpdateParams as DynamicRoutingUpdateParams,
+ type DynamicRoutingListParams as DynamicRoutingListParams,
+ type DynamicRoutingDeleteParams as DynamicRoutingDeleteParams,
+ type DynamicRoutingCreateDeploymentParams as DynamicRoutingCreateDeploymentParams,
+ type DynamicRoutingCreateVersionParams as DynamicRoutingCreateVersionParams,
+ type DynamicRoutingGetParams as DynamicRoutingGetParams,
+ type DynamicRoutingGetVersionParams as DynamicRoutingGetVersionParams,
+ type DynamicRoutingListDeploymentsParams as DynamicRoutingListDeploymentsParams,
+ type DynamicRoutingListVersionsParams as DynamicRoutingListVersionsParams,
+ };
+}
diff --git a/src/resources/ai-gateway/evaluation-types.ts b/src/resources/ai-gateway/evaluation-types.ts
index 8a50a99868..6749f9d312 100644
--- a/src/resources/ai-gateway/evaluation-types.ts
+++ b/src/resources/ai-gateway/evaluation-types.ts
@@ -53,17 +53,17 @@ export interface EvaluationTypeListResponse {
export interface EvaluationTypeListParams extends V4PagePaginationArrayParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
order_by?: string;
/**
- * Query param:
+ * Query param
*/
order_by_direction?: 'asc' | 'desc';
}
diff --git a/src/resources/ai-gateway/evaluations.ts b/src/resources/ai-gateway/evaluations.ts
index 07acb57c43..57f7df5241 100644
--- a/src/resources/ai-gateway/evaluations.ts
+++ b/src/resources/ai-gateway/evaluations.ts
@@ -500,39 +500,39 @@ export namespace EvaluationGetResponse {
export interface EvaluationCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
dataset_ids: Array;
/**
- * Body param:
+ * Body param
*/
evaluation_type_ids: Array;
/**
- * Body param:
+ * Body param
*/
name: string;
}
export interface EvaluationListParams extends V4PagePaginationArrayParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
name?: string;
/**
- * Query param:
+ * Query param
*/
processed?: boolean;
diff --git a/src/resources/ai-gateway/index.ts b/src/resources/ai-gateway/index.ts
index 462f59f88a..682de9f76b 100644
--- a/src/resources/ai-gateway/index.ts
+++ b/src/resources/ai-gateway/index.ts
@@ -15,6 +15,29 @@ export {
type DatasetDeleteParams,
type DatasetGetParams,
} from './datasets';
+export {
+ DynamicRouting,
+ type DynamicRoutingCreateResponse,
+ type DynamicRoutingUpdateResponse,
+ type DynamicRoutingListResponse,
+ type DynamicRoutingDeleteResponse,
+ type DynamicRoutingCreateDeploymentResponse,
+ type DynamicRoutingCreateVersionResponse,
+ type DynamicRoutingGetResponse,
+ type DynamicRoutingGetVersionResponse,
+ type DynamicRoutingListDeploymentsResponse,
+ type DynamicRoutingListVersionsResponse,
+ type DynamicRoutingCreateParams,
+ type DynamicRoutingUpdateParams,
+ type DynamicRoutingListParams,
+ type DynamicRoutingDeleteParams,
+ type DynamicRoutingCreateDeploymentParams,
+ type DynamicRoutingCreateVersionParams,
+ type DynamicRoutingGetParams,
+ type DynamicRoutingGetVersionParams,
+ type DynamicRoutingListDeploymentsParams,
+ type DynamicRoutingListVersionsParams,
+} from './dynamic-routing';
export {
EvaluationListResponsesV4PagePaginationArray,
Evaluations,
@@ -49,4 +72,12 @@ export {
type LogRequestParams,
type LogResponseParams,
} from './logs';
+export {
+ ProviderConfigListResponsesV4PagePaginationArray,
+ ProviderConfigs,
+ type ProviderConfigCreateResponse,
+ type ProviderConfigListResponse,
+ type ProviderConfigCreateParams,
+ type ProviderConfigListParams,
+} from './provider-configs';
export { URLs, type URLGetResponse, type URLGetParams } from './urls';
diff --git a/src/resources/ai-gateway/logs.ts b/src/resources/ai-gateway/logs.ts
index e3cdca10e1..ac67d83cb0 100644
--- a/src/resources/ai-gateway/logs.ts
+++ b/src/resources/ai-gateway/logs.ts
@@ -266,137 +266,137 @@ export type LogResponseResponse = unknown;
export interface LogListParams extends V4PagePaginationArrayParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
cached?: boolean;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
direction?: 'asc' | 'desc';
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
end_date?: string;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
feedback?: 0 | 1;
/**
- * Query param:
+ * Query param
*/
filters?: Array;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
max_cost?: number;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
max_duration?: number;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
max_tokens_in?: number;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
max_tokens_out?: number;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
max_total_tokens?: number;
/**
- * Query param:
+ * Query param
*/
meta_info?: boolean;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
min_cost?: number;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
min_duration?: number;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
min_tokens_in?: number;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
min_tokens_out?: number;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
min_total_tokens?: number;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
model?: string;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
model_type?: string;
/**
- * Query param:
+ * Query param
*/
order_by?: 'created_at' | 'provider' | 'model' | 'model_type' | 'success' | 'cached';
/**
- * Query param:
+ * Query param
*/
order_by_direction?: 'asc' | 'desc';
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
provider?: string;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
request_content_type?: string;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
response_content_type?: string;
/**
- * Query param:
+ * Query param
*/
search?: string;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
start_date?: string;
/**
- * @deprecated Query param:
+ * @deprecated Query param
*/
success?: boolean;
}
@@ -438,22 +438,22 @@ export namespace LogListParams {
export interface LogDeleteParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
filters?: Array;
/**
- * Query param:
+ * Query param
*/
limit?: number;
/**
- * Query param:
+ * Query param
*/
order_by?:
| 'created_at'
@@ -469,7 +469,7 @@ export interface LogDeleteParams {
| 'feedback';
/**
- * Query param:
+ * Query param
*/
order_by_direction?: 'asc' | 'desc';
}
@@ -511,22 +511,22 @@ export namespace LogDeleteParams {
export interface LogEditParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
feedback?: number | null;
/**
- * Body param:
+ * Body param
*/
metadata?: { [key: string]: string | number | boolean } | null;
/**
- * Body param:
+ * Body param
*/
score?: number | null;
}
diff --git a/src/resources/ai-gateway/provider-configs.ts b/src/resources/ai-gateway/provider-configs.ts
new file mode 100644
index 0000000000..c7e58e9de8
--- /dev/null
+++ b/src/resources/ai-gateway/provider-configs.ts
@@ -0,0 +1,189 @@
+// 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 ProviderConfigs extends APIResource {
+ /**
+ * Create a new Provider Configs
+ *
+ * @example
+ * ```ts
+ * const providerConfig =
+ * await client.aiGateway.providerConfigs.create(
+ * 'my-gateway',
+ * {
+ * account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0',
+ * alias: 'alias',
+ * default_config: true,
+ * provider_slug: 'provider_slug',
+ * secret: 'secret',
+ * secret_id: 'secret_id',
+ * },
+ * );
+ * ```
+ */
+ create(
+ gatewayId: string,
+ params: ProviderConfigCreateParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id, ...body } = params;
+ return (
+ this._client.post(`/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/provider_configs`, {
+ body,
+ ...options,
+ }) as Core.APIPromise<{ result: ProviderConfigCreateResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * List Provider Configs
+ *
+ * @example
+ * ```ts
+ * // Automatically fetches more pages as needed.
+ * for await (const providerConfigListResponse of client.aiGateway.providerConfigs.list(
+ * 'my-gateway',
+ * { account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0' },
+ * )) {
+ * // ...
+ * }
+ * ```
+ */
+ list(
+ gatewayId: string,
+ params: ProviderConfigListParams,
+ options?: Core.RequestOptions,
+ ): Core.PagePromise {
+ const { account_id, ...query } = params;
+ return this._client.getAPIList(
+ `/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/provider_configs`,
+ ProviderConfigListResponsesV4PagePaginationArray,
+ { query, ...options },
+ );
+ }
+}
+
+export class ProviderConfigListResponsesV4PagePaginationArray extends V4PagePaginationArray {}
+
+export interface ProviderConfigCreateResponse {
+ id: string;
+
+ account_id: string;
+
+ account_tag: string;
+
+ alias: string;
+
+ default_config: boolean;
+
+ /**
+ * gateway id
+ */
+ gateway_id: string;
+
+ modified_at: string;
+
+ provider_slug: string;
+
+ secret_id: string;
+
+ secret_preview: string;
+
+ rate_limit?: number;
+
+ rate_limit_period?: number;
+}
+
+export interface ProviderConfigListResponse {
+ id: string;
+
+ account_id: string;
+
+ account_tag: string;
+
+ alias: string;
+
+ default_config: boolean;
+
+ /**
+ * gateway id
+ */
+ gateway_id: string;
+
+ modified_at: string;
+
+ provider_slug: string;
+
+ secret_id: string;
+
+ secret_preview: string;
+
+ rate_limit?: number;
+
+ rate_limit_period?: number;
+}
+
+export interface ProviderConfigCreateParams {
+ /**
+ * Path param
+ */
+ account_id: string;
+
+ /**
+ * Body param
+ */
+ alias: string;
+
+ /**
+ * Body param
+ */
+ default_config: boolean;
+
+ /**
+ * Body param
+ */
+ provider_slug: string;
+
+ /**
+ * Body param
+ */
+ secret: string;
+
+ /**
+ * Body param
+ */
+ secret_id: string;
+
+ /**
+ * Body param
+ */
+ rate_limit?: number;
+
+ /**
+ * Body param
+ */
+ rate_limit_period?: number;
+}
+
+export interface ProviderConfigListParams extends V4PagePaginationArrayParams {
+ /**
+ * Path param
+ */
+ account_id: string;
+}
+
+ProviderConfigs.ProviderConfigListResponsesV4PagePaginationArray =
+ ProviderConfigListResponsesV4PagePaginationArray;
+
+export declare namespace ProviderConfigs {
+ export {
+ type ProviderConfigCreateResponse as ProviderConfigCreateResponse,
+ type ProviderConfigListResponse as ProviderConfigListResponse,
+ ProviderConfigListResponsesV4PagePaginationArray as ProviderConfigListResponsesV4PagePaginationArray,
+ type ProviderConfigCreateParams as ProviderConfigCreateParams,
+ type ProviderConfigListParams as ProviderConfigListParams,
+ };
+}
diff --git a/src/resources/ai/ai.ts b/src/resources/ai/ai.ts
index 3d1778abe1..64adea2848 100644
--- a/src/resources/ai/ai.ts
+++ b/src/resources/ai/ai.ts
@@ -68,11 +68,13 @@ export type AIRunResponse =
| Array
| Core.Uploadable
| AIRunResponse.Audio
+ | Core.Uploadable
| AIRunResponse.TextEmbeddings
| AIRunResponse.AutomaticSpeechRecognition
| Array
| Array
- | AIRunResponse.UnionMember7
+ | AIRunResponse.UnionMember8
+ | Core.Uploadable
| AIRunResponse.Translation
| AIRunResponse.Summarization
| AIRunResponse.ImageToText
@@ -195,7 +197,7 @@ export namespace AIRunResponse {
}
}
- export interface UnionMember7 {
+ export interface UnionMember8 {
/**
* The generated text response from the model
*/
@@ -204,15 +206,15 @@ export namespace AIRunResponse {
/**
* An array of tool calls requests made during the response generation
*/
- tool_calls?: Array;
+ tool_calls?: Array;
/**
* Usage statistics for the inference request
*/
- usage?: UnionMember7.Usage;
+ usage?: UnionMember8.Usage;
}
- export namespace UnionMember7 {
+ export namespace UnionMember8 {
export interface ToolCall {
/**
* The arguments passed to be passed to the tool call request
@@ -295,7 +297,7 @@ export type AIRunParams =
export declare namespace AIRunParams {
export interface TextClassification {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -307,7 +309,7 @@ export declare namespace AIRunParams {
export interface TextToImage {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -376,7 +378,7 @@ export declare namespace AIRunParams {
export interface TextToSpeech {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -394,7 +396,7 @@ export declare namespace AIRunParams {
export interface TextEmbeddings {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -406,7 +408,7 @@ export declare namespace AIRunParams {
export interface AutomaticSpeechRecognition {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -430,7 +432,7 @@ export declare namespace AIRunParams {
export interface ImageClassification {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -443,7 +445,7 @@ export declare namespace AIRunParams {
export interface ObjectDetection {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -456,7 +458,7 @@ export declare namespace AIRunParams {
export interface Prompt {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -499,7 +501,7 @@ export declare namespace AIRunParams {
repetition_penalty?: number;
/**
- * Body param:
+ * Body param
*/
response_format?: Prompt.ResponseFormat;
@@ -545,7 +547,7 @@ export declare namespace AIRunParams {
export interface Messages {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -561,7 +563,7 @@ export declare namespace AIRunParams {
frequency_penalty?: number;
/**
- * Body param:
+ * Body param
*/
functions?: Array;
@@ -587,7 +589,7 @@ export declare namespace AIRunParams {
repetition_penalty?: number;
/**
- * Body param:
+ * Body param
*/
response_format?: Messages.ResponseFormat;
@@ -779,7 +781,7 @@ export declare namespace AIRunParams {
export interface Translation {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -803,7 +805,7 @@ export declare namespace AIRunParams {
export interface Summarization {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -820,7 +822,7 @@ export declare namespace AIRunParams {
export interface ImageToText {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -890,7 +892,7 @@ export declare namespace AIRunParams {
export interface Variant12 {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -959,7 +961,7 @@ export declare namespace AIRunParams {
export interface Variant13 {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -1042,7 +1044,7 @@ export declare namespace AIRunParams {
export interface MultimodalEmbeddings {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -1052,7 +1054,7 @@ export declare namespace AIRunParams {
image?: string;
/**
- * Body param:
+ * Body param
*/
text?: Array;
}
diff --git a/src/resources/ai/finetunes/assets.ts b/src/resources/ai/finetunes/assets.ts
index bd45121e1a..b4504c0f79 100644
--- a/src/resources/ai/finetunes/assets.ts
+++ b/src/resources/ai/finetunes/assets.ts
@@ -26,17 +26,17 @@ export interface AssetCreateResponse {
export interface AssetCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
file?: Core.Uploadable;
/**
- * Body param:
+ * Body param
*/
file_name?: string;
}
diff --git a/src/resources/ai/finetunes/finetunes.ts b/src/resources/ai/finetunes/finetunes.ts
index a32d999063..183df88d0a 100644
--- a/src/resources/ai/finetunes/finetunes.ts
+++ b/src/resources/ai/finetunes/finetunes.ts
@@ -71,27 +71,27 @@ export interface FinetuneListResponse {
export interface FinetuneCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
model: string;
/**
- * Body param:
+ * Body param
*/
name: string;
/**
- * Body param:
+ * Body param
*/
description?: string;
/**
- * Body param:
+ * Body param
*/
public?: boolean;
}
diff --git a/src/resources/ai/finetunes/public.ts b/src/resources/ai/finetunes/public.ts
index 8494bc7eb4..d469708d39 100644
--- a/src/resources/ai/finetunes/public.ts
+++ b/src/resources/ai/finetunes/public.ts
@@ -41,7 +41,7 @@ export interface PublicListResponse {
export interface PublicListParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
diff --git a/src/resources/ai/models/models.ts b/src/resources/ai/models/models.ts
index 3a80c39394..752742dde3 100644
--- a/src/resources/ai/models/models.ts
+++ b/src/resources/ai/models/models.ts
@@ -31,7 +31,7 @@ export type ModelListResponse = unknown;
export interface ModelListParams extends V4PagePaginationArrayParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
diff --git a/src/resources/ai/models/schema.ts b/src/resources/ai/models/schema.ts
index 1864a8ba7d..0c9fc8dbc1 100644
--- a/src/resources/ai/models/schema.ts
+++ b/src/resources/ai/models/schema.ts
@@ -21,7 +21,7 @@ export type SchemaGetResponse = unknown;
export interface SchemaGetParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
diff --git a/src/resources/ai/to-markdown.ts b/src/resources/ai/to-markdown.ts
index 319d2ea8c1..0a6218b150 100644
--- a/src/resources/ai/to-markdown.ts
+++ b/src/resources/ai/to-markdown.ts
@@ -72,7 +72,7 @@ export interface ToMarkdownSupportedParams {
export interface ToMarkdownTransformParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
}
diff --git a/src/resources/aisearch/aisearch.ts b/src/resources/aisearch/aisearch.ts
index 38fe1486d6..732c8c4ade 100644
--- a/src/resources/aisearch/aisearch.ts
+++ b/src/resources/aisearch/aisearch.ts
@@ -18,6 +18,8 @@ import {
} from './tokens';
import * as InstancesAPI from './instances/instances';
import {
+ InstanceChatCompletionsParams,
+ InstanceChatCompletionsResponse,
InstanceCreateParams,
InstanceCreateResponse,
InstanceDeleteParams,
@@ -27,6 +29,8 @@ import {
InstanceListResponsesV4PagePaginationArray,
InstanceReadParams,
InstanceReadResponse,
+ InstanceSearchParams,
+ InstanceSearchResponse,
InstanceStatsParams,
InstanceStatsResponse,
InstanceUpdateParams,
@@ -51,14 +55,18 @@ export declare namespace AISearch {
type InstanceUpdateResponse as InstanceUpdateResponse,
type InstanceListResponse as InstanceListResponse,
type InstanceDeleteResponse as InstanceDeleteResponse,
+ type InstanceChatCompletionsResponse as InstanceChatCompletionsResponse,
type InstanceReadResponse as InstanceReadResponse,
+ type InstanceSearchResponse as InstanceSearchResponse,
type InstanceStatsResponse as InstanceStatsResponse,
InstanceListResponsesV4PagePaginationArray as InstanceListResponsesV4PagePaginationArray,
type InstanceCreateParams as InstanceCreateParams,
type InstanceUpdateParams as InstanceUpdateParams,
type InstanceListParams as InstanceListParams,
type InstanceDeleteParams as InstanceDeleteParams,
+ type InstanceChatCompletionsParams as InstanceChatCompletionsParams,
type InstanceReadParams as InstanceReadParams,
+ type InstanceSearchParams as InstanceSearchParams,
type InstanceStatsParams as InstanceStatsParams,
};
diff --git a/src/resources/aisearch/index.ts b/src/resources/aisearch/index.ts
index f81ab35006..9c78c3e801 100644
--- a/src/resources/aisearch/index.ts
+++ b/src/resources/aisearch/index.ts
@@ -8,13 +8,17 @@ export {
type InstanceUpdateResponse,
type InstanceListResponse,
type InstanceDeleteResponse,
+ type InstanceChatCompletionsResponse,
type InstanceReadResponse,
+ type InstanceSearchResponse,
type InstanceStatsResponse,
type InstanceCreateParams,
type InstanceUpdateParams,
type InstanceListParams,
type InstanceDeleteParams,
+ type InstanceChatCompletionsParams,
type InstanceReadParams,
+ type InstanceSearchParams,
type InstanceStatsParams,
} from './instances/index';
export {
diff --git a/src/resources/aisearch/instances/index.ts b/src/resources/aisearch/instances/index.ts
index 392d8edc2e..c140ae2abc 100644
--- a/src/resources/aisearch/instances/index.ts
+++ b/src/resources/aisearch/instances/index.ts
@@ -7,13 +7,17 @@ export {
type InstanceUpdateResponse,
type InstanceListResponse,
type InstanceDeleteResponse,
+ type InstanceChatCompletionsResponse,
type InstanceReadResponse,
+ type InstanceSearchResponse,
type InstanceStatsResponse,
type InstanceCreateParams,
type InstanceUpdateParams,
type InstanceListParams,
type InstanceDeleteParams,
+ type InstanceChatCompletionsParams,
type InstanceReadParams,
+ type InstanceSearchParams,
type InstanceStatsParams,
} from './instances';
export {
diff --git a/src/resources/aisearch/instances/instances.ts b/src/resources/aisearch/instances/instances.ts
index bcbcda3d7d..d579a02325 100644
--- a/src/resources/aisearch/instances/instances.ts
+++ b/src/resources/aisearch/instances/instances.ts
@@ -40,7 +40,6 @@ export class Instances extends APIResource {
* account_id: 'c3dc5f0b34a14ff8e1b3ec04895e1b22',
* id: 'my-ai-search',
* source: 'source',
- * token_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
* type: 'r2',
* });
* ```
@@ -132,6 +131,33 @@ export class Instances extends APIResource {
)._thenUnwrap((obj) => obj.result);
}
+ /**
+ * Chat Completions
+ *
+ * @example
+ * ```ts
+ * const response =
+ * await client.aiSearch.instances.chatCompletions(
+ * 'my-ai-search',
+ * {
+ * account_id: 'c3dc5f0b34a14ff8e1b3ec04895e1b22',
+ * messages: [{ content: 'content', role: 'system' }],
+ * },
+ * );
+ * ```
+ */
+ chatCompletions(
+ id: string,
+ params: InstanceChatCompletionsParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id, ...body } = params;
+ return this._client.post(`/accounts/${account_id}/ai-search/instances/${id}/chat/completions`, {
+ body,
+ ...options,
+ });
+ }
+
/**
* Read instances.
*
@@ -156,6 +182,34 @@ export class Instances extends APIResource {
)._thenUnwrap((obj) => obj.result);
}
+ /**
+ * Search
+ *
+ * @example
+ * ```ts
+ * const response = await client.aiSearch.instances.search(
+ * 'my-ai-search',
+ * {
+ * account_id: 'c3dc5f0b34a14ff8e1b3ec04895e1b22',
+ * messages: [{ content: 'content', role: 'system' }],
+ * },
+ * );
+ * ```
+ */
+ search(
+ id: string,
+ params: InstanceSearchParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id, ...body } = params;
+ return (
+ this._client.post(`/accounts/${account_id}/ai-search/instances/${id}/search`, {
+ body,
+ ...options,
+ }) as Core.APIPromise<{ result: InstanceSearchResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
/**
* Stats
*
@@ -202,8 +256,6 @@ export interface InstanceCreateResponse {
source: string;
- token_id: string;
-
type: 'r2' | 'web-crawler';
vectorize_name: string;
@@ -251,10 +303,10 @@ export interface InstanceCreateResponse {
created_by?: string;
embedding_model?:
+ | '@cf/qwen/qwen3-embedding-0.6b'
| '@cf/baai/bge-m3'
| '@cf/baai/bge-large-en-v1.5'
| '@cf/google/embeddinggemma-300m'
- | '@cf/qwen/qwen3-embedding-0.6b'
| 'google-ai-studio/gemini-embedding-001'
| 'openai/text-embedding-3-small'
| 'openai/text-embedding-3-large'
@@ -356,6 +408,8 @@ export interface InstanceCreateResponse {
system_prompt_rewrite_query?: string;
+ token_id?: string;
+
vectorize_active_namespace?: string;
}
@@ -413,14 +467,16 @@ export namespace InstanceCreateResponse {
export interface SourceParams {
/**
- * List of path patterns to exclude. Supports wildcards (e.g., _/admin/_,
- * /private/\*_, _\private\*)
+ * List of path patterns to exclude. Uses micromatch glob syntax: \* matches within
+ * a path segment, ** matches across path segments (e.g., /admin/** matches
+ * /admin/users and /admin/settings/advanced)
*/
exclude_items?: Array;
/**
- * List of path patterns to include. Supports wildcards (e.g., _/blog/_.html,
- * /docs/\*_, _\blog\*.html)
+ * List of path patterns to include. Uses micromatch glob syntax: \* matches within
+ * a path segment, ** matches across path segments (e.g., /blog/** matches
+ * /blog/post and /blog/2024/post)
*/
include_items?: Array;
@@ -446,6 +502,12 @@ export namespace InstanceCreateResponse {
include_images?: boolean;
+ /**
+ * List of specific sitemap URLs to use for crawling. Only valid when parse_type is
+ * 'sitemap'.
+ */
+ specific_sitemaps?: Array;
+
use_browser_rendering?: boolean;
}
@@ -478,8 +540,6 @@ export interface InstanceUpdateResponse {
source: string;
- token_id: string;
-
type: 'r2' | 'web-crawler';
vectorize_name: string;
@@ -527,10 +587,10 @@ export interface InstanceUpdateResponse {
created_by?: string;
embedding_model?:
+ | '@cf/qwen/qwen3-embedding-0.6b'
| '@cf/baai/bge-m3'
| '@cf/baai/bge-large-en-v1.5'
| '@cf/google/embeddinggemma-300m'
- | '@cf/qwen/qwen3-embedding-0.6b'
| 'google-ai-studio/gemini-embedding-001'
| 'openai/text-embedding-3-small'
| 'openai/text-embedding-3-large'
@@ -632,6 +692,8 @@ export interface InstanceUpdateResponse {
system_prompt_rewrite_query?: string;
+ token_id?: string;
+
vectorize_active_namespace?: string;
}
@@ -689,14 +751,16 @@ export namespace InstanceUpdateResponse {
export interface SourceParams {
/**
- * List of path patterns to exclude. Supports wildcards (e.g., _/admin/_,
- * /private/\*_, _\private\*)
+ * List of path patterns to exclude. Uses micromatch glob syntax: \* matches within
+ * a path segment, ** matches across path segments (e.g., /admin/** matches
+ * /admin/users and /admin/settings/advanced)
*/
exclude_items?: Array;
/**
- * List of path patterns to include. Supports wildcards (e.g., _/blog/_.html,
- * /docs/\*_, _\blog\*.html)
+ * List of path patterns to include. Uses micromatch glob syntax: \* matches within
+ * a path segment, ** matches across path segments (e.g., /blog/** matches
+ * /blog/post and /blog/2024/post)
*/
include_items?: Array;
@@ -722,6 +786,12 @@ export namespace InstanceUpdateResponse {
include_images?: boolean;
+ /**
+ * List of specific sitemap URLs to use for crawling. Only valid when parse_type is
+ * 'sitemap'.
+ */
+ specific_sitemaps?: Array;
+
use_browser_rendering?: boolean;
}
@@ -754,8 +824,6 @@ export interface InstanceListResponse {
source: string;
- token_id: string;
-
type: 'r2' | 'web-crawler';
vectorize_name: string;
@@ -803,10 +871,10 @@ export interface InstanceListResponse {
created_by?: string;
embedding_model?:
+ | '@cf/qwen/qwen3-embedding-0.6b'
| '@cf/baai/bge-m3'
| '@cf/baai/bge-large-en-v1.5'
| '@cf/google/embeddinggemma-300m'
- | '@cf/qwen/qwen3-embedding-0.6b'
| 'google-ai-studio/gemini-embedding-001'
| 'openai/text-embedding-3-small'
| 'openai/text-embedding-3-large'
@@ -908,6 +976,8 @@ export interface InstanceListResponse {
system_prompt_rewrite_query?: string;
+ token_id?: string;
+
vectorize_active_namespace?: string;
}
@@ -965,14 +1035,16 @@ export namespace InstanceListResponse {
export interface SourceParams {
/**
- * List of path patterns to exclude. Supports wildcards (e.g., _/admin/_,
- * /private/\*_, _\private\*)
+ * List of path patterns to exclude. Uses micromatch glob syntax: \* matches within
+ * a path segment, ** matches across path segments (e.g., /admin/** matches
+ * /admin/users and /admin/settings/advanced)
*/
exclude_items?: Array;
/**
- * List of path patterns to include. Supports wildcards (e.g., _/blog/_.html,
- * /docs/\*_, _\blog\*.html)
+ * List of path patterns to include. Uses micromatch glob syntax: \* matches within
+ * a path segment, ** matches across path segments (e.g., /blog/** matches
+ * /blog/post and /blog/2024/post)
*/
include_items?: Array;
@@ -998,6 +1070,12 @@ export namespace InstanceListResponse {
include_images?: boolean;
+ /**
+ * List of specific sitemap URLs to use for crawling. Only valid when parse_type is
+ * 'sitemap'.
+ */
+ specific_sitemaps?: Array;
+
use_browser_rendering?: boolean;
}
@@ -1030,8 +1108,6 @@ export interface InstanceDeleteResponse {
source: string;
- token_id: string;
-
type: 'r2' | 'web-crawler';
vectorize_name: string;
@@ -1079,10 +1155,10 @@ export interface InstanceDeleteResponse {
created_by?: string;
embedding_model?:
+ | '@cf/qwen/qwen3-embedding-0.6b'
| '@cf/baai/bge-m3'
| '@cf/baai/bge-large-en-v1.5'
| '@cf/google/embeddinggemma-300m'
- | '@cf/qwen/qwen3-embedding-0.6b'
| 'google-ai-studio/gemini-embedding-001'
| 'openai/text-embedding-3-small'
| 'openai/text-embedding-3-large'
@@ -1184,6 +1260,8 @@ export interface InstanceDeleteResponse {
system_prompt_rewrite_query?: string;
+ token_id?: string;
+
vectorize_active_namespace?: string;
}
@@ -1241,14 +1319,16 @@ export namespace InstanceDeleteResponse {
export interface SourceParams {
/**
- * List of path patterns to exclude. Supports wildcards (e.g., _/admin/_,
- * /private/\*_, _\private\*)
+ * List of path patterns to exclude. Uses micromatch glob syntax: \* matches within
+ * a path segment, ** matches across path segments (e.g., /admin/** matches
+ * /admin/users and /admin/settings/advanced)
*/
exclude_items?: Array;
/**
- * List of path patterns to include. Supports wildcards (e.g., _/blog/_.html,
- * /docs/\*_, _\blog\*.html)
+ * List of path patterns to include. Uses micromatch glob syntax: \* matches within
+ * a path segment, ** matches across path segments (e.g., /blog/** matches
+ * /blog/post and /blog/2024/post)
*/
include_items?: Array;
@@ -1274,6 +1354,12 @@ export namespace InstanceDeleteResponse {
include_images?: boolean;
+ /**
+ * List of specific sitemap URLs to use for crawling. Only valid when parse_type is
+ * 'sitemap'.
+ */
+ specific_sitemaps?: Array;
+
use_browser_rendering?: boolean;
}
@@ -1288,6 +1374,72 @@ export namespace InstanceDeleteResponse {
}
}
+export interface InstanceChatCompletionsResponse {
+ choices: Array;
+
+ chunks: Array;
+
+ id?: string;
+
+ model?: string;
+
+ object?: string;
+
+ [k: string]: unknown;
+}
+
+export namespace InstanceChatCompletionsResponse {
+ export interface Choice {
+ message: Choice.Message;
+
+ index?: number;
+ }
+
+ export namespace Choice {
+ export interface Message {
+ content: string | null;
+
+ role: 'system' | 'developer' | 'user' | 'assistant' | 'tool';
+
+ [k: string]: unknown;
+ }
+ }
+
+ export interface Chunk {
+ id: string;
+
+ score: number;
+
+ text: string;
+
+ type: string;
+
+ item?: Chunk.Item;
+
+ scoring_details?: Chunk.ScoringDetails;
+ }
+
+ export namespace Chunk {
+ export interface Item {
+ key: string;
+
+ metadata?: { [key: string]: unknown };
+
+ timestamp?: number;
+ }
+
+ export interface ScoringDetails {
+ keyword_rank?: number;
+
+ keyword_score?: number;
+
+ vector_rank?: number;
+
+ vector_score?: number;
+ }
+ }
+}
+
export interface InstanceReadResponse {
/**
* Use your AI Search ID.
@@ -1306,8 +1458,6 @@ export interface InstanceReadResponse {
source: string;
- token_id: string;
-
type: 'r2' | 'web-crawler';
vectorize_name: string;
@@ -1355,10 +1505,10 @@ export interface InstanceReadResponse {
created_by?: string;
embedding_model?:
+ | '@cf/qwen/qwen3-embedding-0.6b'
| '@cf/baai/bge-m3'
| '@cf/baai/bge-large-en-v1.5'
| '@cf/google/embeddinggemma-300m'
- | '@cf/qwen/qwen3-embedding-0.6b'
| 'google-ai-studio/gemini-embedding-001'
| 'openai/text-embedding-3-small'
| 'openai/text-embedding-3-large'
@@ -1460,6 +1610,8 @@ export interface InstanceReadResponse {
system_prompt_rewrite_query?: string;
+ token_id?: string;
+
vectorize_active_namespace?: string;
}
@@ -1517,14 +1669,16 @@ export namespace InstanceReadResponse {
export interface SourceParams {
/**
- * List of path patterns to exclude. Supports wildcards (e.g., _/admin/_,
- * /private/\*_, _\private\*)
+ * List of path patterns to exclude. Uses micromatch glob syntax: \* matches within
+ * a path segment, ** matches across path segments (e.g., /admin/** matches
+ * /admin/users and /admin/settings/advanced)
*/
exclude_items?: Array;
/**
- * List of path patterns to include. Supports wildcards (e.g., _/blog/_.html,
- * /docs/\*_, _\blog\*.html)
+ * List of path patterns to include. Uses micromatch glob syntax: \* matches within
+ * a path segment, ** matches across path segments (e.g., /blog/** matches
+ * /blog/post and /blog/2024/post)
*/
include_items?: Array;
@@ -1550,6 +1704,12 @@ export namespace InstanceReadResponse {
include_images?: boolean;
+ /**
+ * List of specific sitemap URLs to use for crawling. Only valid when parse_type is
+ * 'sitemap'.
+ */
+ specific_sitemaps?: Array;
+
use_browser_rendering?: boolean;
}
@@ -1564,6 +1724,48 @@ export namespace InstanceReadResponse {
}
}
+export interface InstanceSearchResponse {
+ chunks: Array;
+
+ search_query: string;
+}
+
+export namespace InstanceSearchResponse {
+ export interface Chunk {
+ id: string;
+
+ score: number;
+
+ text: string;
+
+ type: string;
+
+ item?: Chunk.Item;
+
+ scoring_details?: Chunk.ScoringDetails;
+ }
+
+ export namespace Chunk {
+ export interface Item {
+ key: string;
+
+ metadata?: { [key: string]: unknown };
+
+ timestamp?: number;
+ }
+
+ export interface ScoringDetails {
+ keyword_rank?: number;
+
+ keyword_score?: number;
+
+ vector_rank?: number;
+
+ vector_score?: number;
+ }
+ }
+}
+
export interface InstanceStatsResponse {
completed?: number;
@@ -1584,7 +1786,7 @@ export interface InstanceStatsResponse {
export interface InstanceCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -1594,27 +1796,22 @@ export interface InstanceCreateParams {
id: string;
/**
- * Body param:
+ * Body param
*/
source: string;
/**
- * Body param:
- */
- token_id: string;
-
- /**
- * Body param:
+ * Body param
*/
type: 'r2' | 'web-crawler';
/**
- * Body param:
+ * Body param
*/
ai_gateway_id?: string;
/**
- * Body param:
+ * Body param
*/
ai_search_model?:
| '@cf/meta/llama-3.3-70b-instruct-fp8-fast'
@@ -1645,65 +1842,65 @@ export interface InstanceCreateParams {
| '';
/**
- * Body param:
+ * Body param
*/
chunk?: boolean;
/**
- * Body param:
+ * Body param
*/
chunk_overlap?: number;
/**
- * Body param:
+ * Body param
*/
chunk_size?: number;
/**
- * Body param:
+ * Body param
*/
embedding_model?:
+ | '@cf/qwen/qwen3-embedding-0.6b'
| '@cf/baai/bge-m3'
| '@cf/baai/bge-large-en-v1.5'
| '@cf/google/embeddinggemma-300m'
- | '@cf/qwen/qwen3-embedding-0.6b'
| 'google-ai-studio/gemini-embedding-001'
| 'openai/text-embedding-3-small'
| 'openai/text-embedding-3-large'
| '';
/**
- * Body param:
+ * Body param
*/
hybrid_search_enabled?: boolean;
/**
- * Body param:
+ * Body param
*/
max_num_results?: number;
/**
- * Body param:
+ * Body param
*/
metadata?: InstanceCreateParams.Metadata;
/**
- * Body param:
+ * Body param
*/
public_endpoint_params?: InstanceCreateParams.PublicEndpointParams;
/**
- * Body param:
+ * Body param
*/
reranking?: boolean;
/**
- * Body param:
+ * Body param
*/
reranking_model?: '@cf/baai/bge-reranker-base' | '';
/**
- * Body param:
+ * Body param
*/
rewrite_model?:
| '@cf/meta/llama-3.3-70b-instruct-fp8-fast'
@@ -1734,19 +1931,24 @@ export interface InstanceCreateParams {
| '';
/**
- * Body param:
+ * Body param
*/
rewrite_query?: boolean;
/**
- * Body param:
+ * Body param
*/
score_threshold?: number;
/**
- * Body param:
+ * Body param
*/
source_params?: InstanceCreateParams.SourceParams;
+
+ /**
+ * Body param
+ */
+ token_id?: string;
}
export namespace InstanceCreateParams {
@@ -1803,14 +2005,16 @@ export namespace InstanceCreateParams {
export interface SourceParams {
/**
- * List of path patterns to exclude. Supports wildcards (e.g., _/admin/_,
- * /private/\*_, _\private\*)
+ * List of path patterns to exclude. Uses micromatch glob syntax: \* matches within
+ * a path segment, ** matches across path segments (e.g., /admin/** matches
+ * /admin/users and /admin/settings/advanced)
*/
exclude_items?: Array;
/**
- * List of path patterns to include. Supports wildcards (e.g., _/blog/_.html,
- * /docs/\*_, _\blog\*.html)
+ * List of path patterns to include. Uses micromatch glob syntax: \* matches within
+ * a path segment, ** matches across path segments (e.g., /blog/** matches
+ * /blog/post and /blog/2024/post)
*/
include_items?: Array;
@@ -1836,6 +2040,12 @@ export namespace InstanceCreateParams {
include_images?: boolean;
+ /**
+ * List of specific sitemap URLs to use for crawling. Only valid when parse_type is
+ * 'sitemap'.
+ */
+ specific_sitemaps?: Array;
+
use_browser_rendering?: boolean;
}
@@ -1852,17 +2062,17 @@ export namespace InstanceCreateParams {
export interface InstanceUpdateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
ai_gateway_id?: string;
/**
- * Body param:
+ * Body param
*/
ai_search_model?:
| '@cf/meta/llama-3.3-70b-instruct-fp8-fast'
@@ -1893,80 +2103,80 @@ export interface InstanceUpdateParams {
| '';
/**
- * Body param:
+ * Body param
*/
cache?: boolean;
/**
- * Body param:
+ * Body param
*/
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
/**
- * Body param:
+ * Body param
*/
chunk?: boolean;
/**
- * Body param:
+ * Body param
*/
chunk_overlap?: number;
/**
- * Body param:
+ * Body param
*/
chunk_size?: number;
/**
- * Body param:
+ * Body param
*/
embedding_model?:
+ | '@cf/qwen/qwen3-embedding-0.6b'
| '@cf/baai/bge-m3'
| '@cf/baai/bge-large-en-v1.5'
| '@cf/google/embeddinggemma-300m'
- | '@cf/qwen/qwen3-embedding-0.6b'
| 'google-ai-studio/gemini-embedding-001'
| 'openai/text-embedding-3-small'
| 'openai/text-embedding-3-large'
| '';
/**
- * Body param:
+ * Body param
*/
hybrid_search_enabled?: boolean;
/**
- * Body param:
+ * Body param
*/
max_num_results?: number;
/**
- * Body param:
+ * Body param
*/
metadata?: InstanceUpdateParams.Metadata;
/**
- * Body param:
+ * Body param
*/
paused?: boolean;
/**
- * Body param:
+ * Body param
*/
public_endpoint_params?: InstanceUpdateParams.PublicEndpointParams;
/**
- * Body param:
+ * Body param
*/
reranking?: boolean;
/**
- * Body param:
+ * Body param
*/
reranking_model?: '@cf/baai/bge-reranker-base' | '';
/**
- * Body param:
+ * Body param
*/
rewrite_model?:
| '@cf/meta/llama-3.3-70b-instruct-fp8-fast'
@@ -1997,27 +2207,27 @@ export interface InstanceUpdateParams {
| '';
/**
- * Body param:
+ * Body param
*/
rewrite_query?: boolean;
/**
- * Body param:
+ * Body param
*/
score_threshold?: number;
/**
- * Body param:
+ * Body param
*/
source_params?: InstanceUpdateParams.SourceParams;
/**
- * Body param:
+ * Body param
*/
summarization?: boolean;
/**
- * Body param:
+ * Body param
*/
summarization_model?:
| '@cf/meta/llama-3.3-70b-instruct-fp8-fast'
@@ -2048,22 +2258,22 @@ export interface InstanceUpdateParams {
| '';
/**
- * Body param:
+ * Body param
*/
system_prompt_ai_search?: string;
/**
- * Body param:
+ * Body param
*/
system_prompt_index_summarization?: string;
/**
- * Body param:
+ * Body param
*/
system_prompt_rewrite_query?: string;
/**
- * Body param:
+ * Body param
*/
token_id?: string;
}
@@ -2122,14 +2332,16 @@ export namespace InstanceUpdateParams {
export interface SourceParams {
/**
- * List of path patterns to exclude. Supports wildcards (e.g., _/admin/_,
- * /private/\*_, _\private\*)
+ * List of path patterns to exclude. Uses micromatch glob syntax: \* matches within
+ * a path segment, ** matches across path segments (e.g., /admin/** matches
+ * /admin/users and /admin/settings/advanced)
*/
exclude_items?: Array;
/**
- * List of path patterns to include. Supports wildcards (e.g., _/blog/_.html,
- * /docs/\*_, _\blog\*.html)
+ * List of path patterns to include. Uses micromatch glob syntax: \* matches within
+ * a path segment, ** matches across path segments (e.g., /blog/** matches
+ * /blog/post and /blog/2024/post)
*/
include_items?: Array;
@@ -2155,6 +2367,12 @@ export namespace InstanceUpdateParams {
include_images?: boolean;
+ /**
+ * List of specific sitemap URLs to use for crawling. Only valid when parse_type is
+ * 'sitemap'.
+ */
+ specific_sitemaps?: Array;
+
use_browser_rendering?: boolean;
}
@@ -2171,7 +2389,7 @@ export namespace InstanceUpdateParams {
export interface InstanceListParams extends V4PagePaginationArrayParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -2185,10 +2403,282 @@ export interface InstanceDeleteParams {
account_id: string;
}
+export interface InstanceChatCompletionsParams {
+ /**
+ * Path param
+ */
+ account_id: string;
+
+ /**
+ * Body param
+ */
+ messages: Array;
+
+ /**
+ * Body param
+ */
+ ai_search_options?: InstanceChatCompletionsParams.AISearchOptions;
+
+ /**
+ * Body param
+ */
+ model?:
+ | '@cf/meta/llama-3.3-70b-instruct-fp8-fast'
+ | '@cf/meta/llama-3.1-8b-instruct-fast'
+ | '@cf/meta/llama-3.1-8b-instruct-fp8'
+ | '@cf/meta/llama-4-scout-17b-16e-instruct'
+ | '@cf/qwen/qwen3-30b-a3b-fp8'
+ | '@cf/deepseek-ai/deepseek-r1-distill-qwen-32b'
+ | '@cf/moonshotai/kimi-k2-instruct'
+ | 'anthropic/claude-3-7-sonnet'
+ | 'anthropic/claude-sonnet-4'
+ | 'anthropic/claude-opus-4'
+ | 'anthropic/claude-3-5-haiku'
+ | 'cerebras/qwen-3-235b-a22b-instruct'
+ | 'cerebras/qwen-3-235b-a22b-thinking'
+ | 'cerebras/llama-3.3-70b'
+ | 'cerebras/llama-4-maverick-17b-128e-instruct'
+ | 'cerebras/llama-4-scout-17b-16e-instruct'
+ | 'cerebras/gpt-oss-120b'
+ | 'google-ai-studio/gemini-2.5-flash'
+ | 'google-ai-studio/gemini-2.5-pro'
+ | 'grok/grok-4'
+ | 'groq/llama-3.3-70b-versatile'
+ | 'groq/llama-3.1-8b-instant'
+ | 'openai/gpt-5'
+ | 'openai/gpt-5-mini'
+ | 'openai/gpt-5-nano'
+ | '';
+
+ /**
+ * Body param
+ */
+ stream?: boolean;
+
+ [k: string]: unknown;
+}
+
+export namespace InstanceChatCompletionsParams {
+ export interface Message {
+ content: string | null;
+
+ role: 'system' | 'developer' | 'user' | 'assistant' | 'tool';
+
+ [k: string]: unknown;
+ }
+
+ export interface AISearchOptions {
+ query_rewrite?: AISearchOptions.QueryRewrite;
+
+ reranking?: AISearchOptions.Reranking;
+
+ retrieval?: AISearchOptions.Retrieval;
+ }
+
+ export namespace AISearchOptions {
+ export interface QueryRewrite {
+ enabled?: boolean;
+
+ model?:
+ | '@cf/meta/llama-3.3-70b-instruct-fp8-fast'
+ | '@cf/meta/llama-3.1-8b-instruct-fast'
+ | '@cf/meta/llama-3.1-8b-instruct-fp8'
+ | '@cf/meta/llama-4-scout-17b-16e-instruct'
+ | '@cf/qwen/qwen3-30b-a3b-fp8'
+ | '@cf/deepseek-ai/deepseek-r1-distill-qwen-32b'
+ | '@cf/moonshotai/kimi-k2-instruct'
+ | 'anthropic/claude-3-7-sonnet'
+ | 'anthropic/claude-sonnet-4'
+ | 'anthropic/claude-opus-4'
+ | 'anthropic/claude-3-5-haiku'
+ | 'cerebras/qwen-3-235b-a22b-instruct'
+ | 'cerebras/qwen-3-235b-a22b-thinking'
+ | 'cerebras/llama-3.3-70b'
+ | 'cerebras/llama-4-maverick-17b-128e-instruct'
+ | 'cerebras/llama-4-scout-17b-16e-instruct'
+ | 'cerebras/gpt-oss-120b'
+ | 'google-ai-studio/gemini-2.5-flash'
+ | 'google-ai-studio/gemini-2.5-pro'
+ | 'grok/grok-4'
+ | 'groq/llama-3.3-70b-versatile'
+ | 'groq/llama-3.1-8b-instant'
+ | 'openai/gpt-5'
+ | 'openai/gpt-5-mini'
+ | 'openai/gpt-5-nano'
+ | '';
+
+ rewrite_prompt?: string;
+ }
+
+ export interface Reranking {
+ enabled?: boolean;
+
+ match_threshold?: number;
+
+ model?: '@cf/baai/bge-reranker-base' | '';
+ }
+
+ export interface Retrieval {
+ context_expansion?: number;
+
+ filters?: Retrieval.UnionMember0 | Retrieval.UnionMember1;
+
+ match_threshold?: number;
+
+ max_num_results?: number;
+
+ retrieval_type?: 'vector' | 'keyword' | 'hybrid';
+ }
+
+ export namespace Retrieval {
+ export interface UnionMember0 {
+ key: string;
+
+ type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
+
+ value: string | number | boolean;
+ }
+
+ export interface UnionMember1 {
+ filters: Array;
+
+ type: 'and' | 'or';
+ }
+
+ export namespace UnionMember1 {
+ export interface Filter {
+ key: string;
+
+ type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
+
+ value: string | number | boolean;
+ }
+ }
+ }
+ }
+}
+
export interface InstanceReadParams {
account_id: string;
}
+export interface InstanceSearchParams {
+ /**
+ * Path param
+ */
+ account_id: string;
+
+ /**
+ * Body param
+ */
+ messages: Array;
+
+ /**
+ * Body param
+ */
+ ai_search_options?: InstanceSearchParams.AISearchOptions;
+}
+
+export namespace InstanceSearchParams {
+ export interface Message {
+ content: string | null;
+
+ role: 'system' | 'developer' | 'user' | 'assistant' | 'tool';
+
+ [k: string]: unknown;
+ }
+
+ export interface AISearchOptions {
+ query_rewrite?: AISearchOptions.QueryRewrite;
+
+ reranking?: AISearchOptions.Reranking;
+
+ retrieval?: AISearchOptions.Retrieval;
+ }
+
+ export namespace AISearchOptions {
+ export interface QueryRewrite {
+ enabled?: boolean;
+
+ model?:
+ | '@cf/meta/llama-3.3-70b-instruct-fp8-fast'
+ | '@cf/meta/llama-3.1-8b-instruct-fast'
+ | '@cf/meta/llama-3.1-8b-instruct-fp8'
+ | '@cf/meta/llama-4-scout-17b-16e-instruct'
+ | '@cf/qwen/qwen3-30b-a3b-fp8'
+ | '@cf/deepseek-ai/deepseek-r1-distill-qwen-32b'
+ | '@cf/moonshotai/kimi-k2-instruct'
+ | 'anthropic/claude-3-7-sonnet'
+ | 'anthropic/claude-sonnet-4'
+ | 'anthropic/claude-opus-4'
+ | 'anthropic/claude-3-5-haiku'
+ | 'cerebras/qwen-3-235b-a22b-instruct'
+ | 'cerebras/qwen-3-235b-a22b-thinking'
+ | 'cerebras/llama-3.3-70b'
+ | 'cerebras/llama-4-maverick-17b-128e-instruct'
+ | 'cerebras/llama-4-scout-17b-16e-instruct'
+ | 'cerebras/gpt-oss-120b'
+ | 'google-ai-studio/gemini-2.5-flash'
+ | 'google-ai-studio/gemini-2.5-pro'
+ | 'grok/grok-4'
+ | 'groq/llama-3.3-70b-versatile'
+ | 'groq/llama-3.1-8b-instant'
+ | 'openai/gpt-5'
+ | 'openai/gpt-5-mini'
+ | 'openai/gpt-5-nano'
+ | '';
+
+ rewrite_prompt?: string;
+ }
+
+ export interface Reranking {
+ enabled?: boolean;
+
+ match_threshold?: number;
+
+ model?: '@cf/baai/bge-reranker-base' | '';
+ }
+
+ export interface Retrieval {
+ context_expansion?: number;
+
+ filters?: Retrieval.UnionMember0 | Retrieval.UnionMember1;
+
+ match_threshold?: number;
+
+ max_num_results?: number;
+
+ retrieval_type?: 'vector' | 'keyword' | 'hybrid';
+ }
+
+ export namespace Retrieval {
+ export interface UnionMember0 {
+ key: string;
+
+ type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
+
+ value: string | number | boolean;
+ }
+
+ export interface UnionMember1 {
+ filters: Array;
+
+ type: 'and' | 'or';
+ }
+
+ export namespace UnionMember1 {
+ export interface Filter {
+ key: string;
+
+ type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
+
+ value: string | number | boolean;
+ }
+ }
+ }
+ }
+}
+
export interface InstanceStatsParams {
account_id: string;
}
@@ -2205,14 +2695,18 @@ export declare namespace Instances {
type InstanceUpdateResponse as InstanceUpdateResponse,
type InstanceListResponse as InstanceListResponse,
type InstanceDeleteResponse as InstanceDeleteResponse,
+ type InstanceChatCompletionsResponse as InstanceChatCompletionsResponse,
type InstanceReadResponse as InstanceReadResponse,
+ type InstanceSearchResponse as InstanceSearchResponse,
type InstanceStatsResponse as InstanceStatsResponse,
InstanceListResponsesV4PagePaginationArray as InstanceListResponsesV4PagePaginationArray,
type InstanceCreateParams as InstanceCreateParams,
type InstanceUpdateParams as InstanceUpdateParams,
type InstanceListParams as InstanceListParams,
type InstanceDeleteParams as InstanceDeleteParams,
+ type InstanceChatCompletionsParams as InstanceChatCompletionsParams,
type InstanceReadParams as InstanceReadParams,
+ type InstanceSearchParams as InstanceSearchParams,
type InstanceStatsParams as InstanceStatsParams,
};
diff --git a/src/resources/aisearch/instances/items.ts b/src/resources/aisearch/instances/items.ts
index 08a7ae9762..1b6b7a631d 100644
--- a/src/resources/aisearch/instances/items.ts
+++ b/src/resources/aisearch/instances/items.ts
@@ -33,7 +33,7 @@ export class Items extends APIResource {
}
/**
- * Get Items.
+ * Get Item.
*
* @example
* ```ts
@@ -92,17 +92,17 @@ export interface ItemGetResponse {
export interface ItemListParams extends V4PagePaginationArrayParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
search?: string;
/**
- * Query param:
+ * Query param
*/
status?: 'queued' | 'running' | 'completed' | 'error' | 'skipped';
}
diff --git a/src/resources/aisearch/instances/jobs.ts b/src/resources/aisearch/instances/jobs.ts
index 004f50b98f..f08012bbba 100644
--- a/src/resources/aisearch/instances/jobs.ts
+++ b/src/resources/aisearch/instances/jobs.ts
@@ -176,7 +176,7 @@ export interface JobCreateParams {
export interface JobListParams extends V4PagePaginationArrayParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
}
@@ -187,17 +187,17 @@ export interface JobGetParams {
export interface JobLogsParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
page?: number;
/**
- * Query param:
+ * Query param
*/
per_page?: number;
}
diff --git a/src/resources/aisearch/tokens.ts b/src/resources/aisearch/tokens.ts
index ba54622174..212d1bae5d 100644
--- a/src/resources/aisearch/tokens.ts
+++ b/src/resources/aisearch/tokens.ts
@@ -269,27 +269,27 @@ export interface TokenReadResponse {
export interface TokenCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
cf_api_id: string;
/**
- * Body param:
+ * Body param
*/
cf_api_key: string;
/**
- * Body param:
+ * Body param
*/
name: string;
/**
- * Body param:
+ * Body param
*/
legacy?: boolean;
}
@@ -300,7 +300,7 @@ export interface TokenUpdateParams {
export interface TokenListParams extends V4PagePaginationArrayParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
}
diff --git a/src/resources/alerting/silences.ts b/src/resources/alerting/silences.ts
index eec14eeafd..a1a4fa6da8 100644
--- a/src/resources/alerting/silences.ts
+++ b/src/resources/alerting/silences.ts
@@ -277,7 +277,7 @@ export interface SilenceCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array;
}
@@ -308,7 +308,7 @@ export interface SilenceUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array;
}
diff --git a/src/resources/api-gateway/configurations.ts b/src/resources/api-gateway/configurations.ts
index 8d390ae8aa..a9462e934c 100644
--- a/src/resources/api-gateway/configurations.ts
+++ b/src/resources/api-gateway/configurations.ts
@@ -102,7 +102,7 @@ export interface ConfigurationUpdateParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
auth_id_characteristics: Array<
| ConfigurationUpdateParams.APIShieldAuthIDCharacteristic
diff --git a/src/resources/api-gateway/discovery/operations.ts b/src/resources/api-gateway/discovery/operations.ts
index 2ed9c4cc6a..f7b4a5fd74 100644
--- a/src/resources/api-gateway/discovery/operations.ts
+++ b/src/resources/api-gateway/discovery/operations.ts
@@ -182,7 +182,7 @@ export interface OperationBulkEditParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: { [key: string]: OperationBulkEditParams.Body };
}
diff --git a/src/resources/api-gateway/operations/operations.ts b/src/resources/api-gateway/operations/operations.ts
index 44afc92131..df5b631ca3 100644
--- a/src/resources/api-gateway/operations/operations.ts
+++ b/src/resources/api-gateway/operations/operations.ts
@@ -1417,7 +1417,7 @@ export interface OperationBulkCreateParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array;
}
diff --git a/src/resources/api-gateway/operations/schema-validation.ts b/src/resources/api-gateway/operations/schema-validation.ts
index f9f298355e..4d7e821cce 100644
--- a/src/resources/api-gateway/operations/schema-validation.ts
+++ b/src/resources/api-gateway/operations/schema-validation.ts
@@ -166,7 +166,7 @@ export interface SchemaValidationEditParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
settings_multiple_request: SettingsMultipleRequestParam;
}
diff --git a/src/resources/audit-logs.ts b/src/resources/audit-logs.ts
index bb07e279be..ef9d81b224 100644
--- a/src/resources/audit-logs.ts
+++ b/src/resources/audit-logs.ts
@@ -35,12 +35,12 @@ export interface AuditLogListParams extends V4PagePaginationArrayParams {
id?: string;
/**
- * Query param:
+ * Query param
*/
action?: AuditLogListParams.Action;
/**
- * Query param:
+ * Query param
*/
actor?: AuditLogListParams.Actor;
@@ -72,7 +72,7 @@ export interface AuditLogListParams extends V4PagePaginationArrayParams {
since?: (string & {}) | (string & {});
/**
- * Query param:
+ * Query param
*/
zone?: AuditLogListParams.Zone;
}
diff --git a/src/resources/botnet-feed/asn.ts b/src/resources/botnet-feed/asn.ts
index d15791e65e..117d7f3a6a 100755
--- a/src/resources/botnet-feed/asn.ts
+++ b/src/resources/botnet-feed/asn.ts
@@ -65,7 +65,7 @@ export interface ASNDayReportParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
date?: string;
}
diff --git a/src/resources/brand-protection/logo-matches.ts b/src/resources/brand-protection/logo-matches.ts
index bc53041299..d87e3837f6 100644
--- a/src/resources/brand-protection/logo-matches.ts
+++ b/src/resources/brand-protection/logo-matches.ts
@@ -41,44 +41,44 @@ export interface LogoMatchGetResponse {
export interface LogoMatchDownloadParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
limit?: string;
/**
- * Query param:
+ * Query param
*/
logo_id?: Array;
/**
- * Query param:
+ * Query param
*/
offset?: string;
}
export interface LogoMatchGetParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
limit?: string;
/**
- * Query param:
+ * Query param
*/
logo_id?: Array;
/**
- * Query param:
+ * Query param
*/
offset?: string;
}
diff --git a/src/resources/brand-protection/logos.ts b/src/resources/brand-protection/logos.ts
index dfc6907049..7a87dab36c 100644
--- a/src/resources/brand-protection/logos.ts
+++ b/src/resources/brand-protection/logos.ts
@@ -39,27 +39,27 @@ export interface LogoCreateResponse {
export interface LogoCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
match_type?: string;
/**
- * Query param:
+ * Query param
*/
tag?: string;
/**
- * Query param:
+ * Query param
*/
threshold?: number;
/**
- * Body param:
+ * Body param
*/
image?: Core.Uploadable;
}
diff --git a/src/resources/brand-protection/matches.ts b/src/resources/brand-protection/matches.ts
index 5ce299de58..985c0569c3 100644
--- a/src/resources/brand-protection/matches.ts
+++ b/src/resources/brand-protection/matches.ts
@@ -41,54 +41,54 @@ export interface MatchGetResponse {
export interface MatchDownloadParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
id?: string;
/**
- * Query param:
+ * Query param
*/
include_domain_id?: boolean;
/**
- * Query param:
+ * Query param
*/
limit?: number;
/**
- * Query param:
+ * Query param
*/
offset?: number;
}
export interface MatchGetParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
id?: string;
/**
- * Query param:
+ * Query param
*/
include_domain_id?: boolean;
/**
- * Query param:
+ * Query param
*/
limit?: number;
/**
- * Query param:
+ * Query param
*/
offset?: number;
}
diff --git a/src/resources/brand-protection/queries.ts b/src/resources/brand-protection/queries.ts
index 06cb1cc58a..bc6733d4fd 100644
--- a/src/resources/brand-protection/queries.ts
+++ b/src/resources/brand-protection/queries.ts
@@ -44,81 +44,81 @@ export class Queries extends APIResource {
export interface QueryCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
id?: string;
/**
- * Query param:
+ * Query param
*/
query_scan?: boolean;
/**
- * Query param:
+ * Query param
*/
query_tag?: string;
/**
- * Body param:
+ * Body param
*/
max_time?: string | null;
/**
- * Body param:
+ * Body param
*/
min_time?: string | null;
/**
- * Body param:
+ * Body param
*/
body_scan?: boolean;
/**
- * Body param:
+ * Body param
*/
string_matches?: unknown;
/**
- * Body param:
+ * Body param
*/
body_tag?: string;
}
export interface QueryDeleteParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
id?: string;
/**
- * Query param:
+ * Query param
*/
scan?: boolean;
/**
- * Query param:
+ * Query param
*/
tag?: string;
}
export interface QueryBulkParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
queries?: Array<{ [key: string]: unknown }>;
}
diff --git a/src/resources/browser-rendering/content.ts b/src/resources/browser-rendering/content.ts
index d4984ec714..ada1748fdf 100644
--- a/src/resources/browser-rendering/content.ts
+++ b/src/resources/browser-rendering/content.ts
@@ -119,7 +119,7 @@ export declare namespace ContentCreateParams {
cookies?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
@@ -160,17 +160,17 @@ export declare namespace ContentCreateParams {
>;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
@@ -380,7 +380,7 @@ export declare namespace ContentCreateParams {
cookies?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
@@ -421,17 +421,17 @@ export declare namespace ContentCreateParams {
>;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
diff --git a/src/resources/browser-rendering/json.ts b/src/resources/browser-rendering/json.ts
index 03ab07cf74..b3f80e11ac 100644
--- a/src/resources/browser-rendering/json.ts
+++ b/src/resources/browser-rendering/json.ts
@@ -123,7 +123,7 @@ export declare namespace JsonCreateParams {
custom_ai?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
@@ -133,7 +133,7 @@ export declare namespace JsonCreateParams {
gotoOptions?: Variant0.GotoOptions;
/**
- * Body param:
+ * Body param
*/
prompt?: string;
@@ -169,22 +169,22 @@ export declare namespace JsonCreateParams {
>;
/**
- * Body param:
+ * Body param
*/
response_format?: Variant0.ResponseFormat;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
@@ -423,7 +423,7 @@ export declare namespace JsonCreateParams {
custom_ai?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
@@ -433,7 +433,7 @@ export declare namespace JsonCreateParams {
gotoOptions?: Variant1.GotoOptions;
/**
- * Body param:
+ * Body param
*/
prompt?: string;
@@ -469,22 +469,22 @@ export declare namespace JsonCreateParams {
>;
/**
- * Body param:
+ * Body param
*/
response_format?: Variant1.ResponseFormat;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
diff --git a/src/resources/browser-rendering/links.ts b/src/resources/browser-rendering/links.ts
index 906d33b1a9..6a9f8f2b65 100644
--- a/src/resources/browser-rendering/links.ts
+++ b/src/resources/browser-rendering/links.ts
@@ -115,12 +115,12 @@ export declare namespace LinkCreateParams {
cookies?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
/**
- * Body param:
+ * Body param
*/
excludeExternalLinks?: boolean;
@@ -161,17 +161,17 @@ export declare namespace LinkCreateParams {
>;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
@@ -181,7 +181,7 @@ export declare namespace LinkCreateParams {
viewport?: Variant0.Viewport;
/**
- * Body param:
+ * Body param
*/
visibleLinksOnly?: boolean;
@@ -385,12 +385,12 @@ export declare namespace LinkCreateParams {
cookies?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
/**
- * Body param:
+ * Body param
*/
excludeExternalLinks?: boolean;
@@ -431,17 +431,17 @@ export declare namespace LinkCreateParams {
>;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
@@ -451,7 +451,7 @@ export declare namespace LinkCreateParams {
viewport?: Variant1.Viewport;
/**
- * Body param:
+ * Body param
*/
visibleLinksOnly?: boolean;
diff --git a/src/resources/browser-rendering/markdown.ts b/src/resources/browser-rendering/markdown.ts
index 208da5e339..bfe57ddb71 100644
--- a/src/resources/browser-rendering/markdown.ts
+++ b/src/resources/browser-rendering/markdown.ts
@@ -122,7 +122,7 @@ export declare namespace MarkdownCreateParams {
cookies?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
@@ -163,17 +163,17 @@ export declare namespace MarkdownCreateParams {
>;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
@@ -383,7 +383,7 @@ export declare namespace MarkdownCreateParams {
cookies?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
@@ -424,17 +424,17 @@ export declare namespace MarkdownCreateParams {
>;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
diff --git a/src/resources/browser-rendering/pdf.ts b/src/resources/browser-rendering/pdf.ts
index 0d306669ff..0e62ff0380 100644
--- a/src/resources/browser-rendering/pdf.ts
+++ b/src/resources/browser-rendering/pdf.ts
@@ -118,7 +118,7 @@ export declare namespace PDFCreateParams {
cookies?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
@@ -164,17 +164,17 @@ export declare namespace PDFCreateParams {
>;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
@@ -483,7 +483,7 @@ export declare namespace PDFCreateParams {
cookies?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
@@ -529,17 +529,17 @@ export declare namespace PDFCreateParams {
>;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
diff --git a/src/resources/browser-rendering/scrape.ts b/src/resources/browser-rendering/scrape.ts
index ca424063f2..23c420601c 100644
--- a/src/resources/browser-rendering/scrape.ts
+++ b/src/resources/browser-rendering/scrape.ts
@@ -103,7 +103,7 @@ export declare namespace ScrapeCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
elements: Array;
@@ -184,7 +184,7 @@ export declare namespace ScrapeCreateParams {
cookies?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
@@ -225,17 +225,17 @@ export declare namespace ScrapeCreateParams {
>;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
@@ -373,7 +373,7 @@ export declare namespace ScrapeCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
elements: Array;
@@ -453,7 +453,7 @@ export declare namespace ScrapeCreateParams {
cookies?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
@@ -494,17 +494,17 @@ export declare namespace ScrapeCreateParams {
>;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
diff --git a/src/resources/browser-rendering/screenshot.ts b/src/resources/browser-rendering/screenshot.ts
index 435ee741d5..74d83a1503 100644
--- a/src/resources/browser-rendering/screenshot.ts
+++ b/src/resources/browser-rendering/screenshot.ts
@@ -140,7 +140,7 @@ export declare namespace ScreenshotCreateParams {
cookies?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
@@ -186,27 +186,27 @@ export declare namespace ScreenshotCreateParams {
screenshotOptions?: Variant0.ScreenshotOptions;
/**
- * Body param:
+ * Body param
*/
scrollPage?: boolean;
/**
- * Body param:
+ * Body param
*/
selector?: string;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
@@ -452,7 +452,7 @@ export declare namespace ScreenshotCreateParams {
cookies?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
@@ -498,27 +498,27 @@ export declare namespace ScreenshotCreateParams {
screenshotOptions?: Variant1.ScreenshotOptions;
/**
- * Body param:
+ * Body param
*/
scrollPage?: boolean;
/**
- * Body param:
+ * Body param
*/
selector?: string;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
diff --git a/src/resources/browser-rendering/snapshot.ts b/src/resources/browser-rendering/snapshot.ts
index 0cb5af646a..9a33090e23 100644
--- a/src/resources/browser-rendering/snapshot.ts
+++ b/src/resources/browser-rendering/snapshot.ts
@@ -131,7 +131,7 @@ export declare namespace SnapshotCreateParams {
cookies?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
@@ -172,22 +172,22 @@ export declare namespace SnapshotCreateParams {
>;
/**
- * Body param:
+ * Body param
*/
screenshotOptions?: Variant0.ScreenshotOptions;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
@@ -428,7 +428,7 @@ export declare namespace SnapshotCreateParams {
cookies?: Array;
/**
- * Body param:
+ * Body param
*/
emulateMediaType?: string;
@@ -469,22 +469,22 @@ export declare namespace SnapshotCreateParams {
>;
/**
- * Body param:
+ * Body param
*/
screenshotOptions?: Variant1.ScreenshotOptions;
/**
- * Body param:
+ * Body param
*/
setExtraHTTPHeaders?: { [key: string]: string };
/**
- * Body param:
+ * Body param
*/
setJavaScriptEnabled?: boolean;
/**
- * Body param:
+ * Body param
*/
userAgent?: string;
diff --git a/src/resources/cache/cache-reserve.ts b/src/resources/cache/cache-reserve.ts
index 1d6bc46412..0add13588f 100644
--- a/src/resources/cache/cache-reserve.ts
+++ b/src/resources/cache/cache-reserve.ts
@@ -244,7 +244,7 @@ export interface CacheReserveClearParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
diff --git a/src/resources/cache/cache.ts b/src/resources/cache/cache.ts
index 4b57d9c83f..8855abfea6 100644
--- a/src/resources/cache/cache.ts
+++ b/src/resources/cache/cache.ts
@@ -152,7 +152,7 @@ export type CachePurgeParams =
export declare namespace CachePurgeParams {
export interface CachePurgeFlexPurgeByTags {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
@@ -166,7 +166,7 @@ export declare namespace CachePurgeParams {
export interface CachePurgeFlexPurgeByHostnames {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
@@ -179,7 +179,7 @@ export declare namespace CachePurgeParams {
export interface CachePurgeFlexPurgeByPrefixes {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
@@ -192,7 +192,7 @@ export declare namespace CachePurgeParams {
export interface CachePurgeEverything {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
@@ -205,7 +205,7 @@ export declare namespace CachePurgeParams {
export interface CachePurgeSingleFile {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
@@ -218,7 +218,7 @@ export declare namespace CachePurgeParams {
export interface CachePurgeSingleFileWithURLAndHeaders {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
diff --git a/src/resources/certificate-authorities/hostname-associations.ts b/src/resources/certificate-authorities/hostname-associations.ts
index 918bb201a7..e4a320a684 100644
--- a/src/resources/certificate-authorities/hostname-associations.ts
+++ b/src/resources/certificate-authorities/hostname-associations.ts
@@ -67,7 +67,7 @@ export interface HostnameAssociationUpdateParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
hostnames?: Array;
diff --git a/src/resources/client-certificates.ts b/src/resources/client-certificates.ts
index a7842e54dd..33ae8aa998 100644
--- a/src/resources/client-certificates.ts
+++ b/src/resources/client-certificates.ts
@@ -298,7 +298,7 @@ export interface ClientCertificateEditParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
reactivate?: boolean;
}
diff --git a/src/resources/cloud-connector/rules.ts b/src/resources/cloud-connector/rules.ts
index 1e2a9e6381..759ac85362 100644
--- a/src/resources/cloud-connector/rules.ts
+++ b/src/resources/cloud-connector/rules.ts
@@ -111,7 +111,7 @@ export interface RuleUpdateParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
rules?: Array;
}
diff --git a/src/resources/cloudforce-one/threat-events/categories.ts b/src/resources/cloudforce-one/threat-events/categories.ts
index cd9e316204..9119742948 100644
--- a/src/resources/cloudforce-one/threat-events/categories.ts
+++ b/src/resources/cloudforce-one/threat-events/categories.ts
@@ -185,22 +185,22 @@ export interface CategoryCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
killChain: number;
/**
- * Body param:
+ * Body param
*/
name: string;
/**
- * Body param:
+ * Body param
*/
mitreAttack?: Array;
/**
- * Body param:
+ * Body param
*/
shortname?: string;
}
@@ -232,22 +232,22 @@ export interface CategoryEditParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
killChain?: number;
/**
- * Body param:
+ * Body param
*/
mitreAttack?: Array;
/**
- * Body param:
+ * Body param
*/
name?: string;
/**
- * Body param:
+ * Body param
*/
shortname?: string;
}
diff --git a/src/resources/cloudforce-one/threat-events/datasets/datasets.ts b/src/resources/cloudforce-one/threat-events/datasets/datasets.ts
index b622d676cc..6654a96b71 100644
--- a/src/resources/cloudforce-one/threat-events/datasets/datasets.ts
+++ b/src/resources/cloudforce-one/threat-events/datasets/datasets.ts
@@ -53,7 +53,11 @@ export class Datasets extends APIResource {
* const response =
* await client.cloudforceOne.threatEvents.datasets.edit(
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
- * { account_id: 'account_id', isPublic: true, name: 'x' },
+ * {
+ * account_id: 'account_id',
+ * isPublic: true,
+ * name: 'x',
+ * },
* );
* ```
*/
diff --git a/src/resources/cloudforce-one/threat-events/event-tags.ts b/src/resources/cloudforce-one/threat-events/event-tags.ts
index 67e2e277e5..565805a382 100644
--- a/src/resources/cloudforce-one/threat-events/event-tags.ts
+++ b/src/resources/cloudforce-one/threat-events/event-tags.ts
@@ -72,7 +72,7 @@ export interface EventTagCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
tags: Array;
}
diff --git a/src/resources/cloudforce-one/threat-events/raw.ts b/src/resources/cloudforce-one/threat-events/raw.ts
index d2069e55fb..d9ddec26f7 100644
--- a/src/resources/cloudforce-one/threat-events/raw.ts
+++ b/src/resources/cloudforce-one/threat-events/raw.ts
@@ -80,17 +80,17 @@ export interface RawEditParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
data?: unknown;
/**
- * Body param:
+ * Body param
*/
source?: string;
/**
- * Body param:
+ * Body param
*/
tlp?: string;
}
diff --git a/src/resources/cloudforce-one/threat-events/tags.ts b/src/resources/cloudforce-one/threat-events/tags.ts
index 3fb276c176..150707cceb 100644
--- a/src/resources/cloudforce-one/threat-events/tags.ts
+++ b/src/resources/cloudforce-one/threat-events/tags.ts
@@ -70,82 +70,82 @@ export interface TagCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
value: string;
/**
- * Body param:
+ * Body param
*/
activeDuration?: string;
/**
- * Body param:
+ * Body param
*/
actorCategory?: string;
/**
- * Body param:
+ * Body param
*/
aliasGroupNames?: Array;
/**
- * Body param:
+ * Body param
*/
aliasGroupNamesInternal?: Array;
/**
- * Body param:
+ * Body param
*/
analyticPriority?: number;
/**
- * Body param:
+ * Body param
*/
attributionConfidence?: string;
/**
- * Body param:
+ * Body param
*/
attributionOrganization?: string;
/**
- * Body param:
+ * Body param
*/
categoryUuid?: string;
/**
- * Body param:
+ * Body param
*/
externalReferenceLinks?: Array;
/**
- * Body param:
+ * Body param
*/
internalDescription?: string;
/**
- * Body param:
+ * Body param
*/
motive?: string;
/**
- * Body param:
+ * Body param
*/
opsecLevel?: string;
/**
- * Body param:
+ * Body param
*/
originCountryISO?: string;
/**
- * Body param:
+ * Body param
*/
priority?: number;
/**
- * Body param:
+ * Body param
*/
sophisticationLevel?: string;
}
diff --git a/src/resources/cloudforce-one/threat-events/threat-events.ts b/src/resources/cloudforce-one/threat-events/threat-events.ts
index 3865bd31a6..4463f847d8 100644
--- a/src/resources/cloudforce-one/threat-events/threat-events.ts
+++ b/src/resources/cloudforce-one/threat-events/threat-events.ts
@@ -229,6 +229,8 @@ export interface ThreatEventCreateResponse {
category: string;
+ datasetId: string;
+
date: string;
event: string;
@@ -284,6 +286,8 @@ export namespace ThreatEventListResponse {
category: string;
+ datasetId: string;
+
date: string;
event: string;
@@ -359,14 +363,15 @@ export interface ThreatEventBulkCreateResponse {
queuedIndicatorsCount: number;
/**
- * Number of events skipped due to duplicate UUID (only when preserveUuid=true)
+ * Correlation ID for async indicator processing
*/
- skippedEventsCount: number;
+ createBulkEventsRequestId?: string;
/**
- * Correlation ID for async indicator processing
+ * Array of created events with UUIDs and shard locations. Only present when
+ * includeCreatedEvents=true
*/
- createBulkEventsRequestId?: string;
+ createdEvents?: Array;
/**
* Array of error details
@@ -375,6 +380,23 @@ export interface ThreatEventBulkCreateResponse {
}
export namespace ThreatEventBulkCreateResponse {
+ export interface CreatedEvent {
+ /**
+ * Original index in the input data array
+ */
+ eventIndex: number;
+
+ /**
+ * Dataset ID of the shard where the event was created
+ */
+ shardId: string;
+
+ /**
+ * UUID of the created event
+ */
+ uuid: string;
+ }
+
export interface Error {
/**
* Error message
@@ -395,6 +417,8 @@ export interface ThreatEventEditResponse {
category: string;
+ datasetId: string;
+
date: string;
event: string;
@@ -447,6 +471,8 @@ export interface ThreatEventGetResponse {
category: string;
+ datasetId: string;
+
date: string;
event: string;
@@ -499,52 +525,52 @@ export interface ThreatEventCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
category: string;
/**
- * Body param:
+ * Body param
*/
date: string;
/**
- * Body param:
+ * Body param
*/
event: string;
/**
- * Body param:
+ * Body param
*/
raw: ThreatEventCreateParams.Raw;
/**
- * Body param:
+ * Body param
*/
tlp: string;
/**
- * Body param:
+ * Body param
*/
accountId?: number;
/**
- * Body param:
+ * Body param
*/
attacker?: string | null;
/**
- * Body param:
+ * Body param
*/
attackerCountry?: string;
/**
- * Body param:
+ * Body param
*/
datasetId?: string;
/**
- * Body param:
+ * Body param
*/
indicator?: string;
@@ -555,35 +581,29 @@ export interface ThreatEventCreateParams {
indicators?: Array;
/**
- * Body param:
+ * Body param
*/
indicatorType?: string;
/**
- * Body param:
+ * Body param
*/
insight?: string;
/**
- * Body param:
+ * Body param
*/
tags?: Array;
/**
- * Body param:
+ * Body param
*/
targetCountry?: string;
/**
- * Body param:
+ * Body param
*/
targetIndustry?: string;
-
- /**
- * Body param: Optional UUID for the event. Only used when preserveUuid=true in
- * bulk create. Must be a valid UUID format.
- */
- uuid?: string;
}
export namespace ThreatEventCreateParams {
@@ -615,42 +635,52 @@ export interface ThreatEventListParams {
account_id: string;
/**
- * Query param:
+ * Query param: Cursor for pagination. When provided, filters are embedded in the
+ * cursor so you only need to pass cursor and pageSize. Returned in the previous
+ * response's result_info.cursor field. Use cursor-based pagination for deep
+ * pagination (beyond 100,000 records) or for optimal performance.
+ */
+ cursor?: string;
+
+ /**
+ * Query param
*/
datasetId?: Array;
/**
- * Query param:
+ * Query param
*/
forceRefresh?: boolean;
/**
- * Query param:
+ * Query param
*/
format?: 'json' | 'stix2';
/**
- * Query param:
+ * Query param
*/
order?: 'asc' | 'desc';
/**
- * Query param:
+ * Query param
*/
orderBy?: string;
/**
- * Query param:
+ * Query param: Page number (1-indexed) for offset-based pagination. Limited to
+ * offset of 100,000 records. For deep pagination, use cursor-based pagination
+ * instead.
*/
page?: number;
/**
- * Query param:
+ * Query param: Number of results per page. Maximum 25,000.
*/
pageSize?: number;
/**
- * Query param:
+ * Query param
*/
search?: Array;
}
@@ -691,21 +721,20 @@ export interface ThreatEventBulkCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
data: Array;
/**
- * Body param:
+ * Body param
*/
datasetId: string;
/**
- * Body param: When true, use provided UUIDs from event data instead of generating
- * new ones. Used for migration scenarios where original UUIDs must be preserved.
- * Duplicate UUIDs will be skipped.
+ * Body param: When true, response includes array of created event UUIDs and shard
+ * IDs. Useful for tracking which events were created and where.
*/
- preserveUuid?: boolean;
+ includeCreatedEvents?: boolean;
}
export namespace ThreatEventBulkCreateParams {
@@ -745,12 +774,6 @@ export namespace ThreatEventBulkCreateParams {
targetCountry?: string;
targetIndustry?: string;
-
- /**
- * Optional UUID for the event. Only used when preserveUuid=true in bulk create.
- * Must be a valid UUID format.
- */
- uuid?: string;
}
export namespace Data {
@@ -783,72 +806,72 @@ export interface ThreatEventEditParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
attacker?: string | null;
/**
- * Body param:
+ * Body param
*/
attackerCountry?: string;
/**
- * Body param:
+ * Body param
*/
category?: string;
/**
- * Body param:
+ * Body param
*/
createdAt?: string;
/**
- * Body param:
+ * Body param
*/
datasetId?: string;
/**
- * Body param:
+ * Body param
*/
date?: string;
/**
- * Body param:
+ * Body param
*/
event?: string;
/**
- * Body param:
+ * Body param
*/
indicator?: string;
/**
- * Body param:
+ * Body param
*/
indicatorType?: string;
/**
- * Body param:
+ * Body param
*/
insight?: string;
/**
- * Body param:
+ * Body param
*/
raw?: ThreatEventEditParams.Raw;
/**
- * Body param:
+ * Body param
*/
targetCountry?: string;
/**
- * Body param:
+ * Body param
*/
targetIndustry?: string;
/**
- * Body param:
+ * Body param
*/
tlp?: string;
}
diff --git a/src/resources/connectivity/directory/services.ts b/src/resources/connectivity/directory/services.ts
index 65079e2c04..fd2c10d763 100644
--- a/src/resources/connectivity/directory/services.ts
+++ b/src/resources/connectivity/directory/services.ts
@@ -458,7 +458,7 @@ export interface ServiceCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
host:
| ServiceCreateParams.InfraIPv4Host
@@ -467,22 +467,22 @@ export interface ServiceCreateParams {
| ServiceCreateParams.InfraHostnameHost;
/**
- * Body param:
+ * Body param
*/
name: string;
/**
- * Body param:
+ * Body param
*/
type: 'http';
/**
- * Body param:
+ * Body param
*/
http_port?: number | null;
/**
- * Body param:
+ * Body param
*/
https_port?: number | null;
}
@@ -543,12 +543,12 @@ export namespace ServiceCreateParams {
export interface ServiceUpdateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
host:
| ServiceUpdateParams.InfraIPv4Host
@@ -557,22 +557,22 @@ export interface ServiceUpdateParams {
| ServiceUpdateParams.InfraHostnameHost;
/**
- * Body param:
+ * Body param
*/
name: string;
/**
- * Body param:
+ * Body param
*/
type: 'http';
/**
- * Body param:
+ * Body param
*/
http_port?: number | null;
/**
- * Body param:
+ * Body param
*/
https_port?: number | null;
}
@@ -638,7 +638,7 @@ export interface ServiceListParams extends V4PagePaginationArrayParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
type?: 'http' | null;
}
diff --git a/src/resources/content-scanning/payloads.ts b/src/resources/content-scanning/payloads.ts
index 12c7fa4b8e..3905f4e2b4 100644
--- a/src/resources/content-scanning/payloads.ts
+++ b/src/resources/content-scanning/payloads.ts
@@ -149,7 +149,7 @@ export interface PayloadCreateParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array;
}
diff --git a/src/resources/custom-certificates/custom-certificates.ts b/src/resources/custom-certificates/custom-certificates.ts
index deefdb9eb5..ee7d22563d 100644
--- a/src/resources/custom-certificates/custom-certificates.ts
+++ b/src/resources/custom-certificates/custom-certificates.ts
@@ -156,30 +156,61 @@ export interface CustomCertificate {
*/
id: string;
+ /**
+ * Identifier.
+ */
+ zone_id: string;
+
/**
* A ubiquitous bundle has the highest probability of being verified everywhere,
* even by clients using outdated or unusual trust stores. An optimal bundle uses
* the shortest chain and newest intermediates. And the force bundle verifies the
* chain, but does not otherwise modify it.
*/
- bundle_method: CustomHostnamesAPI.BundleMethod;
+ bundle_method?: CustomHostnamesAPI.BundleMethod;
/**
* When the certificate from the authority expires.
*/
- expires_on: string;
+ expires_on?: string;
- hosts: Array;
+ /**
+ * Specify the region where your private key can be held locally for optimal TLS
+ * performance. HTTPS connections to any excluded data center will still be fully
+ * encrypted, but will incur some latency while Keyless SSL is used to complete the
+ * handshake with the nearest allowed data center. Options allow distribution to
+ * only to U.S. data centers, only to E.U. data centers, or only to highest
+ * security data centers. Default distribution is to all Cloudflare datacenters,
+ * for optimal performance.
+ */
+ geo_restrictions?: GeoRestrictions;
+
+ hosts?: Array;
/**
* The certificate authority that issued the certificate.
*/
- issuer: string;
+ issuer?: string;
+
+ keyless_server?: KeylessCertificatesAPI.KeylessCertificate;
/**
* When the certificate was last modified.
*/
- modified_on: string;
+ modified_on?: string;
+
+ /**
+ * Specify the policy that determines the region where your private key will be
+ * held locally. HTTPS connections to any excluded data center will still be fully
+ * encrypted, but will incur some latency while Keyless SSL is used to complete the
+ * handshake with the nearest allowed data center. Any combination of countries,
+ * specified by their two letter country code
+ * (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
+ * can be chosen, such as 'country: IN', as well as 'region: EU' which refers to
+ * the EU region. If there are too few data centers satisfying the policy, it will
+ * be rejected.
+ */
+ policy?: string;
/**
* The order/priority in which the certificate will be used in a request. The
@@ -187,53 +218,22 @@ export interface CustomCertificate {
* but 'legacy_custom' certificates will always supercede 'sni_custom'
* certificates.
*/
- priority: number;
+ priority?: number;
/**
* The type of hash used for the certificate.
*/
- signature: string;
+ signature?: string;
/**
* Status of the zone's custom SSL.
*/
- status: 'active' | 'expired' | 'deleted' | 'pending' | 'initializing';
+ status?: 'active' | 'expired' | 'deleted' | 'pending' | 'initializing';
/**
* When the certificate was uploaded to Cloudflare.
*/
- uploaded_on: string;
-
- /**
- * Identifier.
- */
- zone_id: string;
-
- /**
- * Specify the region where your private key can be held locally for optimal TLS
- * performance. HTTPS connections to any excluded data center will still be fully
- * encrypted, but will incur some latency while Keyless SSL is used to complete the
- * handshake with the nearest allowed data center. Options allow distribution to
- * only to U.S. data centers, only to E.U. data centers, or only to highest
- * security data centers. Default distribution is to all Cloudflare datacenters,
- * for optimal performance.
- */
- geo_restrictions?: GeoRestrictions;
-
- keyless_server?: KeylessCertificatesAPI.KeylessCertificate;
-
- /**
- * Specify the policy that determines the region where your private key will be
- * held locally. HTTPS connections to any excluded data center will still be fully
- * encrypted, but will incur some latency while Keyless SSL is used to complete the
- * handshake with the nearest allowed data center. Any combination of countries,
- * specified by their two letter country code
- * (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
- * can be chosen, such as 'country: IN', as well as 'region: EU' which refers to
- * the EU region. If there are too few data centers satisfying the policy, it will
- * be rejected.
- */
- policy?: string;
+ uploaded_on?: string;
}
/**
@@ -354,53 +354,74 @@ export interface CustomCertificateDeleteParams {
zone_id: string;
}
-export interface CustomCertificateEditParams {
- /**
- * Path param: Identifier.
- */
- zone_id: string;
-
- /**
- * Body param: A ubiquitous bundle has the highest probability of being verified
- * everywhere, even by clients using outdated or unusual trust stores. An optimal
- * bundle uses the shortest chain and newest intermediates. And the force bundle
- * verifies the chain, but does not otherwise modify it.
- */
- bundle_method?: CustomHostnamesAPI.BundleMethodParam;
-
- /**
- * Body param: The zone's SSL certificate or certificate and the intermediate(s).
- */
- certificate?: string;
-
- /**
- * Body param: Specify the region where your private key can be held locally for
- * optimal TLS performance. HTTPS connections to any excluded data center will
- * still be fully encrypted, but will incur some latency while Keyless SSL is used
- * to complete the handshake with the nearest allowed data center. Options allow
- * distribution to only to U.S. data centers, only to E.U. data centers, or only to
- * highest security data centers. Default distribution is to all Cloudflare
- * datacenters, for optimal performance.
- */
- geo_restrictions?: GeoRestrictionsParam;
-
- /**
- * Body param: Specify the policy that determines the region where your private key
- * will be held locally. HTTPS connections to any excluded data center will still
- * be fully encrypted, but will incur some latency while Keyless SSL is used to
- * complete the handshake with the nearest allowed data center. Any combination of
- * countries, specified by their two letter country code
- * (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
- * can be chosen, such as 'country: IN', as well as 'region: EU' which refers to
- * the EU region. If there are too few data centers satisfying the policy, it will
- * be rejected.
- */
- policy?: string;
+export type CustomCertificateEditParams =
+ | CustomCertificateEditParams.Variant0
+ | CustomCertificateEditParams.Variant1;
+
+export declare namespace CustomCertificateEditParams {
+ export interface Variant0 {
+ /**
+ * Path param: Identifier.
+ */
+ zone_id: string;
+
+ /**
+ * Body param: A ubiquitous bundle has the highest probability of being verified
+ * everywhere, even by clients using outdated or unusual trust stores. An optimal
+ * bundle uses the shortest chain and newest intermediates. And the force bundle
+ * verifies the chain, but does not otherwise modify it.
+ */
+ bundle_method?: CustomHostnamesAPI.BundleMethodParam;
+ }
- /**
- * Body param: The zone's private key.
- */
- private_key?: string;
+ export interface Variant1 {
+ /**
+ * Path param: Identifier.
+ */
+ zone_id: string;
+
+ /**
+ * Body param: The zone's SSL certificate or certificate and the intermediate(s).
+ */
+ certificate: string;
+
+ /**
+ * Body param: The zone's private key.
+ */
+ private_key: string;
+
+ /**
+ * Body param: A ubiquitous bundle has the highest probability of being verified
+ * everywhere, even by clients using outdated or unusual trust stores. An optimal
+ * bundle uses the shortest chain and newest intermediates. And the force bundle
+ * verifies the chain, but does not otherwise modify it.
+ */
+ bundle_method?: CustomHostnamesAPI.BundleMethodParam;
+
+ /**
+ * Body param: Specify the region where your private key can be held locally for
+ * optimal TLS performance. HTTPS connections to any excluded data center will
+ * still be fully encrypted, but will incur some latency while Keyless SSL is used
+ * to complete the handshake with the nearest allowed data center. Options allow
+ * distribution to only to U.S. data centers, only to E.U. data centers, or only to
+ * highest security data centers. Default distribution is to all Cloudflare
+ * datacenters, for optimal performance.
+ */
+ geo_restrictions?: GeoRestrictionsParam;
+
+ /**
+ * Body param: Specify the policy that determines the region where your private key
+ * will be held locally. HTTPS connections to any excluded data center will still
+ * be fully encrypted, but will incur some latency while Keyless SSL is used to
+ * complete the handshake with the nearest allowed data center. Any combination of
+ * countries, specified by their two letter country code
+ * (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
+ * can be chosen, such as 'country: IN', as well as 'region: EU' which refers to
+ * the EU region. If there are too few data centers satisfying the policy, it will
+ * be rejected.
+ */
+ policy?: string;
+ }
}
export interface CustomCertificateGetParams {
diff --git a/src/resources/d1/database/database.ts b/src/resources/d1/database/database.ts
index db2ee081de..2ca49794b5 100644
--- a/src/resources/d1/database/database.ts
+++ b/src/resources/d1/database/database.ts
@@ -787,7 +787,7 @@ export interface DatabaseExportParams {
current_bookmark?: string;
/**
- * Body param:
+ * Body param
*/
dump_options?: DatabaseExportParams.DumpOptions;
}
@@ -903,7 +903,7 @@ export declare namespace DatabaseQueryParams {
sql: string;
/**
- * Body param:
+ * Body param
*/
params?: Array;
}
@@ -915,7 +915,7 @@ export declare namespace DatabaseQueryParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
batch?: Array;
}
@@ -952,7 +952,7 @@ export declare namespace DatabaseRawParams {
sql: string;
/**
- * Body param:
+ * Body param
*/
params?: Array;
}
@@ -964,7 +964,7 @@ export declare namespace DatabaseRawParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
batch?: Array;
}
diff --git a/src/resources/diagnostics/traceroutes.ts b/src/resources/diagnostics/traceroutes.ts
index 292c9f8484..891c7ef581 100644
--- a/src/resources/diagnostics/traceroutes.ts
+++ b/src/resources/diagnostics/traceroutes.ts
@@ -167,7 +167,7 @@ export interface TracerouteCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
targets: Array;
@@ -178,7 +178,7 @@ export interface TracerouteCreateParams {
colos?: Array;
/**
- * Body param:
+ * Body param
*/
options?: TracerouteCreateParams.Options;
}
diff --git a/src/resources/dns-firewall/dns-firewall.ts b/src/resources/dns-firewall/dns-firewall.ts
index b71c825e34..b8c62627f2 100644
--- a/src/resources/dns-firewall/dns-firewall.ts
+++ b/src/resources/dns-firewall/dns-firewall.ts
@@ -558,7 +558,7 @@ export interface DNSFirewallCreateParams {
name: string;
/**
- * Body param:
+ * Body param
*/
upstream_ips: Array;
@@ -721,7 +721,7 @@ export interface DNSFirewallEditParams {
retries?: number;
/**
- * Body param:
+ * Body param
*/
upstream_ips?: Array;
}
diff --git a/src/resources/dns/records.ts b/src/resources/dns/records.ts
index b3eb5c6bb2..a838bd1fe8 100644
--- a/src/resources/dns/records.ts
+++ b/src/resources/dns/records.ts
@@ -9924,12 +9924,12 @@ export interface RecordListParams extends V4PagePaginationArrayParams {
zone_id: string;
/**
- * Query param:
+ * Query param
*/
comment?: RecordListParams.Comment;
/**
- * Query param:
+ * Query param
*/
content?: RecordListParams.Content;
@@ -9947,7 +9947,7 @@ export interface RecordListParams extends V4PagePaginationArrayParams {
match?: 'any' | 'all';
/**
- * Query param:
+ * Query param
*/
name?: RecordListParams.Name;
@@ -9972,7 +9972,7 @@ export interface RecordListParams extends V4PagePaginationArrayParams {
search?: string;
/**
- * Query param:
+ * Query param
*/
tag?: RecordListParams.Tag;
@@ -10146,17 +10146,17 @@ export interface RecordBatchParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
deletes?: Array;
/**
- * Body param:
+ * Body param
*/
patches?: Array;
/**
- * Body param:
+ * Body param
*/
posts?: Array<
| ARecordParam
@@ -10183,7 +10183,7 @@ export interface RecordBatchParams {
>;
/**
- * Body param:
+ * Body param
*/
puts?: Array;
}
@@ -12282,7 +12282,7 @@ export interface RecordScanParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
@@ -12301,7 +12301,7 @@ export interface RecordScanReviewParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
accepts?: Array<
| ARecordParam
@@ -12328,7 +12328,7 @@ export interface RecordScanReviewParams {
>;
/**
- * Body param:
+ * Body param
*/
rejects?: Array;
}
diff --git a/src/resources/dns/settings/account/account.ts b/src/resources/dns/settings/account/account.ts
index 9c46a00f70..e28d705120 100644
--- a/src/resources/dns/settings/account/account.ts
+++ b/src/resources/dns/settings/account/account.ts
@@ -315,7 +315,7 @@ export interface AccountEditParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
zone_defaults?: AccountEditParams.ZoneDefaults;
}
diff --git a/src/resources/dns/settings/account/views.ts b/src/resources/dns/settings/account/views.ts
index 788751376e..b57c602d36 100644
--- a/src/resources/dns/settings/account/views.ts
+++ b/src/resources/dns/settings/account/views.ts
@@ -283,7 +283,7 @@ export interface ViewListParams extends V4PagePaginationArrayParams {
match?: 'any' | 'all';
/**
- * Query param:
+ * Query param
*/
name?: ViewListParams.Name;
diff --git a/src/resources/dns/zone-transfers/acls.ts b/src/resources/dns/zone-transfers/acls.ts
index 47ba5613f9..f491af2edb 100644
--- a/src/resources/dns/zone-transfers/acls.ts
+++ b/src/resources/dns/zone-transfers/acls.ts
@@ -141,7 +141,7 @@ export interface ACLDeleteResponse {
export interface ACLCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -162,7 +162,7 @@ export interface ACLCreateParams {
export interface ACLUpdateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
diff --git a/src/resources/dns/zone-transfers/force-axfr.ts b/src/resources/dns/zone-transfers/force-axfr.ts
index 32234249f2..61981d2a16 100644
--- a/src/resources/dns/zone-transfers/force-axfr.ts
+++ b/src/resources/dns/zone-transfers/force-axfr.ts
@@ -34,12 +34,12 @@ export type ForceAXFR = string;
export interface ForceAXFRCreateParams {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
diff --git a/src/resources/dns/zone-transfers/incoming.ts b/src/resources/dns/zone-transfers/incoming.ts
index f7d8516c50..230588ff8f 100644
--- a/src/resources/dns/zone-transfers/incoming.ts
+++ b/src/resources/dns/zone-transfers/incoming.ts
@@ -272,7 +272,7 @@ export interface IncomingGetResponse {
export interface IncomingCreateParams {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
@@ -295,7 +295,7 @@ export interface IncomingCreateParams {
export interface IncomingUpdateParams {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
diff --git a/src/resources/dns/zone-transfers/outgoing/outgoing.ts b/src/resources/dns/zone-transfers/outgoing/outgoing.ts
index af3129b4d8..6ff8266057 100644
--- a/src/resources/dns/zone-transfers/outgoing/outgoing.ts
+++ b/src/resources/dns/zone-transfers/outgoing/outgoing.ts
@@ -341,7 +341,7 @@ export interface OutgoingGetResponse {
export interface OutgoingCreateParams {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
@@ -358,7 +358,7 @@ export interface OutgoingCreateParams {
export interface OutgoingUpdateParams {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
@@ -379,36 +379,36 @@ export interface OutgoingDeleteParams {
export interface OutgoingDisableParams {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
export interface OutgoingEnableParams {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
export interface OutgoingForceNotifyParams {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
diff --git a/src/resources/dns/zone-transfers/peers.ts b/src/resources/dns/zone-transfers/peers.ts
index bcb71b93ea..3bbd2ceeb6 100644
--- a/src/resources/dns/zone-transfers/peers.ts
+++ b/src/resources/dns/zone-transfers/peers.ts
@@ -157,7 +157,7 @@ export interface PeerDeleteResponse {
export interface PeerCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -169,7 +169,7 @@ export interface PeerCreateParams {
export interface PeerUpdateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
diff --git a/src/resources/dns/zone-transfers/tsigs.ts b/src/resources/dns/zone-transfers/tsigs.ts
index cc1814dd2c..58c497dc07 100644
--- a/src/resources/dns/zone-transfers/tsigs.ts
+++ b/src/resources/dns/zone-transfers/tsigs.ts
@@ -147,7 +147,7 @@ export interface TSIGDeleteResponse {
export interface TSIGCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -169,7 +169,7 @@ export interface TSIGCreateParams {
export interface TSIGUpdateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
diff --git a/src/resources/email-routing/email-routing.ts b/src/resources/email-routing/email-routing.ts
index bf68594b09..4366910bcd 100644
--- a/src/resources/email-routing/email-routing.ts
+++ b/src/resources/email-routing/email-routing.ts
@@ -141,7 +141,7 @@ export interface EmailRoutingDisableParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
@@ -153,7 +153,7 @@ export interface EmailRoutingEnableParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
diff --git a/src/resources/email-security/investigate/investigate.ts b/src/resources/email-security/investigate/investigate.ts
index 017c835c52..3e552eafe7 100644
--- a/src/resources/email-security/investigate/investigate.ts
+++ b/src/resources/email-security/investigate/investigate.ts
@@ -419,12 +419,12 @@ export interface InvestigateListParams extends V4PagePaginationArrayParams {
action_log?: boolean;
/**
- * Query param:
+ * Query param
*/
alert_id?: string;
/**
- * Query param:
+ * Query param
*/
cursor?: string;
@@ -454,12 +454,12 @@ export interface InvestigateListParams extends V4PagePaginationArrayParams {
message_action?: 'PREVIEW' | 'QUARANTINE_RELEASED' | 'MOVED';
/**
- * Query param:
+ * Query param
*/
message_id?: string;
/**
- * Query param:
+ * Query param
*/
metric?: string;
@@ -493,12 +493,12 @@ export interface InvestigateListParams extends V4PagePaginationArrayParams {
query?: string;
/**
- * Query param:
+ * Query param
*/
recipient?: string;
/**
- * Query param:
+ * Query param
*/
sender?: string;
@@ -509,7 +509,7 @@ export interface InvestigateListParams extends V4PagePaginationArrayParams {
start?: string;
/**
- * Query param:
+ * Query param
*/
subject?: string;
}
diff --git a/src/resources/email-security/investigate/move.ts b/src/resources/email-security/investigate/move.ts
index 75284bb033..3d465a2a6c 100644
--- a/src/resources/email-security/investigate/move.ts
+++ b/src/resources/email-security/investigate/move.ts
@@ -45,7 +45,6 @@ export class Move extends APIResource {
* {
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* destination: 'Inbox',
- * postfix_ids: ['4Njp3P0STMz2c02Q'],
* },
* )) {
* // ...
@@ -118,7 +117,7 @@ export interface MoveCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
destination:
| 'Inbox'
@@ -135,7 +134,7 @@ export interface MoveBulkParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
destination:
| 'Inbox'
@@ -145,9 +144,15 @@ export interface MoveBulkParams {
| 'RecoverableItemsPurges';
/**
- * Body param:
+ * Body param: List of message IDs to move.
*/
- postfix_ids: Array;
+ ids?: Array;
+
+ /**
+ * @deprecated Body param: Deprecated: Use `ids` instead. List of message IDs to
+ * move.
+ */
+ postfix_ids?: Array;
}
Move.MoveCreateResponsesSinglePage = MoveCreateResponsesSinglePage;
diff --git a/src/resources/email-security/investigate/reclassify.ts b/src/resources/email-security/investigate/reclassify.ts
index 2330f8cf94..5c40b08ab7 100644
--- a/src/resources/email-security/investigate/reclassify.ts
+++ b/src/resources/email-security/investigate/reclassify.ts
@@ -43,7 +43,7 @@ export interface ReclassifyCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
expected_disposition: 'NONE' | 'BULK' | 'MALICIOUS' | 'SPAM' | 'SPOOF' | 'SUSPICIOUS';
@@ -53,7 +53,7 @@ export interface ReclassifyCreateParams {
eml_content?: string;
/**
- * Body param:
+ * Body param
*/
escalated_submission_id?: string;
}
diff --git a/src/resources/email-security/investigate/release.ts b/src/resources/email-security/investigate/release.ts
index 24d3511e19..b047eb8172 100644
--- a/src/resources/email-security/investigate/release.ts
+++ b/src/resources/email-security/investigate/release.ts
@@ -37,6 +37,8 @@ export class Release extends APIResource {
export class ReleaseBulkResponsesSinglePage extends SinglePage {}
export interface ReleaseBulkResponse {
+ id: string;
+
/**
* The identifier of the message.
*/
diff --git a/src/resources/email-security/settings/allow-policies.ts b/src/resources/email-security/settings/allow-policies.ts
index 2cd1553022..76847cc6f7 100644
--- a/src/resources/email-security/settings/allow-policies.ts
+++ b/src/resources/email-security/settings/allow-policies.ts
@@ -396,7 +396,7 @@ export interface AllowPolicyCreateParams {
is_exempt_recipient: boolean;
/**
- * Body param:
+ * Body param
*/
is_regex: boolean;
@@ -407,12 +407,12 @@ export interface AllowPolicyCreateParams {
is_trusted_sender: boolean;
/**
- * Body param:
+ * Body param
*/
pattern: string;
/**
- * Body param:
+ * Body param
*/
pattern_type: 'EMAIL' | 'DOMAIN' | 'IP' | 'UNKNOWN';
@@ -423,22 +423,22 @@ export interface AllowPolicyCreateParams {
verify_sender: boolean;
/**
- * Body param:
+ * Body param
*/
comments?: string | null;
/**
- * @deprecated Body param:
+ * @deprecated Body param
*/
is_recipient?: boolean;
/**
- * @deprecated Body param:
+ * @deprecated Body param
*/
is_sender?: boolean;
/**
- * @deprecated Body param:
+ * @deprecated Body param
*/
is_spoof?: boolean;
}
@@ -455,32 +455,32 @@ export interface AllowPolicyListParams extends V4PagePaginationArrayParams {
direction?: 'asc' | 'desc';
/**
- * Query param:
+ * Query param
*/
is_acceptable_sender?: boolean;
/**
- * Query param:
+ * Query param
*/
is_exempt_recipient?: boolean;
/**
- * Query param:
+ * Query param
*/
is_recipient?: boolean;
/**
- * Query param:
+ * Query param
*/
is_sender?: boolean;
/**
- * Query param:
+ * Query param
*/
is_spoof?: boolean;
/**
- * Query param:
+ * Query param
*/
is_trusted_sender?: boolean;
@@ -490,12 +490,12 @@ export interface AllowPolicyListParams extends V4PagePaginationArrayParams {
order?: 'pattern' | 'created_at';
/**
- * Query param:
+ * Query param
*/
pattern?: string;
/**
- * Query param:
+ * Query param
*/
pattern_type?: 'EMAIL' | 'DOMAIN' | 'IP' | 'UNKNOWN';
@@ -507,7 +507,7 @@ export interface AllowPolicyListParams extends V4PagePaginationArrayParams {
search?: string;
/**
- * Query param:
+ * Query param
*/
verify_sender?: boolean;
}
@@ -526,7 +526,7 @@ export interface AllowPolicyEditParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
comments?: string | null;
@@ -543,7 +543,7 @@ export interface AllowPolicyEditParams {
is_exempt_recipient?: boolean | null;
/**
- * Body param:
+ * Body param
*/
is_regex?: boolean | null;
@@ -554,12 +554,12 @@ export interface AllowPolicyEditParams {
is_trusted_sender?: boolean | null;
/**
- * Body param:
+ * Body param
*/
pattern?: string | null;
/**
- * Body param:
+ * Body param
*/
pattern_type?: 'EMAIL' | 'DOMAIN' | 'IP' | 'UNKNOWN' | null;
diff --git a/src/resources/email-security/settings/block-senders.ts b/src/resources/email-security/settings/block-senders.ts
index edbc87faf9..c467059989 100644
--- a/src/resources/email-security/settings/block-senders.ts
+++ b/src/resources/email-security/settings/block-senders.ts
@@ -228,22 +228,22 @@ export interface BlockSenderCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
is_regex: boolean;
/**
- * Body param:
+ * Body param
*/
pattern: string;
/**
- * Body param:
+ * Body param
*/
pattern_type: 'EMAIL' | 'DOMAIN' | 'IP' | 'UNKNOWN';
/**
- * Body param:
+ * Body param
*/
comments?: string | null;
}
@@ -265,12 +265,12 @@ export interface BlockSenderListParams extends V4PagePaginationArrayParams {
order?: 'pattern' | 'created_at';
/**
- * Query param:
+ * Query param
*/
pattern?: string;
/**
- * Query param:
+ * Query param
*/
pattern_type?: 'EMAIL' | 'DOMAIN' | 'IP' | 'UNKNOWN';
@@ -296,22 +296,22 @@ export interface BlockSenderEditParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
comments?: string | null;
/**
- * Body param:
+ * Body param
*/
is_regex?: boolean | null;
/**
- * Body param:
+ * Body param
*/
pattern?: string | null;
/**
- * Body param:
+ * Body param
*/
pattern_type?: 'EMAIL' | 'DOMAIN' | 'IP' | 'UNKNOWN' | null;
}
diff --git a/src/resources/email-security/settings/domains.ts b/src/resources/email-security/settings/domains.ts
index a18128ec9f..286176881f 100644
--- a/src/resources/email-security/settings/domains.ts
+++ b/src/resources/email-security/settings/domains.ts
@@ -439,22 +439,22 @@ export interface DomainEditParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
ip_restrictions: Array;
/**
- * Body param:
+ * Body param
*/
allowed_delivery_modes?: Array<'DIRECT' | 'BCC' | 'JOURNAL' | 'API' | 'RETRO_SCAN'>;
/**
- * Body param:
+ * Body param
*/
domain?: string;
/**
- * Body param:
+ * Body param
*/
drop_dispositions?: Array<
| 'MALICIOUS'
@@ -470,37 +470,37 @@ export interface DomainEditParams {
>;
/**
- * Body param:
+ * Body param
*/
folder?: 'AllItems' | 'Inbox';
/**
- * Body param:
+ * Body param
*/
integration_id?: string;
/**
- * Body param:
+ * Body param
*/
lookback_hops?: number;
/**
- * Body param:
+ * Body param
*/
regions?: Array<'GLOBAL' | 'AU' | 'DE' | 'IN' | 'US'>;
/**
- * Body param:
+ * Body param
*/
require_tls_inbound?: boolean;
/**
- * Body param:
+ * Body param
*/
require_tls_outbound?: boolean;
/**
- * Body param:
+ * Body param
*/
transport?: string;
}
diff --git a/src/resources/email-security/settings/impersonation-registry.ts b/src/resources/email-security/settings/impersonation-registry.ts
index f103f012b4..36d4bc0c5c 100644
--- a/src/resources/email-security/settings/impersonation-registry.ts
+++ b/src/resources/email-security/settings/impersonation-registry.ts
@@ -262,17 +262,17 @@ export interface ImpersonationRegistryCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
email: string;
/**
- * Body param:
+ * Body param
*/
is_email_regex: boolean;
/**
- * Body param:
+ * Body param
*/
name: string;
}
@@ -294,7 +294,7 @@ export interface ImpersonationRegistryListParams extends V4PagePaginationArrayPa
order?: 'name' | 'email' | 'created_at';
/**
- * Query param:
+ * Query param
*/
provenance?: 'A1S_INTERNAL' | 'SNOOPY-CASB_OFFICE_365' | 'SNOOPY-OFFICE_365' | 'SNOOPY-GOOGLE_DIRECTORY';
@@ -320,17 +320,17 @@ export interface ImpersonationRegistryEditParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
email?: string | null;
/**
- * Body param:
+ * Body param
*/
is_email_regex?: boolean | null;
/**
- * Body param:
+ * Body param
*/
name?: string | null;
}
diff --git a/src/resources/email-security/settings/trusted-domains.ts b/src/resources/email-security/settings/trusted-domains.ts
index 5d2b18768c..236ccf1c7d 100644
--- a/src/resources/email-security/settings/trusted-domains.ts
+++ b/src/resources/email-security/settings/trusted-domains.ts
@@ -317,7 +317,7 @@ export declare namespace TrustedDomainCreateParams {
is_recent: boolean;
/**
- * Body param:
+ * Body param
*/
is_regex: boolean;
@@ -329,12 +329,12 @@ export declare namespace TrustedDomainCreateParams {
is_similarity: boolean;
/**
- * Body param:
+ * Body param
*/
pattern: string;
/**
- * Body param:
+ * Body param
*/
comments?: string | null;
}
@@ -346,7 +346,7 @@ export declare namespace TrustedDomainCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array;
}
@@ -386,12 +386,12 @@ export interface TrustedDomainListParams extends V4PagePaginationArrayParams {
direction?: 'asc' | 'desc';
/**
- * Query param:
+ * Query param
*/
is_recent?: boolean;
/**
- * Query param:
+ * Query param
*/
is_similarity?: boolean;
@@ -401,7 +401,7 @@ export interface TrustedDomainListParams extends V4PagePaginationArrayParams {
order?: 'pattern' | 'created_at';
/**
- * Query param:
+ * Query param
*/
pattern?: string;
@@ -427,7 +427,7 @@ export interface TrustedDomainEditParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
comments?: string;
@@ -438,7 +438,7 @@ export interface TrustedDomainEditParams {
is_recent?: boolean;
/**
- * Body param:
+ * Body param
*/
is_regex?: boolean;
@@ -450,7 +450,7 @@ export interface TrustedDomainEditParams {
is_similarity?: boolean;
/**
- * Body param:
+ * Body param
*/
pattern?: string;
}
diff --git a/src/resources/email-security/submissions.ts b/src/resources/email-security/submissions.ts
index f8764b948a..a2ba9907af 100644
--- a/src/resources/email-security/submissions.ts
+++ b/src/resources/email-security/submissions.ts
@@ -102,22 +102,22 @@ export interface SubmissionListParams extends V4PagePaginationArrayParams {
end?: string;
/**
- * Query param:
+ * Query param
*/
original_disposition?: 'MALICIOUS' | 'SUSPICIOUS' | 'SPOOF' | 'SPAM' | 'BULK' | 'NONE';
/**
- * Query param:
+ * Query param
*/
outcome_disposition?: 'MALICIOUS' | 'SUSPICIOUS' | 'SPOOF' | 'SPAM' | 'BULK' | 'NONE';
/**
- * Query param:
+ * Query param
*/
query?: string | null;
/**
- * Query param:
+ * Query param
*/
requested_disposition?: 'MALICIOUS' | 'SUSPICIOUS' | 'SPOOF' | 'SPAM' | 'BULK' | 'NONE';
@@ -128,17 +128,17 @@ export interface SubmissionListParams extends V4PagePaginationArrayParams {
start?: string;
/**
- * Query param:
+ * Query param
*/
status?: string;
/**
- * Query param:
+ * Query param
*/
submission_id?: string;
/**
- * Query param:
+ * Query param
*/
type?: 'TEAM' | 'USER';
}
diff --git a/src/resources/filters.ts b/src/resources/filters.ts
index ce6af0a7d1..100e41e35a 100644
--- a/src/resources/filters.ts
+++ b/src/resources/filters.ts
@@ -211,7 +211,7 @@ export interface FilterCreateParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array;
}
@@ -291,7 +291,7 @@ export interface FilterBulkDeleteParams {
zone_id: string;
/**
- * Query param:
+ * Query param
*/
id: Array;
}
@@ -303,7 +303,7 @@ export interface FilterBulkUpdateParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array;
}
diff --git a/src/resources/firewall/access-rules.ts b/src/resources/firewall/access-rules.ts
index 0eb03fcc28..813863dc1a 100644
--- a/src/resources/firewall/access-rules.ts
+++ b/src/resources/firewall/access-rules.ts
@@ -727,7 +727,7 @@ export interface AccessRuleListParams extends V4PagePaginationArrayParams {
zone_id?: string;
/**
- * Query param:
+ * Query param
*/
configuration?: AccessRuleListParams.Configuration;
diff --git a/src/resources/firewall/rules.ts b/src/resources/firewall/rules.ts
index c79774ee3b..2d2717347c 100644
--- a/src/resources/firewall/rules.ts
+++ b/src/resources/firewall/rules.ts
@@ -237,7 +237,7 @@ export interface RuleCreateParams {
action: RuleCreateParams.Action;
/**
- * Body param:
+ * Body param
*/
filter: FiltersAPI.FirewallFilterParam;
}
@@ -310,7 +310,7 @@ export interface RuleUpdateParams {
action: RuleUpdateParams.Action;
/**
- * Body param:
+ * Body param
*/
filter: FiltersAPI.FirewallFilterParam;
}
@@ -418,7 +418,7 @@ export interface RuleBulkEditParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
@@ -430,7 +430,7 @@ export interface RuleBulkUpdateParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
diff --git a/src/resources/firewall/ua-rules.ts b/src/resources/firewall/ua-rules.ts
index f01d578705..b9ab01ae46 100644
--- a/src/resources/firewall/ua-rules.ts
+++ b/src/resources/firewall/ua-rules.ts
@@ -370,7 +370,7 @@ export interface UARuleCreateParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
configuration: UARuleCreateParams.Configuration;
diff --git a/src/resources/fraud.ts b/src/resources/fraud.ts
new file mode 100644
index 0000000000..02349a2919
--- /dev/null
+++ b/src/resources/fraud.ts
@@ -0,0 +1,107 @@
+// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+import { APIResource } from '../resource';
+import * as Core from '../core';
+
+export class Fraud extends APIResource {
+ /**
+ * Update Fraud Detection settings for a zone.
+ *
+ * Notes on `username_expressions` behavior:
+ *
+ * - If omitted or set to null, expressions are not modified.
+ * - If provided as an empty array `[]`, all expressions will be cleared.
+ *
+ * @example
+ * ```ts
+ * const fraudSettings = await client.fraud.update({
+ * zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ * username_expressions: [],
+ * });
+ * ```
+ */
+ update(params: FraudUpdateParams, options?: Core.RequestOptions): Core.APIPromise {
+ const { zone_id, ...body } = params;
+ return (
+ this._client.put(`/zones/${zone_id}/fraud_detection/settings`, {
+ body,
+ ...options,
+ }) as Core.APIPromise<{ result: FraudSettings }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Retrieve Fraud Detection settings for a zone.
+ *
+ * @example
+ * ```ts
+ * const fraudSettings = await client.fraud.get({
+ * zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ * });
+ * ```
+ */
+ get(params: FraudGetParams, options?: Core.RequestOptions): Core.APIPromise {
+ const { zone_id } = params;
+ return (
+ this._client.get(`/zones/${zone_id}/fraud_detection/settings`, options) as Core.APIPromise<{
+ result: FraudSettings;
+ }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+}
+
+export interface FraudSettings {
+ /**
+ * Whether Fraud User Profiles is enabled for the zone.
+ */
+ user_profiles?: 'enabled' | 'disabled';
+
+ /**
+ * List of expressions to detect usernames in write HTTP requests.
+ *
+ * - Maximum of 10 expressions.
+ * - Omit or set to null to leave unchanged on update.
+ * - Provide an empty array `[]` to clear all expressions on update.
+ * - Invalid expressions will result in a 10400 Bad Request with details in the
+ * `messages` array.
+ */
+ username_expressions?: Array;
+}
+
+export interface FraudUpdateParams {
+ /**
+ * Path param: Identifier.
+ */
+ zone_id: string;
+
+ /**
+ * Body param: Whether Fraud User Profiles is enabled for the zone.
+ */
+ user_profiles?: 'enabled' | 'disabled';
+
+ /**
+ * Body param: List of expressions to detect usernames in write HTTP requests.
+ *
+ * - Maximum of 10 expressions.
+ * - Omit or set to null to leave unchanged on update.
+ * - Provide an empty array `[]` to clear all expressions on update.
+ * - Invalid expressions will result in a 10400 Bad Request with details in the
+ * `messages` array.
+ */
+ username_expressions?: Array;
+}
+
+export interface FraudGetParams {
+ /**
+ * Identifier.
+ */
+ zone_id: string;
+}
+
+export declare namespace Fraud {
+ export {
+ type FraudSettings as FraudSettings,
+ type FraudUpdateParams as FraudUpdateParams,
+ type FraudGetParams as FraudGetParams,
+ };
+}
diff --git a/src/resources/hyperdrive/configs.ts b/src/resources/hyperdrive/configs.ts
index 950652bb59..b35e40f538 100644
--- a/src/resources/hyperdrive/configs.ts
+++ b/src/resources/hyperdrive/configs.ts
@@ -191,21 +191,21 @@ export interface ConfigCreateParams {
name: string;
/**
- * Body param:
+ * Body param
*/
origin:
| ConfigCreateParams.PublicDatabase
| ConfigCreateParams.AccessProtectedDatabaseBehindCloudflareTunnel;
/**
- * Body param:
+ * Body param
*/
caching?:
| ConfigCreateParams.HyperdriveHyperdriveCachingCommon
| ConfigCreateParams.HyperdriveHyperdriveCachingEnabled;
/**
- * Body param:
+ * Body param
*/
mtls?: ConfigCreateParams.MTLS;
@@ -348,21 +348,21 @@ export interface ConfigUpdateParams {
name: string;
/**
- * Body param:
+ * Body param
*/
origin:
| ConfigUpdateParams.PublicDatabase
| ConfigUpdateParams.AccessProtectedDatabaseBehindCloudflareTunnel;
/**
- * Body param:
+ * Body param
*/
caching?:
| ConfigUpdateParams.HyperdriveHyperdriveCachingCommon
| ConfigUpdateParams.HyperdriveHyperdriveCachingEnabled;
/**
- * Body param:
+ * Body param
*/
mtls?: ConfigUpdateParams.MTLS;
@@ -513,14 +513,14 @@ export interface ConfigEditParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
caching?:
| ConfigEditParams.HyperdriveHyperdriveCachingCommon
| ConfigEditParams.HyperdriveHyperdriveCachingEnabled;
/**
- * Body param:
+ * Body param
*/
mtls?: ConfigEditParams.MTLS;
@@ -531,7 +531,7 @@ export interface ConfigEditParams {
name?: string;
/**
- * Body param:
+ * Body param
*/
origin?:
| ConfigEditParams.HyperdriveHyperdriveDatabase
diff --git a/src/resources/iam/user-groups/members.ts b/src/resources/iam/user-groups/members.ts
index d234c6099d..f2ab10977b 100644
--- a/src/resources/iam/user-groups/members.ts
+++ b/src/resources/iam/user-groups/members.ts
@@ -209,7 +209,7 @@ export interface MemberCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array;
}
diff --git a/src/resources/images/v1/variants.ts b/src/resources/images/v1/variants.ts
index 4af2f39fd9..9deae4d224 100644
--- a/src/resources/images/v1/variants.ts
+++ b/src/resources/images/v1/variants.ts
@@ -345,7 +345,7 @@ export interface VariantCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
id: string;
diff --git a/src/resources/images/v2/v2.ts b/src/resources/images/v2/v2.ts
index 63d32823e7..6d570434b0 100644
--- a/src/resources/images/v2/v2.ts
+++ b/src/resources/images/v2/v2.ts
@@ -10,9 +10,45 @@ export class V2 extends APIResource {
directUploads: DirectUploadsAPI.DirectUploads = new DirectUploadsAPI.DirectUploads(this._client);
/**
- * List up to 10000 images with one request. Use the optional parameters below to
- * get a specific range of images. Endpoint returns continuation_token if more
- * images are present.
+ * List up to 10000 images with up to 1000 results per page. Use the optional
+ * parameters below to get a specific range of images. Pagination is supported via
+ * continuation_token.
+ *
+ * **Metadata Filtering (Optional):**
+ *
+ * You can optionally filter images by custom metadata fields using the
+ * `meta.[]=` syntax.
+ *
+ * **Supported Operators:**
+ *
+ * - `eq` / `eq:string` / `eq:number` / `eq:boolean` - Exact match
+ * - `in` / `in:string` / `in:number` - Match any value in list (pipe-separated)
+ *
+ * **Metadata Filter Constraints:**
+ *
+ * - Maximum 5 metadata filters per request
+ * - Maximum 5 levels of nesting (e.g., `meta.first.second.third.fourth.fifth`)
+ * - Maximum 10 elements for list operators (`in`)
+ * - Supports string, number, and boolean value types
+ *
+ * **Examples:**
+ *
+ * ```
+ * # List all images
+ * /v2/images
+ *
+ * # Filter by metadata
+ * /v2/images?meta.status[eq]=active
+ *
+ * # Filter by nested metadata
+ * /v2/images?meta.region.name[eq]=eu-west
+ *
+ * # Combine metadata filters with creator
+ * /v2/images?meta.status[eq]=active&creator=user123
+ *
+ * # Multiple metadata filters (AND logic)
+ * /v2/images?meta.status[eq]=active&meta.priority[eq:number]=5
+ * ```
*
* @example
* ```ts
@@ -48,8 +84,8 @@ export interface V2ListParams {
account_id: string;
/**
- * Query param: Continuation token for a next page. List images V2 returns
- * continuation_token
+ * Query param: Continuation token to fetch next page. Passed as a query param when
+ * requesting List V2 api endpoint.
*/
continuation_token?: string | null;
@@ -60,16 +96,42 @@ export interface V2ListParams {
creator?: string | null;
/**
- * Query param: Number of items per page.
+ * Query param
+ */
+ meta?: V2ListParams.Meta;
+
+ /**
+ * Query param: Number of items per page
*/
per_page?: number;
/**
- * Query param: Sorting order by upload time.
+ * Query param: Sorting order by upload time
*/
sort_order?: 'asc' | 'desc';
}
+export namespace V2ListParams {
+ export interface Meta {
+ /**
+ * Optional metadata filter(s). Multiple filters can be combined with AND logic.
+ *
+ * **Operators:**
+ *
+ * - `eq`, `eq:string`, `eq:number`, `eq:boolean` - Exact match
+ * - `in`, `in:string`, `in:number` - Match any value in pipe-separated list
+ *
+ * **Examples:**
+ *
+ * - `meta.status[eq]=active`
+ * - `meta.priority[eq:number]=5`
+ * - `meta.enabled[eq:boolean]=true`
+ * - `meta.region[in]=us-east|us-west|eu-west`
+ */
+ '[]'?: string;
+ }
+}
+
V2.DirectUploads = DirectUploads;
export declare namespace V2 {
diff --git a/src/resources/index.ts b/src/resources/index.ts
index ef78a3abc8..52f44444c1 100644
--- a/src/resources/index.ts
+++ b/src/resources/index.ts
@@ -39,6 +39,7 @@ export { EmailRouting } from './email-routing/email-routing';
export { EmailSecurity } from './email-security/email-security';
export { Filters } from './filters';
export { Firewall } from './firewall/firewall';
+export { Fraud } from './fraud';
export { Healthchecks } from './healthchecks/healthchecks';
export { Hostnames } from './hostnames/hostnames';
export { HyperdriveResource } from './hyperdrive/hyperdrive';
diff --git a/src/resources/intel/attack-surface-report/issue-types.ts b/src/resources/intel/attack-surface-report/issue-types.ts
index 71e10e5c18..c7c14d749b 100644
--- a/src/resources/intel/attack-surface-report/issue-types.ts
+++ b/src/resources/intel/attack-surface-report/issue-types.ts
@@ -6,7 +6,7 @@ import { SinglePage } from '../../../pagination';
export class IssueTypes extends APIResource {
/**
- * Get Security Center Issues Types
+ * Retrieves Security Center Issues Types
*
* @example
* ```ts
diff --git a/src/resources/intel/attack-surface-report/issues.ts b/src/resources/intel/attack-surface-report/issues.ts
index a10956bec3..a80b5432be 100644
--- a/src/resources/intel/attack-surface-report/issues.ts
+++ b/src/resources/intel/attack-surface-report/issues.ts
@@ -7,7 +7,7 @@ import { V4PagePagination, type V4PagePaginationParams } from '../../../paginati
export class Issues extends APIResource {
/**
- * Get Security Center Issues
+ * Retrieves Security Center Issues
*
* @deprecated
*/
@@ -24,7 +24,7 @@ export class Issues extends APIResource {
}
/**
- * Get Security Center Issue Counts by Class
+ * Retrieves Security Center Issue Counts by Class
*
* @deprecated
*/
@@ -39,7 +39,7 @@ export class Issues extends APIResource {
}
/**
- * Archive Security Center Insight
+ * Archives Security Center Insight
*
* @deprecated
*/
@@ -56,7 +56,7 @@ export class Issues extends APIResource {
}
/**
- * Get Security Center Issue Counts by Severity
+ * Retrieves Security Center Issue Counts by Severity
*
* @deprecated
*/
@@ -74,7 +74,7 @@ export class Issues extends APIResource {
}
/**
- * Get Security Center Issue Counts by Type
+ * Retrieves Security Center Issue Counts by Type
*
* @deprecated
*/
@@ -113,19 +113,19 @@ export type SeverityQueryParamParam = 'low' | 'moderate' | 'critical';
export interface IssueListResponse {
/**
- * Total number of results
+ * Indicates the total number of results.
*/
count?: number;
issues?: Array;
/**
- * Current page within paginated list of results
+ * Specifies the current page within paginated list of results.
*/
page?: number;
/**
- * Number of results per page of results
+ * Sets the number of results per page of results.
*/
per_page?: number;
}
@@ -158,7 +158,7 @@ export namespace IssueListResponse {
export namespace Issue {
export interface Payload {
/**
- * Method used to detect insight
+ * Describes the method used to detect insight.
*/
detection_method?: string;
@@ -249,57 +249,57 @@ export interface IssueListParams extends V4PagePaginationParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
dismissed?: boolean;
/**
- * Query param:
+ * Query param
*/
issue_class?: Array;
/**
- * Query param:
+ * Query param
*/
'issue_class~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
issue_type?: Array;
/**
- * Query param:
+ * Query param
*/
'issue_type~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
product?: Array;
/**
- * Query param:
+ * Query param
*/
'product~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
severity?: Array;
/**
- * Query param:
+ * Query param
*/
'severity~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
subject?: Array;
/**
- * Query param:
+ * Query param
*/
'subject~neq'?: Array;
}
@@ -311,57 +311,57 @@ export interface IssueClassParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
dismissed?: boolean;
/**
- * Query param:
+ * Query param
*/
issue_class?: Array;
/**
- * Query param:
+ * Query param
*/
'issue_class~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
issue_type?: Array;
/**
- * Query param:
+ * Query param
*/
'issue_type~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
product?: Array;
/**
- * Query param:
+ * Query param
*/
'product~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
severity?: Array;
/**
- * Query param:
+ * Query param
*/
'severity~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
subject?: Array;
/**
- * Query param:
+ * Query param
*/
'subject~neq'?: Array;
}
@@ -373,7 +373,7 @@ export interface IssueDismissParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
dismiss?: boolean;
}
@@ -385,57 +385,57 @@ export interface IssueSeverityParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
dismissed?: boolean;
/**
- * Query param:
+ * Query param
*/
issue_class?: Array;
/**
- * Query param:
+ * Query param
*/
'issue_class~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
issue_type?: Array;
/**
- * Query param:
+ * Query param
*/
'issue_type~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
product?: Array;
/**
- * Query param:
+ * Query param
*/
'product~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
severity?: Array;
/**
- * Query param:
+ * Query param
*/
'severity~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
subject?: Array;
/**
- * Query param:
+ * Query param
*/
'subject~neq'?: Array;
}
@@ -447,57 +447,57 @@ export interface IssueTypeParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
dismissed?: boolean;
/**
- * Query param:
+ * Query param
*/
issue_class?: Array;
/**
- * Query param:
+ * Query param
*/
'issue_class~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
issue_type?: Array;
/**
- * Query param:
+ * Query param
*/
'issue_type~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
product?: Array;
/**
- * Query param:
+ * Query param
*/
'product~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
severity?: Array;
/**
- * Query param:
+ * Query param
*/
'severity~neq'?: Array;
/**
- * Query param:
+ * Query param
*/
subject?: Array;
/**
- * Query param:
+ * Query param
*/
'subject~neq'?: Array;
}
diff --git a/src/resources/intel/dns.ts b/src/resources/intel/dns.ts
index 19065cb49b..713e3b1c24 100644
--- a/src/resources/intel/dns.ts
+++ b/src/resources/intel/dns.ts
@@ -77,12 +77,12 @@ export interface DNSListParams extends V4PagePaginationParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
ipv4?: string;
/**
- * Query param:
+ * Query param
*/
start_end_params?: DNSListParams.StartEndParams;
}
diff --git a/src/resources/intel/domain-history.ts b/src/resources/intel/domain-history.ts
index 711f7a1ab2..814a7a4bf7 100644
--- a/src/resources/intel/domain-history.ts
+++ b/src/resources/intel/domain-history.ts
@@ -63,7 +63,7 @@ export interface DomainHistoryGetParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
domain?: string;
}
diff --git a/src/resources/intel/domains/domains.ts b/src/resources/intel/domains/domains.ts
index 38d41ecd00..d7cb3acabf 100644
--- a/src/resources/intel/domains/domains.ts
+++ b/src/resources/intel/domains/domains.ts
@@ -150,7 +150,7 @@ export interface DomainGetParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
domain?: string;
}
diff --git a/src/resources/intel/index.ts b/src/resources/intel/index.ts
index 9364800222..362f19c93a 100644
--- a/src/resources/intel/index.ts
+++ b/src/resources/intel/index.ts
@@ -10,7 +10,7 @@ export {
type DomainHistoryGetParams,
} from './domain-history';
export { Domains, type Domain, type DomainGetParams } from './domains/index';
-export { IPListsSinglePage, IPLists, type IPList, type IPListGetParams } from './ip-lists';
+export { IPLists, type IPList } from './ip-lists';
export { IPs, type IP, type IPGetResponse, type IPGetParams } from './ips';
export {
IndicatorFeedListResponsesSinglePage,
diff --git a/src/resources/intel/intel.ts b/src/resources/intel/intel.ts
index 37f224c7f0..6f48a03cd6 100644
--- a/src/resources/intel/intel.ts
+++ b/src/resources/intel/intel.ts
@@ -11,7 +11,7 @@ import {
DomainHistoryResource,
} from './domain-history';
import * as IPListsAPI from './ip-lists';
-import { IPList, IPListGetParams, IPLists, IPListsSinglePage } from './ip-lists';
+import { IPList, IPLists } from './ip-lists';
import * as IPsAPI from './ips';
import { IP, IPGetParams, IPGetResponse, IPs } from './ips';
import * as MiscategorizationsAPI from './miscategorizations';
@@ -71,7 +71,6 @@ Intel.Domains = Domains;
Intel.DomainHistoryResource = DomainHistoryResource;
Intel.IPs = IPs;
Intel.IPLists = IPLists;
-Intel.IPListsSinglePage = IPListsSinglePage;
Intel.Miscategorizations = Miscategorizations;
Intel.IndicatorFeeds = IndicatorFeeds;
Intel.IndicatorFeedListResponsesSinglePage = IndicatorFeedListResponsesSinglePage;
@@ -95,12 +94,7 @@ export declare namespace Intel {
export { IPs as IPs, type IP as IP, type IPGetResponse as IPGetResponse, type IPGetParams as IPGetParams };
- export {
- IPLists as IPLists,
- type IPList as IPList,
- IPListsSinglePage as IPListsSinglePage,
- type IPListGetParams as IPListGetParams,
- };
+ export { IPLists as IPLists, type IPList as IPList };
export {
Miscategorizations as Miscategorizations,
diff --git a/src/resources/intel/ip-lists.ts b/src/resources/intel/ip-lists.ts
index ac2db32412..fe6bbe423c 100644
--- a/src/resources/intel/ip-lists.ts
+++ b/src/resources/intel/ip-lists.ts
@@ -1,30 +1,8 @@
// 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 IPLists extends APIResource {
- /**
- * Get IP Lists.
- *
- * @example
- * ```ts
- * // Automatically fetches more pages as needed.
- * for await (const ipList of client.intel.ipLists.get({
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * })) {
- * // ...
- * }
- * ```
- */
- get(params: IPListGetParams, options?: Core.RequestOptions): Core.PagePromise {
- const { account_id } = params;
- return this._client.getAPIList(`/accounts/${account_id}/intel/ip-list`, IPListsSinglePage, options);
- }
-}
-
-export class IPListsSinglePage extends SinglePage {}
+export class IPLists extends APIResource {}
export interface IPList {
id?: number;
@@ -34,19 +12,6 @@ export interface IPList {
name?: string;
}
-export interface IPListGetParams {
- /**
- * Identifier.
- */
- account_id: string;
-}
-
-IPLists.IPListsSinglePage = IPListsSinglePage;
-
export declare namespace IPLists {
- export {
- type IPList as IPList,
- IPListsSinglePage as IPListsSinglePage,
- type IPListGetParams as IPListGetParams,
- };
+ export { type IPList as IPList };
}
diff --git a/src/resources/intel/ips.ts b/src/resources/intel/ips.ts
index 618929af34..09873d83a9 100644
--- a/src/resources/intel/ips.ts
+++ b/src/resources/intel/ips.ts
@@ -76,12 +76,12 @@ export interface IPGetParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
ipv4?: string;
/**
- * Query param:
+ * Query param
*/
ipv6?: string;
}
diff --git a/src/resources/intel/miscategorizations.ts b/src/resources/intel/miscategorizations.ts
index de9c9205f1..a5a11f290a 100644
--- a/src/resources/intel/miscategorizations.ts
+++ b/src/resources/intel/miscategorizations.ts
@@ -86,7 +86,7 @@ export interface MiscategorizationCreateParams {
content_removes?: Array;
/**
- * Body param:
+ * Body param
*/
indicator_type?: 'domain' | 'ipv4' | 'ipv6' | 'url';
diff --git a/src/resources/intel/whois.ts b/src/resources/intel/whois.ts
index cd297ae775..811ad8b9f4 100644
--- a/src/resources/intel/whois.ts
+++ b/src/resources/intel/whois.ts
@@ -227,7 +227,7 @@ export interface WhoisGetParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
domain?: string;
}
diff --git a/src/resources/kv/namespaces/keys.ts b/src/resources/kv/namespaces/keys.ts
index 138942ad57..4d5f847bfe 100644
--- a/src/resources/kv/namespaces/keys.ts
+++ b/src/resources/kv/namespaces/keys.ts
@@ -214,7 +214,7 @@ export interface KeyBulkDeleteParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array;
}
@@ -248,7 +248,7 @@ export interface KeyBulkUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array;
}
diff --git a/src/resources/kv/namespaces/namespaces.ts b/src/resources/kv/namespaces/namespaces.ts
index df179e53bb..849a0151f2 100644
--- a/src/resources/kv/namespaces/namespaces.ts
+++ b/src/resources/kv/namespaces/namespaces.ts
@@ -393,7 +393,7 @@ export interface NamespaceBulkDeleteParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array;
}
@@ -427,7 +427,7 @@ export interface NamespaceBulkUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array;
}
diff --git a/src/resources/kv/namespaces/values.ts b/src/resources/kv/namespaces/values.ts
index a8de1f25b5..b1420f04cd 100644
--- a/src/resources/kv/namespaces/values.ts
+++ b/src/resources/kv/namespaces/values.ts
@@ -125,7 +125,7 @@ export interface ValueUpdateParams {
/**
* Body param: A byte sequence to be stored, up to 25 MiB in length.
*/
- value: string;
+ value: string | Core.Uploadable;
/**
* Query param: Expires the key at a certain time, measured in number of seconds
diff --git a/src/resources/load-balancers/load-balancers.ts b/src/resources/load-balancers/load-balancers.ts
index eb4687adca..beff7db4a4 100644
--- a/src/resources/load-balancers/load-balancers.ts
+++ b/src/resources/load-balancers/load-balancers.ts
@@ -1605,7 +1605,7 @@ export interface LoadBalancerDeleteResponse {
export interface LoadBalancerCreateParams {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
@@ -1779,7 +1779,7 @@ export interface LoadBalancerCreateParams {
export interface LoadBalancerUpdateParams {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
@@ -1966,7 +1966,7 @@ export interface LoadBalancerDeleteParams {
export interface LoadBalancerEditParams {
/**
- * Path param:
+ * Path param
*/
zone_id: string;
diff --git a/src/resources/magic-cloud-networking/catalog-syncs/catalog-syncs.ts b/src/resources/magic-cloud-networking/catalog-syncs/catalog-syncs.ts
index 84012e1386..bc05cc2235 100644
--- a/src/resources/magic-cloud-networking/catalog-syncs/catalog-syncs.ts
+++ b/src/resources/magic-cloud-networking/catalog-syncs/catalog-syncs.ts
@@ -1220,64 +1220,64 @@ export type CatalogSyncRefreshResponse = string;
export interface CatalogSyncCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
destination_type: 'NONE' | 'ZERO_TRUST_LIST';
/**
- * Body param:
+ * Body param
*/
name: string;
/**
- * Body param:
+ * Body param
*/
update_mode: 'AUTO' | 'MANUAL';
/**
- * Body param:
+ * Body param
*/
description?: string;
/**
- * Body param:
+ * Body param
*/
policy?: string;
/**
- * Header param:
+ * Header param
*/
forwarded?: string;
}
export interface CatalogSyncUpdateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
description?: string;
/**
- * Body param:
+ * Body param
*/
name?: string;
/**
- * Body param:
+ * Body param
*/
policy?: string;
/**
- * Body param:
+ * Body param
*/
update_mode?: 'AUTO' | 'MANUAL';
}
@@ -1288,39 +1288,39 @@ export interface CatalogSyncListParams {
export interface CatalogSyncDeleteParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
delete_destination?: boolean;
}
export interface CatalogSyncEditParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
description?: string;
/**
- * Body param:
+ * Body param
*/
name?: string;
/**
- * Body param:
+ * Body param
*/
policy?: string;
/**
- * Body param:
+ * Body param
*/
update_mode?: 'AUTO' | 'MANUAL';
}
diff --git a/src/resources/magic-cloud-networking/catalog-syncs/prebuilt-policies.ts b/src/resources/magic-cloud-networking/catalog-syncs/prebuilt-policies.ts
index e080008ae5..af071022cf 100644
--- a/src/resources/magic-cloud-networking/catalog-syncs/prebuilt-policies.ts
+++ b/src/resources/magic-cloud-networking/catalog-syncs/prebuilt-policies.ts
@@ -35,7 +35,7 @@ export interface PrebuiltPolicyListResponse {
export interface PrebuiltPolicyListParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
diff --git a/src/resources/magic-cloud-networking/cloud-integrations.ts b/src/resources/magic-cloud-networking/cloud-integrations.ts
index 9b74ccf750..32c1d73d7e 100644
--- a/src/resources/magic-cloud-networking/cloud-integrations.ts
+++ b/src/resources/magic-cloud-networking/cloud-integrations.ts
@@ -1416,86 +1416,86 @@ export namespace CloudIntegrationInitialSetupResponse {
export interface CloudIntegrationCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
cloud_type: 'AWS' | 'AZURE' | 'GOOGLE' | 'CLOUDFLARE';
/**
- * Body param:
+ * Body param
*/
friendly_name: string;
/**
- * Body param:
+ * Body param
*/
description?: string;
/**
- * Header param:
+ * Header param
*/
forwarded?: string;
}
export interface CloudIntegrationUpdateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
aws_arn?: string;
/**
- * Body param:
+ * Body param
*/
azure_subscription_id?: string;
/**
- * Body param:
+ * Body param
*/
azure_tenant_id?: string;
/**
- * Body param:
+ * Body param
*/
description?: string;
/**
- * Body param:
+ * Body param
*/
friendly_name?: string;
/**
- * Body param:
+ * Body param
*/
gcp_project_id?: string;
/**
- * Body param:
+ * Body param
*/
gcp_service_account_email?: string;
}
export interface CloudIntegrationListParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
cloudflare?: boolean;
/**
- * Query param:
+ * Query param
*/
desc?: boolean;
@@ -1505,7 +1505,7 @@ export interface CloudIntegrationListParams {
order_by?: string;
/**
- * Query param:
+ * Query param
*/
status?: boolean;
}
@@ -1516,12 +1516,12 @@ export interface CloudIntegrationDeleteParams {
export interface CloudIntegrationDiscoverParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
v2?: boolean;
}
@@ -1532,54 +1532,54 @@ export interface CloudIntegrationDiscoverAllParams {
export interface CloudIntegrationEditParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
aws_arn?: string;
/**
- * Body param:
+ * Body param
*/
azure_subscription_id?: string;
/**
- * Body param:
+ * Body param
*/
azure_tenant_id?: string;
/**
- * Body param:
+ * Body param
*/
description?: string;
/**
- * Body param:
+ * Body param
*/
friendly_name?: string;
/**
- * Body param:
+ * Body param
*/
gcp_project_id?: string;
/**
- * Body param:
+ * Body param
*/
gcp_service_account_email?: string;
}
export interface CloudIntegrationGetParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
status?: boolean;
}
diff --git a/src/resources/magic-cloud-networking/on-ramps/address-spaces.ts b/src/resources/magic-cloud-networking/on-ramps/address-spaces.ts
index 9a7d5b4278..b49fa36a02 100644
--- a/src/resources/magic-cloud-networking/on-ramps/address-spaces.ts
+++ b/src/resources/magic-cloud-networking/on-ramps/address-spaces.ts
@@ -67,12 +67,12 @@ export interface AddressSpaceEditResponse {
export interface AddressSpaceUpdateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
prefixes: Array;
}
@@ -83,12 +83,12 @@ export interface AddressSpaceListParams {
export interface AddressSpaceEditParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
prefixes: Array;
}
diff --git a/src/resources/magic-cloud-networking/on-ramps/on-ramps.ts b/src/resources/magic-cloud-networking/on-ramps/on-ramps.ts
index a6753d95fb..96d4b90ed9 100644
--- a/src/resources/magic-cloud-networking/on-ramps/on-ramps.ts
+++ b/src/resources/magic-cloud-networking/on-ramps/on-ramps.ts
@@ -8777,12 +8777,12 @@ export namespace OnRampPlanResponse {
export interface OnRampCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
cloud_type: 'AWS' | 'AZURE' | 'GOOGLE';
@@ -8793,37 +8793,37 @@ export interface OnRampCreateParams {
dynamic_routing: boolean;
/**
- * Body param:
+ * Body param
*/
install_routes_in_cloud: boolean;
/**
- * Body param:
+ * Body param
*/
install_routes_in_magic_wan: boolean;
/**
- * Body param:
+ * Body param
*/
name: string;
/**
- * Body param:
+ * Body param
*/
type: 'OnrampTypeSingle' | 'OnrampTypeHub';
/**
- * Body param:
+ * Body param
*/
adopted_hub_id?: string;
/**
- * Body param:
+ * Body param
*/
attached_hubs?: Array;
/**
- * Body param:
+ * Body param
*/
attached_vpcs?: Array;
@@ -8834,101 +8834,101 @@ export interface OnRampCreateParams {
cloud_asn?: number;
/**
- * Body param:
+ * Body param
*/
description?: string;
/**
- * Body param:
+ * Body param
*/
hub_provider_id?: string;
/**
- * Body param:
+ * Body param
*/
manage_hub_to_hub_attachments?: boolean;
/**
- * Body param:
+ * Body param
*/
manage_vpc_to_hub_attachments?: boolean;
/**
- * Body param:
+ * Body param
*/
region?: string;
/**
- * Body param:
+ * Body param
*/
vpc?: string;
/**
- * Header param:
+ * Header param
*/
forwarded?: string;
}
export interface OnRampUpdateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
attached_hubs?: Array;
/**
- * Body param:
+ * Body param
*/
attached_vpcs?: Array;
/**
- * Body param:
+ * Body param
*/
description?: string;
/**
- * Body param:
+ * Body param
*/
install_routes_in_cloud?: boolean;
/**
- * Body param:
+ * Body param
*/
install_routes_in_magic_wan?: boolean;
/**
- * Body param:
+ * Body param
*/
manage_hub_to_hub_attachments?: boolean;
/**
- * Body param:
+ * Body param
*/
manage_vpc_to_hub_attachments?: boolean;
/**
- * Body param:
+ * Body param
*/
name?: string;
/**
- * Body param:
+ * Body param
*/
vpc?: string;
}
export interface OnRampListParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
desc?: boolean;
@@ -8938,29 +8938,29 @@ export interface OnRampListParams {
order_by?: string;
/**
- * Query param:
+ * Query param
*/
status?: boolean;
/**
- * Query param:
+ * Query param
*/
vpcs?: boolean;
}
export interface OnRampDeleteParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
destroy?: boolean;
/**
- * Query param:
+ * Query param
*/
force?: boolean;
}
@@ -8971,52 +8971,52 @@ export interface OnRampApplyParams {
export interface OnRampEditParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
attached_hubs?: Array;
/**
- * Body param:
+ * Body param
*/
attached_vpcs?: Array;
/**
- * Body param:
+ * Body param
*/
description?: string;
/**
- * Body param:
+ * Body param
*/
install_routes_in_cloud?: boolean;
/**
- * Body param:
+ * Body param
*/
install_routes_in_magic_wan?: boolean;
/**
- * Body param:
+ * Body param
*/
manage_hub_to_hub_attachments?: boolean;
/**
- * Body param:
+ * Body param
*/
manage_vpc_to_hub_attachments?: boolean;
/**
- * Body param:
+ * Body param
*/
name?: string;
/**
- * Body param:
+ * Body param
*/
vpc?: string;
}
@@ -9027,27 +9027,27 @@ export interface OnRampExportParams {
export interface OnRampGetParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
planned_resources?: boolean;
/**
- * Query param:
+ * Query param
*/
post_apply_resources?: boolean;
/**
- * Query param:
+ * Query param
*/
status?: boolean;
/**
- * Query param:
+ * Query param
*/
vpcs?: boolean;
}
diff --git a/src/resources/magic-cloud-networking/resources.ts b/src/resources/magic-cloud-networking/resources.ts
index 11446e8bbd..a7288237ae 100644
--- a/src/resources/magic-cloud-networking/resources.ts
+++ b/src/resources/magic-cloud-networking/resources.ts
@@ -1228,22 +1228,22 @@ export type ResourcePolicyPreviewResponse = string;
export interface ResourceListParams extends V4PagePaginationArrayParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
cloudflare?: boolean;
/**
- * Query param:
+ * Query param
*/
desc?: boolean;
/**
- * Query param:
+ * Query param
*/
managed?: boolean;
@@ -1253,27 +1253,27 @@ export interface ResourceListParams extends V4PagePaginationArrayParams {
order_by?: string;
/**
- * Query param:
+ * Query param
*/
provider_id?: string;
/**
- * Query param:
+ * Query param
*/
region?: string;
/**
- * Query param:
+ * Query param
*/
resource_group?: string;
/**
- * Query param:
+ * Query param
*/
resource_id?: Array;
/**
- * Query param:
+ * Query param
*/
resource_type?: Array<
| 'aws_customer_gateway'
@@ -1336,24 +1336,24 @@ export interface ResourceListParams extends V4PagePaginationArrayParams {
>;
/**
- * Query param:
+ * Query param
*/
search?: Array;
/**
- * Query param:
+ * Query param
*/
v2?: boolean;
}
export interface ResourceExportParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
desc?: boolean;
@@ -1363,27 +1363,27 @@ export interface ResourceExportParams {
order_by?: string;
/**
- * Query param:
+ * Query param
*/
provider_id?: string;
/**
- * Query param:
+ * Query param
*/
region?: string;
/**
- * Query param:
+ * Query param
*/
resource_group?: string;
/**
- * Query param:
+ * Query param
*/
resource_id?: Array;
/**
- * Query param:
+ * Query param
*/
resource_type?: Array<
| 'aws_customer_gateway'
@@ -1446,36 +1446,36 @@ export interface ResourceExportParams {
>;
/**
- * Query param:
+ * Query param
*/
search?: Array;
/**
- * Query param:
+ * Query param
*/
v2?: boolean;
}
export interface ResourceGetParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
v2?: boolean;
}
export interface ResourcePolicyPreviewParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
policy: string;
}
diff --git a/src/resources/magic-network-monitoring/configs/configs.ts b/src/resources/magic-network-monitoring/configs/configs.ts
index 9b993968e0..c6767bde9a 100644
--- a/src/resources/magic-network-monitoring/configs/configs.ts
+++ b/src/resources/magic-network-monitoring/configs/configs.ts
@@ -156,7 +156,7 @@ export namespace Configuration {
export interface ConfigCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -172,12 +172,12 @@ export interface ConfigCreateParams {
name: string;
/**
- * Body param:
+ * Body param
*/
router_ips?: Array;
/**
- * Body param:
+ * Body param
*/
warp_devices?: Array;
}
@@ -207,7 +207,7 @@ export namespace ConfigCreateParams {
export interface ConfigUpdateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -223,12 +223,12 @@ export interface ConfigUpdateParams {
name: string;
/**
- * Body param:
+ * Body param
*/
router_ips?: Array;
/**
- * Body param:
+ * Body param
*/
warp_devices?: Array;
}
@@ -262,7 +262,7 @@ export interface ConfigDeleteParams {
export interface ConfigEditParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -278,12 +278,12 @@ export interface ConfigEditParams {
name?: string;
/**
- * Body param:
+ * Body param
*/
router_ips?: Array;
/**
- * Body param:
+ * Body param
*/
warp_devices?: Array;
}
diff --git a/src/resources/magic-network-monitoring/rules/advertisements.ts b/src/resources/magic-network-monitoring/rules/advertisements.ts
index 64aed74e67..86ee8ab95a 100644
--- a/src/resources/magic-network-monitoring/rules/advertisements.ts
+++ b/src/resources/magic-network-monitoring/rules/advertisements.ts
@@ -45,12 +45,12 @@ export interface Advertisement {
export interface AdvertisementEditParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
diff --git a/src/resources/magic-network-monitoring/rules/rules.ts b/src/resources/magic-network-monitoring/rules/rules.ts
index adf6f46887..623c5bc48d 100644
--- a/src/resources/magic-network-monitoring/rules/rules.ts
+++ b/src/resources/magic-network-monitoring/rules/rules.ts
@@ -229,7 +229,7 @@ export interface MagicNetworkMonitoringRule {
export interface RuleCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -269,14 +269,14 @@ export interface RuleCreateParams {
packet_threshold?: number;
/**
- * Body param:
+ * Body param
*/
prefixes?: Array;
}
export interface RuleUpdateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -321,7 +321,7 @@ export interface RuleUpdateParams {
packet_threshold?: number;
/**
- * Body param:
+ * Body param
*/
prefixes?: Array;
}
@@ -336,7 +336,7 @@ export interface RuleDeleteParams {
export interface RuleEditParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
@@ -376,7 +376,7 @@ export interface RuleEditParams {
packet_threshold?: number;
/**
- * Body param:
+ * Body param
*/
prefixes?: Array;
}
diff --git a/src/resources/magic-transit/cf-interconnects.ts b/src/resources/magic-transit/cf-interconnects.ts
index ae644c3ba2..bc13ec168a 100644
--- a/src/resources/magic-transit/cf-interconnects.ts
+++ b/src/resources/magic-transit/cf-interconnects.ts
@@ -500,7 +500,7 @@ export interface CfInterconnectUpdateParams {
gre?: CfInterconnectUpdateParams.GRE;
/**
- * Body param:
+ * Body param
*/
health_check?: MagicTransitAPI.HealthCheckParam;
@@ -565,7 +565,7 @@ export interface CfInterconnectBulkUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
diff --git a/src/resources/magic-transit/connectors/connectors.ts b/src/resources/magic-transit/connectors/connectors.ts
index 368ca729b7..8c4f29cda2 100644
--- a/src/resources/magic-transit/connectors/connectors.ts
+++ b/src/resources/magic-transit/connectors/connectors.ts
@@ -383,27 +383,27 @@ export interface ConnectorCreateParams {
device: ConnectorCreateParams.Device;
/**
- * Body param:
+ * Body param
*/
activated?: boolean;
/**
- * Body param:
+ * Body param
*/
interrupt_window_duration_hours?: number;
/**
- * Body param:
+ * Body param
*/
interrupt_window_hour_of_day?: number;
/**
- * Body param:
+ * Body param
*/
notes?: string;
/**
- * Body param:
+ * Body param
*/
timezone?: string;
}
@@ -431,22 +431,22 @@ export interface ConnectorUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
activated?: boolean;
/**
- * Body param:
+ * Body param
*/
interrupt_window_duration_hours?: number;
/**
- * Body param:
+ * Body param
*/
interrupt_window_hour_of_day?: number;
/**
- * Body param:
+ * Body param
*/
notes?: string;
@@ -456,7 +456,7 @@ export interface ConnectorUpdateParams {
provision_license?: boolean;
/**
- * Body param:
+ * Body param
*/
timezone?: string;
}
@@ -482,22 +482,22 @@ export interface ConnectorEditParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
activated?: boolean;
/**
- * Body param:
+ * Body param
*/
interrupt_window_duration_hours?: number;
/**
- * Body param:
+ * Body param
*/
interrupt_window_hour_of_day?: number;
/**
- * Body param:
+ * Body param
*/
notes?: string;
@@ -507,7 +507,7 @@ export interface ConnectorEditParams {
provision_license?: boolean;
/**
- * Body param:
+ * Body param
*/
timezone?: string;
}
diff --git a/src/resources/magic-transit/connectors/events/events.ts b/src/resources/magic-transit/connectors/events/events.ts
index 6e1b1201dd..7d34c03fd3 100644
--- a/src/resources/magic-transit/connectors/events/events.ts
+++ b/src/resources/magic-transit/connectors/events/events.ts
@@ -260,17 +260,17 @@ export interface EventListParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
from: number;
/**
- * Query param:
+ * Query param
*/
to: number;
/**
- * Query param:
+ * Query param
*/
cursor?: string;
@@ -280,7 +280,7 @@ export interface EventListParams {
k?: string;
/**
- * Query param:
+ * Query param
*/
limit?: number;
}
diff --git a/src/resources/magic-transit/connectors/snapshots/latest.ts b/src/resources/magic-transit/connectors/snapshots/latest.ts
index c51d9f1abe..1223455cf2 100644
--- a/src/resources/magic-transit/connectors/snapshots/latest.ts
+++ b/src/resources/magic-transit/connectors/snapshots/latest.ts
@@ -1301,6 +1301,16 @@ export namespace LatestListResponse {
* MTU as measured between the two ends of the tunnel
*/
probed_mtu?: number;
+
+ /**
+ * Number of recent healthy pings for this tunnel
+ */
+ recent_healthy_pings?: number;
+
+ /**
+ * Number of recent unhealthy pings for this tunnel
+ */
+ recent_unhealthy_pings?: number;
}
}
}
diff --git a/src/resources/magic-transit/connectors/snapshots/snapshots.ts b/src/resources/magic-transit/connectors/snapshots/snapshots.ts
index a7d1e0d815..04a4b53ed5 100644
--- a/src/resources/magic-transit/connectors/snapshots/snapshots.ts
+++ b/src/resources/magic-transit/connectors/snapshots/snapshots.ts
@@ -1352,6 +1352,16 @@ export namespace SnapshotGetResponse {
* MTU as measured between the two ends of the tunnel
*/
probed_mtu?: number;
+
+ /**
+ * Number of recent healthy pings for this tunnel
+ */
+ recent_healthy_pings?: number;
+
+ /**
+ * Number of recent unhealthy pings for this tunnel
+ */
+ recent_unhealthy_pings?: number;
}
}
@@ -1362,22 +1372,22 @@ export interface SnapshotListParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
from: number;
/**
- * Query param:
+ * Query param
*/
to: number;
/**
- * Query param:
+ * Query param
*/
cursor?: string;
/**
- * Query param:
+ * Query param
*/
limit?: number;
}
diff --git a/src/resources/magic-transit/gre-tunnels.ts b/src/resources/magic-transit/gre-tunnels.ts
index 8ce3288b29..d349a947f6 100644
--- a/src/resources/magic-transit/gre-tunnels.ts
+++ b/src/resources/magic-transit/gre-tunnels.ts
@@ -1419,7 +1419,7 @@ export interface GRETunnelCreateParams {
automatic_return_routing?: boolean;
/**
- * Body param:
+ * Body param
*/
bgp?: GRETunnelCreateParams.BGP;
@@ -1429,7 +1429,7 @@ export interface GRETunnelCreateParams {
description?: string;
/**
- * Body param:
+ * Body param
*/
health_check?: GRETunnelCreateParams.HealthCheck;
@@ -1591,7 +1591,7 @@ export interface GRETunnelUpdateParams {
description?: string;
/**
- * Body param:
+ * Body param
*/
health_check?: GRETunnelUpdateParams.HealthCheck;
@@ -1709,7 +1709,7 @@ export interface GRETunnelBulkUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
diff --git a/src/resources/magic-transit/ipsec-tunnels.ts b/src/resources/magic-transit/ipsec-tunnels.ts
index ff23a3a048..77a2287bad 100644
--- a/src/resources/magic-transit/ipsec-tunnels.ts
+++ b/src/resources/magic-transit/ipsec-tunnels.ts
@@ -1612,12 +1612,12 @@ export interface IPSECTunnelCreateParams {
automatic_return_routing?: boolean;
/**
- * Body param:
+ * Body param
*/
bgp?: IPSECTunnelCreateParams.BGP;
/**
- * Body param:
+ * Body param
*/
custom_remote_identities?: IPSECTunnelCreateParams.CustomRemoteIdentities;
@@ -1633,7 +1633,7 @@ export interface IPSECTunnelCreateParams {
description?: string;
/**
- * Body param:
+ * Body param
*/
health_check?: IPSECTunnelCreateParams.HealthCheck;
@@ -1798,12 +1798,12 @@ export interface IPSECTunnelUpdateParams {
automatic_return_routing?: boolean;
/**
- * Body param:
+ * Body param
*/
bgp?: IPSECTunnelUpdateParams.BGP;
/**
- * Body param:
+ * Body param
*/
custom_remote_identities?: IPSECTunnelUpdateParams.CustomRemoteIdentities;
@@ -1819,7 +1819,7 @@ export interface IPSECTunnelUpdateParams {
description?: string;
/**
- * Body param:
+ * Body param
*/
health_check?: IPSECTunnelUpdateParams.HealthCheck;
@@ -1986,7 +1986,7 @@ export interface IPSECTunnelBulkUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
@@ -2017,7 +2017,7 @@ export interface IPSECTunnelPSKGenerateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: unknown;
}
diff --git a/src/resources/magic-transit/routes.ts b/src/resources/magic-transit/routes.ts
index d9f546bca8..1a41861c46 100644
--- a/src/resources/magic-transit/routes.ts
+++ b/src/resources/magic-transit/routes.ts
@@ -677,7 +677,7 @@ export interface RouteBulkUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
routes: Array;
}
diff --git a/src/resources/magic-transit/sites/acls.ts b/src/resources/magic-transit/sites/acls.ts
index 25d32dcf63..8a19f2e5e1 100644
--- a/src/resources/magic-transit/sites/acls.ts
+++ b/src/resources/magic-transit/sites/acls.ts
@@ -301,12 +301,12 @@ export interface ACLCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
lan_1: ACLConfigurationParam;
/**
- * Body param:
+ * Body param
*/
lan_2: ACLConfigurationParam;
@@ -329,7 +329,7 @@ export interface ACLCreateParams {
forward_locally?: boolean;
/**
- * Body param:
+ * Body param
*/
protocols?: Array;
@@ -362,12 +362,12 @@ export interface ACLUpdateParams {
forward_locally?: boolean;
/**
- * Body param:
+ * Body param
*/
lan_1?: ACLConfigurationParam;
/**
- * Body param:
+ * Body param
*/
lan_2?: ACLConfigurationParam;
@@ -377,7 +377,7 @@ export interface ACLUpdateParams {
name?: string;
/**
- * Body param:
+ * Body param
*/
protocols?: Array;
@@ -424,12 +424,12 @@ export interface ACLEditParams {
forward_locally?: boolean;
/**
- * Body param:
+ * Body param
*/
lan_1?: ACLConfigurationParam;
/**
- * Body param:
+ * Body param
*/
lan_2?: ACLConfigurationParam;
@@ -439,7 +439,7 @@ export interface ACLEditParams {
name?: string;
/**
- * Body param:
+ * Body param
*/
protocols?: Array;
diff --git a/src/resources/magic-transit/sites/lans.ts b/src/resources/magic-transit/sites/lans.ts
index e4c7823a1a..49bf5ddd95 100644
--- a/src/resources/magic-transit/sites/lans.ts
+++ b/src/resources/magic-transit/sites/lans.ts
@@ -14,10 +14,7 @@ export class LANs extends APIResource {
* // Automatically fetches more pages as needed.
* for await (const lan of client.magicTransit.sites.lans.create(
* '023e105f4ecef8ad9ca31a8372d0c353',
- * {
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * physport: 1,
- * },
+ * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* )) {
* // ...
* }
@@ -242,6 +239,8 @@ export interface LAN {
*/
id?: string;
+ bond_id?: number;
+
/**
* mark true to use this LAN for HA probing. only works for site with HA turned on.
* only one LAN can be set as the ha_link.
@@ -375,9 +374,9 @@ export interface LANCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
- physport: number;
+ bond_id?: number;
/**
* Body param: mark true to use this LAN for HA probing. only works for site with
@@ -386,17 +385,22 @@ export interface LANCreateParams {
ha_link?: boolean;
/**
- * Body param:
+ * Body param
*/
name?: string;
/**
- * Body param:
+ * Body param
*/
nat?: NatParam;
/**
- * Body param:
+ * Body param
+ */
+ physport?: number;
+
+ /**
+ * Body param
*/
routed_subnets?: Array;
@@ -421,22 +425,27 @@ export interface LANUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
+ */
+ bond_id?: number;
+
+ /**
+ * Body param
*/
name?: string;
/**
- * Body param:
+ * Body param
*/
nat?: NatParam;
/**
- * Body param:
+ * Body param
*/
physport?: number;
/**
- * Body param:
+ * Body param
*/
routed_subnets?: Array;
@@ -475,22 +484,27 @@ export interface LANEditParams {
account_id: string;
/**
- * Body param:
+ * Body param
+ */
+ bond_id?: number;
+
+ /**
+ * Body param
*/
name?: string;
/**
- * Body param:
+ * Body param
*/
nat?: NatParam;
/**
- * Body param:
+ * Body param
*/
physport?: number;
/**
- * Body param:
+ * Body param
*/
routed_subnets?: Array;
diff --git a/src/resources/magic-transit/sites/sites.ts b/src/resources/magic-transit/sites/sites.ts
index 8971d500a6..3bb8b54239 100644
--- a/src/resources/magic-transit/sites/sites.ts
+++ b/src/resources/magic-transit/sites/sites.ts
@@ -270,7 +270,7 @@ export interface SiteCreateParams {
connector_id?: string;
/**
- * Body param:
+ * Body param
*/
description?: string;
@@ -304,7 +304,7 @@ export interface SiteUpdateParams {
connector_id?: string;
/**
- * Body param:
+ * Body param
*/
description?: string;
@@ -356,7 +356,7 @@ export interface SiteEditParams {
connector_id?: string;
/**
- * Body param:
+ * Body param
*/
description?: string;
diff --git a/src/resources/magic-transit/sites/wans.ts b/src/resources/magic-transit/sites/wans.ts
index 70f010546d..68917c6a5b 100644
--- a/src/resources/magic-transit/sites/wans.ts
+++ b/src/resources/magic-transit/sites/wans.ts
@@ -260,17 +260,17 @@ export interface WANCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
physport: number;
/**
- * Body param:
+ * Body param
*/
name?: string;
/**
- * Body param:
+ * Body param
*/
priority?: number;
@@ -293,17 +293,17 @@ export interface WANUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
name?: string;
/**
- * Body param:
+ * Body param
*/
physport?: number;
/**
- * Body param:
+ * Body param
*/
priority?: number;
@@ -340,17 +340,17 @@ export interface WANEditParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
name?: string;
/**
- * Body param:
+ * Body param
*/
physport?: number;
/**
- * Body param:
+ * Body param
*/
priority?: number;
diff --git a/src/resources/network-interconnects/cnis.ts b/src/resources/network-interconnects/cnis.ts
index 80177ff6f8..eabdb8be7a 100644
--- a/src/resources/network-interconnects/cnis.ts
+++ b/src/resources/network-interconnects/cnis.ts
@@ -425,17 +425,17 @@ export interface CNICreateParams {
account: string;
/**
- * Body param:
+ * Body param
*/
interconnect: string;
/**
- * Body param:
+ * Body param
*/
magic: CNICreateParams.Magic;
/**
- * Body param:
+ * Body param
*/
bgp?: CNICreateParams.BGP;
}
@@ -491,7 +491,7 @@ export interface CNIUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
id: string;
@@ -513,7 +513,7 @@ export interface CNIUpdateParams {
interconnect: string;
/**
- * Body param:
+ * Body param
*/
magic: CNIUpdateParams.Magic;
@@ -523,7 +523,7 @@ export interface CNIUpdateParams {
p2p_ip: string;
/**
- * Body param:
+ * Body param
*/
bgp?: CNIUpdateParams.BGP;
}
@@ -579,12 +579,12 @@ export interface CNIListParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
cursor?: number | null;
/**
- * Query param:
+ * Query param
*/
limit?: number | null;
diff --git a/src/resources/network-interconnects/interconnects.ts b/src/resources/network-interconnects/interconnects.ts
index 0ba927420e..afcb04ba6d 100644
--- a/src/resources/network-interconnects/interconnects.ts
+++ b/src/resources/network-interconnects/interconnects.ts
@@ -337,22 +337,22 @@ export declare namespace InterconnectCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
account: string;
/**
- * Body param:
+ * Body param
*/
slot_id: string;
/**
- * Body param:
+ * Body param
*/
type: string;
/**
- * Body param:
+ * Body param
*/
speed?: string | null;
}
@@ -364,7 +364,7 @@ export declare namespace InterconnectCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
account: string;
@@ -391,7 +391,7 @@ export declare namespace InterconnectCreateParams {
pairing_key: string;
/**
- * Body param:
+ * Body param
*/
type: string;
}
@@ -404,12 +404,12 @@ export interface InterconnectListParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
cursor?: number | null;
/**
- * Query param:
+ * Query param
*/
limit?: number | null;
diff --git a/src/resources/network-interconnects/settings.ts b/src/resources/network-interconnects/settings.ts
index 736f47b8a5..2c4d2bed44 100644
--- a/src/resources/network-interconnects/settings.ts
+++ b/src/resources/network-interconnects/settings.ts
@@ -52,7 +52,7 @@ export interface SettingUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
default_asn?: number | null;
}
diff --git a/src/resources/network-interconnects/slots.ts b/src/resources/network-interconnects/slots.ts
index b7248ac02e..58c2806f8f 100644
--- a/src/resources/network-interconnects/slots.ts
+++ b/src/resources/network-interconnects/slots.ts
@@ -119,12 +119,12 @@ export interface SlotListParams {
address_contains?: string | null;
/**
- * Query param:
+ * Query param
*/
cursor?: number | null;
/**
- * Query param:
+ * Query param
*/
limit?: number | null;
diff --git a/src/resources/origin-tls-client-auth/hostnames/certificates.ts b/src/resources/origin-tls-client-auth/hostname-certificates.ts
similarity index 77%
rename from src/resources/origin-tls-client-auth/hostnames/certificates.ts
rename to src/resources/origin-tls-client-auth/hostname-certificates.ts
index 012c5ca71e..3457772071 100644
--- a/src/resources/origin-tls-client-auth/hostnames/certificates.ts
+++ b/src/resources/origin-tls-client-auth/hostname-certificates.ts
@@ -1,19 +1,19 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-import { APIResource } from '../../../resource';
-import * as Core from '../../../core';
+import { APIResource } from '../../resource';
+import * as Core from '../../core';
import * as HostnamesAPI from './hostnames';
-import { SinglePage } from '../../../pagination';
+import { SinglePage } from '../../pagination';
-export class Certificates extends APIResource {
+export class HostnameCertificates extends APIResource {
/**
* Upload a certificate to be used for client authentication on a hostname. 10
* hostname certificates per zone are allowed.
*
* @example
* ```ts
- * const certificate =
- * await client.originTLSClientAuth.hostnames.certificates.create(
+ * const hostnameCertificate =
+ * await client.originTLSClientAuth.hostnameCertificates.create(
* {
* zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
* certificate:
@@ -25,15 +25,15 @@ export class Certificates extends APIResource {
* ```
*/
create(
- params: CertificateCreateParams,
+ params: HostnameCertificateCreateParams,
options?: Core.RequestOptions,
- ): Core.APIPromise {
+ ): Core.APIPromise {
const { zone_id, ...body } = params;
return (
this._client.post(`/zones/${zone_id}/origin_tls_client_auth/hostnames/certificates`, {
body,
...options,
- }) as Core.APIPromise<{ result: CertificateCreateResponse }>
+ }) as Core.APIPromise<{ result: HostnameCertificateCreateResponse }>
)._thenUnwrap((obj) => obj.result);
}
@@ -43,7 +43,7 @@ export class Certificates extends APIResource {
* @example
* ```ts
* // Automatically fetches more pages as needed.
- * for await (const certificateListResponse of client.originTLSClientAuth.hostnames.certificates.list(
+ * for await (const hostnameCertificateListResponse of client.originTLSClientAuth.hostnameCertificates.list(
* { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* )) {
* // ...
@@ -51,13 +51,13 @@ export class Certificates extends APIResource {
* ```
*/
list(
- params: CertificateListParams,
+ params: HostnameCertificateListParams,
options?: Core.RequestOptions,
- ): Core.PagePromise {
+ ): Core.PagePromise {
const { zone_id } = params;
return this._client.getAPIList(
`/zones/${zone_id}/origin_tls_client_auth/hostnames/certificates`,
- CertificateListResponsesSinglePage,
+ HostnameCertificateListResponsesSinglePage,
options,
);
}
@@ -67,8 +67,8 @@ export class Certificates extends APIResource {
*
* @example
* ```ts
- * const certificate =
- * await client.originTLSClientAuth.hostnames.certificates.delete(
+ * const hostnameCertificate =
+ * await client.originTLSClientAuth.hostnameCertificates.delete(
* '023e105f4ecef8ad9ca31a8372d0c353',
* { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
@@ -76,15 +76,15 @@ export class Certificates extends APIResource {
*/
delete(
certificateId: string,
- params: CertificateDeleteParams,
+ params: HostnameCertificateDeleteParams,
options?: Core.RequestOptions,
- ): Core.APIPromise {
+ ): Core.APIPromise {
const { zone_id } = params;
return (
this._client.delete(
`/zones/${zone_id}/origin_tls_client_auth/hostnames/certificates/${certificateId}`,
options,
- ) as Core.APIPromise<{ result: CertificateDeleteResponse }>
+ ) as Core.APIPromise<{ result: HostnameCertificateDeleteResponse }>
)._thenUnwrap((obj) => obj.result);
}
@@ -93,8 +93,8 @@ export class Certificates extends APIResource {
*
* @example
* ```ts
- * const certificate =
- * await client.originTLSClientAuth.hostnames.certificates.get(
+ * const hostnameCertificate =
+ * await client.originTLSClientAuth.hostnameCertificates.get(
* '023e105f4ecef8ad9ca31a8372d0c353',
* { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
@@ -102,20 +102,20 @@ export class Certificates extends APIResource {
*/
get(
certificateId: string,
- params: CertificateGetParams,
+ params: HostnameCertificateGetParams,
options?: Core.RequestOptions,
- ): Core.APIPromise {
+ ): Core.APIPromise {
const { zone_id } = params;
return (
this._client.get(
`/zones/${zone_id}/origin_tls_client_auth/hostnames/certificates/${certificateId}`,
options,
- ) as Core.APIPromise<{ result: CertificateGetResponse }>
+ ) as Core.APIPromise<{ result: HostnameCertificateGetResponse }>
)._thenUnwrap((obj) => obj.result);
}
}
-export class CertificateListResponsesSinglePage extends SinglePage {}
+export class HostnameCertificateListResponsesSinglePage extends SinglePage {}
export interface Certificate {
/**
@@ -166,7 +166,7 @@ export interface Certificate {
uploaded_on?: string;
}
-export interface CertificateCreateResponse {
+export interface HostnameCertificateCreateResponse {
/**
* Identifier.
*/
@@ -215,7 +215,7 @@ export interface CertificateCreateResponse {
uploaded_on?: string;
}
-export interface CertificateListResponse extends HostnamesAPI.AuthenticatedOriginPull {
+export interface HostnameCertificateListResponse extends HostnamesAPI.AuthenticatedOriginPull {
/**
* Identifier.
*/
@@ -249,7 +249,7 @@ export interface CertificateListResponse extends HostnamesAPI.AuthenticatedOrigi
private_key?: string;
}
-export interface CertificateDeleteResponse {
+export interface HostnameCertificateDeleteResponse {
/**
* Identifier.
*/
@@ -298,7 +298,7 @@ export interface CertificateDeleteResponse {
uploaded_on?: string;
}
-export interface CertificateGetResponse {
+export interface HostnameCertificateGetResponse {
/**
* Identifier.
*/
@@ -347,7 +347,7 @@ export interface CertificateGetResponse {
uploaded_on?: string;
}
-export interface CertificateCreateParams {
+export interface HostnameCertificateCreateParams {
/**
* Path param: Identifier.
*/
@@ -364,40 +364,40 @@ export interface CertificateCreateParams {
private_key: string;
}
-export interface CertificateListParams {
+export interface HostnameCertificateListParams {
/**
* Identifier.
*/
zone_id: string;
}
-export interface CertificateDeleteParams {
+export interface HostnameCertificateDeleteParams {
/**
* Identifier.
*/
zone_id: string;
}
-export interface CertificateGetParams {
+export interface HostnameCertificateGetParams {
/**
* Identifier.
*/
zone_id: string;
}
-Certificates.CertificateListResponsesSinglePage = CertificateListResponsesSinglePage;
+HostnameCertificates.HostnameCertificateListResponsesSinglePage = HostnameCertificateListResponsesSinglePage;
-export declare namespace Certificates {
+export declare namespace HostnameCertificates {
export {
type Certificate as Certificate,
- type CertificateCreateResponse as CertificateCreateResponse,
- type CertificateListResponse as CertificateListResponse,
- type CertificateDeleteResponse as CertificateDeleteResponse,
- type CertificateGetResponse as CertificateGetResponse,
- CertificateListResponsesSinglePage as CertificateListResponsesSinglePage,
- type CertificateCreateParams as CertificateCreateParams,
- type CertificateListParams as CertificateListParams,
- type CertificateDeleteParams as CertificateDeleteParams,
- type CertificateGetParams as CertificateGetParams,
+ type HostnameCertificateCreateResponse as HostnameCertificateCreateResponse,
+ type HostnameCertificateListResponse as HostnameCertificateListResponse,
+ type HostnameCertificateDeleteResponse as HostnameCertificateDeleteResponse,
+ type HostnameCertificateGetResponse as HostnameCertificateGetResponse,
+ HostnameCertificateListResponsesSinglePage as HostnameCertificateListResponsesSinglePage,
+ type HostnameCertificateCreateParams as HostnameCertificateCreateParams,
+ type HostnameCertificateListParams as HostnameCertificateListParams,
+ type HostnameCertificateDeleteParams as HostnameCertificateDeleteParams,
+ type HostnameCertificateGetParams as HostnameCertificateGetParams,
};
}
diff --git a/src/resources/origin-tls-client-auth/hostnames.ts b/src/resources/origin-tls-client-auth/hostnames.ts
index 40578b9fd7..dbdf3b6fbe 100644
--- a/src/resources/origin-tls-client-auth/hostnames.ts
+++ b/src/resources/origin-tls-client-auth/hostnames.ts
@@ -1,3 +1,241 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-export * from './hostnames/index';
+import { APIResource } from '../../resource';
+import * as Core from '../../core';
+import { SinglePage } from '../../pagination';
+
+export class Hostnames extends APIResource {
+ /**
+ * Associate a hostname to a certificate and enable, disable or invalidate the
+ * association. If disabled, client certificate will not be sent to the hostname
+ * even if activated at the zone level. 100 maximum associations on a single
+ * certificate are allowed. Note: Use a null value for parameter _enabled_ to
+ * invalidate the association.
+ *
+ * @example
+ * ```ts
+ * // Automatically fetches more pages as needed.
+ * for await (const hostnameUpdateResponse of client.originTLSClientAuth.hostnames.update(
+ * {
+ * zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ * config: [{}],
+ * },
+ * )) {
+ * // ...
+ * }
+ * ```
+ */
+ update(
+ params: HostnameUpdateParams,
+ options?: Core.RequestOptions,
+ ): Core.PagePromise {
+ const { zone_id, ...body } = params;
+ return this._client.getAPIList(
+ `/zones/${zone_id}/origin_tls_client_auth/hostnames`,
+ HostnameUpdateResponsesSinglePage,
+ { body, method: 'put', ...options },
+ );
+ }
+
+ /**
+ * Get the Hostname Status for Client Authentication
+ *
+ * @example
+ * ```ts
+ * const authenticatedOriginPull =
+ * await client.originTLSClientAuth.hostnames.get(
+ * 'app.example.com',
+ * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
+ * );
+ * ```
+ */
+ get(
+ hostname: string,
+ params: HostnameGetParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { zone_id } = params;
+ return (
+ this._client.get(
+ `/zones/${zone_id}/origin_tls_client_auth/hostnames/${hostname}`,
+ options,
+ ) as Core.APIPromise<{ result: AuthenticatedOriginPull }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+}
+
+export class HostnameUpdateResponsesSinglePage extends SinglePage {}
+
+export interface AuthenticatedOriginPull {
+ /**
+ * Identifier.
+ */
+ cert_id?: string;
+
+ /**
+ * Status of the certificate or the association.
+ */
+ cert_status?:
+ | 'initializing'
+ | 'pending_deployment'
+ | 'pending_deletion'
+ | 'active'
+ | 'deleted'
+ | 'deployment_timed_out'
+ | 'deletion_timed_out';
+
+ /**
+ * The time when the certificate was updated.
+ */
+ cert_updated_at?: string;
+
+ /**
+ * The time when the certificate was uploaded.
+ */
+ cert_uploaded_on?: string;
+
+ /**
+ * The hostname certificate.
+ */
+ certificate?: string;
+
+ /**
+ * The time when the certificate was created.
+ */
+ created_at?: string;
+
+ /**
+ * Indicates whether hostname-level authenticated origin pulls is enabled. A null
+ * value voids the association.
+ */
+ enabled?: boolean | null;
+
+ /**
+ * The date when the certificate expires.
+ */
+ expires_on?: string;
+
+ /**
+ * The hostname on the origin for which the client certificate uploaded will be
+ * used.
+ */
+ hostname?: string;
+
+ /**
+ * The certificate authority that issued the certificate.
+ */
+ issuer?: string;
+
+ /**
+ * The serial number on the uploaded certificate.
+ */
+ serial_number?: string;
+
+ /**
+ * The type of hash used for the certificate.
+ */
+ signature?: string;
+
+ /**
+ * Status of the certificate or the association.
+ */
+ status?:
+ | 'initializing'
+ | 'pending_deployment'
+ | 'pending_deletion'
+ | 'active'
+ | 'deleted'
+ | 'deployment_timed_out'
+ | 'deletion_timed_out';
+
+ /**
+ * The time when the certificate was updated.
+ */
+ updated_at?: string;
+}
+
+export interface HostnameUpdateResponse extends AuthenticatedOriginPull {
+ /**
+ * Identifier.
+ */
+ id?: string;
+
+ /**
+ * Identifier.
+ */
+ cert_id?: string;
+
+ /**
+ * The hostname certificate.
+ */
+ certificate?: string;
+
+ /**
+ * Indicates whether hostname-level authenticated origin pulls is enabled. A null
+ * value voids the association.
+ */
+ enabled?: boolean | null;
+
+ /**
+ * The hostname on the origin for which the client certificate uploaded will be
+ * used.
+ */
+ hostname?: string;
+
+ /**
+ * The hostname certificate's private key.
+ */
+ private_key?: string;
+}
+
+export interface HostnameUpdateParams {
+ /**
+ * Path param: Identifier.
+ */
+ zone_id: string;
+
+ /**
+ * Body param
+ */
+ config: Array;
+}
+
+export namespace HostnameUpdateParams {
+ export interface Config {
+ /**
+ * Certificate identifier tag.
+ */
+ cert_id?: string;
+
+ /**
+ * Indicates whether hostname-level authenticated origin pulls is enabled. A null
+ * value voids the association.
+ */
+ enabled?: boolean | null;
+
+ /**
+ * The hostname on the origin for which the client certificate uploaded will be
+ * used.
+ */
+ hostname?: string;
+ }
+}
+
+export interface HostnameGetParams {
+ /**
+ * Identifier.
+ */
+ zone_id: string;
+}
+
+Hostnames.HostnameUpdateResponsesSinglePage = HostnameUpdateResponsesSinglePage;
+
+export declare namespace Hostnames {
+ export {
+ type AuthenticatedOriginPull as AuthenticatedOriginPull,
+ type HostnameUpdateResponse as HostnameUpdateResponse,
+ HostnameUpdateResponsesSinglePage as HostnameUpdateResponsesSinglePage,
+ type HostnameUpdateParams as HostnameUpdateParams,
+ type HostnameGetParams as HostnameGetParams,
+ };
+}
diff --git a/src/resources/origin-tls-client-auth/hostnames/hostnames.ts b/src/resources/origin-tls-client-auth/hostnames/hostnames.ts
deleted file mode 100644
index 8727482dbe..0000000000
--- a/src/resources/origin-tls-client-auth/hostnames/hostnames.ts
+++ /dev/null
@@ -1,273 +0,0 @@
-// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-import { APIResource } from '../../../resource';
-import * as Core from '../../../core';
-import * as CertificatesAPI from './certificates';
-import {
- Certificate,
- CertificateCreateParams,
- CertificateCreateResponse,
- CertificateDeleteParams,
- CertificateDeleteResponse,
- CertificateGetParams,
- CertificateGetResponse,
- CertificateListParams,
- CertificateListResponse,
- CertificateListResponsesSinglePage,
- Certificates,
-} from './certificates';
-import { SinglePage } from '../../../pagination';
-
-export class Hostnames extends APIResource {
- certificates: CertificatesAPI.Certificates = new CertificatesAPI.Certificates(this._client);
-
- /**
- * Associate a hostname to a certificate and enable, disable or invalidate the
- * association. If disabled, client certificate will not be sent to the hostname
- * even if activated at the zone level. 100 maximum associations on a single
- * certificate are allowed. Note: Use a null value for parameter _enabled_ to
- * invalidate the association.
- *
- * @example
- * ```ts
- * // Automatically fetches more pages as needed.
- * for await (const hostnameUpdateResponse of client.originTLSClientAuth.hostnames.update(
- * {
- * zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * config: [{}],
- * },
- * )) {
- * // ...
- * }
- * ```
- */
- update(
- params: HostnameUpdateParams,
- options?: Core.RequestOptions,
- ): Core.PagePromise {
- const { zone_id, ...body } = params;
- return this._client.getAPIList(
- `/zones/${zone_id}/origin_tls_client_auth/hostnames`,
- HostnameUpdateResponsesSinglePage,
- { body, method: 'put', ...options },
- );
- }
-
- /**
- * Get the Hostname Status for Client Authentication
- *
- * @example
- * ```ts
- * const authenticatedOriginPull =
- * await client.originTLSClientAuth.hostnames.get(
- * 'app.example.com',
- * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * );
- * ```
- */
- get(
- hostname: string,
- params: HostnameGetParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { zone_id } = params;
- return (
- this._client.get(
- `/zones/${zone_id}/origin_tls_client_auth/hostnames/${hostname}`,
- options,
- ) as Core.APIPromise<{ result: AuthenticatedOriginPull }>
- )._thenUnwrap((obj) => obj.result);
- }
-}
-
-export class HostnameUpdateResponsesSinglePage extends SinglePage {}
-
-export interface AuthenticatedOriginPull {
- /**
- * Identifier.
- */
- cert_id?: string;
-
- /**
- * Status of the certificate or the association.
- */
- cert_status?:
- | 'initializing'
- | 'pending_deployment'
- | 'pending_deletion'
- | 'active'
- | 'deleted'
- | 'deployment_timed_out'
- | 'deletion_timed_out';
-
- /**
- * The time when the certificate was updated.
- */
- cert_updated_at?: string;
-
- /**
- * The time when the certificate was uploaded.
- */
- cert_uploaded_on?: string;
-
- /**
- * The hostname certificate.
- */
- certificate?: string;
-
- /**
- * The time when the certificate was created.
- */
- created_at?: string;
-
- /**
- * Indicates whether hostname-level authenticated origin pulls is enabled. A null
- * value voids the association.
- */
- enabled?: boolean | null;
-
- /**
- * The date when the certificate expires.
- */
- expires_on?: string;
-
- /**
- * The hostname on the origin for which the client certificate uploaded will be
- * used.
- */
- hostname?: string;
-
- /**
- * The certificate authority that issued the certificate.
- */
- issuer?: string;
-
- /**
- * The serial number on the uploaded certificate.
- */
- serial_number?: string;
-
- /**
- * The type of hash used for the certificate.
- */
- signature?: string;
-
- /**
- * Status of the certificate or the association.
- */
- status?:
- | 'initializing'
- | 'pending_deployment'
- | 'pending_deletion'
- | 'active'
- | 'deleted'
- | 'deployment_timed_out'
- | 'deletion_timed_out';
-
- /**
- * The time when the certificate was updated.
- */
- updated_at?: string;
-}
-
-export interface HostnameUpdateResponse extends AuthenticatedOriginPull {
- /**
- * Identifier.
- */
- id?: string;
-
- /**
- * Identifier.
- */
- cert_id?: string;
-
- /**
- * The hostname certificate.
- */
- certificate?: string;
-
- /**
- * Indicates whether hostname-level authenticated origin pulls is enabled. A null
- * value voids the association.
- */
- enabled?: boolean | null;
-
- /**
- * The hostname on the origin for which the client certificate uploaded will be
- * used.
- */
- hostname?: string;
-
- /**
- * The hostname certificate's private key.
- */
- private_key?: string;
-}
-
-export interface HostnameUpdateParams {
- /**
- * Path param: Identifier.
- */
- zone_id: string;
-
- /**
- * Body param:
- */
- config: Array;
-}
-
-export namespace HostnameUpdateParams {
- export interface Config {
- /**
- * Certificate identifier tag.
- */
- cert_id?: string;
-
- /**
- * Indicates whether hostname-level authenticated origin pulls is enabled. A null
- * value voids the association.
- */
- enabled?: boolean | null;
-
- /**
- * The hostname on the origin for which the client certificate uploaded will be
- * used.
- */
- hostname?: string;
- }
-}
-
-export interface HostnameGetParams {
- /**
- * Identifier.
- */
- zone_id: string;
-}
-
-Hostnames.HostnameUpdateResponsesSinglePage = HostnameUpdateResponsesSinglePage;
-Hostnames.Certificates = Certificates;
-Hostnames.CertificateListResponsesSinglePage = CertificateListResponsesSinglePage;
-
-export declare namespace Hostnames {
- export {
- type AuthenticatedOriginPull as AuthenticatedOriginPull,
- type HostnameUpdateResponse as HostnameUpdateResponse,
- HostnameUpdateResponsesSinglePage as HostnameUpdateResponsesSinglePage,
- type HostnameUpdateParams as HostnameUpdateParams,
- type HostnameGetParams as HostnameGetParams,
- };
-
- export {
- Certificates as Certificates,
- type Certificate as Certificate,
- type CertificateCreateResponse as CertificateCreateResponse,
- type CertificateListResponse as CertificateListResponse,
- type CertificateDeleteResponse as CertificateDeleteResponse,
- type CertificateGetResponse as CertificateGetResponse,
- CertificateListResponsesSinglePage as CertificateListResponsesSinglePage,
- type CertificateCreateParams as CertificateCreateParams,
- type CertificateListParams as CertificateListParams,
- type CertificateDeleteParams as CertificateDeleteParams,
- type CertificateGetParams as CertificateGetParams,
- };
-}
diff --git a/src/resources/origin-tls-client-auth/hostnames/index.ts b/src/resources/origin-tls-client-auth/hostnames/index.ts
deleted file mode 100644
index d528aaa209..0000000000
--- a/src/resources/origin-tls-client-auth/hostnames/index.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-export {
- CertificateListResponsesSinglePage,
- Certificates,
- type Certificate,
- type CertificateCreateResponse,
- type CertificateListResponse,
- type CertificateDeleteResponse,
- type CertificateGetResponse,
- type CertificateCreateParams,
- type CertificateListParams,
- type CertificateDeleteParams,
- type CertificateGetParams,
-} from './certificates';
-export {
- HostnameUpdateResponsesSinglePage,
- Hostnames,
- type AuthenticatedOriginPull,
- type HostnameUpdateResponse,
- type HostnameUpdateParams,
- type HostnameGetParams,
-} from './hostnames';
diff --git a/src/resources/origin-tls-client-auth/index.ts b/src/resources/origin-tls-client-auth/index.ts
index 9134bc8c3a..e1af803820 100644
--- a/src/resources/origin-tls-client-auth/index.ts
+++ b/src/resources/origin-tls-client-auth/index.ts
@@ -1,5 +1,18 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+export {
+ HostnameCertificateListResponsesSinglePage,
+ HostnameCertificates,
+ type Certificate,
+ type HostnameCertificateCreateResponse,
+ type HostnameCertificateListResponse,
+ type HostnameCertificateDeleteResponse,
+ type HostnameCertificateGetResponse,
+ type HostnameCertificateCreateParams,
+ type HostnameCertificateListParams,
+ type HostnameCertificateDeleteParams,
+ type HostnameCertificateGetParams,
+} from './hostname-certificates';
export {
HostnameUpdateResponsesSinglePage,
Hostnames,
@@ -7,7 +20,7 @@ export {
type HostnameUpdateResponse,
type HostnameUpdateParams,
type HostnameGetParams,
-} from './hostnames/index';
+} from './hostnames';
export { OriginTLSClientAuth } from './origin-tls-client-auth';
export {
Settings,
@@ -16,3 +29,16 @@ export {
type SettingUpdateParams,
type SettingGetParams,
} from './settings';
+export {
+ ZoneCertificateListResponsesSinglePage,
+ ZoneCertificates,
+ type ZoneAuthenticatedOriginPull,
+ type ZoneCertificateCreateResponse,
+ type ZoneCertificateListResponse,
+ type ZoneCertificateDeleteResponse,
+ type ZoneCertificateGetResponse,
+ type ZoneCertificateCreateParams,
+ type ZoneCertificateListParams,
+ type ZoneCertificateDeleteParams,
+ type ZoneCertificateGetParams,
+} from './zone-certificates';
diff --git a/src/resources/origin-tls-client-auth/origin-tls-client-auth.ts b/src/resources/origin-tls-client-auth/origin-tls-client-auth.ts
index b0b2c06d51..7246e7c01e 100644
--- a/src/resources/origin-tls-client-auth/origin-tls-client-auth.ts
+++ b/src/resources/origin-tls-client-auth/origin-tls-client-auth.ts
@@ -2,6 +2,29 @@
import { APIResource } from '../../resource';
import * as Core from '../../core';
+import * as HostnameCertificatesAPI from './hostname-certificates';
+import {
+ Certificate,
+ HostnameCertificateCreateParams,
+ HostnameCertificateCreateResponse,
+ HostnameCertificateDeleteParams,
+ HostnameCertificateDeleteResponse,
+ HostnameCertificateGetParams,
+ HostnameCertificateGetResponse,
+ HostnameCertificateListParams,
+ HostnameCertificateListResponse,
+ HostnameCertificateListResponsesSinglePage,
+ HostnameCertificates,
+} from './hostname-certificates';
+import * as HostnamesAPI from './hostnames';
+import {
+ AuthenticatedOriginPull,
+ HostnameGetParams,
+ HostnameUpdateParams,
+ HostnameUpdateResponse,
+ HostnameUpdateResponsesSinglePage,
+ Hostnames,
+} from './hostnames';
import * as SettingsAPI from './settings';
import {
SettingGetParams,
@@ -10,19 +33,29 @@ import {
SettingUpdateResponse,
Settings,
} from './settings';
-import * as HostnamesAPI from './hostnames/hostnames';
+import * as ZoneCertificatesAPI from './zone-certificates';
import {
- AuthenticatedOriginPull,
- HostnameGetParams,
- HostnameUpdateParams,
- HostnameUpdateResponse,
- HostnameUpdateResponsesSinglePage,
- Hostnames,
-} from './hostnames/hostnames';
+ ZoneAuthenticatedOriginPull,
+ ZoneCertificateCreateParams,
+ ZoneCertificateCreateResponse,
+ ZoneCertificateDeleteParams,
+ ZoneCertificateDeleteResponse,
+ ZoneCertificateGetParams,
+ ZoneCertificateGetResponse,
+ ZoneCertificateListParams,
+ ZoneCertificateListResponse,
+ ZoneCertificateListResponsesSinglePage,
+ ZoneCertificates,
+} from './zone-certificates';
import { SinglePage } from '../../pagination';
export class OriginTLSClientAuth extends APIResource {
+ zoneCertificates: ZoneCertificatesAPI.ZoneCertificates = new ZoneCertificatesAPI.ZoneCertificates(
+ this._client,
+ );
hostnames: HostnamesAPI.Hostnames = new HostnamesAPI.Hostnames(this._client);
+ hostnameCertificates: HostnameCertificatesAPI.HostnameCertificates =
+ new HostnameCertificatesAPI.HostnameCertificates(this._client);
settings: SettingsAPI.Settings = new SettingsAPI.Settings(this._client);
/**
@@ -32,17 +65,7 @@ export class OriginTLSClientAuth extends APIResource {
* zone-level authenticated origin pulls by making a PUT call to settings endpoint
* to see the uploaded certificate in use.
*
- * @example
- * ```ts
- * const originTLSClientAuth =
- * await client.originTLSClientAuth.create({
- * zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * certificate:
- * '-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMHAwfXZ5/PWMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQwHhcNMTYwODI0MTY0MzAxWhcNMTYxMTIyMTY0MzAxWjBF\nMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50\nZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmGdtcGbg/1\nCGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKnabIRuGvB\nKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpidtnKX/a+5\n0GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+pyFxIXjbEI\ndZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pEewooaeO2\nizNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABo4GnMIGkMB0GA1UdDgQWBBT/LbE4\n9rWf288N6sJA5BRb6FJIGDB1BgNVHSMEbjBsgBT/LbE49rWf288N6sJA5BRb6FJI\nGKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV\nBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAMHAwfXZ5/PWMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHHFwl0tH0quUYZYO0dZYt4R7SJ0pCm2\n2satiyzHl4OnXcHDpekAo7/a09c6Lz6AU83cKy/+x3/djYHXWba7HpEu0dR3ugQP\nMlr4zrhd9xKZ0KZKiYmtJH+ak4OM4L3FbT0owUZPyjLSlhMtJVcoRp5CJsjAMBUG\nSvD8RX+T01wzox/Qb+lnnNnOlaWpqu8eoOenybxKp1a9ULzIVvN/LAcc+14vioFq\n2swRWtmocBAs8QR9n4uvbpiYvS8eYueDCWMM4fvFfBhaDZ3N9IbtySh3SpFdQDhw\nYbjM2rxXiyLGxB4Bol7QTv4zHif7Zt89FReT/NBy4rzaskDJY5L6xmY=\n-----END CERTIFICATE-----\n',
- * private_key:
- * '-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n',
- * });
- * ```
+ * @deprecated Use zone_certificates.create for zone-level certificates. This method will be removed in a future major version.
*/
create(
params: OriginTLSClientAuthCreateParams,
@@ -59,15 +82,7 @@ export class OriginTLSClientAuth extends APIResource {
/**
* List Certificates
*
- * @example
- * ```ts
- * // Automatically fetches more pages as needed.
- * for await (const originTLSClientAuthListResponse of client.originTLSClientAuth.list(
- * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * )) {
- * // ...
- * }
- * ```
+ * @deprecated Use zone_certificates.list for zone-level certificates. This method will be removed in a future major version.
*/
list(
params: OriginTLSClientAuthListParams,
@@ -84,14 +99,7 @@ export class OriginTLSClientAuth extends APIResource {
/**
* Delete Certificate
*
- * @example
- * ```ts
- * const originTLSClientAuth =
- * await client.originTLSClientAuth.delete(
- * '023e105f4ecef8ad9ca31a8372d0c353',
- * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * );
- * ```
+ * @deprecated Use zone_certificates.delete for zone-level certificates. This method will be removed in a future major version.
*/
delete(
certificateId: string,
@@ -110,14 +118,7 @@ export class OriginTLSClientAuth extends APIResource {
/**
* Get Certificate Details
*
- * @example
- * ```ts
- * const originTLSClientAuth =
- * await client.originTLSClientAuth.get(
- * '023e105f4ecef8ad9ca31a8372d0c353',
- * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * );
- * ```
+ * @deprecated Use zone_certificates.get for zone-level certificates. This method will be removed in a future major version.
*/
get(
certificateId: string,
@@ -136,51 +137,7 @@ export class OriginTLSClientAuth extends APIResource {
export class OriginTLSClientAuthListResponsesSinglePage extends SinglePage {}
-export interface ZoneAuthenticatedOriginPull {
- /**
- * Identifier.
- */
- id?: string;
-
- /**
- * The zone's leaf certificate.
- */
- certificate?: string;
-
- /**
- * When the certificate from the authority expires.
- */
- expires_on?: string;
-
- /**
- * The certificate authority that issued the certificate.
- */
- issuer?: string;
-
- /**
- * The type of hash used for the certificate.
- */
- signature?: string;
-
- /**
- * Status of the certificate activation.
- */
- status?:
- | 'initializing'
- | 'pending_deployment'
- | 'pending_deletion'
- | 'active'
- | 'deleted'
- | 'deployment_timed_out'
- | 'deletion_timed_out';
-
- /**
- * This is the time the certificate was uploaded.
- */
- uploaded_on?: string;
-}
-
-export interface OriginTLSClientAuthCreateResponse extends ZoneAuthenticatedOriginPull {
+export interface OriginTLSClientAuthCreateResponse extends ZoneCertificatesAPI.ZoneAuthenticatedOriginPull {
/**
* Identifier.
*/
@@ -202,7 +159,7 @@ export interface OriginTLSClientAuthCreateResponse extends ZoneAuthenticatedOrig
private_key?: string;
}
-export interface OriginTLSClientAuthListResponse extends ZoneAuthenticatedOriginPull {
+export interface OriginTLSClientAuthListResponse extends ZoneCertificatesAPI.ZoneAuthenticatedOriginPull {
/**
* Identifier.
*/
@@ -224,7 +181,7 @@ export interface OriginTLSClientAuthListResponse extends ZoneAuthenticatedOrigin
private_key?: string;
}
-export interface OriginTLSClientAuthDeleteResponse extends ZoneAuthenticatedOriginPull {
+export interface OriginTLSClientAuthDeleteResponse extends ZoneCertificatesAPI.ZoneAuthenticatedOriginPull {
/**
* Identifier.
*/
@@ -246,7 +203,7 @@ export interface OriginTLSClientAuthDeleteResponse extends ZoneAuthenticatedOrig
private_key?: string;
}
-export interface OriginTLSClientAuthGetResponse extends ZoneAuthenticatedOriginPull {
+export interface OriginTLSClientAuthGetResponse extends ZoneCertificatesAPI.ZoneAuthenticatedOriginPull {
/**
* Identifier.
*/
@@ -307,13 +264,16 @@ export interface OriginTLSClientAuthGetParams {
}
OriginTLSClientAuth.OriginTLSClientAuthListResponsesSinglePage = OriginTLSClientAuthListResponsesSinglePage;
+OriginTLSClientAuth.ZoneCertificates = ZoneCertificates;
+OriginTLSClientAuth.ZoneCertificateListResponsesSinglePage = ZoneCertificateListResponsesSinglePage;
OriginTLSClientAuth.Hostnames = Hostnames;
OriginTLSClientAuth.HostnameUpdateResponsesSinglePage = HostnameUpdateResponsesSinglePage;
+OriginTLSClientAuth.HostnameCertificates = HostnameCertificates;
+OriginTLSClientAuth.HostnameCertificateListResponsesSinglePage = HostnameCertificateListResponsesSinglePage;
OriginTLSClientAuth.Settings = Settings;
export declare namespace OriginTLSClientAuth {
export {
- type ZoneAuthenticatedOriginPull as ZoneAuthenticatedOriginPull,
type OriginTLSClientAuthCreateResponse as OriginTLSClientAuthCreateResponse,
type OriginTLSClientAuthListResponse as OriginTLSClientAuthListResponse,
type OriginTLSClientAuthDeleteResponse as OriginTLSClientAuthDeleteResponse,
@@ -325,6 +285,20 @@ export declare namespace OriginTLSClientAuth {
type OriginTLSClientAuthGetParams as OriginTLSClientAuthGetParams,
};
+ export {
+ ZoneCertificates as ZoneCertificates,
+ type ZoneAuthenticatedOriginPull as ZoneAuthenticatedOriginPull,
+ type ZoneCertificateCreateResponse as ZoneCertificateCreateResponse,
+ type ZoneCertificateListResponse as ZoneCertificateListResponse,
+ type ZoneCertificateDeleteResponse as ZoneCertificateDeleteResponse,
+ type ZoneCertificateGetResponse as ZoneCertificateGetResponse,
+ ZoneCertificateListResponsesSinglePage as ZoneCertificateListResponsesSinglePage,
+ type ZoneCertificateCreateParams as ZoneCertificateCreateParams,
+ type ZoneCertificateListParams as ZoneCertificateListParams,
+ type ZoneCertificateDeleteParams as ZoneCertificateDeleteParams,
+ type ZoneCertificateGetParams as ZoneCertificateGetParams,
+ };
+
export {
Hostnames as Hostnames,
type AuthenticatedOriginPull as AuthenticatedOriginPull,
@@ -334,6 +308,20 @@ export declare namespace OriginTLSClientAuth {
type HostnameGetParams as HostnameGetParams,
};
+ export {
+ HostnameCertificates as HostnameCertificates,
+ type Certificate as Certificate,
+ type HostnameCertificateCreateResponse as HostnameCertificateCreateResponse,
+ type HostnameCertificateListResponse as HostnameCertificateListResponse,
+ type HostnameCertificateDeleteResponse as HostnameCertificateDeleteResponse,
+ type HostnameCertificateGetResponse as HostnameCertificateGetResponse,
+ HostnameCertificateListResponsesSinglePage as HostnameCertificateListResponsesSinglePage,
+ type HostnameCertificateCreateParams as HostnameCertificateCreateParams,
+ type HostnameCertificateListParams as HostnameCertificateListParams,
+ type HostnameCertificateDeleteParams as HostnameCertificateDeleteParams,
+ type HostnameCertificateGetParams as HostnameCertificateGetParams,
+ };
+
export {
Settings as Settings,
type SettingUpdateResponse as SettingUpdateResponse,
diff --git a/src/resources/origin-tls-client-auth/zone-certificates.ts b/src/resources/origin-tls-client-auth/zone-certificates.ts
new file mode 100644
index 0000000000..2bf3e2a996
--- /dev/null
+++ b/src/resources/origin-tls-client-auth/zone-certificates.ts
@@ -0,0 +1,304 @@
+// 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 ZoneCertificates extends APIResource {
+ /**
+ * Upload your own certificate you want Cloudflare to use for edge-to-origin
+ * communication to override the shared certificate. Please note that it is
+ * important to keep only one certificate active. Also, make sure to enable
+ * zone-level authenticated origin pulls by making a PUT call to settings endpoint
+ * to see the uploaded certificate in use.
+ *
+ * @example
+ * ```ts
+ * const zoneCertificate =
+ * await client.originTLSClientAuth.zoneCertificates.create({
+ * zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ * certificate:
+ * '-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMHAwfXZ5/PWMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQwHhcNMTYwODI0MTY0MzAxWhcNMTYxMTIyMTY0MzAxWjBF\nMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50\nZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmGdtcGbg/1\nCGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKnabIRuGvB\nKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpidtnKX/a+5\n0GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+pyFxIXjbEI\ndZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pEewooaeO2\nizNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABo4GnMIGkMB0GA1UdDgQWBBT/LbE4\n9rWf288N6sJA5BRb6FJIGDB1BgNVHSMEbjBsgBT/LbE49rWf288N6sJA5BRb6FJI\nGKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV\nBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAMHAwfXZ5/PWMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHHFwl0tH0quUYZYO0dZYt4R7SJ0pCm2\n2satiyzHl4OnXcHDpekAo7/a09c6Lz6AU83cKy/+x3/djYHXWba7HpEu0dR3ugQP\nMlr4zrhd9xKZ0KZKiYmtJH+ak4OM4L3FbT0owUZPyjLSlhMtJVcoRp5CJsjAMBUG\nSvD8RX+T01wzox/Qb+lnnNnOlaWpqu8eoOenybxKp1a9ULzIVvN/LAcc+14vioFq\n2swRWtmocBAs8QR9n4uvbpiYvS8eYueDCWMM4fvFfBhaDZ3N9IbtySh3SpFdQDhw\nYbjM2rxXiyLGxB4Bol7QTv4zHif7Zt89FReT/NBy4rzaskDJY5L6xmY=\n-----END CERTIFICATE-----\n',
+ * private_key:
+ * '-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n',
+ * });
+ * ```
+ */
+ create(
+ params: ZoneCertificateCreateParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { zone_id, ...body } = params;
+ return (
+ this._client.post(`/zones/${zone_id}/origin_tls_client_auth`, { body, ...options }) as Core.APIPromise<{
+ result: ZoneCertificateCreateResponse;
+ }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * List Certificates
+ *
+ * @example
+ * ```ts
+ * // Automatically fetches more pages as needed.
+ * for await (const zoneCertificateListResponse of client.originTLSClientAuth.zoneCertificates.list(
+ * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
+ * )) {
+ * // ...
+ * }
+ * ```
+ */
+ list(
+ params: ZoneCertificateListParams,
+ options?: Core.RequestOptions,
+ ): Core.PagePromise {
+ const { zone_id } = params;
+ return this._client.getAPIList(
+ `/zones/${zone_id}/origin_tls_client_auth`,
+ ZoneCertificateListResponsesSinglePage,
+ options,
+ );
+ }
+
+ /**
+ * Delete Certificate
+ *
+ * @example
+ * ```ts
+ * const zoneCertificate =
+ * await client.originTLSClientAuth.zoneCertificates.delete(
+ * '023e105f4ecef8ad9ca31a8372d0c353',
+ * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
+ * );
+ * ```
+ */
+ delete(
+ certificateId: string,
+ params: ZoneCertificateDeleteParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { zone_id } = params;
+ return (
+ this._client.delete(
+ `/zones/${zone_id}/origin_tls_client_auth/${certificateId}`,
+ options,
+ ) as Core.APIPromise<{ result: ZoneCertificateDeleteResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Get Certificate Details
+ *
+ * @example
+ * ```ts
+ * const zoneCertificate =
+ * await client.originTLSClientAuth.zoneCertificates.get(
+ * '023e105f4ecef8ad9ca31a8372d0c353',
+ * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
+ * );
+ * ```
+ */
+ get(
+ certificateId: string,
+ params: ZoneCertificateGetParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { zone_id } = params;
+ return (
+ this._client.get(
+ `/zones/${zone_id}/origin_tls_client_auth/${certificateId}`,
+ options,
+ ) as Core.APIPromise<{ result: ZoneCertificateGetResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+}
+
+export class ZoneCertificateListResponsesSinglePage extends SinglePage {}
+
+export interface ZoneAuthenticatedOriginPull {
+ /**
+ * Identifier.
+ */
+ id?: string;
+
+ /**
+ * The zone's leaf certificate.
+ */
+ certificate?: string;
+
+ /**
+ * When the certificate from the authority expires.
+ */
+ expires_on?: string;
+
+ /**
+ * The certificate authority that issued the certificate.
+ */
+ issuer?: string;
+
+ /**
+ * The type of hash used for the certificate.
+ */
+ signature?: string;
+
+ /**
+ * Status of the certificate activation.
+ */
+ status?:
+ | 'initializing'
+ | 'pending_deployment'
+ | 'pending_deletion'
+ | 'active'
+ | 'deleted'
+ | 'deployment_timed_out'
+ | 'deletion_timed_out';
+
+ /**
+ * This is the time the certificate was uploaded.
+ */
+ uploaded_on?: string;
+}
+
+export interface ZoneCertificateCreateResponse extends ZoneAuthenticatedOriginPull {
+ /**
+ * Identifier.
+ */
+ id?: string;
+
+ /**
+ * The zone's leaf certificate.
+ */
+ certificate?: string;
+
+ /**
+ * Indicates whether zone-level authenticated origin pulls is enabled.
+ */
+ enabled?: boolean;
+
+ /**
+ * The zone's private key.
+ */
+ private_key?: string;
+}
+
+export interface ZoneCertificateListResponse extends ZoneAuthenticatedOriginPull {
+ /**
+ * Identifier.
+ */
+ id?: string;
+
+ /**
+ * The zone's leaf certificate.
+ */
+ certificate?: string;
+
+ /**
+ * Indicates whether zone-level authenticated origin pulls is enabled.
+ */
+ enabled?: boolean;
+
+ /**
+ * The zone's private key.
+ */
+ private_key?: string;
+}
+
+export interface ZoneCertificateDeleteResponse extends ZoneAuthenticatedOriginPull {
+ /**
+ * Identifier.
+ */
+ id?: string;
+
+ /**
+ * The zone's leaf certificate.
+ */
+ certificate?: string;
+
+ /**
+ * Indicates whether zone-level authenticated origin pulls is enabled.
+ */
+ enabled?: boolean;
+
+ /**
+ * The zone's private key.
+ */
+ private_key?: string;
+}
+
+export interface ZoneCertificateGetResponse extends ZoneAuthenticatedOriginPull {
+ /**
+ * Identifier.
+ */
+ id?: string;
+
+ /**
+ * The zone's leaf certificate.
+ */
+ certificate?: string;
+
+ /**
+ * Indicates whether zone-level authenticated origin pulls is enabled.
+ */
+ enabled?: boolean;
+
+ /**
+ * The zone's private key.
+ */
+ private_key?: string;
+}
+
+export interface ZoneCertificateCreateParams {
+ /**
+ * Path param: Identifier.
+ */
+ zone_id: string;
+
+ /**
+ * Body param: The zone's leaf certificate.
+ */
+ certificate: string;
+
+ /**
+ * Body param: The zone's private key.
+ */
+ private_key: string;
+}
+
+export interface ZoneCertificateListParams {
+ /**
+ * Identifier.
+ */
+ zone_id: string;
+}
+
+export interface ZoneCertificateDeleteParams {
+ /**
+ * Identifier.
+ */
+ zone_id: string;
+}
+
+export interface ZoneCertificateGetParams {
+ /**
+ * Identifier.
+ */
+ zone_id: string;
+}
+
+ZoneCertificates.ZoneCertificateListResponsesSinglePage = ZoneCertificateListResponsesSinglePage;
+
+export declare namespace ZoneCertificates {
+ export {
+ type ZoneAuthenticatedOriginPull as ZoneAuthenticatedOriginPull,
+ type ZoneCertificateCreateResponse as ZoneCertificateCreateResponse,
+ type ZoneCertificateListResponse as ZoneCertificateListResponse,
+ type ZoneCertificateDeleteResponse as ZoneCertificateDeleteResponse,
+ type ZoneCertificateGetResponse as ZoneCertificateGetResponse,
+ ZoneCertificateListResponsesSinglePage as ZoneCertificateListResponsesSinglePage,
+ type ZoneCertificateCreateParams as ZoneCertificateCreateParams,
+ type ZoneCertificateListParams as ZoneCertificateListParams,
+ type ZoneCertificateDeleteParams as ZoneCertificateDeleteParams,
+ type ZoneCertificateGetParams as ZoneCertificateGetParams,
+ };
+}
diff --git a/src/resources/pipelines/pipelines.ts b/src/resources/pipelines/pipelines.ts
index ebe126d177..0bd75928cd 100644
--- a/src/resources/pipelines/pipelines.ts
+++ b/src/resources/pipelines/pipelines.ts
@@ -1022,7 +1022,7 @@ export interface PipelineCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
destination: PipelineCreateParams.Destination;
@@ -1032,7 +1032,7 @@ export interface PipelineCreateParams {
name: string;
/**
- * Body param:
+ * Body param
*/
source: Array<
| PipelineCreateParams.CloudflarePipelinesWorkersPipelinesHTTPSource
@@ -1176,7 +1176,7 @@ export interface PipelineUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
destination: PipelineUpdateParams.Destination;
@@ -1186,7 +1186,7 @@ export interface PipelineUpdateParams {
name: string;
/**
- * Body param:
+ * Body param
*/
source: Array<
| PipelineUpdateParams.CloudflarePipelinesWorkersPipelinesHTTPSource
diff --git a/src/resources/pipelines/sinks.ts b/src/resources/pipelines/sinks.ts
index bc79abd008..75e1a12a15 100644
--- a/src/resources/pipelines/sinks.ts
+++ b/src/resources/pipelines/sinks.ts
@@ -1219,12 +1219,12 @@ export interface SinkCreateParams {
| SinkCreateParams.CloudflarePipelinesR2DataCatalogTable;
/**
- * Body param:
+ * Body param
*/
format?: SinkCreateParams.Json | SinkCreateParams.Parquet;
/**
- * Body param:
+ * Body param
*/
schema?: SinkCreateParams.Schema;
}
@@ -1570,7 +1570,7 @@ export interface SinkListParams extends V4PagePaginationArrayParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
pipeline_id?: string;
}
diff --git a/src/resources/pipelines/streams.ts b/src/resources/pipelines/streams.ts
index 8c0537e878..e45f4f47e3 100644
--- a/src/resources/pipelines/streams.ts
+++ b/src/resources/pipelines/streams.ts
@@ -944,22 +944,22 @@ export interface StreamCreateParams {
name: string;
/**
- * Body param:
+ * Body param
*/
format?: StreamCreateParams.Json | StreamCreateParams.Parquet;
/**
- * Body param:
+ * Body param
*/
http?: StreamCreateParams.HTTP;
/**
- * Body param:
+ * Body param
*/
schema?: StreamCreateParams.Schema;
/**
- * Body param:
+ * Body param
*/
worker_binding?: StreamCreateParams.WorkerBinding;
}
@@ -1178,12 +1178,12 @@ export interface StreamUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
http?: StreamUpdateParams.HTTP;
/**
- * Body param:
+ * Body param
*/
worker_binding?: StreamUpdateParams.WorkerBinding;
}
diff --git a/src/resources/queues/consumers.ts b/src/resources/queues/consumers.ts
index 43eae71410..80f9fe36e1 100644
--- a/src/resources/queues/consumers.ts
+++ b/src/resources/queues/consumers.ts
@@ -263,7 +263,7 @@ export declare namespace ConsumerCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
dead_letter_queue?: string;
@@ -273,12 +273,12 @@ export declare namespace ConsumerCreateParams {
script_name?: string;
/**
- * Body param:
+ * Body param
*/
settings?: MqWorkerConsumer.Settings;
/**
- * Body param:
+ * Body param
*/
type?: 'worker';
}
@@ -322,17 +322,17 @@ export declare namespace ConsumerCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
dead_letter_queue?: string;
/**
- * Body param:
+ * Body param
*/
settings?: MqHTTPConsumer.Settings;
/**
- * Body param:
+ * Body param
*/
type?: 'http_pull';
}
@@ -376,7 +376,7 @@ export declare namespace ConsumerUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
dead_letter_queue?: string;
@@ -386,12 +386,12 @@ export declare namespace ConsumerUpdateParams {
script_name?: string;
/**
- * Body param:
+ * Body param
*/
settings?: MqWorkerConsumer.Settings;
/**
- * Body param:
+ * Body param
*/
type?: 'worker';
}
@@ -435,17 +435,17 @@ export declare namespace ConsumerUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
dead_letter_queue?: string;
/**
- * Body param:
+ * Body param
*/
settings?: MqHTTPConsumer.Settings;
/**
- * Body param:
+ * Body param
*/
type?: 'http_pull';
}
diff --git a/src/resources/queues/messages.ts b/src/resources/queues/messages.ts
index 3557b14318..7d1ef35ee2 100644
--- a/src/resources/queues/messages.ts
+++ b/src/resources/queues/messages.ts
@@ -171,12 +171,12 @@ export interface MessageAckParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
acks?: Array;
/**
- * Body param:
+ * Body param
*/
retries?: Array;
}
@@ -218,7 +218,7 @@ export interface MessageBulkPushParams {
delay_seconds?: number;
/**
- * Body param:
+ * Body param
*/
messages?: Array;
}
@@ -277,12 +277,12 @@ export declare namespace MessagePushParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body?: string;
/**
- * Body param:
+ * Body param
*/
content_type?: 'text';
@@ -300,12 +300,12 @@ export declare namespace MessagePushParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body?: unknown;
/**
- * Body param:
+ * Body param
*/
content_type?: 'json';
diff --git a/src/resources/queues/queues.ts b/src/resources/queues/queues.ts
index 836f42bd41..211639311f 100644
--- a/src/resources/queues/queues.ts
+++ b/src/resources/queues/queues.ts
@@ -245,7 +245,7 @@ export interface QueueCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
queue_name: string;
}
@@ -257,12 +257,12 @@ export interface QueueUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
queue_name?: string;
/**
- * Body param:
+ * Body param
*/
settings?: QueueUpdateParams.Settings;
}
@@ -307,12 +307,12 @@ export interface QueueEditParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
queue_name?: string;
/**
- * Body param:
+ * Body param
*/
settings?: QueueEditParams.Settings;
}
diff --git a/src/resources/r2/buckets/cors.ts b/src/resources/r2/buckets/cors.ts
index 4510c1d09b..553be32005 100644
--- a/src/resources/r2/buckets/cors.ts
+++ b/src/resources/r2/buckets/cors.ts
@@ -167,7 +167,7 @@ export interface CORSUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
rules?: Array;
diff --git a/src/resources/r2/buckets/lifecycle.ts b/src/resources/r2/buckets/lifecycle.ts
index 3903139ecd..c1e7958eed 100644
--- a/src/resources/r2/buckets/lifecycle.ts
+++ b/src/resources/r2/buckets/lifecycle.ts
@@ -217,7 +217,7 @@ export interface LifecycleUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
rules?: Array;
diff --git a/src/resources/r2/buckets/locks.ts b/src/resources/r2/buckets/locks.ts
index ee01f31ede..752b03c136 100644
--- a/src/resources/r2/buckets/locks.ts
+++ b/src/resources/r2/buckets/locks.ts
@@ -134,7 +134,7 @@ export interface LockUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
rules?: Array;
diff --git a/src/resources/r2/super-slurper/connectivity-precheck.ts b/src/resources/r2/super-slurper/connectivity-precheck.ts
index 2283824388..349ab9fd56 100644
--- a/src/resources/r2/super-slurper/connectivity-precheck.ts
+++ b/src/resources/r2/super-slurper/connectivity-precheck.ts
@@ -82,37 +82,37 @@ export type ConnectivityPrecheckSourceParams =
export declare namespace ConnectivityPrecheckSourceParams {
export interface R2SlurperS3SourceSchema {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
bucket: string;
/**
- * Body param:
+ * Body param
*/
secret: R2SlurperS3SourceSchema.Secret;
/**
- * Body param:
+ * Body param
*/
vendor: 's3';
/**
- * Body param:
+ * Body param
*/
endpoint?: string | null;
/**
- * Body param:
+ * Body param
*/
pathPrefix?: string | null;
/**
- * Body param:
+ * Body param
*/
region?: string | null;
}
@@ -127,27 +127,27 @@ export declare namespace ConnectivityPrecheckSourceParams {
export interface R2SlurperGcsSourceSchema {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
bucket: string;
/**
- * Body param:
+ * Body param
*/
secret: R2SlurperGcsSourceSchema.Secret;
/**
- * Body param:
+ * Body param
*/
vendor: 'gcs';
/**
- * Body param:
+ * Body param
*/
pathPrefix?: string | null;
}
@@ -162,32 +162,32 @@ export declare namespace ConnectivityPrecheckSourceParams {
export interface R2SlurperR2SourceSchema {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
bucket: string;
/**
- * Body param:
+ * Body param
*/
secret: R2SlurperR2SourceSchema.Secret;
/**
- * Body param:
+ * Body param
*/
vendor: SippyAPI.ProviderParam;
/**
- * Body param:
+ * Body param
*/
jurisdiction?: 'default' | 'eu' | 'fedramp';
/**
- * Body param:
+ * Body param
*/
pathPrefix?: string | null;
}
@@ -203,27 +203,27 @@ export declare namespace ConnectivityPrecheckSourceParams {
export interface ConnectivityPrecheckTargetParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
bucket: string;
/**
- * Body param:
+ * Body param
*/
secret: ConnectivityPrecheckTargetParams.Secret;
/**
- * Body param:
+ * Body param
*/
vendor: SippyAPI.ProviderParam;
/**
- * Body param:
+ * Body param
*/
jurisdiction?: 'default' | 'eu' | 'fedramp';
}
diff --git a/src/resources/r2/super-slurper/jobs/jobs.ts b/src/resources/r2/super-slurper/jobs/jobs.ts
index c57e763e78..0ce937df7d 100644
--- a/src/resources/r2/super-slurper/jobs/jobs.ts
+++ b/src/resources/r2/super-slurper/jobs/jobs.ts
@@ -347,17 +347,17 @@ export type JobResumeResponse = string;
export interface JobCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
overwrite?: boolean;
/**
- * Body param:
+ * Body param
*/
source?:
| JobCreateParams.R2SlurperS3SourceSchema
@@ -365,7 +365,7 @@ export interface JobCreateParams {
| JobCreateParams.R2SlurperR2SourceSchema;
/**
- * Body param:
+ * Body param
*/
target?: JobCreateParams.Target;
}
@@ -452,17 +452,17 @@ export namespace JobCreateParams {
export interface JobListParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
limit?: number;
/**
- * Query param:
+ * Query param
*/
offset?: number;
}
diff --git a/src/resources/r2/super-slurper/jobs/logs.ts b/src/resources/r2/super-slurper/jobs/logs.ts
index d282bef9d7..05f206ac9c 100644
--- a/src/resources/r2/super-slurper/jobs/logs.ts
+++ b/src/resources/r2/super-slurper/jobs/logs.ts
@@ -64,17 +64,17 @@ export interface LogListResponse {
export interface LogListParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Query param:
+ * Query param
*/
limit?: number;
/**
- * Query param:
+ * Query param
*/
offset?: number;
}
diff --git a/src/resources/radar/ai/to-markdown.ts b/src/resources/radar/ai/to-markdown.ts
index b3016565e9..0b5ee4b4a4 100644
--- a/src/resources/radar/ai/to-markdown.ts
+++ b/src/resources/radar/ai/to-markdown.ts
@@ -47,7 +47,7 @@ export interface ToMarkdownCreateResponse {
export interface ToMarkdownCreateParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
}
diff --git a/src/resources/radar/datasets.ts b/src/resources/radar/datasets.ts
index 81c009e99b..b6caac1492 100644
--- a/src/resources/radar/datasets.ts
+++ b/src/resources/radar/datasets.ts
@@ -134,7 +134,7 @@ export interface DatasetListParams {
export interface DatasetDownloadParams {
/**
- * Body param:
+ * Body param
*/
datasetId: number;
diff --git a/src/resources/realtime-kit/active-session.ts b/src/resources/realtime-kit/active-session.ts
index 167a4a8a41..dee7f298b1 100644
--- a/src/resources/realtime-kit/active-session.ts
+++ b/src/resources/realtime-kit/active-session.ts
@@ -368,12 +368,12 @@ export interface ActiveSessionKickParticipantsParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
custom_participant_ids: Array;
/**
- * Body param:
+ * Body param
*/
participant_ids: Array;
}
diff --git a/src/resources/realtime-kit/apps.ts b/src/resources/realtime-kit/apps.ts
index cab8de4165..322180ca80 100644
--- a/src/resources/realtime-kit/apps.ts
+++ b/src/resources/realtime-kit/apps.ts
@@ -83,12 +83,12 @@ export interface AppGetParams {
export interface AppPostParams {
/**
- * Path param:
+ * Path param
*/
account_id: string;
/**
- * Body param:
+ * Body param
*/
name: string;
}
diff --git a/src/resources/realtime-kit/livestreams.ts b/src/resources/realtime-kit/livestreams.ts
index e1875a77e7..fd95452447 100644
--- a/src/resources/realtime-kit/livestreams.ts
+++ b/src/resources/realtime-kit/livestreams.ts
@@ -1020,12 +1020,12 @@ export interface LivestreamStartLivestreamingAMeetingParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
name?: string | null;
/**
- * Body param:
+ * Body param
*/
video_config?: LivestreamStartLivestreamingAMeetingParams.VideoConfig;
}
diff --git a/src/resources/realtime-kit/meetings.ts b/src/resources/realtime-kit/meetings.ts
index 79a3ac7b11..94ed2e1700 100644
--- a/src/resources/realtime-kit/meetings.ts
+++ b/src/resources/realtime-kit/meetings.ts
@@ -2503,7 +2503,7 @@ export interface MeetingGetMeetingByIDParams {
account_id: string;
/**
- * Query param:
+ * Query param
*/
name?: string;
}
diff --git a/src/resources/realtime-kit/presets.ts b/src/resources/realtime-kit/presets.ts
index 8838ed3837..37c4879a70 100644
--- a/src/resources/realtime-kit/presets.ts
+++ b/src/resources/realtime-kit/presets.ts
@@ -1898,7 +1898,7 @@ export interface PresetCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
config: PresetCreateParams.Config;
@@ -1908,12 +1908,12 @@ export interface PresetCreateParams {
name: string;
/**
- * Body param:
+ * Body param
*/
ui: PresetCreateParams.UI;
/**
- * Body param:
+ * Body param
*/
permissions?: PresetCreateParams.Permissions;
}
@@ -2321,7 +2321,7 @@ export interface PresetUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
config?: PresetUpdateParams.Config;
@@ -2331,12 +2331,12 @@ export interface PresetUpdateParams {
name?: string;
/**
- * Body param:
+ * Body param
*/
permissions?: PresetUpdateParams.Permissions;
/**
- * Body param:
+ * Body param
*/
ui?: PresetUpdateParams.UI;
}
diff --git a/src/resources/realtime-kit/recordings.ts b/src/resources/realtime-kit/recordings.ts
index 874b7ffe3c..6f7e6cc1c7 100644
--- a/src/resources/realtime-kit/recordings.ts
+++ b/src/resources/realtime-kit/recordings.ts
@@ -1184,12 +1184,12 @@ export interface RecordingGetRecordingsParams {
search?: string;
/**
- * Query param:
+ * Query param
*/
sort_by?: 'invokedTime';
/**
- * Query param:
+ * Query param
*/
sort_order?: 'ASC' | 'DESC';
@@ -1212,7 +1212,7 @@ export interface RecordingPauseResumeStopRecordingParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
action: 'stop' | 'pause' | 'resume';
}
@@ -1264,17 +1264,17 @@ export interface RecordingStartRecordingsParams {
meeting_id?: string;
/**
- * Body param:
+ * Body param
*/
realtimekit_bucket_config?: RecordingStartRecordingsParams.RealtimekitBucketConfig;
/**
- * Body param:
+ * Body param
*/
rtmp_out_config?: RecordingStartRecordingsParams.RtmpOutConfig;
/**
- * Body param:
+ * Body param
*/
storage_config?: RecordingStartRecordingsParams.StorageConfig | null;
@@ -1284,7 +1284,7 @@ export interface RecordingStartRecordingsParams {
url?: string;
/**
- * Body param:
+ * Body param
*/
video_config?: RecordingStartRecordingsParams.VideoConfig;
}
@@ -1485,7 +1485,7 @@ export interface RecordingStartTrackRecordingParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
layers: { [key: string]: RecordingStartTrackRecordingParams.Layers };
diff --git a/src/resources/realtime-kit/sessions.ts b/src/resources/realtime-kit/sessions.ts
index 2d0b7ef728..a89a1bd01b 100644
--- a/src/resources/realtime-kit/sessions.ts
+++ b/src/resources/realtime-kit/sessions.ts
@@ -1345,12 +1345,12 @@ export interface SessionGetSessionParticipantsParams {
search?: string;
/**
- * Query param:
+ * Query param
*/
sort_by?: 'joinedAt' | 'duration';
/**
- * Query param:
+ * Query param
*/
sort_order?: 'ASC' | 'DESC';
@@ -1400,7 +1400,7 @@ export interface SessionGetSessionsParams {
page_no?: number;
/**
- * Query param:
+ * Query param
*/
participants?: string;
@@ -1416,12 +1416,12 @@ export interface SessionGetSessionsParams {
search?: string;
/**
- * Query param:
+ * Query param
*/
sort_by?: 'minutesConsumed' | 'createdAt';
/**
- * Query param:
+ * Query param
*/
sort_order?: 'ASC' | 'DESC';
@@ -1432,7 +1432,7 @@ export interface SessionGetSessionsParams {
start_time?: string;
/**
- * Query param:
+ * Query param
*/
status?: 'LIVE' | 'ENDED';
}
diff --git a/src/resources/realtime-kit/webhooks.ts b/src/resources/realtime-kit/webhooks.ts
index a64eb8e013..87da10e684 100644
--- a/src/resources/realtime-kit/webhooks.ts
+++ b/src/resources/realtime-kit/webhooks.ts
@@ -558,7 +558,7 @@ export interface WebhookEditWebhookParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
enabled?: boolean;
diff --git a/src/resources/request-tracers/traces.ts b/src/resources/request-tracers/traces.ts
index 3f5b99c978..c2a00e60b9 100644
--- a/src/resources/request-tracers/traces.ts
+++ b/src/resources/request-tracers/traces.ts
@@ -124,7 +124,7 @@ export interface TraceCreateParams {
url: string;
/**
- * Body param:
+ * Body param
*/
body?: TraceCreateParams.Body;
diff --git a/src/resources/resource-sharing/resource-sharing.ts b/src/resources/resource-sharing/resource-sharing.ts
index a020353393..9f3b768fae 100644
--- a/src/resources/resource-sharing/resource-sharing.ts
+++ b/src/resources/resource-sharing/resource-sharing.ts
@@ -829,12 +829,12 @@ export interface ResourceSharingCreateParams {
name: string;
/**
- * Body param:
+ * Body param
*/
recipients: Array;
/**
- * Body param:
+ * Body param
*/
resources: Array;
}
diff --git a/src/resources/rules/lists/items.ts b/src/resources/rules/lists/items.ts
index fa8de075e8..bf3a94d7d4 100644
--- a/src/resources/rules/lists/items.ts
+++ b/src/resources/rules/lists/items.ts
@@ -438,7 +438,7 @@ export interface ItemCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array<
| ItemCreateParams.ListsListItemIPComment
@@ -506,7 +506,7 @@ export interface ItemUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array<
| ItemUpdateParams.ListsListItemIPComment
@@ -594,7 +594,7 @@ export interface ItemDeleteParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
items?: Array;
}
diff --git a/src/resources/rum/rules.ts b/src/resources/rum/rules.ts
index 5ebec69721..e6ad3f1877 100644
--- a/src/resources/rum/rules.ts
+++ b/src/resources/rum/rules.ts
@@ -238,7 +238,7 @@ export interface RuleCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
host?: string;
@@ -253,7 +253,7 @@ export interface RuleCreateParams {
is_paused?: boolean;
/**
- * Body param:
+ * Body param
*/
paths?: Array;
}
@@ -265,7 +265,7 @@ export interface RuleUpdateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
host?: string;
@@ -280,7 +280,7 @@ export interface RuleUpdateParams {
is_paused?: boolean;
/**
- * Body param:
+ * Body param
*/
paths?: Array;
}
diff --git a/src/resources/schema-validation/settings/operations.ts b/src/resources/schema-validation/settings/operations.ts
index 2ee8cd95f2..8962e3c696 100644
--- a/src/resources/schema-validation/settings/operations.ts
+++ b/src/resources/schema-validation/settings/operations.ts
@@ -274,7 +274,7 @@ export interface OperationBulkEditParams {
zone_id: string;
/**
- * Body param:
+ * Body param
*/
body: { [key: string]: OperationBulkEditParams.Body };
}
diff --git a/src/resources/secrets-store/stores/secrets.ts b/src/resources/secrets-store/stores/secrets.ts
index ec0ca694ed..f3cbbcf5f5 100644
--- a/src/resources/secrets-store/stores/secrets.ts
+++ b/src/resources/secrets-store/stores/secrets.ts
@@ -462,7 +462,7 @@ export interface SecretCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array;
}
diff --git a/src/resources/secrets-store/stores/stores.ts b/src/resources/secrets-store/stores/stores.ts
index 296961d915..690411a92f 100644
--- a/src/resources/secrets-store/stores/stores.ts
+++ b/src/resources/secrets-store/stores/stores.ts
@@ -184,7 +184,7 @@ export interface StoreCreateParams {
account_id: string;
/**
- * Body param:
+ * Body param
*/
body: Array;
}
diff --git a/src/resources/security-center/insights/class.ts b/src/resources/security-center/insights/class.ts
index 124e4ed2df..ca1e67c634 100644
--- a/src/resources/security-center/insights/class.ts
+++ b/src/resources/security-center/insights/class.ts
@@ -8,7 +8,7 @@ import { CloudflareError } from '../../../error';
export class Class extends APIResource {
/**
- * Get Security Center Insight Counts by Class
+ * Retrieves Security Center Insight Counts by Class
*/
get(params?: ClassGetParams, options?: Core.RequestOptions): Core.APIPromise;
get(options?: Core.RequestOptions): Core.APIPromise;
@@ -69,57 +69,57 @@ export interface ClassGetParams {
zone_id?: string;
/**
- * Query param:
+ * Query param
*/
dismissed?: boolean;
/**
- * Query param:
+ * Query param
*/
issue_class?: Array;
/**
- * Query param:
+ * Query param
*/
'issue_class~neq'?: Array