diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 7aa3d56709..fd087344cc 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "4.5.0"
+ ".": "4.6.0"
}
diff --git a/.stats.yml b/.stats.yml
index 8839c77cc5..42f3fa44ce 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
-configured_endpoints: 1769
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5e53659eea1b4f1fb11addaddb82880c177d8fa3e7a93f0d664a65e43ac526f4.yml
-openapi_spec_hash: 3e0f59ac2722028954566a4c850e8849
-config_hash: bafeb7666d2b7868c9d4ab8f0cc686e1
+configured_endpoints: 1793
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4bbd402a61e0b42bf213df8e1360ca06dcf9c21d3a71471727023442b4402ad7.yml
+openapi_spec_hash: fde4742eecb70a0ef6fb8896f7a4c2d2
+config_hash: de4c81cee29cd7dd907279e8916b334f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cc9fa1398c..3e6c7a743d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,103 @@
# Changelog
+## 4.6.0 (2025-08-11)
+
+Full Changelog: [v4.5.0...v4.6.0](https://github.com/cloudflare/cloudflare-typescript/compare/v4.5.0...v4.6.0)
+
+### Features
+
+* **api:** api update ([707c8e8](https://github.com/cloudflare/cloudflare-typescript/commit/707c8e8281b14ba1453d4995184f25835c1e7b48))
+* **api:** api update ([f1abb27](https://github.com/cloudflare/cloudflare-typescript/commit/f1abb2726ee7aa37f10dbf477f6251019d2f5a8f))
+* **api:** api update ([5128329](https://github.com/cloudflare/cloudflare-typescript/commit/5128329b279ee0936fbb18da8fe0177dcabeeb70))
+* **api:** api update ([4203673](https://github.com/cloudflare/cloudflare-typescript/commit/42036736b0a7326015f3eb37073afda70d3b278c))
+* **api:** api update ([8339d1b](https://github.com/cloudflare/cloudflare-typescript/commit/8339d1bf24de714a26fe110b2cd254f15bf43d5a))
+* **api:** api update ([56ec6a4](https://github.com/cloudflare/cloudflare-typescript/commit/56ec6a4da564399857e86ee89dfa3616425cb684))
+* **api:** api update ([455b40f](https://github.com/cloudflare/cloudflare-typescript/commit/455b40fbda3008fe61cfa605b6fb5fbfee50f9e1))
+* **api:** api update ([faca212](https://github.com/cloudflare/cloudflare-typescript/commit/faca212882af72073b7e5ff9dd474d6ed181013e))
+* **api:** api update ([7d842ba](https://github.com/cloudflare/cloudflare-typescript/commit/7d842babdf5ef180edf499fcb9691dc0f871b55c))
+* **api:** api update ([fef43ec](https://github.com/cloudflare/cloudflare-typescript/commit/fef43ec41c8edad0bd394a1d63a6bf974f9b1426))
+* **api:** api update ([0239b4f](https://github.com/cloudflare/cloudflare-typescript/commit/0239b4f5af23bc80f13cfab247250ea834e81de5))
+* **api:** api update ([b08950b](https://github.com/cloudflare/cloudflare-typescript/commit/b08950b360c0d5f62b2b464fefc779046e2fd95e))
+* **api:** api update ([7b8e864](https://github.com/cloudflare/cloudflare-typescript/commit/7b8e864ccd6a5113f0dc19c795c745e4276839dd))
+* **api:** api update ([67d59b8](https://github.com/cloudflare/cloudflare-typescript/commit/67d59b8e48eb61a8a6e8fc7a6d7865e435087605))
+* **api:** api update ([e75721c](https://github.com/cloudflare/cloudflare-typescript/commit/e75721c672a7f4a4ac6061f09c5896f3459537b7))
+* **api:** api update ([adb8ef5](https://github.com/cloudflare/cloudflare-typescript/commit/adb8ef593d8b62a2cd74c6aae39ce2760eb67a19))
+* **api:** api update ([b6ae6c8](https://github.com/cloudflare/cloudflare-typescript/commit/b6ae6c868b6a9f73bfed54f68187bf5c1a0a458e))
+* **api:** api update ([4e126f6](https://github.com/cloudflare/cloudflare-typescript/commit/4e126f6d036c9f4e581889de924aa48ed40b062d))
+* **api:** api update ([cf5423b](https://github.com/cloudflare/cloudflare-typescript/commit/cf5423bd6bc4eda20d8be971fe6f91b079759829))
+* **api:** api update ([2cf7645](https://github.com/cloudflare/cloudflare-typescript/commit/2cf76458a7900f98a6ff5ebf738a853e77cde10c))
+* **api:** api update ([db79b6e](https://github.com/cloudflare/cloudflare-typescript/commit/db79b6eff163e6d45de81ea5b6a7a74f5879db96))
+* **api:** api update ([1efe99b](https://github.com/cloudflare/cloudflare-typescript/commit/1efe99b7cc816478cfe2bcf8b8b029ee3cf0a8e0))
+* **api:** api update ([298d367](https://github.com/cloudflare/cloudflare-typescript/commit/298d367ca7b84e8e647554ee6143e7fd87aba4ff))
+* **api:** api update ([c7a6dfe](https://github.com/cloudflare/cloudflare-typescript/commit/c7a6dfeaf7c4c3d083d297d4fec22a6f52edbb2c))
+* **api:** api update ([278b0fc](https://github.com/cloudflare/cloudflare-typescript/commit/278b0fcab7ab5dcca86a8960dd05bb46d97634b5))
+* **api:** api update ([29a5177](https://github.com/cloudflare/cloudflare-typescript/commit/29a5177759404566a8c01c46988f57e7ec8f850f))
+* **api:** api update ([9d769e8](https://github.com/cloudflare/cloudflare-typescript/commit/9d769e8821e8b9c2c9ac56f432458c03d1789958))
+* **api:** api update ([2d545a0](https://github.com/cloudflare/cloudflare-typescript/commit/2d545a0f5ec14b641755888edd5526958f494161))
+* **api:** api update ([9e95597](https://github.com/cloudflare/cloudflare-typescript/commit/9e955973d0599b4d1eb3b11e01090dd40e7c3c14))
+* **api:** api update ([5f69e48](https://github.com/cloudflare/cloudflare-typescript/commit/5f69e4827a734597369cb9695a38529e7067f7f9))
+* **api:** api update ([686d461](https://github.com/cloudflare/cloudflare-typescript/commit/686d46139316ca172a934668d6043eb608f60ae7))
+* **api:** api update ([8069564](https://github.com/cloudflare/cloudflare-typescript/commit/8069564ea4cdd6094f0eb5c03b0e7ba9906ba4b0))
+* **api:** api update ([6760fad](https://github.com/cloudflare/cloudflare-typescript/commit/6760fad45f77594720e245eb14c02292273858ab))
+* **api:** api update ([b612a6b](https://github.com/cloudflare/cloudflare-typescript/commit/b612a6b3a9956b190cfa73263bcd8d7fcadd9e1f))
+* **api:** api update ([2a6608c](https://github.com/cloudflare/cloudflare-typescript/commit/2a6608c675a84da9791457ed12cf43fcb8c73d22))
+* **api:** api update ([0672db1](https://github.com/cloudflare/cloudflare-typescript/commit/0672db1eaaa43679f36b0b772b79ca6679783889))
+* **api:** api update ([0af28fa](https://github.com/cloudflare/cloudflare-typescript/commit/0af28fa5f637984c8e15df6b0f0a07b3329e8a7d))
+* **api:** api update ([f137333](https://github.com/cloudflare/cloudflare-typescript/commit/f137333345c22547290d25df05786a1c3b42f212))
+* **api:** api update ([650101c](https://github.com/cloudflare/cloudflare-typescript/commit/650101c9e51fa0ac85e4ed2d6bae56df1b9a602e))
+* **api:** api update ([b7e31b0](https://github.com/cloudflare/cloudflare-typescript/commit/b7e31b03815ae55e92fe394714d8e48d521520b4))
+* **client:** support file upload requests ([0a4e404](https://github.com/cloudflare/cloudflare-typescript/commit/0a4e4049bcf2d6ea77fd3e3776f297e95f8bd555))
+
+
+### Bug Fixes
+
+* **methods:** define methods with parameters and binary body correctly ([9e42614](https://github.com/cloudflare/cloudflare-typescript/commit/9e426141f704602afe31da83f5dad6a1babfcc44))
+
+
+### Chores
+
+* **api:** update composite API spec ([a1301f0](https://github.com/cloudflare/cloudflare-typescript/commit/a1301f033bec4e53d382744bc2ef5c22c2139595))
+* **api:** upload OpenAPI schema from api-schemas ([f30e927](https://github.com/cloudflare/cloudflare-typescript/commit/f30e927cf6d89e3580bdd77e0a8e2ae91bd9da56))
+* **api:** upload stainless config from cloudflare-config ([5f2237b](https://github.com/cloudflare/cloudflare-typescript/commit/5f2237bc35fb24a7c300d50f1fde80e019427934))
+* **api:** upload stainless config from cloudflare-config ([e6f0bcc](https://github.com/cloudflare/cloudflare-typescript/commit/e6f0bcc64c514667b751b85501bf17719be200c9))
+* **api:** upload stainless config from cloudflare-config ([6750686](https://github.com/cloudflare/cloudflare-typescript/commit/6750686b8c3d19bb3f486d741ad9550039dbad02))
+* **api:** upload stainless config from cloudflare-config ([e154418](https://github.com/cloudflare/cloudflare-typescript/commit/e1544186b24a6abcf13d974bcc58f0f2b6885de0))
+* **api:** upload stainless config from cloudflare-config ([b4e0415](https://github.com/cloudflare/cloudflare-typescript/commit/b4e04158da1bb348cfb08f692cfd64a10708c23f))
+* **api:** upload stainless config from cloudflare-config ([ccf8a40](https://github.com/cloudflare/cloudflare-typescript/commit/ccf8a40a0fa8ecff2b38dc6902a793313ed29e42))
+* **api:** upload stainless config from cloudflare-config ([26e5829](https://github.com/cloudflare/cloudflare-typescript/commit/26e58297407804597161880791d7ca8c541e88a8))
+* **api:** upload stainless config from cloudflare-config ([57c2584](https://github.com/cloudflare/cloudflare-typescript/commit/57c2584c49bca7da6c1475f6b8192e567434300f))
+* **api:** upload stainless config from cloudflare-config ([b80775e](https://github.com/cloudflare/cloudflare-typescript/commit/b80775eb66d13ac543c11645f34186cd00988852))
+* **api:** upload stainless config from cloudflare-config ([5a4fa8e](https://github.com/cloudflare/cloudflare-typescript/commit/5a4fa8e74a6043b5948c28a08e0d885ad5e94c55))
+* **api:** upload stainless config from cloudflare-config ([c79965d](https://github.com/cloudflare/cloudflare-typescript/commit/c79965da601db233f93527a350ea9eb6478b1595))
+* **api:** upload stainless config from cloudflare-config ([b97353d](https://github.com/cloudflare/cloudflare-typescript/commit/b97353dff144dc1c88de4a54ec8584fd322d43e3))
+* **api:** upload stainless config from cloudflare-config ([7c24b14](https://github.com/cloudflare/cloudflare-typescript/commit/7c24b14521f92d9c80bb1a5f039c43bb33c62c1b))
+* **api:** upload stainless config from cloudflare-config ([03790cc](https://github.com/cloudflare/cloudflare-typescript/commit/03790cc32ca9e8930a770468349f346d4fb0de26))
+* **api:** upload stainless config from cloudflare-config ([72c4336](https://github.com/cloudflare/cloudflare-typescript/commit/72c433647949e8c4aa7f2323fc1b0ebb94cacf64))
+* **api:** upload stainless config from cloudflare-config ([b816588](https://github.com/cloudflare/cloudflare-typescript/commit/b8165887056f71717deaf9f15083c4266c426267))
+* **api:** upload stainless config from cloudflare-config ([afaabaa](https://github.com/cloudflare/cloudflare-typescript/commit/afaabaad39785cfa99294a320dafbee54f1ca2e6))
+* **api:** upload stainless config from cloudflare-config ([651f179](https://github.com/cloudflare/cloudflare-typescript/commit/651f179a698a0da0d25376c538187e53697ec3c9))
+* **api:** upload stainless config from cloudflare-config ([2fa76d8](https://github.com/cloudflare/cloudflare-typescript/commit/2fa76d8a3dc756f1e8e4a8e7b83cee859dfc5251))
+* **api:** upload stainless config from cloudflare-config ([579fa30](https://github.com/cloudflare/cloudflare-typescript/commit/579fa30b2ef17be56ce87cf99f6ced0eea6943b4))
+* **api:** upload stainless config from cloudflare-config ([d409ced](https://github.com/cloudflare/cloudflare-typescript/commit/d409ced1739b16275d6a426023c1bf1a6a3f3efd))
+* **api:** upload stainless config from cloudflare-config ([e0100f9](https://github.com/cloudflare/cloudflare-typescript/commit/e0100f9ca4c50847707f96b8b34d9019592f7b11))
+* **api:** upload stainless config from cloudflare-config ([4b59fc5](https://github.com/cloudflare/cloudflare-typescript/commit/4b59fc5c37537eda888f981982cd89bca48bdbb8))
+* **api:** upload stainless config from cloudflare-config ([6f512ce](https://github.com/cloudflare/cloudflare-typescript/commit/6f512ce9a09acf86f8d99b11d497e9530d58cbef))
+* **api:** upload stainless config from cloudflare-config ([acdb02e](https://github.com/cloudflare/cloudflare-typescript/commit/acdb02eda7bf53c05fdda0d636beb2d132e54fec))
+* **api:** upload stainless config from cloudflare-config ([c2327a1](https://github.com/cloudflare/cloudflare-typescript/commit/c2327a1c83aa7deecce08a5eb1a9a966a4d22b5b))
+* **api:** upload stainless config from cloudflare-config ([5dc4f71](https://github.com/cloudflare/cloudflare-typescript/commit/5dc4f7124e95ab46f1ca4e00b418bef6e1586f55))
+* **api:** upload stainless config from cloudflare-config ([7b381d8](https://github.com/cloudflare/cloudflare-typescript/commit/7b381d8d1f15579e860390de3ca13a02f590d539))
+* **api:** upload stainless config from cloudflare-config ([4da7b68](https://github.com/cloudflare/cloudflare-typescript/commit/4da7b68f759ec954c163f8304be01a0253d8095f))
+* **api:** upload stainless config from cloudflare-config ([aab4c1f](https://github.com/cloudflare/cloudflare-typescript/commit/aab4c1fe6ba01d801376bba35279352495210fcb))
+* **api:** upload stainless config from cloudflare-config ([452be6b](https://github.com/cloudflare/cloudflare-typescript/commit/452be6b9b9a6d45894b3cee30c8931ced7fd2e86))
+* **api:** upload stainless config from cloudflare-config ([3b2317c](https://github.com/cloudflare/cloudflare-typescript/commit/3b2317c217af3f35c7352148dc41a0893885855f))
+* **api:** upload stainless config from cloudflare-config ([ecd1b0f](https://github.com/cloudflare/cloudflare-typescript/commit/ecd1b0f9beb71debc60adec2f1e833079b55e0f4))
+* **api:** upload stainless config from cloudflare-config ([602dffc](https://github.com/cloudflare/cloudflare-typescript/commit/602dffcf3740c0dfb8dfb190e15c3a76174d3760))
+* **api:** upload stainless config from cloudflare-config ([afdba32](https://github.com/cloudflare/cloudflare-typescript/commit/afdba327d64702324a88c179d15bdd9ebe0eddbc))
+* **internal:** move publish config ([2bfc1d9](https://github.com/cloudflare/cloudflare-typescript/commit/2bfc1d96b7e4b3ef0a5aaf786f60e91d46bbf4cd))
+* **internal:** remove redundant imports config ([07e9e91](https://github.com/cloudflare/cloudflare-typescript/commit/07e9e91b07d9774b8d150c6109aeeb6027bbfee3))
+* **internal:** update comment in script ([6114cd0](https://github.com/cloudflare/cloudflare-typescript/commit/6114cd05308867542a61d94158c70ad28deb7ae6))
+* update @stainless-api/prism-cli to v5.15.0 ([8e313d6](https://github.com/cloudflare/cloudflare-typescript/commit/8e313d66854ac6c476b20abd364d0b3a8308ed49))
+
## 4.5.0 (2025-07-16)
Full Changelog: [v4.4.1...v4.5.0](https://github.com/cloudflare/cloudflare-typescript/compare/v4.4.1...v4.5.0)
diff --git a/api.md b/api.md
index c9384414c2..af8555c139 100644
--- a/api.md
+++ b/api.md
@@ -1420,15 +1420,17 @@ Methods:
Types:
- FirewallFilter
+- FilterDeleteResponse
+- FilterBulkDeleteResponse
Methods:
-- client.filters.create({ ...params }) -> FirewallFiltersSinglePage
+- client.filters.create([ ...body ]) -> FirewallFiltersSinglePage
- client.filters.update(filterId, { ...params }) -> FirewallFilter
- client.filters.list({ ...params }) -> FirewallFiltersV4PagePaginationArray
-- client.filters.delete(filterId, { ...params }) -> FirewallFilter
-- client.filters.bulkDelete({ ...params }) -> FirewallFiltersSinglePage
-- client.filters.bulkUpdate({ ...params }) -> FirewallFiltersSinglePage
+- client.filters.delete(filterId, { ...params }) -> FilterDeleteResponse
+- client.filters.bulkDelete({ ...params }) -> FilterBulkDeleteResponse | null
+- client.filters.bulkUpdate([ ...body ]) -> FirewallFiltersSinglePage
- client.filters.get(filterId, { ...params }) -> FirewallFilter
# Firewall
@@ -2119,13 +2121,15 @@ Methods:
Types:
- Deployment
-- DeploymentCreateResponse
-- DeploymentGetResponse
+- DeploymentListResponse
+- DeploymentDeleteResponse
Methods:
-- client.workers.scripts.deployments.create(scriptName, { ...params }) -> DeploymentCreateResponse
-- client.workers.scripts.deployments.get(scriptName, { ...params }) -> DeploymentGetResponse
+- client.workers.scripts.deployments.create(scriptName, { ...params }) -> Deployment
+- client.workers.scripts.deployments.list(scriptName, { ...params }) -> DeploymentListResponse
+- client.workers.scripts.deployments.delete(scriptName, deploymentId, { ...params }) -> DeploymentDeleteResponse
+- client.workers.scripts.deployments.get(scriptName, deploymentId, { ...params }) -> Deployment
### Versions
@@ -2294,7 +2298,7 @@ Types:
Methods:
-- client.durableObjects.namespaces.list({ ...params }) -> NamespacesSinglePage
+- client.durableObjects.namespaces.list({ ...params }) -> NamespacesV4PagePaginationArray
### Objects
@@ -2333,8 +2337,9 @@ Methods:
- client.queues.consumers.create(queueId, { ...params }) -> Consumer
- client.queues.consumers.update(queueId, consumerId, { ...params }) -> Consumer
+- client.queues.consumers.list(queueId, { ...params }) -> ConsumersSinglePage
- client.queues.consumers.delete(queueId, consumerId, { ...params }) -> ConsumerDeleteResponse
-- client.queues.consumers.get(queueId, { ...params }) -> ConsumersSinglePage
+- client.queues.consumers.get(queueId, consumerId, { ...params }) -> Consumer
## Messages
@@ -2952,24 +2957,57 @@ Methods:
Types:
- Info
-- RuleMatch
-- ScanStatus
- Submit
-- URLInfoModelResults
+- BrandProtectionSubmitResponse
+- BrandProtectionURLInfoResponse
Methods:
-- client.brandProtection.submit({ ...params }) -> Submit
-- client.brandProtection.urlInfo({ ...params }) -> Info
+- client.brandProtection.submit({ ...params }) -> BrandProtectionSubmitResponse
+- client.brandProtection.urlInfo({ ...params }) -> BrandProtectionURLInfoResponsesSinglePage
## Queries
+Methods:
+
+- client.brandProtection.queries.create({ ...params }) -> void
+- client.brandProtection.queries.delete({ ...params }) -> void
+
## Matches
+Types:
+
+- MatchDownloadResponse
+- MatchGetResponse
+
+Methods:
+
+- client.brandProtection.matches.download({ ...params }) -> MatchDownloadResponse
+- client.brandProtection.matches.get({ ...params }) -> MatchGetResponse
+
## Logos
+Types:
+
+- LogoCreateResponse
+
+Methods:
+
+- client.brandProtection.logos.create({ ...params }) -> LogoCreateResponse
+- client.brandProtection.logos.delete(logoId, { ...params }) -> void
+
## LogoMatches
+Types:
+
+- LogoMatchDownloadResponse
+- LogoMatchGetResponse
+
+Methods:
+
+- client.brandProtection.logoMatches.download({ ...params }) -> LogoMatchDownloadResponse
+- client.brandProtection.logoMatches.get({ ...params }) -> LogoMatchGetResponse
+
# Diagnostics
## Traceroutes
@@ -2982,6 +3020,25 @@ Methods:
- client.diagnostics.traceroutes.create({ ...params }) -> TraceroutesSinglePage
+## EndpointHealthchecks
+
+Types:
+
+- EndpointHealthcheck
+- EndpointHealthcheckCreateResponse
+- EndpointHealthcheckUpdateResponse
+- EndpointHealthcheckListResponse
+- EndpointHealthcheckDeleteResponse
+- EndpointHealthcheckGetResponse
+
+Methods:
+
+- client.diagnostics.endpointHealthchecks.create({ ...params }) -> EndpointHealthcheckCreateResponse
+- client.diagnostics.endpointHealthchecks.update(id, { ...params }) -> EndpointHealthcheckUpdateResponse
+- client.diagnostics.endpointHealthchecks.list({ ...params }) -> EndpointHealthcheckListResponse
+- client.diagnostics.endpointHealthchecks.delete(id, { ...params }) -> EndpointHealthcheckDeleteResponse
+- client.diagnostics.endpointHealthchecks.get(id, { ...params }) -> EndpointHealthcheckGetResponse
+
# Images
## V1
@@ -4854,7 +4911,7 @@ Methods:
- client.zeroTrust.identityProviders.create({ ...params }) -> IdentityProvider
- client.zeroTrust.identityProviders.update(identityProviderId, { ...params }) -> IdentityProvider
-- client.zeroTrust.identityProviders.list({ ...params }) -> IdentityProviderListResponsesSinglePage
+- client.zeroTrust.identityProviders.list({ ...params }) -> IdentityProviderListResponsesV4PagePaginationArray
- client.zeroTrust.identityProviders.delete(identityProviderId, { ...params }) -> IdentityProviderDeleteResponse
- client.zeroTrust.identityProviders.get(identityProviderId, { ...params }) -> IdentityProvider
@@ -4864,13 +4921,13 @@ Methods:
Methods:
-- client.zeroTrust.identityProviders.scim.groups.list(identityProviderId, { ...params }) -> ZeroTrustGroupsSinglePage
+- client.zeroTrust.identityProviders.scim.groups.list(identityProviderId, { ...params }) -> ZeroTrustGroupsV4PagePaginationArray
#### Users
Methods:
-- client.zeroTrust.identityProviders.scim.users.list(identityProviderId, { ...params }) -> AccessUsersSinglePage
+- client.zeroTrust.identityProviders.scim.users.list(identityProviderId, { ...params }) -> AccessUsersV4PagePaginationArray
## Organizations
@@ -4982,7 +5039,7 @@ Methods:
- client.zeroTrust.access.applications.create({ ...params }) -> ApplicationCreateResponse
- client.zeroTrust.access.applications.update(appId, { ...params }) -> ApplicationUpdateResponse
-- client.zeroTrust.access.applications.list({ ...params }) -> ApplicationListResponsesSinglePage
+- client.zeroTrust.access.applications.list({ ...params }) -> ApplicationListResponsesV4PagePaginationArray
- client.zeroTrust.access.applications.delete(appId, { ...params }) -> ApplicationDeleteResponse
- client.zeroTrust.access.applications.get(appId, { ...params }) -> ApplicationGetResponse
- client.zeroTrust.access.applications.revokeTokens(appId, { ...params }) -> ApplicationRevokeTokensResponse | null
@@ -4997,7 +5054,7 @@ Types:
Methods:
- client.zeroTrust.access.applications.cas.create(appId, { ...params }) -> CA
-- client.zeroTrust.access.applications.cas.list({ ...params }) -> CAsSinglePage
+- client.zeroTrust.access.applications.cas.list({ ...params }) -> CAsV4PagePaginationArray
- client.zeroTrust.access.applications.cas.delete(appId, { ...params }) -> CADeleteResponse
- client.zeroTrust.access.applications.cas.get(appId, { ...params }) -> CA
@@ -5046,7 +5103,7 @@ Methods:
- client.zeroTrust.access.applications.policies.create(appId, { ...params }) -> PolicyCreateResponse
- client.zeroTrust.access.applications.policies.update(appId, policyId, { ...params }) -> PolicyUpdateResponse
-- client.zeroTrust.access.applications.policies.list(appId, { ...params }) -> PolicyListResponsesSinglePage
+- client.zeroTrust.access.applications.policies.list(appId, { ...params }) -> PolicyListResponsesV4PagePaginationArray
- client.zeroTrust.access.applications.policies.delete(appId, policyId, { ...params }) -> PolicyDeleteResponse
- client.zeroTrust.access.applications.policies.get(appId, policyId, { ...params }) -> PolicyGetResponse
@@ -5096,7 +5153,7 @@ Methods:
- client.zeroTrust.access.certificates.create({ ...params }) -> Certificate
- client.zeroTrust.access.certificates.update(certificateId, { ...params }) -> Certificate
-- client.zeroTrust.access.certificates.list({ ...params }) -> CertificatesSinglePage
+- client.zeroTrust.access.certificates.list({ ...params }) -> CertificatesV4PagePaginationArray
- client.zeroTrust.access.certificates.delete(certificateId, { ...params }) -> CertificateDeleteResponse
- client.zeroTrust.access.certificates.get(certificateId, { ...params }) -> Certificate
@@ -5126,7 +5183,7 @@ Methods:
- client.zeroTrust.access.groups.create({ ...params }) -> GroupCreateResponse
- client.zeroTrust.access.groups.update(groupId, { ...params }) -> GroupUpdateResponse
-- client.zeroTrust.access.groups.list({ ...params }) -> GroupListResponsesSinglePage
+- client.zeroTrust.access.groups.list({ ...params }) -> GroupListResponsesV4PagePaginationArray
- client.zeroTrust.access.groups.delete(groupId, { ...params }) -> GroupDeleteResponse
- client.zeroTrust.access.groups.get(groupId, { ...params }) -> GroupGetResponse
@@ -5142,7 +5199,7 @@ Methods:
- client.zeroTrust.access.serviceTokens.create({ ...params }) -> ServiceTokenCreateResponse
- client.zeroTrust.access.serviceTokens.update(serviceTokenId, { ...params }) -> ServiceToken
-- client.zeroTrust.access.serviceTokens.list({ ...params }) -> ServiceTokensSinglePage
+- client.zeroTrust.access.serviceTokens.list({ ...params }) -> ServiceTokensV4PagePaginationArray
- client.zeroTrust.access.serviceTokens.delete(serviceTokenId, { ...params }) -> ServiceToken
- client.zeroTrust.access.serviceTokens.get(serviceTokenId, { ...params }) -> ServiceToken
- client.zeroTrust.access.serviceTokens.refresh(serviceTokenId, { ...params }) -> ServiceToken
@@ -5203,7 +5260,7 @@ Types:
Methods:
-- client.zeroTrust.access.logs.scim.updates.list({ ...params }) -> UpdateListResponsesSinglePage
+- client.zeroTrust.access.logs.scim.updates.list({ ...params }) -> UpdateListResponsesV4PagePaginationArray
### Users
@@ -5214,7 +5271,7 @@ Types:
Methods:
-- client.zeroTrust.access.users.list({ ...params }) -> UserListResponsesSinglePage
+- client.zeroTrust.access.users.list({ ...params }) -> UserListResponsesV4PagePaginationArray
#### ActiveSessions
@@ -5260,7 +5317,7 @@ Methods:
- client.zeroTrust.access.customPages.create({ ...params }) -> CustomPageWithoutHTML
- client.zeroTrust.access.customPages.update(customPageId, { ...params }) -> CustomPageWithoutHTML
-- client.zeroTrust.access.customPages.list({ ...params }) -> CustomPageWithoutHTMLsSinglePage
+- client.zeroTrust.access.customPages.list({ ...params }) -> CustomPageWithoutHTMLsV4PagePaginationArray
- client.zeroTrust.access.customPages.delete(customPageId, { ...params }) -> CustomPageDeleteResponse
- client.zeroTrust.access.customPages.get(customPageId, { ...params }) -> CustomPage
@@ -5275,7 +5332,7 @@ Methods:
- client.zeroTrust.access.tags.create({ ...params }) -> Tag
- client.zeroTrust.access.tags.update(tagName, { ...params }) -> Tag
-- client.zeroTrust.access.tags.list({ ...params }) -> TagsSinglePage
+- client.zeroTrust.access.tags.list({ ...params }) -> TagsV4PagePaginationArray
- client.zeroTrust.access.tags.delete(tagName, { ...params }) -> TagDeleteResponse
- client.zeroTrust.access.tags.get(tagName, { ...params }) -> Tag
@@ -5295,7 +5352,7 @@ Methods:
- client.zeroTrust.access.policies.create({ ...params }) -> PolicyCreateResponse
- client.zeroTrust.access.policies.update(policyId, { ...params }) -> PolicyUpdateResponse
-- client.zeroTrust.access.policies.list({ ...params }) -> PolicyListResponsesSinglePage
+- client.zeroTrust.access.policies.list({ ...params }) -> PolicyListResponsesV4PagePaginationArray
- client.zeroTrust.access.policies.delete(policyId, { ...params }) -> PolicyDeleteResponse
- client.zeroTrust.access.policies.get(policyId, { ...params }) -> PolicyGetResponse
@@ -5601,7 +5658,7 @@ Types:
Methods:
- client.zeroTrust.dlp.datasets.upload.create(datasetId, { ...params }) -> NewVersion
-- client.zeroTrust.dlp.datasets.upload.edit(datasetId, version, { ...params }) -> Dataset
+- client.zeroTrust.dlp.datasets.upload.edit(datasetId, version, dataset, { ...params }) -> Dataset
#### Versions
@@ -5621,7 +5678,7 @@ Types:
Methods:
-- client.zeroTrust.dlp.datasets.versions.entries.create(datasetId, version, entryId, { ...params }) -> EntryCreateResponse
+- client.zeroTrust.dlp.datasets.versions.entries.create(datasetId, version, entryId, datasetVersionEntry, { ...params }) -> EntryCreateResponse
### Patterns
@@ -6285,7 +6342,7 @@ Types:
Methods:
-- client.radar.ai.toMarkdown.create({ ...params }) -> ToMarkdownCreateResponsesSinglePage
+- client.radar.ai.toMarkdown.create(body, { ...params }) -> ToMarkdownCreateResponsesSinglePage
### Inference
@@ -6331,12 +6388,56 @@ Methods:
Types:
+- TimeseriesGroupSummaryResponse
+- TimeseriesGroupTimeseriesResponse
+- TimeseriesGroupTimeseriesGroupsResponse
- TimeseriesGroupUserAgentResponse
Methods:
+- client.radar.ai.timeseriesGroups.summary(dimension, { ...params }) -> TimeseriesGroupSummaryResponse
+- client.radar.ai.timeseriesGroups.timeseries({ ...params }) -> TimeseriesGroupTimeseriesResponse
+- client.radar.ai.timeseriesGroups.timeseriesGroups(dimension, { ...params }) -> TimeseriesGroupTimeseriesGroupsResponse
- client.radar.ai.timeseriesGroups.userAgent({ ...params }) -> TimeseriesGroupUserAgentResponse
+## Ct
+
+Types:
+
+- CtSummaryResponse
+- CtTimeseriesResponse
+- CtTimeseriesGroupsResponse
+
+Methods:
+
+- client.radar.ct.summary(dimension, { ...params }) -> CtSummaryResponse
+- client.radar.ct.timeseries({ ...params }) -> CtTimeseriesResponse
+- client.radar.ct.timeseriesGroups(dimension, { ...params }) -> CtTimeseriesGroupsResponse
+
+### Authorities
+
+Types:
+
+- AuthorityListResponse
+- AuthorityGetResponse
+
+Methods:
+
+- client.radar.ct.authorities.list({ ...params }) -> AuthorityListResponse
+- client.radar.ct.authorities.get(caSlug, { ...params }) -> AuthorityGetResponse
+
+### Logs
+
+Types:
+
+- LogListResponse
+- LogGetResponse
+
+Methods:
+
+- client.radar.ct.logs.list({ ...params }) -> LogListResponse
+- client.radar.ct.logs.get(logSlug, { ...params }) -> LogGetResponse
+
## Annotations
Types:
@@ -7635,15 +7736,17 @@ Methods:
Types:
-- Snippet
+- SnippetUpdateResponse
+- SnippetListResponse
- SnippetDeleteResponse
+- SnippetGetResponse
Methods:
-- client.snippets.update(snippetName, { ...params }) -> Snippet
-- client.snippets.list({ ...params }) -> SnippetsSinglePage
-- client.snippets.delete(snippetName, { ...params }) -> SnippetDeleteResponse
-- client.snippets.get(snippetName, { ...params }) -> Snippet
+- client.snippets.update(snippetName, { ...params }) -> SnippetUpdateResponse
+- client.snippets.list({ ...params }) -> SnippetListResponsesV4PagePaginationArray
+- client.snippets.delete(snippetName, { ...params }) -> SnippetDeleteResponse | null
+- client.snippets.get(snippetName, { ...params }) -> SnippetGetResponse
## Content
@@ -7663,7 +7766,7 @@ Methods:
- client.snippets.rules.update({ ...params }) -> RuleUpdateResponsesSinglePage
- client.snippets.rules.list({ ...params }) -> RuleListResponsesSinglePage
-- client.snippets.rules.delete({ ...params }) -> RuleDeleteResponse
+- client.snippets.rules.delete({ ...params }) -> RuleDeleteResponsesSinglePage
# Calls
@@ -7734,6 +7837,17 @@ Methods:
- client.cloudforceOne.scans.config.delete(configId, { ...params }) -> ConfigDeleteResponse
- client.cloudforceOne.scans.config.edit(configId, { ...params }) -> ConfigEditResponse
+## BinaryStorage
+
+Types:
+
+- BinaryStorageCreateResponse
+
+Methods:
+
+- client.cloudforceOne.binaryStorage.create({ ...params }) -> BinaryStorageCreateResponse
+- client.cloudforceOne.binaryStorage.get(hash, { ...params }) -> void
+
## Requests
Types:
@@ -7968,20 +8082,6 @@ Methods:
### Insights
-Types:
-
-- InsightCreateResponse
-- InsightDeleteResponse
-- InsightEditResponse
-- InsightGetResponse
-
-Methods:
-
-- client.cloudforceOne.threatEvents.insights.create(eventId, { ...params }) -> InsightCreateResponse
-- client.cloudforceOne.threatEvents.insights.delete(eventId, insightId, { ...params }) -> InsightDeleteResponse
-- client.cloudforceOne.threatEvents.insights.edit(eventId, insightId, { ...params }) -> InsightEditResponse
-- client.cloudforceOne.threatEvents.insights.get(eventId, insightId, { ...params }) -> InsightGetResponse
-
# AIGateway
Types:
@@ -8600,9 +8700,9 @@ Types:
Methods:
-- client.customPages.update(identifier, { ...params }) -> CustomPageUpdateResponse | null
+- client.customPages.update(identifier, { ...params }) -> CustomPageUpdateResponse
- client.customPages.list({ ...params }) -> CustomPageListResponsesSinglePage
-- client.customPages.get(identifier, { ...params }) -> CustomPageGetResponse | null
+- client.customPages.get(identifier, { ...params }) -> CustomPageGetResponse
# SecretsStore
diff --git a/bin/publish-npm b/bin/publish-npm
index fa2243d248..45e8aa8088 100644
--- a/bin/publish-npm
+++ b/bin/publish-npm
@@ -58,4 +58,4 @@ else
fi
# Publish with the appropriate tag
-yarn publish --access public --tag "$TAG"
+yarn publish --tag "$TAG"
diff --git a/package.json b/package.json
index ae9cd435d7..b237c80293 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cloudflare",
- "version": "4.5.0",
+ "version": "4.6.0",
"description": "The official TypeScript library for the Cloudflare API",
"author": "Cloudflare ",
"types": "dist/index.d.ts",
@@ -13,6 +13,9 @@
"**/*"
],
"private": false,
+ "publishConfig": {
+ "access": "public"
+ },
"scripts": {
"test": "./scripts/test",
"build": "./scripts/build",
@@ -58,10 +61,6 @@
"./shims/web.js",
"./shims/web.mjs"
],
- "imports": {
- "cloudflare": ".",
- "cloudflare/*": "./src/*"
- },
"exports": {
"./_shims/auto/*": {
"deno": {
diff --git a/scripts/detect-breaking-changes b/scripts/detect-breaking-changes
index 051507977d..27e8a8086e 100755
--- a/scripts/detect-breaking-changes
+++ b/scripts/detect-breaking-changes
@@ -253,8 +253,13 @@ TEST_PATHS=(
tests/api-resources/billing/billing.test.ts
tests/api-resources/billing/profiles.test.ts
tests/api-resources/brand-protection/brand-protection.test.ts
+ tests/api-resources/brand-protection/queries.test.ts
+ tests/api-resources/brand-protection/matches.test.ts
+ tests/api-resources/brand-protection/logos.test.ts
+ tests/api-resources/brand-protection/logo-matches.test.ts
tests/api-resources/diagnostics/diagnostics.test.ts
tests/api-resources/diagnostics/traceroutes.test.ts
+ tests/api-resources/diagnostics/endpoint-healthchecks.test.ts
tests/api-resources/images/images.test.ts
tests/api-resources/images/v1/v1.test.ts
tests/api-resources/images/v1/keys.test.ts
@@ -540,6 +545,9 @@ TEST_PATHS=(
tests/api-resources/radar/ai/bots/bots.test.ts
tests/api-resources/radar/ai/bots/summary.test.ts
tests/api-resources/radar/ai/timeseries-groups.test.ts
+ tests/api-resources/radar/ct/ct.test.ts
+ tests/api-resources/radar/ct/authorities.test.ts
+ tests/api-resources/radar/ct/logs.test.ts
tests/api-resources/radar/annotations/annotations.test.ts
tests/api-resources/radar/annotations/outages.test.ts
tests/api-resources/radar/bgp/bgp.test.ts
@@ -661,6 +669,7 @@ TEST_PATHS=(
tests/api-resources/cloudforce-one/scans/scans.test.ts
tests/api-resources/cloudforce-one/scans/results.test.ts
tests/api-resources/cloudforce-one/scans/config.test.ts
+ tests/api-resources/cloudforce-one/binary-storage.test.ts
tests/api-resources/cloudforce-one/requests/requests.test.ts
tests/api-resources/cloudforce-one/requests/message.test.ts
tests/api-resources/cloudforce-one/requests/priority.test.ts
@@ -678,7 +687,6 @@ TEST_PATHS=(
tests/api-resources/cloudforce-one/threat-events/tags.test.ts
tests/api-resources/cloudforce-one/threat-events/event-tags.test.ts
tests/api-resources/cloudforce-one/threat-events/target-industries.test.ts
- tests/api-resources/cloudforce-one/threat-events/insights.test.ts
tests/api-resources/ai-gateway/ai-gateway.test.ts
tests/api-resources/ai-gateway/evaluation-types.test.ts
tests/api-resources/ai-gateway/logs.test.ts
diff --git a/scripts/mock b/scripts/mock
index d2814ae6a0..0b28f6ea23 100755
--- a/scripts/mock
+++ b/scripts/mock
@@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}"
# Run prism mock on the given spec
if [ "$1" == "--daemon" ]; then
- npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" &> .prism.log &
+ npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log &
# Wait for server to come online
echo -n "Waiting for server"
@@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then
echo
else
- npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL"
+ npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL"
fi
diff --git a/scripts/test b/scripts/test
index 2049e31b03..7bce0516b5 100755
--- a/scripts/test
+++ b/scripts/test
@@ -43,7 +43,7 @@ elif ! prism_is_running ; then
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the prism command:"
echo
- echo -e " \$ ${YELLOW}npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock path/to/your.openapi.yml${NC}"
+ echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
echo
exit 1
diff --git a/src/resources/abuse-reports.ts b/src/resources/abuse-reports.ts
index 9f4c7eb9bf..451e42c504 100644
--- a/src/resources/abuse-reports.ts
+++ b/src/resources/abuse-reports.ts
@@ -6,32 +6,9 @@ import * as Core from '../core';
export class AbuseReports extends APIResource {
/**
* Submit the Abuse Report of a particular type
- *
- * @example
- * ```ts
- * const abuseReport = await client.abuseReports.create(
- * 'abuse_general',
- * {
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * act: 'abuse_general',
- * email: 'email',
- * email2: 'email2',
- * name: 'x',
- * urls: 'urls',
- * },
- * );
- * ```
*/
create(
- reportType:
- | 'abuse_dmca'
- | 'abuse_trademark'
- | 'abuse_general'
- | 'abuse_phishing'
- | 'abuse_children'
- | 'abuse_threat'
- | 'abuse_registrar_whois'
- | 'abuse_ncsei',
+ reportType: string,
params: AbuseReportCreateParams,
options?: Core.RequestOptions,
): Core.APIPromise {
@@ -55,7 +32,7 @@ export type AbuseReportCreateParams =
| AbuseReportCreateParams.AbuseReportsTrademarkReport
| AbuseReportCreateParams.AbuseReportsGeneralReport
| AbuseReportCreateParams.AbuseReportsPhishingReport
- | AbuseReportCreateParams.AbuseReportsChildrenAbuseReport
+ | AbuseReportCreateParams.AbuseReportsCsamReport
| AbuseReportCreateParams.AbuseReportsThreatReport
| AbuseReportCreateParams.AbuseReportsRegistrarWhoisReport
| AbuseReportCreateParams.AbuseReportsNcseiReport;
@@ -68,144 +45,116 @@ export declare namespace AbuseReportCreateParams {
account_id: string;
/**
- * Body param: The abuse report type
+ * Body param: The abuse report type.
*/
- act:
- | 'abuse_dmca'
- | 'abuse_trademark'
- | 'abuse_general'
- | 'abuse_phishing'
- | 'abuse_children'
- | 'abuse_threat'
- | 'abuse_registrar_whois'
- | 'abuse_ncsei';
-
- /**
- * Body param: A valid email of the abuse reporter. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- email: string;
-
- /**
- * Body param: Should match the value provided in `email`
- */
- email2: string;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- name: string;
-
- /**
- * Body param: A list of valid URLs separated by ‘ ’ (new line character). The list
- * of the URLs should not exceed 250 URLs. All URLs should have the same hostname.
- * Each URL should be unique. This field may be released by Cloudflare to third
- * parties such as the Lumen Database (https://lumendatabase.org/).
- */
- urls: string;
+ act: 'abuse_dmca';
/**
* Body param: Text not exceeding 100 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- address1?: string;
+ address1: string;
/**
* Body param: The name of the copyright holder. Text not exceeding 60 characters.
* This field may be released by Cloudflare to third parties such as the Lumen
* Database (https://lumendatabase.org/).
*/
- agent_name?: string;
+ agent_name: string;
/**
* Body param: Can be `0` for false or `1` for true. Must be value: 1 for DMCA
* reports
*/
- agree?: 0 | 1;
+ agree: 1;
/**
* Body param: Text not exceeding 255 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- city?: string;
-
- /**
- * Body param: Any additional comments about the infringement not exceeding 2000
- * characters
- */
- comments?: string;
+ city: string;
/**
- * Body param: Text not exceeding 100 characters. This field may be released by
+ * Body param: Text not exceeding 255 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- company?: string;
+ country: string;
/**
- * Body param: Text not exceeding 255 characters. This field may be released by
+ * Body param: A valid email of the abuse reporter. This field may be released by
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- country?: string;
+ email: string;
/**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of destination IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
+ * Body param: Should match the value provided in `email`
*/
- destination_ips?: string;
+ email2: string;
/**
* Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
* and Trademark reports cannot be anonymous.
*/
- host_notification?: 'send' | 'send-anon' | 'none';
+ host_notification: 'send';
/**
- * Body param: A detailed description of the infringement, including any necessary
- * access details and the exact steps needed to view the content, not exceeding
- * 5000 characters
+ * Body param: Text not exceeding 255 characters. This field may be released by
+ * Cloudflare to third parties such as the Lumen Database
+ * (https://lumendatabase.org/).
+ */
+ name: string;
+
+ /**
+ * Body param: Text not exceeding 255 characters. This field may be released by
+ * Cloudflare to third parties such as the Lumen Database
+ * (https://lumendatabase.org/).
*/
- justification?: string;
+ original_work: string;
/**
* Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
* and Trademark reports cannot be anonymous.
*/
- ncmec_notification?: 'send' | 'send-anon' | 'none';
+ owner_notification: 'send';
/**
- * Body param: If the submitter is the target of NCSEI in the URLs of the abuse
- * report.
+ * Body param: Required for DMCA reports, should be same as Name. An affirmation
+ * that all information in the report is true and accurate while agreeing to the
+ * policies of Cloudflare's abuse reports
*/
- ncsei_subject_representation?: boolean;
+ signature: string;
/**
* Body param: Text not exceeding 255 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- original_work?: string;
+ state: string;
/**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
+ * Body param: A list of valid URLs separated by ‘\n’ (new line character). The
+ * list of the URLs should not exceed 250 URLs. All URLs should have the same
+ * hostname. Each URL should be unique. This field may be released by Cloudflare to
+ * third parties such as the Lumen Database (https://lumendatabase.org/).
*/
- owner_notification?: 'send' | 'send-anon' | 'none';
+ urls: string;
/**
- * Body param: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP.
- * The total size of the field should not exceed 2000 characters. Each individual
- * port/protocol should not exceed 100 characters. The list should not have more
- * than 30 unique ports and protocols.
+ * Body param: Any additional comments about the infringement not exceeding 2000
+ * characters
*/
- ports_protocols?: string;
+ comments?: string;
+
+ /**
+ * Body param: Text not exceeding 100 characters. This field may be released by
+ * Cloudflare to third parties such as the Lumen Database
+ * (https://lumendatabase.org/).
+ */
+ company?: string;
/**
* Body param: Text containing 2 characters
@@ -217,27 +166,6 @@ export declare namespace AbuseReportCreateParams {
*/
reported_user_agent?: string;
- /**
- * Body param: Required for DMCA reports, should be same as Name. An affirmation
- * that all information in the report is true and accurate while agreeing to the
- * policies of Cloudflare's abuse reports
- */
- signature?: string;
-
- /**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of source IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
- */
- source_ips?: string;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- state?: string;
-
/**
* Body param: Text not exceeding 20 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
@@ -249,21 +177,6 @@ export declare namespace AbuseReportCreateParams {
* Body param: Text not exceeding 255 characters
*/
title?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_number?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_office?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_symbol?: string;
}
export interface AbuseReportsTrademarkReport {
@@ -273,17 +186,9 @@ export declare namespace AbuseReportCreateParams {
account_id: string;
/**
- * Body param: The abuse report type
+ * Body param: The abuse report type.
*/
- act:
- | 'abuse_dmca'
- | 'abuse_trademark'
- | 'abuse_general'
- | 'abuse_phishing'
- | 'abuse_children'
- | 'abuse_threat'
- | 'abuse_registrar_whois'
- | 'abuse_ncsei';
+ act: 'abuse_trademark';
/**
* Body param: A valid email of the abuse reporter. This field may be released by
@@ -297,6 +202,19 @@ export declare namespace AbuseReportCreateParams {
*/
email2: string;
+ /**
+ * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
+ * and Trademark reports cannot be anonymous.
+ */
+ host_notification: 'send';
+
+ /**
+ * Body param: A detailed description of the infringement, including any necessary
+ * access details and the exact steps needed to view the content, not exceeding
+ * 5000 characters.
+ */
+ justification: string;
+
/**
* Body param: Text not exceeding 255 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
@@ -305,39 +223,33 @@ export declare namespace AbuseReportCreateParams {
name: string;
/**
- * Body param: A list of valid URLs separated by ‘ ’ (new line character). The list
- * of the URLs should not exceed 250 URLs. All URLs should have the same hostname.
- * Each URL should be unique. This field may be released by Cloudflare to third
- * parties such as the Lumen Database (https://lumendatabase.org/).
+ * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
+ * and Trademark reports cannot be anonymous.
*/
- urls: string;
+ owner_notification: 'send';
/**
- * Body param: Text not exceeding 100 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
+ * Body param: Text not exceeding 1000 characters
*/
- address1?: string;
+ trademark_number: string;
/**
- * Body param: The name of the copyright holder. Text not exceeding 60 characters.
- * This field may be released by Cloudflare to third parties such as the Lumen
- * Database (https://lumendatabase.org/).
+ * Body param: Text not exceeding 1000 characters
*/
- agent_name?: string;
+ trademark_office: string;
/**
- * Body param: Can be `0` for false or `1` for true. Must be value: 1 for DMCA
- * reports
+ * Body param: Text not exceeding 1000 characters
*/
- agree?: 0 | 1;
+ trademark_symbol: string;
/**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
+ * Body param: A list of valid URLs separated by ‘\n’ (new line character). The
+ * list of the URLs should not exceed 250 URLs. All URLs should have the same
+ * hostname. Each URL should be unique. This field may be released by Cloudflare to
+ * third parties such as the Lumen Database (https://lumendatabase.org/).
*/
- city?: string;
+ urls: string;
/**
* Body param: Any additional comments about the infringement not exceeding 2000
@@ -353,56 +265,104 @@ export declare namespace AbuseReportCreateParams {
company?: string;
/**
- * Body param: Text not exceeding 255 characters. This field may be released by
+ * Body param: Text containing 2 characters
+ */
+ reported_country?: string;
+
+ /**
+ * Body param: Text not exceeding 255 characters
+ */
+ reported_user_agent?: string;
+
+ /**
+ * Body param: Text not exceeding 20 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- country?: string;
+ tele?: string;
/**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of destination IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
+ * Body param: Text not exceeding 255 characters
*/
- destination_ips?: string;
+ title?: string;
+ }
+
+ export interface AbuseReportsGeneralReport {
+ /**
+ * Path param: The account ID of the submitter.
+ */
+ account_id: string;
+
+ /**
+ * Body param: The abuse report type.
+ */
+ act: 'abuse_general';
+
+ /**
+ * Body param: A valid email of the abuse reporter. This field may be released by
+ * Cloudflare to third parties such as the Lumen Database
+ * (https://lumendatabase.org/).
+ */
+ email: string;
+
+ /**
+ * Body param: Should match the value provided in `email`
+ */
+ email2: string;
/**
* Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
* and Trademark reports cannot be anonymous.
*/
- host_notification?: 'send' | 'send-anon' | 'none';
+ host_notification: 'send' | 'send-anon';
/**
* Body param: A detailed description of the infringement, including any necessary
* access details and the exact steps needed to view the content, not exceeding
- * 5000 characters
+ * 5000 characters.
+ */
+ justification: string;
+
+ /**
+ * Body param: Text not exceeding 255 characters. This field may be released by
+ * Cloudflare to third parties such as the Lumen Database
+ * (https://lumendatabase.org/).
*/
- justification?: string;
+ name: string;
/**
* Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
* and Trademark reports cannot be anonymous.
*/
- ncmec_notification?: 'send' | 'send-anon' | 'none';
+ owner_notification: 'send' | 'send-anon' | 'none';
/**
- * Body param: If the submitter is the target of NCSEI in the URLs of the abuse
- * report.
+ * Body param: A list of valid URLs separated by ‘\n’ (new line character). The
+ * list of the URLs should not exceed 250 URLs. All URLs should have the same
+ * hostname. Each URL should be unique. This field may be released by Cloudflare to
+ * third parties such as the Lumen Database (https://lumendatabase.org/).
*/
- ncsei_subject_representation?: boolean;
+ urls: string;
/**
- * Body param: Text not exceeding 255 characters. This field may be released by
+ * Body param: Any additional comments about the infringement not exceeding 2000
+ * characters
+ */
+ comments?: string;
+
+ /**
+ * Body param: Text not exceeding 100 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- original_work?: string;
+ company?: string;
/**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
+ * Body param: A list of IP addresses separated by ‘\n’ (new line character). The
+ * list of destination IPs should not exceed 30 IP addresses. Each one of the IP
+ * addresses ought to be unique.
*/
- owner_notification?: 'send' | 'send-anon' | 'none';
+ destination_ips?: string;
/**
* Body param: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP.
@@ -423,26 +383,12 @@ export declare namespace AbuseReportCreateParams {
reported_user_agent?: string;
/**
- * Body param: Required for DMCA reports, should be same as Name. An affirmation
- * that all information in the report is true and accurate while agreeing to the
- * policies of Cloudflare's abuse reports
- */
- signature?: string;
-
- /**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
+ * Body param: A list of IP addresses separated by ‘\n’ (new line character). The
* list of source IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
+ * addresses ought to be unique.
*/
source_ips?: string;
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- state?: string;
-
/**
* Body param: Text not exceeding 20 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
@@ -454,41 +400,18 @@ export declare namespace AbuseReportCreateParams {
* Body param: Text not exceeding 255 characters
*/
title?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_number?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_office?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_symbol?: string;
}
- export interface AbuseReportsGeneralReport {
+ export interface AbuseReportsPhishingReport {
/**
* Path param: The account ID of the submitter.
*/
account_id: string;
/**
- * Body param: The abuse report type
+ * Body param: The abuse report type.
*/
- act:
- | 'abuse_dmca'
- | 'abuse_trademark'
- | 'abuse_general'
- | 'abuse_phishing'
- | 'abuse_children'
- | 'abuse_threat'
- | 'abuse_registrar_whois'
- | 'abuse_ncsei';
+ act: 'abuse_phishing';
/**
* Body param: A valid email of the abuse reporter. This field may be released by
@@ -503,46 +426,38 @@ export declare namespace AbuseReportCreateParams {
email2: string;
/**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
+ * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
+ * and Trademark reports cannot be anonymous.
*/
- name: string;
+ host_notification: 'send' | 'send-anon';
/**
- * Body param: A list of valid URLs separated by ‘ ’ (new line character). The list
- * of the URLs should not exceed 250 URLs. All URLs should have the same hostname.
- * Each URL should be unique. This field may be released by Cloudflare to third
- * parties such as the Lumen Database (https://lumendatabase.org/).
+ * Body param: A detailed description of the infringement, including any necessary
+ * access details and the exact steps needed to view the content, not exceeding
+ * 5000 characters.
*/
- urls: string;
+ justification: string;
/**
- * Body param: Text not exceeding 100 characters. This field may be released by
+ * Body param: Text not exceeding 255 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- address1?: string;
-
- /**
- * Body param: The name of the copyright holder. Text not exceeding 60 characters.
- * This field may be released by Cloudflare to third parties such as the Lumen
- * Database (https://lumendatabase.org/).
- */
- agent_name?: string;
+ name: string;
/**
- * Body param: Can be `0` for false or `1` for true. Must be value: 1 for DMCA
- * reports
+ * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
+ * and Trademark reports cannot be anonymous.
*/
- agree?: 0 | 1;
+ owner_notification: 'send' | 'send-anon';
/**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
+ * Body param: A list of valid URLs separated by ‘\n’ (new line character). The
+ * list of the URLs should not exceed 250 URLs. All URLs should have the same
+ * hostname. Each URL should be unique. This field may be released by Cloudflare to
+ * third parties such as the Lumen Database (https://lumendatabase.org/).
*/
- city?: string;
+ urls: string;
/**
* Body param: Any additional comments about the infringement not exceeding 2000
@@ -562,707 +477,18 @@ export declare namespace AbuseReportCreateParams {
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- country?: string;
+ original_work?: string;
/**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of destination IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
+ * Body param: Text containing 2 characters
*/
- destination_ips?: string;
-
- /**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
- */
- host_notification?: 'send' | 'send-anon' | 'none';
-
- /**
- * Body param: A detailed description of the infringement, including any necessary
- * access details and the exact steps needed to view the content, not exceeding
- * 5000 characters
- */
- justification?: string;
-
- /**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
- */
- ncmec_notification?: 'send' | 'send-anon' | 'none';
-
- /**
- * Body param: If the submitter is the target of NCSEI in the URLs of the abuse
- * report.
- */
- ncsei_subject_representation?: boolean;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- original_work?: string;
-
- /**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
- */
- owner_notification?: 'send' | 'send-anon' | 'none';
-
- /**
- * Body param: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP.
- * The total size of the field should not exceed 2000 characters. Each individual
- * port/protocol should not exceed 100 characters. The list should not have more
- * than 30 unique ports and protocols.
- */
- ports_protocols?: string;
-
- /**
- * Body param: Text containing 2 characters
- */
- reported_country?: string;
-
- /**
- * Body param: Text not exceeding 255 characters
- */
- reported_user_agent?: string;
-
- /**
- * Body param: Required for DMCA reports, should be same as Name. An affirmation
- * that all information in the report is true and accurate while agreeing to the
- * policies of Cloudflare's abuse reports
- */
- signature?: string;
-
- /**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of source IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
- */
- source_ips?: string;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- state?: string;
-
- /**
- * Body param: Text not exceeding 20 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- tele?: string;
-
- /**
- * Body param: Text not exceeding 255 characters
- */
- title?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_number?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_office?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_symbol?: string;
- }
-
- export interface AbuseReportsPhishingReport {
- /**
- * Path param: The account ID of the submitter.
- */
- account_id: string;
-
- /**
- * Body param: The abuse report type
- */
- act:
- | 'abuse_dmca'
- | 'abuse_trademark'
- | 'abuse_general'
- | 'abuse_phishing'
- | 'abuse_children'
- | 'abuse_threat'
- | 'abuse_registrar_whois'
- | 'abuse_ncsei';
-
- /**
- * Body param: A valid email of the abuse reporter. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- email: string;
-
- /**
- * Body param: Should match the value provided in `email`
- */
- email2: string;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- name: string;
-
- /**
- * Body param: A list of valid URLs separated by ‘ ’ (new line character). The list
- * of the URLs should not exceed 250 URLs. All URLs should have the same hostname.
- * Each URL should be unique. This field may be released by Cloudflare to third
- * parties such as the Lumen Database (https://lumendatabase.org/).
- */
- urls: string;
-
- /**
- * Body param: Text not exceeding 100 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- address1?: string;
-
- /**
- * Body param: The name of the copyright holder. Text not exceeding 60 characters.
- * This field may be released by Cloudflare to third parties such as the Lumen
- * Database (https://lumendatabase.org/).
- */
- agent_name?: string;
-
- /**
- * Body param: Can be `0` for false or `1` for true. Must be value: 1 for DMCA
- * reports
- */
- agree?: 0 | 1;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- city?: string;
-
- /**
- * Body param: Any additional comments about the infringement not exceeding 2000
- * characters
- */
- comments?: string;
-
- /**
- * Body param: Text not exceeding 100 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- company?: string;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- country?: string;
-
- /**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of destination IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
- */
- destination_ips?: string;
-
- /**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
- */
- host_notification?: 'send' | 'send-anon' | 'none';
-
- /**
- * Body param: A detailed description of the infringement, including any necessary
- * access details and the exact steps needed to view the content, not exceeding
- * 5000 characters
- */
- justification?: string;
-
- /**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
- */
- ncmec_notification?: 'send' | 'send-anon' | 'none';
-
- /**
- * Body param: If the submitter is the target of NCSEI in the URLs of the abuse
- * report.
- */
- ncsei_subject_representation?: boolean;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- original_work?: string;
-
- /**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
- */
- owner_notification?: 'send' | 'send-anon' | 'none';
-
- /**
- * Body param: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP.
- * The total size of the field should not exceed 2000 characters. Each individual
- * port/protocol should not exceed 100 characters. The list should not have more
- * than 30 unique ports and protocols.
- */
- ports_protocols?: string;
-
- /**
- * Body param: Text containing 2 characters
- */
- reported_country?: string;
-
- /**
- * Body param: Text not exceeding 255 characters
- */
- reported_user_agent?: string;
-
- /**
- * Body param: Required for DMCA reports, should be same as Name. An affirmation
- * that all information in the report is true and accurate while agreeing to the
- * policies of Cloudflare's abuse reports
- */
- signature?: string;
-
- /**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of source IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
- */
- source_ips?: string;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- state?: string;
-
- /**
- * Body param: Text not exceeding 20 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- tele?: string;
-
- /**
- * Body param: Text not exceeding 255 characters
- */
- title?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_number?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_office?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_symbol?: string;
- }
-
- export interface AbuseReportsChildrenAbuseReport {
- /**
- * Path param: The account ID of the submitter.
- */
- account_id: string;
-
- /**
- * Body param: The abuse report type
- */
- act:
- | 'abuse_dmca'
- | 'abuse_trademark'
- | 'abuse_general'
- | 'abuse_phishing'
- | 'abuse_children'
- | 'abuse_threat'
- | 'abuse_registrar_whois'
- | 'abuse_ncsei';
-
- /**
- * Body param: A valid email of the abuse reporter. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- email: string;
-
- /**
- * Body param: Should match the value provided in `email`
- */
- email2: string;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- name: string;
-
- /**
- * Body param: A list of valid URLs separated by ‘ ’ (new line character). The list
- * of the URLs should not exceed 250 URLs. All URLs should have the same hostname.
- * Each URL should be unique. This field may be released by Cloudflare to third
- * parties such as the Lumen Database (https://lumendatabase.org/).
- */
- urls: string;
-
- /**
- * Body param: Text not exceeding 100 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- address1?: string;
-
- /**
- * Body param: The name of the copyright holder. Text not exceeding 60 characters.
- * This field may be released by Cloudflare to third parties such as the Lumen
- * Database (https://lumendatabase.org/).
- */
- agent_name?: string;
-
- /**
- * Body param: Can be `0` for false or `1` for true. Must be value: 1 for DMCA
- * reports
- */
- agree?: 0 | 1;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- city?: string;
-
- /**
- * Body param: Any additional comments about the infringement not exceeding 2000
- * characters
- */
- comments?: string;
-
- /**
- * Body param: Text not exceeding 100 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- company?: string;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- country?: string;
-
- /**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of destination IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
- */
- destination_ips?: string;
-
- /**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
- */
- host_notification?: 'send' | 'send-anon' | 'none';
-
- /**
- * Body param: A detailed description of the infringement, including any necessary
- * access details and the exact steps needed to view the content, not exceeding
- * 5000 characters
- */
- justification?: string;
-
- /**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
- */
- ncmec_notification?: 'send' | 'send-anon' | 'none';
-
- /**
- * Body param: If the submitter is the target of NCSEI in the URLs of the abuse
- * report.
- */
- ncsei_subject_representation?: boolean;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- original_work?: string;
-
- /**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
- */
- owner_notification?: 'send' | 'send-anon' | 'none';
-
- /**
- * Body param: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP.
- * The total size of the field should not exceed 2000 characters. Each individual
- * port/protocol should not exceed 100 characters. The list should not have more
- * than 30 unique ports and protocols.
- */
- ports_protocols?: string;
-
- /**
- * Body param: Text containing 2 characters
- */
- reported_country?: string;
-
- /**
- * Body param: Text not exceeding 255 characters
- */
- reported_user_agent?: string;
-
- /**
- * Body param: Required for DMCA reports, should be same as Name. An affirmation
- * that all information in the report is true and accurate while agreeing to the
- * policies of Cloudflare's abuse reports
- */
- signature?: string;
-
- /**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of source IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
- */
- source_ips?: string;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- state?: string;
-
- /**
- * Body param: Text not exceeding 20 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- tele?: string;
-
- /**
- * Body param: Text not exceeding 255 characters
- */
- title?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_number?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_office?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_symbol?: string;
- }
-
- export interface AbuseReportsThreatReport {
- /**
- * Path param: The account ID of the submitter.
- */
- account_id: string;
-
- /**
- * Body param: The abuse report type
- */
- act:
- | 'abuse_dmca'
- | 'abuse_trademark'
- | 'abuse_general'
- | 'abuse_phishing'
- | 'abuse_children'
- | 'abuse_threat'
- | 'abuse_registrar_whois'
- | 'abuse_ncsei';
-
- /**
- * Body param: A valid email of the abuse reporter. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- email: string;
-
- /**
- * Body param: Should match the value provided in `email`
- */
- email2: string;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- name: string;
-
- /**
- * Body param: A list of valid URLs separated by ‘ ’ (new line character). The list
- * of the URLs should not exceed 250 URLs. All URLs should have the same hostname.
- * Each URL should be unique. This field may be released by Cloudflare to third
- * parties such as the Lumen Database (https://lumendatabase.org/).
- */
- urls: string;
-
- /**
- * Body param: Text not exceeding 100 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- address1?: string;
-
- /**
- * Body param: The name of the copyright holder. Text not exceeding 60 characters.
- * This field may be released by Cloudflare to third parties such as the Lumen
- * Database (https://lumendatabase.org/).
- */
- agent_name?: string;
-
- /**
- * Body param: Can be `0` for false or `1` for true. Must be value: 1 for DMCA
- * reports
- */
- agree?: 0 | 1;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- city?: string;
-
- /**
- * Body param: Any additional comments about the infringement not exceeding 2000
- * characters
- */
- comments?: string;
-
- /**
- * Body param: Text not exceeding 100 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- company?: string;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- country?: string;
-
- /**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of destination IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
- */
- destination_ips?: string;
-
- /**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
- */
- host_notification?: 'send' | 'send-anon' | 'none';
-
- /**
- * Body param: A detailed description of the infringement, including any necessary
- * access details and the exact steps needed to view the content, not exceeding
- * 5000 characters
- */
- justification?: string;
-
- /**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
- */
- ncmec_notification?: 'send' | 'send-anon' | 'none';
-
- /**
- * Body param: If the submitter is the target of NCSEI in the URLs of the abuse
- * report.
- */
- ncsei_subject_representation?: boolean;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- original_work?: string;
-
- /**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
- */
- owner_notification?: 'send' | 'send-anon' | 'none';
-
- /**
- * Body param: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP.
- * The total size of the field should not exceed 2000 characters. Each individual
- * port/protocol should not exceed 100 characters. The list should not have more
- * than 30 unique ports and protocols.
- */
- ports_protocols?: string;
-
- /**
- * Body param: Text containing 2 characters
- */
- reported_country?: string;
+ reported_country?: string;
/**
* Body param: Text not exceeding 255 characters
*/
reported_user_agent?: string;
- /**
- * Body param: Required for DMCA reports, should be same as Name. An affirmation
- * that all information in the report is true and accurate while agreeing to the
- * policies of Cloudflare's abuse reports
- */
- signature?: string;
-
- /**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of source IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
- */
- source_ips?: string;
-
- /**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- state?: string;
-
/**
* Body param: Text not exceeding 20 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
@@ -1274,41 +500,18 @@ export declare namespace AbuseReportCreateParams {
* Body param: Text not exceeding 255 characters
*/
title?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_number?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_office?: string;
-
- /**
- * Body param: Text not exceeding 1000 characters
- */
- trademark_symbol?: string;
}
- export interface AbuseReportsRegistrarWhoisReport {
+ export interface AbuseReportsCsamReport {
/**
* Path param: The account ID of the submitter.
*/
account_id: string;
/**
- * Body param: The abuse report type
+ * Body param: The abuse report type.
*/
- act:
- | 'abuse_dmca'
- | 'abuse_trademark'
- | 'abuse_general'
- | 'abuse_phishing'
- | 'abuse_children'
- | 'abuse_threat'
- | 'abuse_registrar_whois'
- | 'abuse_ncsei';
+ act: 'abuse_children';
/**
* Body param: A valid email of the abuse reporter. This field may be released by
@@ -1323,46 +526,44 @@ export declare namespace AbuseReportCreateParams {
email2: string;
/**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
+ * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
+ * and Trademark reports cannot be anonymous.
*/
- name: string;
+ host_notification: 'send' | 'send-anon';
/**
- * Body param: A list of valid URLs separated by ‘ ’ (new line character). The list
- * of the URLs should not exceed 250 URLs. All URLs should have the same hostname.
- * Each URL should be unique. This field may be released by Cloudflare to third
- * parties such as the Lumen Database (https://lumendatabase.org/).
+ * Body param: A detailed description of the infringement, including any necessary
+ * access details and the exact steps needed to view the content, not exceeding
+ * 5000 characters.
*/
- urls: string;
+ justification: string;
/**
- * Body param: Text not exceeding 100 characters. This field may be released by
+ * Body param: Text not exceeding 255 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- address1?: string;
+ name: string;
/**
- * Body param: The name of the copyright holder. Text not exceeding 60 characters.
- * This field may be released by Cloudflare to third parties such as the Lumen
- * Database (https://lumendatabase.org/).
+ * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
+ * and Trademark reports cannot be anonymous.
*/
- agent_name?: string;
+ ncmec_notification: 'send' | 'send-anon';
/**
- * Body param: Can be `0` for false or `1` for true. Must be value: 1 for DMCA
- * reports
+ * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
+ * and Trademark reports cannot be anonymous.
*/
- agree?: 0 | 1;
+ owner_notification: 'send' | 'send-anon' | 'none';
/**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
+ * Body param: A list of valid URLs separated by ‘\n’ (new line character). The
+ * list of the URLs should not exceed 250 URLs. All URLs should have the same
+ * hostname. Each URL should be unique. This field may be released by Cloudflare to
+ * third parties such as the Lumen Database (https://lumendatabase.org/).
*/
- city?: string;
+ urls: string;
/**
* Body param: Any additional comments about the infringement not exceeding 2000
@@ -1385,135 +586,131 @@ export declare namespace AbuseReportCreateParams {
country?: string;
/**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of destination IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
+ * Body param: Text containing 2 characters
*/
- destination_ips?: string;
+ reported_country?: string;
/**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
+ * Body param: Text not exceeding 255 characters
*/
- host_notification?: 'send' | 'send-anon' | 'none';
+ reported_user_agent?: string;
/**
- * Body param: A detailed description of the infringement, including any necessary
- * access details and the exact steps needed to view the content, not exceeding
- * 5000 characters
+ * Body param: Text not exceeding 20 characters. This field may be released by
+ * Cloudflare to third parties such as the Lumen Database
+ * (https://lumendatabase.org/).
*/
- justification?: string;
+ tele?: string;
/**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
+ * Body param: Text not exceeding 255 characters
+ */
+ title?: string;
+ }
+
+ export interface AbuseReportsThreatReport {
+ /**
+ * Path param: The account ID of the submitter.
*/
- ncmec_notification?: 'send' | 'send-anon' | 'none';
+ account_id: string;
/**
- * Body param: If the submitter is the target of NCSEI in the URLs of the abuse
- * report.
+ * Body param: The abuse report type.
*/
- ncsei_subject_representation?: boolean;
+ act: 'abuse_threat';
/**
- * Body param: Text not exceeding 255 characters. This field may be released by
+ * Body param: A valid email of the abuse reporter. This field may be released by
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- original_work?: string;
+ email: string;
/**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
+ * Body param: Should match the value provided in `email`
*/
- owner_notification?: 'send' | 'send-anon' | 'none';
+ email2: string;
/**
- * Body param: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP.
- * The total size of the field should not exceed 2000 characters. Each individual
- * port/protocol should not exceed 100 characters. The list should not have more
- * than 30 unique ports and protocols.
+ * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
+ * and Trademark reports cannot be anonymous.
*/
- ports_protocols?: string;
+ host_notification: 'send' | 'send-anon';
/**
- * Body param: Text containing 2 characters
+ * Body param: A detailed description of the infringement, including any necessary
+ * access details and the exact steps needed to view the content, not exceeding
+ * 5000 characters.
*/
- reported_country?: string;
+ justification: string;
/**
- * Body param: Text not exceeding 255 characters
+ * Body param: Text not exceeding 255 characters. This field may be released by
+ * Cloudflare to third parties such as the Lumen Database
+ * (https://lumendatabase.org/).
*/
- reported_user_agent?: string;
+ name: string;
/**
- * Body param: Required for DMCA reports, should be same as Name. An affirmation
- * that all information in the report is true and accurate while agreeing to the
- * policies of Cloudflare's abuse reports
+ * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
+ * and Trademark reports cannot be anonymous.
*/
- signature?: string;
+ owner_notification: 'send' | 'send-anon';
/**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of source IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
+ * Body param: A list of valid URLs separated by ‘\n’ (new line character). The
+ * list of the URLs should not exceed 250 URLs. All URLs should have the same
+ * hostname. Each URL should be unique. This field may be released by Cloudflare to
+ * third parties such as the Lumen Database (https://lumendatabase.org/).
*/
- source_ips?: string;
+ urls: string;
/**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
+ * Body param: Any additional comments about the infringement not exceeding 2000
+ * characters
*/
- state?: string;
+ comments?: string;
/**
- * Body param: Text not exceeding 20 characters. This field may be released by
+ * Body param: Text not exceeding 100 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- tele?: string;
+ company?: string;
/**
- * Body param: Text not exceeding 255 characters
+ * Body param: Text containing 2 characters
*/
- title?: string;
+ reported_country?: string;
/**
- * Body param: Text not exceeding 1000 characters
+ * Body param: Text not exceeding 255 characters
*/
- trademark_number?: string;
+ reported_user_agent?: string;
/**
- * Body param: Text not exceeding 1000 characters
+ * Body param: Text not exceeding 20 characters. This field may be released by
+ * Cloudflare to third parties such as the Lumen Database
+ * (https://lumendatabase.org/).
*/
- trademark_office?: string;
+ tele?: string;
/**
- * Body param: Text not exceeding 1000 characters
+ * Body param: Text not exceeding 255 characters
*/
- trademark_symbol?: string;
+ title?: string;
}
- export interface AbuseReportsNcseiReport {
+ export interface AbuseReportsRegistrarWhoisReport {
/**
* Path param: The account ID of the submitter.
*/
account_id: string;
/**
- * Body param: The abuse report type
+ * Body param: The abuse report type.
*/
- act:
- | 'abuse_dmca'
- | 'abuse_trademark'
- | 'abuse_general'
- | 'abuse_phishing'
- | 'abuse_children'
- | 'abuse_threat'
- | 'abuse_registrar_whois'
- | 'abuse_ncsei';
+ act: 'abuse_registrar_whois';
/**
* Body param: A valid email of the abuse reporter. This field may be released by
@@ -1535,39 +732,18 @@ export declare namespace AbuseReportCreateParams {
name: string;
/**
- * Body param: A list of valid URLs separated by ‘ ’ (new line character). The list
- * of the URLs should not exceed 250 URLs. All URLs should have the same hostname.
- * Each URL should be unique. This field may be released by Cloudflare to third
- * parties such as the Lumen Database (https://lumendatabase.org/).
- */
- urls: string;
-
- /**
- * Body param: Text not exceeding 100 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
- */
- address1?: string;
-
- /**
- * Body param: The name of the copyright holder. Text not exceeding 60 characters.
- * This field may be released by Cloudflare to third parties such as the Lumen
- * Database (https://lumendatabase.org/).
- */
- agent_name?: string;
-
- /**
- * Body param: Can be `0` for false or `1` for true. Must be value: 1 for DMCA
- * reports
+ * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
+ * and Trademark reports cannot be anonymous.
*/
- agree?: 0 | 1;
+ owner_notification: 'send' | 'send-anon' | 'none';
/**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
+ * Body param: A list of valid URLs separated by ‘\n’ (new line character). The
+ * list of the URLs should not exceed 250 URLs. All URLs should have the same
+ * hostname. Each URL should be unique. This field may be released by Cloudflare to
+ * third parties such as the Lumen Database (https://lumendatabase.org/).
*/
- city?: string;
+ urls: string;
/**
* Body param: Any additional comments about the infringement not exceeding 2000
@@ -1583,122 +759,125 @@ export declare namespace AbuseReportCreateParams {
company?: string;
/**
- * Body param: Text not exceeding 255 characters. This field may be released by
- * Cloudflare to third parties such as the Lumen Database
- * (https://lumendatabase.org/).
+ * Body param: Text containing 2 characters
*/
- country?: string;
+ reported_country?: string;
/**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of destination IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
+ * Body param: Text not exceeding 255 characters
*/
- destination_ips?: string;
+ reported_user_agent?: string;
/**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
+ * Body param: Text not exceeding 20 characters. This field may be released by
+ * Cloudflare to third parties such as the Lumen Database
+ * (https://lumendatabase.org/).
*/
- host_notification?: 'send' | 'send-anon' | 'none';
+ tele?: string;
/**
- * Body param: A detailed description of the infringement, including any necessary
- * access details and the exact steps needed to view the content, not exceeding
- * 5000 characters
+ * Body param: Text not exceeding 255 characters
*/
- justification?: string;
+ title?: string;
+ }
+ export interface AbuseReportsNcseiReport {
/**
- * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
- * and Trademark reports cannot be anonymous.
+ * Path param: The account ID of the submitter.
*/
- ncmec_notification?: 'send' | 'send-anon' | 'none';
+ account_id: string;
/**
- * Body param: If the submitter is the target of NCSEI in the URLs of the abuse
- * report.
+ * Body param: The abuse report type.
*/
- ncsei_subject_representation?: boolean;
+ act: 'abuse_ncsei';
/**
- * Body param: Text not exceeding 255 characters. This field may be released by
+ * Body param: A valid email of the abuse reporter. This field may be released by
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- original_work?: string;
+ email: string;
+
+ /**
+ * Body param: Should match the value provided in `email`
+ */
+ email2: string;
/**
* Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
* and Trademark reports cannot be anonymous.
*/
- owner_notification?: 'send' | 'send-anon' | 'none';
+ host_notification: 'send' | 'send-anon';
/**
- * Body param: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP.
- * The total size of the field should not exceed 2000 characters. Each individual
- * port/protocol should not exceed 100 characters. The list should not have more
- * than 30 unique ports and protocols.
+ * Body param: Text not exceeding 255 characters. This field may be released by
+ * Cloudflare to third parties such as the Lumen Database
+ * (https://lumendatabase.org/).
*/
- ports_protocols?: string;
+ name: string;
/**
- * Body param: Text containing 2 characters
+ * Body param: If the submitter is the target of NCSEI in the URLs of the abuse
+ * report.
*/
- reported_country?: string;
+ ncsei_subject_representation: boolean;
/**
- * Body param: Text not exceeding 255 characters
+ * Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
+ * and Trademark reports cannot be anonymous.
*/
- reported_user_agent?: string;
+ owner_notification: 'send' | 'send-anon' | 'none';
/**
- * Body param: Required for DMCA reports, should be same as Name. An affirmation
- * that all information in the report is true and accurate while agreeing to the
- * policies of Cloudflare's abuse reports
+ * Body param: A list of valid URLs separated by ‘\n’ (new line character). The
+ * list of the URLs should not exceed 250 URLs. All URLs should have the same
+ * hostname. Each URL should be unique. This field may be released by Cloudflare to
+ * third parties such as the Lumen Database (https://lumendatabase.org/).
*/
- signature?: string;
+ urls: string;
/**
- * Body param: A list of IP addresses separated by ‘ ’ (new line character). The
- * list of source IPs should not exceed 30 IP addresses. Each one of the IP
- * addresses ought to be unique
+ * Body param: Any additional comments about the infringement not exceeding 2000
+ * characters
*/
- source_ips?: string;
+ comments?: string;
/**
- * Body param: Text not exceeding 255 characters. This field may be released by
+ * Body param: Text not exceeding 100 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- state?: string;
+ company?: string;
/**
- * Body param: Text not exceeding 20 characters. This field may be released by
+ * Body param: Text not exceeding 255 characters. This field may be released by
* Cloudflare to third parties such as the Lumen Database
* (https://lumendatabase.org/).
*/
- tele?: string;
+ country?: string;
/**
- * Body param: Text not exceeding 255 characters
+ * Body param: Text containing 2 characters
*/
- title?: string;
+ reported_country?: string;
/**
- * Body param: Text not exceeding 1000 characters
+ * Body param: Text not exceeding 255 characters
*/
- trademark_number?: string;
+ reported_user_agent?: string;
/**
- * Body param: Text not exceeding 1000 characters
+ * Body param: Text not exceeding 20 characters. This field may be released by
+ * Cloudflare to third parties such as the Lumen Database
+ * (https://lumendatabase.org/).
*/
- trademark_office?: string;
+ tele?: string;
/**
- * Body param: Text not exceeding 1000 characters
+ * Body param: Text not exceeding 255 characters
*/
- trademark_symbol?: string;
+ title?: string;
}
}
diff --git a/src/resources/addressing/prefixes/bgp-prefixes.ts b/src/resources/addressing/prefixes/bgp-prefixes.ts
index 519a372d99..1945d1a5b1 100644
--- a/src/resources/addressing/prefixes/bgp-prefixes.ts
+++ b/src/resources/addressing/prefixes/bgp-prefixes.ts
@@ -139,6 +139,14 @@ export interface BGPPrefix {
*/
asn_prepend_count?: number;
+ /**
+ * Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no
+ * matching BGP prefix in the Magic routing table. When true, Cloudflare will
+ * automatically withdraw the BGP prefix when there are no matching BGP routes, and
+ * will resume advertising when there is at least one matching BGP route.
+ */
+ auto_advertise_withdraw?: boolean;
+
bgp_signal_opts?: BGPPrefix.BGPSignalOpts;
/**
@@ -151,13 +159,6 @@ export interface BGPPrefix {
modified_at?: string;
on_demand?: BGPPrefix.OnDemand;
-
- /**
- * Controls whether the BGP prefix is automatically withdrawn when prefix is
- * withdrawn from Magic routing table (for Magic Transit customers using Direct
- * CNI)
- */
- withdraw_if_no_route?: boolean;
}
export namespace BGPPrefix {
@@ -234,16 +235,18 @@ export interface BGPPrefixEditParams {
asn_prepend_count?: number;
/**
- * Body param:
+ * Body param: Determines if Cloudflare advertises a BYOIP BGP prefix even when
+ * there is no matching BGP prefix in the Magic routing table. When true,
+ * Cloudflare will automatically withdraw the BGP prefix when there are no matching
+ * BGP routes, and will resume advertising when there is at least one matching BGP
+ * route.
*/
- on_demand?: BGPPrefixEditParams.OnDemand;
+ auto_advertise_withdraw?: boolean;
/**
- * Body param: Controls whether the BGP prefix is automatically withdrawn when
- * prefix is withdrawn from Magic routing table (for Magic Transit customers using
- * Direct CNI)
+ * Body param:
*/
- withdraw_if_no_route?: boolean;
+ on_demand?: BGPPrefixEditParams.OnDemand;
}
export namespace BGPPrefixEditParams {
diff --git a/src/resources/ai-gateway/ai-gateway.ts b/src/resources/ai-gateway/ai-gateway.ts
index ca019da35e..c619ead6b7 100644
--- a/src/resources/ai-gateway/ai-gateway.ts
+++ b/src/resources/ai-gateway/ai-gateway.ts
@@ -240,6 +240,8 @@ export interface AIGatewayCreateResponse {
logpush?: boolean;
logpush_public_key?: string | null;
+
+ store_id?: string | null;
}
export interface AIGatewayUpdateResponse {
@@ -279,6 +281,8 @@ export interface AIGatewayUpdateResponse {
logpush?: boolean;
logpush_public_key?: string | null;
+
+ store_id?: string | null;
}
export interface AIGatewayListResponse {
@@ -318,6 +322,8 @@ export interface AIGatewayListResponse {
logpush?: boolean;
logpush_public_key?: string | null;
+
+ store_id?: string | null;
}
export interface AIGatewayDeleteResponse {
@@ -357,6 +363,8 @@ export interface AIGatewayDeleteResponse {
logpush?: boolean;
logpush_public_key?: string | null;
+
+ store_id?: string | null;
}
export interface AIGatewayGetResponse {
@@ -396,6 +404,8 @@ export interface AIGatewayGetResponse {
logpush?: boolean;
logpush_public_key?: string | null;
+
+ store_id?: string | null;
}
export interface AIGatewayCreateParams {
@@ -525,6 +535,11 @@ export interface AIGatewayUpdateParams {
* Body param:
*/
logpush_public_key?: string | null;
+
+ /**
+ * Body param:
+ */
+ store_id?: string | null;
}
export interface AIGatewayListParams extends V4PagePaginationArrayParams {
diff --git a/src/resources/ai-gateway/logs.ts b/src/resources/ai-gateway/logs.ts
index 4142a8ce6e..f2df3ca255 100644
--- a/src/resources/ai-gateway/logs.ts
+++ b/src/resources/ai-gateway/logs.ts
@@ -408,6 +408,7 @@ export namespace LogListParams {
| 'created_at'
| 'request_content_type'
| 'response_content_type'
+ | 'request_type'
| 'success'
| 'cached'
| 'provider'
@@ -420,11 +421,13 @@ export namespace LogListParams {
| 'duration'
| 'feedback'
| 'event_id'
- | 'request_type'
| 'metadata.key'
| 'metadata.value'
| 'prompts.prompt_id'
- | 'prompts.version_id';
+ | 'prompts.version_id'
+ | 'authentication'
+ | 'wholesale'
+ | 'compatibilityMode';
operator: 'eq' | 'neq' | 'contains' | 'lt' | 'gt';
@@ -477,6 +480,7 @@ export namespace LogDeleteParams {
| 'created_at'
| 'request_content_type'
| 'response_content_type'
+ | 'request_type'
| 'success'
| 'cached'
| 'provider'
@@ -489,11 +493,13 @@ export namespace LogDeleteParams {
| 'duration'
| 'feedback'
| 'event_id'
- | 'request_type'
| 'metadata.key'
| 'metadata.value'
| 'prompts.prompt_id'
- | 'prompts.version_id';
+ | 'prompts.version_id'
+ | 'authentication'
+ | 'wholesale'
+ | 'compatibilityMode';
operator: 'eq' | 'neq' | 'contains' | 'lt' | 'gt';
diff --git a/src/resources/ai/ai.ts b/src/resources/ai/ai.ts
index f2c856be09..a728fa6bf6 100644
--- a/src/resources/ai/ai.ts
+++ b/src/resources/ai/ai.ts
@@ -65,7 +65,8 @@ export type AIRunResponse =
| AIRunResponse.Translation
| AIRunResponse.Summarization
| AIRunResponse.ImageToText
- | AIRunResponse.ImageTextToText;
+ | AIRunResponse.ImageTextToText
+ | AIRunResponse.MultimodalEmbeddings;
export namespace AIRunResponse {
export interface TextClassification {
@@ -255,6 +256,12 @@ export namespace AIRunResponse {
export interface ImageTextToText {
description?: string;
}
+
+ export interface MultimodalEmbeddings {
+ data?: Array>;
+
+ shape?: Array;
+ }
}
export type AIRunParams =
@@ -271,7 +278,8 @@ export type AIRunParams =
| AIRunParams.Summarization
| AIRunParams.ImageToText
| AIRunParams.Variant12
- | AIRunParams.Variant13;
+ | AIRunParams.Variant13
+ | AIRunParams.MultimodalEmbeddings;
export declare namespace AIRunParams {
export interface TextClassification {
@@ -1020,6 +1028,23 @@ export declare namespace AIRunParams {
role: string;
}
}
+
+ export interface MultimodalEmbeddings {
+ /**
+ * Path param:
+ */
+ account_id: string;
+
+ /**
+ * Body param: Image in base64 encoded format.
+ */
+ image?: string;
+
+ /**
+ * Body param:
+ */
+ text?: Array;
+ }
}
AI.Finetunes = Finetunes;
diff --git a/src/resources/ai/finetunes/assets.ts b/src/resources/ai/finetunes/assets.ts
index ec1feaaefd..bd45121e1a 100644
--- a/src/resources/ai/finetunes/assets.ts
+++ b/src/resources/ai/finetunes/assets.ts
@@ -13,27 +13,15 @@ export class Assets extends APIResource {
options?: Core.RequestOptions,
): Core.APIPromise {
const { account_id, ...body } = params;
- return (
- this._client.post(
- `/accounts/${account_id}/ai/finetunes/${finetuneId}/finetune-assets`,
- Core.multipartFormRequestOptions({ body, ...options }),
- ) as Core.APIPromise<{ result: AssetCreateResponse }>
- )._thenUnwrap((obj) => obj.result);
+ return this._client.post(
+ `/accounts/${account_id}/ai/finetunes/${finetuneId}/finetune-assets`,
+ Core.multipartFormRequestOptions({ body, ...options }),
+ );
}
}
export interface AssetCreateResponse {
- id: string;
-
- bucket_name: string;
-
- created_at: string;
-
- file_name: string;
-
- finetune_id: string;
-
- modified_at: string;
+ success: boolean;
}
export interface AssetCreateParams {
diff --git a/src/resources/argo/smart-routing.ts b/src/resources/argo/smart-routing.ts
index fa9e2068e2..79790b6aa6 100644
--- a/src/resources/argo/smart-routing.ts
+++ b/src/resources/argo/smart-routing.ts
@@ -5,7 +5,7 @@ import * as Core from '../../core';
export class SmartRouting extends APIResource {
/**
- * Updates enablement of Argo Smart Routing.
+ * Configures the value of the Argo Smart Routing enablement setting.
*
* @example
* ```ts
@@ -28,7 +28,7 @@ export class SmartRouting extends APIResource {
}
/**
- * Get Argo Smart Routing setting
+ * Retrieves the value of Argo Smart Routing enablement setting.
*
* @example
* ```ts
@@ -50,25 +50,65 @@ export class SmartRouting extends APIResource {
}
}
-export type SmartRoutingEditResponse = unknown | string | null;
+export interface SmartRoutingEditResponse {
+ /**
+ * Specifies the identifier of the Argo Smart Routing setting.
+ */
+ id: string;
+
+ /**
+ * Specifies if the setting is editable.
+ */
+ editable: boolean;
+
+ /**
+ * Specifies the enablement value of Argo Smart Routing.
+ */
+ value: 'on' | 'off';
+
+ /**
+ * Specifies the time when the setting was last modified.
+ */
+ modified_on?: string;
+}
-export type SmartRoutingGetResponse = unknown | string | null;
+export interface SmartRoutingGetResponse {
+ /**
+ * Specifies the identifier of the Argo Smart Routing setting.
+ */
+ id: string;
+
+ /**
+ * Specifies if the setting is editable.
+ */
+ editable: boolean;
+
+ /**
+ * Specifies the enablement value of Argo Smart Routing.
+ */
+ value: 'on' | 'off';
+
+ /**
+ * Specifies the time when the setting was last modified.
+ */
+ modified_on?: string;
+}
export interface SmartRoutingEditParams {
/**
- * Path param: Identifier
+ * Path param: Specifies the zone associated with the API call.
*/
zone_id: string;
/**
- * Body param: Enables Argo Smart Routing.
+ * Body param: Specifies the enablement value of Argo Smart Routing.
*/
value: 'on' | 'off';
}
export interface SmartRoutingGetParams {
/**
- * Identifier
+ * Specifies the zone associated with the API call.
*/
zone_id: string;
}
diff --git a/src/resources/bot-management.ts b/src/resources/bot-management.ts
index 5200d8a7d5..e7ad4ba777 100644
--- a/src/resources/bot-management.ts
+++ b/src/resources/bot-management.ts
@@ -136,6 +136,12 @@ export interface BotFightModeConfiguration {
*/
fight_mode?: boolean;
+ /**
+ * Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
+ * then managed robots.txt will be prepended to the existing robots.txt.
+ */
+ is_robots_txt_managed?: boolean;
+
/**
* A read-only field that shows which unauthorized settings are currently active on
* the zone. These settings typically result from upgrades or downgrades.
@@ -211,6 +217,12 @@ export interface BotFightModeConfigurationParam {
* Whether to enable Bot Fight Mode.
*/
fight_mode?: boolean;
+
+ /**
+ * Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
+ * then managed robots.txt will be prepended to the existing robots.txt.
+ */
+ is_robots_txt_managed?: boolean;
}
export interface SubscriptionConfiguration {
@@ -238,6 +250,12 @@ export interface SubscriptionConfiguration {
*/
enable_js?: boolean;
+ /**
+ * Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
+ * then managed robots.txt will be prepended to the existing robots.txt.
+ */
+ is_robots_txt_managed?: boolean;
+
/**
* A read-only field that shows which unauthorized settings are currently active on
* the zone. These settings typically result from upgrades or downgrades.
@@ -322,6 +340,12 @@ export interface SubscriptionConfigurationParam {
*/
enable_js?: boolean;
+ /**
+ * Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
+ * then managed robots.txt will be prepended to the existing robots.txt.
+ */
+ is_robots_txt_managed?: boolean;
+
/**
* Whether to disable tracking the highest bot score for a session in the Bot
* Management cookie.
@@ -347,6 +371,12 @@ export interface SuperBotFightModeDefinitelyConfiguration {
*/
enable_js?: boolean;
+ /**
+ * Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
+ * then managed robots.txt will be prepended to the existing robots.txt.
+ */
+ is_robots_txt_managed?: boolean;
+
/**
* Whether to optimize Super Bot Fight Mode protections for Wordpress.
*/
@@ -419,6 +449,12 @@ export interface SuperBotFightModeDefinitelyConfigurationParam {
*/
enable_js?: boolean;
+ /**
+ * Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
+ * then managed robots.txt will be prepended to the existing robots.txt.
+ */
+ is_robots_txt_managed?: boolean;
+
/**
* Whether to optimize Super Bot Fight Mode protections for Wordpress.
*/
@@ -460,6 +496,12 @@ export interface SuperBotFightModeLikelyConfiguration {
*/
enable_js?: boolean;
+ /**
+ * Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
+ * then managed robots.txt will be prepended to the existing robots.txt.
+ */
+ is_robots_txt_managed?: boolean;
+
/**
* Whether to optimize Super Bot Fight Mode protections for Wordpress.
*/
@@ -531,6 +573,12 @@ export interface SuperBotFightModeLikelyConfigurationParam {
*/
enable_js?: boolean;
+ /**
+ * Enable cloudflare managed robots.txt. If an existing robots.txt is detected,
+ * then managed robots.txt will be prepended to the existing robots.txt.
+ */
+ is_robots_txt_managed?: boolean;
+
/**
* Whether to optimize Super Bot Fight Mode protections for Wordpress.
*/
@@ -606,6 +654,12 @@ export declare namespace BotManagementUpdateParams {
* Body param: Whether to enable Bot Fight Mode.
*/
fight_mode?: boolean;
+
+ /**
+ * Body param: Enable cloudflare managed robots.txt. If an existing robots.txt is
+ * detected, then managed robots.txt will be prepended to the existing robots.txt.
+ */
+ is_robots_txt_managed?: boolean;
}
export interface SuperBotFightModeDefinitelyConfiguration {
@@ -632,6 +686,12 @@ export declare namespace BotManagementUpdateParams {
*/
enable_js?: boolean;
+ /**
+ * Body param: Enable cloudflare managed robots.txt. If an existing robots.txt is
+ * detected, then managed robots.txt will be prepended to the existing robots.txt.
+ */
+ is_robots_txt_managed?: boolean;
+
/**
* Body param: Whether to optimize Super Bot Fight Mode protections for Wordpress.
*/
@@ -681,6 +741,12 @@ export declare namespace BotManagementUpdateParams {
*/
enable_js?: boolean;
+ /**
+ * Body param: Enable cloudflare managed robots.txt. If an existing robots.txt is
+ * detected, then managed robots.txt will be prepended to the existing robots.txt.
+ */
+ is_robots_txt_managed?: boolean;
+
/**
* Body param: Whether to optimize Super Bot Fight Mode protections for Wordpress.
*/
@@ -743,6 +809,12 @@ export declare namespace BotManagementUpdateParams {
*/
enable_js?: boolean;
+ /**
+ * Body param: Enable cloudflare managed robots.txt. If an existing robots.txt is
+ * detected, then managed robots.txt will be prepended to the existing robots.txt.
+ */
+ is_robots_txt_managed?: boolean;
+
/**
* Body param: Whether to disable tracking the highest bot score for a session in
* the Bot Management cookie.
diff --git a/src/resources/brand-protection/brand-protection.ts b/src/resources/brand-protection/brand-protection.ts
index 35614d25f6..97b08f3cad 100644
--- a/src/resources/brand-protection/brand-protection.ts
+++ b/src/resources/brand-protection/brand-protection.ts
@@ -3,13 +3,26 @@
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as LogoMatchesAPI from './logo-matches';
-import { LogoMatches } from './logo-matches';
+import {
+ LogoMatchDownloadParams,
+ LogoMatchDownloadResponse,
+ LogoMatchGetParams,
+ LogoMatchGetResponse,
+ LogoMatches,
+} from './logo-matches';
import * as LogosAPI from './logos';
-import { Logos } from './logos';
+import { LogoCreateParams, LogoCreateResponse, LogoDeleteParams, Logos } from './logos';
import * as MatchesAPI from './matches';
-import { Matches } from './matches';
+import {
+ MatchDownloadParams,
+ MatchDownloadResponse,
+ MatchGetParams,
+ MatchGetResponse,
+ Matches,
+} from './matches';
import * as QueriesAPI from './queries';
-import { Queries } from './queries';
+import { Queries, QueryCreateParams, QueryDeleteParams } from './queries';
+import { SinglePage } from '../../pagination';
export class BrandProtection extends APIResource {
queries: QueriesAPI.Queries = new QueriesAPI.Queries(this._client);
@@ -18,46 +31,34 @@ export class BrandProtection extends APIResource {
logoMatches: LogoMatchesAPI.LogoMatches = new LogoMatchesAPI.LogoMatches(this._client);
/**
- * Submit suspicious URL for scanning.
- *
- * @example
- * ```ts
- * const submit = await client.brandProtection.submit({
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * });
- * ```
+ * Return new URL submissions
*/
- submit(params: BrandProtectionSubmitParams, options?: Core.RequestOptions): Core.APIPromise {
- const { account_id, ...body } = params;
- return (
- this._client.post(`/accounts/${account_id}/brand-protection/submit`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: Submit }>
- )._thenUnwrap((obj) => obj.result);
+ submit(
+ params: BrandProtectionSubmitParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id } = params;
+ return this._client.post(`/accounts/${account_id}/brand-protection/submit`, options);
}
/**
- * Gets phishing details about a URL.
- *
- * @example
- * ```ts
- * const info = await client.brandProtection.urlInfo({
- * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
- * });
- * ```
+ * Return submitted URLs based on ID
*/
- urlInfo(params: BrandProtectionURLInfoParams, options?: Core.RequestOptions): Core.APIPromise {
- const { account_id, ...query } = params;
- return (
- this._client.get(`/accounts/${account_id}/brand-protection/url-info`, {
- query,
- ...options,
- }) as Core.APIPromise<{ result: Info }>
- )._thenUnwrap((obj) => obj.result);
+ urlInfo(
+ params: BrandProtectionURLInfoParams,
+ options?: Core.RequestOptions,
+ ): Core.PagePromise {
+ const { account_id } = params;
+ return this._client.getAPIList(
+ `/accounts/${account_id}/brand-protection/url-info`,
+ BrandProtectionURLInfoResponsesSinglePage,
+ options,
+ );
}
}
+export class BrandProtectionURLInfoResponsesSinglePage extends SinglePage {}
+
export interface Info {
/**
* List of categorizations applied to this submission.
@@ -67,18 +68,18 @@ export interface Info {
/**
* List of model results for completed scans.
*/
- model_results?: Array;
+ model_results?: Array;
/**
* List of signatures that matched against site content found when crawling the
* URL.
*/
- rule_matches?: Array;
+ rule_matches?: Array;
/**
* Status of the most recent scan found.
*/
- scan_status?: ScanStatus;
+ scan_status?: Info.ScanStatus;
/**
* For internal use.
@@ -108,53 +109,65 @@ export namespace Info {
*/
verification_status?: string;
}
-}
-export interface RuleMatch {
- /**
- * For internal use.
- */
- banning?: boolean;
+ export interface ModelResult {
+ /**
+ * Name of the model.
+ */
+ model_name?: string;
- /**
- * For internal use.
- */
- blocking?: boolean;
+ /**
+ * This is the score that is outputted by the model for this submission.
+ */
+ model_score?: number;
+ }
- /**
- * Description of the signature that matched.
- */
- description?: string;
+ export interface RuleMatch {
+ /**
+ * For internal use.
+ */
+ banning?: boolean;
- /**
- * Name of the signature that matched.
- */
- name?: string;
-}
+ /**
+ * For internal use.
+ */
+ blocking?: boolean;
-/**
- * Status of the most recent scan found.
- */
-export interface ScanStatus {
- /**
- * Timestamp of when the submission was processed.
- */
- last_processed?: string;
+ /**
+ * Description of the signature that matched.
+ */
+ description?: string;
- /**
- * For internal use.
- */
- scan_complete?: boolean;
+ /**
+ * Name of the signature that matched.
+ */
+ name?: string;
+ }
/**
- * Status code that the crawler received when loading the submitted URL.
+ * Status of the most recent scan found.
*/
- status_code?: number;
+ export interface ScanStatus {
+ /**
+ * Timestamp of when the submission was processed.
+ */
+ last_processed?: string;
- /**
- * ID of the most recent submission.
- */
- submission_id?: number;
+ /**
+ * For internal use.
+ */
+ scan_complete?: boolean;
+
+ /**
+ * Status code that the crawler received when loading the submitted URL.
+ */
+ status_code?: number;
+
+ /**
+ * ID of the most recent submission.
+ */
+ submission_id?: number;
+ }
}
export interface Submit {
@@ -208,47 +221,23 @@ export namespace Submit {
}
}
-export interface URLInfoModelResults {
- /**
- * Name of the model.
- */
- model_name?: string;
+export interface BrandProtectionSubmitResponse {
+ skipped_urls?: Array<{ [key: string]: unknown }>;
- /**
- * This is the score that is outputted by the model for this submission.
- */
- model_score?: number;
+ submitted_urls?: Array<{ [key: string]: unknown }>;
}
+export type BrandProtectionURLInfoResponse = { [key: string]: unknown };
+
export interface BrandProtectionSubmitParams {
- /**
- * Path param: Identifier.
- */
account_id: string;
-
- /**
- * Body param: URL(s) to filter submissions results by.
- */
- url?: string;
}
export interface BrandProtectionURLInfoParams {
- /**
- * Path param: Identifier.
- */
account_id: string;
-
- /**
- * Query param: Submission URL(s) to filter submission results by.
- */
- url?: Array;
-
- /**
- * Query param: Submission ID(s) to filter submission results by.
- */
- url_id?: Array;
}
+BrandProtection.BrandProtectionURLInfoResponsesSinglePage = BrandProtectionURLInfoResponsesSinglePage;
BrandProtection.Queries = Queries;
BrandProtection.Matches = Matches;
BrandProtection.Logos = Logos;
@@ -257,19 +246,40 @@ BrandProtection.LogoMatches = LogoMatches;
export declare namespace BrandProtection {
export {
type Info as Info,
- type RuleMatch as RuleMatch,
- type ScanStatus as ScanStatus,
type Submit as Submit,
- type URLInfoModelResults as URLInfoModelResults,
+ type BrandProtectionSubmitResponse as BrandProtectionSubmitResponse,
+ type BrandProtectionURLInfoResponse as BrandProtectionURLInfoResponse,
+ BrandProtectionURLInfoResponsesSinglePage as BrandProtectionURLInfoResponsesSinglePage,
type BrandProtectionSubmitParams as BrandProtectionSubmitParams,
type BrandProtectionURLInfoParams as BrandProtectionURLInfoParams,
};
- export { Queries as Queries };
+ export {
+ Queries as Queries,
+ type QueryCreateParams as QueryCreateParams,
+ type QueryDeleteParams as QueryDeleteParams,
+ };
- export { Matches as Matches };
+ export {
+ Matches as Matches,
+ type MatchDownloadResponse as MatchDownloadResponse,
+ type MatchGetResponse as MatchGetResponse,
+ type MatchDownloadParams as MatchDownloadParams,
+ type MatchGetParams as MatchGetParams,
+ };
- export { Logos as Logos };
+ export {
+ Logos as Logos,
+ type LogoCreateResponse as LogoCreateResponse,
+ type LogoCreateParams as LogoCreateParams,
+ type LogoDeleteParams as LogoDeleteParams,
+ };
- export { LogoMatches as LogoMatches };
+ export {
+ LogoMatches as LogoMatches,
+ type LogoMatchDownloadResponse as LogoMatchDownloadResponse,
+ type LogoMatchGetResponse as LogoMatchGetResponse,
+ type LogoMatchDownloadParams as LogoMatchDownloadParams,
+ type LogoMatchGetParams as LogoMatchGetParams,
+ };
}
diff --git a/src/resources/brand-protection/index.ts b/src/resources/brand-protection/index.ts
index 48fb0dbe1e..23abbe5299 100644
--- a/src/resources/brand-protection/index.ts
+++ b/src/resources/brand-protection/index.ts
@@ -1,7 +1,19 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
export { BrandProtection } from './brand-protection';
-export { LogoMatches } from './logo-matches';
-export { Logos } from './logos';
-export { Matches } from './matches';
-export { Queries } from './queries';
+export {
+ LogoMatches,
+ type LogoMatchDownloadResponse,
+ type LogoMatchGetResponse,
+ type LogoMatchDownloadParams,
+ type LogoMatchGetParams,
+} from './logo-matches';
+export { Logos, type LogoCreateResponse, type LogoCreateParams, type LogoDeleteParams } from './logos';
+export {
+ Matches,
+ type MatchDownloadResponse,
+ type MatchGetResponse,
+ type MatchDownloadParams,
+ type MatchGetParams,
+} from './matches';
+export { Queries, type QueryCreateParams, type QueryDeleteParams } from './queries';
diff --git a/src/resources/brand-protection/logo-matches.ts b/src/resources/brand-protection/logo-matches.ts
index 6739017317..bc53041299 100644
--- a/src/resources/brand-protection/logo-matches.ts
+++ b/src/resources/brand-protection/logo-matches.ts
@@ -1,5 +1,93 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
+import * as Core from '../../core';
-export class LogoMatches extends APIResource {}
+export class LogoMatches extends APIResource {
+ /**
+ * Return matches as CSV for logo queries based on ID
+ */
+ download(
+ params: LogoMatchDownloadParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id, ...query } = params;
+ return this._client.get(`/accounts/${account_id}/brand-protection/logo-matches/download`, {
+ query,
+ ...options,
+ });
+ }
+
+ /**
+ * Return matches for logo queries based on ID
+ */
+ get(params: LogoMatchGetParams, options?: Core.RequestOptions): Core.APIPromise {
+ const { account_id, ...query } = params;
+ return this._client.get(`/accounts/${account_id}/brand-protection/logo-matches`, { query, ...options });
+ }
+}
+
+export interface LogoMatchDownloadResponse {
+ matches?: Array<{ [key: string]: unknown }>;
+
+ total?: number;
+}
+
+export interface LogoMatchGetResponse {
+ matches?: Array<{ [key: string]: unknown }>;
+
+ total?: number;
+}
+
+export interface LogoMatchDownloadParams {
+ /**
+ * Path param:
+ */
+ account_id: string;
+
+ /**
+ * Query param:
+ */
+ limit?: string;
+
+ /**
+ * Query param:
+ */
+ logo_id?: Array;
+
+ /**
+ * Query param:
+ */
+ offset?: string;
+}
+
+export interface LogoMatchGetParams {
+ /**
+ * Path param:
+ */
+ account_id: string;
+
+ /**
+ * Query param:
+ */
+ limit?: string;
+
+ /**
+ * Query param:
+ */
+ logo_id?: Array;
+
+ /**
+ * Query param:
+ */
+ offset?: string;
+}
+
+export declare namespace LogoMatches {
+ export {
+ type LogoMatchDownloadResponse as LogoMatchDownloadResponse,
+ type LogoMatchGetResponse as LogoMatchGetResponse,
+ type LogoMatchDownloadParams as LogoMatchDownloadParams,
+ type LogoMatchGetParams as LogoMatchGetParams,
+ };
+}
diff --git a/src/resources/brand-protection/logos.ts b/src/resources/brand-protection/logos.ts
index 59e15a9aee..dfc6907049 100644
--- a/src/resources/brand-protection/logos.ts
+++ b/src/resources/brand-protection/logos.ts
@@ -1,5 +1,77 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
+import * as Core from '../../core';
-export class Logos extends APIResource {}
+export class Logos extends APIResource {
+ /**
+ * Return new saved logo queries created from image files
+ */
+ create(params: LogoCreateParams, options?: Core.RequestOptions): Core.APIPromise {
+ const { account_id, match_type, tag, threshold, ...body } = params;
+ return this._client.post(`/accounts/${account_id}/brand-protection/logos`, {
+ query: { match_type, tag, threshold },
+ body,
+ ...options,
+ headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers },
+ });
+ }
+
+ /**
+ * Return a success message after deleting saved logo queries by ID
+ */
+ delete(logoId: string, params: LogoDeleteParams, options?: Core.RequestOptions): Core.APIPromise {
+ const { account_id } = params;
+ return this._client.delete(`/accounts/${account_id}/brand-protection/logos/${logoId}`, {
+ ...options,
+ headers: { Accept: '*/*', ...options?.headers },
+ });
+ }
+}
+
+export interface LogoCreateResponse {
+ id?: number;
+
+ tag?: string;
+
+ upload_path?: string;
+}
+
+export interface LogoCreateParams {
+ /**
+ * Path param:
+ */
+ account_id: string;
+
+ /**
+ * Query param:
+ */
+ match_type?: string;
+
+ /**
+ * Query param:
+ */
+ tag?: string;
+
+ /**
+ * Query param:
+ */
+ threshold?: number;
+
+ /**
+ * Body param:
+ */
+ image?: Core.Uploadable;
+}
+
+export interface LogoDeleteParams {
+ account_id: string;
+}
+
+export declare namespace Logos {
+ export {
+ type LogoCreateResponse as LogoCreateResponse,
+ type LogoCreateParams as LogoCreateParams,
+ type LogoDeleteParams as LogoDeleteParams,
+ };
+}
diff --git a/src/resources/brand-protection/matches.ts b/src/resources/brand-protection/matches.ts
index c158fda89e..5ce299de58 100644
--- a/src/resources/brand-protection/matches.ts
+++ b/src/resources/brand-protection/matches.ts
@@ -1,5 +1,103 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
+import * as Core from '../../core';
-export class Matches extends APIResource {}
+export class Matches extends APIResource {
+ /**
+ * Return matches as CSV for string queries based on ID
+ */
+ download(
+ params: MatchDownloadParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id, ...query } = params;
+ return this._client.get(`/accounts/${account_id}/brand-protection/matches/download`, {
+ query,
+ ...options,
+ });
+ }
+
+ /**
+ * Return matches for string queries based on ID
+ */
+ get(params: MatchGetParams, options?: Core.RequestOptions): Core.APIPromise {
+ const { account_id, ...query } = params;
+ return this._client.get(`/accounts/${account_id}/brand-protection/matches`, { query, ...options });
+ }
+}
+
+export interface MatchDownloadResponse {
+ matches?: Array<{ [key: string]: unknown }>;
+
+ total?: number;
+}
+
+export interface MatchGetResponse {
+ matches?: Array<{ [key: string]: unknown }>;
+
+ total?: number;
+}
+
+export interface MatchDownloadParams {
+ /**
+ * Path param:
+ */
+ account_id: string;
+
+ /**
+ * Query param:
+ */
+ id?: string;
+
+ /**
+ * Query param:
+ */
+ include_domain_id?: boolean;
+
+ /**
+ * Query param:
+ */
+ limit?: number;
+
+ /**
+ * Query param:
+ */
+ offset?: number;
+}
+
+export interface MatchGetParams {
+ /**
+ * Path param:
+ */
+ account_id: string;
+
+ /**
+ * Query param:
+ */
+ id?: string;
+
+ /**
+ * Query param:
+ */
+ include_domain_id?: boolean;
+
+ /**
+ * Query param:
+ */
+ limit?: number;
+
+ /**
+ * Query param:
+ */
+ offset?: number;
+}
+
+export declare namespace Matches {
+ export {
+ type MatchDownloadResponse as MatchDownloadResponse,
+ type MatchGetResponse as MatchGetResponse,
+ type MatchDownloadParams as MatchDownloadParams,
+ type MatchGetParams as MatchGetParams,
+ };
+}
diff --git a/src/resources/brand-protection/queries.ts b/src/resources/brand-protection/queries.ts
index 1794cc0174..ec7289f369 100644
--- a/src/resources/brand-protection/queries.ts
+++ b/src/resources/brand-protection/queries.ts
@@ -1,5 +1,104 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
+import * as Core from '../../core';
-export class Queries extends APIResource {}
+export class Queries extends APIResource {
+ /**
+ * Return a success message after creating new saved string queries
+ */
+ create(params: QueryCreateParams, options?: Core.RequestOptions): Core.APIPromise {
+ const { account_id, id, query_scan, query_tag, ...body } = params;
+ return this._client.post(`/accounts/${account_id}/brand-protection/queries`, {
+ query: { id, scan: query_scan, tag: query_tag },
+ body,
+ ...options,
+ headers: { Accept: '*/*', ...options?.headers },
+ });
+ }
+
+ /**
+ * Return a success message after deleting saved string queries by ID
+ */
+ delete(params: QueryDeleteParams, options?: Core.RequestOptions): Core.APIPromise {
+ const { account_id, id, scan, tag } = params;
+ return this._client.delete(`/accounts/${account_id}/brand-protection/queries`, {
+ query: { id, scan, tag },
+ ...options,
+ headers: { Accept: '*/*', ...options?.headers },
+ });
+ }
+}
+
+export interface QueryCreateParams {
+ /**
+ * Path param:
+ */
+ account_id: string;
+
+ /**
+ * Query param:
+ */
+ id?: string;
+
+ /**
+ * Query param:
+ */
+ query_scan?: boolean;
+
+ /**
+ * Query param:
+ */
+ query_tag?: string;
+
+ /**
+ * Body param:
+ */
+ max_time?: string | null;
+
+ /**
+ * Body param:
+ */
+ min_time?: string | null;
+
+ /**
+ * Body param:
+ */
+ body_scan?: boolean;
+
+ /**
+ * Body param:
+ */
+ string_matches?: unknown;
+
+ /**
+ * Body param:
+ */
+ body_tag?: string;
+}
+
+export interface QueryDeleteParams {
+ /**
+ * Path param:
+ */
+ account_id: string;
+
+ /**
+ * Query param:
+ */
+ id?: string;
+
+ /**
+ * Query param:
+ */
+ scan?: boolean;
+
+ /**
+ * Query param:
+ */
+ tag?: string;
+}
+
+export declare namespace Queries {
+ export { type QueryCreateParams as QueryCreateParams, type QueryDeleteParams as QueryDeleteParams };
+}
diff --git a/src/resources/browser-rendering/json.ts b/src/resources/browser-rendering/json.ts
index f236ed4200..5afa5cc125 100644
--- a/src/resources/browser-rendering/json.ts
+++ b/src/resources/browser-rendering/json.ts
@@ -98,6 +98,13 @@ export interface JsonCreateParams {
*/
cookies?: Array;
+ /**
+ * Body param: Optional list of custom AI models to use for the request. The models
+ * will be tried in the order provided, and in case a model returns an error, the
+ * next one will be used as fallback.
+ */
+ custom_ai?: Array;
+
/**
* Body param:
*/
@@ -248,6 +255,19 @@ export namespace JsonCreateParams {
url?: string;
}
+ export interface CustomAI {
+ /**
+ * Authorization token for the AI model: `Bearer `.
+ */
+ authorization: string;
+
+ /**
+ * AI model to use for the request. Must be formed as `/`,
+ * e.g. `workers-ai/@cf/meta/llama-3.3-70b-instruct-fp8-fast`
+ */
+ model: string;
+ }
+
/**
* Check [options](https://pptr.dev/api/puppeteer.gotooptions).
*/
diff --git a/src/resources/cache/cache.ts b/src/resources/cache/cache.ts
index e62dd3c823..4b57d9c83f 100644
--- a/src/resources/cache/cache.ts
+++ b/src/resources/cache/cache.ts
@@ -123,7 +123,7 @@ export class Cache extends APIResource {
* @example
* ```ts
* const response = await client.cache.purge({
- * zone_id: 'zone_id',
+ * zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
* });
* ```
*/
@@ -138,9 +138,6 @@ export class Cache extends APIResource {
}
export interface CachePurgeResponse {
- /**
- * Identifier.
- */
id: string;
}
diff --git a/src/resources/cloudforce-one/binary-storage.ts b/src/resources/cloudforce-one/binary-storage.ts
new file mode 100644
index 0000000000..f5aefc3772
--- /dev/null
+++ b/src/resources/cloudforce-one/binary-storage.ts
@@ -0,0 +1,84 @@
+// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+import { APIResource } from '../../resource';
+import * as Core from '../../core';
+
+export class BinaryStorage extends APIResource {
+ /**
+ * Posts a file to Binary Storage
+ *
+ * @example
+ * ```ts
+ * const binaryStorage =
+ * await client.cloudforceOne.binaryStorage.create({
+ * account_id: 'account_id',
+ * file: fs.createReadStream('path/to/file'),
+ * });
+ * ```
+ */
+ create(
+ params: BinaryStorageCreateParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id, ...body } = params;
+ return this._client.post(
+ `/accounts/${account_id}/cloudforce-one/binary`,
+ Core.multipartFormRequestOptions({ body, ...options }),
+ );
+ }
+
+ /**
+ * Retrieves a file from Binary Storage
+ *
+ * @example
+ * ```ts
+ * await client.cloudforceOne.binaryStorage.get('hash', {
+ * account_id: 'account_id',
+ * });
+ * ```
+ */
+ get(hash: string, params: BinaryStorageGetParams, options?: Core.RequestOptions): Core.APIPromise {
+ const { account_id } = params;
+ return this._client.get(`/accounts/${account_id}/cloudforce-one/binary/${hash}`, {
+ ...options,
+ headers: { Accept: '*/*', ...options?.headers },
+ });
+ }
+}
+
+export interface BinaryStorageCreateResponse {
+ content_type: string;
+
+ md5: string;
+
+ sha1: string;
+
+ sha256: string;
+}
+
+export interface BinaryStorageCreateParams {
+ /**
+ * Path param: Account ID.
+ */
+ account_id: string;
+
+ /**
+ * Body param: The binary file content to upload.
+ */
+ file: Core.Uploadable;
+}
+
+export interface BinaryStorageGetParams {
+ /**
+ * Account ID.
+ */
+ account_id: string;
+}
+
+export declare namespace BinaryStorage {
+ export {
+ type BinaryStorageCreateResponse as BinaryStorageCreateResponse,
+ type BinaryStorageCreateParams as BinaryStorageCreateParams,
+ type BinaryStorageGetParams as BinaryStorageGetParams,
+ };
+}
diff --git a/src/resources/cloudforce-one/cloudforce-one.ts b/src/resources/cloudforce-one/cloudforce-one.ts
index 758dc12742..aeabfa782e 100644
--- a/src/resources/cloudforce-one/cloudforce-one.ts
+++ b/src/resources/cloudforce-one/cloudforce-one.ts
@@ -1,6 +1,13 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
+import * as BinaryStorageAPI from './binary-storage';
+import {
+ BinaryStorage,
+ BinaryStorageCreateParams,
+ BinaryStorageCreateResponse,
+ BinaryStorageGetParams,
+} from './binary-storage';
import * as RequestsAPI from './requests/requests';
import {
Item,
@@ -43,11 +50,13 @@ import {
export class CloudforceOne extends APIResource {
scans: ScansAPI.Scans = new ScansAPI.Scans(this._client);
+ binaryStorage: BinaryStorageAPI.BinaryStorage = new BinaryStorageAPI.BinaryStorage(this._client);
requests: RequestsAPI.Requests = new RequestsAPI.Requests(this._client);
threatEvents: ThreatEventsAPI.ThreatEvents = new ThreatEventsAPI.ThreatEvents(this._client);
}
CloudforceOne.Scans = Scans;
+CloudforceOne.BinaryStorage = BinaryStorage;
CloudforceOne.Requests = Requests;
CloudforceOne.ListItemsSinglePage = ListItemsSinglePage;
CloudforceOne.RequestTypesResponsesSinglePage = RequestTypesResponsesSinglePage;
@@ -56,6 +65,13 @@ CloudforceOne.ThreatEvents = ThreatEvents;
export declare namespace CloudforceOne {
export { Scans as Scans };
+ export {
+ BinaryStorage as BinaryStorage,
+ type BinaryStorageCreateResponse as BinaryStorageCreateResponse,
+ type BinaryStorageCreateParams as BinaryStorageCreateParams,
+ type BinaryStorageGetParams as BinaryStorageGetParams,
+ };
+
export {
Requests as Requests,
type Item as Item,
diff --git a/src/resources/cloudforce-one/index.ts b/src/resources/cloudforce-one/index.ts
index 49d822b613..f69388911d 100644
--- a/src/resources/cloudforce-one/index.ts
+++ b/src/resources/cloudforce-one/index.ts
@@ -1,5 +1,11 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+export {
+ BinaryStorage,
+ type BinaryStorageCreateResponse,
+ type BinaryStorageCreateParams,
+ type BinaryStorageGetParams,
+} from './binary-storage';
export { CloudforceOne } from './cloudforce-one';
export {
ListItemsSinglePage,
diff --git a/src/resources/cloudforce-one/threat-events/index.ts b/src/resources/cloudforce-one/threat-events/index.ts
index 146beb3bcc..6a36effbdf 100644
--- a/src/resources/cloudforce-one/threat-events/index.ts
+++ b/src/resources/cloudforce-one/threat-events/index.ts
@@ -47,17 +47,7 @@ export {
type IndicatorTypeListResponse,
type IndicatorTypeListParams,
} from './indicator-types';
-export {
- Insights,
- type InsightCreateResponse,
- type InsightDeleteResponse,
- type InsightEditResponse,
- type InsightGetResponse,
- type InsightCreateParams,
- type InsightDeleteParams,
- type InsightEditParams,
- type InsightGetParams,
-} from './insights';
+export { Insights } from './insights';
export { Raw, type RawEditResponse, type RawGetResponse, type RawEditParams, type RawGetParams } from './raw';
export { Relate, type RelateDeleteResponse, type RelateDeleteParams } from './relate';
export { Tags, type TagCreateResponse, type TagCreateParams } from './tags';
diff --git a/src/resources/cloudforce-one/threat-events/insights.ts b/src/resources/cloudforce-one/threat-events/insights.ts
index b20b1bc870..99fabeef7d 100644
--- a/src/resources/cloudforce-one/threat-events/insights.ts
+++ b/src/resources/cloudforce-one/threat-events/insights.ts
@@ -1,197 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../resource';
-import * as Core from '../../../core';
-export class Insights extends APIResource {
- /**
- * Adds an insight to an event
- *
- * @example
- * ```ts
- * const insight =
- * await client.cloudforceOne.threatEvents.insights.create(
- * 'event_id',
- * {
- * account_id: 'account_id',
- * content:
- * 'Here is some additional context _in markdown_',
- * },
- * );
- * ```
- */
- create(
- eventId: string,
- params: InsightCreateParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id, ...body } = params;
- return (
- this._client.post(`/accounts/${account_id}/cloudforce-one/events/${eventId}/insight/create`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: InsightCreateResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-
- /**
- * Deletes an event insight
- *
- * @example
- * ```ts
- * const insight =
- * await client.cloudforceOne.threatEvents.insights.delete(
- * 'event_id',
- * 'insight_id',
- * { account_id: 'account_id' },
- * );
- * ```
- */
- delete(
- eventId: string,
- insightId: string,
- params: InsightDeleteParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id } = params;
- return (
- this._client.delete(
- `/accounts/${account_id}/cloudforce-one/events/${eventId}/insight/${insightId}`,
- options,
- ) as Core.APIPromise<{ result: InsightDeleteResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-
- /**
- * Updates an event insight
- *
- * @example
- * ```ts
- * const response =
- * await client.cloudforceOne.threatEvents.insights.edit(
- * 'event_id',
- * 'insight_id',
- * {
- * account_id: 'account_id',
- * content:
- * 'Updated: Here is some additional context _in markdown_',
- * },
- * );
- * ```
- */
- edit(
- eventId: string,
- insightId: string,
- params: InsightEditParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id, ...body } = params;
- return (
- this._client.patch(`/accounts/${account_id}/cloudforce-one/events/${eventId}/insight/${insightId}`, {
- body,
- ...options,
- }) as Core.APIPromise<{ result: InsightEditResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-
- /**
- * Reads an event insight
- *
- * @example
- * ```ts
- * const insight =
- * await client.cloudforceOne.threatEvents.insights.get(
- * 'event_id',
- * 'insight_id',
- * { account_id: 'account_id' },
- * );
- * ```
- */
- get(
- eventId: string,
- insightId: string,
- params: InsightGetParams,
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- const { account_id } = params;
- return (
- this._client.get(
- `/accounts/${account_id}/cloudforce-one/events/${eventId}/insight/${insightId}`,
- options,
- ) as Core.APIPromise<{ result: InsightGetResponse }>
- )._thenUnwrap((obj) => obj.result);
- }
-}
-
-export interface InsightCreateResponse {
- content: string;
-
- uuid: string;
-}
-
-export interface InsightDeleteResponse {
- success: boolean;
-}
-
-export interface InsightEditResponse {
- content: string;
-
- uuid: string;
-}
-
-export interface InsightGetResponse {
- content: string;
-
- uuid: string;
-}
-
-export interface InsightCreateParams {
- /**
- * Path param: Account ID.
- */
- account_id: string;
-
- /**
- * Body param:
- */
- content: string;
-}
-
-export interface InsightDeleteParams {
- /**
- * Account ID.
- */
- account_id: string;
-}
-
-export interface InsightEditParams {
- /**
- * Path param: Account ID.
- */
- account_id: string;
-
- /**
- * Body param:
- */
- content: string;
-}
-
-export interface InsightGetParams {
- /**
- * Account ID.
- */
- account_id: string;
-}
-
-export declare namespace Insights {
- export {
- type InsightCreateResponse as InsightCreateResponse,
- type InsightDeleteResponse as InsightDeleteResponse,
- type InsightEditResponse as InsightEditResponse,
- type InsightGetResponse as InsightGetResponse,
- type InsightCreateParams as InsightCreateParams,
- type InsightDeleteParams as InsightDeleteParams,
- type InsightEditParams as InsightEditParams,
- type InsightGetParams as InsightGetParams,
- };
-}
+export class Insights extends APIResource {}
diff --git a/src/resources/cloudforce-one/threat-events/threat-events.ts b/src/resources/cloudforce-one/threat-events/threat-events.ts
index 967c7e19e4..34a9196da9 100644
--- a/src/resources/cloudforce-one/threat-events/threat-events.ts
+++ b/src/resources/cloudforce-one/threat-events/threat-events.ts
@@ -33,17 +33,7 @@ import {
import * as IndicatorTypesAPI from './indicator-types';
import { IndicatorTypeListParams, IndicatorTypeListResponse, IndicatorTypes } from './indicator-types';
import * as InsightsAPI from './insights';
-import {
- InsightCreateParams,
- InsightCreateResponse,
- InsightDeleteParams,
- InsightDeleteResponse,
- InsightEditParams,
- InsightEditResponse,
- InsightGetParams,
- InsightGetResponse,
- Insights,
-} from './insights';
+import { Insights } from './insights';
import * as RawAPI from './raw';
import { Raw as RawAPIRaw, RawEditParams, RawEditResponse, RawGetParams, RawGetResponse } from './raw';
import * as RelateAPI from './relate';
@@ -84,10 +74,10 @@ export class ThreatEvents extends APIResource {
insights: InsightsAPI.Insights = new InsightsAPI.Insights(this._client);
/**
- * Events must be created in a client-specific dataset, which means the `datasetId`
- * parameter must be defined. To create a dataset, see the
+ * To create a dataset, see the
* [`Create Dataset`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/create/)
- * endpoint.
+ * endpoint. When `datasetId` parameter is unspecified, it will be created in a
+ * default dataset named `Cloudforce One Threat Events`.
*
* @example
* ```ts
@@ -112,8 +102,9 @@ export class ThreatEvents extends APIResource {
}
/**
- * The `datasetId` must be defined (to list existing datasets (and their IDs), use
- * the
+ * When `datasetId` is unspecified, events will be listed from the
+ * `Cloudforce One Threat Events` dataset. To list existing datasets (and their
+ * IDs), use the
* [`List Datasets`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/list/)
* endpoint). Also, must provide query parameters.
*
@@ -511,7 +502,7 @@ export interface ThreatEventCreateParams {
/**
* Body param:
*/
- attacker?: string;
+ attacker?: string | null;
/**
* Body param:
@@ -658,7 +649,7 @@ export namespace ThreatEventBulkCreateParams {
accountId?: number;
- attacker?: string;
+ attacker?: string | null;
attackerCountry?: string;
@@ -693,7 +684,7 @@ export interface ThreatEventEditParams {
/**
* Body param:
*/
- attacker?: string;
+ attacker?: string | null;
/**
* Body param:
@@ -725,6 +716,16 @@ export interface ThreatEventEditParams {
*/
indicatorType?: string;
+ /**
+ * Body param:
+ */
+ insight?: string;
+
+ /**
+ * Body param:
+ */
+ raw?: ThreatEventEditParams.Raw;
+
/**
* Body param:
*/
@@ -741,6 +742,16 @@ export interface ThreatEventEditParams {
tlp?: string;
}
+export namespace ThreatEventEditParams {
+ export interface Raw {
+ data?: { [key: string]: unknown } | null;
+
+ source?: string;
+
+ tlp?: string;
+ }
+}
+
export interface ThreatEventGetParams {
/**
* Account ID.
@@ -865,15 +876,5 @@ export declare namespace ThreatEvents {
type TargetIndustryListParams as TargetIndustryListParams,
};
- export {
- Insights as Insights,
- type InsightCreateResponse as InsightCreateResponse,
- type InsightDeleteResponse as InsightDeleteResponse,
- type InsightEditResponse as InsightEditResponse,
- type InsightGetResponse as InsightGetResponse,
- type InsightCreateParams as InsightCreateParams,
- type InsightDeleteParams as InsightDeleteParams,
- type InsightEditParams as InsightEditParams,
- type InsightGetParams as InsightGetParams,
- };
+ export { Insights as Insights };
}
diff --git a/src/resources/custom-nameservers.ts b/src/resources/custom-nameservers.ts
index 9e8ba96e78..8542a87c22 100644
--- a/src/resources/custom-nameservers.ts
+++ b/src/resources/custom-nameservers.ts
@@ -102,7 +102,7 @@ export interface CustomNameserver {
status: 'moved' | 'pending' | 'verified';
/**
- * Identifier
+ * Identifier.
*/
zone_tag: string;
diff --git a/src/resources/custom-pages.ts b/src/resources/custom-pages.ts
index 38ab076687..6bd1b13cf7 100644
--- a/src/resources/custom-pages.ts
+++ b/src/resources/custom-pages.ts
@@ -13,7 +13,7 @@ export class CustomPages extends APIResource {
* @example
* ```ts
* const customPage = await client.customPages.update(
- * '023e105f4ecef8ad9ca31a8372d0c353',
+ * 'ratelimit_block',
* {
* state: 'default',
* url: 'http://www.example.com',
@@ -23,10 +23,17 @@ export class CustomPages extends APIResource {
* ```
*/
update(
- identifier: string,
+ identifier:
+ | 'waf_block'
+ | 'ip_block'
+ | 'country_challenge'
+ | '500_errors'
+ | '1000_errors'
+ | 'managed_challenge'
+ | 'ratelimit_block',
params: CustomPageUpdateParams,
options?: Core.RequestOptions,
- ): Core.APIPromise {
+ ): Core.APIPromise {
const { account_id, zone_id, ...body } = params;
if (!account_id && !zone_id) {
throw new CloudflareError('You must provide either account_id or zone_id.');
@@ -48,7 +55,7 @@ export class CustomPages extends APIResource {
this._client.put(`/${accountOrZone}/${accountOrZoneId}/custom_pages/${identifier}`, {
body,
...options,
- }) as Core.APIPromise<{ result: CustomPageUpdateResponse | null }>
+ }) as Core.APIPromise<{ result: CustomPageUpdateResponse }>
)._thenUnwrap((obj) => obj.result);
}
@@ -109,22 +116,46 @@ export class CustomPages extends APIResource {
* @example
* ```ts
* const customPage = await client.customPages.get(
- * '023e105f4ecef8ad9ca31a8372d0c353',
+ * 'ratelimit_block',
* { account_id: 'account_id' },
* );
* ```
*/
get(
- identifier: string,
+ identifier:
+ | 'waf_block'
+ | 'ip_block'
+ | 'country_challenge'
+ | '500_errors'
+ | '1000_errors'
+ | 'managed_challenge'
+ | 'ratelimit_block',
params?: CustomPageGetParams,
options?: Core.RequestOptions,
- ): Core.APIPromise;
- get(identifier: string, options?: Core.RequestOptions): Core.APIPromise;
+ ): Core.APIPromise;
get(
- identifier: string,
+ identifier:
+ | 'waf_block'
+ | 'ip_block'
+ | 'country_challenge'
+ | '500_errors'
+ | '1000_errors'
+ | 'managed_challenge'
+ | 'ratelimit_block',
+ options?: Core.RequestOptions,
+ ): Core.APIPromise;
+ get(
+ identifier:
+ | 'waf_block'
+ | 'ip_block'
+ | 'country_challenge'
+ | '500_errors'
+ | '1000_errors'
+ | 'managed_challenge'
+ | 'ratelimit_block',
params: CustomPageGetParams | Core.RequestOptions = {},
options?: Core.RequestOptions,
- ): Core.APIPromise {
+ ): Core.APIPromise {
if (isRequestOptions(params)) {
return this.get(identifier, {}, params);
}
@@ -149,18 +180,84 @@ export class CustomPages extends APIResource {
this._client.get(
`/${accountOrZone}/${accountOrZoneId}/custom_pages/${identifier}`,
options,
- ) as Core.APIPromise<{ result: CustomPageGetResponse | null }>
+ ) as Core.APIPromise<{ result: CustomPageGetResponse }>
)._thenUnwrap((obj) => obj.result);
}
}
export class CustomPageListResponsesSinglePage extends SinglePage {}
-export type CustomPageUpdateResponse = unknown | string;
+export interface CustomPageUpdateResponse {
+ id?: string;
+
+ created_on?: string;
+
+ description?: string;
+
+ modified_on?: string;
+
+ preview_target?: string;
+
+ required_tokens?: Array;
+
+ /**
+ * The custom page state.
+ */
+ state?: 'default' | 'customized';
+
+ /**
+ * The URL associated with the custom page.
+ */
+ url?: string;
+}
+
+export interface CustomPageListResponse {
+ id?: string;
+
+ created_on?: string;
+
+ description?: string;
+
+ modified_on?: string;
+
+ preview_target?: string;
-export type CustomPageListResponse = unknown;
+ required_tokens?: Array;
-export type CustomPageGetResponse = unknown | string;
+ /**
+ * The custom page state.
+ */
+ state?: 'default' | 'customized';
+
+ /**
+ * The URL associated with the custom page.
+ */
+ url?: string;
+}
+
+export interface CustomPageGetResponse {
+ id?: string;
+
+ created_on?: string;
+
+ description?: string;
+
+ modified_on?: string;
+
+ preview_target?: string;
+
+ required_tokens?: Array;
+
+ /**
+ * The custom page state.
+ */
+ state?: 'default' | 'customized';
+
+ /**
+ * The URL associated with the custom page.
+ */
+ url?: string;
+}
export interface CustomPageUpdateParams {
/**
diff --git a/src/resources/diagnostics/diagnostics.ts b/src/resources/diagnostics/diagnostics.ts
index f8ee339f11..395bc5f6a3 100644
--- a/src/resources/diagnostics/diagnostics.ts
+++ b/src/resources/diagnostics/diagnostics.ts
@@ -1,15 +1,33 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
+import * as EndpointHealthchecksAPI from './endpoint-healthchecks';
+import {
+ EndpointHealthcheck,
+ EndpointHealthcheckCreateParams,
+ EndpointHealthcheckCreateResponse,
+ EndpointHealthcheckDeleteParams,
+ EndpointHealthcheckDeleteResponse,
+ EndpointHealthcheckGetParams,
+ EndpointHealthcheckGetResponse,
+ EndpointHealthcheckListParams,
+ EndpointHealthcheckListResponse,
+ EndpointHealthcheckUpdateParams,
+ EndpointHealthcheckUpdateResponse,
+ EndpointHealthchecks,
+} from './endpoint-healthchecks';
import * as TraceroutesAPI from './traceroutes';
import { Traceroute, TracerouteCreateParams, Traceroutes, TraceroutesSinglePage } from './traceroutes';
export class Diagnostics extends APIResource {
traceroutes: TraceroutesAPI.Traceroutes = new TraceroutesAPI.Traceroutes(this._client);
+ endpointHealthchecks: EndpointHealthchecksAPI.EndpointHealthchecks =
+ new EndpointHealthchecksAPI.EndpointHealthchecks(this._client);
}
Diagnostics.Traceroutes = Traceroutes;
Diagnostics.TraceroutesSinglePage = TraceroutesSinglePage;
+Diagnostics.EndpointHealthchecks = EndpointHealthchecks;
export declare namespace Diagnostics {
export {
@@ -18,4 +36,19 @@ export declare namespace Diagnostics {
TraceroutesSinglePage as TraceroutesSinglePage,
type TracerouteCreateParams as TracerouteCreateParams,
};
+
+ export {
+ EndpointHealthchecks as EndpointHealthchecks,
+ type EndpointHealthcheck as EndpointHealthcheck,
+ type EndpointHealthcheckCreateResponse as EndpointHealthcheckCreateResponse,
+ type EndpointHealthcheckUpdateResponse as EndpointHealthcheckUpdateResponse,
+ type EndpointHealthcheckListResponse as EndpointHealthcheckListResponse,
+ type EndpointHealthcheckDeleteResponse as EndpointHealthcheckDeleteResponse,
+ type EndpointHealthcheckGetResponse as EndpointHealthcheckGetResponse,
+ type EndpointHealthcheckCreateParams as EndpointHealthcheckCreateParams,
+ type EndpointHealthcheckUpdateParams as EndpointHealthcheckUpdateParams,
+ type EndpointHealthcheckListParams as EndpointHealthcheckListParams,
+ type EndpointHealthcheckDeleteParams as EndpointHealthcheckDeleteParams,
+ type EndpointHealthcheckGetParams as EndpointHealthcheckGetParams,
+ };
}
diff --git a/src/resources/diagnostics/endpoint-healthchecks.ts b/src/resources/diagnostics/endpoint-healthchecks.ts
new file mode 100644
index 0000000000..ed1fbfa81f
--- /dev/null
+++ b/src/resources/diagnostics/endpoint-healthchecks.ts
@@ -0,0 +1,364 @@
+// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+import { APIResource } from '../../resource';
+import * as Core from '../../core';
+
+export class EndpointHealthchecks extends APIResource {
+ /**
+ * Create Endpoint Health Check.
+ *
+ * @example
+ * ```ts
+ * const endpointHealthcheck =
+ * await client.diagnostics.endpointHealthchecks.create({
+ * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ * check_type: 'icmp',
+ * endpoint: '203.0.113.1',
+ * });
+ * ```
+ */
+ create(
+ params: EndpointHealthcheckCreateParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id, ...body } = params;
+ return (
+ this._client.post(`/accounts/${account_id}/diagnostics/endpoint-healthchecks`, {
+ body,
+ ...options,
+ }) as Core.APIPromise<{ result: EndpointHealthcheckCreateResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Update a Endpoint Health Check.
+ *
+ * @example
+ * ```ts
+ * const endpointHealthcheck =
+ * await client.diagnostics.endpointHealthchecks.update(
+ * 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415',
+ * {
+ * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ * check_type: 'icmp',
+ * endpoint: '203.0.113.1',
+ * },
+ * );
+ * ```
+ */
+ update(
+ id: string,
+ params: EndpointHealthcheckUpdateParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id, ...body } = params;
+ return (
+ this._client.put(`/accounts/${account_id}/diagnostics/endpoint-healthchecks/${id}`, {
+ body,
+ ...options,
+ }) as Core.APIPromise<{ result: EndpointHealthcheckUpdateResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * List Endpoint Health Checks.
+ *
+ * @example
+ * ```ts
+ * const endpointHealthchecks =
+ * await client.diagnostics.endpointHealthchecks.list({
+ * account_id: '023e105f4ecef8ad9ca31a8372d0c353',
+ * });
+ * ```
+ */
+ list(
+ params: EndpointHealthcheckListParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id } = params;
+ return (
+ this._client.get(
+ `/accounts/${account_id}/diagnostics/endpoint-healthchecks`,
+ options,
+ ) as Core.APIPromise<{ result: EndpointHealthcheckListResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Delete Endpoint Health Check.
+ *
+ * @example
+ * ```ts
+ * const endpointHealthcheck =
+ * await client.diagnostics.endpointHealthchecks.delete(
+ * 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415',
+ * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
+ * );
+ * ```
+ */
+ delete(
+ id: string,
+ params: EndpointHealthcheckDeleteParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id } = params;
+ return this._client.delete(`/accounts/${account_id}/diagnostics/endpoint-healthchecks/${id}`, options);
+ }
+
+ /**
+ * Get a single Endpoint Health Check.
+ *
+ * @example
+ * ```ts
+ * const endpointHealthcheck =
+ * await client.diagnostics.endpointHealthchecks.get(
+ * 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415',
+ * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
+ * );
+ * ```
+ */
+ get(
+ id: string,
+ params: EndpointHealthcheckGetParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ const { account_id } = params;
+ return (
+ this._client.get(
+ `/accounts/${account_id}/diagnostics/endpoint-healthchecks/${id}`,
+ options,
+ ) as Core.APIPromise<{ result: EndpointHealthcheckGetResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+}
+
+export interface EndpointHealthcheck {
+ /**
+ * type of check to perform
+ */
+ check_type: 'icmp';
+
+ /**
+ * the IP address of the host to perform checks against
+ */
+ endpoint: string;
+
+ /**
+ * Optional name associated with this check
+ */
+ name?: string;
+}
+
+export interface EndpointHealthcheckCreateResponse {
+ /**
+ * type of check to perform
+ */
+ check_type: 'icmp';
+
+ /**
+ * the IP address of the host to perform checks against
+ */
+ endpoint: string;
+
+ /**
+ * UUID.
+ */
+ id?: string;
+
+ /**
+ * Optional name associated with this check
+ */
+ name?: string;
+}
+
+export interface EndpointHealthcheckUpdateResponse {
+ /**
+ * type of check to perform
+ */
+ check_type: 'icmp';
+
+ /**
+ * the IP address of the host to perform checks against
+ */
+ endpoint: string;
+
+ /**
+ * UUID.
+ */
+ id?: string;
+
+ /**
+ * Optional name associated with this check
+ */
+ name?: string;
+}
+
+export interface EndpointHealthcheckListResponse {
+ /**
+ * type of check to perform
+ */
+ check_type: 'icmp';
+
+ /**
+ * the IP address of the host to perform checks against
+ */
+ endpoint: string;
+
+ /**
+ * UUID.
+ */
+ id?: string;
+
+ /**
+ * Optional name associated with this check
+ */
+ name?: string;
+}
+
+export interface EndpointHealthcheckDeleteResponse {
+ errors: Array;
+
+ messages: Array;
+
+ /**
+ * Whether the API call was successful.
+ */
+ success: true;
+}
+
+export namespace EndpointHealthcheckDeleteResponse {
+ export interface Error {
+ code: number;
+
+ message: string;
+
+ documentation_url?: string;
+
+ source?: Error.Source;
+ }
+
+ export namespace Error {
+ export interface Source {
+ pointer?: string;
+ }
+ }
+
+ export interface Message {
+ code: number;
+
+ message: string;
+
+ documentation_url?: string;
+
+ source?: Message.Source;
+ }
+
+ export namespace Message {
+ export interface Source {
+ pointer?: string;
+ }
+ }
+}
+
+export interface EndpointHealthcheckGetResponse {
+ /**
+ * type of check to perform
+ */
+ check_type: 'icmp';
+
+ /**
+ * the IP address of the host to perform checks against
+ */
+ endpoint: string;
+
+ /**
+ * UUID.
+ */
+ id?: string;
+
+ /**
+ * Optional name associated with this check
+ */
+ name?: string;
+}
+
+export interface EndpointHealthcheckCreateParams {
+ /**
+ * Path param: Identifier
+ */
+ account_id: string;
+
+ /**
+ * Body param: type of check to perform
+ */
+ check_type: 'icmp';
+
+ /**
+ * Body param: the IP address of the host to perform checks against
+ */
+ endpoint: string;
+
+ /**
+ * Body param: Optional name associated with this check
+ */
+ name?: string;
+}
+
+export interface EndpointHealthcheckUpdateParams {
+ /**
+ * Path param: Identifier
+ */
+ account_id: string;
+
+ /**
+ * Body param: type of check to perform
+ */
+ check_type: 'icmp';
+
+ /**
+ * Body param: the IP address of the host to perform checks against
+ */
+ endpoint: string;
+
+ /**
+ * Body param: Optional name associated with this check
+ */
+ name?: string;
+}
+
+export interface EndpointHealthcheckListParams {
+ /**
+ * Identifier
+ */
+ account_id: string;
+}
+
+export interface EndpointHealthcheckDeleteParams {
+ /**
+ * Identifier
+ */
+ account_id: string;
+}
+
+export interface EndpointHealthcheckGetParams {
+ /**
+ * Identifier
+ */
+ account_id: string;
+}
+
+export declare namespace EndpointHealthchecks {
+ export {
+ type EndpointHealthcheck as EndpointHealthcheck,
+ type EndpointHealthcheckCreateResponse as EndpointHealthcheckCreateResponse,
+ type EndpointHealthcheckUpdateResponse as EndpointHealthcheckUpdateResponse,
+ type EndpointHealthcheckListResponse as EndpointHealthcheckListResponse,
+ type EndpointHealthcheckDeleteResponse as EndpointHealthcheckDeleteResponse,
+ type EndpointHealthcheckGetResponse as EndpointHealthcheckGetResponse,
+ type EndpointHealthcheckCreateParams as EndpointHealthcheckCreateParams,
+ type EndpointHealthcheckUpdateParams as EndpointHealthcheckUpdateParams,
+ type EndpointHealthcheckListParams as EndpointHealthcheckListParams,
+ type EndpointHealthcheckDeleteParams as EndpointHealthcheckDeleteParams,
+ type EndpointHealthcheckGetParams as EndpointHealthcheckGetParams,
+ };
+}
diff --git a/src/resources/diagnostics/index.ts b/src/resources/diagnostics/index.ts
index 50517481ab..01dfb6f682 100644
--- a/src/resources/diagnostics/index.ts
+++ b/src/resources/diagnostics/index.ts
@@ -1,6 +1,20 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
export { Diagnostics } from './diagnostics';
+export {
+ EndpointHealthchecks,
+ type EndpointHealthcheck,
+ type EndpointHealthcheckCreateResponse,
+ type EndpointHealthcheckUpdateResponse,
+ type EndpointHealthcheckListResponse,
+ type EndpointHealthcheckDeleteResponse,
+ type EndpointHealthcheckGetResponse,
+ type EndpointHealthcheckCreateParams,
+ type EndpointHealthcheckUpdateParams,
+ type EndpointHealthcheckListParams,
+ type EndpointHealthcheckDeleteParams,
+ type EndpointHealthcheckGetParams,
+} from './endpoint-healthchecks';
export {
TraceroutesSinglePage,
Traceroutes,
diff --git a/src/resources/dns/dns.ts b/src/resources/dns/dns.ts
index 49d6d2b48e..14dfa81f31 100644
--- a/src/resources/dns/dns.ts
+++ b/src/resources/dns/dns.ts
@@ -74,7 +74,7 @@ export class DNS extends APIResource {
/**
* Nominal metric values, broken down by time interval.
*/
-export type DNSAnalyticsNominalMetric = Array;
+export type DNSAnalyticsNominalMetric = Array;
export interface DNSAnalyticsQuery {
/**
diff --git a/src/resources/dns/records.ts b/src/resources/dns/records.ts
index 557af9dfac..e430b9af32 100644
--- a/src/resources/dns/records.ts
+++ b/src/resources/dns/records.ts
@@ -295,7 +295,7 @@ export class RecordResponsesV4PagePaginationArray extends V4PagePaginationArray<
export interface ARecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -364,7 +364,7 @@ export namespace ARecord {
export interface ARecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -433,7 +433,7 @@ export namespace ARecordParam {
export interface AAAARecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -502,7 +502,7 @@ export namespace AAAARecord {
export interface AAAARecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -635,7 +635,7 @@ export namespace BatchPatch {
id: string;
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -874,7 +874,7 @@ export namespace BatchPatchParam {
id: string;
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -1113,7 +1113,7 @@ export namespace BatchPut {
id: string;
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -1352,7 +1352,7 @@ export namespace BatchPutParam {
id: string;
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -1527,7 +1527,7 @@ export namespace BatchPutParam {
export interface CAARecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -1621,7 +1621,7 @@ export namespace CAARecord {
export interface CAARecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -1710,7 +1710,7 @@ export namespace CAARecordParam {
export interface CERTRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -1809,7 +1809,7 @@ export namespace CERTRecord {
export interface CERTRecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -1903,7 +1903,7 @@ export namespace CERTRecordParam {
export interface CNAMERecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -1980,7 +1980,7 @@ export namespace CNAMERecord {
export interface CNAMERecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -2057,7 +2057,7 @@ export namespace CNAMERecordParam {
export interface DNSKEYRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -2156,7 +2156,7 @@ export namespace DNSKEYRecord {
export interface DNSKEYRecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -2250,7 +2250,7 @@ export namespace DNSKEYRecordParam {
export interface DSRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -2349,7 +2349,7 @@ export namespace DSRecord {
export interface DSRecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -2443,7 +2443,7 @@ export namespace DSRecordParam {
export interface HTTPSRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -2498,17 +2498,17 @@ export namespace HTTPSRecord {
*/
export interface Data {
/**
- * priority.
+ * Priority.
*/
priority?: number;
/**
- * target.
+ * Target.
*/
target?: string;
/**
- * value.
+ * Value.
*/
value?: string;
}
@@ -2537,7 +2537,7 @@ export namespace HTTPSRecord {
export interface HTTPSRecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -2587,17 +2587,17 @@ export namespace HTTPSRecordParam {
*/
export interface Data {
/**
- * priority.
+ * Priority.
*/
priority?: number;
/**
- * target.
+ * Target.
*/
target?: string;
/**
- * value.
+ * Value.
*/
value?: string;
}
@@ -2626,7 +2626,7 @@ export namespace HTTPSRecordParam {
export interface LOCRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -2765,7 +2765,7 @@ export namespace LOCRecord {
export interface LOCRecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -2899,7 +2899,7 @@ export namespace LOCRecordParam {
export interface MXRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -2974,7 +2974,7 @@ export namespace MXRecord {
export interface MXRecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -3049,7 +3049,7 @@ export namespace MXRecordParam {
export interface NAPTRRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -3158,7 +3158,7 @@ export namespace NAPTRRecord {
export interface NAPTRRecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -3262,7 +3262,7 @@ export namespace NAPTRRecordParam {
export interface NSRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -3331,7 +3331,7 @@ export namespace NSRecord {
export interface NSRecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -3400,7 +3400,7 @@ export namespace NSRecordParam {
export interface PTRRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -3469,7 +3469,7 @@ export namespace PTRRecord {
export interface PTRRecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -3562,7 +3562,7 @@ export type Record =
export namespace Record {
export interface Openpgpkey {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -3872,7 +3872,7 @@ export namespace RecordResponse {
modified_on: string;
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -4513,7 +4513,7 @@ export type RecordTagsParam = string;
export interface SMIMEARecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -4612,7 +4612,7 @@ export namespace SMIMEARecord {
export interface SMIMEARecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -4706,7 +4706,7 @@ export namespace SMIMEARecordParam {
export interface SRVRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -4807,7 +4807,7 @@ export namespace SRVRecord {
export interface SRVRecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -4902,7 +4902,7 @@ export namespace SRVRecordParam {
export interface SSHFPRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -4957,17 +4957,17 @@ export namespace SSHFPRecord {
*/
export interface Data {
/**
- * algorithm.
+ * Algorithm.
*/
algorithm?: number;
/**
- * fingerprint.
+ * Fingerprint.
*/
fingerprint?: string;
/**
- * type.
+ * Type.
*/
type?: number;
}
@@ -4996,7 +4996,7 @@ export namespace SSHFPRecord {
export interface SSHFPRecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -5046,17 +5046,17 @@ export namespace SSHFPRecordParam {
*/
export interface Data {
/**
- * algorithm.
+ * Algorithm.
*/
algorithm?: number;
/**
- * fingerprint.
+ * Fingerprint.
*/
fingerprint?: string;
/**
- * type.
+ * Type.
*/
type?: number;
}
@@ -5085,7 +5085,7 @@ export namespace SSHFPRecordParam {
export interface SVCBRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -5140,17 +5140,17 @@ export namespace SVCBRecord {
*/
export interface Data {
/**
- * priority.
+ * Priority.
*/
priority?: number;
/**
- * target.
+ * Target.
*/
target?: string;
/**
- * value.
+ * Value.
*/
value?: string;
}
@@ -5179,7 +5179,7 @@ export namespace SVCBRecord {
export interface SVCBRecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -5229,17 +5229,17 @@ export namespace SVCBRecordParam {
*/
export interface Data {
/**
- * priority.
+ * Priority.
*/
priority?: number;
/**
- * target.
+ * Target.
*/
target?: string;
/**
- * value.
+ * Value.
*/
value?: string;
}
@@ -5268,7 +5268,7 @@ export namespace SVCBRecordParam {
export interface TLSARecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -5323,7 +5323,7 @@ export namespace TLSARecord {
*/
export interface Data {
/**
- * certificate.
+ * Certificate.
*/
certificate?: string;
@@ -5367,7 +5367,7 @@ export namespace TLSARecord {
export interface TLSARecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -5417,7 +5417,7 @@ export namespace TLSARecordParam {
*/
export interface Data {
/**
- * certificate.
+ * Certificate.
*/
certificate?: string;
@@ -5475,7 +5475,7 @@ export type TTLParam = number | 1;
export interface TXTRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -5549,7 +5549,7 @@ export namespace TXTRecord {
export interface TXTRecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -5623,7 +5623,7 @@ export namespace TXTRecordParam {
export interface URIRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -5718,7 +5718,7 @@ export namespace URIRecord {
export interface URIRecordParam {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -5883,7 +5883,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -5958,7 +5958,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -6033,7 +6033,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -6116,7 +6116,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -6197,7 +6197,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -6272,7 +6272,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -6348,7 +6348,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -6423,7 +6423,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -6503,7 +6503,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -6598,7 +6598,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -6698,7 +6698,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -6798,7 +6798,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -6898,7 +6898,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -6949,17 +6949,17 @@ export declare namespace RecordCreateParams {
*/
export interface Data {
/**
- * priority.
+ * Priority.
*/
priority?: number;
/**
- * target.
+ * Target.
*/
target?: string;
/**
- * value.
+ * Value.
*/
value?: string;
}
@@ -6993,7 +6993,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -7133,7 +7133,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -7243,7 +7243,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -7343,7 +7343,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -7444,7 +7444,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -7495,17 +7495,17 @@ export declare namespace RecordCreateParams {
*/
export interface Data {
/**
- * algorithm.
+ * Algorithm.
*/
algorithm?: number;
/**
- * fingerprint.
+ * Fingerprint.
*/
fingerprint?: string;
/**
- * type.
+ * Type.
*/
type?: number;
}
@@ -7539,7 +7539,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -7590,17 +7590,17 @@ export declare namespace RecordCreateParams {
*/
export interface Data {
/**
- * priority.
+ * Priority.
*/
priority?: number;
/**
- * target.
+ * Target.
*/
target?: string;
/**
- * value.
+ * Value.
*/
value?: string;
}
@@ -7634,7 +7634,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -7685,7 +7685,7 @@ export declare namespace RecordCreateParams {
*/
export interface Data {
/**
- * certificate.
+ * Certificate.
*/
certificate?: string;
@@ -7734,7 +7734,7 @@ export declare namespace RecordCreateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -7855,7 +7855,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -7930,7 +7930,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -8005,7 +8005,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -8088,7 +8088,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -8169,7 +8169,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -8244,7 +8244,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -8320,7 +8320,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -8395,7 +8395,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -8475,7 +8475,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -8570,7 +8570,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -8670,7 +8670,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -8770,7 +8770,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -8870,7 +8870,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -8921,17 +8921,17 @@ export declare namespace RecordUpdateParams {
*/
export interface Data {
/**
- * priority.
+ * Priority.
*/
priority?: number;
/**
- * target.
+ * Target.
*/
target?: string;
/**
- * value.
+ * Value.
*/
value?: string;
}
@@ -8965,7 +8965,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -9105,7 +9105,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -9215,7 +9215,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -9315,7 +9315,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -9416,7 +9416,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -9467,17 +9467,17 @@ export declare namespace RecordUpdateParams {
*/
export interface Data {
/**
- * algorithm.
+ * Algorithm.
*/
algorithm?: number;
/**
- * fingerprint.
+ * Fingerprint.
*/
fingerprint?: string;
/**
- * type.
+ * Type.
*/
type?: number;
}
@@ -9511,7 +9511,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -9562,17 +9562,17 @@ export declare namespace RecordUpdateParams {
*/
export interface Data {
/**
- * priority.
+ * Priority.
*/
priority?: number;
/**
- * target.
+ * Target.
*/
target?: string;
/**
- * value.
+ * Value.
*/
value?: string;
}
@@ -9606,7 +9606,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -9657,7 +9657,7 @@ export declare namespace RecordUpdateParams {
*/
export interface Data {
/**
- * certificate.
+ * Certificate.
*/
certificate?: string;
@@ -9706,7 +9706,7 @@ export declare namespace RecordUpdateParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -10077,7 +10077,7 @@ export namespace RecordBatchParams {
export interface DNSRecordsOpenpgpkeyRecord {
/**
- * DNS record name (or @ for the zone apex) in Punycode.
+ * Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -10176,7 +10176,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -10251,7 +10251,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -10326,7 +10326,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -10409,7 +10409,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -10490,7 +10490,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -10565,7 +10565,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -10641,7 +10641,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -10716,7 +10716,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -10796,7 +10796,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -10891,7 +10891,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -10991,7 +10991,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -11091,7 +11091,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -11191,7 +11191,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -11242,17 +11242,17 @@ export declare namespace RecordEditParams {
*/
export interface Data {
/**
- * priority.
+ * Priority.
*/
priority?: number;
/**
- * target.
+ * Target.
*/
target?: string;
/**
- * value.
+ * Value.
*/
value?: string;
}
@@ -11286,7 +11286,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -11426,7 +11426,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -11536,7 +11536,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -11636,7 +11636,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -11737,7 +11737,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -11788,17 +11788,17 @@ export declare namespace RecordEditParams {
*/
export interface Data {
/**
- * algorithm.
+ * Algorithm.
*/
algorithm?: number;
/**
- * fingerprint.
+ * Fingerprint.
*/
fingerprint?: string;
/**
- * type.
+ * Type.
*/
type?: number;
}
@@ -11832,7 +11832,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -11883,17 +11883,17 @@ export declare namespace RecordEditParams {
*/
export interface Data {
/**
- * priority.
+ * Priority.
*/
priority?: number;
/**
- * target.
+ * Target.
*/
target?: string;
/**
- * value.
+ * Value.
*/
value?: string;
}
@@ -11927,7 +11927,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
@@ -11978,7 +11978,7 @@ export declare namespace RecordEditParams {
*/
export interface Data {
/**
- * certificate.
+ * Certificate.
*/
certificate?: string;
@@ -12027,7 +12027,7 @@ export declare namespace RecordEditParams {
zone_id: string;
/**
- * Body param: DNS record name (or @ for the zone apex) in Punycode.
+ * Body param: Complete DNS record name, including the zone name, in Punycode.
*/
name: string;
diff --git a/src/resources/dns/zone-transfers/force-axfr.ts b/src/resources/dns/zone-transfers/force-axfr.ts
index bd521a4a0a..32234249f2 100644
--- a/src/resources/dns/zone-transfers/force-axfr.ts
+++ b/src/resources/dns/zone-transfers/force-axfr.ts
@@ -28,7 +28,7 @@ export class ForceAXFRResource extends APIResource {
}
/**
- * When force_axfr query parameter is set to true, the response is a simple string
+ * When force_axfr query parameter is set to true, the response is a simple string.
*/
export type ForceAXFR = string;
diff --git a/src/resources/dns/zone-transfers/outgoing/outgoing.ts b/src/resources/dns/zone-transfers/outgoing/outgoing.ts
index 1b70efd330..af3129b4d8 100644
--- a/src/resources/dns/zone-transfers/outgoing/outgoing.ts
+++ b/src/resources/dns/zone-transfers/outgoing/outgoing.ts
@@ -179,12 +179,12 @@ export class OutgoingResource extends APIResource {
}
/**
- * The zone transfer status of a primary zone
+ * The zone transfer status of a primary zone.
*/
export type DisableTransfer = string;
/**
- * The zone transfer status of a primary zone
+ * The zone transfer status of a primary zone.
*/
export type EnableTransfer = string;
@@ -223,7 +223,7 @@ export interface Outgoing {
}
/**
- * The zone transfer status of a primary zone
+ * The zone transfer status of a primary zone.
*/
export type OutgoingStatus = string | null;
@@ -301,7 +301,7 @@ export interface OutgoingDeleteResponse {
/**
* When force_notify query parameter is set to true, the response is a simple
- * string
+ * string.
*/
export type OutgoingForceNotifyResponse = string;
diff --git a/src/resources/durable-objects/durable-objects.ts b/src/resources/durable-objects/durable-objects.ts
index 0fb700ec65..c2a022bafa 100644
--- a/src/resources/durable-objects/durable-objects.ts
+++ b/src/resources/durable-objects/durable-objects.ts
@@ -2,20 +2,25 @@
import { APIResource } from '../../resource';
import * as NamespacesAPI from './namespaces/namespaces';
-import { Namespace, NamespaceListParams, Namespaces, NamespacesSinglePage } from './namespaces/namespaces';
+import {
+ Namespace,
+ NamespaceListParams,
+ Namespaces,
+ NamespacesV4PagePaginationArray,
+} from './namespaces/namespaces';
export class DurableObjects extends APIResource {
namespaces: NamespacesAPI.Namespaces = new NamespacesAPI.Namespaces(this._client);
}
DurableObjects.Namespaces = Namespaces;
-DurableObjects.NamespacesSinglePage = NamespacesSinglePage;
+DurableObjects.NamespacesV4PagePaginationArray = NamespacesV4PagePaginationArray;
export declare namespace DurableObjects {
export {
Namespaces as Namespaces,
type Namespace as Namespace,
- NamespacesSinglePage as NamespacesSinglePage,
+ NamespacesV4PagePaginationArray as NamespacesV4PagePaginationArray,
type NamespaceListParams as NamespaceListParams,
};
}
diff --git a/src/resources/durable-objects/index.ts b/src/resources/durable-objects/index.ts
index 9ad42425bf..5b1a5df711 100644
--- a/src/resources/durable-objects/index.ts
+++ b/src/resources/durable-objects/index.ts
@@ -2,7 +2,7 @@
export { DurableObjects } from './durable-objects';
export {
- NamespacesSinglePage,
+ NamespacesV4PagePaginationArray,
Namespaces,
type Namespace,
type NamespaceListParams,
diff --git a/src/resources/durable-objects/namespaces/index.ts b/src/resources/durable-objects/namespaces/index.ts
index eb373cf46d..caae6d139b 100644
--- a/src/resources/durable-objects/namespaces/index.ts
+++ b/src/resources/durable-objects/namespaces/index.ts
@@ -6,4 +6,9 @@ export {
type DurableObject,
type ObjectListParams,
} from './objects';
-export { NamespacesSinglePage, Namespaces, type Namespace, type NamespaceListParams } from './namespaces';
+export {
+ NamespacesV4PagePaginationArray,
+ Namespaces,
+ type Namespace,
+ type NamespaceListParams,
+} from './namespaces';
diff --git a/src/resources/durable-objects/namespaces/namespaces.ts b/src/resources/durable-objects/namespaces/namespaces.ts
index 5547b0e963..8124a972ac 100644
--- a/src/resources/durable-objects/namespaces/namespaces.ts
+++ b/src/resources/durable-objects/namespaces/namespaces.ts
@@ -4,7 +4,7 @@ import { APIResource } from '../../../resource';
import * as Core from '../../../core';
import * as ObjectsAPI from './objects';
import { DurableObject, DurableObjectsCursorLimitPagination, ObjectListParams, Objects } from './objects';
-import { SinglePage } from '../../../pagination';
+import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../../pagination';
export class Namespaces extends APIResource {
objects: ObjectsAPI.Objects = new ObjectsAPI.Objects(this._client);
@@ -15,17 +15,17 @@ export class Namespaces extends APIResource {
list(
params: NamespaceListParams,
options?: Core.RequestOptions,
- ): Core.PagePromise {
- const { account_id } = params;
+ ): Core.PagePromise {
+ const { account_id, ...query } = params;
return this._client.getAPIList(
`/accounts/${account_id}/workers/durable_objects/namespaces`,
- NamespacesSinglePage,
- options,
+ NamespacesV4PagePaginationArray,
+ { query, ...options },
);
}
}
-export class NamespacesSinglePage extends SinglePage {}
+export class NamespacesV4PagePaginationArray extends V4PagePaginationArray {}
export interface Namespace {
id?: string;
@@ -39,21 +39,21 @@ export interface Namespace {
use_sqlite?: boolean;
}
-export interface NamespaceListParams {
+export interface NamespaceListParams extends V4PagePaginationArrayParams {
/**
- * Identifier.
+ * Path param: Identifier.
*/
account_id: string;
}
-Namespaces.NamespacesSinglePage = NamespacesSinglePage;
+Namespaces.NamespacesV4PagePaginationArray = NamespacesV4PagePaginationArray;
Namespaces.Objects = Objects;
Namespaces.DurableObjectsCursorLimitPagination = DurableObjectsCursorLimitPagination;
export declare namespace Namespaces {
export {
type Namespace as Namespace,
- NamespacesSinglePage as NamespacesSinglePage,
+ NamespacesV4PagePaginationArray as NamespacesV4PagePaginationArray,
type NamespaceListParams as NamespaceListParams,
};
diff --git a/src/resources/email-security/investigate/investigate.ts b/src/resources/email-security/investigate/investigate.ts
index cdc7e9fe3c..9c881bfe72 100644
--- a/src/resources/email-security/investigate/investigate.ts
+++ b/src/resources/email-security/investigate/investigate.ts
@@ -148,6 +148,8 @@ export interface InvestigateListResponse {
| 'NONE'
| null;
+ findings?: Array | null;
+
from?: string | null;
from_name?: string | null;
@@ -169,12 +171,37 @@ export interface InvestigateListResponse {
export namespace InvestigateListResponse {
export interface Properties {
- allowlisted_pattern_type?: string;
+ allowlisted_pattern?: string;
+
+ allowlisted_pattern_type?:
+ | 'quarantine_release'
+ | 'acceptable_sender'
+ | 'allowed_sender'
+ | 'allowed_recipient'
+ | 'domain_similarity'
+ | 'domain_recency'
+ | 'managed_acceptable_sender';
+
+ blocklisted_message?: boolean;
+
+ blocklisted_pattern?: string;
+
+ whitelisted_pattern_type?:
+ | 'quarantine_release'
+ | 'acceptable_sender'
+ | 'allowed_sender'
+ | 'allowed_recipient'
+ | 'domain_similarity'
+ | 'domain_recency'
+ | 'managed_acceptable_sender';
+ }
+
+ export interface Finding {
+ detail?: string | null;
- /**
- * @deprecated
- */
- whitelisted_pattern_type?: string;
+ name?: string | null;
+
+ value?: string | null;
}
export interface Validation {
@@ -241,6 +268,8 @@ export interface InvestigateGetResponse {
| 'NONE'
| null;
+ findings?: Array | null;
+
from?: string | null;
from_name?: string | null;
@@ -262,12 +291,37 @@ export interface InvestigateGetResponse {
export namespace InvestigateGetResponse {
export interface Properties {
- allowlisted_pattern_type?: string;
+ allowlisted_pattern?: string;
+
+ allowlisted_pattern_type?:
+ | 'quarantine_release'
+ | 'acceptable_sender'
+ | 'allowed_sender'
+ | 'allowed_recipient'
+ | 'domain_similarity'
+ | 'domain_recency'
+ | 'managed_acceptable_sender';
+
+ blocklisted_message?: boolean;
+
+ blocklisted_pattern?: string;
+
+ whitelisted_pattern_type?:
+ | 'quarantine_release'
+ | 'acceptable_sender'
+ | 'allowed_sender'
+ | 'allowed_recipient'
+ | 'domain_similarity'
+ | 'domain_recency'
+ | 'managed_acceptable_sender';
+ }
- /**
- * @deprecated
- */
- whitelisted_pattern_type?: string;
+ export interface Finding {
+ detail?: string | null;
+
+ name?: string | null;
+
+ value?: string | null;
}
export interface Validation {
@@ -376,6 +430,11 @@ export interface InvestigateListParams extends V4PagePaginationArrayParams {
* `now - 30 days`.
*/
start?: string;
+
+ /**
+ * Query param:
+ */
+ subject?: string;
}
export interface InvestigateGetParams {
diff --git a/src/resources/email-security/investigate/reclassify.ts b/src/resources/email-security/investigate/reclassify.ts
index 98aaabd7c1..2330f8cf94 100644
--- a/src/resources/email-security/investigate/reclassify.ts
+++ b/src/resources/email-security/investigate/reclassify.ts
@@ -50,7 +50,12 @@ export interface ReclassifyCreateParams {
/**
* Body param: Base64 encoded content of the EML file
*/
- eml_content?: string | null;
+ eml_content?: string;
+
+ /**
+ * Body param:
+ */
+ escalated_submission_id?: string;
}
export declare namespace Reclassify {
diff --git a/src/resources/email-security/investigate/trace.ts b/src/resources/email-security/investigate/trace.ts
index da42c4050b..f17ad3b195 100644
--- a/src/resources/email-security/investigate/trace.ts
+++ b/src/resources/email-security/investigate/trace.ts
@@ -40,6 +40,8 @@ export interface TraceGetResponse {
export namespace TraceGetResponse {
export interface Inbound {
lines?: Array | null;
+
+ pending?: boolean | null;
}
export namespace Inbound {
@@ -54,6 +56,8 @@ export namespace TraceGetResponse {
export interface Outbound {
lines?: Array | null;
+
+ pending?: boolean | null;
}
export namespace Outbound {
diff --git a/src/resources/email-security/settings/allow-policies.ts b/src/resources/email-security/settings/allow-policies.ts
index eb673be7b3..2cd1553022 100644
--- a/src/resources/email-security/settings/allow-policies.ts
+++ b/src/resources/email-security/settings/allow-policies.ts
@@ -489,6 +489,11 @@ export interface AllowPolicyListParams extends V4PagePaginationArrayParams {
*/
order?: 'pattern' | 'created_at';
+ /**
+ * Query param:
+ */
+ pattern?: string;
+
/**
* Query param:
*/
diff --git a/src/resources/email-security/settings/block-senders.ts b/src/resources/email-security/settings/block-senders.ts
index 480423debc..edbc87faf9 100644
--- a/src/resources/email-security/settings/block-senders.ts
+++ b/src/resources/email-security/settings/block-senders.ts
@@ -264,6 +264,11 @@ export interface BlockSenderListParams extends V4PagePaginationArrayParams {
*/
order?: 'pattern' | 'created_at';
+ /**
+ * Query param:
+ */
+ pattern?: string;
+
/**
* Query param:
*/
diff --git a/src/resources/email-security/settings/trusted-domains.ts b/src/resources/email-security/settings/trusted-domains.ts
index d015ff7252..5d2b18768c 100644
--- a/src/resources/email-security/settings/trusted-domains.ts
+++ b/src/resources/email-security/settings/trusted-domains.ts
@@ -400,6 +400,11 @@ export interface TrustedDomainListParams extends V4PagePaginationArrayParams {
*/
order?: 'pattern' | 'created_at';
+ /**
+ * Query param:
+ */
+ pattern?: string;
+
/**
* Query param: Allows searching in multiple properties of a record simultaneously.
* This parameter is intended for human users, not automation. Its exact behavior
diff --git a/src/resources/email-security/submissions.ts b/src/resources/email-security/submissions.ts
index 0cfc78492c..f8764b948a 100644
--- a/src/resources/email-security/submissions.ts
+++ b/src/resources/email-security/submissions.ts
@@ -127,6 +127,11 @@ export interface SubmissionListParams extends V4PagePaginationArrayParams {
*/
start?: string;
+ /**
+ * Query param:
+ */
+ status?: string;
+
/**
* Query param:
*/
diff --git a/src/resources/filters.ts b/src/resources/filters.ts
index 041be0687d..ce6af0a7d1 100644
--- a/src/resources/filters.ts
+++ b/src/resources/filters.ts
@@ -17,9 +17,9 @@ export class Filters extends APIResource {
params: FilterCreateParams,
options?: Core.RequestOptions,
): Core.PagePromise {
- const { zone_id, ...body } = params;
+ const { zone_id, body } = params;
return this._client.getAPIList(`/zones/${zone_id}/filters`, FirewallFiltersSinglePage, {
- body,
+ body: body,
method: 'post',
...options,
});
@@ -35,12 +35,11 @@ export class Filters extends APIResource {
params: FilterUpdateParams,
options?: Core.RequestOptions,
): Core.APIPromise {
- const { zone_id, body } = params;
+ const { zone_id, ...body } = params;
return (
- this._client.put(`/zones/${zone_id}/filters/${filterId}`, {
- body: body,
- ...options,
- }) as Core.APIPromise<{ result: FirewallFilter }>
+ this._client.put(`/zones/${zone_id}/filters/${filterId}`, { body, ...options }) as Core.APIPromise<{
+ result: FirewallFilter;
+ }>
)._thenUnwrap((obj) => obj.result);
}
@@ -70,11 +69,11 @@ export class Filters extends APIResource {
filterId: string,
params: FilterDeleteParams,
options?: Core.RequestOptions,
- ): Core.APIPromise {
+ ): Core.APIPromise {
const { zone_id } = params;
return (
this._client.delete(`/zones/${zone_id}/filters/${filterId}`, options) as Core.APIPromise<{
- result: FirewallFilter;
+ result: FilterDeleteResponse;
}>
)._thenUnwrap((obj) => obj.result);
}
@@ -87,12 +86,13 @@ export class Filters extends APIResource {
bulkDelete(
params: FilterBulkDeleteParams,
options?: Core.RequestOptions,
- ): Core.PagePromise {
- const { zone_id } = params;
- return this._client.getAPIList(`/zones/${zone_id}/filters`, FirewallFiltersSinglePage, {
- method: 'delete',
- ...options,
- });
+ ): Core.APIPromise {
+ const { zone_id, id } = params;
+ return (
+ this._client.delete(`/zones/${zone_id}/filters`, { query: { id }, ...options }) as Core.APIPromise<{
+ result: FilterBulkDeleteResponse | null;
+ }>
+ )._thenUnwrap((obj) => obj.result);
}
/**
@@ -104,9 +104,9 @@ export class Filters extends APIResource {
params: FilterBulkUpdateParams,
options?: Core.RequestOptions,
): Core.PagePromise {
- const { zone_id, ...body } = params;
+ const { zone_id, body } = params;
return this._client.getAPIList(`/zones/${zone_id}/filters`, FirewallFiltersSinglePage, {
- body,
+ body: body,
method: 'put',
...options,
});
@@ -186,6 +186,24 @@ export interface FirewallFilterParam {
ref?: string;
}
+export interface FilterDeleteResponse {
+ /**
+ * The unique identifier of the filter.
+ */
+ id: string;
+}
+
+export type FilterBulkDeleteResponse = Array;
+
+export namespace FilterBulkDeleteResponse {
+ export interface FilterBulkDeleteResponseItem {
+ /**
+ * The unique identifier of the filter.
+ */
+ id?: string;
+ }
+}
+
export interface FilterCreateParams {
/**
* Path param: Defines an identifier.
@@ -193,10 +211,9 @@ export interface FilterCreateParams {
zone_id: string;
/**
- * Body param: The filter expression. For more information, refer to
- * [Expressions](https://developers.cloudflare.com/ruleset-engine/rules-language/expressions/).
+ * Body param:
*/
- expression: string;
+ body: Array;
}
export interface FilterUpdateParams {
@@ -206,9 +223,25 @@ export interface FilterUpdateParams {
zone_id: string;
/**
- * Body param:
+ * Body param: An informative summary of the filter.
+ */
+ description?: string;
+
+ /**
+ * Body param: The filter expression. For more information, refer to
+ * [Expressions](https://developers.cloudflare.com/ruleset-engine/rules-language/expressions/).
+ */
+ expression?: string;
+
+ /**
+ * Body param: When true, indicates that the filter is currently paused.
+ */
+ paused?: boolean;
+
+ /**
+ * Body param: A short reference tag. Allows you to select related filters.
*/
- body: unknown;
+ ref?: string;
}
export interface FilterListParams extends V4PagePaginationArrayParams {
@@ -253,16 +286,51 @@ export interface FilterDeleteParams {
export interface FilterBulkDeleteParams {
/**
- * Defines an identifier.
+ * Path param: Defines an identifier.
*/
zone_id: string;
+
+ /**
+ * Query param:
+ */
+ id: Array;
}
export interface FilterBulkUpdateParams {
/**
- * Defines an identifier.
+ * Path param: Defines an identifier.
*/
zone_id: string;
+
+ /**
+ * Body param:
+ */
+ body: Array;
+}
+
+export namespace FilterBulkUpdateParams {
+ export interface Body {
+ /**
+ * An informative summary of the filter.
+ */
+ description?: string;
+
+ /**
+ * The filter expression. For more information, refer to
+ * [Expressions](https://developers.cloudflare.com/ruleset-engine/rules-language/expressions/).
+ */
+ expression?: string;
+
+ /**
+ * When true, indicates that the filter is currently paused.
+ */
+ paused?: boolean;
+
+ /**
+ * A short reference tag. Allows you to select related filters.
+ */
+ ref?: string;
+ }
}
export interface FilterGetParams {
@@ -278,6 +346,8 @@ Filters.FirewallFiltersV4PagePaginationArray = FirewallFiltersV4PagePaginationAr
export declare namespace Filters {
export {
type FirewallFilter as FirewallFilter,
+ type FilterDeleteResponse as FilterDeleteResponse,
+ type FilterBulkDeleteResponse as FilterBulkDeleteResponse,
FirewallFiltersSinglePage as FirewallFiltersSinglePage,
FirewallFiltersV4PagePaginationArray as FirewallFiltersV4PagePaginationArray,
type FilterCreateParams as FilterCreateParams,
diff --git a/src/resources/images/v1/v1.ts b/src/resources/images/v1/v1.ts
index cb64db9ee9..7ce33e9224 100644
--- a/src/resources/images/v1/v1.ts
+++ b/src/resources/images/v1/v1.ts
@@ -151,6 +151,11 @@ export interface Image {
*/
id?: string;
+ /**
+ * Can set the creator field with an internal user ID.
+ */
+ creator?: string | null;
+
/**
* Image file name.
*/
@@ -196,6 +201,11 @@ export interface V1CreateParams {
*/
id?: string;
+ /**
+ * Body param: Can set the creator field with an internal user ID.
+ */
+ creator?: string;
+
/**
* Body param: An image binary data. Only needed when type is uploading a file.
*/
@@ -225,6 +235,12 @@ export interface V1ListParams extends V4PagePaginationParams {
* Path param: Account identifier tag.
*/
account_id: string;
+
+ /**
+ * Query param: Internal user ID set within the creator field. Setting to empty
+ * string "" will return images where creator field is not set
+ */
+ creator?: string | null;
}
export interface V1DeleteParams {
@@ -240,6 +256,11 @@ export interface V1EditParams {
*/
account_id: string;
+ /**
+ * Body param: Can set the creator field with an internal user ID.
+ */
+ creator?: string;
+
/**
* Body param: User modifiable key-value store. Can be used for keeping references
* to another system of record for managing images. No change if not specified.
diff --git a/src/resources/images/v2/direct-uploads.ts b/src/resources/images/v2/direct-uploads.ts
index fa7ddfc176..a38db90b45 100644
--- a/src/resources/images/v2/direct-uploads.ts
+++ b/src/resources/images/v2/direct-uploads.ts
@@ -61,6 +61,11 @@ export interface DirectUploadCreateParams {
*/
id?: string;
+ /**
+ * Body param: Can set the creator field with an internal user ID.
+ */
+ creator?: string;
+
/**
* Body param: The date after which the upload will not be accepted. Minimum: Now +
* 2 minutes. Maximum: Now + 6 hours.
diff --git a/src/resources/images/v2/v2.ts b/src/resources/images/v2/v2.ts
index 30f06e231f..63d32823e7 100644
--- a/src/resources/images/v2/v2.ts
+++ b/src/resources/images/v2/v2.ts
@@ -53,6 +53,12 @@ export interface V2ListParams {
*/
continuation_token?: string | null;
+ /**
+ * Query param: Internal user ID set within the creator field. Setting to empty
+ * string "" will return images where creator field is not set
+ */
+ creator?: string | null;
+
/**
* Query param: Number of items per page.
*/
diff --git a/src/resources/kv/namespaces/keys.ts b/src/resources/kv/namespaces/keys.ts
index bf958a6d6f..ad094eeddb 100644
--- a/src/resources/kv/namespaces/keys.ts
+++ b/src/resources/kv/namespaces/keys.ts
@@ -117,6 +117,9 @@ export interface Key {
*/
expiration?: number;
+ /**
+ * Arbitrary JSON that is associated with a key.
+ */
metadata?: unknown;
}
@@ -153,8 +156,14 @@ export namespace KeyBulkGetResponse {
export namespace WorkersKVBulkGetResultWithMetadata {
export interface Values {
+ /**
+ * The metadata associated with the key.
+ */
metadata: unknown;
+ /**
+ * The value associated with the key.
+ */
value: unknown;
/**
@@ -268,6 +277,9 @@ export namespace KeyBulkUpdateParams {
*/
expiration_ttl?: number;
+ /**
+ * Arbitrary JSON that is associated with a key.
+ */
metadata?: unknown;
}
}
diff --git a/src/resources/kv/namespaces/metadata.ts b/src/resources/kv/namespaces/metadata.ts
index 53db763063..927ba8a17d 100644
--- a/src/resources/kv/namespaces/metadata.ts
+++ b/src/resources/kv/namespaces/metadata.ts
@@ -34,6 +34,9 @@ export class Metadata extends APIResource {
}
}
+/**
+ * Arbitrary JSON that is associated with a key.
+ */
export type MetadataGetResponse = unknown;
export interface MetadataGetParams {
diff --git a/src/resources/kv/namespaces/namespaces.ts b/src/resources/kv/namespaces/namespaces.ts
index 32b1ec889c..3f8f3b7a90 100644
--- a/src/resources/kv/namespaces/namespaces.ts
+++ b/src/resources/kv/namespaces/namespaces.ts
@@ -312,8 +312,14 @@ export namespace NamespaceBulkGetResponse {
export namespace WorkersKVBulkGetResultWithMetadata {
export interface Values {
+ /**
+ * The metadata associated with the key.
+ */
metadata: unknown;
+ /**
+ * The value associated with the key.
+ */
value: unknown;
/**
@@ -462,6 +468,9 @@ export namespace NamespaceBulkUpdateParams {
*/
expiration_ttl?: number;
+ /**
+ * Arbitrary JSON that is associated with a key.
+ */
metadata?: unknown;
}
}
diff --git a/src/resources/kv/namespaces/values.ts b/src/resources/kv/namespaces/values.ts
index 03752a92d4..29174df308 100644
--- a/src/resources/kv/namespaces/values.ts
+++ b/src/resources/kv/namespaces/values.ts
@@ -134,7 +134,7 @@ export interface ValueUpdateParams {
expiration_ttl?: number;
/**
- * Body param:
+ * Body param: Associates arbitrary JSON data with a key/value pair.
*/
metadata?: unknown;
}
diff --git a/src/resources/load-balancers/load-balancers.ts b/src/resources/load-balancers/load-balancers.ts
index b0c4847381..1cd26f3e14 100644
--- a/src/resources/load-balancers/load-balancers.ts
+++ b/src/resources/load-balancers/load-balancers.ts
@@ -430,7 +430,7 @@ export interface LoadBalancer {
networks?: Array;
/**
- * (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs
+ * Enterprise only: A mapping of Cloudflare PoP identifiers to a list of pool IDs
* (ordered by their failover priority) for the PoP (datacenter). Any PoPs not
* explicitly defined will fall back to using the corresponding country_pool, then
* region_pool mapping if it exists else to default_pools.
@@ -469,28 +469,25 @@ export interface LoadBalancer {
/**
* Specifies the type of session affinity the load balancer should use unless
- * specified as `"none"`. The supported types are:
- *
- * - `"cookie"`: On the first request to a proxied load balancer, a cookie is
- * generated, encoding information of which origin the request will be forwarded
- * to. Subsequent requests, by the same client to the same load balancer, will be
- * sent to the origin server the cookie encodes, for the duration of the cookie
- * and as long as the origin server remains healthy. If the cookie has expired or
- * the origin server is unhealthy, then a new origin server is calculated and
- * used.
- * - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin
- * selection is stable and based on the client's ip address.
- * - `"header"`: On the first request to a proxied load balancer, a session key
- * based on the configured HTTP headers (see
- * `session_affinity_attributes.headers`) is generated, encoding the request
- * headers used for storing in the load balancer session state which origin the
- * request will be forwarded to. Subsequent requests to the load balancer with
- * the same headers will be sent to the same origin server, for the duration of
- * the session and as long as the origin server remains healthy. If the session
- * has been idle for the duration of `session_affinity_ttl` seconds or the origin
- * server is unhealthy, then a new origin server is calculated and used. See
- * `headers` in `session_affinity_attributes` for additional required
- * configuration.
+ * specified as `"none"`. The supported types are: - `"cookie"`: On the first
+ * request to a proxied load balancer, a cookie is generated, encoding information
+ * of which origin the request will be forwarded to. Subsequent requests, by the
+ * same client to the same load balancer, will be sent to the origin server the
+ * cookie encodes, for the duration of the cookie and as long as the origin server
+ * remains healthy. If the cookie has expired or the origin server is unhealthy,
+ * then a new origin server is calculated and used. - `"ip_cookie"`: Behaves the
+ * same as `"cookie"` except the initial origin selection is stable and based on
+ * the client's ip address. - `"header"`: On the first request to a proxied load
+ * balancer, a session key based on the configured HTTP headers (see
+ * `session_affinity_attributes.headers`) is generated, encoding the request
+ * headers used for storing in the load balancer session state which origin the
+ * request will be forwarded to. Subsequent requests to the load balancer with the
+ * same headers will be sent to the same origin server, for the duration of the
+ * session and as long as the origin server remains healthy. If the session has
+ * been idle for the duration of `session_affinity_ttl` seconds or the origin
+ * server is unhealthy, then a new origin server is calculated and used. See
+ * `headers` in `session_affinity_attributes` for additional required
+ * configuration.
*/
session_affinity?: SessionAffinity;
@@ -502,14 +499,13 @@ export interface LoadBalancer {
/**
* Time, in seconds, until a client's session expires after being created. Once the
* expiry time has been reached, subsequent requests may get sent to a different
- * origin server. The accepted ranges per `session_affinity` policy are:
- *
- * - `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used
- * unless explicitly set. The accepted range of values is between [1800, 604800].
- * - `"header"`: The current default of 1800 seconds will be used unless explicitly
- * set. The accepted range of values is between [30, 3600]. Note: With session
- * affinity by header, sessions only expire after they haven't been used for the
- * number of seconds specified.
+ * origin server. The accepted ranges per `session_affinity` policy are: -
+ * `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used unless
+ * explicitly set. The accepted range of values is between [1800, 604800]. -
+ * `"header"`: The current default of 1800 seconds will be used unless explicitly
+ * set. The accepted range of values is between [30, 3600]. Note: With session
+ * affinity by header, sessions only expire after they haven't been used for the
+ * number of seconds specified.
*/
session_affinity_ttl?: number;
@@ -1025,7 +1021,7 @@ export namespace Rules {
location_strategy?: LoadBalancersAPI.LocationStrategy;
/**
- * (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs
+ * Enterprise only: A mapping of Cloudflare PoP identifiers to a list of pool IDs
* (ordered by their failover priority) for the PoP (datacenter). Any PoPs not
* explicitly defined will fall back to using the corresponding country_pool, then
* region_pool mapping if it exists else to default_pools.
@@ -1053,28 +1049,25 @@ export namespace Rules {
/**
* Specifies the type of session affinity the load balancer should use unless
- * specified as `"none"`. The supported types are:
- *
- * - `"cookie"`: On the first request to a proxied load balancer, a cookie is
- * generated, encoding information of which origin the request will be forwarded
- * to. Subsequent requests, by the same client to the same load balancer, will be
- * sent to the origin server the cookie encodes, for the duration of the cookie
- * and as long as the origin server remains healthy. If the cookie has expired or
- * the origin server is unhealthy, then a new origin server is calculated and
- * used.
- * - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin
- * selection is stable and based on the client's ip address.
- * - `"header"`: On the first request to a proxied load balancer, a session key
- * based on the configured HTTP headers (see
- * `session_affinity_attributes.headers`) is generated, encoding the request
- * headers used for storing in the load balancer session state which origin the
- * request will be forwarded to. Subsequent requests to the load balancer with
- * the same headers will be sent to the same origin server, for the duration of
- * the session and as long as the origin server remains healthy. If the session
- * has been idle for the duration of `session_affinity_ttl` seconds or the origin
- * server is unhealthy, then a new origin server is calculated and used. See
- * `headers` in `session_affinity_attributes` for additional required
- * configuration.
+ * specified as `"none"`. The supported types are: - `"cookie"`: On the first
+ * request to a proxied load balancer, a cookie is generated, encoding information
+ * of which origin the request will be forwarded to. Subsequent requests, by the
+ * same client to the same load balancer, will be sent to the origin server the
+ * cookie encodes, for the duration of the cookie and as long as the origin server
+ * remains healthy. If the cookie has expired or the origin server is unhealthy,
+ * then a new origin server is calculated and used. - `"ip_cookie"`: Behaves the
+ * same as `"cookie"` except the initial origin selection is stable and based on
+ * the client's ip address. - `"header"`: On the first request to a proxied load
+ * balancer, a session key based on the configured HTTP headers (see
+ * `session_affinity_attributes.headers`) is generated, encoding the request
+ * headers used for storing in the load balancer session state which origin the
+ * request will be forwarded to. Subsequent requests to the load balancer with the
+ * same headers will be sent to the same origin server, for the duration of the
+ * session and as long as the origin server remains healthy. If the session has
+ * been idle for the duration of `session_affinity_ttl` seconds or the origin
+ * server is unhealthy, then a new origin server is calculated and used. See
+ * `headers` in `session_affinity_attributes` for additional required
+ * configuration.
*/
session_affinity?: LoadBalancersAPI.SessionAffinity;
@@ -1086,14 +1079,13 @@ export namespace Rules {
/**
* Time, in seconds, until a client's session expires after being created. Once the
* expiry time has been reached, subsequent requests may get sent to a different
- * origin server. The accepted ranges per `session_affinity` policy are:
- *
- * - `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used
- * unless explicitly set. The accepted range of values is between [1800, 604800].
- * - `"header"`: The current default of 1800 seconds will be used unless explicitly
- * set. The accepted range of values is between [30, 3600]. Note: With session
- * affinity by header, sessions only expire after they haven't been used for the
- * number of seconds specified.
+ * origin server. The accepted ranges per `session_affinity` policy are: -
+ * `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used unless
+ * explicitly set. The accepted range of values is between [1800, 604800]. -
+ * `"header"`: The current default of 1800 seconds will be used unless explicitly
+ * set. The accepted range of values is between [30, 3600]. Note: With session
+ * affinity by header, sessions only expire after they haven't been used for the
+ * number of seconds specified.
*/
session_affinity_ttl?: number;
@@ -1252,7 +1244,7 @@ export namespace RulesParam {
location_strategy?: LoadBalancersAPI.LocationStrategyParam;
/**
- * (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs
+ * Enterprise only: A mapping of Cloudflare PoP identifiers to a list of pool IDs
* (ordered by their failover priority) for the PoP (datacenter). Any PoPs not
* explicitly defined will fall back to using the corresponding country_pool, then
* region_pool mapping if it exists else to default_pools.
@@ -1280,28 +1272,25 @@ export namespace RulesParam {
/**
* Specifies the type of session affinity the load balancer should use unless
- * specified as `"none"`. The supported types are:
- *
- * - `"cookie"`: On the first request to a proxied load balancer, a cookie is
- * generated, encoding information of which origin the request will be forwarded
- * to. Subsequent requests, by the same client to the same load balancer, will be
- * sent to the origin server the cookie encodes, for the duration of the cookie
- * and as long as the origin server remains healthy. If the cookie has expired or
- * the origin server is unhealthy, then a new origin server is calculated and
- * used.
- * - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin
- * selection is stable and based on the client's ip address.
- * - `"header"`: On the first request to a proxied load balancer, a session key
- * based on the configured HTTP headers (see
- * `session_affinity_attributes.headers`) is generated, encoding the request
- * headers used for storing in the load balancer session state which origin the
- * request will be forwarded to. Subsequent requests to the load balancer with
- * the same headers will be sent to the same origin server, for the duration of
- * the session and as long as the origin server remains healthy. If the session
- * has been idle for the duration of `session_affinity_ttl` seconds or the origin
- * server is unhealthy, then a new origin server is calculated and used. See
- * `headers` in `session_affinity_attributes` for additional required
- * configuration.
+ * specified as `"none"`. The supported types are: - `"cookie"`: On the first
+ * request to a proxied load balancer, a cookie is generated, encoding information
+ * of which origin the request will be forwarded to. Subsequent requests, by the
+ * same client to the same load balancer, will be sent to the origin server the
+ * cookie encodes, for the duration of the cookie and as long as the origin server
+ * remains healthy. If the cookie has expired or the origin server is unhealthy,
+ * then a new origin server is calculated and used. - `"ip_cookie"`: Behaves the
+ * same as `"cookie"` except the initial origin selection is stable and based on
+ * the client's ip address. - `"header"`: On the first request to a proxied load
+ * balancer, a session key based on the configured HTTP headers (see
+ * `session_affinity_attributes.headers`) is generated, encoding the request
+ * headers used for storing in the load balancer session state which origin the
+ * request will be forwarded to. Subsequent requests to the load balancer with the
+ * same headers will be sent to the same origin server, for the duration of the
+ * session and as long as the origin server remains healthy. If the session has
+ * been idle for the duration of `session_affinity_ttl` seconds or the origin
+ * server is unhealthy, then a new origin server is calculated and used. See
+ * `headers` in `session_affinity_attributes` for additional required
+ * configuration.
*/
session_affinity?: LoadBalancersAPI.SessionAffinityParam;
@@ -1313,14 +1302,13 @@ export namespace RulesParam {
/**
* Time, in seconds, until a client's session expires after being created. Once the
* expiry time has been reached, subsequent requests may get sent to a different
- * origin server. The accepted ranges per `session_affinity` policy are:
- *
- * - `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used
- * unless explicitly set. The accepted range of values is between [1800, 604800].
- * - `"header"`: The current default of 1800 seconds will be used unless explicitly
- * set. The accepted range of values is between [30, 3600]. Note: With session
- * affinity by header, sessions only expire after they haven't been used for the
- * number of seconds specified.
+ * origin server. The accepted ranges per `session_affinity` policy are: -
+ * `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used unless
+ * explicitly set. The accepted range of values is between [1800, 604800]. -
+ * `"header"`: The current default of 1800 seconds will be used unless explicitly
+ * set. The accepted range of values is between [30, 3600]. Note: With session
+ * affinity by header, sessions only expire after they haven't been used for the
+ * number of seconds specified.
*/
session_affinity_ttl?: number;
@@ -1360,55 +1348,49 @@ export namespace RulesParam {
/**
* Specifies the type of session affinity the load balancer should use unless
- * specified as `"none"`. The supported types are:
- *
- * - `"cookie"`: On the first request to a proxied load balancer, a cookie is
- * generated, encoding information of which origin the request will be forwarded
- * to. Subsequent requests, by the same client to the same load balancer, will be
- * sent to the origin server the cookie encodes, for the duration of the cookie
- * and as long as the origin server remains healthy. If the cookie has expired or
- * the origin server is unhealthy, then a new origin server is calculated and
- * used.
- * - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin
- * selection is stable and based on the client's ip address.
- * - `"header"`: On the first request to a proxied load balancer, a session key
- * based on the configured HTTP headers (see
- * `session_affinity_attributes.headers`) is generated, encoding the request
- * headers used for storing in the load balancer session state which origin the
- * request will be forwarded to. Subsequent requests to the load balancer with
- * the same headers will be sent to the same origin server, for the duration of
- * the session and as long as the origin server remains healthy. If the session
- * has been idle for the duration of `session_affinity_ttl` seconds or the origin
- * server is unhealthy, then a new origin server is calculated and used. See
- * `headers` in `session_affinity_attributes` for additional required
- * configuration.
+ * specified as `"none"`. The supported types are: - `"cookie"`: On the first
+ * request to a proxied load balancer, a cookie is generated, encoding information
+ * of which origin the request will be forwarded to. Subsequent requests, by the
+ * same client to the same load balancer, will be sent to the origin server the
+ * cookie encodes, for the duration of the cookie and as long as the origin server
+ * remains healthy. If the cookie has expired or the origin server is unhealthy,
+ * then a new origin server is calculated and used. - `"ip_cookie"`: Behaves the
+ * same as `"cookie"` except the initial origin selection is stable and based on
+ * the client's ip address. - `"header"`: On the first request to a proxied load
+ * balancer, a session key based on the configured HTTP headers (see
+ * `session_affinity_attributes.headers`) is generated, encoding the request
+ * headers used for storing in the load balancer session state which origin the
+ * request will be forwarded to. Subsequent requests to the load balancer with the
+ * same headers will be sent to the same origin server, for the duration of the
+ * session and as long as the origin server remains healthy. If the session has
+ * been idle for the duration of `session_affinity_ttl` seconds or the origin
+ * server is unhealthy, then a new origin server is calculated and used. See
+ * `headers` in `session_affinity_attributes` for additional required
+ * configuration.
*/
export type SessionAffinity = 'none' | 'cookie' | 'ip_cookie' | 'header';
/**
* Specifies the type of session affinity the load balancer should use unless
- * specified as `"none"`. The supported types are:
- *
- * - `"cookie"`: On the first request to a proxied load balancer, a cookie is
- * generated, encoding information of which origin the request will be forwarded
- * to. Subsequent requests, by the same client to the same load balancer, will be
- * sent to the origin server the cookie encodes, for the duration of the cookie
- * and as long as the origin server remains healthy. If the cookie has expired or
- * the origin server is unhealthy, then a new origin server is calculated and
- * used.
- * - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin
- * selection is stable and based on the client's ip address.
- * - `"header"`: On the first request to a proxied load balancer, a session key
- * based on the configured HTTP headers (see
- * `session_affinity_attributes.headers`) is generated, encoding the request
- * headers used for storing in the load balancer session state which origin the
- * request will be forwarded to. Subsequent requests to the load balancer with
- * the same headers will be sent to the same origin server, for the duration of
- * the session and as long as the origin server remains healthy. If the session
- * has been idle for the duration of `session_affinity_ttl` seconds or the origin
- * server is unhealthy, then a new origin server is calculated and used. See
- * `headers` in `session_affinity_attributes` for additional required
- * configuration.
+ * specified as `"none"`. The supported types are: - `"cookie"`: On the first
+ * request to a proxied load balancer, a cookie is generated, encoding information
+ * of which origin the request will be forwarded to. Subsequent requests, by the
+ * same client to the same load balancer, will be sent to the origin server the
+ * cookie encodes, for the duration of the cookie and as long as the origin server
+ * remains healthy. If the cookie has expired or the origin server is unhealthy,
+ * then a new origin server is calculated and used. - `"ip_cookie"`: Behaves the
+ * same as `"cookie"` except the initial origin selection is stable and based on
+ * the client's ip address. - `"header"`: On the first request to a proxied load
+ * balancer, a session key based on the configured HTTP headers (see
+ * `session_affinity_attributes.headers`) is generated, encoding the request
+ * headers used for storing in the load balancer session state which origin the
+ * request will be forwarded to. Subsequent requests to the load balancer with the
+ * same headers will be sent to the same origin server, for the duration of the
+ * session and as long as the origin server remains healthy. If the session has
+ * been idle for the duration of `session_affinity_ttl` seconds or the origin
+ * server is unhealthy, then a new origin server is calculated and used. See
+ * `headers` in `session_affinity_attributes` for additional required
+ * configuration.
*/
export type SessionAffinityParam = 'none' | 'cookie' | 'ip_cookie' | 'header';
@@ -1437,14 +1419,11 @@ export interface SessionAffinityAttributes {
/**
* When header `session_affinity` is enabled, this option can be used to specify
* how HTTP headers on load balancing requests will be used. The supported values
- * are:
- *
- * - `"true"`: Load balancing requests must contain _all_ of the HTTP headers
- * specified by the `headers` session affinity attribute, otherwise sessions
- * aren't created.
- * - `"false"`: Load balancing requests must contain _at least one_ of the HTTP
- * headers specified by the `headers` session affinity attribute, otherwise
- * sessions aren't created.
+ * are: - `"true"`: Load balancing requests must contain _all_ of the HTTP headers
+ * specified by the `headers` session affinity attribute, otherwise sessions aren't
+ * created. - `"false"`: Load balancing requests must contain _at least one_ of the
+ * HTTP headers specified by the `headers` session affinity attribute, otherwise
+ * sessions aren't created.
*/
require_all_headers?: boolean;
@@ -1466,15 +1445,13 @@ export interface SessionAffinityAttributes {
/**
* Configures the zero-downtime failover between origins within a pool when session
* affinity is enabled. This feature is currently incompatible with Argo, Tiered
- * Cache, and Bandwidth Alliance. The supported values are:
- *
- * - `"none"`: No failover takes place for sessions pinned to the origin (default).
- * - `"temporary"`: Traffic will be sent to another other healthy origin until the
- * originally pinned origin is available; note that this can potentially result
- * in heavy origin flapping.
- * - `"sticky"`: The session affinity cookie is updated and subsequent requests are
- * sent to the new origin. Note: Zero-downtime failover with sticky sessions is
- * currently not supported for session affinity by header.
+ * Cache, and Bandwidth Alliance. The supported values are: - `"none"`: No failover
+ * takes place for sessions pinned to the origin (default). - `"temporary"`:
+ * Traffic will be sent to another other healthy origin until the originally pinned
+ * origin is available; note that this can potentially result in heavy origin
+ * flapping. - `"sticky"`: The session affinity cookie is updated and subsequent
+ * requests are sent to the new origin. Note: Zero-downtime failover with sticky
+ * sessions is currently not supported for session affinity by header.
*/
zero_downtime_failover?: 'none' | 'temporary' | 'sticky';
}
@@ -1504,14 +1481,11 @@ export interface SessionAffinityAttributesParam {
/**
* When header `session_affinity` is enabled, this option can be used to specify
* how HTTP headers on load balancing requests will be used. The supported values
- * are:
- *
- * - `"true"`: Load balancing requests must contain _all_ of the HTTP headers
- * specified by the `headers` session affinity attribute, otherwise sessions
- * aren't created.
- * - `"false"`: Load balancing requests must contain _at least one_ of the HTTP
- * headers specified by the `headers` session affinity attribute, otherwise
- * sessions aren't created.
+ * are: - `"true"`: Load balancing requests must contain _all_ of the HTTP headers
+ * specified by the `headers` session affinity attribute, otherwise sessions aren't
+ * created. - `"false"`: Load balancing requests must contain _at least one_ of the
+ * HTTP headers specified by the `headers` session affinity attribute, otherwise
+ * sessions aren't created.
*/
require_all_headers?: boolean;
@@ -1533,15 +1507,13 @@ export interface SessionAffinityAttributesParam {
/**
* Configures the zero-downtime failover between origins within a pool when session
* affinity is enabled. This feature is currently incompatible with Argo, Tiered
- * Cache, and Bandwidth Alliance. The supported values are:
- *
- * - `"none"`: No failover takes place for sessions pinned to the origin (default).
- * - `"temporary"`: Traffic will be sent to another other healthy origin until the
- * originally pinned origin is available; note that this can potentially result
- * in heavy origin flapping.
- * - `"sticky"`: The session affinity cookie is updated and subsequent requests are
- * sent to the new origin. Note: Zero-downtime failover with sticky sessions is
- * currently not supported for session affinity by header.
+ * Cache, and Bandwidth Alliance. The supported values are: - `"none"`: No failover
+ * takes place for sessions pinned to the origin (default). - `"temporary"`:
+ * Traffic will be sent to another other healthy origin until the originally pinned
+ * origin is available; note that this can potentially result in heavy origin
+ * flapping. - `"sticky"`: The session affinity cookie is updated and subsequent
+ * requests are sent to the new origin. Note: Zero-downtime failover with sticky
+ * sessions is currently not supported for session affinity by header.
*/
zero_downtime_failover?: 'none' | 'temporary' | 'sticky';
}
@@ -1678,7 +1650,7 @@ export interface LoadBalancerCreateParams {
networks?: Array;
/**
- * Body param: (Enterprise only): A mapping of Cloudflare PoP identifiers to a list
+ * Body param: Enterprise only: A mapping of Cloudflare PoP identifiers to a list
* of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any
* PoPs not explicitly defined will fall back to using the corresponding
* country_pool, then region_pool mapping if it exists else to default_pools.
@@ -1718,28 +1690,25 @@ export interface LoadBalancerCreateParams {
/**
* Body param: Specifies the type of session affinity the load balancer should use
- * unless specified as `"none"`. The supported types are:
- *
- * - `"cookie"`: On the first request to a proxied load balancer, a cookie is
- * generated, encoding information of which origin the request will be forwarded
- * to. Subsequent requests, by the same client to the same load balancer, will be
- * sent to the origin server the cookie encodes, for the duration of the cookie
- * and as long as the origin server remains healthy. If the cookie has expired or
- * the origin server is unhealthy, then a new origin server is calculated and
- * used.
- * - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin
- * selection is stable and based on the client's ip address.
- * - `"header"`: On the first request to a proxied load balancer, a session key
- * based on the configured HTTP headers (see
- * `session_affinity_attributes.headers`) is generated, encoding the request
- * headers used for storing in the load balancer session state which origin the
- * request will be forwarded to. Subsequent requests to the load balancer with
- * the same headers will be sent to the same origin server, for the duration of
- * the session and as long as the origin server remains healthy. If the session
- * has been idle for the duration of `session_affinity_ttl` seconds or the origin
- * server is unhealthy, then a new origin server is calculated and used. See
- * `headers` in `session_affinity_attributes` for additional required
- * configuration.
+ * unless specified as `"none"`. The supported types are: - `"cookie"`: On the
+ * first request to a proxied load balancer, a cookie is generated, encoding
+ * information of which origin the request will be forwarded to. Subsequent
+ * requests, by the same client to the same load balancer, will be sent to the
+ * origin server the cookie encodes, for the duration of the cookie and as long as
+ * the origin server remains healthy. If the cookie has expired or the origin
+ * server is unhealthy, then a new origin server is calculated and used. -
+ * `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin
+ * selection is stable and based on the client's ip address. - `"header"`: On the
+ * first request to a proxied load balancer, a session key based on the configured
+ * HTTP headers (see `session_affinity_attributes.headers`) is generated, encoding
+ * the request headers used for storing in the load balancer session state which
+ * origin the request will be forwarded to. Subsequent requests to the load
+ * balancer with the same headers will be sent to the same origin server, for the
+ * duration of the session and as long as the origin server remains healthy. If the
+ * session has been idle for the duration of `session_affinity_ttl` seconds or the
+ * origin server is unhealthy, then a new origin server is calculated and used. See
+ * `headers` in `session_affinity_attributes` for additional required
+ * configuration.
*/
session_affinity?: SessionAffinityParam;
@@ -1752,14 +1721,12 @@ export interface LoadBalancerCreateParams {
* Body param: Time, in seconds, until a client's session expires after being
* created. Once the expiry time has been reached, subsequent requests may get sent
* to a different origin server. The accepted ranges per `session_affinity` policy
- * are:
- *
- * - `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used
- * unless explicitly set. The accepted range of values is between [1800, 604800].
- * - `"header"`: The current default of 1800 seconds will be used unless explicitly
- * set. The accepted range of values is between [30, 3600]. Note: With session
- * affinity by header, sessions only expire after they haven't been used for the
- * number of seconds specified.
+ * are: - `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used
+ * unless explicitly set. The accepted range of values is between [1800, 604800]. -
+ * `"header"`: The current default of 1800 seconds will be used unless explicitly
+ * set. The accepted range of values is between [30, 3600]. Note: With session
+ * affinity by header, sessions only expire after they haven't been used for the
+ * number of seconds specified.
*/
session_affinity_ttl?: number;
@@ -1862,7 +1829,7 @@ export interface LoadBalancerUpdateParams {
networks?: Array;
/**
- * Body param: (Enterprise only): A mapping of Cloudflare PoP identifiers to a list
+ * Body param: Enterprise only: A mapping of Cloudflare PoP identifiers to a list
* of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any
* PoPs not explicitly defined will fall back to using the corresponding
* country_pool, then region_pool mapping if it exists else to default_pools.
@@ -1902,28 +1869,25 @@ export interface LoadBalancerUpdateParams {
/**
* Body param: Specifies the type of session affinity the load balancer should use
- * unless specified as `"none"`. The supported types are:
- *
- * - `"cookie"`: On the first request to a proxied load balancer, a cookie is
- * generated, encoding information of which origin the request will be forwarded
- * to. Subsequent requests, by the same client to the same load balancer, will be
- * sent to the origin server the cookie encodes, for the duration of the cookie
- * and as long as the origin server remains healthy. If the cookie has expired or
- * the origin server is unhealthy, then a new origin server is calculated and
- * used.
- * - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin
- * selection is stable and based on the client's ip address.
- * - `"header"`: On the first request to a proxied load balancer, a session key
- * based on the configured HTTP headers (see
- * `session_affinity_attributes.headers`) is generated, encoding the request
- * headers used for storing in the load balancer session state which origin the
- * request will be forwarded to. Subsequent requests to the load balancer with
- * the same headers will be sent to the same origin server, for the duration of
- * the session and as long as the origin server remains healthy. If the session
- * has been idle for the duration of `session_affinity_ttl` seconds or the origin
- * server is unhealthy, then a new origin server is calculated and used. See
- * `headers` in `session_affinity_attributes` for additional required
- * configuration.
+ * unless specified as `"none"`. The supported types are: - `"cookie"`: On the
+ * first request to a proxied load balancer, a cookie is generated, encoding
+ * information of which origin the request will be forwarded to. Subsequent
+ * requests, by the same client to the same load balancer, will be sent to the
+ * origin server the cookie encodes, for the duration of the cookie and as long as
+ * the origin server remains healthy. If the cookie has expired or the origin
+ * server is unhealthy, then a new origin server is calculated and used. -
+ * `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin
+ * selection is stable and based on the client's ip address. - `"header"`: On the
+ * first request to a proxied load balancer, a session key based on the configured
+ * HTTP headers (see `session_affinity_attributes.headers`) is generated, encoding
+ * the request headers used for storing in the load balancer session state which
+ * origin the request will be forwarded to. Subsequent requests to the load
+ * balancer with the same headers will be sent to the same origin server, for the
+ * duration of the session and as long as the origin server remains healthy. If the
+ * session has been idle for the duration of `session_affinity_ttl` seconds or the
+ * origin server is unhealthy, then a new origin server is calculated and used. See
+ * `headers` in `session_affinity_attributes` for additional required
+ * configuration.
*/
session_affinity?: SessionAffinityParam;
@@ -1936,14 +1900,12 @@ export interface LoadBalancerUpdateParams {
* Body param: Time, in seconds, until a client's session expires after being
* created. Once the expiry time has been reached, subsequent requests may get sent
* to a different origin server. The accepted ranges per `session_affinity` policy
- * are:
- *
- * - `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used
- * unless explicitly set. The accepted range of values is between [1800, 604800].
- * - `"header"`: The current default of 1800 seconds will be used unless explicitly
- * set. The accepted range of values is between [30, 3600]. Note: With session
- * affinity by header, sessions only expire after they haven't been used for the
- * number of seconds specified.
+ * are: - `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used
+ * unless explicitly set. The accepted range of values is between [1800, 604800]. -
+ * `"header"`: The current default of 1800 seconds will be used unless explicitly
+ * set. The accepted range of values is between [30, 3600]. Note: With session
+ * affinity by header, sessions only expire after they haven't been used for the
+ * number of seconds specified.
*/
session_affinity_ttl?: number;
@@ -2049,7 +2011,7 @@ export interface LoadBalancerEditParams {
name?: string;
/**
- * Body param: (Enterprise only): A mapping of Cloudflare PoP identifiers to a list
+ * Body param: Enterprise only: A mapping of Cloudflare PoP identifiers to a list
* of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any
* PoPs not explicitly defined will fall back to using the corresponding
* country_pool, then region_pool mapping if it exists else to default_pools.
@@ -2089,28 +2051,25 @@ export interface LoadBalancerEditParams {
/**
* Body param: Specifies the type of session affinity the load balancer should use
- * unless specified as `"none"`. The supported types are:
- *
- * - `"cookie"`: On the first request to a proxied load balancer, a cookie is
- * generated, encoding information of which origin the request will be forwarded
- * to. Subsequent requests, by the same client to the same load balancer, will be
- * sent to the origin server the cookie encodes, for the duration of the cookie
- * and as long as the origin server remains healthy. If the cookie has expired or
- * the origin server is unhealthy, then a new origin server is calculated and
- * used.
- * - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin
- * selection is stable and based on the client's ip address.
- * - `"header"`: On the first request to a proxied load balancer, a session key
- * based on the configured HTTP headers (see
- * `session_affinity_attributes.headers`) is generated, encoding the request
- * headers used for storing in the load balancer session state which origin the
- * request will be forwarded to. Subsequent requests to the load balancer with
- * the same headers will be sent to the same origin server, for the duration of
- * the session and as long as the origin server remains healthy. If the session
- * has been idle for the duration of `session_affinity_ttl` seconds or the origin
- * server is unhealthy, then a new origin server is calculated and used. See
- * `headers` in `session_affinity_attributes` for additional required
- * configuration.
+ * unless specified as `"none"`. The supported types are: - `"cookie"`: On the
+ * first request to a proxied load balancer, a cookie is generated, encoding
+ * information of which origin the request will be forwarded to. Subsequent
+ * requests, by the same client to the same load balancer, will be sent to the
+ * origin server the cookie encodes, for the duration of the cookie and as long as
+ * the origin server remains healthy. If the cookie has expired or the origin
+ * server is unhealthy, then a new origin server is calculated and used. -
+ * `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin
+ * selection is stable and based on the client's ip address. - `"header"`: On the
+ * first request to a proxied load balancer, a session key based on the configured
+ * HTTP headers (see `session_affinity_attributes.headers`) is generated, encoding
+ * the request headers used for storing in the load balancer session state which
+ * origin the request will be forwarded to. Subsequent requests to the load
+ * balancer with the same headers will be sent to the same origin server, for the
+ * duration of the session and as long as the origin server remains healthy. If the
+ * session has been idle for the duration of `session_affinity_ttl` seconds or the
+ * origin server is unhealthy, then a new origin server is calculated and used. See
+ * `headers` in `session_affinity_attributes` for additional required
+ * configuration.
*/
session_affinity?: SessionAffinityParam;
@@ -2123,14 +2082,12 @@ export interface LoadBalancerEditParams {
* Body param: Time, in seconds, until a client's session expires after being
* created. Once the expiry time has been reached, subsequent requests may get sent
* to a different origin server. The accepted ranges per `session_affinity` policy
- * are:
- *
- * - `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used
- * unless explicitly set. The accepted range of values is between [1800, 604800].
- * - `"header"`: The current default of 1800 seconds will be used unless explicitly
- * set. The accepted range of values is between [30, 3600]. Note: With session
- * affinity by header, sessions only expire after they haven't been used for the
- * number of seconds specified.
+ * are: - `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used
+ * unless explicitly set. The accepted range of values is between [1800, 604800]. -
+ * `"header"`: The current default of 1800 seconds will be used unless explicitly
+ * set. The accepted range of values is between [30, 3600]. Note: With session
+ * affinity by header, sessions only expire after they haven't been used for the
+ * number of seconds specified.
*/
session_affinity_ttl?: number;
diff --git a/src/resources/load-balancers/monitors/monitors.ts b/src/resources/load-balancers/monitors/monitors.ts
index 304af32535..e06f9f7ff9 100644
--- a/src/resources/load-balancers/monitors/monitors.ts
+++ b/src/resources/load-balancers/monitors/monitors.ts
@@ -272,7 +272,7 @@ export interface MonitorDeleteResponse {
export interface MonitorCreateParams {
/**
- * Path param: Identifier
+ * Path param: Identifier.
*/
account_id: string;
@@ -378,7 +378,7 @@ export interface MonitorCreateParams {
export interface MonitorUpdateParams {
/**
- * Path param: Identifier
+ * Path param: Identifier.
*/
account_id: string;
@@ -484,21 +484,21 @@ export interface MonitorUpdateParams {
export interface MonitorListParams {
/**
- * Identifier
+ * Identifier.
*/
account_id: string;
}
export interface MonitorDeleteParams {
/**
- * Identifier
+ * Identifier.
*/
account_id: string;
}
export interface MonitorEditParams {
/**
- * Path param: Identifier
+ * Path param: Identifier.
*/
account_id: string;
@@ -604,7 +604,7 @@ export interface MonitorEditParams {
export interface MonitorGetParams {
/**
- * Identifier
+ * Identifier.
*/
account_id: string;
}
diff --git a/src/resources/load-balancers/monitors/previews.ts b/src/resources/load-balancers/monitors/previews.ts
index 857933228d..677afbce1c 100644
--- a/src/resources/load-balancers/monitors/previews.ts
+++ b/src/resources/load-balancers/monitors/previews.ts
@@ -43,7 +43,7 @@ export interface PreviewCreateResponse {
export interface PreviewCreateParams {
/**
- * Path param: Identifier
+ * Path param: Identifier.
*/
account_id: string;
diff --git a/src/resources/load-balancers/monitors/references.ts b/src/resources/load-balancers/monitors/references.ts
index 1baab9325b..024ca81ff9 100644
--- a/src/resources/load-balancers/monitors/references.ts
+++ b/src/resources/load-balancers/monitors/references.ts
@@ -47,7 +47,7 @@ export interface ReferenceGetResponse {
export interface ReferenceGetParams {
/**
- * Identifier
+ * Identifier.
*/
account_id: string;
}
diff --git a/src/resources/load-balancers/pools/health.ts b/src/resources/load-balancers/pools/health.ts
index 1af81d09e1..83f9743c4e 100644
--- a/src/resources/load-balancers/pools/health.ts
+++ b/src/resources/load-balancers/pools/health.ts
@@ -72,7 +72,7 @@ export interface HealthCreateResponse {
*/
export interface HealthGetResponse {
/**
- * Pool ID
+ * Pool ID.
*/
pool_id?: string;
@@ -128,7 +128,7 @@ export namespace HealthGetResponse {
export interface HealthCreateParams {
/**
- * Path param: Identifier
+ * Path param: Identifier.
*/
account_id: string;
@@ -234,7 +234,7 @@ export interface HealthCreateParams {
export interface HealthGetParams {
/**
- * Identifier
+ * Identifier.
*/
account_id: string;
}
diff --git a/src/resources/load-balancers/pools/pools.ts b/src/resources/load-balancers/pools/pools.ts
index c696ed078b..781cab4774 100644
--- a/src/resources/load-balancers/pools/pools.ts
+++ b/src/resources/load-balancers/pools/pools.ts
@@ -295,7 +295,7 @@ export interface PoolDeleteResponse {
export interface PoolCreateParams {
/**
- * Path param: Identifier
+ * Path param: Identifier.
*/
account_id: string;
@@ -378,7 +378,7 @@ export interface PoolCreateParams {
export interface PoolUpdateParams {
/**
- * Path param: Identifier
+ * Path param: Identifier.
*/
account_id: string;
@@ -467,7 +467,7 @@ export interface PoolUpdateParams {
export interface PoolListParams {
/**
- * Path param: Identifier
+ * Path param: Identifier.
*/
account_id: string;
@@ -480,14 +480,14 @@ export interface PoolListParams {
export interface PoolDeleteParams {
/**
- * Identifier
+ * Identifier.
*/
account_id: string;
}
export interface PoolBulkEditParams {
/**
- * Path param: Identifier
+ * Path param: Identifier.
*/
account_id: string;
@@ -501,7 +501,7 @@ export interface PoolBulkEditParams {
export interface PoolEditParams {
/**
- * Path param: Identifier
+ * Path param: Identifier.
*/
account_id: string;
@@ -590,7 +590,7 @@ export interface PoolEditParams {
export interface PoolGetParams {
/**
- * Identifier
+ * Identifier.
*/
account_id: string;
}
diff --git a/src/resources/load-balancers/pools/references.ts b/src/resources/load-balancers/pools/references.ts
index e505f40a28..43a19e2dd9 100644
--- a/src/resources/load-balancers/pools/references.ts
+++ b/src/resources/load-balancers/pools/references.ts
@@ -47,7 +47,7 @@ export interface ReferenceGetResponse {
export interface ReferenceGetParams {
/**
- * Identifier
+ * Identifier.
*/
account_id: string;
}
diff --git a/src/resources/load-balancers/previews.ts b/src/resources/load-balancers/previews.ts
index b6c786f552..0a68dbc4ee 100644
--- a/src/resources/load-balancers/previews.ts
+++ b/src/resources/load-balancers/previews.ts
@@ -44,7 +44,7 @@ export namespace PreviewGetResponse {
export namespace item {
/**
- * The origin ipv4/ipv6 address or domain name mapped to it's health data.
+ * The origin ipv4/ipv6 address or domain name mapped to its health data.
*/
export interface load_balancing_origin_health_data {
failure_reason?: string;
@@ -60,7 +60,7 @@ export namespace PreviewGetResponse {
export interface PreviewGetParams {
/**
- * Identifier
+ * Identifier.
*/
account_id: string;
}
diff --git a/src/resources/load-balancers/regions.ts b/src/resources/load-balancers/regions.ts
index d6e4fad916..4fd6224d9e 100644
--- a/src/resources/load-balancers/regions.ts
+++ b/src/resources/load-balancers/regions.ts
@@ -72,7 +72,7 @@ export type RegionGetResponse = unknown | string | null;
export interface RegionListParams {
/**
- * Path param: Identifier
+ * Path param: Identifier.
*/
account_id: string;
@@ -94,7 +94,7 @@ export interface RegionListParams {
export interface RegionGetParams {
/**
- * Identifier
+ * Identifier.
*/
account_id: string;
}
diff --git a/src/resources/load-balancers/searches.ts b/src/resources/load-balancers/searches.ts
index 1ddf9765c4..b829e4d4d7 100644
--- a/src/resources/load-balancers/searches.ts
+++ b/src/resources/load-balancers/searches.ts
@@ -71,7 +71,7 @@ export namespace SearchListResponse {
export interface SearchListParams extends V4PagePaginationParams {
/**
- * Path param: Identifier
+ * Path param: Identifier.
*/
account_id: string;
diff --git a/src/resources/logpush/datasets/fields.ts b/src/resources/logpush/datasets/fields.ts
index 37067a4577..3ba1f069f7 100644
--- a/src/resources/logpush/datasets/fields.ts
+++ b/src/resources/logpush/datasets/fields.ts
@@ -7,7 +7,7 @@ import { CloudflareError } from '../../../error';
export class Fields extends APIResource {
/**
- * Lists all fields available for a dataset. The response result is an object with
+ * Lists all fields available for a dataset. The response result is. an object with
* key-value pairs, where keys are field names, and values are descriptions.
*
* @example
@@ -22,6 +22,7 @@ export class Fields extends APIResource {
datasetId:
| 'access_requests'
| 'audit_logs'
+ | 'audit_logs_v2'
| 'biso_user_actions'
| 'casb_findings'
| 'device_posture_results'
@@ -52,6 +53,7 @@ export class Fields extends APIResource {
datasetId:
| 'access_requests'
| 'audit_logs'
+ | 'audit_logs_v2'
| 'biso_user_actions'
| 'casb_findings'
| 'device_posture_results'
@@ -81,6 +83,7 @@ export class Fields extends APIResource {
datasetId:
| 'access_requests'
| 'audit_logs'
+ | 'audit_logs_v2'
| 'biso_user_actions'
| 'casb_findings'
| 'device_posture_results'
diff --git a/src/resources/logpush/datasets/jobs.ts b/src/resources/logpush/datasets/jobs.ts
index f8ef4ccbb0..90c7438608 100644
--- a/src/resources/logpush/datasets/jobs.ts
+++ b/src/resources/logpush/datasets/jobs.ts
@@ -26,6 +26,7 @@ export class Jobs extends APIResource {
datasetId:
| 'access_requests'
| 'audit_logs'
+ | 'audit_logs_v2'
| 'biso_user_actions'
| 'casb_findings'
| 'device_posture_results'
@@ -56,6 +57,7 @@ export class Jobs extends APIResource {
datasetId:
| 'access_requests'
| 'audit_logs'
+ | 'audit_logs_v2'
| 'biso_user_actions'
| 'casb_findings'
| 'device_posture_results'
@@ -85,6 +87,7 @@ export class Jobs extends APIResource {
datasetId:
| 'access_requests'
| 'audit_logs'
+ | 'audit_logs_v2'
| 'biso_user_actions'
| 'casb_findings'
| 'device_posture_results'
diff --git a/src/resources/logpush/jobs.ts b/src/resources/logpush/jobs.ts
index fa64a74139..4b6fba4fa1 100644
--- a/src/resources/logpush/jobs.ts
+++ b/src/resources/logpush/jobs.ts
@@ -35,6 +35,7 @@ export class Jobs extends APIResource {
* sample_rate: 1,
* timestamp_format: 'unixnano',
* },
+ * ownership_challenge: '00000000000000000000',
* });
* ```
*/
@@ -90,6 +91,7 @@ export class Jobs extends APIResource {
* sample_rate: 1,
* timestamp_format: 'unixnano',
* },
+ * ownership_challenge: '00000000000000000000',
* });
* ```
*/
@@ -286,6 +288,7 @@ export interface LogpushJob {
dataset?:
| 'access_requests'
| 'audit_logs'
+ | 'audit_logs_v2'
| 'biso_user_actions'
| 'casb_findings'
| 'device_posture_results'
@@ -311,8 +314,8 @@ export interface LogpushJob {
| null;
/**
- * Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.
- * Additional configuration parameters supported by the destination may be
+ * Uniquely identifies a resource (such as an s3 bucket) where data. will be
+ * pushed. Additional configuration parameters supported by the destination may be
* included.
*/
destination_conf?: string;
@@ -323,7 +326,7 @@ export interface LogpushJob {
enabled?: boolean;
/**
- * If not null, the job is currently failing. Failures are usually repetitive
+ * If not null, the job is currently failing. Failures are usually. repetitive
* (example: no permissions to write to destination bucket). Only the last failure
* is recorded. On successful execution of a job the error_message and last_error
* are set to null.
@@ -332,7 +335,7 @@ export interface LogpushJob {
/**
* @deprecated This field is deprecated. Please use `max_upload_*` parameters
- * instead. The frequency at which Cloudflare sends batches of logs to your
+ * instead. . The frequency at which Cloudflare sends batches of logs to your
* destination. Setting frequency to high sends your logs in larger quantities of
* smaller files. Setting frequency to low sends logs in smaller quantities of
* larger files.
@@ -354,9 +357,9 @@ export interface LogpushJob {
last_complete?: string | null;
/**
- * Records the last time the job failed. If not null, the job is currently failing.
- * If null, the job has either never failed or has run successfully at least once
- * since last failure. See also the error_message field.
+ * Records the last time the job failed. If not null, the job is currently.
+ * failing. If null, the job has either never failed or has run successfully at
+ * least once since last failure. See also the error_message field.
*/
last_error?: string | null;
@@ -375,7 +378,7 @@ export interface LogpushJob {
* minimum file size; this means that log files may be much smaller than this batch
* size.
*/
- max_upload_bytes?: 0 | unknown | null;
+ max_upload_bytes?: 0 | number | null;
/**
* The maximum interval in seconds for log batches. This setting must be between 30
@@ -383,7 +386,7 @@ export interface LogpushJob {
* a minimum interval for log batches; this means that log files may be sent in
* shorter intervals than this.
*/
- max_upload_interval_seconds?: 0 | unknown | null;
+ max_upload_interval_seconds?: 0 | number | null;
/**
* The maximum number of log lines per batch. This setting must be between 1000 and
@@ -391,10 +394,10 @@ export interface LogpushJob {
* number of log lines per batch; this means that log files may contain many fewer
* lines than this.
*/
- max_upload_records?: 0 | unknown | null;
+ max_upload_records?: 0 | number | null;
/**
- * Optional human readable job name. Not unique. Cloudflare suggests that you set
+ * Optional human readable job name. Not unique. Cloudflare suggests. that you set
* this to a meaningful string, like the domain name, to make it easier to identify
* your job.
*/
@@ -568,7 +571,7 @@ export interface JobDeleteResponse {
export interface JobCreateParams {
/**
- * Body param: Uniquely identifies a resource (such as an s3 bucket) where data
+ * Body param: Uniquely identifies a resource (such as an s3 bucket) where data.
* will be pushed. Additional configuration parameters supported by the destination
* may be included.
*/
@@ -594,6 +597,7 @@ export interface JobCreateParams {
dataset?:
| 'access_requests'
| 'audit_logs'
+ | 'audit_logs_v2'
| 'biso_user_actions'
| 'casb_findings'
| 'device_posture_results'
@@ -632,7 +636,7 @@ export interface JobCreateParams {
/**
* @deprecated Body param: This field is deprecated. Please use `max_upload_*`
- * parameters instead. The frequency at which Cloudflare sends batches of logs to
+ * parameters instead. . The frequency at which Cloudflare sends batches of logs to
* your destination. Setting frequency to high sends your logs in larger quantities
* of smaller files. Setting frequency to low sends logs in smaller quantities of
* larger files.
@@ -660,7 +664,7 @@ export interface JobCreateParams {
* cannot set a minimum file size; this means that log files may be much smaller
* than this batch size.
*/
- max_upload_bytes?: 0 | unknown | null;
+ max_upload_bytes?: 0 | number | null;
/**
* Body param: The maximum interval in seconds for log batches. This setting must
@@ -668,7 +672,7 @@ export interface JobCreateParams {
* cannot specify a minimum interval for log batches; this means that log files may
* be sent in shorter intervals than this.
*/
- max_upload_interval_seconds?: 0 | unknown | null;
+ max_upload_interval_seconds?: 0 | number | null;
/**
* Body param: The maximum number of log lines per batch. This setting must be
@@ -676,10 +680,10 @@ export interface JobCreateParams {
* specify a minimum number of log lines per batch; this means that log files may
* contain many fewer lines than this.
*/
- max_upload_records?: 0 | unknown | null;
+ max_upload_records?: 0 | number | null;
/**
- * Body param: Optional human readable job name. Not unique. Cloudflare suggests
+ * Body param: Optional human readable job name. Not unique. Cloudflare suggests.
* that you set this to a meaningful string, like the domain name, to make it
* easier to identify your job.
*/
@@ -711,7 +715,7 @@ export interface JobUpdateParams {
zone_id?: string;
/**
- * Body param: Uniquely identifies a resource (such as an s3 bucket) where data
+ * Body param: Uniquely identifies a resource (such as an s3 bucket) where data.
* will be pushed. Additional configuration parameters supported by the destination
* may be included.
*/
@@ -731,7 +735,7 @@ export interface JobUpdateParams {
/**
* @deprecated Body param: This field is deprecated. Please use `max_upload_*`
- * parameters instead. The frequency at which Cloudflare sends batches of logs to
+ * parameters instead. . The frequency at which Cloudflare sends batches of logs to
* your destination. Setting frequency to high sends your logs in larger quantities
* of smaller files. Setting frequency to low sends logs in smaller quantities of
* larger files.
@@ -759,7 +763,7 @@ export interface JobUpdateParams {
* cannot set a minimum file size; this means that log files may be much smaller
* than this batch size.
*/
- max_upload_bytes?: 0 | unknown | null;
+ max_upload_bytes?: 0 | number | null;
/**
* Body param: The maximum interval in seconds for log batches. This setting must
@@ -767,7 +771,7 @@ export interface JobUpdateParams {
* cannot specify a minimum interval for log batches; this means that log files may
* be sent in shorter intervals than this.
*/
- max_upload_interval_seconds?: 0 | unknown | null;
+ max_upload_interval_seconds?: 0 | number | null;
/**
* Body param: The maximum number of log lines per batch. This setting must be
@@ -775,10 +779,10 @@ export interface JobUpdateParams {
* specify a minimum number of log lines per batch; this means that log files may
* contain many fewer lines than this.
*/
- max_upload_records?: 0 | unknown | null;
+ max_upload_records?: 0 | number | null;
/**
- * Body param: Optional human readable job name. Not unique. Cloudflare suggests
+ * Body param: Optional human readable job name. Not unique. Cloudflare suggests.
* that you set this to a meaningful string, like the domain name, to make it
* easier to identify your job.
*/
diff --git a/src/resources/logpush/ownership.ts b/src/resources/logpush/ownership.ts
index b7281f9514..2bff2f6744 100644
--- a/src/resources/logpush/ownership.ts
+++ b/src/resources/logpush/ownership.ts
@@ -102,7 +102,7 @@ export interface OwnershipCreateResponse {
export interface OwnershipCreateParams {
/**
- * Body param: Uniquely identifies a resource (such as an s3 bucket) where data
+ * Body param: Uniquely identifies a resource (such as an s3 bucket) where data.
* will be pushed. Additional configuration parameters supported by the destination
* may be included.
*/
@@ -123,7 +123,7 @@ export interface OwnershipCreateParams {
export interface OwnershipValidateParams {
/**
- * Body param: Uniquely identifies a resource (such as an s3 bucket) where data
+ * Body param: Uniquely identifies a resource (such as an s3 bucket) where data.
* will be pushed. Additional configuration parameters supported by the destination
* may be included.
*/
diff --git a/src/resources/logpush/validate.ts b/src/resources/logpush/validate.ts
index f3fa9c7e6d..c96f7480c0 100644
--- a/src/resources/logpush/validate.ts
+++ b/src/resources/logpush/validate.ts
@@ -146,7 +146,7 @@ export interface ValidateOriginResponse {
export interface ValidateDestinationParams {
/**
- * Body param: Uniquely identifies a resource (such as an s3 bucket) where data
+ * Body param: Uniquely identifies a resource (such as an s3 bucket) where data.
* will be pushed. Additional configuration parameters supported by the destination
* may be included.
*/
@@ -167,7 +167,7 @@ export interface ValidateDestinationParams {
export interface ValidateDestinationExistsParams {
/**
- * Body param: Uniquely identifies a resource (such as an s3 bucket) where data
+ * Body param: Uniquely identifies a resource (such as an s3 bucket) where data.
* will be pushed. Additional configuration parameters supported by the destination
* may be included.
*/
diff --git a/src/resources/magic-transit/cf-interconnects.ts b/src/resources/magic-transit/cf-interconnects.ts
index 0bed94719d..3d365e8f1e 100644
--- a/src/resources/magic-transit/cf-interconnects.ts
+++ b/src/resources/magic-transit/cf-interconnects.ts
@@ -175,6 +175,14 @@ export namespace CfInterconnectUpdateResponse {
*/
interface_address?: string;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -246,6 +254,14 @@ export namespace CfInterconnectListResponse {
*/
interface_address?: string;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -319,6 +335,14 @@ export namespace CfInterconnectBulkUpdateResponse {
*/
interface_address?: string;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -390,6 +414,14 @@ export namespace CfInterconnectGetResponse {
*/
interface_address?: string;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -449,6 +481,14 @@ export interface CfInterconnectUpdateParams {
*/
interface_address?: string;
+ /**
+ * Body param: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space
+ * with the address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* Body param: The Maximum Transmission Unit (MTU) in bytes for the interconnect.
* The minimum value is 576.
diff --git a/src/resources/magic-transit/connectors/events/events.ts b/src/resources/magic-transit/connectors/events/events.ts
index d3a34e8bb1..6e1b1201dd 100644
--- a/src/resources/magic-transit/connectors/events/events.ts
+++ b/src/resources/magic-transit/connectors/events/events.ts
@@ -274,6 +274,11 @@ export interface EventListParams {
*/
cursor?: string;
+ /**
+ * Query param: Filter by event kind
+ */
+ k?: string;
+
/**
* Query param:
*/
diff --git a/src/resources/magic-transit/gre-tunnels.ts b/src/resources/magic-transit/gre-tunnels.ts
index 69212eb74a..b1472863d2 100644
--- a/src/resources/magic-transit/gre-tunnels.ts
+++ b/src/resources/magic-transit/gre-tunnels.ts
@@ -241,6 +241,14 @@ export interface GRETunnelCreateResponse {
health_check?: GRETunnelCreateResponse.HealthCheck;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -368,6 +376,14 @@ export namespace GRETunnelUpdateResponse {
health_check?: ModifiedGRETunnel.HealthCheck;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -494,6 +510,14 @@ export namespace GRETunnelListResponse {
health_check?: GRETunnel.HealthCheck;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -622,6 +646,14 @@ export namespace GRETunnelDeleteResponse {
health_check?: DeletedGRETunnel.HealthCheck;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -750,6 +782,14 @@ export namespace GRETunnelBulkUpdateResponse {
health_check?: ModifiedGRETunnel.HealthCheck;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -876,6 +916,14 @@ export namespace GRETunnelGetResponse {
health_check?: GRETunnel.HealthCheck;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -996,6 +1044,14 @@ export interface GRETunnelCreateParams {
*/
health_check?: GRETunnelCreateParams.HealthCheck;
+ /**
+ * Body param: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space
+ * with the address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* Body param: Maximum Transmission Unit (MTU) in bytes for the GRE tunnel. The
* minimum value is 576.
@@ -1109,6 +1165,14 @@ export interface GRETunnelUpdateParams {
*/
health_check?: GRETunnelUpdateParams.HealthCheck;
+ /**
+ * Body param: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space
+ * with the address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* Body param: Maximum Transmission Unit (MTU) in bytes for the GRE tunnel. The
* minimum value is 576.
diff --git a/src/resources/magic-transit/ipsec-tunnels.ts b/src/resources/magic-transit/ipsec-tunnels.ts
index f7a9f4e477..19b172deb7 100644
--- a/src/resources/magic-transit/ipsec-tunnels.ts
+++ b/src/resources/magic-transit/ipsec-tunnels.ts
@@ -297,6 +297,14 @@ export interface IPSECTunnelCreateResponse {
health_check?: IPSECTunnelCreateResponse.HealthCheck;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -430,6 +438,14 @@ export namespace IPSECTunnelUpdateResponse {
health_check?: ModifiedIPSECTunnel.HealthCheck;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -562,6 +578,14 @@ export namespace IPSECTunnelListResponse {
health_check?: IPSECTunnel.HealthCheck;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -696,6 +720,14 @@ export namespace IPSECTunnelDeleteResponse {
health_check?: DeletedIPSECTunnel.HealthCheck;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -830,6 +862,14 @@ export namespace IPSECTunnelBulkUpdateResponse {
health_check?: ModifiedIPSECTunnel.HealthCheck;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -962,6 +1002,14 @@ export namespace IPSECTunnelGetResponse {
health_check?: IPSECTunnel.HealthCheck;
+ /**
+ * A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
+ * address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* The date and time the tunnel was last modified.
*/
@@ -1099,6 +1147,14 @@ export interface IPSECTunnelCreateParams {
*/
health_check?: IPSECTunnelCreateParams.HealthCheck;
+ /**
+ * Body param: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space
+ * with the address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* Body param: A randomly generated or provided string for use in the IPsec tunnel.
*/
@@ -1212,6 +1268,14 @@ export interface IPSECTunnelUpdateParams {
*/
health_check?: IPSECTunnelUpdateParams.HealthCheck;
+ /**
+ * Body param: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space
+ * with the address being the first IP of the subnet and not same as the address of
+ * virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
+ * interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
+ */
+ interface_address6?: string;
+
/**
* Body param: A randomly generated or provided string for use in the IPsec tunnel.
*/
diff --git a/src/resources/network-interconnects/interconnects.ts b/src/resources/network-interconnects/interconnects.ts
index 5a041c2d04..0ba927420e 100644
--- a/src/resources/network-interconnects/interconnects.ts
+++ b/src/resources/network-interconnects/interconnects.ts
@@ -174,6 +174,11 @@ export namespace InterconnectCreateResponse {
type: string;
owner?: string;
+
+ /**
+ * Bandwidth structure as visible through the customer-facing API.
+ */
+ speed?: '50M' | '100M' | '200M' | '300M' | '400M' | '500M' | '1G' | '2G' | '5G' | '10G' | '20G' | '50G';
}
}
@@ -226,6 +231,11 @@ export namespace InterconnectListResponse {
type: string;
owner?: string;
+
+ /**
+ * Bandwidth structure as visible through the customer-facing API.
+ */
+ speed?: '50M' | '100M' | '200M' | '300M' | '400M' | '500M' | '1G' | '2G' | '5G' | '10G' | '20G' | '50G';
}
}
@@ -273,6 +283,11 @@ export namespace InterconnectGetResponse {
type: string;
owner?: string;
+
+ /**
+ * Bandwidth structure as visible through the customer-facing API.
+ */
+ speed?: '50M' | '100M' | '200M' | '300M' | '400M' | '500M' | '1G' | '2G' | '5G' | '10G' | '20G' | '50G';
}
}
diff --git a/src/resources/queues/consumers.ts b/src/resources/queues/consumers.ts
index 8578505f6b..43eae71410 100644
--- a/src/resources/queues/consumers.ts
+++ b/src/resources/queues/consumers.ts
@@ -58,6 +58,33 @@ export class Consumers extends APIResource {
)._thenUnwrap((obj) => obj.result);
}
+ /**
+ * Returns the consumers for a Queue
+ *
+ * @example
+ * ```ts
+ * // Automatically fetches more pages as needed.
+ * for await (const consumer of client.queues.consumers.list(
+ * '023e105f4ecef8ad9ca31a8372d0c353',
+ * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
+ * )) {
+ * // ...
+ * }
+ * ```
+ */
+ list(
+ queueId: string,
+ params: ConsumerListParams,
+ options?: Core.RequestOptions,
+ ): Core.PagePromise {
+ const { account_id } = params;
+ return this._client.getAPIList(
+ `/accounts/${account_id}/queues/${queueId}/consumers`,
+ ConsumersSinglePage,
+ options,
+ );
+ }
+
/**
* Deletes the consumer for a queue.
*
@@ -81,30 +108,30 @@ export class Consumers extends APIResource {
}
/**
- * Returns the consumers for a Queue
+ * Fetches the consumer for a queue by consumer id
*
* @example
* ```ts
- * // Automatically fetches more pages as needed.
- * for await (const consumer of client.queues.consumers.get(
+ * const consumer = await client.queues.consumers.get(
+ * '023e105f4ecef8ad9ca31a8372d0c353',
* '023e105f4ecef8ad9ca31a8372d0c353',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
- * )) {
- * // ...
- * }
+ * );
* ```
*/
get(
queueId: string,
+ consumerId: string,
params: ConsumerGetParams,
options?: Core.RequestOptions,
- ): Core.PagePromise {
+ ): Core.APIPromise {
const { account_id } = params;
- return this._client.getAPIList(
- `/accounts/${account_id}/queues/${queueId}/consumers`,
- ConsumersSinglePage,
- options,
- );
+ return (
+ this._client.get(
+ `/accounts/${account_id}/queues/${queueId}/consumers/${consumerId}`,
+ options,
+ ) as Core.APIPromise<{ result: Consumer }>
+ )._thenUnwrap((obj) => obj.result);
}
}
@@ -450,6 +477,13 @@ export declare namespace ConsumerUpdateParams {
}
}
+export interface ConsumerListParams {
+ /**
+ * A Resource identifier.
+ */
+ account_id: string;
+}
+
export interface ConsumerDeleteParams {
/**
* A Resource identifier.
@@ -473,6 +507,7 @@ export declare namespace Consumers {
ConsumersSinglePage as ConsumersSinglePage,
type ConsumerCreateParams as ConsumerCreateParams,
type ConsumerUpdateParams as ConsumerUpdateParams,
+ type ConsumerListParams as ConsumerListParams,
type ConsumerDeleteParams as ConsumerDeleteParams,
type ConsumerGetParams as ConsumerGetParams,
};
diff --git a/src/resources/queues/index.ts b/src/resources/queues/index.ts
index 4606015396..31ecb56311 100644
--- a/src/resources/queues/index.ts
+++ b/src/resources/queues/index.ts
@@ -7,6 +7,7 @@ export {
type ConsumerDeleteResponse,
type ConsumerCreateParams,
type ConsumerUpdateParams,
+ type ConsumerListParams,
type ConsumerDeleteParams,
type ConsumerGetParams,
} from './consumers';
diff --git a/src/resources/queues/queues.ts b/src/resources/queues/queues.ts
index 240e61d273..ba46cd701d 100644
--- a/src/resources/queues/queues.ts
+++ b/src/resources/queues/queues.ts
@@ -10,6 +10,7 @@ import {
ConsumerDeleteParams,
ConsumerDeleteResponse,
ConsumerGetParams,
+ ConsumerListParams,
ConsumerUpdateParams,
Consumers,
ConsumersSinglePage,
@@ -352,6 +353,7 @@ export declare namespace Queues {
ConsumersSinglePage as ConsumersSinglePage,
type ConsumerCreateParams as ConsumerCreateParams,
type ConsumerUpdateParams as ConsumerUpdateParams,
+ type ConsumerListParams as ConsumerListParams,
type ConsumerDeleteParams as ConsumerDeleteParams,
type ConsumerGetParams as ConsumerGetParams,
};
diff --git a/src/resources/r2/buckets/domains/custom.ts b/src/resources/r2/buckets/domains/custom.ts
index 76dbcea299..791c3fe9d4 100644
--- a/src/resources/r2/buckets/domains/custom.ts
+++ b/src/resources/r2/buckets/domains/custom.ts
@@ -182,6 +182,12 @@ export interface CustomCreateResponse {
*/
enabled: boolean;
+ /**
+ * An allowlist of ciphers for TLS termination. These ciphers must be in the
+ * BoringSSL format.
+ */
+ ciphers?: Array;
+
/**
* Minimum TLS Version the custom domain will accept for incoming connections. If
* not set, defaults to 1.0.
@@ -195,6 +201,12 @@ export interface CustomUpdateResponse {
*/
domain: string;
+ /**
+ * An allowlist of ciphers for TLS termination. These ciphers must be in the
+ * BoringSSL format.
+ */
+ ciphers?: Array;
+
/**
* Whether this bucket is publicly accessible at the specified custom domain.
*/
@@ -225,6 +237,12 @@ export namespace CustomListResponse {
status: Domain.Status;
+ /**
+ * An allowlist of ciphers for TLS termination. These ciphers must be in the
+ * BoringSSL format.
+ */
+ ciphers?: Array;
+
/**
* Minimum TLS Version the custom domain will accept for incoming connections. If
* not set, defaults to 1.0.
@@ -277,6 +295,12 @@ export interface CustomGetResponse {
status: CustomGetResponse.Status;
+ /**
+ * An allowlist of ciphers for TLS termination. These ciphers must be in the
+ * BoringSSL format.
+ */
+ ciphers?: Array;
+
/**
* Minimum TLS Version the custom domain will accept for incoming connections. If
* not set, defaults to 1.0.
@@ -330,6 +354,12 @@ export interface CustomCreateParams {
*/
zoneId: string;
+ /**
+ * Body param: An allowlist of ciphers for TLS termination. These ciphers must be
+ * in the BoringSSL format.
+ */
+ ciphers?: Array;
+
/**
* Body param: Minimum TLS Version the custom domain will accept for incoming
* connections. If not set, defaults to 1.0.
@@ -349,6 +379,12 @@ export interface CustomUpdateParams {
*/
account_id: string;
+ /**
+ * Body param: An allowlist of ciphers for TLS termination. These ciphers must be
+ * in the BoringSSL format.
+ */
+ ciphers?: Array;
+
/**
* Body param: Whether to enable public bucket access at the specified custom
* domain.
diff --git a/src/resources/radar/ai/ai.ts b/src/resources/radar/ai/ai.ts
index 6ba8476430..c4830c1214 100755
--- a/src/resources/radar/ai/ai.ts
+++ b/src/resources/radar/ai/ai.ts
@@ -3,6 +3,12 @@
import { APIResource } from '../../../resource';
import * as TimeseriesGroupsAPI from './timeseries-groups';
import {
+ TimeseriesGroupSummaryParams,
+ TimeseriesGroupSummaryResponse,
+ TimeseriesGroupTimeseriesGroupsParams,
+ TimeseriesGroupTimeseriesGroupsResponse,
+ TimeseriesGroupTimeseriesParams,
+ TimeseriesGroupTimeseriesResponse,
TimeseriesGroupUserAgentParams,
TimeseriesGroupUserAgentResponse,
TimeseriesGroups,
@@ -48,7 +54,13 @@ export declare namespace AI {
export {
TimeseriesGroups as TimeseriesGroups,
+ type TimeseriesGroupSummaryResponse as TimeseriesGroupSummaryResponse,
+ type TimeseriesGroupTimeseriesResponse as TimeseriesGroupTimeseriesResponse,
+ type TimeseriesGroupTimeseriesGroupsResponse as TimeseriesGroupTimeseriesGroupsResponse,
type TimeseriesGroupUserAgentResponse as TimeseriesGroupUserAgentResponse,
+ type TimeseriesGroupSummaryParams as TimeseriesGroupSummaryParams,
+ type TimeseriesGroupTimeseriesParams as TimeseriesGroupTimeseriesParams,
+ type TimeseriesGroupTimeseriesGroupsParams as TimeseriesGroupTimeseriesGroupsParams,
type TimeseriesGroupUserAgentParams as TimeseriesGroupUserAgentParams,
};
}
diff --git a/src/resources/radar/ai/bots/summary.ts b/src/resources/radar/ai/bots/summary.ts
index 913238870d..75c99603d5 100644
--- a/src/resources/radar/ai/bots/summary.ts
+++ b/src/resources/radar/ai/bots/summary.ts
@@ -8,11 +8,7 @@ export class Summary extends APIResource {
/**
* Retrieves the distribution of traffic by AI user agent.
*
- * @example
- * ```ts
- * const response =
- * await client.radar.ai.bots.summary.userAgent();
- * ```
+ * @deprecated
*/
userAgent(
query?: SummaryUserAgentParams,
@@ -48,7 +44,7 @@ export namespace SummaryUserAgentResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
diff --git a/src/resources/radar/ai/index.ts b/src/resources/radar/ai/index.ts
index a6a9f99c81..d56384a99a 100755
--- a/src/resources/radar/ai/index.ts
+++ b/src/resources/radar/ai/index.ts
@@ -5,7 +5,13 @@ export { Bots } from './bots/index';
export { Inference } from './inference/index';
export {
TimeseriesGroups,
+ type TimeseriesGroupSummaryResponse,
+ type TimeseriesGroupTimeseriesResponse,
+ type TimeseriesGroupTimeseriesGroupsResponse,
type TimeseriesGroupUserAgentResponse,
+ type TimeseriesGroupSummaryParams,
+ type TimeseriesGroupTimeseriesParams,
+ type TimeseriesGroupTimeseriesGroupsParams,
type TimeseriesGroupUserAgentParams,
} from './timeseries-groups';
export {
diff --git a/src/resources/radar/ai/inference/summary.ts b/src/resources/radar/ai/inference/summary.ts
index d53516af97..e09e6de091 100644
--- a/src/resources/radar/ai/inference/summary.ts
+++ b/src/resources/radar/ai/inference/summary.ts
@@ -70,7 +70,7 @@ export namespace SummaryModelResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -167,7 +167,7 @@ export namespace SummaryTaskResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
diff --git a/src/resources/radar/ai/timeseries-groups.ts b/src/resources/radar/ai/timeseries-groups.ts
index 938c8980f2..1dc92a1590 100644
--- a/src/resources/radar/ai/timeseries-groups.ts
+++ b/src/resources/radar/ai/timeseries-groups.ts
@@ -6,14 +6,111 @@ import * as Core from '../../../core';
export class TimeseriesGroups extends APIResource {
/**
- * Retrieves the distribution of traffic by AI user agent over time.
+ * Retrieves an aggregated summary of AI bots HTTP requests grouped by the
+ * specified dimension.
+ *
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.ai.timeseriesGroups.summary(
+ * 'USER_AGENT',
+ * );
+ * ```
+ */
+ summary(
+ dimension: 'USER_AGENT' | 'CRAWL_PURPOSE',
+ query?: TimeseriesGroupSummaryParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise;
+ summary(
+ dimension: 'USER_AGENT' | 'CRAWL_PURPOSE',
+ options?: Core.RequestOptions,
+ ): Core.APIPromise;
+ summary(
+ dimension: 'USER_AGENT' | 'CRAWL_PURPOSE',
+ query: TimeseriesGroupSummaryParams | Core.RequestOptions = {},
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ if (isRequestOptions(query)) {
+ return this.summary(dimension, {}, query);
+ }
+ return (
+ this._client.get(`/radar/ai/bots/summary/${dimension}`, { query, ...options }) as Core.APIPromise<{
+ result: TimeseriesGroupSummaryResponse;
+ }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Retrieves AI bots HTTP request volume over time.
+ *
+ * @example
+ * ```ts
+ * const response =
+ * await client.radar.ai.timeseriesGroups.timeseries();
+ * ```
+ */
+ timeseries(
+ query?: TimeseriesGroupTimeseriesParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise;
+ timeseries(options?: Core.RequestOptions): Core.APIPromise;
+ timeseries(
+ query: TimeseriesGroupTimeseriesParams | Core.RequestOptions = {},
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ if (isRequestOptions(query)) {
+ return this.timeseries({}, query);
+ }
+ return (
+ this._client.get('/radar/ai/bots/timeseries', { query, ...options }) as Core.APIPromise<{
+ result: TimeseriesGroupTimeseriesResponse;
+ }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Retrieves the distribution of HTTP requests from AI bots, grouped by chosen the
+ * specified dimension over time.
*
* @example
* ```ts
* const response =
- * await client.radar.ai.timeseriesGroups.userAgent();
+ * await client.radar.ai.timeseriesGroups.timeseriesGroups(
+ * 'USER_AGENT',
+ * );
* ```
*/
+ timeseriesGroups(
+ dimension: 'USER_AGENT' | 'CRAWL_PURPOSE',
+ query?: TimeseriesGroupTimeseriesGroupsParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise;
+ timeseriesGroups(
+ dimension: 'USER_AGENT' | 'CRAWL_PURPOSE',
+ options?: Core.RequestOptions,
+ ): Core.APIPromise;
+ timeseriesGroups(
+ dimension: 'USER_AGENT' | 'CRAWL_PURPOSE',
+ query: TimeseriesGroupTimeseriesGroupsParams | Core.RequestOptions = {},
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ if (isRequestOptions(query)) {
+ return this.timeseriesGroups(dimension, {}, query);
+ }
+ return (
+ this._client.get(`/radar/ai/bots/timeseries_groups/${dimension}`, {
+ query,
+ ...options,
+ }) as Core.APIPromise<{ result: TimeseriesGroupTimeseriesGroupsResponse }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Retrieves the distribution of traffic by AI user agent over time.
+ *
+ * @deprecated
+ */
userAgent(
query?: TimeseriesGroupUserAgentParams,
options?: Core.RequestOptions,
@@ -35,16 +132,226 @@ export class TimeseriesGroups extends APIResource {
}
}
-export interface TimeseriesGroupUserAgentResponse {
+export interface TimeseriesGroupSummaryResponse {
/**
* Metadata for the results.
*/
- meta: TimeseriesGroupUserAgentResponse.Meta;
+ meta: TimeseriesGroupSummaryResponse.Meta;
- serie_0: TimeseriesGroupUserAgentResponse.Serie0;
+ summary_0: { [key: string]: string };
}
-export namespace TimeseriesGroupUserAgentResponse {
+export namespace TimeseriesGroupSummaryResponse {
+ /**
+ * Metadata for the results.
+ */
+ export interface Meta {
+ confidenceInfo: Meta.ConfidenceInfo;
+
+ dateRange: Array;
+
+ /**
+ * Timestamp of the last dataset update.
+ */
+ lastUpdated: string;
+
+ /**
+ * Normalization method applied to the results. Refer to
+ * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ */
+ normalization:
+ | 'PERCENTAGE'
+ | 'MIN0_MAX'
+ | 'MIN_MAX'
+ | 'RAW_VALUES'
+ | 'PERCENTAGE_CHANGE'
+ | 'ROLLING_AVERAGE'
+ | 'OVERLAPPED_PERCENTAGE'
+ | 'RATIO';
+
+ /**
+ * Measurement units for the results.
+ */
+ units: Array;
+ }
+
+ export namespace Meta {
+ export interface ConfidenceInfo {
+ annotations: Array;
+
+ /**
+ * Provides an indication of how much confidence Cloudflare has in the data.
+ */
+ level: number;
+ }
+
+ export namespace ConfidenceInfo {
+ /**
+ * Annotation associated with the result (e.g. outage or other type of event).
+ */
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ endDate: string;
+
+ eventType: string;
+
+ /**
+ * Whether event is a single point in time or a time range.
+ */
+ isInstantaneous: boolean;
+
+ linkedUrl: string;
+
+ startDate: string;
+ }
+ }
+
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
+ export interface Unit {
+ name: string;
+
+ value: string;
+ }
+ }
+}
+
+export interface TimeseriesGroupTimeseriesResponse {
+ /**
+ * Metadata for the results.
+ */
+ meta: TimeseriesGroupTimeseriesResponse.Meta;
+
+ [k: string]:
+ | TimeseriesGroupTimeseriesResponse.unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb
+ | TimeseriesGroupTimeseriesResponse.Meta
+ | undefined;
+}
+
+export namespace TimeseriesGroupTimeseriesResponse {
+ /**
+ * Metadata for the results.
+ */
+ export interface Meta {
+ /**
+ * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals).
+ * Refer to
+ * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
+ */
+ aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH';
+
+ confidenceInfo: Meta.ConfidenceInfo;
+
+ dateRange: Array;
+
+ /**
+ * Timestamp of the last dataset update.
+ */
+ lastUpdated: string;
+
+ /**
+ * Normalization method applied to the results. Refer to
+ * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ */
+ normalization:
+ | 'PERCENTAGE'
+ | 'MIN0_MAX'
+ | 'MIN_MAX'
+ | 'RAW_VALUES'
+ | 'PERCENTAGE_CHANGE'
+ | 'ROLLING_AVERAGE'
+ | 'OVERLAPPED_PERCENTAGE'
+ | 'RATIO';
+
+ /**
+ * Measurement units for the results.
+ */
+ units: Array;
+ }
+
+ export namespace Meta {
+ export interface ConfidenceInfo {
+ annotations: Array;
+
+ /**
+ * Provides an indication of how much confidence Cloudflare has in the data.
+ */
+ level: number;
+ }
+
+ export namespace ConfidenceInfo {
+ /**
+ * Annotation associated with the result (e.g. outage or other type of event).
+ */
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ endDate: string;
+
+ eventType: string;
+
+ /**
+ * Whether event is a single point in time or a time range.
+ */
+ isInstantaneous: boolean;
+
+ linkedUrl: string;
+
+ startDate: string;
+ }
+ }
+
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
+ export interface Unit {
+ name: string;
+
+ value: string;
+ }
+ }
+
+ export interface unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb {
+ timestamps: Array;
+
+ values: Array;
+ }
+}
+
+export interface TimeseriesGroupTimeseriesGroupsResponse {
+ /**
+ * Metadata for the results.
+ */
+ meta: TimeseriesGroupTimeseriesGroupsResponse.Meta;
+
+ serie_0: TimeseriesGroupTimeseriesGroupsResponse.Serie0;
+}
+
+export namespace TimeseriesGroupTimeseriesGroupsResponse {
/**
* Metadata for the results.
*/
@@ -145,6 +452,330 @@ export namespace TimeseriesGroupUserAgentResponse {
}
}
+export interface TimeseriesGroupUserAgentResponse {
+ /**
+ * Metadata for the results.
+ */
+ meta: TimeseriesGroupUserAgentResponse.Meta;
+
+ serie_0: TimeseriesGroupUserAgentResponse.Serie0;
+}
+
+export namespace TimeseriesGroupUserAgentResponse {
+ /**
+ * Metadata for the results.
+ */
+ export interface Meta {
+ /**
+ * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals).
+ * Refer to
+ * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
+ */
+ aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH';
+
+ confidenceInfo: Meta.ConfidenceInfo;
+
+ dateRange: Array;
+
+ /**
+ * Timestamp of the last dataset update.
+ */
+ lastUpdated: string;
+
+ /**
+ * Normalization method applied to the results. Refer to
+ * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ */
+ normalization:
+ | 'PERCENTAGE'
+ | 'MIN0_MAX'
+ | 'MIN_MAX'
+ | 'RAW_VALUES'
+ | 'PERCENTAGE_CHANGE'
+ | 'ROLLING_AVERAGE'
+ | 'OVERLAPPED_PERCENTAGE'
+ | 'RATIO';
+
+ /**
+ * Measurement units for the results.
+ */
+ units: Array;
+ }
+
+ export namespace Meta {
+ export interface ConfidenceInfo {
+ annotations: Array;
+
+ /**
+ * Provides an indication of how much confidence Cloudflare has in the data.
+ */
+ level: number;
+ }
+
+ export namespace ConfidenceInfo {
+ /**
+ * Annotation associated with the result (e.g. outage or other type of event).
+ */
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ endDate: string;
+
+ eventType: string;
+
+ /**
+ * Whether event is a single point in time or a time range.
+ */
+ isInstantaneous: boolean;
+
+ linkedUrl: string;
+
+ startDate: string;
+ }
+ }
+
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
+ export interface Unit {
+ name: string;
+
+ value: string;
+ }
+ }
+
+ export interface Serie0 {
+ timestamps: Array;
+
+ [k: string]: Array | Array | undefined;
+ }
+}
+
+export interface TimeseriesGroupSummaryParams {
+ /**
+ * Filters results by Autonomous System. Specify one or more Autonomous System
+ * Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from
+ * results. For example, `-174, 3356` excludes results from AS174, but includes
+ * results from AS3356.
+ */
+ asn?: Array;
+
+ /**
+ * Filters results by continent. Specify a comma-separated list of alpha-2 codes.
+ * Prefix with `-` to exclude continents from results. For example, `-EU,NA`
+ * excludes results from EU, but includes results from NA.
+ */
+ continent?: Array;
+
+ /**
+ * Filters results by bot crawl purpose.
+ */
+ crawlPurpose?: Array;
+
+ /**
+ * End of the date range (inclusive).
+ */
+ dateEnd?: Array;
+
+ /**
+ * Filters results by date range. For example, use `7d` and `7dcontrol` to compare
+ * this week with the previous week. Use this parameter or set specific start and
+ * end dates (`dateStart` and `dateEnd` parameters).
+ */
+ dateRange?: Array;
+
+ /**
+ * Start of the date range.
+ */
+ dateStart?: Array;
+
+ /**
+ * Format in which results will be returned.
+ */
+ format?: 'JSON' | 'CSV';
+
+ /**
+ * Limits the number of objects per group to the top items within the specified
+ * time range. When item count exceeds the limit, extra items appear grouped under
+ * an "other" category.
+ */
+ limitPerGroup?: number;
+
+ /**
+ * Filters results by location. Specify a comma-separated list of alpha-2 codes.
+ * Prefix with `-` to exclude locations from results. For example, `-US,PT`
+ * excludes results from the US, but includes results from PT.
+ */
+ location?: Array;
+
+ /**
+ * Array of names used to label the series in the response.
+ */
+ name?: Array;
+}
+
+export interface TimeseriesGroupTimeseriesParams {
+ /**
+ * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals).
+ * Refer to
+ * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
+ */
+ aggInterval?: '15m' | '1h' | '1d' | '1w';
+
+ /**
+ * Filters results by Autonomous System. Specify one or more Autonomous System
+ * Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from
+ * results. For example, `-174, 3356` excludes results from AS174, but includes
+ * results from AS3356.
+ */
+ asn?: Array;
+
+ /**
+ * Filters results by continent. Specify a comma-separated list of alpha-2 codes.
+ * Prefix with `-` to exclude continents from results. For example, `-EU,NA`
+ * excludes results from EU, but includes results from NA.
+ */
+ continent?: Array;
+
+ /**
+ * Filters results by bot crawl purpose.
+ */
+ crawlPurpose?: Array;
+
+ /**
+ * End of the date range (inclusive).
+ */
+ dateEnd?: Array;
+
+ /**
+ * Filters results by date range. For example, use `7d` and `7dcontrol` to compare
+ * this week with the previous week. Use this parameter or set specific start and
+ * end dates (`dateStart` and `dateEnd` parameters).
+ */
+ dateRange?: Array;
+
+ /**
+ * Start of the date range.
+ */
+ dateStart?: Array;
+
+ /**
+ * Format in which results will be returned.
+ */
+ format?: 'JSON' | 'CSV';
+
+ /**
+ * Limits the number of objects per group to the top items within the specified
+ * time range. When item count exceeds the limit, extra items appear grouped under
+ * an "other" category.
+ */
+ limitPerGroup?: number;
+
+ /**
+ * Filters results by location. Specify a comma-separated list of alpha-2 codes.
+ * Prefix with `-` to exclude locations from results. For example, `-US,PT`
+ * excludes results from the US, but includes results from PT.
+ */
+ location?: Array;
+
+ /**
+ * Array of names used to label the series in the response.
+ */
+ name?: Array;
+
+ /**
+ * Filters results by user agent.
+ */
+ userAgent?: Array;
+}
+
+export interface TimeseriesGroupTimeseriesGroupsParams {
+ /**
+ * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals).
+ * Refer to
+ * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
+ */
+ aggInterval?: '15m' | '1h' | '1d' | '1w';
+
+ /**
+ * Filters results by Autonomous System. Specify one or more Autonomous System
+ * Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from
+ * results. For example, `-174, 3356` excludes results from AS174, but includes
+ * results from AS3356.
+ */
+ asn?: Array;
+
+ /**
+ * Filters results by continent. Specify a comma-separated list of alpha-2 codes.
+ * Prefix with `-` to exclude continents from results. For example, `-EU,NA`
+ * excludes results from EU, but includes results from NA.
+ */
+ continent?: Array;
+
+ /**
+ * Filters results by bot crawl purpose.
+ */
+ crawlPurpose?: Array;
+
+ /**
+ * End of the date range (inclusive).
+ */
+ dateEnd?: Array;
+
+ /**
+ * Filters results by date range. For example, use `7d` and `7dcontrol` to compare
+ * this week with the previous week. Use this parameter or set specific start and
+ * end dates (`dateStart` and `dateEnd` parameters).
+ */
+ dateRange?: Array;
+
+ /**
+ * Start of the date range.
+ */
+ dateStart?: Array;
+
+ /**
+ * Format in which results will be returned.
+ */
+ format?: 'JSON' | 'CSV';
+
+ /**
+ * Limits the number of objects per group to the top items within the specified
+ * time range. When item count exceeds the limit, extra items appear grouped under
+ * an "other" category.
+ */
+ limitPerGroup?: number;
+
+ /**
+ * Filters results by location. Specify a comma-separated list of alpha-2 codes.
+ * Prefix with `-` to exclude locations from results. For example, `-US,PT`
+ * excludes results from the US, but includes results from PT.
+ */
+ location?: Array;
+
+ /**
+ * Array of names used to label the series in the response.
+ */
+ name?: Array;
+
+ /**
+ * Normalization method applied to the results. Refer to
+ * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ */
+ normalization?: 'PERCENTAGE_CHANGE' | 'MIN0_MAX';
+}
+
export interface TimeseriesGroupUserAgentParams {
/**
* Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals).
@@ -212,7 +843,13 @@ export interface TimeseriesGroupUserAgentParams {
export declare namespace TimeseriesGroups {
export {
+ type TimeseriesGroupSummaryResponse as TimeseriesGroupSummaryResponse,
+ type TimeseriesGroupTimeseriesResponse as TimeseriesGroupTimeseriesResponse,
+ type TimeseriesGroupTimeseriesGroupsResponse as TimeseriesGroupTimeseriesGroupsResponse,
type TimeseriesGroupUserAgentResponse as TimeseriesGroupUserAgentResponse,
+ type TimeseriesGroupSummaryParams as TimeseriesGroupSummaryParams,
+ type TimeseriesGroupTimeseriesParams as TimeseriesGroupTimeseriesParams,
+ type TimeseriesGroupTimeseriesGroupsParams as TimeseriesGroupTimeseriesGroupsParams,
type TimeseriesGroupUserAgentParams as TimeseriesGroupUserAgentParams,
};
}
diff --git a/src/resources/radar/ai/to-markdown.ts b/src/resources/radar/ai/to-markdown.ts
index 045a3212b9..1da4decd3e 100644
--- a/src/resources/radar/ai/to-markdown.ts
+++ b/src/resources/radar/ai/to-markdown.ts
@@ -13,22 +13,24 @@ export class ToMarkdown extends APIResource {
* ```ts
* // Automatically fetches more pages as needed.
* for await (const toMarkdownCreateResponse of client.radar.ai.toMarkdown.create(
- * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
+ * fs.createReadStream('path/to/file'),
+ * fs.createReadStream('path/to/file'),
* )) {
* // ...
* }
* ```
*/
create(
+ body: string | ArrayBufferView | ArrayBuffer | BlobLike,
params: ToMarkdownCreateParams,
options?: Core.RequestOptions,
): Core.PagePromise {
- const { account_id, body } = params ?? {};
+ const { account_id } = params ?? {};
return this._client.getAPIList(
`/accounts/${account_id}/ai/tomarkdown`,
ToMarkdownCreateResponsesSinglePage,
{
- body: body,
+ body,
method: 'post',
...options,
headers: { 'Content-Type': 'application/octet-stream', ...options?.headers },
@@ -52,17 +54,7 @@ export interface ToMarkdownCreateResponse {
tokens: string;
}
-export interface ToMarkdownCreateParams {
- /**
- * Path param:
- */
- account_id: string;
-
- /**
- * Body param:
- */
- body?: string | ArrayBufferView | ArrayBuffer | BlobLike;
-}
+export type ToMarkdownCreateParams = string | ArrayBufferView | ArrayBuffer | BlobLike;
ToMarkdown.ToMarkdownCreateResponsesSinglePage = ToMarkdownCreateResponsesSinglePage;
diff --git a/src/resources/radar/as112/summary.ts b/src/resources/radar/as112/summary.ts
index 5898de7862..c59fdaeb5a 100644
--- a/src/resources/radar/as112/summary.ts
+++ b/src/resources/radar/as112/summary.ts
@@ -182,7 +182,7 @@ export namespace SummaryDNSSECResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -291,7 +291,7 @@ export namespace SummaryEdnsResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -400,7 +400,7 @@ export namespace SummaryIPVersionResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -509,7 +509,7 @@ export namespace SummaryProtocolResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -628,7 +628,7 @@ export namespace SummaryQueryTypeResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -725,7 +725,7 @@ export namespace SummaryResponseCodesResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
diff --git a/src/resources/radar/attacks/layer3/summary.ts b/src/resources/radar/attacks/layer3/summary.ts
index 707a682c97..73ed7d7c70 100644
--- a/src/resources/radar/attacks/layer3/summary.ts
+++ b/src/resources/radar/attacks/layer3/summary.ts
@@ -213,7 +213,7 @@ export namespace SummaryBitrateResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -337,7 +337,7 @@ export namespace SummaryDurationResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -466,7 +466,7 @@ export namespace SummaryIndustryResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -563,7 +563,7 @@ export namespace SummaryIPVersionResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -672,7 +672,7 @@ export namespace SummaryProtocolResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -791,7 +791,7 @@ export namespace SummaryVectorResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -888,7 +888,7 @@ export namespace SummaryVerticalResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
diff --git a/src/resources/radar/attacks/layer7/summary.ts b/src/resources/radar/attacks/layer7/summary.ts
index 20c20213b3..4afa3d68d0 100644
--- a/src/resources/radar/attacks/layer7/summary.ts
+++ b/src/resources/radar/attacks/layer7/summary.ts
@@ -220,7 +220,7 @@ export namespace SummaryHTTPMethodResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -317,7 +317,7 @@ export namespace SummaryHTTPVersionResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -422,7 +422,7 @@ export namespace SummaryIndustryResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -519,7 +519,7 @@ export namespace SummaryIPVersionResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -622,7 +622,7 @@ export namespace SummaryManagedRulesResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -719,7 +719,7 @@ export namespace SummaryMitigationProductResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
@@ -816,7 +816,7 @@ export namespace SummaryVerticalResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
diff --git a/src/resources/radar/attacks/layer7/top/top.ts b/src/resources/radar/attacks/layer7/top/top.ts
index b51891f4c7..74086112c2 100644
--- a/src/resources/radar/attacks/layer7/top/top.ts
+++ b/src/resources/radar/attacks/layer7/top/top.ts
@@ -469,12 +469,6 @@ export interface TopAttacksParams {
*/
location?: Array;
- /**
- * Deprecated parameter. Future support includes only attack magnitude defined by
- * total mitigated requests (MITIGATED_REQUESTS).
- */
- magnitude?: 'AFFECTED_ZONES' | 'MITIGATED_REQUESTS';
-
/**
* Filters the results by layer 7 mitigation product.
*/
diff --git a/src/resources/radar/bots/bots.ts b/src/resources/radar/bots/bots.ts
index 140ad5b529..e57861cb13 100644
--- a/src/resources/radar/bots/bots.ts
+++ b/src/resources/radar/bots/bots.ts
@@ -189,6 +189,8 @@ export namespace BotListResponse {
* A kebab-case identifier derived from the bot name.
*/
slug: string;
+
+ userAgentPatterns: Array;
}
}
@@ -248,7 +250,7 @@ export namespace BotSummaryResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
diff --git a/src/resources/radar/bots/web-crawlers.ts b/src/resources/radar/bots/web-crawlers.ts
index d7c9f610a3..d55ac693b1 100644
--- a/src/resources/radar/bots/web-crawlers.ts
+++ b/src/resources/radar/bots/web-crawlers.ts
@@ -92,7 +92,7 @@ export namespace WebCrawlerSummaryResponse {
* Metadata for the results.
*/
export interface Meta {
- confidenceInfo: Meta.ConfidenceInfo | null;
+ confidenceInfo: Meta.ConfidenceInfo;
dateRange: Array;
diff --git a/src/resources/radar/ct.ts b/src/resources/radar/ct.ts
new file mode 100644
index 0000000000..a1db06bc41
--- /dev/null
+++ b/src/resources/radar/ct.ts
@@ -0,0 +1,3 @@
+// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+export * from './ct/index';
diff --git a/src/resources/radar/ct/authorities.ts b/src/resources/radar/ct/authorities.ts
new file mode 100644
index 0000000000..1737426fe1
--- /dev/null
+++ b/src/resources/radar/ct/authorities.ts
@@ -0,0 +1,301 @@
+// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+import { APIResource } from '../../../resource';
+import { isRequestOptions } from '../../../core';
+import * as Core from '../../../core';
+
+export class Authorities extends APIResource {
+ /**
+ * Retrieves a list of certificate authorities.
+ *
+ * @example
+ * ```ts
+ * const authorities =
+ * await client.radar.ct.authorities.list();
+ * ```
+ */
+ list(query?: AuthorityListParams, options?: Core.RequestOptions): Core.APIPromise;
+ list(options?: Core.RequestOptions): Core.APIPromise;
+ list(
+ query: AuthorityListParams | Core.RequestOptions = {},
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ if (isRequestOptions(query)) {
+ return this.list({}, query);
+ }
+ return (
+ this._client.get('/radar/ct/authorities', { query, ...options }) as Core.APIPromise<{
+ result: AuthorityListResponse;
+ }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Retrieves the requested CA information.
+ *
+ * @example
+ * ```ts
+ * const authority = await client.radar.ct.authorities.get(
+ * '24EDD4E503A8D3FDB5FFB4AF66C887359901CBE687A5A0760D10A08EED99A7C3',
+ * );
+ * ```
+ */
+ get(
+ caSlug: string,
+ query?: AuthorityGetParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise;
+ get(caSlug: string, options?: Core.RequestOptions): Core.APIPromise;
+ get(
+ caSlug: string,
+ query: AuthorityGetParams | Core.RequestOptions = {},
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ if (isRequestOptions(query)) {
+ return this.get(caSlug, {}, query);
+ }
+ return (
+ this._client.get(`/radar/ct/authorities/${caSlug}`, { query, ...options }) as Core.APIPromise<{
+ result: AuthorityGetResponse;
+ }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+}
+
+export interface AuthorityListResponse {
+ certificateAuthorities: Array;
+}
+
+export namespace AuthorityListResponse {
+ export interface CertificateAuthority {
+ /**
+ * Specifies the type of certificate in the trust chain.
+ */
+ certificateRecordType: 'ROOT_CERTIFICATE' | 'INTERMEDIATE_CERTIFICATE';
+
+ /**
+ * The two-letter ISO country code where the CA organization is based.
+ */
+ country: string;
+
+ /**
+ * The full country name corresponding to the country code.
+ */
+ countryName: string;
+
+ /**
+ * The full name of the certificate authority (CA).
+ */
+ name: string;
+
+ /**
+ * The organization that owns and operates the CA.
+ */
+ owner: string;
+
+ /**
+ * The name of the parent/root certificate authority that issued this intermediate
+ * certificate.
+ */
+ parentName: string;
+
+ /**
+ * The SHA-256 fingerprint of the parent certificate.
+ */
+ parentSha256Fingerprint: string;
+
+ /**
+ * The current revocation status of a Certificate Authority (CA) certificate.
+ */
+ revocationStatus: 'NOT_REVOKED' | 'REVOKED' | 'PARENT_CERT_REVOKED';
+
+ /**
+ * The SHA-256 fingerprint of the intermediate certificate.
+ */
+ sha256Fingerprint: string;
+ }
+}
+
+export interface AuthorityGetResponse {
+ certificateAuthority: AuthorityGetResponse.CertificateAuthority;
+}
+
+export namespace AuthorityGetResponse {
+ export interface CertificateAuthority {
+ /**
+ * The inclusion status of a Certificate Authority (CA) in the trust store.
+ */
+ appleStatus:
+ | 'INCLUDED'
+ | 'NOT_YET_INCLUDED'
+ | 'NOT_INCLUDED'
+ | 'NOT_BEFORE'
+ | 'REMOVED'
+ | 'DISABLED'
+ | 'BLOCKED';
+
+ /**
+ * The authorityKeyIdentifier value extracted from the certificate PEM.
+ */
+ authorityKeyIdentifier: string;
+
+ /**
+ * Specifies the type of certificate in the trust chain.
+ */
+ certificateRecordType: 'ROOT_CERTIFICATE' | 'INTERMEDIATE_CERTIFICATE';
+
+ /**
+ * The inclusion status of a Certificate Authority (CA) in the trust store.
+ */
+ chromeStatus:
+ | 'INCLUDED'
+ | 'NOT_YET_INCLUDED'
+ | 'NOT_INCLUDED'
+ | 'NOT_BEFORE'
+ | 'REMOVED'
+ | 'DISABLED'
+ | 'BLOCKED';
+
+ /**
+ * The two-letter ISO country code where the CA organization is based.
+ */
+ country: string;
+
+ /**
+ * The full country name corresponding to the country code.
+ */
+ countryName: string;
+
+ /**
+ * The inclusion status of a Certificate Authority (CA) in the trust store.
+ */
+ microsoftStatus:
+ | 'INCLUDED'
+ | 'NOT_YET_INCLUDED'
+ | 'NOT_INCLUDED'
+ | 'NOT_BEFORE'
+ | 'REMOVED'
+ | 'DISABLED'
+ | 'BLOCKED';
+
+ /**
+ * The inclusion status of a Certificate Authority (CA) in the trust store.
+ */
+ mozillaStatus:
+ | 'INCLUDED'
+ | 'NOT_YET_INCLUDED'
+ | 'NOT_INCLUDED'
+ | 'NOT_BEFORE'
+ | 'REMOVED'
+ | 'DISABLED'
+ | 'BLOCKED';
+
+ /**
+ * The full name of the certificate authority (CA).
+ */
+ name: string;
+
+ /**
+ * The organization that owns and operates the CA.
+ */
+ owner: string;
+
+ /**
+ * The name of the parent/root certificate authority that issued this intermediate
+ * certificate.
+ */
+ parentName: string;
+
+ /**
+ * The SHA-256 fingerprint of the parent certificate.
+ */
+ parentSha256Fingerprint: string;
+
+ /**
+ * CAs from the same owner.
+ */
+ related: Array;
+
+ /**
+ * The current revocation status of a Certificate Authority (CA) certificate.
+ */
+ revocationStatus: 'NOT_REVOKED' | 'REVOKED' | 'PARENT_CERT_REVOKED';
+
+ /**
+ * The SHA-256 fingerprint of the intermediate certificate.
+ */
+ sha256Fingerprint: string;
+
+ /**
+ * The subjectKeyIdentifier value extracted from the certificate PEM.
+ */
+ subjectKeyIdentifier: string;
+
+ /**
+ * The start date of the certificate’s validity period (ISO format).
+ */
+ validFrom: string;
+
+ /**
+ * The end date of the certificate’s validity period (ISO format).
+ */
+ validTo: string;
+ }
+
+ export namespace CertificateAuthority {
+ export interface Related {
+ /**
+ * Specifies the type of certificate in the trust chain.
+ */
+ certificateRecordType: 'ROOT_CERTIFICATE' | 'INTERMEDIATE_CERTIFICATE';
+
+ /**
+ * The full name of the certificate authority (CA).
+ */
+ name: string;
+
+ /**
+ * The current revocation status of a Certificate Authority (CA) certificate.
+ */
+ revocationStatus: 'NOT_REVOKED' | 'REVOKED' | 'PARENT_CERT_REVOKED';
+
+ /**
+ * The SHA-256 fingerprint of the intermediate certificate.
+ */
+ sha256Fingerprint: string;
+ }
+ }
+}
+
+export interface AuthorityListParams {
+ /**
+ * Format in which results will be returned.
+ */
+ format?: 'JSON' | 'CSV';
+
+ /**
+ * Limits the number of objects returned in the response.
+ */
+ limit?: number;
+
+ /**
+ * Skips the specified number of objects before fetching the results.
+ */
+ offset?: number;
+}
+
+export interface AuthorityGetParams {
+ /**
+ * Format in which results will be returned.
+ */
+ format?: 'JSON' | 'CSV';
+}
+
+export declare namespace Authorities {
+ export {
+ type AuthorityListResponse as AuthorityListResponse,
+ type AuthorityGetResponse as AuthorityGetResponse,
+ type AuthorityListParams as AuthorityListParams,
+ type AuthorityGetParams as AuthorityGetParams,
+ };
+}
diff --git a/src/resources/radar/ct/ct.ts b/src/resources/radar/ct/ct.ts
new file mode 100644
index 0000000000..9f5873a4d2
--- /dev/null
+++ b/src/resources/radar/ct/ct.ts
@@ -0,0 +1,1107 @@
+// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+import { APIResource } from '../../../resource';
+import { isRequestOptions } from '../../../core';
+import * as Core from '../../../core';
+import * as AuthoritiesAPI from './authorities';
+import {
+ Authorities,
+ AuthorityGetParams,
+ AuthorityGetResponse,
+ AuthorityListParams,
+ AuthorityListResponse,
+} from './authorities';
+import * as LogsAPI from './logs';
+import { LogGetParams, LogGetResponse, LogListParams, LogListResponse, Logs } from './logs';
+
+export class Ct extends APIResource {
+ authorities: AuthoritiesAPI.Authorities = new AuthoritiesAPI.Authorities(this._client);
+ logs: LogsAPI.Logs = new LogsAPI.Logs(this._client);
+
+ /**
+ * Retrieves an aggregated summary of certificates grouped by the specified
+ * dimension.
+ *
+ * @example
+ * ```ts
+ * const response = await client.radar.ct.summary('CA');
+ * ```
+ */
+ summary(
+ dimension:
+ | 'CA'
+ | 'CA_OWNER'
+ | 'DURATION'
+ | 'ENTRY_TYPE'
+ | 'EXPIRATION_STATUS'
+ | 'HAS_IPS'
+ | 'HAS_WILDCARDS'
+ | 'LOG'
+ | 'LOG_API'
+ | 'LOG_OPERATOR'
+ | 'PUBLIC_KEY_ALGORITHM'
+ | 'SIGNATURE_ALGORITHM'
+ | 'TLD'
+ | 'VALIDATION_LEVEL',
+ query?: CtSummaryParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise;
+ summary(
+ dimension:
+ | 'CA'
+ | 'CA_OWNER'
+ | 'DURATION'
+ | 'ENTRY_TYPE'
+ | 'EXPIRATION_STATUS'
+ | 'HAS_IPS'
+ | 'HAS_WILDCARDS'
+ | 'LOG'
+ | 'LOG_API'
+ | 'LOG_OPERATOR'
+ | 'PUBLIC_KEY_ALGORITHM'
+ | 'SIGNATURE_ALGORITHM'
+ | 'TLD'
+ | 'VALIDATION_LEVEL',
+ options?: Core.RequestOptions,
+ ): Core.APIPromise;
+ summary(
+ dimension:
+ | 'CA'
+ | 'CA_OWNER'
+ | 'DURATION'
+ | 'ENTRY_TYPE'
+ | 'EXPIRATION_STATUS'
+ | 'HAS_IPS'
+ | 'HAS_WILDCARDS'
+ | 'LOG'
+ | 'LOG_API'
+ | 'LOG_OPERATOR'
+ | 'PUBLIC_KEY_ALGORITHM'
+ | 'SIGNATURE_ALGORITHM'
+ | 'TLD'
+ | 'VALIDATION_LEVEL',
+ query: CtSummaryParams | Core.RequestOptions = {},
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ if (isRequestOptions(query)) {
+ return this.summary(dimension, {}, query);
+ }
+ return (
+ this._client.get(`/radar/ct/summary/${dimension}`, { query, ...options }) as Core.APIPromise<{
+ result: CtSummaryResponse;
+ }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Retrieves certificate volume over time.
+ *
+ * @example
+ * ```ts
+ * const response = await client.radar.ct.timeseries();
+ * ```
+ */
+ timeseries(
+ query?: CtTimeseriesParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise;
+ timeseries(options?: Core.RequestOptions): Core.APIPromise;
+ timeseries(
+ query: CtTimeseriesParams | Core.RequestOptions = {},
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ if (isRequestOptions(query)) {
+ return this.timeseries({}, query);
+ }
+ return (
+ this._client.get('/radar/ct/timeseries', { query, ...options }) as Core.APIPromise<{
+ result: CtTimeseriesResponse;
+ }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Retrieves the distribution of certificates grouped by chosen the specified
+ * dimension over time.
+ *
+ * @example
+ * ```ts
+ * const response = await client.radar.ct.timeseriesGroups(
+ * 'CA',
+ * );
+ * ```
+ */
+ timeseriesGroups(
+ dimension:
+ | 'CA'
+ | 'CA_OWNER'
+ | 'DURATION'
+ | 'ENTRY_TYPE'
+ | 'EXPIRATION_STATUS'
+ | 'HAS_IPS'
+ | 'HAS_WILDCARDS'
+ | 'LOG'
+ | 'LOG_API'
+ | 'LOG_OPERATOR'
+ | 'PUBLIC_KEY_ALGORITHM'
+ | 'SIGNATURE_ALGORITHM'
+ | 'TLD'
+ | 'VALIDATION_LEVEL',
+ query?: CtTimeseriesGroupsParams,
+ options?: Core.RequestOptions,
+ ): Core.APIPromise;
+ timeseriesGroups(
+ dimension:
+ | 'CA'
+ | 'CA_OWNER'
+ | 'DURATION'
+ | 'ENTRY_TYPE'
+ | 'EXPIRATION_STATUS'
+ | 'HAS_IPS'
+ | 'HAS_WILDCARDS'
+ | 'LOG'
+ | 'LOG_API'
+ | 'LOG_OPERATOR'
+ | 'PUBLIC_KEY_ALGORITHM'
+ | 'SIGNATURE_ALGORITHM'
+ | 'TLD'
+ | 'VALIDATION_LEVEL',
+ options?: Core.RequestOptions,
+ ): Core.APIPromise;
+ timeseriesGroups(
+ dimension:
+ | 'CA'
+ | 'CA_OWNER'
+ | 'DURATION'
+ | 'ENTRY_TYPE'
+ | 'EXPIRATION_STATUS'
+ | 'HAS_IPS'
+ | 'HAS_WILDCARDS'
+ | 'LOG'
+ | 'LOG_API'
+ | 'LOG_OPERATOR'
+ | 'PUBLIC_KEY_ALGORITHM'
+ | 'SIGNATURE_ALGORITHM'
+ | 'TLD'
+ | 'VALIDATION_LEVEL',
+ query: CtTimeseriesGroupsParams | Core.RequestOptions = {},
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ if (isRequestOptions(query)) {
+ return this.timeseriesGroups(dimension, {}, query);
+ }
+ return (
+ this._client.get(`/radar/ct/timeseries_groups/${dimension}`, { query, ...options }) as Core.APIPromise<{
+ result: CtTimeseriesGroupsResponse;
+ }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+}
+
+export interface CtSummaryResponse {
+ /**
+ * Metadata for the results.
+ */
+ meta: CtSummaryResponse.Meta;
+
+ summary_0:
+ | { [key: string]: string }
+ | CtSummaryResponse.UnionMember1
+ | CtSummaryResponse.UnionMember2
+ | CtSummaryResponse.UnionMember3
+ | CtSummaryResponse.UnionMember4
+ | CtSummaryResponse.UnionMember5
+ | CtSummaryResponse.UnionMember6
+ | CtSummaryResponse.UnionMember7;
+}
+
+export namespace CtSummaryResponse {
+ /**
+ * Metadata for the results.
+ */
+ export interface Meta {
+ confidenceInfo: Meta.ConfidenceInfo;
+
+ dateRange: Array;
+
+ /**
+ * Timestamp of the last dataset update.
+ */
+ lastUpdated: string;
+
+ /**
+ * Normalization method applied to the results. Refer to
+ * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ */
+ normalization:
+ | 'PERCENTAGE'
+ | 'MIN0_MAX'
+ | 'MIN_MAX'
+ | 'RAW_VALUES'
+ | 'PERCENTAGE_CHANGE'
+ | 'ROLLING_AVERAGE'
+ | 'OVERLAPPED_PERCENTAGE'
+ | 'RATIO';
+
+ /**
+ * Measurement units for the results.
+ */
+ units: Array;
+ }
+
+ export namespace Meta {
+ export interface ConfidenceInfo {
+ annotations: Array;
+
+ /**
+ * Provides an indication of how much confidence Cloudflare has in the data.
+ */
+ level: number;
+ }
+
+ export namespace ConfidenceInfo {
+ /**
+ * Annotation associated with the result (e.g. outage or other type of event).
+ */
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ endDate: string;
+
+ eventType: string;
+
+ /**
+ * Whether event is a single point in time or a time range.
+ */
+ isInstantaneous: boolean;
+
+ linkedUrl: string;
+
+ startDate: string;
+ }
+ }
+
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
+ export interface Unit {
+ name: string;
+
+ value: string;
+ }
+ }
+
+ export interface UnionMember1 {
+ rfc6962: string;
+
+ static: string;
+ }
+
+ export interface UnionMember2 {
+ gt_121d: string;
+
+ gt_16d_lte_31d: string;
+
+ gt_31d_lte_91d: string;
+
+ gt_3d_lte_16d: string;
+
+ gt_91d_lte_121d: string;
+
+ lte_3d: string;
+ }
+
+ export interface UnionMember3 {
+ CERTIFICATE: string;
+
+ PRECERTIFICATE: string;
+ }
+
+ export interface UnionMember4 {
+ EXPIRED: string;
+
+ VALID: string;
+ }
+
+ export interface UnionMember5 {
+ NEGATIVE: string;
+
+ POSITIVE: string;
+ }
+
+ export interface UnionMember6 {
+ DSA: string;
+
+ ECDSA: string;
+
+ RSA: string;
+ }
+
+ export interface UnionMember7 {
+ domain: string;
+
+ extended: string;
+
+ organization: string;
+
+ unknown: string;
+ }
+}
+
+export interface CtTimeseriesResponse {
+ /**
+ * Metadata for the results.
+ */
+ meta: CtTimeseriesResponse.Meta;
+
+ [k: string]:
+ | CtTimeseriesResponse.unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb
+ | CtTimeseriesResponse.Meta
+ | undefined;
+}
+
+export namespace CtTimeseriesResponse {
+ /**
+ * Metadata for the results.
+ */
+ export interface Meta {
+ /**
+ * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals).
+ * Refer to
+ * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
+ */
+ aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH';
+
+ confidenceInfo: Meta.ConfidenceInfo;
+
+ dateRange: Array;
+
+ /**
+ * Timestamp of the last dataset update.
+ */
+ lastUpdated: string;
+
+ /**
+ * Normalization method applied to the results. Refer to
+ * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ */
+ normalization:
+ | 'PERCENTAGE'
+ | 'MIN0_MAX'
+ | 'MIN_MAX'
+ | 'RAW_VALUES'
+ | 'PERCENTAGE_CHANGE'
+ | 'ROLLING_AVERAGE'
+ | 'OVERLAPPED_PERCENTAGE'
+ | 'RATIO';
+
+ /**
+ * Measurement units for the results.
+ */
+ units: Array;
+ }
+
+ export namespace Meta {
+ export interface ConfidenceInfo {
+ annotations: Array;
+
+ /**
+ * Provides an indication of how much confidence Cloudflare has in the data.
+ */
+ level: number;
+ }
+
+ export namespace ConfidenceInfo {
+ /**
+ * Annotation associated with the result (e.g. outage or other type of event).
+ */
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ endDate: string;
+
+ eventType: string;
+
+ /**
+ * Whether event is a single point in time or a time range.
+ */
+ isInstantaneous: boolean;
+
+ linkedUrl: string;
+
+ startDate: string;
+ }
+ }
+
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
+ export interface Unit {
+ name: string;
+
+ value: string;
+ }
+ }
+
+ export interface unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb {
+ timestamps: Array;
+
+ values: Array;
+ }
+}
+
+export interface CtTimeseriesGroupsResponse {
+ /**
+ * Metadata for the results.
+ */
+ meta: CtTimeseriesGroupsResponse.Meta;
+
+ serie_0:
+ | CtTimeseriesGroupsResponse.UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55
+ | CtTimeseriesGroupsResponse.UnionMember1
+ | CtTimeseriesGroupsResponse.UnionMember2
+ | CtTimeseriesGroupsResponse.UnionMember3
+ | CtTimeseriesGroupsResponse.UnionMember4
+ | CtTimeseriesGroupsResponse.UnionMember5
+ | CtTimeseriesGroupsResponse.UnionMember6
+ | CtTimeseriesGroupsResponse.UnionMember7;
+}
+
+export namespace CtTimeseriesGroupsResponse {
+ /**
+ * Metadata for the results.
+ */
+ export interface Meta {
+ /**
+ * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals).
+ * Refer to
+ * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
+ */
+ aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH';
+
+ confidenceInfo: Meta.ConfidenceInfo;
+
+ dateRange: Array;
+
+ /**
+ * Timestamp of the last dataset update.
+ */
+ lastUpdated: string;
+
+ /**
+ * Normalization method applied to the results. Refer to
+ * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ */
+ normalization:
+ | 'PERCENTAGE'
+ | 'MIN0_MAX'
+ | 'MIN_MAX'
+ | 'RAW_VALUES'
+ | 'PERCENTAGE_CHANGE'
+ | 'ROLLING_AVERAGE'
+ | 'OVERLAPPED_PERCENTAGE'
+ | 'RATIO';
+
+ /**
+ * Measurement units for the results.
+ */
+ units: Array;
+ }
+
+ export namespace Meta {
+ export interface ConfidenceInfo {
+ annotations: Array;
+
+ /**
+ * Provides an indication of how much confidence Cloudflare has in the data.
+ */
+ level: number;
+ }
+
+ export namespace ConfidenceInfo {
+ /**
+ * Annotation associated with the result (e.g. outage or other type of event).
+ */
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ endDate: string;
+
+ eventType: string;
+
+ /**
+ * Whether event is a single point in time or a time range.
+ */
+ isInstantaneous: boolean;
+
+ linkedUrl: string;
+
+ startDate: string;
+ }
+ }
+
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
+ export interface Unit {
+ name: string;
+
+ value: string;
+ }
+ }
+
+ export interface UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 {
+ timestamps: Array;
+
+ [k: string]: Array | Array | undefined;
+ }
+
+ export interface UnionMember1 {
+ rfc6962: Array;
+
+ static: Array;
+ }
+
+ export interface UnionMember2 {
+ gt_121d: Array;
+
+ gt_16d_lte_31d: Array;
+
+ gt_31d_lte_91d: Array;
+
+ gt_3d_lte_16d: Array;
+
+ gt_91d_lte_121d: Array;
+
+ lte_3d: Array;
+ }
+
+ export interface UnionMember3 {
+ CERTIFICATE: Array;
+
+ PRECERTIFICATE: Array;
+ }
+
+ export interface UnionMember4 {
+ EXPIRED: Array;
+
+ VALID: Array;
+ }
+
+ export interface UnionMember5 {
+ NEGATIVE: Array;
+
+ POSITIVE: Array;
+ }
+
+ export interface UnionMember6 {
+ DSA: Array;
+
+ ECDSA: Array;
+
+ RSA: Array;
+ }
+
+ export interface UnionMember7 {
+ domain: Array;
+
+ extended: Array;
+
+ organization: Array;
+
+ unknown: Array;
+ }
+}
+
+export interface CtSummaryParams {
+ /**
+ * Filters results by certificate authority.
+ */
+ ca?: Array;
+
+ /**
+ * Filters results by certificate authority owner.
+ */
+ caOwner?: Array;
+
+ /**
+ * End of the date range (inclusive).
+ */
+ dateEnd?: Array;
+
+ /**
+ * Filters results by date range. For example, use `7d` and `7dcontrol` to compare
+ * this week with the previous week. Use this parameter or set specific start and
+ * end dates (`dateStart` and `dateEnd` parameters).
+ */
+ dateRange?: Array;
+
+ /**
+ * Start of the date range.
+ */
+ dateStart?: Array;
+
+ /**
+ * Filters results by certificate duration.
+ */
+ duration?: Array<
+ | 'LTE_3D'
+ | 'GT_3D_LTE_7D'
+ | 'GT_7D_LTE_10D'
+ | 'GT_10D_LTE_47D'
+ | 'GT_47D_LTE_100D'
+ | 'GT_100D_LTE_200D'
+ | 'GT_200D'
+ >;
+
+ /**
+ * Filters results by entry type (certificate vs. pre-certificate).
+ */
+ entryType?: Array<'PRECERTIFICATE' | 'CERTIFICATE'>;
+
+ /**
+ * Filters results by expiration status (expired vs. valid).
+ */
+ expirationStatus?: Array<'EXPIRED' | 'VALID'>;
+
+ /**
+ * Format in which results will be returned.
+ */
+ format?: 'JSON' | 'CSV';
+
+ /**
+ * Filters results based on whether the certificates are bound to specific IP
+ * addresses.
+ */
+ hasIps?: Array;
+
+ /**
+ * Filters results based on whether the certificates contain wildcard domains.
+ */
+ hasWildcards?: Array;
+
+ /**
+ * Limits the number of objects per group to the top items within the specified
+ * time range. When item count exceeds the limit, extra items appear grouped under
+ * an "other" category.
+ */
+ limitPerGroup?: number;
+
+ /**
+ * Filters results by certificate log.
+ */
+ log?: Array;
+
+ /**
+ * Filters results by certificate log API (RFC6962 vs. static).
+ */
+ logApi?: Array<'RFC6962' | 'STATIC'>;
+
+ /**
+ * Filters results by certificate log operator.
+ */
+ logOperator?: Array;
+
+ /**
+ * Array of names used to label the series in the response.
+ */
+ name?: Array;
+
+ /**
+ * Normalization method applied to the results. Refer to
+ * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ */
+ normalization?: 'RAW_VALUES' | 'PERCENTAGE';
+
+ /**
+ * Filters results by public key algorithm.
+ */
+ publicKeyAlgorithm?: Array<'DSA' | 'ECDSA' | 'RSA'>;
+
+ /**
+ * Filters results by signature algorithm.
+ */
+ signatureAlgorithm?: Array<
+ | 'DSA_SHA_1'
+ | 'DSA_SHA_256'
+ | 'ECDSA_SHA_1'
+ | 'ECDSA_SHA_256'
+ | 'ECDSA_SHA_384'
+ | 'ECDSA_SHA_512'
+ | 'PSS_SHA_256'
+ | 'PSS_SHA_384'
+ | 'PSS_SHA_512'
+ | 'RSA_MD2'
+ | 'RSA_MD5'
+ | 'RSA_SHA_1'
+ | 'RSA_SHA_256'
+ | 'RSA_SHA_384'
+ | 'RSA_SHA_512'
+ >;
+
+ /**
+ * Filters results by top-level domain.
+ */
+ tld?: Array;
+
+ /**
+ * Specifies whether to filter out duplicate certificates and pre-certificates. Set
+ * to true for unique entries only.
+ */
+ uniqueEntries?: Array<'true' | 'false'>;
+
+ /**
+ * Filters results by validation level.
+ */
+ validationLevel?: Array<'DOMAIN' | 'ORGANIZATION' | 'EXTENDED'>;
+}
+
+export interface CtTimeseriesParams {
+ /**
+ * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals).
+ * Refer to
+ * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
+ */
+ aggInterval?: '15m' | '1h' | '1d' | '1w';
+
+ /**
+ * Filters results by certificate authority.
+ */
+ ca?: Array;
+
+ /**
+ * Filters results by certificate authority owner.
+ */
+ caOwner?: Array;
+
+ /**
+ * End of the date range (inclusive).
+ */
+ dateEnd?: Array;
+
+ /**
+ * Filters results by date range. For example, use `7d` and `7dcontrol` to compare
+ * this week with the previous week. Use this parameter or set specific start and
+ * end dates (`dateStart` and `dateEnd` parameters).
+ */
+ dateRange?: Array;
+
+ /**
+ * Start of the date range.
+ */
+ dateStart?: Array;
+
+ /**
+ * Filters results by certificate duration.
+ */
+ duration?: Array<
+ | 'LTE_3D'
+ | 'GT_3D_LTE_7D'
+ | 'GT_7D_LTE_10D'
+ | 'GT_10D_LTE_47D'
+ | 'GT_47D_LTE_100D'
+ | 'GT_100D_LTE_200D'
+ | 'GT_200D'
+ >;
+
+ /**
+ * Filters results by entry type (certificate vs. pre-certificate).
+ */
+ entryType?: Array<'PRECERTIFICATE' | 'CERTIFICATE'>;
+
+ /**
+ * Filters results by expiration status (expired vs. valid).
+ */
+ expirationStatus?: Array<'EXPIRED' | 'VALID'>;
+
+ /**
+ * Format in which results will be returned.
+ */
+ format?: 'JSON' | 'CSV';
+
+ /**
+ * Filters results based on whether the certificates are bound to specific IP
+ * addresses.
+ */
+ hasIps?: Array;
+
+ /**
+ * Filters results based on whether the certificates contain wildcard domains.
+ */
+ hasWildcards?: Array;
+
+ /**
+ * Filters results by certificate log.
+ */
+ log?: Array;
+
+ /**
+ * Filters results by certificate log API (RFC6962 vs. static).
+ */
+ logApi?: Array<'RFC6962' | 'STATIC'>;
+
+ /**
+ * Filters results by certificate log operator.
+ */
+ logOperator?: Array;
+
+ /**
+ * Array of names used to label the series in the response.
+ */
+ name?: Array;
+
+ /**
+ * Filters results by public key algorithm.
+ */
+ publicKeyAlgorithm?: Array<'DSA' | 'ECDSA' | 'RSA'>;
+
+ /**
+ * Filters results by signature algorithm.
+ */
+ signatureAlgorithm?: Array<
+ | 'DSA_SHA_1'
+ | 'DSA_SHA_256'
+ | 'ECDSA_SHA_1'
+ | 'ECDSA_SHA_256'
+ | 'ECDSA_SHA_384'
+ | 'ECDSA_SHA_512'
+ | 'PSS_SHA_256'
+ | 'PSS_SHA_384'
+ | 'PSS_SHA_512'
+ | 'RSA_MD2'
+ | 'RSA_MD5'
+ | 'RSA_SHA_1'
+ | 'RSA_SHA_256'
+ | 'RSA_SHA_384'
+ | 'RSA_SHA_512'
+ >;
+
+ /**
+ * Filters results by top-level domain.
+ */
+ tld?: Array;
+
+ /**
+ * Specifies whether to filter out duplicate certificates and pre-certificates. Set
+ * to true for unique entries only.
+ */
+ uniqueEntries?: Array<'true' | 'false'>;
+
+ /**
+ * Filters results by validation level.
+ */
+ validationLevel?: Array<'DOMAIN' | 'ORGANIZATION' | 'EXTENDED'>;
+}
+
+export interface CtTimeseriesGroupsParams {
+ /**
+ * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals).
+ * Refer to
+ * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/).
+ */
+ aggInterval?: '15m' | '1h' | '1d' | '1w';
+
+ /**
+ * Filters results by certificate authority.
+ */
+ ca?: Array;
+
+ /**
+ * Filters results by certificate authority owner.
+ */
+ caOwner?: Array;
+
+ /**
+ * End of the date range (inclusive).
+ */
+ dateEnd?: Array;
+
+ /**
+ * Filters results by date range. For example, use `7d` and `7dcontrol` to compare
+ * this week with the previous week. Use this parameter or set specific start and
+ * end dates (`dateStart` and `dateEnd` parameters).
+ */
+ dateRange?: Array;
+
+ /**
+ * Start of the date range.
+ */
+ dateStart?: Array;
+
+ /**
+ * Filters results by certificate duration.
+ */
+ duration?: Array<
+ | 'LTE_3D'
+ | 'GT_3D_LTE_7D'
+ | 'GT_7D_LTE_10D'
+ | 'GT_10D_LTE_47D'
+ | 'GT_47D_LTE_100D'
+ | 'GT_100D_LTE_200D'
+ | 'GT_200D'
+ >;
+
+ /**
+ * Filters results by entry type (certificate vs. pre-certificate).
+ */
+ entryType?: Array<'PRECERTIFICATE' | 'CERTIFICATE'>;
+
+ /**
+ * Filters results by expiration status (expired vs. valid).
+ */
+ expirationStatus?: Array<'EXPIRED' | 'VALID'>;
+
+ /**
+ * Format in which results will be returned.
+ */
+ format?: 'JSON' | 'CSV';
+
+ /**
+ * Filters results based on whether the certificates are bound to specific IP
+ * addresses.
+ */
+ hasIps?: Array;
+
+ /**
+ * Filters results based on whether the certificates contain wildcard domains.
+ */
+ hasWildcards?: Array;
+
+ /**
+ * Limits the number of objects per group to the top items within the specified
+ * time range. When item count exceeds the limit, extra items appear grouped under
+ * an "other" category.
+ */
+ limitPerGroup?: number;
+
+ /**
+ * Filters results by certificate log.
+ */
+ log?: Array;
+
+ /**
+ * Filters results by certificate log API (RFC6962 vs. static).
+ */
+ logApi?: Array<'RFC6962' | 'STATIC'>;
+
+ /**
+ * Filters results by certificate log operator.
+ */
+ logOperator?: Array;
+
+ /**
+ * Array of names used to label the series in the response.
+ */
+ name?: Array;
+
+ /**
+ * Normalization method applied to the results. Refer to
+ * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ */
+ normalization?: 'RAW_VALUES' | 'PERCENTAGE';
+
+ /**
+ * Filters results by public key algorithm.
+ */
+ publicKeyAlgorithm?: Array<'DSA' | 'ECDSA' | 'RSA'>;
+
+ /**
+ * Filters results by signature algorithm.
+ */
+ signatureAlgorithm?: Array<
+ | 'DSA_SHA_1'
+ | 'DSA_SHA_256'
+ | 'ECDSA_SHA_1'
+ | 'ECDSA_SHA_256'
+ | 'ECDSA_SHA_384'
+ | 'ECDSA_SHA_512'
+ | 'PSS_SHA_256'
+ | 'PSS_SHA_384'
+ | 'PSS_SHA_512'
+ | 'RSA_MD2'
+ | 'RSA_MD5'
+ | 'RSA_SHA_1'
+ | 'RSA_SHA_256'
+ | 'RSA_SHA_384'
+ | 'RSA_SHA_512'
+ >;
+
+ /**
+ * Filters results by top-level domain.
+ */
+ tld?: Array;
+
+ /**
+ * Specifies whether to filter out duplicate certificates and pre-certificates. Set
+ * to true for unique entries only.
+ */
+ uniqueEntries?: Array<'true' | 'false'>;
+
+ /**
+ * Filters results by validation level.
+ */
+ validationLevel?: Array<'DOMAIN' | 'ORGANIZATION' | 'EXTENDED'>;
+}
+
+Ct.Authorities = Authorities;
+Ct.Logs = Logs;
+
+export declare namespace Ct {
+ export {
+ type CtSummaryResponse as CtSummaryResponse,
+ type CtTimeseriesResponse as CtTimeseriesResponse,
+ type CtTimeseriesGroupsResponse as CtTimeseriesGroupsResponse,
+ type CtSummaryParams as CtSummaryParams,
+ type CtTimeseriesParams as CtTimeseriesParams,
+ type CtTimeseriesGroupsParams as CtTimeseriesGroupsParams,
+ };
+
+ export {
+ Authorities as Authorities,
+ type AuthorityListResponse as AuthorityListResponse,
+ type AuthorityGetResponse as AuthorityGetResponse,
+ type AuthorityListParams as AuthorityListParams,
+ type AuthorityGetParams as AuthorityGetParams,
+ };
+
+ export {
+ Logs as Logs,
+ type LogListResponse as LogListResponse,
+ type LogGetResponse as LogGetResponse,
+ type LogListParams as LogListParams,
+ type LogGetParams as LogGetParams,
+ };
+}
diff --git a/src/resources/radar/ct/index.ts b/src/resources/radar/ct/index.ts
new file mode 100644
index 0000000000..20a5137e83
--- /dev/null
+++ b/src/resources/radar/ct/index.ts
@@ -0,0 +1,25 @@
+// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+export {
+ Authorities,
+ type AuthorityListResponse,
+ type AuthorityGetResponse,
+ type AuthorityListParams,
+ type AuthorityGetParams,
+} from './authorities';
+export {
+ Ct,
+ type CtSummaryResponse,
+ type CtTimeseriesResponse,
+ type CtTimeseriesGroupsResponse,
+ type CtSummaryParams,
+ type CtTimeseriesParams,
+ type CtTimeseriesGroupsParams,
+} from './ct';
+export {
+ Logs,
+ type LogListResponse,
+ type LogGetResponse,
+ type LogListParams,
+ type LogGetParams,
+} from './logs';
diff --git a/src/resources/radar/ct/logs.ts b/src/resources/radar/ct/logs.ts
new file mode 100644
index 0000000000..4ba71c4acf
--- /dev/null
+++ b/src/resources/radar/ct/logs.ts
@@ -0,0 +1,271 @@
+// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+import { APIResource } from '../../../resource';
+import { isRequestOptions } from '../../../core';
+import * as Core from '../../../core';
+
+export class Logs extends APIResource {
+ /**
+ * Retrieves a list of certificate logs.
+ *
+ * @example
+ * ```ts
+ * const logs = await client.radar.ct.logs.list();
+ * ```
+ */
+ list(query?: LogListParams, options?: Core.RequestOptions): Core.APIPromise;
+ list(options?: Core.RequestOptions): Core.APIPromise;
+ list(
+ query: LogListParams | Core.RequestOptions = {},
+ options?: Core.RequestOptions,
+ ): Core.APIPromise {
+ if (isRequestOptions(query)) {
+ return this.list({}, query);
+ }
+ return (
+ this._client.get('/radar/ct/logs', { query, ...options }) as Core.APIPromise<{
+ result: LogListResponse;
+ }>
+ )._thenUnwrap((obj) => obj.result);
+ }
+
+ /**
+ * Retrieves the requested certificate log information.
+ *
+ * @example
+ * ```ts
+ * const log = await client.radar.ct.logs.get('argon2024');
+ * ```
+ */
+ get(logSlug: string, query?: LogGetParams, options?: Core.RequestOptions): Core.APIPromise