From 1d63624e0823a32a8a110a70858189c83308c59e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 06:09:59 +0000 Subject: [PATCH 001/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 025f3a2867..e36e4eed44 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0ed9f898b31619623e50d660d04beca50e44987bfd3eb3a6ff98d3bca2a9c569.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-812091a95f3c4c3e317fd0989d201b888b81a2b0a91231f97b24a86520d279a7.yml From b7ac474c865e056c6ad6bb1483d9f566974afe02 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 08:04:45 +0000 Subject: [PATCH 002/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e36e4eed44..5f7a5c772f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-812091a95f3c4c3e317fd0989d201b888b81a2b0a91231f97b24a86520d279a7.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4c5d3eca46acf6884562f78cedffd5eb2e4c41781c5f4667c84739767252bb22.yml From 02c985426982979c457d345edfae1370aecf4d34 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 12:05:12 +0000 Subject: [PATCH 003/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 5f7a5c772f..ad1bf747f1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4c5d3eca46acf6884562f78cedffd5eb2e4c41781c5f4667c84739767252bb22.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-aa50f52cc738c3a1415365072266ea403d1721131522296214642e8dd9a1ae41.yml From 44a528eb26ed7a65743dae9d688a03156feb4a83 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 15:24:11 +0000 Subject: [PATCH 004/461] feat(api): api update (#2529) --- .stats.yml | 2 +- src/resources/alerting/policies.ts | 14 ++++++++++++-- tests/api-resources/alerting/policies.test.ts | 12 ++++++++++-- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index ad1bf747f1..6d12ae3255 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-aa50f52cc738c3a1415365072266ea403d1721131522296214642e8dd9a1ae41.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-780fca40500bd6887f3fc599b2000c3d553f03ce1337c2fd854641d36daf9b5f.yml diff --git a/src/resources/alerting/policies.ts b/src/resources/alerting/policies.ts index f177815c6c..e209fcaad1 100644 --- a/src/resources/alerting/policies.ts +++ b/src/resources/alerting/policies.ts @@ -134,9 +134,19 @@ export namespace MechanismParam { id?: string; } - export interface Pagerduty {} + export interface Pagerduty { + /** + * UUID + */ + id?: string; + } - export interface Webhook {} + export interface Webhook { + /** + * UUID + */ + id?: string; + } } export interface Policy { diff --git a/tests/api-resources/alerting/policies.test.ts b/tests/api-resources/alerting/policies.test.ts index fb58b63a7e..51dda9d6f4 100644 --- a/tests/api-resources/alerting/policies.test.ts +++ b/tests/api-resources/alerting/policies.test.ts @@ -34,7 +34,11 @@ describe('resource policies', () => { account_id: '023e105f4ecef8ad9ca31a8372d0c353', alert_type: 'access_custom_certificate_expiration_type', enabled: true, - mechanisms: { email: [{ id: 'test@example.com' }], pagerduty: [{}], webhooks: [{}] }, + mechanisms: { + email: [{ id: 'test@example.com' }], + pagerduty: [{ id: 'e8133a15-00a4-4d69-aec1-32f70c51f6e5' }], + webhooks: [{ id: '14cc1190-5d2b-4b98-a696-c424cb2ad05f' }], + }, name: 'SSL Notification Event Policy', alert_interval: '30m', description: 'Something describing the policy.', @@ -151,7 +155,11 @@ describe('resource policies', () => { where: ['string'], zones: ['string'], }, - mechanisms: { email: [{ id: 'test@example.com' }], pagerduty: [{}], webhooks: [{}] }, + mechanisms: { + email: [{ id: 'test@example.com' }], + pagerduty: [{ id: 'e8133a15-00a4-4d69-aec1-32f70c51f6e5' }], + webhooks: [{ id: '14cc1190-5d2b-4b98-a696-c424cb2ad05f' }], + }, name: 'SSL Notification Event Policy', }); }); From f17799664193df1c8804d0b7a1f7b44704645d7a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 15:27:51 +0000 Subject: [PATCH 005/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6d12ae3255..df97168702 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-780fca40500bd6887f3fc599b2000c3d553f03ce1337c2fd854641d36daf9b5f.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dd6616da4619117d5fa2290251ba9e32508df65112a9948e15481e9bb25d824a.yml From eb6650cd2ded8776614e3e515c7bfaab2cd5f109 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 16:20:21 +0000 Subject: [PATCH 006/461] feat(api): api update (#2531) --- .stats.yml | 2 +- .../cloudforce-one/threat-events/threat-events.ts | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index df97168702..1265f77a8c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dd6616da4619117d5fa2290251ba9e32508df65112a9948e15481e9bb25d824a.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-792e766f8171491c07c3b8b50fb33bdf3c9319ad4d6f51ae90bcc0bebfd34227.yml diff --git a/src/resources/cloudforce-one/threat-events/threat-events.ts b/src/resources/cloudforce-one/threat-events/threat-events.ts index c175f880f1..65c3c4bd10 100644 --- a/src/resources/cloudforce-one/threat-events/threat-events.ts +++ b/src/resources/cloudforce-one/threat-events/threat-events.ts @@ -84,7 +84,10 @@ export class ThreatEvents extends APIResource { insights: InsightsAPI.Insights = new InsightsAPI.Insights(this._client); /** - * Creates a new event + * Events must be created in a client-specific dataset, which means the `datasetId` + * parameter must be defined. To create a dataset, see the + * [`Create Dataset`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/create/) + * endpoint. */ create( params: ThreatEventCreateParams, @@ -95,7 +98,10 @@ export class ThreatEvents extends APIResource { } /** - * Deletes an event + * The `datasetId` parameter must be defined. To list existing datasets (and their + * IDs) in your account, use the + * [`List Datasets`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/list) + * endpoint. */ delete( eventId: string, @@ -107,7 +113,10 @@ export class ThreatEvents extends APIResource { } /** - * Creates bulk events + * The `datasetId` parameter must be defined. To list existing datasets (and their + * IDs) in your account, use the + * [`List Datasets`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/list) + * endpoint. */ bulkCreate( params: ThreatEventBulkCreateParams, From d7a376d85be30f0a636b3cb00c891902e3938e3d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 16:57:47 +0000 Subject: [PATCH 007/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 1265f77a8c..786ced2071 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-792e766f8171491c07c3b8b50fb33bdf3c9319ad4d6f51ae90bcc0bebfd34227.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0ffd22c3572767e127e246c4e464895723f265c9368ae27722ccb0a73db37e06.yml From cc2305f97113f0da4fb2cfbdb963fbf76512bdf4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 17:05:01 +0000 Subject: [PATCH 008/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 786ced2071..1265f77a8c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0ffd22c3572767e127e246c4e464895723f265c9368ae27722ccb0a73db37e06.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-792e766f8171491c07c3b8b50fb33bdf3c9319ad4d6f51ae90bcc0bebfd34227.yml From 5a5e6ae471e38e82400ee4516d0680bc4e558fcf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 17:28:16 +0000 Subject: [PATCH 009/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 1265f77a8c..9006d7486c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-792e766f8171491c07c3b8b50fb33bdf3c9319ad4d6f51ae90bcc0bebfd34227.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1c32c51f5c0961b94352526a5de16682a470124f4b919b6247952cfe0e7fabb0.yml From 5e69c599de8d9f960a73f36d33a15af90520a166 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 17:55:49 +0000 Subject: [PATCH 010/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 9006d7486c..906d42428c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1c32c51f5c0961b94352526a5de16682a470124f4b919b6247952cfe0e7fabb0.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f0212f9551df24101a687f3bf402f0f4074ba7cd0a22cb51c57b274f501df309.yml From a43b825e5884b960272f858455030e910372f733 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 17:59:43 +0000 Subject: [PATCH 011/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 906d42428c..3e12185028 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f0212f9551df24101a687f3bf402f0f4074ba7cd0a22cb51c57b274f501df309.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6db915d7030aa9f8d4d68b580cc2c2d740ef86c64a1c21410cc88213b6f6ab40.yml From c90ea3d1c72b1a471174d5cfea092853b74e2112 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 18:07:04 +0000 Subject: [PATCH 012/461] feat(api): api update (#2532) --- .stats.yml | 2 +- src/resources/ai/ai.ts | 178 +++++++++++++++++++++++++++++++++++++++-- 2 files changed, 173 insertions(+), 7 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3e12185028..c236e7ba51 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6db915d7030aa9f8d4d68b580cc2c2d740ef86c64a1c21410cc88213b6f6ab40.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-77660d4b73b127e706d861f689edd9c335916dab968ea50cc84dedc5b8b3eb78.yml diff --git a/src/resources/ai/ai.ts b/src/resources/ai/ai.ts index 22abfb0a7d..08aafd88b5 100644 --- a/src/resources/ai/ai.ts +++ b/src/resources/ai/ai.ts @@ -64,7 +64,8 @@ export type AIRunResponse = | AIRunResponse.UnionMember7 | AIRunResponse.Translation | AIRunResponse.Summarization - | AIRunResponse.ImageToText; + | AIRunResponse.ImageToText + | AIRunResponse.ImageTextToText; export namespace AIRunResponse { export interface TextClassification { @@ -186,7 +187,7 @@ export namespace AIRunResponse { /** * The generated text response from the model */ - response?: string; + response: string; /** * An array of tool calls requests made during the response generation @@ -250,6 +251,10 @@ export namespace AIRunResponse { export interface ImageToText { description?: string; } + + export interface ImageTextToText { + description?: string; + } } export type AIRunParams = @@ -264,7 +269,9 @@ export type AIRunParams = | AIRunParams.Messages | AIRunParams.Translation | AIRunParams.Summarization - | AIRunParams.ImageToText; + | AIRunParams.ImageToText + | AIRunParams.Variant12 + | AIRunParams.Variant13; export declare namespace AIRunParams { export interface TextClassification { @@ -355,7 +362,7 @@ export declare namespace AIRunParams { account_id: string; /** - * Body param: A text description of the image you want to generate + * Body param: A text description of the audio you want to generate */ prompt: string; @@ -549,6 +556,12 @@ export declare namespace AIRunParams { */ presence_penalty?: number; + /** + * Body param: If true, a chat template is not applied and you must adhere to the + * specific model's expected formatting. + */ + raw?: boolean; + /** * Body param: Penalty for repeated tokens; higher values discourage repetition. */ @@ -565,7 +578,8 @@ export declare namespace AIRunParams { seed?: number; /** - * Body param: If true, the response will be streamed back incrementally. + * Body param: If true, the response will be streamed back incrementally using SSE, + * Server Sent Events. */ stream?: boolean; @@ -588,7 +602,7 @@ export declare namespace AIRunParams { top_k?: number; /** - * Body param: Controls the creativity of the AI's responses by adjusting how many + * Body param: Adjusts the creativity of the AI's responses by controlling how many * possible words it considers. Lower values make outputs more predictable; higher * values allow for more varied and creative responses. */ @@ -854,6 +868,158 @@ export declare namespace AIRunParams { */ top_p?: number; } + + export interface Variant12 { + /** + * Path param: + */ + account_id: string; + + /** + * Body param: Image in base64 encoded format. + */ + image: string; + + /** + * Body param: The input text prompt for the model to generate a response. + */ + prompt: string; + + /** + * Body param: Decreases the likelihood of the model repeating the same lines + * verbatim. + */ + frequency_penalty?: number; + + /** + * Body param: Whether to ignore the EOS token and continue generating tokens after + * the EOS token is generated. + */ + ignore_eos?: boolean; + + /** + * Body param: The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + + /** + * Body param: Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; + + /** + * Body param: Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + + /** + * Body param: Random seed for reproducibility of the generation. + */ + seed?: number; + + /** + * Body param: Controls the randomness of the output; higher values produce more + * random results. + */ + temperature?: number; + + /** + * Body param: Limits the AI to choose from the top 'k' most probable words. Lower + * values make responses more focused; higher values introduce more variety and + * potential surprises. + */ + top_k?: number; + + /** + * Body param: Controls the creativity of the AI's responses by adjusting how many + * possible words it considers. Lower values make outputs more predictable; higher + * values allow for more varied and creative responses. + */ + top_p?: number; + } + + export interface Variant13 { + /** + * Path param: + */ + account_id: string; + + /** + * Body param: Image in base64 encoded format. + */ + image: string; + + /** + * Body param: An array of message objects representing the conversation history. + */ + messages: Array; + + /** + * Body param: Decreases the likelihood of the model repeating the same lines + * verbatim. + */ + frequency_penalty?: number; + + /** + * Body param: Whether to ignore the EOS token and continue generating tokens after + * the EOS token is generated. + */ + ignore_eos?: boolean; + + /** + * Body param: The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + + /** + * Body param: Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; + + /** + * Body param: Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + + /** + * Body param: Random seed for reproducibility of the generation. + */ + seed?: number; + + /** + * Body param: Controls the randomness of the output; higher values produce more + * random results. + */ + temperature?: number; + + /** + * Body param: Limits the AI to choose from the top 'k' most probable words. Lower + * values make responses more focused; higher values introduce more variety and + * potential surprises. + */ + top_k?: number; + + /** + * Body param: Controls the creativity of the AI's responses by adjusting how many + * possible words it considers. Lower values make outputs more predictable; higher + * values allow for more varied and creative responses. + */ + top_p?: number; + } + + export namespace Variant13 { + export interface Message { + /** + * The content of the message as a string. + */ + content: string; + + /** + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + */ + role: string; + } + } } AI.Finetunes = Finetunes; From b71df7085d690b8c3a7cceb7ab37670f13039ca8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 18:35:23 +0000 Subject: [PATCH 013/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index c236e7ba51..c000b2d31e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-77660d4b73b127e706d861f689edd9c335916dab968ea50cc84dedc5b8b3eb78.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2460ab933338dc024841ad48cf3bf32b207070d1e0c0de1b0f3171936927a6c3.yml From e4e9052fe3c1118b8930958d50c42f63c1d91a5c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 18:48:54 +0000 Subject: [PATCH 014/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index c000b2d31e..4a67c096e6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2460ab933338dc024841ad48cf3bf32b207070d1e0c0de1b0f3171936927a6c3.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c676be694861dd6c102125195b3de9f6331e06f5973b64c05848855609f10944.yml From f1533653461d4b79ccd1d4f8000b82ab48e07f61 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 23:21:29 +0000 Subject: [PATCH 015/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 4a67c096e6..4869f1e5fb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c676be694861dd6c102125195b3de9f6331e06f5973b64c05848855609f10944.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-31c29c0d64f1b837ced4878b09927436e090f52082c4a37cafe04f1caf73ef39.yml From c80ab9154742aca43d8e380cfd50dd6f4457848b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 19:36:53 +0000 Subject: [PATCH 016/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 4869f1e5fb..a97296e70b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-31c29c0d64f1b837ced4878b09927436e090f52082c4a37cafe04f1caf73ef39.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f1c7b80690b0ceb4a9b867b9d19182e552b7ea3fec49c3821c0f6c0cc81c13d6.yml From b0eed453c89057aa07f725f8a21d2935328dc864 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 20:28:45 +0000 Subject: [PATCH 017/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index a97296e70b..cfa7896b58 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f1c7b80690b0ceb4a9b867b9d19182e552b7ea3fec49c3821c0f6c0cc81c13d6.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8728ef059dc082155bdd6cd5fc60f0746c4233f3a126fd58aacba75bb64acf9e.yml From e1646f9f060cdeae7968bfbfea832bb1bcc330ef Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 20:53:54 +0000 Subject: [PATCH 018/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index cfa7896b58..f6c0e48d83 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8728ef059dc082155bdd6cd5fc60f0746c4233f3a126fd58aacba75bb64acf9e.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3a3d72b3397c5187cff3a7398f47862c0899c25866981a0db82e834e0edeae1f.yml From a5b844c32ec53a763e02c7a387292df7d0fa7e81 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 20:57:43 +0000 Subject: [PATCH 019/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index f6c0e48d83..44af9fe64d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3a3d72b3397c5187cff3a7398f47862c0899c25866981a0db82e834e0edeae1f.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1f96b47ff1b276349374b4202a1492358b7084a12e3795d5b788ecdbd203c33b.yml From 77bbf81b1df2c97504a4319fd24764c209362b74 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 22:38:31 +0000 Subject: [PATCH 020/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 44af9fe64d..ae0b3355b9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1f96b47ff1b276349374b4202a1492358b7084a12e3795d5b788ecdbd203c33b.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1a52a9a1c06f0313a36156c88770e3a48ce172ac3bbabda8289558df1fbc1c39.yml From 5c7f28b680603d8396081bb79bbcd50c5357afe6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 23:57:24 +0000 Subject: [PATCH 021/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index ae0b3355b9..5a2bec9b37 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1a52a9a1c06f0313a36156c88770e3a48ce172ac3bbabda8289558df1fbc1c39.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d2ca0b89335f32376bc9c2e489130888fcf2b5d7c4d48cdce67662292fa3c6e0.yml From a0fd43078d539a537640a63919d3f5570e0a4e87 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 06:13:21 +0000 Subject: [PATCH 022/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 5a2bec9b37..be662b9188 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d2ca0b89335f32376bc9c2e489130888fcf2b5d7c4d48cdce67662292fa3c6e0.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-72e4b7cfa37c9f31de2bd2192572cc4ca55e44c295e39de5cbcb6b7101085b39.yml From 15aeda4aa040c2a4f5061ffd0c1a178506f33299 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 09:13:59 +0000 Subject: [PATCH 023/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index be662b9188..b7ced11115 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-72e4b7cfa37c9f31de2bd2192572cc4ca55e44c295e39de5cbcb6b7101085b39.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1b656ec83aee35ae499afd631a597af7261527e6ccd322f67ea42a1c911141f4.yml From 41c75bde4d1ca311912999cc34f8accadf1adfcb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 11:08:08 +0000 Subject: [PATCH 024/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index b7ced11115..3e92826773 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1b656ec83aee35ae499afd631a597af7261527e6ccd322f67ea42a1c911141f4.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5dd5c8be587b82fb84ed6eb266482c9a9cfd0dba38d8ee7c4cb09645309bf46b.yml From 7ff2cf6c59457a59b2a951956d3b3ab7d4418d0c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 11:12:58 +0000 Subject: [PATCH 025/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 3e92826773..4ad59c75f4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5dd5c8be587b82fb84ed6eb266482c9a9cfd0dba38d8ee7c4cb09645309bf46b.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-29cfd83630fcbad4968e809961d7775925fa66b5681177c42c964b9ef919a9a8.yml From 216fe0da58eac14c1d601bf802b303b4b55d26e6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 11:31:35 +0000 Subject: [PATCH 026/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 4ad59c75f4..e64c6a5bec 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-29cfd83630fcbad4968e809961d7775925fa66b5681177c42c964b9ef919a9a8.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5048453015c0816bc9f90ad8783b96f1079aa336f9a2e6177436082473841023.yml From 02c0c4aa86dde4daf2641d0f4eb1e25c0c8c09a9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 14:31:32 +0000 Subject: [PATCH 027/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e64c6a5bec..40110f8be9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5048453015c0816bc9f90ad8783b96f1079aa336f9a2e6177436082473841023.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ffbf1797847fe69705baa6bed5eb288f7ee540711d195c191cf9a3099dbf0b56.yml From 743a52a723d8e58651373110ca7ab299cd36fe99 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Mar 2025 18:55:57 +0000 Subject: [PATCH 028/461] feat(api): api update (#2534) --- src/resources/cloudforce-one/threat-events/threat-events.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/cloudforce-one/threat-events/threat-events.ts b/src/resources/cloudforce-one/threat-events/threat-events.ts index 65c3c4bd10..f35c1012f6 100644 --- a/src/resources/cloudforce-one/threat-events/threat-events.ts +++ b/src/resources/cloudforce-one/threat-events/threat-events.ts @@ -100,7 +100,7 @@ export class ThreatEvents extends APIResource { /** * The `datasetId` parameter must be defined. To list existing datasets (and their * IDs) in your account, use the - * [`List Datasets`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/list) + * [`List Datasets`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/list/) * endpoint. */ delete( @@ -115,7 +115,7 @@ export class ThreatEvents extends APIResource { /** * The `datasetId` parameter must be defined. To list existing datasets (and their * IDs) in your account, use the - * [`List Datasets`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/list) + * [`List Datasets`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/list/) * endpoint. */ bulkCreate( From 69e4ccc2765ca71d6befd47625fffef3957e53c3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 16:21:05 +0000 Subject: [PATCH 029/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 40110f8be9..957e449cc5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ffbf1797847fe69705baa6bed5eb288f7ee540711d195c191cf9a3099dbf0b56.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a334da99b17a5ebc16008c0f4bbfc5b52a92f0d975c573b7f9142f31b5693da8.yml From fe72a01f16c647b2657a60b0626b99cabb400f78 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 16:25:14 +0000 Subject: [PATCH 030/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 957e449cc5..b6b16cfa3c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a334da99b17a5ebc16008c0f4bbfc5b52a92f0d975c573b7f9142f31b5693da8.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a0b96bb412afb9fe4019d817dcc0504644029f221eb272db1c2b1b9c3a163998.yml From ebbab29a6f58ef8240f2cf72f0375eec8dae6017 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 16:53:59 +0000 Subject: [PATCH 031/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index b6b16cfa3c..69f03925a9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a0b96bb412afb9fe4019d817dcc0504644029f221eb272db1c2b1b9c3a163998.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a69045a1fe766ee05b92175251302d1805cc303ce727c20403bf0bcc5512c217.yml From 6dee5236b6f0f244e57705e552c40295e0405e74 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 16:57:49 +0000 Subject: [PATCH 032/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 69f03925a9..b6b16cfa3c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a69045a1fe766ee05b92175251302d1805cc303ce727c20403bf0bcc5512c217.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a0b96bb412afb9fe4019d817dcc0504644029f221eb272db1c2b1b9c3a163998.yml From f94b0af49266bd8a516c06dc974a0e8f075f094c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 17:58:48 +0000 Subject: [PATCH 033/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index b6b16cfa3c..69f03925a9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a0b96bb412afb9fe4019d817dcc0504644029f221eb272db1c2b1b9c3a163998.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a69045a1fe766ee05b92175251302d1805cc303ce727c20403bf0bcc5512c217.yml From ba55c5c9cbf129ea78a2d107ade97fc1a4822c71 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 19:01:44 +0000 Subject: [PATCH 034/461] chore(exports): cleaner resource index imports (#2537) --- src/resources.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/resources.ts diff --git a/src/resources.ts b/src/resources.ts new file mode 100644 index 0000000000..b283d5781d --- /dev/null +++ b/src/resources.ts @@ -0,0 +1 @@ +export * from './resources/index'; From 4cfd139ad5f280d0d48a123cef1325eb71c8d69a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 19:05:29 +0000 Subject: [PATCH 035/461] chore(exports): stop using path fallbacks (#2538) --- package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 5832e6b581..9c12f137da 100644 --- a/package.json +++ b/package.json @@ -107,17 +107,17 @@ "default": "./dist/index.mjs" }, "./*.mjs": { - "types": ["./dist/*.d.ts", "./dist/*/index.d.ts"], - "default": ["./dist/*.mjs", "./dist/*/index.mjs"] + "types": "./dist/*.d.ts", + "default": "./dist/*.mjs" }, "./*.js": { - "types": ["./dist/*.d.ts", "./dist/*/index.d.ts"], - "default": ["./dist/*.js", "./dist/*/index.js"] + "types": "./dist/*.d.ts", + "default": "./dist/*.js" }, "./*": { - "types": ["./dist/*.d.ts", "./dist/*/index.d.ts"], - "require": ["./dist/*.js", "./dist/*/index.js"], - "default": ["./dist/*.mjs", "./dist/*/index.mjs"] + "types": "./dist/*.d.ts", + "require": "./dist/*.js", + "default": "./dist/*.mjs" } } } From 1ff101c66818f04683af9d7ec88800e6ee76bba9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 19:26:09 +0000 Subject: [PATCH 036/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 69f03925a9..72c50f319c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a69045a1fe766ee05b92175251302d1805cc303ce727c20403bf0bcc5512c217.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60d90b8842925e5e605a0d3060dc0de2e36558aac7e0798267baacf1e4981a89.yml From 10d23a42ed7e45bea0e4dc2daf640d6fa1e87c2d Mon Sep 17 00:00:00 2001 From: Mark J Miller <34665164+markjmiller@users.noreply.github.com> Date: Wed, 19 Mar 2025 13:55:21 -0600 Subject: [PATCH 037/461] docs: add Workers script upload example (#2536) --- examples/workers/script-upload.ts | 56 +++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 examples/workers/script-upload.ts diff --git a/examples/workers/script-upload.ts b/examples/workers/script-upload.ts new file mode 100644 index 0000000000..7500f3b9ac --- /dev/null +++ b/examples/workers/script-upload.ts @@ -0,0 +1,56 @@ +#!/usr/bin/env -S npm run tsn -T + +import Cloudflare from 'cloudflare'; + +/* + * Set these environment variables: + * - CLOUDFLARE_EMAIL + * - CLOUDFLARE_API_KEY + * - CLOUDFLARE_ACCOUNT_ID + */ +const client = new Cloudflare(); +const accountID = process.env['CLOUDFLARE_ACCOUNT_ID'] ?? ''; + +async function main() { + const scriptName = 'my-hello-world-script'; + const scriptFileName = `${scriptName}.mjs`; + const scriptContent = ` + export default { + async fetch(request, env, ctx) { + return new Response("Hello World!", { status: 200 }); + } + }; + `; + + const script: Cloudflare.Workers.Scripts.ScriptUpdateResponse = await client.workers.scripts.update( + scriptName, + { + account_id: accountID, + /* + * Add script content keyed by the filename + */ + // @ts-ignore + [scriptFileName]: new File([scriptContent], scriptFileName, { + type: 'application/javascript+module', + }), + // @ts-ignore + metadata: new File( + [ + JSON.stringify({ + // https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/ + bindings: [], + main_module: scriptFileName, + }), + ], + 'metadata.json', + { + type: 'application/json', + }, + ), + }, + ); + + console.log(script.id); +} + +main(); From cdb5d4009120f7b5cd2a7e14086b59bb88b74c12 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 20:35:21 +0000 Subject: [PATCH 038/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 72c50f319c..d426bd1247 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60d90b8842925e5e605a0d3060dc0de2e36558aac7e0798267baacf1e4981a89.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-16a84eef758b1aa4b8dbb35b451f670437bac211326808e954bd32c58abaf1f8.yml From 71a289b44b62b9c2aedad6f610dc44d1530835db Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Mar 2025 22:57:35 +0000 Subject: [PATCH 039/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index d426bd1247..17e6a01412 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-16a84eef758b1aa4b8dbb35b451f670437bac211326808e954bd32c58abaf1f8.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-304e22a52a26aa5201f824a75d0e1a23adf6bbcb8917b212e425d0d5e4517134.yml From 6670ce76160d45574a43cf4ff7a42c056df37298 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 06:10:09 +0000 Subject: [PATCH 040/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 17e6a01412..694db50738 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-304e22a52a26aa5201f824a75d0e1a23adf6bbcb8917b212e425d0d5e4517134.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9cf6019589581b59bb65597683be5de8c0ba2c8eac3c09cab46711a5451357df.yml From 9c1947db08d45d557c4b40501b8e69ebd2771e19 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 09:58:03 +0000 Subject: [PATCH 041/461] feat(api): api update (#2539) --- .stats.yml | 2 +- src/resources/radar/attacks/layer3/top/top.ts | 6 ++++-- src/resources/radar/attacks/layer7/top/top.ts | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index 694db50738..4e32463f72 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9cf6019589581b59bb65597683be5de8c0ba2c8eac3c09cab46711a5451357df.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5a9e378c6a941a773819dd69f5ec21492d46d9370f66425b4b77e0c6da98ec3e.yml diff --git a/src/resources/radar/attacks/layer3/top/top.ts b/src/resources/radar/attacks/layer3/top/top.ts index 1d1e75d3b1..65828ade92 100644 --- a/src/resources/radar/attacks/layer3/top/top.ts +++ b/src/resources/radar/attacks/layer3/top/top.ts @@ -38,7 +38,8 @@ export class Top extends APIResource { } /** - * Retrieves the top industries targeted by layer 3 attacks. + * This endpoint is deprecated. To continue getting this data, switch to the + * summary by industry endpoint. */ industry(query?: TopIndustryParams, options?: Core.RequestOptions): Core.APIPromise; industry(options?: Core.RequestOptions): Core.APIPromise; @@ -57,7 +58,8 @@ export class Top extends APIResource { } /** - * Retrieves the top verticals targeted by layer 3 attacks. + * This endpoint is deprecated. To continue getting this data, switch to the + * summary by vertical endpoint. */ vertical(query?: TopVerticalParams, options?: Core.RequestOptions): Core.APIPromise; vertical(options?: Core.RequestOptions): Core.APIPromise; diff --git a/src/resources/radar/attacks/layer7/top/top.ts b/src/resources/radar/attacks/layer7/top/top.ts index 55a52e6749..cbc4d22456 100644 --- a/src/resources/radar/attacks/layer7/top/top.ts +++ b/src/resources/radar/attacks/layer7/top/top.ts @@ -42,7 +42,8 @@ export class Top extends APIResource { } /** - * Retrieves the industries targeted by layer 7 attacks. + * This endpoint is deprecated. To continue getting this data, switch to the + * summary by industry endpoint. */ industry(query?: TopIndustryParams, options?: Core.RequestOptions): Core.APIPromise; industry(options?: Core.RequestOptions): Core.APIPromise; @@ -61,7 +62,8 @@ export class Top extends APIResource { } /** - * Retrieves the verticals targeted by layer 7 attacks. + * This endpoint is deprecated. To continue getting this data, switch to the + * summary by vertical endpoint. */ vertical(query?: TopVerticalParams, options?: Core.RequestOptions): Core.APIPromise; vertical(options?: Core.RequestOptions): Core.APIPromise; From b18492723924d4932c94e957fbf59a606918f227 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 14:47:54 +0000 Subject: [PATCH 042/461] feat(api): api update (#2540) --- .stats.yml | 2 +- src/resources/api-gateway/discovery/discovery.ts | 2 +- src/resources/api-gateway/discovery/operations.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4e32463f72..52a4902251 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5a9e378c6a941a773819dd69f5ec21492d46d9370f66425b4b77e0c6da98ec3e.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4b061435b9d0bfa9f8d240448ac05a8b5279b617e2e9a94f83b12330caaf3b20.yml diff --git a/src/resources/api-gateway/discovery/discovery.ts b/src/resources/api-gateway/discovery/discovery.ts index e0ec7b04b4..9ddc04de7b 100644 --- a/src/resources/api-gateway/discovery/discovery.ts +++ b/src/resources/api-gateway/discovery/discovery.ts @@ -61,7 +61,7 @@ export interface DiscoveryOperation { /** * API discovery engine(s) that discovered this operation */ - origin: Array<'ML' | 'SessionIdentifier'>; + origin: Array<'ML' | 'SessionIdentifier' | 'LabelDiscovery'>; /** * State of operation in API Discovery diff --git a/src/resources/api-gateway/discovery/operations.ts b/src/resources/api-gateway/discovery/operations.ts index bc92f8b5fe..608d06b258 100644 --- a/src/resources/api-gateway/discovery/operations.ts +++ b/src/resources/api-gateway/discovery/operations.ts @@ -129,7 +129,7 @@ export interface OperationListParams extends V4PagePaginationArrayParams { * - `SessionIdentifier` - Discovered operations that were sourced using Session * Identifier API Discovery */ - origin?: 'ML' | 'SessionIdentifier'; + origin?: 'ML' | 'SessionIdentifier' | 'LabelDiscovery'; /** * Query param: Filter results to only include discovery results in a particular From b7509178d9c4afc947f49a520ba503827e6745fe Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 14:54:56 +0000 Subject: [PATCH 043/461] feat(api): api update (#2541) --- .stats.yml | 2 +- src/resources/api-gateway/discovery/discovery.ts | 2 +- src/resources/api-gateway/discovery/operations.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 52a4902251..b13655d390 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4b061435b9d0bfa9f8d240448ac05a8b5279b617e2e9a94f83b12330caaf3b20.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7c7281b5c4300f73c7afe4290abb624d80bbd16d799d4abfeb057f9ea5e9afd0.yml diff --git a/src/resources/api-gateway/discovery/discovery.ts b/src/resources/api-gateway/discovery/discovery.ts index 9ddc04de7b..e0ec7b04b4 100644 --- a/src/resources/api-gateway/discovery/discovery.ts +++ b/src/resources/api-gateway/discovery/discovery.ts @@ -61,7 +61,7 @@ export interface DiscoveryOperation { /** * API discovery engine(s) that discovered this operation */ - origin: Array<'ML' | 'SessionIdentifier' | 'LabelDiscovery'>; + origin: Array<'ML' | 'SessionIdentifier'>; /** * State of operation in API Discovery diff --git a/src/resources/api-gateway/discovery/operations.ts b/src/resources/api-gateway/discovery/operations.ts index 608d06b258..bc92f8b5fe 100644 --- a/src/resources/api-gateway/discovery/operations.ts +++ b/src/resources/api-gateway/discovery/operations.ts @@ -129,7 +129,7 @@ export interface OperationListParams extends V4PagePaginationArrayParams { * - `SessionIdentifier` - Discovered operations that were sourced using Session * Identifier API Discovery */ - origin?: 'ML' | 'SessionIdentifier' | 'LabelDiscovery'; + origin?: 'ML' | 'SessionIdentifier'; /** * Query param: Filter results to only include discovery results in a particular From d75099945ff175b7a0d882a384c701895cd9cc4e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 16:00:37 +0000 Subject: [PATCH 044/461] feat(api): api update (#2542) --- .stats.yml | 2 +- src/resources/api-gateway/discovery/discovery.ts | 2 +- src/resources/api-gateway/discovery/operations.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index b13655d390..52a4902251 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7c7281b5c4300f73c7afe4290abb624d80bbd16d799d4abfeb057f9ea5e9afd0.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4b061435b9d0bfa9f8d240448ac05a8b5279b617e2e9a94f83b12330caaf3b20.yml diff --git a/src/resources/api-gateway/discovery/discovery.ts b/src/resources/api-gateway/discovery/discovery.ts index e0ec7b04b4..9ddc04de7b 100644 --- a/src/resources/api-gateway/discovery/discovery.ts +++ b/src/resources/api-gateway/discovery/discovery.ts @@ -61,7 +61,7 @@ export interface DiscoveryOperation { /** * API discovery engine(s) that discovered this operation */ - origin: Array<'ML' | 'SessionIdentifier'>; + origin: Array<'ML' | 'SessionIdentifier' | 'LabelDiscovery'>; /** * State of operation in API Discovery diff --git a/src/resources/api-gateway/discovery/operations.ts b/src/resources/api-gateway/discovery/operations.ts index bc92f8b5fe..608d06b258 100644 --- a/src/resources/api-gateway/discovery/operations.ts +++ b/src/resources/api-gateway/discovery/operations.ts @@ -129,7 +129,7 @@ export interface OperationListParams extends V4PagePaginationArrayParams { * - `SessionIdentifier` - Discovered operations that were sourced using Session * Identifier API Discovery */ - origin?: 'ML' | 'SessionIdentifier'; + origin?: 'ML' | 'SessionIdentifier' | 'LabelDiscovery'; /** * Query param: Filter results to only include discovery results in a particular From 2f6f1ef5807e9237d96d99f9c16d594fa8755ffc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 16:04:14 +0000 Subject: [PATCH 045/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 52a4902251..2f9ef0f4fd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4b061435b9d0bfa9f8d240448ac05a8b5279b617e2e9a94f83b12330caaf3b20.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a01b2b83f6b7af1f70a7917fc93d65a27938ced6f0de30f6fb78150ca86115e6.yml From 6a1576abe4256903a0dd968e5a9e6376f248973f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 18:36:05 +0000 Subject: [PATCH 046/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 2f9ef0f4fd..2eab83dd58 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a01b2b83f6b7af1f70a7917fc93d65a27938ced6f0de30f6fb78150ca86115e6.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1a8c2b57e5ebea2de986cbc0dfeaf3789ef3d7d64eda79589121002ab82d34a0.yml From faee198dd659e7cd3c27bf044cad117583ee9e5b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 19:25:18 +0000 Subject: [PATCH 047/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 2eab83dd58..c7316beafa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1a8c2b57e5ebea2de986cbc0dfeaf3789ef3d7d64eda79589121002ab82d34a0.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-55725252e33e51679f43b88d857233c541dcbd32cbbdeadb981c4413710f9e1d.yml From 96c4765463b8a7da0a3b043db1a14600516e25c9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 19:53:10 +0000 Subject: [PATCH 048/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index c7316beafa..8ec4ec86b6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-55725252e33e51679f43b88d857233c541dcbd32cbbdeadb981c4413710f9e1d.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0018200fffa4419164eb069959902eb1dd99ab5b1ff3342c7fbfbcc1e6494c10.yml From 70fb5601058e8265d4e171248500f16f91184315 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 20:01:58 +0000 Subject: [PATCH 049/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 8ec4ec86b6..d02af566c6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0018200fffa4419164eb069959902eb1dd99ab5b1ff3342c7fbfbcc1e6494c10.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-de81c1bcfec729c7daa975bd5993c6885134e7352887839339ac28c78259543d.yml From f1935b7acfa7efa20751b796a9e55a16fe88ded0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 22:00:15 +0000 Subject: [PATCH 050/461] feat(api): api update (#2545) --- .stats.yml | 2 +- src/resources/bot-management.ts | 60 ++++++++++++++++++++++ tests/api-resources/bot-management.test.ts | 1 + 3 files changed, 62 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index d02af566c6..da258f1d43 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-de81c1bcfec729c7daa975bd5993c6885134e7352887839339ac28c78259543d.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-384dacc9e1881c2947aebfa77615cbb350c8e538f01b57e78181188f25170262.yml diff --git a/src/resources/bot-management.ts b/src/resources/bot-management.ts index 7a6976dd47..17f6d24646 100644 --- a/src/resources/bot-management.ts +++ b/src/resources/bot-management.ts @@ -101,6 +101,11 @@ export interface BotFightModeConfiguration { */ ai_bots_protection?: 'block' | 'disabled'; + /** + * Enable rule to punish AI Scrapers and Crawlers via a link maze. + */ + crawler_protection?: 'enabled' | 'disabled'; + /** * Use lightweight, invisible JavaScript detections to improve Bot Management. * [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). @@ -171,6 +176,11 @@ export interface BotFightModeConfigurationParam { */ ai_bots_protection?: 'block' | 'disabled'; + /** + * Enable rule to punish AI Scrapers and Crawlers via a link maze. + */ + crawler_protection?: 'enabled' | 'disabled'; + /** * Use lightweight, invisible JavaScript detections to improve Bot Management. * [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). @@ -196,6 +206,11 @@ export interface SubscriptionConfiguration { */ auto_update_model?: boolean; + /** + * Enable rule to punish AI Scrapers and Crawlers via a link maze. + */ + crawler_protection?: 'enabled' | 'disabled'; + /** * Use lightweight, invisible JavaScript detections to improve Bot Management. * [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). @@ -274,6 +289,11 @@ export interface SubscriptionConfigurationParam { */ auto_update_model?: boolean; + /** + * Enable rule to punish AI Scrapers and Crawlers via a link maze. + */ + crawler_protection?: 'enabled' | 'disabled'; + /** * Use lightweight, invisible JavaScript detections to improve Bot Management. * [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). @@ -293,6 +313,11 @@ export interface SuperBotFightModeDefinitelyConfiguration { */ ai_bots_protection?: 'block' | 'disabled'; + /** + * Enable rule to punish AI Scrapers and Crawlers via a link maze. + */ + crawler_protection?: 'enabled' | 'disabled'; + /** * Use lightweight, invisible JavaScript detections to improve Bot Management. * [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). @@ -359,6 +384,11 @@ export interface SuperBotFightModeDefinitelyConfigurationParam { */ ai_bots_protection?: 'block' | 'disabled'; + /** + * Enable rule to punish AI Scrapers and Crawlers via a link maze. + */ + crawler_protection?: 'enabled' | 'disabled'; + /** * Use lightweight, invisible JavaScript detections to improve Bot Management. * [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). @@ -394,6 +424,11 @@ export interface SuperBotFightModeLikelyConfiguration { */ ai_bots_protection?: 'block' | 'disabled'; + /** + * Enable rule to punish AI Scrapers and Crawlers via a link maze. + */ + crawler_protection?: 'enabled' | 'disabled'; + /** * Use lightweight, invisible JavaScript detections to improve Bot Management. * [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). @@ -459,6 +494,11 @@ export interface SuperBotFightModeLikelyConfigurationParam { */ ai_bots_protection?: 'block' | 'disabled'; + /** + * Enable rule to punish AI Scrapers and Crawlers via a link maze. + */ + crawler_protection?: 'enabled' | 'disabled'; + /** * Use lightweight, invisible JavaScript detections to improve Bot Management. * [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). @@ -523,6 +563,11 @@ export declare namespace BotManagementUpdateParams { */ ai_bots_protection?: 'block' | 'disabled'; + /** + * Body param: Enable rule to punish AI Scrapers and Crawlers via a link maze. + */ + crawler_protection?: 'enabled' | 'disabled'; + /** * Body param: Use lightweight, invisible JavaScript detections to improve Bot * Management. @@ -547,6 +592,11 @@ export declare namespace BotManagementUpdateParams { */ ai_bots_protection?: 'block' | 'disabled'; + /** + * Body param: Enable rule to punish AI Scrapers and Crawlers via a link maze. + */ + crawler_protection?: 'enabled' | 'disabled'; + /** * Body param: Use lightweight, invisible JavaScript detections to improve Bot * Management. @@ -590,6 +640,11 @@ export declare namespace BotManagementUpdateParams { */ ai_bots_protection?: 'block' | 'disabled'; + /** + * Body param: Enable rule to punish AI Scrapers and Crawlers via a link maze. + */ + crawler_protection?: 'enabled' | 'disabled'; + /** * Body param: Use lightweight, invisible JavaScript detections to improve Bot * Management. @@ -646,6 +701,11 @@ export declare namespace BotManagementUpdateParams { */ auto_update_model?: boolean; + /** + * Body param: Enable rule to punish AI Scrapers and Crawlers via a link maze. + */ + crawler_protection?: 'enabled' | 'disabled'; + /** * Body param: Use lightweight, invisible JavaScript detections to improve Bot * Management. diff --git a/tests/api-resources/bot-management.test.ts b/tests/api-resources/bot-management.test.ts index 2989e1aa95..28d4e1ca3a 100644 --- a/tests/api-resources/bot-management.test.ts +++ b/tests/api-resources/bot-management.test.ts @@ -25,6 +25,7 @@ describe('resource botManagement', () => { const response = await client.botManagement.update({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353', ai_bots_protection: 'block', + crawler_protection: 'enabled', enable_js: true, fight_mode: true, }); From 15c62ef3892b143f02be78ec996db77a7ea608ab Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 22:22:55 +0000 Subject: [PATCH 051/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index da258f1d43..160ae1150d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-384dacc9e1881c2947aebfa77615cbb350c8e538f01b57e78181188f25170262.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-97e92537157337cce345550608f81619dd88a23f331b8c694cd9ab909a3cd11e.yml From a44c96c33cbb474faed4ff532ec3a11a45365097 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 22:27:53 +0000 Subject: [PATCH 052/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 160ae1150d..6e1a7c4a25 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-97e92537157337cce345550608f81619dd88a23f331b8c694cd9ab909a3cd11e.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-56c8c4681ec0034d34b7523eb5a01f17b921f95cf3f1eb3cabb19b8289651955.yml From 0ad57e967d3a01b8cbcbda48315951c5f3a3bbe2 Mon Sep 17 00:00:00 2001 From: markmiller Date: Thu, 20 Mar 2025 14:00:59 -0600 Subject: [PATCH 053/461] docs: update Workers script upload example --- examples/workers/script-upload.ts | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/examples/workers/script-upload.ts b/examples/workers/script-upload.ts index 7500f3b9ac..ffc54e123d 100644 --- a/examples/workers/script-upload.ts +++ b/examples/workers/script-upload.ts @@ -1,14 +1,21 @@ #!/usr/bin/env -S npm run tsn -T -import Cloudflare from 'cloudflare'; - /* + * Generate an API token: https://developers.cloudflare.com/fundamentals/api/get-started/create-token/ + * (Not Global API Key!) + * + * Find your account id: https://developers.cloudflare.com/fundamentals/setup/find-account-and-zone-ids/ + * * Set these environment variables: - * - CLOUDFLARE_EMAIL - * - CLOUDFLARE_API_KEY + * - CLOUDFLARE_API_TOKEN * - CLOUDFLARE_ACCOUNT_ID */ -const client = new Cloudflare(); + +import Cloudflare from 'cloudflare'; + +const client = new Cloudflare({ + apiToken: process.env['CLOUDFLARE_API_TOKEN'] ?? '', +}); const accountID = process.env['CLOUDFLARE_ACCOUNT_ID'] ?? ''; async function main() { @@ -17,7 +24,7 @@ async function main() { const scriptContent = ` export default { async fetch(request, env, ctx) { - return new Response("Hello World!", { status: 200 }); + return new Response(env.MESSAGE, { status: 200 }); } }; `; @@ -38,7 +45,13 @@ async function main() { [ JSON.stringify({ // https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/ - bindings: [], + bindings: [ + { + type: 'plain_text', + name: 'MESSAGE', + text: 'Hello World!', + }, + ], main_module: scriptFileName, }), ], From 4e312a0cfab3a5f55ddc528eed53cec0c4dff458 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 00:17:06 +0000 Subject: [PATCH 054/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6e1a7c4a25..6e8a04fe2c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-56c8c4681ec0034d34b7523eb5a01f17b921f95cf3f1eb3cabb19b8289651955.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-34662cd99cbc84ce6810158097c21097510788037fa4ecf52a8e39a0c5874ac2.yml From 19bb6170124b267386de6aa9355263e9f5c4af8c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 06:13:14 +0000 Subject: [PATCH 055/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6e8a04fe2c..b22dd2f9ad 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-34662cd99cbc84ce6810158097c21097510788037fa4ecf52a8e39a0c5874ac2.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e980a333f96df4603c4ae43798cbea3eb74cf20bbde93b23fae86713fa214566.yml From 4ed57a2184755fff643cdb7360496c06515dc320 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 07:48:49 +0000 Subject: [PATCH 056/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index b22dd2f9ad..e2df1d578c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e980a333f96df4603c4ae43798cbea3eb74cf20bbde93b23fae86713fa214566.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e084b4cb6f14cdd6e76111966f2b281ac4e06b0e292ffd626ff7b5de2f404405.yml From c8ff4ab014eb3a78e13117dfc6309792b2bff00e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 12:16:00 +0000 Subject: [PATCH 057/461] fix: avoid type error in certain environments (#2546) --- src/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.ts b/src/core.ts index c36859eb9b..a05b804af0 100644 --- a/src/core.ts +++ b/src/core.ts @@ -395,7 +395,7 @@ export abstract class APIClient { !headers ? {} : Symbol.iterator in headers ? Object.fromEntries(Array.from(headers as Iterable).map((header) => [...header])) - : { ...headers } + : { ...(headers as any as Record) } ); } From 83cd2496a549e6bb573eb8e52bcaf66295fa6b7a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 13:54:27 +0000 Subject: [PATCH 058/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e2df1d578c..6f6ba9d1f5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e084b4cb6f14cdd6e76111966f2b281ac4e06b0e292ffd626ff7b5de2f404405.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-283308f6d2969594210c2f5d8a15cb612a59c46328b3a8a7aadae3e7f4d80c4a.yml From 8dac8fd75999e7e121042fc8dd5e2e6e0ede541a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 15:27:23 +0000 Subject: [PATCH 059/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6f6ba9d1f5..4859fade73 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-283308f6d2969594210c2f5d8a15cb612a59c46328b3a8a7aadae3e7f4d80c4a.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9b27421db9f8e3e386989b473973040fbd110e4c2e244a7eaf5f607ef924ca28.yml From c39ce878a636f07acfee4a9ecf79957c2b9b89f2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 16:19:53 +0000 Subject: [PATCH 060/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 4859fade73..837224e722 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9b27421db9f8e3e386989b473973040fbd110e4c2e244a7eaf5f607ef924ca28.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d008ba4a9f1ce7bb329c3f176a31a4a74cab15cb712f1e23ffbeb463ebf5b6a0.yml From 4e76a198f2292c5668565421075c416b1bfcb884 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 16:25:43 +0000 Subject: [PATCH 061/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 837224e722..5728606a76 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d008ba4a9f1ce7bb329c3f176a31a4a74cab15cb712f1e23ffbeb463ebf5b6a0.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4ce13b2b2ed3b41337d0b38899e29c63e3a245e722c3799b5c9cf663b8389644.yml From c4c9feda257bc55834d5148f914d0fa9d6e6cf2b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 17:28:13 +0000 Subject: [PATCH 062/461] feat(api): api update (#2547) --- .stats.yml | 4 +-- api.md | 2 -- src/resources/custom-nameservers.ts | 31 ------------------- .../api-resources/custom-nameservers.test.ts | 19 ------------ 4 files changed, 2 insertions(+), 54 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5728606a76..401b54646b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ -configured_endpoints: 1655 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4ce13b2b2ed3b41337d0b38899e29c63e3a245e722c3799b5c9cf663b8389644.yml +configured_endpoints: 1654 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e5ba94f71066283ec6549262d34cdcdcc78538d73501f175224c3a85cb64ddcb.yml diff --git a/api.md b/api.md index f45e2c74fc..4b7e1bcff9 100644 --- a/api.md +++ b/api.md @@ -868,13 +868,11 @@ Types: - CustomNameserver - CustomNameserverDeleteResponse -- CustomNameserverAvailabiltyResponse Methods: - client.customNameservers.create({ ...params }) -> CustomNameserver - client.customNameservers.delete(customNSId, { ...params }) -> CustomNameserverDeleteResponsesSinglePage -- client.customNameservers.availabilty({ ...params }) -> CustomNameserverAvailabiltyResponsesSinglePage - client.customNameservers.get({ ...params }) -> CustomNameserversSinglePage # DNSFirewall diff --git a/src/resources/custom-nameservers.ts b/src/resources/custom-nameservers.ts index cfe4ba2874..58bb47e467 100644 --- a/src/resources/custom-nameservers.ts +++ b/src/resources/custom-nameservers.ts @@ -36,21 +36,6 @@ export class CustomNameservers extends APIResource { ); } - /** - * Get Eligible Zones for Account Custom Nameservers - */ - availabilty( - params: CustomNameserverAvailabiltyParams, - options?: Core.RequestOptions, - ): Core.PagePromise { - const { account_id } = params; - return this._client.getAPIList( - `/accounts/${account_id}/custom_ns/availability`, - CustomNameserverAvailabiltyResponsesSinglePage, - options, - ); - } - /** * List an account's custom nameservers. */ @@ -65,8 +50,6 @@ export class CustomNameservers extends APIResource { export class CustomNameserverDeleteResponsesSinglePage extends SinglePage {} -export class CustomNameserverAvailabiltyResponsesSinglePage extends SinglePage {} - export class CustomNameserversSinglePage extends SinglePage {} /** @@ -118,13 +101,6 @@ export namespace CustomNameserver { */ export type CustomNameserverDeleteResponse = string; -/** - * Name of zone based on which account custom nameservers can be created. For - * example, if example.com is returned, then ns1.example.com can be used as an - * account custom nameserver. - */ -export type CustomNameserverAvailabiltyResponse = string; - export interface CustomNameserverCreateParams { /** * Path param: Account identifier tag. @@ -149,13 +125,6 @@ export interface CustomNameserverDeleteParams { account_id: string; } -export interface CustomNameserverAvailabiltyParams { - /** - * Account identifier tag. - */ - account_id: string; -} - export interface CustomNameserverGetParams { /** * Account identifier tag. diff --git a/tests/api-resources/custom-nameservers.test.ts b/tests/api-resources/custom-nameservers.test.ts index 382546c3ae..c40ede861a 100644 --- a/tests/api-resources/custom-nameservers.test.ts +++ b/tests/api-resources/custom-nameservers.test.ts @@ -51,25 +51,6 @@ describe('resource customNameservers', () => { }); }); - test('availabilty: only required params', async () => { - const responsePromise = client.customNameservers.availabilty({ - account_id: '372e67954025e0ba6aaa6d586b9e0b59', - }); - const rawResponse = await responsePromise.asResponse(); - expect(rawResponse).toBeInstanceOf(Response); - const response = await responsePromise; - expect(response).not.toBeInstanceOf(Response); - const dataAndResponse = await responsePromise.withResponse(); - expect(dataAndResponse.data).toBe(response); - expect(dataAndResponse.response).toBe(rawResponse); - }); - - test('availabilty: required and optional params', async () => { - const response = await client.customNameservers.availabilty({ - account_id: '372e67954025e0ba6aaa6d586b9e0b59', - }); - }); - test('get: only required params', async () => { const responsePromise = client.customNameservers.get({ account_id: '372e67954025e0ba6aaa6d586b9e0b59' }); const rawResponse = await responsePromise.asResponse(); From 7d3dfba26dd652f83927aeba73546f5ce2a588e4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 17:50:29 +0000 Subject: [PATCH 063/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 401b54646b..613b88da43 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e5ba94f71066283ec6549262d34cdcdcc78538d73501f175224c3a85cb64ddcb.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-642be735f6bf66c9b0d344b23b19ddd57adb658776c0d4c8d661314091b93981.yml From d508d9db0caeb1bda0101e0c403a14fe9f0ff462 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 17:54:08 +0000 Subject: [PATCH 064/461] feat(api): api update (#2548) --- .stats.yml | 2 +- .../gateway/configurations/configurations.ts | 70 ++++++++++++++----- src/resources/zero-trust/gateway/rules.ts | 51 +++++++++++++- .../configurations/configurations.test.ts | 6 ++ .../zero-trust/gateway/rules.test.ts | 2 + 5 files changed, 111 insertions(+), 20 deletions(-) diff --git a/.stats.yml b/.stats.yml index 613b88da43..ace2e5a3a9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-642be735f6bf66c9b0d344b23b19ddd57adb658776c0d4c8d661314091b93981.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4a27924f72bf1a019361f1c5bfb654c5f4ec52709d48af73a149ef057d60586a.yml diff --git a/src/resources/zero-trust/gateway/configurations/configurations.ts b/src/resources/zero-trust/gateway/configurations/configurations.ts index 411bf7e237..88f7af6a88 100755 --- a/src/resources/zero-trust/gateway/configurations/configurations.ts +++ b/src/resources/zero-trust/gateway/configurations/configurations.ts @@ -139,7 +139,7 @@ export interface AntiVirusSettingsParam { */ export interface BlockPageSettings { /** - * Block page background color in #rrggbb format. + * If mode is customized_block_page: block page background color in #rrggbb format. */ background_color?: string; @@ -149,39 +149,58 @@ export interface BlockPageSettings { enabled?: boolean; /** - * Block page footer text. + * If mode is customized_block_page: block page footer text. */ footer_text?: string; /** - * Block page header text. + * If mode is customized_block_page: block page header text. */ header_text?: string; /** - * Full URL to the logo file. + * If mode is redirect_uri: when enabled, context will be appended to target_uri as + * query parameters. + */ + include_context?: boolean; + + /** + * If mode is customized_block_page: full URL to the logo file. */ logo_path?: string; /** - * Admin email for users to contact. + * If mode is customized_block_page: admin email for users to contact. */ mailto_address?: string; /** - * Subject line for emails created from block page. + * If mode is customized_block_page: subject line for emails created from block + * page. */ mailto_subject?: string; /** - * Block page title. + * Controls whether the user is redirected to a Cloudflare-hosted block page or to + * a customer-provided URI. + */ + mode?: 'customized_block_page' | 'redirect_uri'; + + /** + * If mode is customized_block_page: block page title. */ name?: string; /** - * Suppress detailed info at the bottom of the block page. + * If mode is customized_block_page: suppress detailed info at the bottom of the + * block page. */ suppress_footer?: boolean; + + /** + * If mode is redirect_uri: URI to which the user should be redirected. + */ + target_uri?: string; } /** @@ -189,7 +208,7 @@ export interface BlockPageSettings { */ export interface BlockPageSettingsParam { /** - * Block page background color in #rrggbb format. + * If mode is customized_block_page: block page background color in #rrggbb format. */ background_color?: string; @@ -199,39 +218,58 @@ export interface BlockPageSettingsParam { enabled?: boolean; /** - * Block page footer text. + * If mode is customized_block_page: block page footer text. */ footer_text?: string; /** - * Block page header text. + * If mode is customized_block_page: block page header text. */ header_text?: string; /** - * Full URL to the logo file. + * If mode is redirect_uri: when enabled, context will be appended to target_uri as + * query parameters. + */ + include_context?: boolean; + + /** + * If mode is customized_block_page: full URL to the logo file. */ logo_path?: string; /** - * Admin email for users to contact. + * If mode is customized_block_page: admin email for users to contact. */ mailto_address?: string; /** - * Subject line for emails created from block page. + * If mode is customized_block_page: subject line for emails created from block + * page. */ mailto_subject?: string; /** - * Block page title. + * Controls whether the user is redirected to a Cloudflare-hosted block page or to + * a customer-provided URI. + */ + mode?: 'customized_block_page' | 'redirect_uri'; + + /** + * If mode is customized_block_page: block page title. */ name?: string; /** - * Suppress detailed info at the bottom of the block page. + * If mode is customized_block_page: suppress detailed info at the bottom of the + * block page. */ suppress_footer?: boolean; + + /** + * If mode is redirect_uri: URI to which the user should be redirected. + */ + target_uri?: string; } /** diff --git a/src/resources/zero-trust/gateway/rules.ts b/src/resources/zero-trust/gateway/rules.ts index 65ada656d3..c9a6224345 100644 --- a/src/resources/zero-trust/gateway/rules.ts +++ b/src/resources/zero-trust/gateway/rules.ts @@ -229,7 +229,8 @@ export interface GatewayRule { | 'l4_override' | 'egress' | 'resolve' - | 'quarantine'; + | 'quarantine' + | 'redirect'; created_at?: string; @@ -458,6 +459,11 @@ export interface RuleSetting { */ quarantine?: RuleSetting.Quarantine; + /** + * Settings that apply to redirect rules + */ + redirect?: RuleSetting.Redirect; + /** * Configure to forward the query to the internal DNS service, passing the * specified 'view_id' as input. Cannot be set when 'dns_resolvers' are specified @@ -686,6 +692,22 @@ export namespace RuleSetting { >; } + /** + * Settings that apply to redirect rules + */ + export interface Redirect { + /** + * URI to which the user will be redirected + */ + target_uri: string; + + /** + * If true, the path and query parameters from the original request will be + * appended to target_uri + */ + preserve_path_and_query?: boolean; + } + /** * Configure to forward the query to the internal DNS service, passing the * specified 'view_id' as input. Cannot be set when 'dns_resolvers' are specified @@ -834,6 +856,11 @@ export interface RuleSettingParam { */ quarantine?: RuleSettingParam.Quarantine; + /** + * Settings that apply to redirect rules + */ + redirect?: RuleSettingParam.Redirect; + /** * Configure to forward the query to the internal DNS service, passing the * specified 'view_id' as input. Cannot be set when 'dns_resolvers' are specified @@ -1062,6 +1089,22 @@ export namespace RuleSettingParam { >; } + /** + * Settings that apply to redirect rules + */ + export interface Redirect { + /** + * URI to which the user will be redirected + */ + target_uri: string; + + /** + * If true, the path and query parameters from the original request will be + * appended to target_uri + */ + preserve_path_and_query?: boolean; + } + /** * Configure to forward the query to the internal DNS service, passing the * specified 'view_id' as input. Cannot be set when 'dns_resolvers' are specified @@ -1253,7 +1296,8 @@ export interface RuleCreateParams { | 'l4_override' | 'egress' | 'resolve' - | 'quarantine'; + | 'quarantine' + | 'redirect'; /** * Body param: The name of the rule. @@ -1377,7 +1421,8 @@ export interface RuleUpdateParams { | 'l4_override' | 'egress' | 'resolve' - | 'quarantine'; + | 'quarantine' + | 'redirect'; /** * Body param: The name of the rule. diff --git a/tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts b/tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts index d08e9bd8b7..93ce5a9053 100755 --- a/tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts +++ b/tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts @@ -39,11 +39,14 @@ describe('resource configurations', () => { enabled: true, footer_text: '--footer--', header_text: '--header--', + include_context: true, logo_path: 'https://logos.com/a.png', mailto_address: 'admin@example.com', mailto_subject: 'Blocked User Inquiry', + mode: 'customized_block_page', name: 'Cloudflare', suppress_footer: false, + target_uri: 'https://example.com', }, body_scanning: { inspection_mode: 'deep' }, browser_isolation: { non_identity_enabled: true, url_browser_isolation_enabled: true }, @@ -87,11 +90,14 @@ describe('resource configurations', () => { enabled: true, footer_text: '--footer--', header_text: '--header--', + include_context: true, logo_path: 'https://logos.com/a.png', mailto_address: 'admin@example.com', mailto_subject: 'Blocked User Inquiry', + mode: 'customized_block_page', name: 'Cloudflare', suppress_footer: false, + target_uri: 'https://example.com', }, body_scanning: { inspection_mode: 'deep' }, browser_isolation: { non_identity_enabled: true, url_browser_isolation_enabled: true }, diff --git a/tests/api-resources/zero-trust/gateway/rules.test.ts b/tests/api-resources/zero-trust/gateway/rules.test.ts index bca8e12bee..b4333f046a 100644 --- a/tests/api-resources/zero-trust/gateway/rules.test.ts +++ b/tests/api-resources/zero-trust/gateway/rules.test.ts @@ -88,6 +88,7 @@ describe('resource rules', () => { override_ips: ['1.1.1.1', '2.2.2.2'], payload_log: { enabled: true }, quarantine: { file_types: ['exe'] }, + redirect: { target_uri: 'https://example.com', preserve_path_and_query: true }, resolve_dns_internally: { fallback: 'none', view_id: 'view_id' }, resolve_dns_through_cloudflare: true, untrusted_cert: { action: 'pass_through' }, @@ -185,6 +186,7 @@ describe('resource rules', () => { override_ips: ['1.1.1.1', '2.2.2.2'], payload_log: { enabled: true }, quarantine: { file_types: ['exe'] }, + redirect: { target_uri: 'https://example.com', preserve_path_and_query: true }, resolve_dns_internally: { fallback: 'none', view_id: 'view_id' }, resolve_dns_through_cloudflare: true, untrusted_cert: { action: 'pass_through' }, From 4adef9b07c030e9204be08db52f23d3369029659 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 18:33:08 +0000 Subject: [PATCH 065/461] feat(api): api update (#2549) --- .stats.yml | 2 +- .../addressing/prefixes/service-bindings.ts | 5 +++-- .../dispatch/namespaces/scripts/scripts.ts | 12 ++++++++++++ src/resources/workers/scripts/scripts.ts | 12 ++++++++++++ .../dispatch/namespaces/scripts/scripts.test.ts | 2 ++ tests/api-resources/workers/scripts/scripts.test.ts | 2 ++ 6 files changed, 32 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index ace2e5a3a9..84340f4d46 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4a27924f72bf1a019361f1c5bfb654c5f4ec52709d48af73a149ef057d60586a.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-67d7c57a8708946887e9f461dfa953f74dd1b602c01a3b3e331cfeae0f4e2a2a.yml diff --git a/src/resources/addressing/prefixes/service-bindings.ts b/src/resources/addressing/prefixes/service-bindings.ts index 763fe5c7ff..74a046d4e9 100644 --- a/src/resources/addressing/prefixes/service-bindings.ts +++ b/src/resources/addressing/prefixes/service-bindings.ts @@ -9,8 +9,9 @@ export class ServiceBindings extends APIResource { /** * Creates a new Service Binding, routing traffic to IPs within the given CIDR to a * service running on Cloudflare's network. **Note:** This API may only be used on - * prefixes currently configured with a Magic Transit service binding, and only - * allows creating service bindings for the Cloudflare CDN or Cloudflare Spectrum. + * prefixes currently configured with a Magic Transit/Cloudflare CDN/Cloudflare + * Spectrum service binding, and only allows creating upgrade service bindings for + * the Cloudflare CDN or Cloudflare Spectrum. */ create( prefixId: string, diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts index 84b4031664..6240963538 100644 --- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts +++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts @@ -367,6 +367,18 @@ export namespace ScriptUpdateParams { * Configuration for assets within a Worker. */ export interface Config { + /** + * The contents of a \_headers file (used to attach custom headers on asset + * responses) + */ + _headers?: string; + + /** + * The contents of a \_redirects file (used to apply redirects or proxy paths ahead + * of asset serving) + */ + _redirects?: string; + /** * Determines the redirects and rewrites of requests for HTML content. */ diff --git a/src/resources/workers/scripts/scripts.ts b/src/resources/workers/scripts/scripts.ts index 027a743792..887d98dd5a 100644 --- a/src/resources/workers/scripts/scripts.ts +++ b/src/resources/workers/scripts/scripts.ts @@ -499,6 +499,18 @@ export namespace ScriptUpdateParams { * Configuration for assets within a Worker. */ export interface Config { + /** + * The contents of a \_headers file (used to attach custom headers on asset + * responses) + */ + _headers?: string; + + /** + * The contents of a \_redirects file (used to apply redirects or proxy paths ahead + * of asset serving) + */ + _redirects?: string; + /** * Determines the redirects and rewrites of requests for HTML content. */ diff --git a/tests/api-resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.test.ts b/tests/api-resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.test.ts index f622658fda..2ec93c0ebd 100644 --- a/tests/api-resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.test.ts +++ b/tests/api-resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.test.ts @@ -36,6 +36,8 @@ describe('resource scripts', () => { metadata: { assets: { config: { + _headers: '/dashboard/*\nX-Frame-Options: DENY\n\n/static/*\nAccess-Control-Allow-Origin: *', + _redirects: '/foo /bar 301\n/news/* /blog/:splat', html_handling: 'auto-trailing-slash', not_found_handling: 'none', run_worker_first: false, diff --git a/tests/api-resources/workers/scripts/scripts.test.ts b/tests/api-resources/workers/scripts/scripts.test.ts index 59165b454e..46c4dd4ebc 100644 --- a/tests/api-resources/workers/scripts/scripts.test.ts +++ b/tests/api-resources/workers/scripts/scripts.test.ts @@ -32,6 +32,8 @@ describe('resource scripts', () => { metadata: { assets: { config: { + _headers: '/dashboard/*\nX-Frame-Options: DENY\n\n/static/*\nAccess-Control-Allow-Origin: *', + _redirects: '/foo /bar 301\n/news/* /blog/:splat', html_handling: 'auto-trailing-slash', not_found_handling: 'none', run_worker_first: false, From bdd28dcfd365990110f343d2d66359c6639c0e00 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 18:56:39 +0000 Subject: [PATCH 066/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 84340f4d46..f6ce9b0047 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-67d7c57a8708946887e9f461dfa953f74dd1b602c01a3b3e331cfeae0f4e2a2a.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-25b035a11bab55f6145f67f5712cac687ba98f10f46d9d226a1e6a45b4ea5b65.yml From 37ec3926c7a58ce6d0829208f7bc34176f97c155 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 19:25:31 +0000 Subject: [PATCH 067/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index f6ce9b0047..01159cc0f4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-25b035a11bab55f6145f67f5712cac687ba98f10f46d9d226a1e6a45b4ea5b65.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-05a88de5a587dd3d0a24c1de604402eb3161770602ea5233de53cc853c8c7365.yml From aac7946c1bd9892ce376a719cba8a4599e2d4304 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 19:52:54 +0000 Subject: [PATCH 068/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 01159cc0f4..a992e8239a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-05a88de5a587dd3d0a24c1de604402eb3161770602ea5233de53cc853c8c7365.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e573b89c560e954c1154e0cf23b1c5df60c5009be616d76d60a9b838912d1ef4.yml From fb047562816076b52142df5d71741dc8bc05f69a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 20:38:39 +0000 Subject: [PATCH 069/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index a992e8239a..733dd1e1c2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e573b89c560e954c1154e0cf23b1c5df60c5009be616d76d60a9b838912d1ef4.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fa1bd56f9f7f955a689a630c6b2673d7c1c7cd47c51315165dbcdcb58f9e990e.yml From c4f324533e91f5289d2cc3d9c2277e2cbfd13e2f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 20:42:12 +0000 Subject: [PATCH 070/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 733dd1e1c2..e9016373c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fa1bd56f9f7f955a689a630c6b2673d7c1c7cd47c51315165dbcdcb58f9e990e.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-aef4121f26b65111f92e495ba47bdb288219cf6193b4934461633aded1ef61a2.yml From 33a5be05a9472a63fa5af737b44aa698b936ed7f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 21:13:05 +0000 Subject: [PATCH 071/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e9016373c4..a992e8239a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-aef4121f26b65111f92e495ba47bdb288219cf6193b4934461633aded1ef61a2.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e573b89c560e954c1154e0cf23b1c5df60c5009be616d76d60a9b838912d1ef4.yml From 1e2b4314d1377a5b1c36766d19ba1d14fe59e45e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 23:02:47 +0000 Subject: [PATCH 072/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index a992e8239a..533a0458ec 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e573b89c560e954c1154e0cf23b1c5df60c5009be616d76d60a9b838912d1ef4.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1714fa8aa590a8df7f7e3dc90865ade9709ecc87c0af649652defcf1e3536cd3.yml From 74753e975c73dd0cbf7710bd3e99d5c4e4efaf37 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 23:26:18 +0000 Subject: [PATCH 073/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 533a0458ec..6f086b9fa5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1714fa8aa590a8df7f7e3dc90865ade9709ecc87c0af649652defcf1e3536cd3.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-faf4ed73d8cff9724c4cfd97d3ff70144a7bc8f82301a3873926212f4a939263.yml From 562072118266d31d3320097cbe770e9c6b3f80db Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 22 Mar 2025 06:14:08 +0000 Subject: [PATCH 074/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6f086b9fa5..210690fa52 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-faf4ed73d8cff9724c4cfd97d3ff70144a7bc8f82301a3873926212f4a939263.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-43e12109fc7e40ea57b21dfad4e8da431dd8a3a50fa8841ec32858e8558c75a8.yml From 62ce51f4ab3b72017123f650c20382552061acbd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 22 Mar 2025 14:22:19 +0000 Subject: [PATCH 075/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 210690fa52..5315edb066 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-43e12109fc7e40ea57b21dfad4e8da431dd8a3a50fa8841ec32858e8558c75a8.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d46699b5798255553b2e8f50bd8ee8e66f4e0f95c063edaa56e6ebcb55591f88.yml From 1b1948a5ce29308d473aa0a5d71a0dd561c09899 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 22 Mar 2025 14:26:37 +0000 Subject: [PATCH 076/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 5315edb066..a81142933e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d46699b5798255553b2e8f50bd8ee8e66f4e0f95c063edaa56e6ebcb55591f88.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c0040ac1af2de0cbc950b747507b5e2b29bdff94dcc97da996ea1b48fb58c364.yml From d4075e653298a7309e094c20cc592a53667bf5be Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 22 Mar 2025 17:13:34 +0000 Subject: [PATCH 077/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index a81142933e..bf24d13d2e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c0040ac1af2de0cbc950b747507b5e2b29bdff94dcc97da996ea1b48fb58c364.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c9dfd9e2bb1f36a0f24cf3caea253ebf69b4d38e43912a695e89b0879db123b6.yml From 48c4a35e51f36a2f2e23f054de8805bf4769386b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 22 Mar 2025 23:55:23 +0000 Subject: [PATCH 078/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index bf24d13d2e..467eceff0e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c9dfd9e2bb1f36a0f24cf3caea253ebf69b4d38e43912a695e89b0879db123b6.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d37364ae7931ee2bfed250f88bebfee4810768864f0be5bc924019066021a8ab.yml From c2ff5c0b490338168c8fa9b766ccbfafd0a2cd8d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 23 Mar 2025 06:13:33 +0000 Subject: [PATCH 079/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 467eceff0e..cb155cfb6c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1654 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d37364ae7931ee2bfed250f88bebfee4810768864f0be5bc924019066021a8ab.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6c15a36391095aacaddd2ccbee8f3f53ffc4217b13a54b9eae9476f004b870b7.yml From 986ee0f64144fabb8959f0f501af5ba9e3d7c05b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 01:35:56 +0000 Subject: [PATCH 080/461] feat(radar): add new endpoint mappings (#2550) --- .stats.yml | 2 +- api.md | 20 + src/resources/radar/ai/ai.ts | 17 + src/resources/radar/ai/index.ts | 6 + src/resources/radar/ai/to-markdown.ts | 69 +++ src/resources/radar/attacks/layer3/index.ts | 4 + src/resources/radar/attacks/layer3/layer3.ts | 8 + src/resources/radar/attacks/layer3/summary.ts | 294 ++++++++++++ src/resources/radar/attacks/layer7/index.ts | 4 + src/resources/radar/attacks/layer7/layer7.ts | 8 + src/resources/radar/attacks/layer7/summary.ts | 426 ++++++++++++++++++ src/resources/radar/bgp/bgp.ts | 4 + src/resources/radar/bgp/index.ts | 2 + src/resources/radar/bgp/routes.ts | 100 ++++ .../radar/ai/to-markdown.test.ts | 32 ++ .../radar/attacks/layer3/summary.test.ts | 80 ++++ .../radar/attacks/layer7/summary.test.ts | 84 ++++ tests/api-resources/radar/bgp/routes.test.ts | 28 ++ 18 files changed, 1187 insertions(+), 1 deletion(-) create mode 100644 src/resources/radar/ai/to-markdown.ts create mode 100644 tests/api-resources/radar/ai/to-markdown.test.ts diff --git a/.stats.yml b/.stats.yml index cb155cfb6c..955f4bbf35 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ -configured_endpoints: 1654 +configured_endpoints: 1660 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6c15a36391095aacaddd2ccbee8f3f53ffc4217b13a54b9eae9476f004b870b7.yml diff --git a/api.md b/api.md index 4b7e1bcff9..990953ffee 100644 --- a/api.md +++ b/api.md @@ -6037,6 +6037,16 @@ Methods: ## AI +### ToMarkdown + +Types: + +- ToMarkdownCreateResponse + +Methods: + +- client.radar.ai.toMarkdown.create({ ...params }) -> ToMarkdownCreateResponsesSinglePage + ### Inference #### Summary @@ -6172,6 +6182,7 @@ Types: - RouteAsesResponse - RouteMoasResponse - RoutePfx2asResponse +- RouteRealtimeResponse - RouteStatsResponse Methods: @@ -6179,6 +6190,7 @@ Methods: - client.radar.bgp.routes.ases({ ...params }) -> RouteAsesResponse - client.radar.bgp.routes.moas({ ...params }) -> RouteMoasResponse - client.radar.bgp.routes.pfx2as({ ...params }) -> RoutePfx2asResponse +- client.radar.bgp.routes.realtime({ ...params }) -> RouteRealtimeResponse - client.radar.bgp.routes.stats({ ...params }) -> RouteStatsResponse ### IPs @@ -6560,17 +6572,21 @@ Types: - SummaryBitrateResponse - SummaryDurationResponse +- SummaryIndustryResponse - SummaryIPVersionResponse - SummaryProtocolResponse - SummaryVectorResponse +- SummaryVerticalResponse Methods: - client.radar.attacks.layer3.summary.bitrate({ ...params }) -> SummaryBitrateResponse - client.radar.attacks.layer3.summary.duration({ ...params }) -> SummaryDurationResponse +- client.radar.attacks.layer3.summary.industry({ ...params }) -> SummaryIndustryResponse - client.radar.attacks.layer3.summary.ipVersion({ ...params }) -> SummaryIPVersionResponse - client.radar.attacks.layer3.summary.protocol({ ...params }) -> SummaryProtocolResponse - client.radar.attacks.layer3.summary.vector({ ...params }) -> SummaryVectorResponse +- client.radar.attacks.layer3.summary.vertical({ ...params }) -> SummaryVerticalResponse #### TimeseriesGroups @@ -6636,17 +6652,21 @@ Types: - SummaryHTTPMethodResponse - SummaryHTTPVersionResponse +- SummaryIndustryResponse - SummaryIPVersionResponse - SummaryManagedRulesResponse - SummaryMitigationProductResponse +- SummaryVerticalResponse Methods: - client.radar.attacks.layer7.summary.httpMethod({ ...params }) -> SummaryHTTPMethodResponse - client.radar.attacks.layer7.summary.httpVersion({ ...params }) -> SummaryHTTPVersionResponse +- client.radar.attacks.layer7.summary.industry({ ...params }) -> SummaryIndustryResponse - client.radar.attacks.layer7.summary.ipVersion({ ...params }) -> SummaryIPVersionResponse - client.radar.attacks.layer7.summary.managedRules({ ...params }) -> SummaryManagedRulesResponse - client.radar.attacks.layer7.summary.mitigationProduct({ ...params }) -> SummaryMitigationProductResponse +- client.radar.attacks.layer7.summary.vertical({ ...params }) -> SummaryVerticalResponse #### TimeseriesGroups diff --git a/src/resources/radar/ai/ai.ts b/src/resources/radar/ai/ai.ts index 7cabfac8bf..6ba8476430 100755 --- a/src/resources/radar/ai/ai.ts +++ b/src/resources/radar/ai/ai.ts @@ -7,12 +7,20 @@ import { TimeseriesGroupUserAgentResponse, TimeseriesGroups, } from './timeseries-groups'; +import * as ToMarkdownAPI from './to-markdown'; +import { + ToMarkdown, + ToMarkdownCreateParams, + ToMarkdownCreateResponse, + ToMarkdownCreateResponsesSinglePage, +} from './to-markdown'; import * as BotsAPI from './bots/bots'; import { Bots } from './bots/bots'; import * as InferenceAPI from './inference/inference'; import { Inference } from './inference/inference'; export class AI extends APIResource { + toMarkdown: ToMarkdownAPI.ToMarkdown = new ToMarkdownAPI.ToMarkdown(this._client); inference: InferenceAPI.Inference = new InferenceAPI.Inference(this._client); bots: BotsAPI.Bots = new BotsAPI.Bots(this._client); timeseriesGroups: TimeseriesGroupsAPI.TimeseriesGroups = new TimeseriesGroupsAPI.TimeseriesGroups( @@ -20,11 +28,20 @@ export class AI extends APIResource { ); } +AI.ToMarkdown = ToMarkdown; +AI.ToMarkdownCreateResponsesSinglePage = ToMarkdownCreateResponsesSinglePage; AI.Inference = Inference; AI.Bots = Bots; AI.TimeseriesGroups = TimeseriesGroups; export declare namespace AI { + export { + ToMarkdown as ToMarkdown, + type ToMarkdownCreateResponse as ToMarkdownCreateResponse, + ToMarkdownCreateResponsesSinglePage as ToMarkdownCreateResponsesSinglePage, + type ToMarkdownCreateParams as ToMarkdownCreateParams, + }; + export { Inference as Inference }; export { Bots as Bots }; diff --git a/src/resources/radar/ai/index.ts b/src/resources/radar/ai/index.ts index 6e75094ff3..a6a9f99c81 100755 --- a/src/resources/radar/ai/index.ts +++ b/src/resources/radar/ai/index.ts @@ -8,3 +8,9 @@ export { type TimeseriesGroupUserAgentResponse, type TimeseriesGroupUserAgentParams, } from './timeseries-groups'; +export { + ToMarkdownCreateResponsesSinglePage, + ToMarkdown, + type ToMarkdownCreateResponse, + type ToMarkdownCreateParams, +} from './to-markdown'; diff --git a/src/resources/radar/ai/to-markdown.ts b/src/resources/radar/ai/to-markdown.ts new file mode 100644 index 0000000000..2c07292681 --- /dev/null +++ b/src/resources/radar/ai/to-markdown.ts @@ -0,0 +1,69 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../../resource'; +import * as Core from '../../../core'; +import { SinglePage } from '../../../pagination'; +import { type BlobLike } from '../../../uploads'; + +export class ToMarkdown extends APIResource { + /** + * Convert Files into Markdown + */ + create( + params: ToMarkdownCreateParams, + options?: Core.RequestOptions, + ): Core.PagePromise { + const { account_id, body } = params ?? {}; + return this._client.getAPIList( + `/accounts/${account_id}/ai/tomarkdown`, + ToMarkdownCreateResponsesSinglePage, + { + body: body, + method: 'post', + ...options, + headers: { + 'Content-Type': 'application/octet-stream', + Accept: 'applications/json', + ...options?.headers, + }, + __binaryRequest: true, + }, + ); + } +} + +export class ToMarkdownCreateResponsesSinglePage extends SinglePage {} + +export interface ToMarkdownCreateResponse { + data: string; + + format: string; + + mimeType: string; + + name: string; + + tokens: string; +} + +export interface ToMarkdownCreateParams { + /** + * Path param: + */ + account_id: string; + + /** + * Body param: + */ + body?: string | ArrayBufferView | ArrayBuffer | BlobLike; +} + +ToMarkdown.ToMarkdownCreateResponsesSinglePage = ToMarkdownCreateResponsesSinglePage; + +export declare namespace ToMarkdown { + export { + type ToMarkdownCreateResponse as ToMarkdownCreateResponse, + ToMarkdownCreateResponsesSinglePage as ToMarkdownCreateResponsesSinglePage, + type ToMarkdownCreateParams as ToMarkdownCreateParams, + }; +} diff --git a/src/resources/radar/attacks/layer3/index.ts b/src/resources/radar/attacks/layer3/index.ts index 006b7e13c1..aea57a5a87 100644 --- a/src/resources/radar/attacks/layer3/index.ts +++ b/src/resources/radar/attacks/layer3/index.ts @@ -5,14 +5,18 @@ export { Summary, type SummaryBitrateResponse, type SummaryDurationResponse, + type SummaryIndustryResponse, type SummaryIPVersionResponse, type SummaryProtocolResponse, type SummaryVectorResponse, + type SummaryVerticalResponse, type SummaryBitrateParams, type SummaryDurationParams, + type SummaryIndustryParams, type SummaryIPVersionParams, type SummaryProtocolParams, type SummaryVectorParams, + type SummaryVerticalParams, } from './summary'; export { TimeseriesGroups, diff --git a/src/resources/radar/attacks/layer3/layer3.ts b/src/resources/radar/attacks/layer3/layer3.ts index 8d3c6f4910..141cc79f62 100644 --- a/src/resources/radar/attacks/layer3/layer3.ts +++ b/src/resources/radar/attacks/layer3/layer3.ts @@ -12,10 +12,14 @@ import { SummaryDurationResponse, SummaryIPVersionParams, SummaryIPVersionResponse, + SummaryIndustryParams, + SummaryIndustryResponse, SummaryProtocolParams, SummaryProtocolResponse, SummaryVectorParams, SummaryVectorResponse, + SummaryVerticalParams, + SummaryVerticalResponse, } from './summary'; import * as TimeseriesGroupsAPI from './timeseries-groups'; import { @@ -188,14 +192,18 @@ export declare namespace Layer3 { Summary as Summary, type SummaryBitrateResponse as SummaryBitrateResponse, type SummaryDurationResponse as SummaryDurationResponse, + type SummaryIndustryResponse as SummaryIndustryResponse, type SummaryIPVersionResponse as SummaryIPVersionResponse, type SummaryProtocolResponse as SummaryProtocolResponse, type SummaryVectorResponse as SummaryVectorResponse, + type SummaryVerticalResponse as SummaryVerticalResponse, type SummaryBitrateParams as SummaryBitrateParams, type SummaryDurationParams as SummaryDurationParams, + type SummaryIndustryParams as SummaryIndustryParams, type SummaryIPVersionParams as SummaryIPVersionParams, type SummaryProtocolParams as SummaryProtocolParams, type SummaryVectorParams as SummaryVectorParams, + type SummaryVerticalParams as SummaryVerticalParams, }; export { diff --git a/src/resources/radar/attacks/layer3/summary.ts b/src/resources/radar/attacks/layer3/summary.ts index d2d1c9a884..b544c32bc9 100644 --- a/src/resources/radar/attacks/layer3/summary.ts +++ b/src/resources/radar/attacks/layer3/summary.ts @@ -49,6 +49,28 @@ export class Summary extends APIResource { )._thenUnwrap((obj) => obj.result); } + /** + * Retrieves the distribution of layer 3 attacks by targeted industry. + */ + industry( + query?: SummaryIndustryParams, + options?: Core.RequestOptions, + ): Core.APIPromise; + industry(options?: Core.RequestOptions): Core.APIPromise; + industry( + query: SummaryIndustryParams | Core.RequestOptions = {}, + options?: Core.RequestOptions, + ): Core.APIPromise { + if (isRequestOptions(query)) { + return this.industry({}, query); + } + return ( + this._client.get('/radar/attacks/layer3/summary/industry', { query, ...options }) as Core.APIPromise<{ + result: SummaryIndustryResponse; + }> + )._thenUnwrap((obj) => obj.result); + } + /** * Retrieves the distribution of layer 3 attacks by IP version. */ @@ -111,6 +133,28 @@ export class Summary extends APIResource { }> )._thenUnwrap((obj) => obj.result); } + + /** + * Retrieves the distribution of layer 3 attacks by targeted vertical. + */ + vertical( + query?: SummaryVerticalParams, + options?: Core.RequestOptions, + ): Core.APIPromise; + vertical(options?: Core.RequestOptions): Core.APIPromise; + vertical( + query: SummaryVerticalParams | Core.RequestOptions = {}, + options?: Core.RequestOptions, + ): Core.APIPromise { + if (isRequestOptions(query)) { + return this.vertical({}, query); + } + return ( + this._client.get('/radar/attacks/layer3/summary/vertical', { query, ...options }) as Core.APIPromise<{ + result: SummaryVerticalResponse; + }> + )._thenUnwrap((obj) => obj.result); + } } export interface SummaryBitrateResponse { @@ -251,6 +295,62 @@ export namespace SummaryDurationResponse { } } +export interface SummaryIndustryResponse { + meta: SummaryIndustryResponse.Meta; + + summary_0: Record; +} + +export namespace SummaryIndustryResponse { + export interface Meta { + dateRange: Array; + + lastUpdated: string; + + normalization: string; + + confidenceInfo?: Meta.ConfidenceInfo; + } + + export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface ConfidenceInfo { + annotations?: Array; + + level?: number; + } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } +} + export interface SummaryIPVersionResponse { meta: SummaryIPVersionResponse.Meta; @@ -435,6 +535,62 @@ export namespace SummaryVectorResponse { } } +export interface SummaryVerticalResponse { + meta: SummaryVerticalResponse.Meta; + + summary_0: Record; +} + +export namespace SummaryVerticalResponse { + export interface Meta { + dateRange: Array; + + lastUpdated: string; + + normalization: string; + + confidenceInfo?: Meta.ConfidenceInfo; + } + + export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface ConfidenceInfo { + annotations?: Array; + + level?: number; + } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } +} + export interface SummaryBitrateParams { /** * Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to @@ -553,6 +709,73 @@ export interface SummaryDurationParams { protocol?: Array<'UDP' | 'TCP' | 'ICMP' | 'GRE'>; } +export interface SummaryIndustryParams { + /** + * Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to + * exclude continents from results. For example, `-EU,NA` excludes results from EU, + * but includes results from NA. + */ + continent?: Array; + + /** + * End of the date range (inclusive). + */ + dateEnd?: Array; + + /** + * Filters results by the specified 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; + + /** + * Together with the `location` parameter, will apply the filter to origin or + * target location. + */ + direction?: 'ORIGIN' | 'TARGET'; + + /** + * Format in which results will be returned. + */ + format?: 'JSON' | 'CSV'; + + /** + * Filters results by IP version (Ipv4 vs. IPv6). + */ + ipVersion?: Array<'IPv4' | 'IPv6'>; + + /** + * Limits the number of objects per group to the top items within the specified + * time range. If there are more items than the limit, the response will include + * the count of items, with any remaining items grouped together under an "other" + * category. + */ + limitPerGroup?: number; + + /** + * Comma-separated list of locations (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; + + /** + * Array of L3/4 attack types. + */ + protocol?: Array<'UDP' | 'TCP' | 'ICMP' | 'GRE'>; +} + export interface SummaryIPVersionParams { /** * Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to @@ -728,17 +951,88 @@ export interface SummaryVectorParams { protocol?: Array<'UDP' | 'TCP' | 'ICMP' | 'GRE'>; } +export interface SummaryVerticalParams { + /** + * Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to + * exclude continents from results. For example, `-EU,NA` excludes results from EU, + * but includes results from NA. + */ + continent?: Array; + + /** + * End of the date range (inclusive). + */ + dateEnd?: Array; + + /** + * Filters results by the specified 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; + + /** + * Together with the `location` parameter, will apply the filter to origin or + * target location. + */ + direction?: 'ORIGIN' | 'TARGET'; + + /** + * Format in which results will be returned. + */ + format?: 'JSON' | 'CSV'; + + /** + * Filters results by IP version (Ipv4 vs. IPv6). + */ + ipVersion?: Array<'IPv4' | 'IPv6'>; + + /** + * Limits the number of objects per group to the top items within the specified + * time range. If there are more items than the limit, the response will include + * the count of items, with any remaining items grouped together under an "other" + * category. + */ + limitPerGroup?: number; + + /** + * Comma-separated list of locations (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; + + /** + * Array of L3/4 attack types. + */ + protocol?: Array<'UDP' | 'TCP' | 'ICMP' | 'GRE'>; +} + export declare namespace Summary { export { type SummaryBitrateResponse as SummaryBitrateResponse, type SummaryDurationResponse as SummaryDurationResponse, + type SummaryIndustryResponse as SummaryIndustryResponse, type SummaryIPVersionResponse as SummaryIPVersionResponse, type SummaryProtocolResponse as SummaryProtocolResponse, type SummaryVectorResponse as SummaryVectorResponse, + type SummaryVerticalResponse as SummaryVerticalResponse, type SummaryBitrateParams as SummaryBitrateParams, type SummaryDurationParams as SummaryDurationParams, + type SummaryIndustryParams as SummaryIndustryParams, type SummaryIPVersionParams as SummaryIPVersionParams, type SummaryProtocolParams as SummaryProtocolParams, type SummaryVectorParams as SummaryVectorParams, + type SummaryVerticalParams as SummaryVerticalParams, }; } diff --git a/src/resources/radar/attacks/layer7/index.ts b/src/resources/radar/attacks/layer7/index.ts index 608de979d7..ea12e3b31d 100644 --- a/src/resources/radar/attacks/layer7/index.ts +++ b/src/resources/radar/attacks/layer7/index.ts @@ -5,14 +5,18 @@ export { Summary, type SummaryHTTPMethodResponse, type SummaryHTTPVersionResponse, + type SummaryIndustryResponse, type SummaryIPVersionResponse, type SummaryManagedRulesResponse, type SummaryMitigationProductResponse, + type SummaryVerticalResponse, type SummaryHTTPMethodParams, type SummaryHTTPVersionParams, + type SummaryIndustryParams, type SummaryIPVersionParams, type SummaryManagedRulesParams, type SummaryMitigationProductParams, + type SummaryVerticalParams, } from './summary'; export { TimeseriesGroups, diff --git a/src/resources/radar/attacks/layer7/layer7.ts b/src/resources/radar/attacks/layer7/layer7.ts index 41d6148321..c2d6fafe2e 100644 --- a/src/resources/radar/attacks/layer7/layer7.ts +++ b/src/resources/radar/attacks/layer7/layer7.ts @@ -12,10 +12,14 @@ import { SummaryHTTPVersionResponse, SummaryIPVersionParams, SummaryIPVersionResponse, + SummaryIndustryParams, + SummaryIndustryResponse, SummaryManagedRulesParams, SummaryManagedRulesResponse, SummaryMitigationProductParams, SummaryMitigationProductResponse, + SummaryVerticalParams, + SummaryVerticalResponse, } from './summary'; import * as TimeseriesGroupsAPI from './timeseries-groups'; import { @@ -290,14 +294,18 @@ export declare namespace Layer7 { Summary as Summary, type SummaryHTTPMethodResponse as SummaryHTTPMethodResponse, type SummaryHTTPVersionResponse as SummaryHTTPVersionResponse, + type SummaryIndustryResponse as SummaryIndustryResponse, type SummaryIPVersionResponse as SummaryIPVersionResponse, type SummaryManagedRulesResponse as SummaryManagedRulesResponse, type SummaryMitigationProductResponse as SummaryMitigationProductResponse, + type SummaryVerticalResponse as SummaryVerticalResponse, type SummaryHTTPMethodParams as SummaryHTTPMethodParams, type SummaryHTTPVersionParams as SummaryHTTPVersionParams, + type SummaryIndustryParams as SummaryIndustryParams, type SummaryIPVersionParams as SummaryIPVersionParams, type SummaryManagedRulesParams as SummaryManagedRulesParams, type SummaryMitigationProductParams as SummaryMitigationProductParams, + type SummaryVerticalParams as SummaryVerticalParams, }; export { diff --git a/src/resources/radar/attacks/layer7/summary.ts b/src/resources/radar/attacks/layer7/summary.ts index 5ce66a4b45..5d6a8bc150 100644 --- a/src/resources/radar/attacks/layer7/summary.ts +++ b/src/resources/radar/attacks/layer7/summary.ts @@ -51,6 +51,28 @@ export class Summary extends APIResource { )._thenUnwrap((obj) => obj.result); } + /** + * Retrieves the distribution of layer 7 attacks by targeted industry. + */ + industry( + query?: SummaryIndustryParams, + options?: Core.RequestOptions, + ): Core.APIPromise; + industry(options?: Core.RequestOptions): Core.APIPromise; + industry( + query: SummaryIndustryParams | Core.RequestOptions = {}, + options?: Core.RequestOptions, + ): Core.APIPromise { + if (isRequestOptions(query)) { + return this.industry({}, query); + } + return ( + this._client.get('/radar/attacks/layer7/summary/industry', { query, ...options }) as Core.APIPromise<{ + result: SummaryIndustryResponse; + }> + )._thenUnwrap((obj) => obj.result); + } + /** * Retrieves the distribution of layer 7 attacks by IP version. */ @@ -118,6 +140,28 @@ export class Summary extends APIResource { }) as Core.APIPromise<{ result: SummaryMitigationProductResponse }> )._thenUnwrap((obj) => obj.result); } + + /** + * Retrieves the distribution of layer 7 attacks by targeted vertical. + */ + vertical( + query?: SummaryVerticalParams, + options?: Core.RequestOptions, + ): Core.APIPromise; + vertical(options?: Core.RequestOptions): Core.APIPromise; + vertical( + query: SummaryVerticalParams | Core.RequestOptions = {}, + options?: Core.RequestOptions, + ): Core.APIPromise { + if (isRequestOptions(query)) { + return this.vertical({}, query); + } + return ( + this._client.get('/radar/attacks/layer7/summary/vertical', { query, ...options }) as Core.APIPromise<{ + result: SummaryVerticalResponse; + }> + )._thenUnwrap((obj) => obj.result); + } } export interface SummaryHTTPMethodResponse { @@ -240,6 +284,62 @@ export namespace SummaryHTTPVersionResponse { } } +export interface SummaryIndustryResponse { + meta: SummaryIndustryResponse.Meta; + + summary_0: Record; +} + +export namespace SummaryIndustryResponse { + export interface Meta { + dateRange: Array; + + lastUpdated: string; + + normalization: string; + + confidenceInfo?: Meta.ConfidenceInfo; + } + + export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface ConfidenceInfo { + annotations?: Array; + + level?: number; + } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } +} + export interface SummaryIPVersionResponse { meta: SummaryIPVersionResponse.Meta; @@ -414,6 +514,62 @@ export namespace SummaryMitigationProductResponse { } } +export interface SummaryVerticalResponse { + meta: SummaryVerticalResponse.Meta; + + summary_0: Record; +} + +export namespace SummaryVerticalResponse { + export interface Meta { + dateRange: Array; + + lastUpdated: string; + + normalization: string; + + confidenceInfo?: Meta.ConfidenceInfo; + } + + export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface ConfidenceInfo { + annotations?: Array; + + level?: number; + } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } +} + export interface SummaryHTTPMethodParams { /** * Comma-separated list of Autonomous System Numbers (ASNs). Prefix with `-` to @@ -615,6 +771,139 @@ export interface SummaryHTTPVersionParams { name?: Array; } +export interface SummaryIndustryParams { + /** + * Comma-separated list of Autonomous System Numbers (ASNs). Prefix with `-` to + * exclude ASNs from results. For example, `-174, 3356` excludes results from + * AS174, but includes results from AS3356. + */ + asn?: Array; + + /** + * Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to + * exclude continents from results. For example, `-EU,NA` excludes results from EU, + * but includes results from NA. + */ + continent?: Array; + + /** + * End of the date range (inclusive). + */ + dateEnd?: Array; + + /** + * Filters results by the specified 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'; + + /** + * Filters results by HTTP method. + */ + httpMethod?: Array< + | 'GET' + | 'POST' + | 'DELETE' + | 'PUT' + | 'HEAD' + | 'PURGE' + | 'OPTIONS' + | 'PROPFIND' + | 'MKCOL' + | 'PATCH' + | 'ACL' + | 'BCOPY' + | 'BDELETE' + | 'BMOVE' + | 'BPROPFIND' + | 'BPROPPATCH' + | 'CHECKIN' + | 'CHECKOUT' + | 'CONNECT' + | 'COPY' + | 'LABEL' + | 'LOCK' + | 'MERGE' + | 'MKACTIVITY' + | 'MKWORKSPACE' + | 'MOVE' + | 'NOTIFY' + | 'ORDERPATCH' + | 'POLL' + | 'PROPPATCH' + | 'REPORT' + | 'SEARCH' + | 'SUBSCRIBE' + | 'TRACE' + | 'UNCHECKOUT' + | 'UNLOCK' + | 'UNSUBSCRIBE' + | 'UPDATE' + | 'VERSIONCONTROL' + | 'BASELINECONTROL' + | 'XMSENUMATTS' + | 'RPC_OUT_DATA' + | 'RPC_IN_DATA' + | 'JSON' + | 'COOK' + | 'TRACK' + >; + + /** + * Filters results by HTTP version. + */ + httpVersion?: Array<'HTTPv1' | 'HTTPv2' | 'HTTPv3'>; + + /** + * Filters results by IP version (Ipv4 vs. IPv6). + */ + ipVersion?: Array<'IPv4' | 'IPv6'>; + + /** + * Limits the number of objects per group to the top items within the specified + * time range. If there are more items than the limit, the response will include + * the count of items, with any remaining items grouped together under an "other" + * category. + */ + limitPerGroup?: number; + + /** + * Comma-separated list of locations (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 L7 mitigation products. + */ + mitigationProduct?: Array< + | 'DDOS' + | 'WAF' + | 'BOT_MANAGEMENT' + | 'ACCESS_RULES' + | 'IP_REPUTATION' + | 'API_SHIELD' + | 'DATA_LOSS_PREVENTION' + >; + + /** + * Array of names used to label the series in the response. + */ + name?: Array; +} + export interface SummaryIPVersionParams { /** * Comma-separated list of Autonomous System Numbers (ASNs). Prefix with `-` to @@ -988,17 +1277,154 @@ export interface SummaryMitigationProductParams { name?: Array; } +export interface SummaryVerticalParams { + /** + * Comma-separated list of Autonomous System Numbers (ASNs). Prefix with `-` to + * exclude ASNs from results. For example, `-174, 3356` excludes results from + * AS174, but includes results from AS3356. + */ + asn?: Array; + + /** + * Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to + * exclude continents from results. For example, `-EU,NA` excludes results from EU, + * but includes results from NA. + */ + continent?: Array; + + /** + * End of the date range (inclusive). + */ + dateEnd?: Array; + + /** + * Filters results by the specified 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'; + + /** + * Filters results by HTTP method. + */ + httpMethod?: Array< + | 'GET' + | 'POST' + | 'DELETE' + | 'PUT' + | 'HEAD' + | 'PURGE' + | 'OPTIONS' + | 'PROPFIND' + | 'MKCOL' + | 'PATCH' + | 'ACL' + | 'BCOPY' + | 'BDELETE' + | 'BMOVE' + | 'BPROPFIND' + | 'BPROPPATCH' + | 'CHECKIN' + | 'CHECKOUT' + | 'CONNECT' + | 'COPY' + | 'LABEL' + | 'LOCK' + | 'MERGE' + | 'MKACTIVITY' + | 'MKWORKSPACE' + | 'MOVE' + | 'NOTIFY' + | 'ORDERPATCH' + | 'POLL' + | 'PROPPATCH' + | 'REPORT' + | 'SEARCH' + | 'SUBSCRIBE' + | 'TRACE' + | 'UNCHECKOUT' + | 'UNLOCK' + | 'UNSUBSCRIBE' + | 'UPDATE' + | 'VERSIONCONTROL' + | 'BASELINECONTROL' + | 'XMSENUMATTS' + | 'RPC_OUT_DATA' + | 'RPC_IN_DATA' + | 'JSON' + | 'COOK' + | 'TRACK' + >; + + /** + * Filters results by HTTP version. + */ + httpVersion?: Array<'HTTPv1' | 'HTTPv2' | 'HTTPv3'>; + + /** + * Filters results by IP version (Ipv4 vs. IPv6). + */ + ipVersion?: Array<'IPv4' | 'IPv6'>; + + /** + * Limits the number of objects per group to the top items within the specified + * time range. If there are more items than the limit, the response will include + * the count of items, with any remaining items grouped together under an "other" + * category. + */ + limitPerGroup?: number; + + /** + * Comma-separated list of locations (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 L7 mitigation products. + */ + mitigationProduct?: Array< + | 'DDOS' + | 'WAF' + | 'BOT_MANAGEMENT' + | 'ACCESS_RULES' + | 'IP_REPUTATION' + | 'API_SHIELD' + | 'DATA_LOSS_PREVENTION' + >; + + /** + * Array of names used to label the series in the response. + */ + name?: Array; +} + export declare namespace Summary { export { type SummaryHTTPMethodResponse as SummaryHTTPMethodResponse, type SummaryHTTPVersionResponse as SummaryHTTPVersionResponse, + type SummaryIndustryResponse as SummaryIndustryResponse, type SummaryIPVersionResponse as SummaryIPVersionResponse, type SummaryManagedRulesResponse as SummaryManagedRulesResponse, type SummaryMitigationProductResponse as SummaryMitigationProductResponse, + type SummaryVerticalResponse as SummaryVerticalResponse, type SummaryHTTPMethodParams as SummaryHTTPMethodParams, type SummaryHTTPVersionParams as SummaryHTTPVersionParams, + type SummaryIndustryParams as SummaryIndustryParams, type SummaryIPVersionParams as SummaryIPVersionParams, type SummaryManagedRulesParams as SummaryManagedRulesParams, type SummaryMitigationProductParams as SummaryMitigationProductParams, + type SummaryVerticalParams as SummaryVerticalParams, }; } diff --git a/src/resources/radar/bgp/bgp.ts b/src/resources/radar/bgp/bgp.ts index 419360ce9d..e6cc7e4b1d 100644 --- a/src/resources/radar/bgp/bgp.ts +++ b/src/resources/radar/bgp/bgp.ts @@ -13,6 +13,8 @@ import { RouteMoasResponse, RoutePfx2asParams, RoutePfx2asResponse, + RouteRealtimeParams, + RouteRealtimeResponse, RouteStatsParams, RouteStatsResponse, Routes, @@ -197,10 +199,12 @@ export declare namespace BGP { type RouteAsesResponse as RouteAsesResponse, type RouteMoasResponse as RouteMoasResponse, type RoutePfx2asResponse as RoutePfx2asResponse, + type RouteRealtimeResponse as RouteRealtimeResponse, type RouteStatsResponse as RouteStatsResponse, type RouteAsesParams as RouteAsesParams, type RouteMoasParams as RouteMoasParams, type RoutePfx2asParams as RoutePfx2asParams, + type RouteRealtimeParams as RouteRealtimeParams, type RouteStatsParams as RouteStatsParams, }; diff --git a/src/resources/radar/bgp/index.ts b/src/resources/radar/bgp/index.ts index 812c29b78a..b5be744128 100644 --- a/src/resources/radar/bgp/index.ts +++ b/src/resources/radar/bgp/index.ts @@ -9,10 +9,12 @@ export { type RouteAsesResponse, type RouteMoasResponse, type RoutePfx2asResponse, + type RouteRealtimeResponse, type RouteStatsResponse, type RouteAsesParams, type RouteMoasParams, type RoutePfx2asParams, + type RouteRealtimeParams, type RouteStatsParams, } from './routes'; export { Top, type TopPrefixesResponse, type TopPrefixesParams } from './top/index'; diff --git a/src/resources/radar/bgp/routes.ts b/src/resources/radar/bgp/routes.ts index ec4e2df57b..3ba391c4fe 100644 --- a/src/resources/radar/bgp/routes.ts +++ b/src/resources/radar/bgp/routes.ts @@ -62,6 +62,29 @@ export class Routes extends APIResource { )._thenUnwrap((obj) => obj.result); } + /** + * Retrieves realtime routes for prefixes using public realtime data collectors + * (RouteViews and RIPE RIS). + */ + realtime( + query?: RouteRealtimeParams, + options?: Core.RequestOptions, + ): Core.APIPromise; + realtime(options?: Core.RequestOptions): Core.APIPromise; + realtime( + query: RouteRealtimeParams | Core.RequestOptions = {}, + options?: Core.RequestOptions, + ): Core.APIPromise { + if (isRequestOptions(query)) { + return this.realtime({}, query); + } + return ( + this._client.get('/radar/bgp/routes/realtime', { query, ...options }) as Core.APIPromise<{ + result: RouteRealtimeResponse; + }> + )._thenUnwrap((obj) => obj.result); + } + /** * Retrieves the BGP routing table stats. */ @@ -214,6 +237,69 @@ export namespace RoutePfx2asResponse { } } +export interface RouteRealtimeResponse { + meta: RouteRealtimeResponse.Meta; + + routes: Array; +} + +export namespace RouteRealtimeResponse { + export interface Meta { + collectors: Array; + } + + export namespace Meta { + export interface Collector { + /** + * public route collector ID + */ + collector: string; + + /** + * latest realtime stream timestamp for this collector + */ + latest_realtime_ts: string; + + /** + * latest RIB dump MRT file timestamp for this collector + */ + latest_rib_ts: string; + + /** + * latest BGP updates MRT file timestamp for this collector + */ + latest_updates_ts: string; + } + } + + export interface Route { + /** + * AS-level path for this route, from collector to origin + */ + as_path: Array; + + /** + * public collector ID for this route + */ + collector: string; + + /** + * BGP community values + */ + communities: Array; + + /** + * IP prefix of this query + */ + prefix: string; + + /** + * latest timestamp of change for this route + */ + timestamp: string; + } +} + export interface RouteStatsResponse { meta: RouteStatsResponse.Meta; @@ -345,6 +431,18 @@ export interface RoutePfx2asParams { rpkiStatus?: 'VALID' | 'INVALID' | 'UNKNOWN'; } +export interface RouteRealtimeParams { + /** + * Format in which results will be returned. + */ + format?: 'JSON' | 'CSV'; + + /** + * Network prefix, IPv4 or IPv6. + */ + prefix?: string; +} + export interface RouteStatsParams { /** * Single Autonomous System Number (ASN) as integer. @@ -367,10 +465,12 @@ export declare namespace Routes { type RouteAsesResponse as RouteAsesResponse, type RouteMoasResponse as RouteMoasResponse, type RoutePfx2asResponse as RoutePfx2asResponse, + type RouteRealtimeResponse as RouteRealtimeResponse, type RouteStatsResponse as RouteStatsResponse, type RouteAsesParams as RouteAsesParams, type RouteMoasParams as RouteMoasParams, type RoutePfx2asParams as RoutePfx2asParams, + type RouteRealtimeParams as RouteRealtimeParams, type RouteStatsParams as RouteStatsParams, }; } diff --git a/tests/api-resources/radar/ai/to-markdown.test.ts b/tests/api-resources/radar/ai/to-markdown.test.ts new file mode 100644 index 0000000000..41bf313aec --- /dev/null +++ b/tests/api-resources/radar/ai/to-markdown.test.ts @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import Cloudflare, { toFile } from 'cloudflare'; +import { Response } from 'node-fetch'; + +const client = new Cloudflare({ + apiKey: '144c9defac04969c7bfad8efaa8ea194', + apiEmail: 'user@example.com', + baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', +}); + +describe('resource toMarkdown', () => { + test('create: only required params', async () => { + const responsePromise = client.radar.ai.toMarkdown.create({ + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('create: required and optional params', async () => { + const response = await client.radar.ai.toMarkdown.create({ + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + body: await toFile(Buffer.from('# my file contents'), 'README.md'), + }); + }); +}); diff --git a/tests/api-resources/radar/attacks/layer3/summary.test.ts b/tests/api-resources/radar/attacks/layer3/summary.test.ts index 08a2264e12..44e9aeec91 100644 --- a/tests/api-resources/radar/attacks/layer3/summary.test.ts +++ b/tests/api-resources/radar/attacks/layer3/summary.test.ts @@ -88,6 +88,46 @@ describe('resource summary', () => { ).rejects.toThrow(Cloudflare.NotFoundError); }); + test('industry', async () => { + const responsePromise = client.radar.attacks.layer3.summary.industry(); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('industry: request options instead of params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.radar.attacks.layer3.summary.industry({ path: '/_stainless_unknown_path' }), + ).rejects.toThrow(Cloudflare.NotFoundError); + }); + + test('industry: request options and params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.radar.attacks.layer3.summary.industry( + { + continent: ['string'], + dateEnd: ['2019-12-27T18:11:19.117Z'], + dateRange: ['7d'], + dateStart: ['2019-12-27T18:11:19.117Z'], + direction: 'ORIGIN', + format: 'JSON', + ipVersion: ['IPv4'], + limitPerGroup: 10, + location: ['string'], + name: ['main_series'], + protocol: ['UDP'], + }, + { path: '/_stainless_unknown_path' }, + ), + ).rejects.toThrow(Cloudflare.NotFoundError); + }); + test('ipVersion', async () => { const responsePromise = client.radar.attacks.layer3.summary.ipVersion(); const rawResponse = await responsePromise.asResponse(); @@ -203,4 +243,44 @@ describe('resource summary', () => { ), ).rejects.toThrow(Cloudflare.NotFoundError); }); + + test('vertical', async () => { + const responsePromise = client.radar.attacks.layer3.summary.vertical(); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('vertical: request options instead of params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.radar.attacks.layer3.summary.vertical({ path: '/_stainless_unknown_path' }), + ).rejects.toThrow(Cloudflare.NotFoundError); + }); + + test('vertical: request options and params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.radar.attacks.layer3.summary.vertical( + { + continent: ['string'], + dateEnd: ['2019-12-27T18:11:19.117Z'], + dateRange: ['7d'], + dateStart: ['2019-12-27T18:11:19.117Z'], + direction: 'ORIGIN', + format: 'JSON', + ipVersion: ['IPv4'], + limitPerGroup: 10, + location: ['string'], + name: ['main_series'], + protocol: ['UDP'], + }, + { path: '/_stainless_unknown_path' }, + ), + ).rejects.toThrow(Cloudflare.NotFoundError); + }); }); diff --git a/tests/api-resources/radar/attacks/layer7/summary.test.ts b/tests/api-resources/radar/attacks/layer7/summary.test.ts index 79c0c53a68..422da3397b 100644 --- a/tests/api-resources/radar/attacks/layer7/summary.test.ts +++ b/tests/api-resources/radar/attacks/layer7/summary.test.ts @@ -91,6 +91,48 @@ describe('resource summary', () => { ).rejects.toThrow(Cloudflare.NotFoundError); }); + test('industry', async () => { + const responsePromise = client.radar.attacks.layer7.summary.industry(); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('industry: request options instead of params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.radar.attacks.layer7.summary.industry({ path: '/_stainless_unknown_path' }), + ).rejects.toThrow(Cloudflare.NotFoundError); + }); + + test('industry: request options and params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.radar.attacks.layer7.summary.industry( + { + asn: ['string'], + continent: ['string'], + dateEnd: ['2019-12-27T18:11:19.117Z'], + dateRange: ['7d'], + dateStart: ['2019-12-27T18:11:19.117Z'], + format: 'JSON', + httpMethod: ['GET'], + httpVersion: ['HTTPv1'], + ipVersion: ['IPv4'], + limitPerGroup: 10, + location: ['string'], + mitigationProduct: ['DDOS'], + name: ['main_series'], + }, + { path: '/_stainless_unknown_path' }, + ), + ).rejects.toThrow(Cloudflare.NotFoundError); + }); + test('ipVersion', async () => { const responsePromise = client.radar.attacks.layer7.summary.ipVersion(); const rawResponse = await responsePromise.asResponse(); @@ -213,4 +255,46 @@ describe('resource summary', () => { ), ).rejects.toThrow(Cloudflare.NotFoundError); }); + + test('vertical', async () => { + const responsePromise = client.radar.attacks.layer7.summary.vertical(); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('vertical: request options instead of params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.radar.attacks.layer7.summary.vertical({ path: '/_stainless_unknown_path' }), + ).rejects.toThrow(Cloudflare.NotFoundError); + }); + + test('vertical: request options and params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.radar.attacks.layer7.summary.vertical( + { + asn: ['string'], + continent: ['string'], + dateEnd: ['2019-12-27T18:11:19.117Z'], + dateRange: ['7d'], + dateStart: ['2019-12-27T18:11:19.117Z'], + format: 'JSON', + httpMethod: ['GET'], + httpVersion: ['HTTPv1'], + ipVersion: ['IPv4'], + limitPerGroup: 10, + location: ['string'], + mitigationProduct: ['DDOS'], + name: ['main_series'], + }, + { path: '/_stainless_unknown_path' }, + ), + ).rejects.toThrow(Cloudflare.NotFoundError); + }); }); diff --git a/tests/api-resources/radar/bgp/routes.test.ts b/tests/api-resources/radar/bgp/routes.test.ts index 22c185d1bf..0775e1efe0 100644 --- a/tests/api-resources/radar/bgp/routes.test.ts +++ b/tests/api-resources/radar/bgp/routes.test.ts @@ -94,6 +94,34 @@ describe('resource routes', () => { ).rejects.toThrow(Cloudflare.NotFoundError); }); + test('realtime', async () => { + const responsePromise = client.radar.bgp.routes.realtime(); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('realtime: request options instead of params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect(client.radar.bgp.routes.realtime({ path: '/_stainless_unknown_path' })).rejects.toThrow( + Cloudflare.NotFoundError, + ); + }); + + test('realtime: request options and params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.radar.bgp.routes.realtime( + { format: 'JSON', prefix: '1.1.1.0/24' }, + { path: '/_stainless_unknown_path' }, + ), + ).rejects.toThrow(Cloudflare.NotFoundError); + }); + test('stats', async () => { const responsePromise = client.radar.bgp.routes.stats(); const rawResponse = await responsePromise.asResponse(); From dfcb62e87f6f454b9a62a9f368b3cc27705b2c4f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 06:09:03 +0000 Subject: [PATCH 081/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 955f4bbf35..31378a023f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1660 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6c15a36391095aacaddd2ccbee8f3f53ffc4217b13a54b9eae9476f004b870b7.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ba269a62194f81af008c8d67cda9ad2714a16b362d4f9cc82ebb37d0b7fc6c8c.yml From 21b4cd82504485c6ff852b3e086167fe2e85dfb1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 11:42:56 +0000 Subject: [PATCH 082/461] feat(api): api update (#2551) --- .stats.yml | 2 +- src/resources/kv/namespaces/namespaces.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 31378a023f..7e161ff492 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1660 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ba269a62194f81af008c8d67cda9ad2714a16b362d4f9cc82ebb37d0b7fc6c8c.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-80bbd2b1fa109e81d427d3b8e1dc2366596e788a7ae4fd7e05637ffd662834e7.yml diff --git a/src/resources/kv/namespaces/namespaces.ts b/src/resources/kv/namespaces/namespaces.ts index 0f4eb36444..6dfca48e86 100644 --- a/src/resources/kv/namespaces/namespaces.ts +++ b/src/resources/kv/namespaces/namespaces.ts @@ -160,6 +160,11 @@ export interface Namespace { */ title: string; + /** + * True if new beta namespace, with additional preview features. + */ + beta?: boolean; + /** * True if keys written on the URL will be URL-decoded before storing. For example, * if set to "true", a key written on the URL as "%3F" will be stored as "?". From 8342731abf2fc94ff41ffab313a842e22b8b4cdd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 14:42:56 +0000 Subject: [PATCH 083/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 7e161ff492..27b0459835 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1660 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-80bbd2b1fa109e81d427d3b8e1dc2366596e788a7ae4fd7e05637ffd662834e7.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-175317554e35d1dd9f303317efd0e28661936078248bcdec6b64aa83ab37a0d1.yml From 4e3aa22a22b40391dea45e4e40720fb393517973 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 14:49:42 +0000 Subject: [PATCH 084/461] feat(api): api update (#2552) --- .stats.yml | 4 +- api.md | 10 - src/resources/kv/namespaces/analytics.ts | 394 +----------------- src/resources/kv/namespaces/index.ts | 8 +- src/resources/kv/namespaces/namespaces.ts | 10 +- .../kv/namespaces/analytics.test.ts | 68 --- 6 files changed, 6 insertions(+), 488 deletions(-) delete mode 100644 tests/api-resources/kv/namespaces/analytics.test.ts diff --git a/.stats.yml b/.stats.yml index 27b0459835..a84b265137 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ -configured_endpoints: 1660 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-175317554e35d1dd9f303317efd0e28661936078248bcdec6b64aa83ab37a0d1.yml +configured_endpoints: 1658 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-27adaef614fe341136b91bcfb30e13b3097fe43f1bacf9c56e0137b1cf7a7ffe.yml diff --git a/api.md b/api.md index 990953ffee..24aab18a23 100644 --- a/api.md +++ b/api.md @@ -2226,16 +2226,6 @@ Methods: ### Analytics -Types: - -- Components -- Schema - -Methods: - -- client.kv.namespaces.analytics.list({ ...params }) -> Schema -- client.kv.namespaces.analytics.stored({ ...params }) -> Components - ### Keys Types: diff --git a/src/resources/kv/namespaces/analytics.ts b/src/resources/kv/namespaces/analytics.ts index d996fc4ccb..afe4cb0923 100644 --- a/src/resources/kv/namespaces/analytics.ts +++ b/src/resources/kv/namespaces/analytics.ts @@ -1,397 +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 Analytics extends APIResource { - /** - * Retrieves Workers KV request metrics for the given account. - */ - list(params: AnalyticsListParams, options?: Core.RequestOptions): Core.APIPromise { - const { account_id, ...query } = params; - return ( - this._client.get(`/accounts/${account_id}/storage/analytics`, { - query, - ...options, - }) as Core.APIPromise<{ result: Schema }> - )._thenUnwrap((obj) => obj.result); - } - - /** - * Retrieves Workers KV stored data metrics for the given account. - */ - stored(params: AnalyticsStoredParams, options?: Core.RequestOptions): Core.APIPromise { - const { account_id, ...query } = params; - return ( - this._client.get(`/accounts/${account_id}/storage/analytics/stored`, { - query, - ...options, - }) as Core.APIPromise<{ result: Components }> - )._thenUnwrap((obj) => obj.result); - } -} - -/** - * Metrics on Workers KV requests. - */ -export interface Components { - data: Array | null; - - /** - * Number of seconds between current time and last processed event, i.e. how many - * seconds of data could be missing. - */ - data_lag: number; - - /** - * Maximum results for each metric. - */ - max: Record; - - /** - * Minimum results for each metric. - */ - min: Record; - - /** - * For specifying result metrics. - */ - query: Components.Query; - - /** - * Total number of rows in the result. - */ - rows: number; - - /** - * Total results for metrics across all data. - */ - totals: Record; - - /** - * Time interval buckets by beginning and ending - */ - time_intervals?: Array>; -} - -export namespace Components { - export interface Data { - /** - * List of metrics returned by the query. - */ - metrics: Array>; - - dimensions?: Array; - } - - /** - * For specifying result metrics. - */ - export interface Query { - /** - * Can be used to break down the data by given attributes. - */ - dimensions?: Array; - - /** - * Used to filter rows by one or more dimensions. Filters can be combined using OR - * and AND boolean logic. AND takes precedence over OR in all the expressions. The - * OR operator is defined using a comma (,) or OR keyword surrounded by whitespace. - * The AND operator is defined using a semicolon (;) or AND keyword surrounded by - * whitespace. Note that the semicolon is a reserved character in URLs (rfc1738) - * and needs to be percent-encoded as %3B. Comparison options are: - * - * | Operator | Name | URL Encoded | - * | -------- | ------------------------ | ----------- | - * | == | Equals | %3D%3D | - * | != | Does not equals | !%3D | - * | > | Greater Than | %3E | - * | < | Less Than | %3C | - * | >= | Greater than or equal to | %3E%3D | - * | <= | Less than or equal to | %3C%3D . | - */ - filters?: string; - - /** - * Limit number of returned metrics. - */ - limit?: number; - - /** - * One or more metrics to compute. - */ - metrics?: Array; - - /** - * Start of time interval to query, defaults to 6 hours before request received. - */ - since?: string; - - /** - * Array of dimensions or metrics to sort by, each dimension/metric may be prefixed - * by - (descending) or + (ascending). - */ - sort?: Array; - - /** - * End of time interval to query, defaults to current time. - */ - until?: string; - } -} - -/** - * Metrics on Workers KV requests. - */ -export interface Schema { - data: Array | null; - - /** - * Number of seconds between current time and last processed event, i.e. how many - * seconds of data could be missing. - */ - data_lag: number; - - /** - * Maximum results for each metric. - */ - max: Record; - - /** - * Minimum results for each metric. - */ - min: Record; - - /** - * For specifying result metrics. - */ - query: Schema.Query; - - /** - * Total number of rows in the result. - */ - rows: number; - - /** - * Total results for metrics across all data. - */ - totals: Record; - - /** - * Time interval buckets by beginning and ending - */ - time_intervals?: Array>; -} - -export namespace Schema { - export interface Data { - /** - * List of metrics returned by the query. - */ - metrics: Array>; - - dimensions?: Array; - } - - /** - * For specifying result metrics. - */ - export interface Query { - /** - * Can be used to break down the data by given attributes. - */ - dimensions?: Array; - - /** - * Used to filter rows by one or more dimensions. Filters can be combined using OR - * and AND boolean logic. AND takes precedence over OR in all the expressions. The - * OR operator is defined using a comma (,) or OR keyword surrounded by whitespace. - * The AND operator is defined using a semicolon (;) or AND keyword surrounded by - * whitespace. Note that the semicolon is a reserved character in URLs (rfc1738) - * and needs to be percent-encoded as %3B. Comparison options are: - * - * | Operator | Name | URL Encoded | - * | -------- | ------------------------ | ----------- | - * | == | Equals | %3D%3D | - * | != | Does not equals | !%3D | - * | > | Greater Than | %3E | - * | < | Less Than | %3C | - * | >= | Greater than or equal to | %3E%3D | - * | <= | Less than or equal to | %3C%3D . | - */ - filters?: string; - - /** - * Limit number of returned metrics. - */ - limit?: number; - - /** - * One or more metrics to compute. - */ - metrics?: Array; - - /** - * Start of time interval to query, defaults to 6 hours before request received. - */ - since?: string; - - /** - * Array of dimensions or metrics to sort by, each dimension/metric may be prefixed - * by - (descending) or + (ascending). - */ - sort?: Array; - - /** - * End of time interval to query, defaults to current time. - */ - until?: string; - } -} - -export interface AnalyticsListParams { - /** - * Path param: Identifier - */ - account_id: string; - - /** - * Query param: For specifying result metrics. - */ - query?: AnalyticsListParams.Query; -} - -export namespace AnalyticsListParams { - /** - * For specifying result metrics. - */ - export interface Query { - /** - * Can be used to break down the data by given attributes. - */ - dimensions?: Array<'accountId' | 'responseCode' | 'requestType'>; - - /** - * Used to filter rows by one or more dimensions. Filters can be combined using OR - * and AND boolean logic. AND takes precedence over OR in all the expressions. The - * OR operator is defined using a comma (,) or OR keyword surrounded by whitespace. - * The AND operator is defined using a semicolon (;) or AND keyword surrounded by - * whitespace. Note that the semicolon is a reserved character in URLs (rfc1738) - * and needs to be percent-encoded as %3B. Comparison options are: - * - * | Operator | Name | URL Encoded | - * | -------- | ------------------------ | ----------- | - * | == | Equals | %3D%3D | - * | != | Does not equals | !%3D | - * | > | Greater Than | %3E | - * | < | Less Than | %3C | - * | >= | Greater than or equal to | %3E%3D | - * | <= | Less than or equal to | %3C%3D . | - */ - filters?: string; - - /** - * Limit number of returned metrics. - */ - limit?: number; - - /** - * One or more metrics to compute. - */ - metrics?: Array<'requests' | 'writeKiB' | 'readKiB'>; - - /** - * Start of time interval to query, defaults to 6 hours before request received. - */ - since?: string; - - /** - * Array of dimensions or metrics to sort by, each dimension/metric may be prefixed - * by - (descending) or + (ascending). - */ - sort?: Array; - - /** - * End of time interval to query, defaults to current time. - */ - until?: string; - } -} - -export interface AnalyticsStoredParams { - /** - * Path param: Identifier - */ - account_id: string; - - /** - * Query param: For specifying result metrics. - */ - query?: AnalyticsStoredParams.Query; -} - -export namespace AnalyticsStoredParams { - /** - * For specifying result metrics. - */ - export interface Query { - /** - * Can be used to break down the data by given attributes. - */ - dimensions?: Array<'namespaceId'>; - - /** - * Used to filter rows by one or more dimensions. Filters can be combined using OR - * and AND boolean logic. AND takes precedence over OR in all the expressions. The - * OR operator is defined using a comma (,) or OR keyword surrounded by whitespace. - * The AND operator is defined using a semicolon (;) or AND keyword surrounded by - * whitespace. Note that the semicolon is a reserved character in URLs (rfc1738) - * and needs to be percent-encoded as %3B. Comparison options are: - * - * | Operator | Name | URL Encoded | - * | -------- | ------------------------ | ----------- | - * | == | Equals | %3D%3D | - * | != | Does not equals | !%3D | - * | > | Greater Than | %3E | - * | < | Less Than | %3C | - * | >= | Greater than or equal to | %3E%3D | - * | <= | Less than or equal to | %3C%3D . | - */ - filters?: string; - - /** - * Limit number of returned metrics. - */ - limit?: number; - - /** - * One or more metrics to compute. - */ - metrics?: Array<'storedBytes' | 'storedKeys'>; - - /** - * Start of time interval to query, defaults to 6 hours before request received. - */ - since?: string; - - /** - * Array of dimensions or metrics to sort by, each dimension/metric may be prefixed - * by - (descending) or + (ascending). - */ - sort?: Array; - - /** - * End of time interval to query, defaults to current time. - */ - until?: string; - } -} - -export declare namespace Analytics { - export { - type Components as Components, - type Schema as Schema, - type AnalyticsListParams as AnalyticsListParams, - type AnalyticsStoredParams as AnalyticsStoredParams, - }; -} +export class Analytics extends APIResource {} diff --git a/src/resources/kv/namespaces/index.ts b/src/resources/kv/namespaces/index.ts index 1dc1c6409a..07ee3826d6 100644 --- a/src/resources/kv/namespaces/index.ts +++ b/src/resources/kv/namespaces/index.ts @@ -1,12 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -export { - Analytics, - type Components, - type Schema, - type AnalyticsListParams, - type AnalyticsStoredParams, -} from './analytics'; +export { Analytics } from './analytics'; export { KeysCursorLimitPagination, Keys, type Key, type KeyListParams } from './keys'; export { Metadata, type MetadataGetResponse, type MetadataGetParams } from './metadata'; export { diff --git a/src/resources/kv/namespaces/namespaces.ts b/src/resources/kv/namespaces/namespaces.ts index 6dfca48e86..5298aee903 100644 --- a/src/resources/kv/namespaces/namespaces.ts +++ b/src/resources/kv/namespaces/namespaces.ts @@ -3,7 +3,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; import * as AnalyticsAPI from './analytics'; -import { Analytics, AnalyticsListParams, AnalyticsStoredParams, Components, Schema } from './analytics'; +import { Analytics } from './analytics'; import * as KeysAPI from './keys'; import { Key, KeyListParams, Keys, KeysCursorLimitPagination } from './keys'; import * as MetadataAPI from './metadata'; @@ -342,13 +342,7 @@ export declare namespace Namespaces { type NamespaceGetParams as NamespaceGetParams, }; - export { - Analytics as Analytics, - type Components as Components, - type Schema as Schema, - type AnalyticsListParams as AnalyticsListParams, - type AnalyticsStoredParams as AnalyticsStoredParams, - }; + export { Analytics as Analytics }; export { Keys as Keys, diff --git a/tests/api-resources/kv/namespaces/analytics.test.ts b/tests/api-resources/kv/namespaces/analytics.test.ts deleted file mode 100644 index e949c584ce..0000000000 --- a/tests/api-resources/kv/namespaces/analytics.test.ts +++ /dev/null @@ -1,68 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const client = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource analytics', () => { - test('list: only required params', async () => { - const responsePromise = client.kv.namespaces.analytics.list({ - account_id: '023e105f4ecef8ad9ca31a8372d0c353', - }); - const rawResponse = await responsePromise.asResponse(); - expect(rawResponse).toBeInstanceOf(Response); - const response = await responsePromise; - expect(response).not.toBeInstanceOf(Response); - const dataAndResponse = await responsePromise.withResponse(); - expect(dataAndResponse.data).toBe(response); - expect(dataAndResponse.response).toBe(rawResponse); - }); - - test('list: required and optional params', async () => { - const response = await client.kv.namespaces.analytics.list({ - account_id: '023e105f4ecef8ad9ca31a8372d0c353', - query: { - dimensions: ['accountId'], - filters: 'requestType==read AND responseCode!=200', - limit: 0, - metrics: ['requests'], - since: '2019-01-02T02:20:00Z', - sort: ['+requests', '-responseCode'], - until: '2019-01-02T03:20:00Z', - }, - }); - }); - - test('stored: only required params', async () => { - const responsePromise = client.kv.namespaces.analytics.stored({ - account_id: '023e105f4ecef8ad9ca31a8372d0c353', - }); - const rawResponse = await responsePromise.asResponse(); - expect(rawResponse).toBeInstanceOf(Response); - const response = await responsePromise; - expect(response).not.toBeInstanceOf(Response); - const dataAndResponse = await responsePromise.withResponse(); - expect(dataAndResponse.data).toBe(response); - expect(dataAndResponse.response).toBe(rawResponse); - }); - - test('stored: required and optional params', async () => { - const response = await client.kv.namespaces.analytics.stored({ - account_id: '023e105f4ecef8ad9ca31a8372d0c353', - query: { - dimensions: ['namespaceId'], - filters: 'namespaceId==a4e8cbb7-1b58-4990-925e-e026d40c4c64', - limit: 0, - metrics: ['storedBytes'], - since: '2019-01-02T02:20:00Z', - sort: ['+storedBytes', '-namespaceId'], - until: '2019-01-02T03:20:00Z', - }, - }); - }); -}); From 1ace7838e135f9369a10818452a99167e12e2f93 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 14:56:56 +0000 Subject: [PATCH 085/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index a84b265137..cfd8d971b7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-27adaef614fe341136b91bcfb30e13b3097fe43f1bacf9c56e0137b1cf7a7ffe.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9bd83d8d7da86d325038aadd09da7a0c98468db62d68d3a60c3d9549cb5079a4.yml From 4d7712e5cc4e414c91d5fcb893ff347d5e47fe95 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 15:11:31 +0000 Subject: [PATCH 086/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index cfd8d971b7..99cbc4c544 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9bd83d8d7da86d325038aadd09da7a0c98468db62d68d3a60c3d9549cb5079a4.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ba1b5d514dd30b763180a9f6b8311df9873e962cf5555b796017196dca71c8b5.yml From 8777469ef976840318adad642343fd624d8c5b14 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 16:07:44 +0000 Subject: [PATCH 087/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 99cbc4c544..44bb781c74 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ba1b5d514dd30b763180a9f6b8311df9873e962cf5555b796017196dca71c8b5.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b46199ec5c5860b617ddff25c8ecea1db4dd7296838439ffb5b36c69a26d6cf7.yml From 203962524af687ac362ed5e408fb6e2c5c19aa30 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 16:17:27 +0000 Subject: [PATCH 088/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 44bb781c74..9ecd25a2d6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b46199ec5c5860b617ddff25c8ecea1db4dd7296838439ffb5b36c69a26d6cf7.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b25ce4c9ad7e76a31efba04eacbbc431a759d79be5dd128bd7c700fb280acc18.yml From 3c55358c15bdcdd7ba9fcf326a0c1f300847f424 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 16:26:05 +0000 Subject: [PATCH 089/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 9ecd25a2d6..5657db14db 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b25ce4c9ad7e76a31efba04eacbbc431a759d79be5dd128bd7c700fb280acc18.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d15b284e58e96ad328ff32819945264deab77dbc460bdafcc596cc1c35e01503.yml From 1078024dbe38a38b3e284622890136be9d947d6a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 17:23:40 +0000 Subject: [PATCH 090/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 5657db14db..9833d39c3e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d15b284e58e96ad328ff32819945264deab77dbc460bdafcc596cc1c35e01503.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cfbb789da1a00926b5d8844c1ac722c7de4b5e2becc759e931ac6fbe154a0c9a.yml From ca6ad62e9df93896d74d93bbf4be75f7c9e3052d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 18:33:23 +0000 Subject: [PATCH 091/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 9833d39c3e..2dd7f485c0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cfbb789da1a00926b5d8844c1ac722c7de4b5e2becc759e931ac6fbe154a0c9a.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-044ea05e6fe7e4607a01240097ba31d0046fb9dcd5a277da271b9514a074a990.yml From 2b697dc38cc65253e0e4c8648911a9b90b8e3d3b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 21:44:57 +0000 Subject: [PATCH 092/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 2dd7f485c0..8638d4463e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-044ea05e6fe7e4607a01240097ba31d0046fb9dcd5a277da271b9514a074a990.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4b4ea1d424837739dc867b1e91b85b11befb9e405dc789cf538c7778deccef3b.yml From f7aac9b0745282eb5699beb2bab460f5fdcc92b5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 23:13:30 +0000 Subject: [PATCH 093/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 8638d4463e..34f902325b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4b4ea1d424837739dc867b1e91b85b11befb9e405dc789cf538c7778deccef3b.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1fbaece1066cd4dbb378545fd0a0706d6774df5bd512517c12b1ac373ebc7eef.yml From 433589b75721049cab4a5c4e23a41849b117fdbf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 25 Mar 2025 06:11:43 +0000 Subject: [PATCH 094/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 34f902325b..3ab344d6d1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1fbaece1066cd4dbb378545fd0a0706d6774df5bd512517c12b1ac373ebc7eef.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a5d1366b84a48c1c6611b6627684a98e67c28d03d9005ac94fe7d58bfb59790b.yml From 58c0b43ee3cb98408890aaed559543e6c21ab4fe Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 25 Mar 2025 15:34:42 +0000 Subject: [PATCH 095/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 3ab344d6d1..5425654dea 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a5d1366b84a48c1c6611b6627684a98e67c28d03d9005ac94fe7d58bfb59790b.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1045e01414182cd7b8473cde38d155828475254ef1d1d3f23c44199f437be1f7.yml From cd549cc6963f901b7e096bbd2ffa3bdc4b2de55a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 25 Mar 2025 15:46:29 +0000 Subject: [PATCH 096/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 5425654dea..2448223b57 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1045e01414182cd7b8473cde38d155828475254ef1d1d3f23c44199f437be1f7.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-13efab80a5f3baee3372af2aa9dfbb61e9f695c3ba695285de3a066fb5f0e4ae.yml From 515444a1b716089787fb25ed17b112e64dab0196 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 25 Mar 2025 19:13:17 +0000 Subject: [PATCH 097/461] fix(exports): add missing type exports (#2554) --- src/resources/abuse-reports.ts | 7 +++++ src/resources/accounts/accounts.ts | 12 ++++++++ src/resources/ai-gateway/ai-gateway.ts | 15 ++++++++++ src/resources/ai/ai.ts | 2 ++ src/resources/audit-logs.ts | 4 +++ src/resources/bot-management.ts | 13 +++++++++ src/resources/brand-protection.ts | 12 ++++++++ src/resources/cache/cache.ts | 2 ++ src/resources/client-certificates.ts | 14 +++++++++ .../content-scanning/content-scanning.ts | 7 +++++ .../custom-certificates.ts | 14 +++++++++ .../custom-hostnames/custom-hostnames.ts | 20 +++++++++++++ src/resources/custom-nameservers.ts | 15 ++++++++++ src/resources/custom-pages.ts | 14 +++++++++ src/resources/d1/d1.ts | 2 ++ src/resources/dcv-delegation.ts | 7 +++++ src/resources/dns-firewall/dns-firewall.ts | 18 ++++++++++++ src/resources/dns/dns.ts | 5 ++++ src/resources/email-routing/email-routing.ts | 7 +++++ src/resources/filters.ts | 18 ++++++++++++ src/resources/healthchecks/healthchecks.ts | 17 +++++++++++ src/resources/hyperdrive/hyperdrive.ts | 2 ++ src/resources/ips.ts | 9 ++++++ src/resources/keyless-certificates.ts | 16 ++++++++++ .../leaked-credential-checks.ts | 7 +++++ .../load-balancers/load-balancers.ts | 29 +++++++++++++++++++ src/resources/magic-transit/magic-transit.ts | 6 ++++ src/resources/managed-transforms.ts | 10 +++++++ src/resources/memberships.ts | 14 +++++++++ .../mtls-certificates/mtls-certificates.ts | 11 +++++++ src/resources/origin-ca-certificates.ts | 12 ++++++++ .../origin-post-quantum-encryption.ts | 9 ++++++ .../origin-tls-client-auth.ts | 14 +++++++++ src/resources/page-rules.ts | 15 ++++++++++ src/resources/page-shield/page-shield.ts | 7 +++++ src/resources/queues/queues.ts | 12 ++++++++ src/resources/rate-limits.ts | 17 +++++++++++ .../resource-sharing/resource-sharing.ts | 16 ++++++++++ src/resources/rulesets/rulesets.ts | 17 +++++++++++ src/resources/security-txt.ts | 11 +++++++ src/resources/snippets/snippets.ts | 11 +++++++ src/resources/spectrum/spectrum.ts | 7 +++++ src/resources/speed/speed.ts | 6 ++++ src/resources/stream/stream.ts | 12 ++++++++ src/resources/url-normalization.ts | 10 +++++++ src/resources/url-scanner/url-scanner.ts | 2 ++ src/resources/user/user.ts | 6 ++++ src/resources/waiting-rooms/waiting-rooms.ts | 16 ++++++++++ src/resources/workers/workers.ts | 6 ++++ src/resources/workflows/workflows.ts | 11 +++++++ src/resources/zaraz/zaraz.ts | 6 ++++ src/resources/zones/zones.ts | 13 +++++++++ 52 files changed, 565 insertions(+) diff --git a/src/resources/abuse-reports.ts b/src/resources/abuse-reports.ts index 2ead570f74..5ce70b2f3f 100644 --- a/src/resources/abuse-reports.ts +++ b/src/resources/abuse-reports.ts @@ -1606,3 +1606,10 @@ export declare namespace AbuseReportCreateParams { urls?: string; } } + +export declare namespace AbuseReports { + export { + type AbuseReportCreateResponse as AbuseReportCreateResponse, + type AbuseReportCreateParams as AbuseReportCreateParams, + }; +} diff --git a/src/resources/accounts/accounts.ts b/src/resources/accounts/accounts.ts index 2789317b3d..c67244b220 100644 --- a/src/resources/accounts/accounts.ts +++ b/src/resources/accounts/accounts.ts @@ -314,6 +314,7 @@ export interface AccountGetParams { account_id: string; } +Accounts.AccountsV4PagePaginationArray = AccountsV4PagePaginationArray; Accounts.Members = Members; Accounts.Roles = Roles; Accounts.Subscriptions = Subscriptions; @@ -321,6 +322,17 @@ Accounts.Tokens = Tokens; Accounts.Logs = Logs; export declare namespace Accounts { + export { + type Account as Account, + type AccountDeleteResponse as AccountDeleteResponse, + AccountsV4PagePaginationArray as AccountsV4PagePaginationArray, + type AccountCreateParams as AccountCreateParams, + type AccountUpdateParams as AccountUpdateParams, + type AccountListParams as AccountListParams, + type AccountDeleteParams as AccountDeleteParams, + type AccountGetParams as AccountGetParams, + }; + export { Members as Members, type Status as Status, diff --git a/src/resources/ai-gateway/ai-gateway.ts b/src/resources/ai-gateway/ai-gateway.ts index 86aad037e5..162d373654 100644 --- a/src/resources/ai-gateway/ai-gateway.ts +++ b/src/resources/ai-gateway/ai-gateway.ts @@ -492,6 +492,7 @@ export interface AIGatewayGetParams { account_id: string; } +AIGateway.AIGatewayListResponsesV4PagePaginationArray = AIGatewayListResponsesV4PagePaginationArray; AIGateway.EvaluationTypes = EvaluationTypes; AIGateway.EvaluationTypeListResponsesV4PagePaginationArray = EvaluationTypeListResponsesV4PagePaginationArray; AIGateway.Logs = Logs; @@ -503,6 +504,20 @@ AIGateway.EvaluationListResponsesV4PagePaginationArray = EvaluationListResponses AIGateway.URLs = URLs; export declare namespace AIGateway { + export { + type AIGatewayCreateResponse as AIGatewayCreateResponse, + type AIGatewayUpdateResponse as AIGatewayUpdateResponse, + type AIGatewayListResponse as AIGatewayListResponse, + type AIGatewayDeleteResponse as AIGatewayDeleteResponse, + type AIGatewayGetResponse as AIGatewayGetResponse, + AIGatewayListResponsesV4PagePaginationArray as AIGatewayListResponsesV4PagePaginationArray, + type AIGatewayCreateParams as AIGatewayCreateParams, + type AIGatewayUpdateParams as AIGatewayUpdateParams, + type AIGatewayListParams as AIGatewayListParams, + type AIGatewayDeleteParams as AIGatewayDeleteParams, + type AIGatewayGetParams as AIGatewayGetParams, + }; + export { EvaluationTypes as EvaluationTypes, type EvaluationTypeListResponse as EvaluationTypeListResponse, diff --git a/src/resources/ai/ai.ts b/src/resources/ai/ai.ts index 08aafd88b5..e78906193f 100644 --- a/src/resources/ai/ai.ts +++ b/src/resources/ai/ai.ts @@ -1031,6 +1031,8 @@ AI.Models = Models; AI.ModelListResponsesV4PagePaginationArray = ModelListResponsesV4PagePaginationArray; export declare namespace AI { + export { type AIRunResponse as AIRunResponse, type AIRunParams as AIRunParams }; + export { Finetunes as Finetunes, type FinetuneCreateResponse as FinetuneCreateResponse, diff --git a/src/resources/audit-logs.ts b/src/resources/audit-logs.ts index 51701db2d8..bb07e279be 100644 --- a/src/resources/audit-logs.ts +++ b/src/resources/audit-logs.ts @@ -106,4 +106,8 @@ export namespace AuditLogListParams { } } +export declare namespace AuditLogs { + export { type AuditLogListParams as AuditLogListParams }; +} + export { AuditLogsV4PagePaginationArray }; diff --git a/src/resources/bot-management.ts b/src/resources/bot-management.ts index 17f6d24646..66153927d7 100644 --- a/src/resources/bot-management.ts +++ b/src/resources/bot-management.ts @@ -727,3 +727,16 @@ export interface BotManagementGetParams { */ zone_id: string; } + +export declare namespace BotManagement { + export { + type BotFightModeConfiguration as BotFightModeConfiguration, + type SubscriptionConfiguration as SubscriptionConfiguration, + type SuperBotFightModeDefinitelyConfiguration as SuperBotFightModeDefinitelyConfiguration, + type SuperBotFightModeLikelyConfiguration as SuperBotFightModeLikelyConfiguration, + type BotManagementUpdateResponse as BotManagementUpdateResponse, + type BotManagementGetResponse as BotManagementGetResponse, + type BotManagementUpdateParams as BotManagementUpdateParams, + type BotManagementGetParams as BotManagementGetParams, + }; +} diff --git a/src/resources/brand-protection.ts b/src/resources/brand-protection.ts index c636eabe86..f17e5b194e 100644 --- a/src/resources/brand-protection.ts +++ b/src/resources/brand-protection.ts @@ -221,3 +221,15 @@ export interface BrandProtectionURLInfoParams { */ url_id?: Array; } + +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 BrandProtectionSubmitParams as BrandProtectionSubmitParams, + type BrandProtectionURLInfoParams as BrandProtectionURLInfoParams, + }; +} diff --git a/src/resources/cache/cache.ts b/src/resources/cache/cache.ts index 538bd609c7..94daa43a4c 100644 --- a/src/resources/cache/cache.ts +++ b/src/resources/cache/cache.ts @@ -246,6 +246,8 @@ Cache.Variants = Variants; Cache.RegionalTieredCacheResource = RegionalTieredCacheResource; export declare namespace Cache { + export { type CachePurgeResponse as CachePurgeResponse, type CachePurgeParams as CachePurgeParams }; + export { CacheReserveResource as CacheReserveResource, type CacheReserve as CacheReserve, diff --git a/src/resources/client-certificates.ts b/src/resources/client-certificates.ts index a4e0b7ac9e..119d388a4a 100644 --- a/src/resources/client-certificates.ts +++ b/src/resources/client-certificates.ts @@ -257,3 +257,17 @@ export interface ClientCertificateGetParams { */ zone_id: string; } + +ClientCertificates.ClientCertificatesV4PagePaginationArray = ClientCertificatesV4PagePaginationArray; + +export declare namespace ClientCertificates { + export { + type ClientCertificate as ClientCertificate, + ClientCertificatesV4PagePaginationArray as ClientCertificatesV4PagePaginationArray, + type ClientCertificateCreateParams as ClientCertificateCreateParams, + type ClientCertificateListParams as ClientCertificateListParams, + type ClientCertificateDeleteParams as ClientCertificateDeleteParams, + type ClientCertificateEditParams as ClientCertificateEditParams, + type ClientCertificateGetParams as ClientCertificateGetParams, + }; +} diff --git a/src/resources/content-scanning/content-scanning.ts b/src/resources/content-scanning/content-scanning.ts index 54752c8387..9ca5c10854 100644 --- a/src/resources/content-scanning/content-scanning.ts +++ b/src/resources/content-scanning/content-scanning.ts @@ -78,6 +78,13 @@ ContentScanning.PayloadDeleteResponsesSinglePage = PayloadDeleteResponsesSingleP ContentScanning.Settings = Settings; export declare namespace ContentScanning { + export { + type ContentScanningDisableResponse as ContentScanningDisableResponse, + type ContentScanningEnableResponse as ContentScanningEnableResponse, + type ContentScanningDisableParams as ContentScanningDisableParams, + type ContentScanningEnableParams as ContentScanningEnableParams, + }; + export { Payloads as Payloads, type PayloadCreateResponse as PayloadCreateResponse, diff --git a/src/resources/custom-certificates/custom-certificates.ts b/src/resources/custom-certificates/custom-certificates.ts index 7736c85279..7df6a88c52 100644 --- a/src/resources/custom-certificates/custom-certificates.ts +++ b/src/resources/custom-certificates/custom-certificates.ts @@ -361,8 +361,22 @@ export interface CustomCertificateGetParams { zone_id: string; } +CustomCertificates.CustomCertificatesV4PagePaginationArray = CustomCertificatesV4PagePaginationArray; CustomCertificates.Prioritize = Prioritize; export declare namespace CustomCertificates { + export { + type CustomCertificate as CustomCertificate, + type GeoRestrictions as GeoRestrictions, + type Status as Status, + type CustomCertificateDeleteResponse as CustomCertificateDeleteResponse, + CustomCertificatesV4PagePaginationArray as CustomCertificatesV4PagePaginationArray, + type CustomCertificateCreateParams as CustomCertificateCreateParams, + type CustomCertificateListParams as CustomCertificateListParams, + type CustomCertificateDeleteParams as CustomCertificateDeleteParams, + type CustomCertificateEditParams as CustomCertificateEditParams, + type CustomCertificateGetParams as CustomCertificateGetParams, + }; + export { Prioritize as Prioritize, type PrioritizeUpdateParams as PrioritizeUpdateParams }; } diff --git a/src/resources/custom-hostnames/custom-hostnames.ts b/src/resources/custom-hostnames/custom-hostnames.ts index 3e2b910a48..2b2e93ce3a 100644 --- a/src/resources/custom-hostnames/custom-hostnames.ts +++ b/src/resources/custom-hostnames/custom-hostnames.ts @@ -1984,10 +1984,30 @@ export interface CustomHostnameGetParams { zone_id: string; } +CustomHostnames.CustomHostnameListResponsesV4PagePaginationArray = + CustomHostnameListResponsesV4PagePaginationArray; CustomHostnames.FallbackOrigin = FallbackOrigin; CustomHostnames.CertificatePack = CertificatePack; export declare namespace CustomHostnames { + export { + type BundleMethod as BundleMethod, + type CustomHostname as CustomHostname, + type DCVMethod as DCVMethod, + type DomainValidationType as DomainValidationType, + type CustomHostnameCreateResponse as CustomHostnameCreateResponse, + type CustomHostnameListResponse as CustomHostnameListResponse, + type CustomHostnameDeleteResponse as CustomHostnameDeleteResponse, + type CustomHostnameEditResponse as CustomHostnameEditResponse, + type CustomHostnameGetResponse as CustomHostnameGetResponse, + CustomHostnameListResponsesV4PagePaginationArray as CustomHostnameListResponsesV4PagePaginationArray, + type CustomHostnameCreateParams as CustomHostnameCreateParams, + type CustomHostnameListParams as CustomHostnameListParams, + type CustomHostnameDeleteParams as CustomHostnameDeleteParams, + type CustomHostnameEditParams as CustomHostnameEditParams, + type CustomHostnameGetParams as CustomHostnameGetParams, + }; + export { FallbackOrigin as FallbackOrigin, type FallbackOriginUpdateResponse as FallbackOriginUpdateResponse, diff --git a/src/resources/custom-nameservers.ts b/src/resources/custom-nameservers.ts index 58bb47e467..dd3b56d959 100644 --- a/src/resources/custom-nameservers.ts +++ b/src/resources/custom-nameservers.ts @@ -131,3 +131,18 @@ export interface CustomNameserverGetParams { */ account_id: string; } + +CustomNameservers.CustomNameserverDeleteResponsesSinglePage = CustomNameserverDeleteResponsesSinglePage; +CustomNameservers.CustomNameserversSinglePage = CustomNameserversSinglePage; + +export declare namespace CustomNameservers { + export { + type CustomNameserver as CustomNameserver, + type CustomNameserverDeleteResponse as CustomNameserverDeleteResponse, + CustomNameserverDeleteResponsesSinglePage as CustomNameserverDeleteResponsesSinglePage, + CustomNameserversSinglePage as CustomNameserversSinglePage, + type CustomNameserverCreateParams as CustomNameserverCreateParams, + type CustomNameserverDeleteParams as CustomNameserverDeleteParams, + type CustomNameserverGetParams as CustomNameserverGetParams, + }; +} diff --git a/src/resources/custom-pages.ts b/src/resources/custom-pages.ts index 0d272bbc14..d057b5e63a 100644 --- a/src/resources/custom-pages.ts +++ b/src/resources/custom-pages.ts @@ -179,3 +179,17 @@ export interface CustomPageGetParams { */ zone_id?: string; } + +CustomPages.CustomPageListResponsesSinglePage = CustomPageListResponsesSinglePage; + +export declare namespace CustomPages { + export { + type CustomPageUpdateResponse as CustomPageUpdateResponse, + type CustomPageListResponse as CustomPageListResponse, + type CustomPageGetResponse as CustomPageGetResponse, + CustomPageListResponsesSinglePage as CustomPageListResponsesSinglePage, + type CustomPageUpdateParams as CustomPageUpdateParams, + type CustomPageListParams as CustomPageListParams, + type CustomPageGetParams as CustomPageGetParams, + }; +} diff --git a/src/resources/d1/d1.ts b/src/resources/d1/d1.ts index 3f7ee5f27b..536a62b2eb 100644 --- a/src/resources/d1/d1.ts +++ b/src/resources/d1/d1.ts @@ -59,6 +59,8 @@ D1Resource.QueryResultsSinglePage = QueryResultsSinglePage; D1Resource.DatabaseRawResponsesSinglePage = DatabaseRawResponsesSinglePage; export declare namespace D1Resource { + export { type D1 as D1 }; + export { Database as Database, type QueryResult as QueryResult, diff --git a/src/resources/dcv-delegation.ts b/src/resources/dcv-delegation.ts index 68eb97bcc6..c7c86b9d6b 100644 --- a/src/resources/dcv-delegation.ts +++ b/src/resources/dcv-delegation.ts @@ -31,3 +31,10 @@ export interface DCVDelegationGetParams { */ zone_id: string; } + +export declare namespace DCVDelegation { + export { + type DCVDelegationUUID as DCVDelegationUUID, + type DCVDelegationGetParams as DCVDelegationGetParams, + }; +} diff --git a/src/resources/dns-firewall/dns-firewall.ts b/src/resources/dns-firewall/dns-firewall.ts index ecd48da520..3c6c5ad845 100644 --- a/src/resources/dns-firewall/dns-firewall.ts +++ b/src/resources/dns-firewall/dns-firewall.ts @@ -578,10 +578,28 @@ export interface DNSFirewallGetParams { account_id: string; } +DNSFirewall.DNSFirewallListResponsesV4PagePaginationArray = DNSFirewallListResponsesV4PagePaginationArray; DNSFirewall.Analytics = Analytics; DNSFirewall.ReverseDNS = ReverseDNS; export declare namespace DNSFirewall { + export { + type AttackMitigation as AttackMitigation, + type FirewallIPs as FirewallIPs, + type UpstreamIPs as UpstreamIPs, + type DNSFirewallCreateResponse as DNSFirewallCreateResponse, + type DNSFirewallListResponse as DNSFirewallListResponse, + type DNSFirewallDeleteResponse as DNSFirewallDeleteResponse, + type DNSFirewallEditResponse as DNSFirewallEditResponse, + type DNSFirewallGetResponse as DNSFirewallGetResponse, + DNSFirewallListResponsesV4PagePaginationArray as DNSFirewallListResponsesV4PagePaginationArray, + type DNSFirewallCreateParams as DNSFirewallCreateParams, + type DNSFirewallListParams as DNSFirewallListParams, + type DNSFirewallDeleteParams as DNSFirewallDeleteParams, + type DNSFirewallEditParams as DNSFirewallEditParams, + type DNSFirewallGetParams as DNSFirewallGetParams, + }; + export { Analytics as Analytics }; export { diff --git a/src/resources/dns/dns.ts b/src/resources/dns/dns.ts index 02d98cd261..49d6d2b48e 100644 --- a/src/resources/dns/dns.ts +++ b/src/resources/dns/dns.ts @@ -137,6 +137,11 @@ DNS.Analytics = Analytics; DNS.ZoneTransfers = ZoneTransfers; export declare namespace DNS { + export { + type DNSAnalyticsNominalMetric as DNSAnalyticsNominalMetric, + type DNSAnalyticsQuery as DNSAnalyticsQuery, + }; + export { DNSSECResource as DNSSECResource, type DNSSEC as DNSSEC, diff --git a/src/resources/email-routing/email-routing.ts b/src/resources/email-routing/email-routing.ts index 0d9c6e2763..1008f893c4 100644 --- a/src/resources/email-routing/email-routing.ts +++ b/src/resources/email-routing/email-routing.ts @@ -162,6 +162,13 @@ EmailRouting.Addresses = Addresses; EmailRouting.AddressesV4PagePaginationArray = AddressesV4PagePaginationArray; export declare namespace EmailRouting { + export { + type Settings as Settings, + type EmailRoutingDisableParams as EmailRoutingDisableParams, + type EmailRoutingEnableParams as EmailRoutingEnableParams, + type EmailRoutingGetParams as EmailRoutingGetParams, + }; + export { DNS as DNS, type DNSRecord as DNSRecord, diff --git a/src/resources/filters.ts b/src/resources/filters.ts index bf68897734..3b33eed08d 100644 --- a/src/resources/filters.ts +++ b/src/resources/filters.ts @@ -271,3 +271,21 @@ export interface FilterGetParams { */ zone_id: string; } + +Filters.FirewallFiltersSinglePage = FirewallFiltersSinglePage; +Filters.FirewallFiltersV4PagePaginationArray = FirewallFiltersV4PagePaginationArray; + +export declare namespace Filters { + export { + type FirewallFilter as FirewallFilter, + FirewallFiltersSinglePage as FirewallFiltersSinglePage, + FirewallFiltersV4PagePaginationArray as FirewallFiltersV4PagePaginationArray, + type FilterCreateParams as FilterCreateParams, + type FilterUpdateParams as FilterUpdateParams, + type FilterListParams as FilterListParams, + type FilterDeleteParams as FilterDeleteParams, + type FilterBulkDeleteParams as FilterBulkDeleteParams, + type FilterBulkUpdateParams as FilterBulkUpdateParams, + type FilterGetParams as FilterGetParams, + }; +} diff --git a/src/resources/healthchecks/healthchecks.ts b/src/resources/healthchecks/healthchecks.ts index 60c24fa6c6..a471085d9d 100644 --- a/src/resources/healthchecks/healthchecks.ts +++ b/src/resources/healthchecks/healthchecks.ts @@ -724,9 +724,26 @@ export interface HealthcheckGetParams { zone_id: string; } +Healthchecks.HealthchecksV4PagePaginationArray = HealthchecksV4PagePaginationArray; Healthchecks.Previews = Previews; export declare namespace Healthchecks { + export { + type CheckRegion as CheckRegion, + type Healthcheck as Healthcheck, + type HTTPConfiguration as HTTPConfiguration, + type QueryHealthcheck as QueryHealthcheck, + type TCPConfiguration as TCPConfiguration, + type HealthcheckDeleteResponse as HealthcheckDeleteResponse, + HealthchecksV4PagePaginationArray as HealthchecksV4PagePaginationArray, + type HealthcheckCreateParams as HealthcheckCreateParams, + type HealthcheckUpdateParams as HealthcheckUpdateParams, + type HealthcheckListParams as HealthcheckListParams, + type HealthcheckDeleteParams as HealthcheckDeleteParams, + type HealthcheckEditParams as HealthcheckEditParams, + type HealthcheckGetParams as HealthcheckGetParams, + }; + export { Previews as Previews, type PreviewDeleteResponse as PreviewDeleteResponse, diff --git a/src/resources/hyperdrive/hyperdrive.ts b/src/resources/hyperdrive/hyperdrive.ts index 80886667ed..57c0403fc4 100644 --- a/src/resources/hyperdrive/hyperdrive.ts +++ b/src/resources/hyperdrive/hyperdrive.ts @@ -186,6 +186,8 @@ export namespace Hyperdrive { HyperdriveResource.Configs = Configs; export declare namespace HyperdriveResource { + export { type Configuration as Configuration, type Hyperdrive as Hyperdrive }; + export { Configs as Configs, type ConfigDeleteResponse as ConfigDeleteResponse, diff --git a/src/resources/ips.ts b/src/resources/ips.ts index 8a9ee285d6..612925079e 100644 --- a/src/resources/ips.ts +++ b/src/resources/ips.ts @@ -73,3 +73,12 @@ export interface IPListParams { */ networks?: string; } + +export declare namespace IPs { + export { + type IPs as IPs, + type JDCloudIPs as JDCloudIPs, + type IPListResponse as IPListResponse, + type IPListParams as IPListParams, + }; +} diff --git a/src/resources/keyless-certificates.ts b/src/resources/keyless-certificates.ts index 11fca9e12a..a1119b187e 100644 --- a/src/resources/keyless-certificates.ts +++ b/src/resources/keyless-certificates.ts @@ -276,3 +276,19 @@ export interface KeylessCertificateGetParams { */ zone_id: string; } + +KeylessCertificates.KeylessCertificatesSinglePage = KeylessCertificatesSinglePage; + +export declare namespace KeylessCertificates { + export { + type KeylessCertificate as KeylessCertificate, + type Tunnel as Tunnel, + type KeylessCertificateDeleteResponse as KeylessCertificateDeleteResponse, + KeylessCertificatesSinglePage as KeylessCertificatesSinglePage, + type KeylessCertificateCreateParams as KeylessCertificateCreateParams, + type KeylessCertificateListParams as KeylessCertificateListParams, + type KeylessCertificateDeleteParams as KeylessCertificateDeleteParams, + type KeylessCertificateEditParams as KeylessCertificateEditParams, + type KeylessCertificateGetParams as KeylessCertificateGetParams, + }; +} diff --git a/src/resources/leaked-credential-checks/leaked-credential-checks.ts b/src/resources/leaked-credential-checks/leaked-credential-checks.ts index a94753581e..93d011d4ce 100644 --- a/src/resources/leaked-credential-checks/leaked-credential-checks.ts +++ b/src/resources/leaked-credential-checks/leaked-credential-checks.ts @@ -94,6 +94,13 @@ LeakedCredentialChecks.Detections = Detections; LeakedCredentialChecks.DetectionListResponsesSinglePage = DetectionListResponsesSinglePage; export declare namespace LeakedCredentialChecks { + export { + type LeakedCredentialCheckCreateResponse as LeakedCredentialCheckCreateResponse, + type LeakedCredentialCheckGetResponse as LeakedCredentialCheckGetResponse, + type LeakedCredentialCheckCreateParams as LeakedCredentialCheckCreateParams, + type LeakedCredentialCheckGetParams as LeakedCredentialCheckGetParams, + }; + export { Detections as Detections, type DetectionCreateResponse as DetectionCreateResponse, diff --git a/src/resources/load-balancers/load-balancers.ts b/src/resources/load-balancers/load-balancers.ts index fcf6ee11a9..d7da152283 100644 --- a/src/resources/load-balancers/load-balancers.ts +++ b/src/resources/load-balancers/load-balancers.ts @@ -2095,6 +2095,7 @@ export interface LoadBalancerGetParams { zone_id: string; } +LoadBalancers.LoadBalancersSinglePage = LoadBalancersSinglePage; LoadBalancers.Monitors = Monitors; LoadBalancers.MonitorsSinglePage = MonitorsSinglePage; LoadBalancers.Pools = Pools; @@ -2105,6 +2106,34 @@ LoadBalancers.Searches = Searches; LoadBalancers.SearchListResponsesV4PagePagination = SearchListResponsesV4PagePagination; export declare namespace LoadBalancers { + export { + type AdaptiveRouting as AdaptiveRouting, + type CheckRegion as CheckRegion, + type DefaultPools as DefaultPools, + type FilterOptions as FilterOptions, + type Header as Header, + type Host as Host, + type LoadBalancer as LoadBalancer, + type LoadShedding as LoadShedding, + type LocationStrategy as LocationStrategy, + type NotificationFilter as NotificationFilter, + type Origin as Origin, + type OriginSteering as OriginSteering, + type RandomSteering as RandomSteering, + type Rules as Rules, + type SessionAffinity as SessionAffinity, + type SessionAffinityAttributes as SessionAffinityAttributes, + type SteeringPolicy as SteeringPolicy, + type LoadBalancerDeleteResponse as LoadBalancerDeleteResponse, + LoadBalancersSinglePage as LoadBalancersSinglePage, + type LoadBalancerCreateParams as LoadBalancerCreateParams, + type LoadBalancerUpdateParams as LoadBalancerUpdateParams, + type LoadBalancerListParams as LoadBalancerListParams, + type LoadBalancerDeleteParams as LoadBalancerDeleteParams, + type LoadBalancerEditParams as LoadBalancerEditParams, + type LoadBalancerGetParams as LoadBalancerGetParams, + }; + export { Monitors as Monitors, type Monitor as Monitor, diff --git a/src/resources/magic-transit/magic-transit.ts b/src/resources/magic-transit/magic-transit.ts index 0ed6507623..5f89eab449 100644 --- a/src/resources/magic-transit/magic-transit.ts +++ b/src/resources/magic-transit/magic-transit.ts @@ -262,6 +262,12 @@ MagicTransit.PCAPs = PCAPs; MagicTransit.PCAPListResponsesSinglePage = PCAPListResponsesSinglePage; export declare namespace MagicTransit { + export { + type HealthCheck as HealthCheck, + type HealthCheckRate as HealthCheckRate, + type HealthCheckType as HealthCheckType, + }; + export { Apps as Apps, type AppCreateResponse as AppCreateResponse, diff --git a/src/resources/managed-transforms.ts b/src/resources/managed-transforms.ts index 846003dc4b..61df804a95 100644 --- a/src/resources/managed-transforms.ts +++ b/src/resources/managed-transforms.ts @@ -246,3 +246,13 @@ export namespace ManagedTransformEditParams { enabled: boolean; } } + +export declare namespace ManagedTransforms { + export { + type ManagedTransformListResponse as ManagedTransformListResponse, + type ManagedTransformEditResponse as ManagedTransformEditResponse, + type ManagedTransformListParams as ManagedTransformListParams, + type ManagedTransformDeleteParams as ManagedTransformDeleteParams, + type ManagedTransformEditParams as ManagedTransformEditParams, + }; +} diff --git a/src/resources/memberships.ts b/src/resources/memberships.ts index 1f851d6f85..b484946012 100644 --- a/src/resources/memberships.ts +++ b/src/resources/memberships.ts @@ -549,3 +549,17 @@ export namespace MembershipListParams { name?: string; } } + +Memberships.MembershipsV4PagePaginationArray = MembershipsV4PagePaginationArray; + +export declare namespace Memberships { + export { + type Membership as Membership, + type MembershipUpdateResponse as MembershipUpdateResponse, + type MembershipDeleteResponse as MembershipDeleteResponse, + type MembershipGetResponse as MembershipGetResponse, + MembershipsV4PagePaginationArray as MembershipsV4PagePaginationArray, + type MembershipUpdateParams as MembershipUpdateParams, + type MembershipListParams as MembershipListParams, + }; +} diff --git a/src/resources/mtls-certificates/mtls-certificates.ts b/src/resources/mtls-certificates/mtls-certificates.ts index 2a94a87dff..31a74b4ef8 100644 --- a/src/resources/mtls-certificates/mtls-certificates.ts +++ b/src/resources/mtls-certificates/mtls-certificates.ts @@ -231,10 +231,21 @@ export interface MTLSCertificateGetParams { account_id: string; } +MTLSCertificates.MTLSCertificatesSinglePage = MTLSCertificatesSinglePage; MTLSCertificates.Associations = Associations; MTLSCertificates.CertificateAsssociationsSinglePage = CertificateAsssociationsSinglePage; export declare namespace MTLSCertificates { + export { + type MTLSCertificate as MTLSCertificate, + type MTLSCertificateCreateResponse as MTLSCertificateCreateResponse, + MTLSCertificatesSinglePage as MTLSCertificatesSinglePage, + type MTLSCertificateCreateParams as MTLSCertificateCreateParams, + type MTLSCertificateListParams as MTLSCertificateListParams, + type MTLSCertificateDeleteParams as MTLSCertificateDeleteParams, + type MTLSCertificateGetParams as MTLSCertificateGetParams, + }; + export { Associations as Associations, type CertificateAsssociation as CertificateAsssociation, diff --git a/src/resources/origin-ca-certificates.ts b/src/resources/origin-ca-certificates.ts index 807744f98c..7f09786e31 100644 --- a/src/resources/origin-ca-certificates.ts +++ b/src/resources/origin-ca-certificates.ts @@ -147,3 +147,15 @@ export interface OriginCACertificateListParams { */ zone_id: string; } + +OriginCACertificates.OriginCACertificatesSinglePage = OriginCACertificatesSinglePage; + +export declare namespace OriginCACertificates { + export { + type OriginCACertificate as OriginCACertificate, + type OriginCACertificateDeleteResponse as OriginCACertificateDeleteResponse, + OriginCACertificatesSinglePage as OriginCACertificatesSinglePage, + type OriginCACertificateCreateParams as OriginCACertificateCreateParams, + type OriginCACertificateListParams as OriginCACertificateListParams, + }; +} diff --git a/src/resources/origin-post-quantum-encryption.ts b/src/resources/origin-post-quantum-encryption.ts index 1e98d6ffd1..be4d295897 100644 --- a/src/resources/origin-post-quantum-encryption.ts +++ b/src/resources/origin-post-quantum-encryption.ts @@ -108,3 +108,12 @@ export interface OriginPostQuantumEncryptionGetParams { */ zone_id: string; } + +export declare namespace OriginPostQuantumEncryption { + export { + type OriginPostQuantumEncryptionUpdateResponse as OriginPostQuantumEncryptionUpdateResponse, + type OriginPostQuantumEncryptionGetResponse as OriginPostQuantumEncryptionGetResponse, + type OriginPostQuantumEncryptionUpdateParams as OriginPostQuantumEncryptionUpdateParams, + type OriginPostQuantumEncryptionGetParams as OriginPostQuantumEncryptionGetParams, + }; +} diff --git a/src/resources/origin-tls-client-auth/origin-tls-client-auth.ts b/src/resources/origin-tls-client-auth/origin-tls-client-auth.ts index f00833f2ac..2566fd6813 100644 --- a/src/resources/origin-tls-client-auth/origin-tls-client-auth.ts +++ b/src/resources/origin-tls-client-auth/origin-tls-client-auth.ts @@ -266,11 +266,25 @@ export interface OriginTLSClientAuthGetParams { zone_id: string; } +OriginTLSClientAuth.OriginTLSClientAuthListResponsesSinglePage = OriginTLSClientAuthListResponsesSinglePage; OriginTLSClientAuth.Hostnames = Hostnames; OriginTLSClientAuth.HostnameUpdateResponsesSinglePage = HostnameUpdateResponsesSinglePage; OriginTLSClientAuth.Settings = Settings; export declare namespace OriginTLSClientAuth { + export { + type ZoneAuthenticatedOriginPull as ZoneAuthenticatedOriginPull, + type OriginTLSClientAuthCreateResponse as OriginTLSClientAuthCreateResponse, + type OriginTLSClientAuthListResponse as OriginTLSClientAuthListResponse, + type OriginTLSClientAuthDeleteResponse as OriginTLSClientAuthDeleteResponse, + type OriginTLSClientAuthGetResponse as OriginTLSClientAuthGetResponse, + OriginTLSClientAuthListResponsesSinglePage as OriginTLSClientAuthListResponsesSinglePage, + type OriginTLSClientAuthCreateParams as OriginTLSClientAuthCreateParams, + type OriginTLSClientAuthListParams as OriginTLSClientAuthListParams, + type OriginTLSClientAuthDeleteParams as OriginTLSClientAuthDeleteParams, + type OriginTLSClientAuthGetParams as OriginTLSClientAuthGetParams, + }; + export { Hostnames as Hostnames, type AuthenticatedOriginPull as AuthenticatedOriginPull, diff --git a/src/resources/page-rules.ts b/src/resources/page-rules.ts index dc3d566d5d..94b3a6a229 100644 --- a/src/resources/page-rules.ts +++ b/src/resources/page-rules.ts @@ -1854,3 +1854,18 @@ export interface PageRuleGetParams { */ zone_id: string; } + +export declare namespace PageRules { + export { + type PageRule as PageRule, + type Target as Target, + type PageRuleListResponse as PageRuleListResponse, + type PageRuleDeleteResponse as PageRuleDeleteResponse, + type PageRuleCreateParams as PageRuleCreateParams, + type PageRuleUpdateParams as PageRuleUpdateParams, + type PageRuleListParams as PageRuleListParams, + type PageRuleDeleteParams as PageRuleDeleteParams, + type PageRuleEditParams as PageRuleEditParams, + type PageRuleGetParams as PageRuleGetParams, + }; +} diff --git a/src/resources/page-shield/page-shield.ts b/src/resources/page-shield/page-shield.ts index 8c3c9a9393..484d292109 100644 --- a/src/resources/page-shield/page-shield.ts +++ b/src/resources/page-shield/page-shield.ts @@ -165,6 +165,13 @@ PageShield.Cookies = Cookies; PageShield.CookieListResponsesSinglePage = CookieListResponsesSinglePage; export declare namespace PageShield { + export { + type Setting as Setting, + type PageShieldUpdateResponse as PageShieldUpdateResponse, + type PageShieldUpdateParams as PageShieldUpdateParams, + type PageShieldGetParams as PageShieldGetParams, + }; + export { Policies as Policies, type Policy as Policy, diff --git a/src/resources/queues/queues.ts b/src/resources/queues/queues.ts index f379843774..1282d84f82 100644 --- a/src/resources/queues/queues.ts +++ b/src/resources/queues/queues.ts @@ -211,12 +211,24 @@ export interface QueueGetParams { account_id: string; } +Queues.QueuesSinglePage = QueuesSinglePage; Queues.Consumers = Consumers; Queues.ConsumersSinglePage = ConsumersSinglePage; Queues.Messages = Messages; Queues.MessagePullResponsesSinglePage = MessagePullResponsesSinglePage; export declare namespace Queues { + export { + type Queue as Queue, + type QueueDeleteResponse as QueueDeleteResponse, + QueuesSinglePage as QueuesSinglePage, + type QueueCreateParams as QueueCreateParams, + type QueueUpdateParams as QueueUpdateParams, + type QueueListParams as QueueListParams, + type QueueDeleteParams as QueueDeleteParams, + type QueueGetParams as QueueGetParams, + }; + export { Consumers as Consumers, type Consumer as Consumer, diff --git a/src/resources/rate-limits.ts b/src/resources/rate-limits.ts index 398820f305..53030f442c 100644 --- a/src/resources/rate-limits.ts +++ b/src/resources/rate-limits.ts @@ -801,3 +801,20 @@ export interface RateLimitGetParams { */ zone_id: string; } + +RateLimits.RateLimitsV4PagePaginationArray = RateLimitsV4PagePaginationArray; + +export declare namespace RateLimits { + export { + type Action as Action, + type Methods as Methods, + type RateLimit as RateLimit, + type RateLimitDeleteResponse as RateLimitDeleteResponse, + RateLimitsV4PagePaginationArray as RateLimitsV4PagePaginationArray, + type RateLimitCreateParams as RateLimitCreateParams, + type RateLimitListParams as RateLimitListParams, + type RateLimitDeleteParams as RateLimitDeleteParams, + type RateLimitEditParams as RateLimitEditParams, + type RateLimitGetParams as RateLimitGetParams, + }; +} diff --git a/src/resources/resource-sharing/resource-sharing.ts b/src/resources/resource-sharing/resource-sharing.ts index ddd96b75a6..b544fbabd8 100644 --- a/src/resources/resource-sharing/resource-sharing.ts +++ b/src/resources/resource-sharing/resource-sharing.ts @@ -453,12 +453,28 @@ export interface ResourceSharingGetParams { account_id: string; } +ResourceSharing.ResourceSharingListResponsesV4PagePaginationArray = + ResourceSharingListResponsesV4PagePaginationArray; ResourceSharing.Recipients = Recipients; ResourceSharing.RecipientListResponsesV4PagePaginationArray = RecipientListResponsesV4PagePaginationArray; ResourceSharing.Resources = Resources; ResourceSharing.ResourceListResponsesV4PagePaginationArray = ResourceListResponsesV4PagePaginationArray; export declare namespace ResourceSharing { + export { + type ResourceSharingCreateResponse as ResourceSharingCreateResponse, + type ResourceSharingUpdateResponse as ResourceSharingUpdateResponse, + type ResourceSharingListResponse as ResourceSharingListResponse, + type ResourceSharingDeleteResponse as ResourceSharingDeleteResponse, + type ResourceSharingGetResponse as ResourceSharingGetResponse, + ResourceSharingListResponsesV4PagePaginationArray as ResourceSharingListResponsesV4PagePaginationArray, + type ResourceSharingCreateParams as ResourceSharingCreateParams, + type ResourceSharingUpdateParams as ResourceSharingUpdateParams, + type ResourceSharingListParams as ResourceSharingListParams, + type ResourceSharingDeleteParams as ResourceSharingDeleteParams, + type ResourceSharingGetParams as ResourceSharingGetParams, + }; + export { Recipients as Recipients, type RecipientCreateResponse as RecipientCreateResponse, diff --git a/src/resources/rulesets/rulesets.ts b/src/resources/rulesets/rulesets.ts index 6ed29bab88..b3ca39a2dc 100644 --- a/src/resources/rulesets/rulesets.ts +++ b/src/resources/rulesets/rulesets.ts @@ -2028,12 +2028,29 @@ export interface RulesetGetParams { zone_id?: string; } +Rulesets.RulesetListResponsesCursorPagination = RulesetListResponsesCursorPagination; Rulesets.Phases = Phases; Rulesets.Rules = Rules; Rulesets.Versions = Versions; Rulesets.VersionListResponsesSinglePage = VersionListResponsesSinglePage; export declare namespace Rulesets { + export { + type Kind as Kind, + type Phase as Phase, + type Ruleset as Ruleset, + type RulesetCreateResponse as RulesetCreateResponse, + type RulesetUpdateResponse as RulesetUpdateResponse, + type RulesetListResponse as RulesetListResponse, + type RulesetGetResponse as RulesetGetResponse, + RulesetListResponsesCursorPagination as RulesetListResponsesCursorPagination, + type RulesetCreateParams as RulesetCreateParams, + type RulesetUpdateParams as RulesetUpdateParams, + type RulesetListParams as RulesetListParams, + type RulesetDeleteParams as RulesetDeleteParams, + type RulesetGetParams as RulesetGetParams, + }; + export { Phases as Phases, type PhaseUpdateResponse as PhaseUpdateResponse, diff --git a/src/resources/security-txt.ts b/src/resources/security-txt.ts index a66d691325..0b9cacc8e7 100644 --- a/src/resources/security-txt.ts +++ b/src/resources/security-txt.ts @@ -147,3 +147,14 @@ export interface SecurityTXTGetParams { */ zone_id: string; } + +export declare namespace SecurityTXT { + export { + type SecurityTXTUpdateResponse as SecurityTXTUpdateResponse, + type SecurityTXTDeleteResponse as SecurityTXTDeleteResponse, + type SecurityTXTGetResponse as SecurityTXTGetResponse, + type SecurityTXTUpdateParams as SecurityTXTUpdateParams, + type SecurityTXTDeleteParams as SecurityTXTDeleteParams, + type SecurityTXTGetParams as SecurityTXTGetParams, + }; +} diff --git a/src/resources/snippets/snippets.ts b/src/resources/snippets/snippets.ts index f022a9a236..56654850fb 100644 --- a/src/resources/snippets/snippets.ts +++ b/src/resources/snippets/snippets.ts @@ -160,12 +160,23 @@ export interface SnippetGetParams { zone_id: string; } +Snippets.SnippetsSinglePage = SnippetsSinglePage; Snippets.Content = Content; Snippets.Rules = Rules; Snippets.RuleUpdateResponsesSinglePage = RuleUpdateResponsesSinglePage; Snippets.RuleListResponsesSinglePage = RuleListResponsesSinglePage; export declare namespace Snippets { + export { + type Snippet as Snippet, + type SnippetDeleteResponse as SnippetDeleteResponse, + SnippetsSinglePage as SnippetsSinglePage, + type SnippetUpdateParams as SnippetUpdateParams, + type SnippetListParams as SnippetListParams, + type SnippetDeleteParams as SnippetDeleteParams, + type SnippetGetParams as SnippetGetParams, + }; + export { Content as Content, type ContentGetParams as ContentGetParams }; export { diff --git a/src/resources/spectrum/spectrum.ts b/src/resources/spectrum/spectrum.ts index ebf735cf81..b1c7ccde01 100644 --- a/src/resources/spectrum/spectrum.ts +++ b/src/resources/spectrum/spectrum.ts @@ -191,6 +191,13 @@ Spectrum.Apps = Apps; Spectrum.AppListResponsesV4PagePaginationArray = AppListResponsesV4PagePaginationArray; export declare namespace Spectrum { + export { + type DNS as DNS, + type EdgeIPs as EdgeIPs, + type OriginDNS as OriginDNS, + type OriginPort as OriginPort, + }; + export { Analytics as Analytics }; export { diff --git a/src/resources/speed/speed.ts b/src/resources/speed/speed.ts index 15067dd816..5ea9a9f817 100644 --- a/src/resources/speed/speed.ts +++ b/src/resources/speed/speed.ts @@ -190,6 +190,12 @@ Speed.Pages = Pages; Speed.PageListResponsesSinglePage = PageListResponsesSinglePage; export declare namespace Speed { + export { + type LabeledRegion as LabeledRegion, + type LighthouseReport as LighthouseReport, + type Trend as Trend, + }; + export { ScheduleResource as ScheduleResource, type Schedule as Schedule, diff --git a/src/resources/stream/stream.ts b/src/resources/stream/stream.ts index 1f65b63394..e0132b1ec1 100644 --- a/src/resources/stream/stream.ts +++ b/src/resources/stream/stream.ts @@ -543,6 +543,7 @@ export interface StreamGetParams { account_id: string; } +Stream.VideosSinglePage = VideosSinglePage; Stream.AudioTracks = AudioTracks; Stream.AudioSinglePage = AudioSinglePage; Stream.Videos = Videos; @@ -561,6 +562,17 @@ Stream.Embed = Embed; Stream.Token = Token; export declare namespace Stream { + export { + type AllowedOrigins as AllowedOrigins, + type Video as Video, + VideosSinglePage as VideosSinglePage, + type StreamCreateParams as StreamCreateParams, + type StreamListParams as StreamListParams, + type StreamDeleteParams as StreamDeleteParams, + type StreamEditParams as StreamEditParams, + type StreamGetParams as StreamGetParams, + }; + export { AudioTracks as AudioTracks, type Audio as Audio, diff --git a/src/resources/url-normalization.ts b/src/resources/url-normalization.ts index aeacf93fd7..6794f36329 100644 --- a/src/resources/url-normalization.ts +++ b/src/resources/url-normalization.ts @@ -106,3 +106,13 @@ export interface URLNormalizationGetParams { */ zone_id: string; } + +export declare namespace URLNormalization { + export { + type URLNormalizationUpdateResponse as URLNormalizationUpdateResponse, + type URLNormalizationGetResponse as URLNormalizationGetResponse, + type URLNormalizationUpdateParams as URLNormalizationUpdateParams, + type URLNormalizationDeleteParams as URLNormalizationDeleteParams, + type URLNormalizationGetParams as URLNormalizationGetParams, + }; +} diff --git a/src/resources/url-scanner/url-scanner.ts b/src/resources/url-scanner/url-scanner.ts index eb626cfc0e..cbecc9da36 100644 --- a/src/resources/url-scanner/url-scanner.ts +++ b/src/resources/url-scanner/url-scanner.ts @@ -66,6 +66,8 @@ URLScanner.Responses = Responses; URLScanner.Scans = Scans; export declare namespace URLScanner { + export { type URLScannerDomain as URLScannerDomain, type URLScannerTask as URLScannerTask }; + export { Responses as Responses, type ResponseGetResponse as ResponseGetResponse, diff --git a/src/resources/user/user.ts b/src/resources/user/user.ts index ae3e6b71b8..f34bf3488c 100644 --- a/src/resources/user/user.ts +++ b/src/resources/user/user.ts @@ -103,6 +103,12 @@ User.Subscriptions = Subscriptions; User.Tokens = Tokens; export declare namespace User { + export { + type UserEditResponse as UserEditResponse, + type UserGetResponse as UserGetResponse, + type UserEditParams as UserEditParams, + }; + export { AuditLogs as AuditLogs, type AuditLogListParams as AuditLogListParams }; export { Billing as Billing }; diff --git a/src/resources/waiting-rooms/waiting-rooms.ts b/src/resources/waiting-rooms/waiting-rooms.ts index 1455d454ed..b598fd240d 100644 --- a/src/resources/waiting-rooms/waiting-rooms.ts +++ b/src/resources/waiting-rooms/waiting-rooms.ts @@ -2187,6 +2187,7 @@ export interface WaitingRoomGetParams { zone_id: string; } +WaitingRooms.WaitingRoomsV4PagePaginationArray = WaitingRoomsV4PagePaginationArray; WaitingRooms.Page = Page; WaitingRooms.Events = Events; WaitingRooms.EventsV4PagePaginationArray = EventsV4PagePaginationArray; @@ -2196,6 +2197,21 @@ WaitingRooms.Statuses = Statuses; WaitingRooms.Settings = Settings; export declare namespace WaitingRooms { + export { + type AdditionalRoutes as AdditionalRoutes, + type CookieAttributes as CookieAttributes, + type Query as Query, + type WaitingRoom as WaitingRoom, + type WaitingRoomDeleteResponse as WaitingRoomDeleteResponse, + WaitingRoomsV4PagePaginationArray as WaitingRoomsV4PagePaginationArray, + type WaitingRoomCreateParams as WaitingRoomCreateParams, + type WaitingRoomUpdateParams as WaitingRoomUpdateParams, + type WaitingRoomListParams as WaitingRoomListParams, + type WaitingRoomDeleteParams as WaitingRoomDeleteParams, + type WaitingRoomEditParams as WaitingRoomEditParams, + type WaitingRoomGetParams as WaitingRoomGetParams, + }; + export { Page as Page, type PagePreviewResponse as PagePreviewResponse, diff --git a/src/resources/workers/workers.ts b/src/resources/workers/workers.ts index ac2af4ff5c..97e5f97669 100644 --- a/src/resources/workers/workers.ts +++ b/src/resources/workers/workers.ts @@ -318,6 +318,12 @@ Workers.DomainsSinglePage = DomainsSinglePage; Workers.Subdomains = Subdomains; export declare namespace Workers { + export { + type MigrationStep as MigrationStep, + type SingleStepMigration as SingleStepMigration, + type WorkerMetadata as WorkerMetadata, + }; + export { Routes as Routes, type RouteCreateResponse as RouteCreateResponse, diff --git a/src/resources/workflows/workflows.ts b/src/resources/workflows/workflows.ts index 94135286d0..be4c377c71 100644 --- a/src/resources/workflows/workflows.ts +++ b/src/resources/workflows/workflows.ts @@ -208,6 +208,7 @@ export interface WorkflowGetParams { account_id: string; } +Workflows.WorkflowListResponsesV4PagePaginationArray = WorkflowListResponsesV4PagePaginationArray; Workflows.Instances = InstancesAPIInstances; Workflows.InstanceListResponsesV4PagePaginationArray = InstanceListResponsesV4PagePaginationArray; Workflows.InstanceBulkResponsesSinglePage = InstanceBulkResponsesSinglePage; @@ -215,6 +216,16 @@ Workflows.Versions = Versions; Workflows.VersionListResponsesV4PagePaginationArray = VersionListResponsesV4PagePaginationArray; export declare namespace Workflows { + export { + type WorkflowUpdateResponse as WorkflowUpdateResponse, + type WorkflowListResponse as WorkflowListResponse, + type WorkflowGetResponse as WorkflowGetResponse, + WorkflowListResponsesV4PagePaginationArray as WorkflowListResponsesV4PagePaginationArray, + type WorkflowUpdateParams as WorkflowUpdateParams, + type WorkflowListParams as WorkflowListParams, + type WorkflowGetParams as WorkflowGetParams, + }; + export { InstancesAPIInstances as Instances, type InstanceCreateResponse as InstanceCreateResponse, diff --git a/src/resources/zaraz/zaraz.ts b/src/resources/zaraz/zaraz.ts index eafc626164..9c2ea51f7b 100644 --- a/src/resources/zaraz/zaraz.ts +++ b/src/resources/zaraz/zaraz.ts @@ -142,6 +142,12 @@ Zaraz.Publish = Publish; Zaraz.WorkflowResource = WorkflowResource; export declare namespace Zaraz { + export { + type ButtonTextTranslation as ButtonTextTranslation, + type NeoEvent as NeoEvent, + type ZarazUpdateParams as ZarazUpdateParams, + }; + export { Config as Config, type Configuration as Configuration, diff --git a/src/resources/zones/zones.ts b/src/resources/zones/zones.ts index bdcb5c22d3..daaa1c1f00 100644 --- a/src/resources/zones/zones.ts +++ b/src/resources/zones/zones.ts @@ -493,6 +493,7 @@ export interface ZoneGetParams { zone_id: string; } +Zones.ZonesV4PagePaginationArray = ZonesV4PagePaginationArray; Zones.ActivationCheck = ActivationCheck; Zones.Settings = Settings; Zones.CustomNameservers = CustomNameservers; @@ -505,6 +506,18 @@ Zones.RatePlans = RatePlans; Zones.RatePlanGetResponsesSinglePage = RatePlanGetResponsesSinglePage; export declare namespace Zones { + export { + type Type as Type, + type Zone as Zone, + type ZoneDeleteResponse as ZoneDeleteResponse, + ZonesV4PagePaginationArray as ZonesV4PagePaginationArray, + type ZoneCreateParams as ZoneCreateParams, + type ZoneListParams as ZoneListParams, + type ZoneDeleteParams as ZoneDeleteParams, + type ZoneEditParams as ZoneEditParams, + type ZoneGetParams as ZoneGetParams, + }; + export { ActivationCheck as ActivationCheck, type ActivationCheckTriggerResponse as ActivationCheckTriggerResponse, From 98d0cb8d2a9f3a13f951cc8173cdd557194e2d9c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 25 Mar 2025 19:28:11 +0000 Subject: [PATCH 098/461] feat(api): api update (#2555) --- .stats.yml | 2 +- src/resources/queues/queues.ts | 10 ++++++++++ tests/api-resources/queues/queues.test.ts | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2448223b57..5f048ca19a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-13efab80a5f3baee3372af2aa9dfbb61e9f695c3ba695285de3a066fb5f0e4ae.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-acd302a2a599b84e800c5bdfa4e3b532fc732316df4f88044e5b0a41295800ac.yml diff --git a/src/resources/queues/queues.ts b/src/resources/queues/queues.ts index 1282d84f82..1472821092 100644 --- a/src/resources/queues/queues.ts +++ b/src/resources/queues/queues.ts @@ -129,6 +129,11 @@ export namespace Queue { */ delivery_delay?: number; + /** + * Indicates if message delivery to consumers is currently paused. + */ + delivery_paused?: boolean; + /** * Number of seconds after which an unconsumed message will be delayed. */ @@ -183,6 +188,11 @@ export namespace QueueUpdateParams { */ delivery_delay?: number; + /** + * Indicates if message delivery to consumers is currently paused. + */ + delivery_paused?: boolean; + /** * Number of seconds after which an unconsumed message will be delayed. */ diff --git a/tests/api-resources/queues/queues.test.ts b/tests/api-resources/queues/queues.test.ts index 3a24ff3fbd..96a6b93ac3 100644 --- a/tests/api-resources/queues/queues.test.ts +++ b/tests/api-resources/queues/queues.test.ts @@ -48,7 +48,7 @@ describe('resource queues', () => { const response = await client.queues.update('023e105f4ecef8ad9ca31a8372d0c353', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', queue_name: 'example-queue', - settings: { delivery_delay: 5, message_retention_period: 345600 }, + settings: { delivery_delay: 5, delivery_paused: true, message_retention_period: 345600 }, }); }); From ac849e29459cb8f79f9d1bef19e6a758bfb408cf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 25 Mar 2025 19:31:51 +0000 Subject: [PATCH 099/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 5f048ca19a..10e7c0bf33 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-acd302a2a599b84e800c5bdfa4e3b532fc732316df4f88044e5b0a41295800ac.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1465a39b3ed382b3f0dc9fee4694559816b3387c75591dcbc379aeb28cc004b5.yml From 6f4ef9d669b06e212f624cf34427614e7336c9a7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 25 Mar 2025 23:08:57 +0000 Subject: [PATCH 100/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 10e7c0bf33..7de797394a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1465a39b3ed382b3f0dc9fee4694559816b3387c75591dcbc379aeb28cc004b5.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-939b34468f849b9e37212abad514a68c78ae02b4f26d00db73fd3e63468b7174.yml From 95e0f7b20799502f0809ca5e3f60443cac8fea5f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 25 Mar 2025 23:40:08 +0000 Subject: [PATCH 101/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 7de797394a..f512df4a1a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-939b34468f849b9e37212abad514a68c78ae02b4f26d00db73fd3e63468b7174.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7c5dffcd62c967e6fa23a4f90521ede2605166912526af87e8c9a20b3c3c66a2.yml From 758ad785334531b5ea934808d25531be39e7dda2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 25 Mar 2025 23:54:11 +0000 Subject: [PATCH 102/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index f512df4a1a..a14752c390 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7c5dffcd62c967e6fa23a4f90521ede2605166912526af87e8c9a20b3c3c66a2.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d7058cc45b39ce1939a8e3bee41f649b1aeb7d08c2f8879cc942b94f77f82de3.yml From 4fea462a78c5665f0ce3adfda76a493fc2f3fc9f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 25 Mar 2025 23:57:46 +0000 Subject: [PATCH 103/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index a14752c390..f512df4a1a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1658 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d7058cc45b39ce1939a8e3bee41f649b1aeb7d08c2f8879cc942b94f77f82de3.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7c5dffcd62c967e6fa23a4f90521ede2605166912526af87e8c9a20b3c3c66a2.yml From 90d54df6609f52746001c087f38720d8d6045f13 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Mar 2025 03:58:14 +0000 Subject: [PATCH 104/461] feat(queues): add support for purge (#2556) --- .stats.yml | 2 +- api.md | 12 ++++ src/resources/queues/index.ts | 1 + src/resources/queues/purge.ts | 79 +++++++++++++++++++++++ src/resources/queues/queues.ts | 61 +++++++++++++++++ tests/api-resources/queues/purge.test.ts | 51 +++++++++++++++ tests/api-resources/queues/queues.test.ts | 21 ++++++ 7 files changed, 226 insertions(+), 1 deletion(-) create mode 100644 src/resources/queues/purge.ts create mode 100644 tests/api-resources/queues/purge.test.ts diff --git a/.stats.yml b/.stats.yml index f512df4a1a..733ad9c905 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ -configured_endpoints: 1658 +configured_endpoints: 1661 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7c5dffcd62c967e6fa23a4f90521ede2605166912526af87e8c9a20b3c3c66a2.yml diff --git a/api.md b/api.md index 24aab18a23..56a892c0cb 100644 --- a/api.md +++ b/api.md @@ -2294,6 +2294,7 @@ Methods: - client.queues.update(queueId, { ...params }) -> Queue - client.queues.list({ ...params }) -> QueuesSinglePage - client.queues.delete(queueId, { ...params }) -> QueueDeleteResponse +- client.queues.edit(queueId, { ...params }) -> Queue - client.queues.get(queueId, { ...params }) -> Queue ## Consumers @@ -2322,6 +2323,17 @@ Methods: - client.queues.messages.ack(queueId, { ...params }) -> MessageAckResponse - client.queues.messages.pull(queueId, { ...params }) -> MessagePullResponsesSinglePage +## Purge + +Types: + +- PurgeStatusResponse + +Methods: + +- client.queues.purge.start(queueId, { ...params }) -> Queue +- client.queues.purge.status(queueId, { ...params }) -> PurgeStatusResponse + # APIGateway ## Configurations diff --git a/src/resources/queues/index.ts b/src/resources/queues/index.ts index b4a32ba18e..29bbe25988 100644 --- a/src/resources/queues/index.ts +++ b/src/resources/queues/index.ts @@ -18,4 +18,5 @@ export { type MessageAckParams, type MessagePullParams, } from './messages'; +export { Purge, type PurgeStatusResponse, type PurgeStartParams, type PurgeStatusParams } from './purge'; export { Queues } from './queues'; diff --git a/src/resources/queues/purge.ts b/src/resources/queues/purge.ts new file mode 100644 index 0000000000..3259660f35 --- /dev/null +++ b/src/resources/queues/purge.ts @@ -0,0 +1,79 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../resource'; +import * as Core from '../../core'; +import * as QueuesAPI from './queues'; + +export class Purge extends APIResource { + /** + * Deletes all messages from the Queue. + */ + start( + queueId: string, + params: PurgeStartParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, ...body } = params; + return ( + this._client.post(`/accounts/${account_id}/queues/${queueId}/purge`, { + body, + ...options, + }) as Core.APIPromise<{ result: QueuesAPI.Queue }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Get details about a Queue's purge status. + */ + status( + queueId: string, + params: PurgeStatusParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id } = params; + return ( + this._client.get(`/accounts/${account_id}/queues/${queueId}/purge`, options) as Core.APIPromise<{ + result: PurgeStatusResponse; + }> + )._thenUnwrap((obj) => obj.result); + } +} + +export interface PurgeStatusResponse { + /** + * Indicates if the last purge operation completed successfully. + */ + completed?: string; + + /** + * Timestamp when the last purge operation started. + */ + started_at?: string; +} + +export interface PurgeStartParams { + /** + * Path param: A Resource identifier. + */ + account_id: string; + + /** + * Body param: Confimation that all messages will be deleted permanently. + */ + delete_messages_permanently?: boolean; +} + +export interface PurgeStatusParams { + /** + * A Resource identifier. + */ + account_id: string; +} + +export declare namespace Purge { + export { + type PurgeStatusResponse as PurgeStatusResponse, + type PurgeStartParams as PurgeStartParams, + type PurgeStatusParams as PurgeStatusParams, + }; +} diff --git a/src/resources/queues/queues.ts b/src/resources/queues/queues.ts index 1472821092..851d66a154 100644 --- a/src/resources/queues/queues.ts +++ b/src/resources/queues/queues.ts @@ -23,11 +23,14 @@ import { MessagePullResponsesSinglePage, Messages, } from './messages'; +import * as PurgeAPI from './purge'; +import { Purge, PurgeStartParams, PurgeStatusParams, PurgeStatusResponse } from './purge'; import { SinglePage } from '../../pagination'; export class Queues extends APIResource { consumers: ConsumersAPI.Consumers = new ConsumersAPI.Consumers(this._client); messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client); + purge: PurgeAPI.Purge = new PurgeAPI.Purge(this._client); /** * Create a new queue @@ -75,6 +78,19 @@ export class Queues extends APIResource { return this._client.delete(`/accounts/${account_id}/queues/${queueId}`, options); } + /** + * Updates a Queue. + */ + edit(queueId: string, params: QueueEditParams, options?: Core.RequestOptions): Core.APIPromise { + const { account_id, ...body } = params; + return ( + this._client.patch(`/accounts/${account_id}/queues/${queueId}`, { + body, + ...options, + }) as Core.APIPromise<{ result: Queue }> + )._thenUnwrap((obj) => obj.result); + } + /** * Get details about a specific queue. */ @@ -214,6 +230,42 @@ export interface QueueDeleteParams { account_id: string; } +export interface QueueEditParams { + /** + * Path param: A Resource identifier. + */ + account_id: string; + + /** + * Body param: + */ + queue_name?: string; + + /** + * Body param: + */ + settings?: QueueEditParams.Settings; +} + +export namespace QueueEditParams { + export interface Settings { + /** + * Number of seconds to delay delivery of all messages to consumers. + */ + delivery_delay?: number; + + /** + * Indicates if message delivery to consumers is currently paused. + */ + delivery_paused?: boolean; + + /** + * Number of seconds after which an unconsumed message will be delayed. + */ + message_retention_period?: number; + } +} + export interface QueueGetParams { /** * A Resource identifier. @@ -226,6 +278,7 @@ Queues.Consumers = Consumers; Queues.ConsumersSinglePage = ConsumersSinglePage; Queues.Messages = Messages; Queues.MessagePullResponsesSinglePage = MessagePullResponsesSinglePage; +Queues.Purge = Purge; export declare namespace Queues { export { @@ -236,6 +289,7 @@ export declare namespace Queues { type QueueUpdateParams as QueueUpdateParams, type QueueListParams as QueueListParams, type QueueDeleteParams as QueueDeleteParams, + type QueueEditParams as QueueEditParams, type QueueGetParams as QueueGetParams, }; @@ -258,4 +312,11 @@ export declare namespace Queues { type MessageAckParams as MessageAckParams, type MessagePullParams as MessagePullParams, }; + + export { + Purge as Purge, + type PurgeStatusResponse as PurgeStatusResponse, + type PurgeStartParams as PurgeStartParams, + type PurgeStatusParams as PurgeStatusParams, + }; } diff --git a/tests/api-resources/queues/purge.test.ts b/tests/api-resources/queues/purge.test.ts new file mode 100644 index 0000000000..7c193be811 --- /dev/null +++ b/tests/api-resources/queues/purge.test.ts @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import Cloudflare from 'cloudflare'; +import { Response } from 'node-fetch'; + +const client = new Cloudflare({ + apiKey: '144c9defac04969c7bfad8efaa8ea194', + apiEmail: 'user@example.com', + baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', +}); + +describe('resource purge', () => { + test('start: only required params', async () => { + const responsePromise = client.queues.purge.start('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('start: required and optional params', async () => { + const response = await client.queues.purge.start('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + delete_messages_permanently: true, + }); + }); + + test('status: only required params', async () => { + const responsePromise = client.queues.purge.status('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('status: required and optional params', async () => { + const response = await client.queues.purge.status('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + }); + }); +}); diff --git a/tests/api-resources/queues/queues.test.ts b/tests/api-resources/queues/queues.test.ts index 96a6b93ac3..0c290603e1 100644 --- a/tests/api-resources/queues/queues.test.ts +++ b/tests/api-resources/queues/queues.test.ts @@ -86,6 +86,27 @@ describe('resource queues', () => { }); }); + test('edit: only required params', async () => { + const responsePromise = client.queues.edit('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('edit: required and optional params', async () => { + const response = await client.queues.edit('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + queue_name: 'example-queue', + settings: { delivery_delay: 5, delivery_paused: true, message_retention_period: 345600 }, + }); + }); + test('get: only required params', async () => { const responsePromise = client.queues.get('023e105f4ecef8ad9ca31a8372d0c353', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', From d837cd3b7cb76f0776d9173e4ef9bcb944e9f3d3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Mar 2025 04:03:12 +0000 Subject: [PATCH 105/461] feat(kv): add support for bulk get endpoints (#2557) --- .stats.yml | 2 +- api.md | 4 +- src/resources/kv/index.ts | 2 + src/resources/kv/kv.ts | 4 + src/resources/kv/namespaces/analytics.ts | 5 - src/resources/kv/namespaces/index.ts | 3 +- src/resources/kv/namespaces/namespaces.ts | 96 +++++++++++++++++-- .../kv/namespaces/namespaces.test.ts | 23 +++++ 8 files changed, 121 insertions(+), 18 deletions(-) delete mode 100644 src/resources/kv/namespaces/analytics.ts diff --git a/.stats.yml b/.stats.yml index 733ad9c905..831c25f3ae 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ -configured_endpoints: 1661 +configured_endpoints: 1662 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7c5dffcd62c967e6fa23a4f90521ede2605166912526af87e8c9a20b3c3c66a2.yml diff --git a/api.md b/api.md index 56a892c0cb..b91d0b5b37 100644 --- a/api.md +++ b/api.md @@ -2212,6 +2212,7 @@ Types: - NamespaceUpdateResponse - NamespaceDeleteResponse - NamespaceBulkDeleteResponse +- NamespaceBulkGetResponse - NamespaceBulkUpdateResponse Methods: @@ -2221,11 +2222,10 @@ Methods: - client.kv.namespaces.list({ ...params }) -> NamespacesV4PagePaginationArray - client.kv.namespaces.delete(namespaceId, { ...params }) -> NamespaceDeleteResponse | null - client.kv.namespaces.bulkDelete(namespaceId, [ ...body ]) -> NamespaceBulkDeleteResponse | null +- client.kv.namespaces.bulkGet(namespaceId, { ...params }) -> NamespaceBulkGetResponse | null - client.kv.namespaces.bulkUpdate(namespaceId, [ ...body ]) -> NamespaceBulkUpdateResponse | null - client.kv.namespaces.get(namespaceId, { ...params }) -> Namespace -### Analytics - ### Keys Types: diff --git a/src/resources/kv/index.ts b/src/resources/kv/index.ts index a8c5f15acb..1f06e12660 100644 --- a/src/resources/kv/index.ts +++ b/src/resources/kv/index.ts @@ -8,12 +8,14 @@ export { type NamespaceUpdateResponse, type NamespaceDeleteResponse, type NamespaceBulkDeleteResponse, + type NamespaceBulkGetResponse, type NamespaceBulkUpdateResponse, type NamespaceCreateParams, type NamespaceUpdateParams, type NamespaceListParams, type NamespaceDeleteParams, type NamespaceBulkDeleteParams, + type NamespaceBulkGetParams, type NamespaceBulkUpdateParams, type NamespaceGetParams, } from './namespaces/index'; diff --git a/src/resources/kv/kv.ts b/src/resources/kv/kv.ts index 15034b22f4..ac6c0b3d82 100644 --- a/src/resources/kv/kv.ts +++ b/src/resources/kv/kv.ts @@ -6,6 +6,8 @@ import { Namespace, NamespaceBulkDeleteParams, NamespaceBulkDeleteResponse, + NamespaceBulkGetParams, + NamespaceBulkGetResponse, NamespaceBulkUpdateParams, NamespaceBulkUpdateResponse, NamespaceCreateParams, @@ -33,6 +35,7 @@ export declare namespace KV { type NamespaceUpdateResponse as NamespaceUpdateResponse, type NamespaceDeleteResponse as NamespaceDeleteResponse, type NamespaceBulkDeleteResponse as NamespaceBulkDeleteResponse, + type NamespaceBulkGetResponse as NamespaceBulkGetResponse, type NamespaceBulkUpdateResponse as NamespaceBulkUpdateResponse, NamespacesV4PagePaginationArray as NamespacesV4PagePaginationArray, type NamespaceCreateParams as NamespaceCreateParams, @@ -40,6 +43,7 @@ export declare namespace KV { type NamespaceListParams as NamespaceListParams, type NamespaceDeleteParams as NamespaceDeleteParams, type NamespaceBulkDeleteParams as NamespaceBulkDeleteParams, + type NamespaceBulkGetParams as NamespaceBulkGetParams, type NamespaceBulkUpdateParams as NamespaceBulkUpdateParams, type NamespaceGetParams as NamespaceGetParams, }; diff --git a/src/resources/kv/namespaces/analytics.ts b/src/resources/kv/namespaces/analytics.ts deleted file mode 100644 index afe4cb0923..0000000000 --- a/src/resources/kv/namespaces/analytics.ts +++ /dev/null @@ -1,5 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -import { APIResource } from '../../../resource'; - -export class Analytics extends APIResource {} diff --git a/src/resources/kv/namespaces/index.ts b/src/resources/kv/namespaces/index.ts index 07ee3826d6..ddd7596222 100644 --- a/src/resources/kv/namespaces/index.ts +++ b/src/resources/kv/namespaces/index.ts @@ -1,6 +1,5 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -export { Analytics } from './analytics'; export { KeysCursorLimitPagination, Keys, type Key, type KeyListParams } from './keys'; export { Metadata, type MetadataGetResponse, type MetadataGetParams } from './metadata'; export { @@ -10,12 +9,14 @@ export { type NamespaceUpdateResponse, type NamespaceDeleteResponse, type NamespaceBulkDeleteResponse, + type NamespaceBulkGetResponse, type NamespaceBulkUpdateResponse, type NamespaceCreateParams, type NamespaceUpdateParams, type NamespaceListParams, type NamespaceDeleteParams, type NamespaceBulkDeleteParams, + type NamespaceBulkGetParams, type NamespaceBulkUpdateParams, type NamespaceGetParams, } from './namespaces'; diff --git a/src/resources/kv/namespaces/namespaces.ts b/src/resources/kv/namespaces/namespaces.ts index 5298aee903..f1b4609be8 100644 --- a/src/resources/kv/namespaces/namespaces.ts +++ b/src/resources/kv/namespaces/namespaces.ts @@ -2,8 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as AnalyticsAPI from './analytics'; -import { Analytics } from './analytics'; import * as KeysAPI from './keys'; import { Key, KeyListParams, Keys, KeysCursorLimitPagination } from './keys'; import * as MetadataAPI from './metadata'; @@ -15,12 +13,11 @@ import { ValueGetParams, ValueUpdateParams, ValueUpdateResponse, - Values, + Values as ValuesAPIValues, } from './values'; import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../../pagination'; export class Namespaces extends APIResource { - analytics: AnalyticsAPI.Analytics = new AnalyticsAPI.Analytics(this._client); keys: KeysAPI.Keys = new KeysAPI.Keys(this._client); metadata: MetadataAPI.Metadata = new MetadataAPI.Metadata(this._client); values: ValuesAPI.Values = new ValuesAPI.Values(this._client); @@ -107,6 +104,26 @@ export class Namespaces extends APIResource { )._thenUnwrap((obj) => obj.result); } + /** + * Get multiple KV pairs from the namespace. Body should contain keys to retrieve + * at most 100. Keys must contain text-based values. If value is json, it can be + * requested to return in JSON, instead of string. Metadata can be return if + * withMetadata is true. + */ + bulkGet( + namespaceId: string, + params: NamespaceBulkGetParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, ...body } = params; + return ( + this._client.post(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/bulk/get`, { + body, + ...options, + }) as Core.APIPromise<{ result: NamespaceBulkGetResponse | null }> + )._thenUnwrap((obj) => obj.result); + } + /** * Write multiple keys and values at once. Body should be an array of up to 10,000 * key-value pairs to be stored, along with optional expiration information. @@ -188,6 +205,46 @@ export interface NamespaceBulkDeleteResponse { unsuccessful_keys?: Array; } +export type NamespaceBulkGetResponse = + | NamespaceBulkGetResponse.WorkersKVBulkGetResult + | NamespaceBulkGetResponse.WorkersKVBulkGetResultWithMetadata; + +export namespace NamespaceBulkGetResponse { + export interface WorkersKVBulkGetResult { + /** + * Requested keys are paired with their values in an object + */ + values?: Record>; + } + + export interface WorkersKVBulkGetResultWithMetadata { + /** + * Requested keys are paired with their values and metadata in an object + */ + values?: Record; + } + + export namespace WorkersKVBulkGetResultWithMetadata { + export interface Values { + /** + * The metadata associated with the key + */ + metadata: Record | null; + + /** + * The value associated with the key + */ + value: string | number | boolean | Record; + + /** + * The time, measured in number of seconds since the UNIX epoch, at which the key + * should expire. + */ + expiration?: number; + } + } +} + export interface NamespaceBulkUpdateResponse { /** * Number of keys successfully updated @@ -260,6 +317,28 @@ export interface NamespaceBulkDeleteParams { body: Array; } +export interface NamespaceBulkGetParams { + /** + * Path param: Identifier + */ + account_id: string; + + /** + * Body param: Array of keys to retrieve (maximum 100) + */ + keys: Array; + + /** + * Body param: Whether to parse JSON values in the response + */ + type?: 'text' | 'json'; + + /** + * Body param: Whether to include metadata in the response + */ + withMetadata?: boolean; +} + export interface NamespaceBulkUpdateParams { /** * Path param: Identifier @@ -319,11 +398,10 @@ export interface NamespaceGetParams { } Namespaces.NamespacesV4PagePaginationArray = NamespacesV4PagePaginationArray; -Namespaces.Analytics = Analytics; Namespaces.Keys = Keys; Namespaces.KeysCursorLimitPagination = KeysCursorLimitPagination; Namespaces.Metadata = Metadata; -Namespaces.Values = Values; +Namespaces.Values = ValuesAPIValues; export declare namespace Namespaces { export { @@ -331,6 +409,7 @@ export declare namespace Namespaces { type NamespaceUpdateResponse as NamespaceUpdateResponse, type NamespaceDeleteResponse as NamespaceDeleteResponse, type NamespaceBulkDeleteResponse as NamespaceBulkDeleteResponse, + type NamespaceBulkGetResponse as NamespaceBulkGetResponse, type NamespaceBulkUpdateResponse as NamespaceBulkUpdateResponse, NamespacesV4PagePaginationArray as NamespacesV4PagePaginationArray, type NamespaceCreateParams as NamespaceCreateParams, @@ -338,12 +417,11 @@ export declare namespace Namespaces { type NamespaceListParams as NamespaceListParams, type NamespaceDeleteParams as NamespaceDeleteParams, type NamespaceBulkDeleteParams as NamespaceBulkDeleteParams, + type NamespaceBulkGetParams as NamespaceBulkGetParams, type NamespaceBulkUpdateParams as NamespaceBulkUpdateParams, type NamespaceGetParams as NamespaceGetParams, }; - export { Analytics as Analytics }; - export { Keys as Keys, type Key as Key, @@ -358,7 +436,7 @@ export declare namespace Namespaces { }; export { - Values as Values, + ValuesAPIValues as Values, type ValueUpdateResponse as ValueUpdateResponse, type ValueDeleteResponse as ValueDeleteResponse, type ValueUpdateParams as ValueUpdateParams, diff --git a/tests/api-resources/kv/namespaces/namespaces.test.ts b/tests/api-resources/kv/namespaces/namespaces.test.ts index d69492f799..c3aa98e19b 100644 --- a/tests/api-resources/kv/namespaces/namespaces.test.ts +++ b/tests/api-resources/kv/namespaces/namespaces.test.ts @@ -113,6 +113,29 @@ describe('resource namespaces', () => { }); }); + test('bulkGet: only required params', async () => { + const responsePromise = client.kv.namespaces.bulkGet('0f2ac74b498b48028cb68387c421e279', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + keys: ['My-Key'], + }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('bulkGet: required and optional params', async () => { + const response = await client.kv.namespaces.bulkGet('0f2ac74b498b48028cb68387c421e279', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + keys: ['My-Key'], + type: 'text', + withMetadata: true, + }); + }); + test('bulkUpdate: only required params', async () => { const responsePromise = client.kv.namespaces.bulkUpdate('0f2ac74b498b48028cb68387c421e279', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', From f3e72d007702efb67ca234274e2a758dde6bc5e2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Mar 2025 06:09:04 +0000 Subject: [PATCH 106/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 831c25f3ae..c6e86ab74e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7c5dffcd62c967e6fa23a4f90521ede2605166912526af87e8c9a20b3c3c66a2.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d7058cc45b39ce1939a8e3bee41f649b1aeb7d08c2f8879cc942b94f77f82de3.yml From 98f1b24b41c7d4a369acdf163a87e816ef43cc48 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Mar 2025 06:13:06 +0000 Subject: [PATCH 107/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index c6e86ab74e..a9f7951202 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d7058cc45b39ce1939a8e3bee41f649b1aeb7d08c2f8879cc942b94f77f82de3.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-25a72d570307d47f3166e831fb8e21b28374bbb1ccb69be0232ac519bb283369.yml From 3330725a22fa5d2315310a9552e0a79e95b9e5fd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Mar 2025 09:55:23 +0000 Subject: [PATCH 108/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index a9f7951202..4c0db03b77 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-25a72d570307d47f3166e831fb8e21b28374bbb1ccb69be0232ac519bb283369.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-16ebe3be82c8beb607420aed4675ca2aa2a14c5b8c2ac2a60db7772e94b7fba2.yml From dd335454e109438e1c3713b855c9084b7bee6943 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Mar 2025 14:31:50 +0000 Subject: [PATCH 109/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 4c0db03b77..a6fb4a94eb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-16ebe3be82c8beb607420aed4675ca2aa2a14c5b8c2ac2a60db7772e94b7fba2.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1c762872065d2896fca8049b489ac58bbc7f02a163fc175824fc040f525b9495.yml From 0ff361bae34fe89fd4c066be9b67c75258bc9d4c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Mar 2025 14:35:23 +0000 Subject: [PATCH 110/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index a6fb4a94eb..6130984ec0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1c762872065d2896fca8049b489ac58bbc7f02a163fc175824fc040f525b9495.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-379ac74e1a29cb5436455393740011b944a1d9c3b144326b77a3872fb2dc1865.yml From 20325548026a5142b662ce36d851f08e582f0f09 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Mar 2025 17:37:09 +0000 Subject: [PATCH 111/461] codegen metadata --- .stats.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.stats.yml b/.stats.yml index 6130984ec0..a86f84141d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,4 @@ configured_endpoints: 1662 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-379ac74e1a29cb5436455393740011b944a1d9c3b144326b77a3872fb2dc1865.yml +openapi_spec_hash: ed2a249fc3cf02eaab2accaa47e67fe1 +config_hash: 889730175b003f94ada58b7860299ea1 From 5f0c8fba9b25974957df1652a7a8732f45888751 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Mar 2025 17:53:28 +0000 Subject: [PATCH 112/461] feat(api): api update (#2558) --- .stats.yml | 4 ++-- src/resources/logpush/jobs.ts | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.stats.yml b/.stats.yml index a86f84141d..86e95d7614 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-379ac74e1a29cb5436455393740011b944a1d9c3b144326b77a3872fb2dc1865.yml -openapi_spec_hash: ed2a249fc3cf02eaab2accaa47e67fe1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d52ee1d2da0c839fb35df04c7f2e9980e4291156170ff2d24d2b87195b75e736.yml +openapi_spec_hash: 28649f5f2ccc244340d10f8ed2cf5800 config_hash: 889730175b003f94ada58b7860299ea1 diff --git a/src/resources/logpush/jobs.ts b/src/resources/logpush/jobs.ts index 33be8242c4..ae7972b8d4 100644 --- a/src/resources/logpush/jobs.ts +++ b/src/resources/logpush/jobs.ts @@ -363,10 +363,10 @@ export interface OutputOptions { record_suffix?: string | null; /** - * String to use as template for each record instead of the default comma-separated - * list. All fields used in the template must be present in `field_names` as well, - * otherwise they will end up as null. Format as a Go `text/template` without any - * standard functions, like conditionals, loops, sub-templates, etc. + * String to use as template for each record instead of the default json key value + * mapping. All fields used in the template must be present in `field_names` as + * well, otherwise they will end up as null. Format as a Go `text/template` without + * any standard functions, like conditionals, loops, sub-templates, etc. */ record_template?: string | null; @@ -439,10 +439,10 @@ export interface OutputOptionsParam { record_suffix?: string | null; /** - * String to use as template for each record instead of the default comma-separated - * list. All fields used in the template must be present in `field_names` as well, - * otherwise they will end up as null. Format as a Go `text/template` without any - * standard functions, like conditionals, loops, sub-templates, etc. + * String to use as template for each record instead of the default json key value + * mapping. All fields used in the template must be present in `field_names` as + * well, otherwise they will end up as null. Format as a Go `text/template` without + * any standard functions, like conditionals, loops, sub-templates, etc. */ record_template?: string | null; From 270887bbd1f3d6d3d000ac8e0617b0c1b1979b43 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Mar 2025 18:07:46 +0000 Subject: [PATCH 113/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 86e95d7614..0e0bfe16ac 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d52ee1d2da0c839fb35df04c7f2e9980e4291156170ff2d24d2b87195b75e736.yml -openapi_spec_hash: 28649f5f2ccc244340d10f8ed2cf5800 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2f2f810e065becf10c3ac9fc29bc057ea4ca3445abd6bb1f827cf176978d77fa.yml +openapi_spec_hash: d07b513f32d0bcf66e3f834ffaf0efba config_hash: 889730175b003f94ada58b7860299ea1 From 9f7aa35b2ebfbc098fcd3da49ff83d1634ce23fb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Mar 2025 18:47:50 +0000 Subject: [PATCH 114/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0e0bfe16ac..0a01485989 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2f2f810e065becf10c3ac9fc29bc057ea4ca3445abd6bb1f827cf176978d77fa.yml -openapi_spec_hash: d07b513f32d0bcf66e3f834ffaf0efba +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0dd43ed104cbaee117f2e600bf594295e7dacacb8f3048bf402ad0adedbc21ff.yml +openapi_spec_hash: 931d3de67b3e80f82285b5f43aa771f7 config_hash: 889730175b003f94ada58b7860299ea1 From 6b4fe0005ba10fb1fbb7bfbd56bf7a5f37f6cb93 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Mar 2025 19:03:58 +0000 Subject: [PATCH 115/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0a01485989..7f58f5f8fa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0dd43ed104cbaee117f2e600bf594295e7dacacb8f3048bf402ad0adedbc21ff.yml -openapi_spec_hash: 931d3de67b3e80f82285b5f43aa771f7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-834177936f2fd0fae0253623ce5751885bc508703e34e2b8b00e3fc6784ac852.yml +openapi_spec_hash: 233b452db386b08b44b0b833b4b803d7 config_hash: 889730175b003f94ada58b7860299ea1 From ea8c15f06842d72c2321f55c3ffc9749d58f2db3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Mar 2025 19:29:25 +0000 Subject: [PATCH 116/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7f58f5f8fa..b3d2505bc8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-834177936f2fd0fae0253623ce5751885bc508703e34e2b8b00e3fc6784ac852.yml -openapi_spec_hash: 233b452db386b08b44b0b833b4b803d7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f11833d811c4d6db485959eae419e63e23bc8aa736ae88738269a93928bc464d.yml +openapi_spec_hash: 485399afc9116bfe453374d6b933a479 config_hash: 889730175b003f94ada58b7860299ea1 From 18b4ac8ebb4e115449cdcba481abe9adf988f298 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Mar 2025 21:56:19 +0000 Subject: [PATCH 117/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b3d2505bc8..0e0bfe16ac 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f11833d811c4d6db485959eae419e63e23bc8aa736ae88738269a93928bc464d.yml -openapi_spec_hash: 485399afc9116bfe453374d6b933a479 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2f2f810e065becf10c3ac9fc29bc057ea4ca3445abd6bb1f827cf176978d77fa.yml +openapi_spec_hash: d07b513f32d0bcf66e3f834ffaf0efba config_hash: 889730175b003f94ada58b7860299ea1 From 7c5317e58d6618e3779f6c3f24260569f7dead51 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 27 Mar 2025 01:08:24 +0000 Subject: [PATCH 118/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 0e0bfe16ac..80e51e1b69 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2f2f810e065becf10c3ac9fc29bc057ea4ca3445abd6bb1f827cf176978d77fa.yml openapi_spec_hash: d07b513f32d0bcf66e3f834ffaf0efba -config_hash: 889730175b003f94ada58b7860299ea1 +config_hash: a3bf1982efda6b8ff0a45660c1f0f516 From 188a4e04e4e5d15148e79d4aae4b35e4a2ff14fc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 27 Mar 2025 06:07:47 +0000 Subject: [PATCH 119/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 80e51e1b69..8db8c37704 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2f2f810e065becf10c3ac9fc29bc057ea4ca3445abd6bb1f827cf176978d77fa.yml -openapi_spec_hash: d07b513f32d0bcf66e3f834ffaf0efba +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2a22a758f52598858fdf7bc7e6e2f183388f10c74de80b97c78ae979fba09e8f.yml +openapi_spec_hash: f10396a6fd7f4c20adb1bafc9009319b config_hash: a3bf1982efda6b8ff0a45660c1f0f516 From 9246387a5ebfa34b7e9fe245ef411843b233cddb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 27 Mar 2025 09:40:45 +0000 Subject: [PATCH 120/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8db8c37704..c566888467 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2a22a758f52598858fdf7bc7e6e2f183388f10c74de80b97c78ae979fba09e8f.yml -openapi_spec_hash: f10396a6fd7f4c20adb1bafc9009319b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-47886b98c37ba3a22c76ce20542b50a299502e7fca1d5106aad1887da8888369.yml +openapi_spec_hash: 06684fa391b70e2cfe45e6d5120b9f09 config_hash: a3bf1982efda6b8ff0a45660c1f0f516 From 5854ca27ff9b83314cbb8448f98f2862d232a08f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 27 Mar 2025 15:54:02 +0000 Subject: [PATCH 121/461] feat(api): api update (#2559) --- .stats.yml | 4 ++-- src/resources/accounts/logs/audit.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index c566888467..7c19b8f59b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-47886b98c37ba3a22c76ce20542b50a299502e7fca1d5106aad1887da8888369.yml -openapi_spec_hash: 06684fa391b70e2cfe45e6d5120b9f09 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ea029e2953a0481670f18fce0bcac8f2f31cf760713fbec7935e259dafad5f46.yml +openapi_spec_hash: b9271a3dcb520471beb84b2db081e965 config_hash: a3bf1982efda6b8ff0a45660c1f0f516 diff --git a/src/resources/accounts/logs/audit.ts b/src/resources/accounts/logs/audit.ts index b396a10369..a401c9a6d6 100644 --- a/src/resources/accounts/logs/audit.ts +++ b/src/resources/accounts/logs/audit.ts @@ -140,7 +140,7 @@ export namespace AuditListResponse { /** * The type of actor. */ - type?: 'user' | 'account' | 'cloudflare-admin'; + type?: 'account' | 'cloudflare_admin' | 'system' | 'user'; } /** From 883b9b45d62a5e87c4ffaf4e301e23dd1f3ebc7b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 27 Mar 2025 17:44:19 +0000 Subject: [PATCH 122/461] chore(internal): codegen related update (#2560) --- src/_shims/index-deno.ts | 2 ++ src/_shims/index.d.ts | 2 ++ src/_shims/index.js | 6 +++++- src/_shims/index.mjs | 6 +++++- src/core.ts | 5 +++++ 5 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/_shims/index-deno.ts b/src/_shims/index-deno.ts index bb3c002433..30d6bd1631 100644 --- a/src/_shims/index-deno.ts +++ b/src/_shims/index-deno.ts @@ -108,3 +108,5 @@ export declare class FsReadStream extends Readable { const _ReadableStream = ReadableStream; type _ReadableStream = ReadableStream; export { _ReadableStream as ReadableStream }; + +export const init = () => {}; diff --git a/src/_shims/index.d.ts b/src/_shims/index.d.ts index a2107f4120..86f9ce6687 100644 --- a/src/_shims/index.d.ts +++ b/src/_shims/index.d.ts @@ -79,3 +79,5 @@ export function fileFromPath(path: string, options?: FileFromPathOptions): Promi export function fileFromPath(path: string, filename?: string, options?: FileFromPathOptions): Promise; export function isFsReadStream(value: any): value is FsReadStream; + +export const init: () => void; diff --git a/src/_shims/index.js b/src/_shims/index.js index 1704568bcd..aa84d90a98 100644 --- a/src/_shims/index.js +++ b/src/_shims/index.js @@ -3,7 +3,9 @@ */ const shims = require('./registry'); const auto = require('cloudflare/_shims/auto/runtime'); -if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true }); +exports.init = () => { + if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true }); +}; for (const property of Object.keys(shims)) { Object.defineProperty(exports, property, { get() { @@ -11,3 +13,5 @@ for (const property of Object.keys(shims)) { }, }); } + +exports.init(); diff --git a/src/_shims/index.mjs b/src/_shims/index.mjs index 1fdfc626bf..792ace2a55 100644 --- a/src/_shims/index.mjs +++ b/src/_shims/index.mjs @@ -3,5 +3,9 @@ */ import * as shims from './registry.mjs'; import * as auto from 'cloudflare/_shims/auto/runtime'; -if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true }); +export const init = () => { + if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true }); +}; export * from './registry.mjs'; + +init(); diff --git a/src/core.ts b/src/core.ts index a05b804af0..2026c16a32 100644 --- a/src/core.ts +++ b/src/core.ts @@ -16,7 +16,12 @@ import { type RequestInit, type Response, type HeadersInit, + init, } from './_shims/index'; + +// try running side effects outside of _shims/index to workaround https://github.com/vercel/next.js/issues/76881 +init(); + export { type Response }; import { BlobLike, isBlobLike, isMultipartBody } from './uploads'; export { From 49cb504fa138f34561299d1fb75afeae9346d320 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 27 Mar 2025 20:01:19 +0000 Subject: [PATCH 123/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7c19b8f59b..c7a560fb3b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ea029e2953a0481670f18fce0bcac8f2f31cf760713fbec7935e259dafad5f46.yml -openapi_spec_hash: b9271a3dcb520471beb84b2db081e965 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e4b9f5edb1a080561740120d2418d122731ef29e54de4d6f48f5e47834cd8863.yml +openapi_spec_hash: aa8f1f50bc2718e571d926389ca0461c config_hash: a3bf1982efda6b8ff0a45660c1f0f516 From 26f9b7423732e0b9dd7525f0f1fe8e5e9a76fb80 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 27 Mar 2025 22:54:39 +0000 Subject: [PATCH 124/461] feat(kv_namespace): bulk operations to `.keys` (#2561) --- .stats.yml | 2 +- api.md | 12 +- src/resources/kv/index.ts | 6 - src/resources/kv/kv.ts | 12 - src/resources/kv/namespaces/index.ts | 19 +- src/resources/kv/namespaces/keys.ts | 215 ++++++++++++++++ src/resources/kv/namespaces/namespaces.ts | 240 ++---------------- .../api-resources/kv/namespaces/keys.test.ts | 74 ++++++ .../kv/namespaces/namespaces.test.ts | 74 ------ 9 files changed, 329 insertions(+), 325 deletions(-) diff --git a/.stats.yml b/.stats.yml index c7a560fb3b..ceb3f10cf2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e4b9f5edb1a080561740120d2418d122731ef29e54de4d6f48f5e47834cd8863.yml openapi_spec_hash: aa8f1f50bc2718e571d926389ca0461c -config_hash: a3bf1982efda6b8ff0a45660c1f0f516 +config_hash: ba292e0053602e8a8923a35fb6c7c1e9 diff --git a/api.md b/api.md index b91d0b5b37..794bfafbaa 100644 --- a/api.md +++ b/api.md @@ -2211,9 +2211,6 @@ Types: - Namespace - NamespaceUpdateResponse - NamespaceDeleteResponse -- NamespaceBulkDeleteResponse -- NamespaceBulkGetResponse -- NamespaceBulkUpdateResponse Methods: @@ -2221,9 +2218,6 @@ Methods: - client.kv.namespaces.update(namespaceId, { ...params }) -> NamespaceUpdateResponse | null - client.kv.namespaces.list({ ...params }) -> NamespacesV4PagePaginationArray - client.kv.namespaces.delete(namespaceId, { ...params }) -> NamespaceDeleteResponse | null -- client.kv.namespaces.bulkDelete(namespaceId, [ ...body ]) -> NamespaceBulkDeleteResponse | null -- client.kv.namespaces.bulkGet(namespaceId, { ...params }) -> NamespaceBulkGetResponse | null -- client.kv.namespaces.bulkUpdate(namespaceId, [ ...body ]) -> NamespaceBulkUpdateResponse | null - client.kv.namespaces.get(namespaceId, { ...params }) -> Namespace ### Keys @@ -2231,10 +2225,16 @@ Methods: Types: - Key +- KeyBulkDeleteResponse +- KeyBulkGetResponse +- KeyBulkUpdateResponse Methods: - client.kv.namespaces.keys.list(namespaceId, { ...params }) -> KeysCursorLimitPagination +- client.kv.namespaces.keys.bulkDelete(namespaceId, [ ...body ]) -> KeyBulkDeleteResponse | null +- client.kv.namespaces.keys.bulkGet(namespaceId, { ...params }) -> KeyBulkGetResponse | null +- client.kv.namespaces.keys.bulkUpdate(namespaceId, [ ...body ]) -> KeyBulkUpdateResponse | null ### Metadata diff --git a/src/resources/kv/index.ts b/src/resources/kv/index.ts index 1f06e12660..50d601fc28 100644 --- a/src/resources/kv/index.ts +++ b/src/resources/kv/index.ts @@ -7,15 +7,9 @@ export { type Namespace, type NamespaceUpdateResponse, type NamespaceDeleteResponse, - type NamespaceBulkDeleteResponse, - type NamespaceBulkGetResponse, - type NamespaceBulkUpdateResponse, type NamespaceCreateParams, type NamespaceUpdateParams, type NamespaceListParams, type NamespaceDeleteParams, - type NamespaceBulkDeleteParams, - type NamespaceBulkGetParams, - type NamespaceBulkUpdateParams, type NamespaceGetParams, } from './namespaces/index'; diff --git a/src/resources/kv/kv.ts b/src/resources/kv/kv.ts index ac6c0b3d82..ffb01acea0 100644 --- a/src/resources/kv/kv.ts +++ b/src/resources/kv/kv.ts @@ -4,12 +4,6 @@ import { APIResource } from '../../resource'; import * as NamespacesAPI from './namespaces/namespaces'; import { Namespace, - NamespaceBulkDeleteParams, - NamespaceBulkDeleteResponse, - NamespaceBulkGetParams, - NamespaceBulkGetResponse, - NamespaceBulkUpdateParams, - NamespaceBulkUpdateResponse, NamespaceCreateParams, NamespaceDeleteParams, NamespaceDeleteResponse, @@ -34,17 +28,11 @@ export declare namespace KV { type Namespace as Namespace, type NamespaceUpdateResponse as NamespaceUpdateResponse, type NamespaceDeleteResponse as NamespaceDeleteResponse, - type NamespaceBulkDeleteResponse as NamespaceBulkDeleteResponse, - type NamespaceBulkGetResponse as NamespaceBulkGetResponse, - type NamespaceBulkUpdateResponse as NamespaceBulkUpdateResponse, NamespacesV4PagePaginationArray as NamespacesV4PagePaginationArray, type NamespaceCreateParams as NamespaceCreateParams, type NamespaceUpdateParams as NamespaceUpdateParams, type NamespaceListParams as NamespaceListParams, type NamespaceDeleteParams as NamespaceDeleteParams, - type NamespaceBulkDeleteParams as NamespaceBulkDeleteParams, - type NamespaceBulkGetParams as NamespaceBulkGetParams, - type NamespaceBulkUpdateParams as NamespaceBulkUpdateParams, type NamespaceGetParams as NamespaceGetParams, }; } diff --git a/src/resources/kv/namespaces/index.ts b/src/resources/kv/namespaces/index.ts index ddd7596222..04eb8017fe 100644 --- a/src/resources/kv/namespaces/index.ts +++ b/src/resources/kv/namespaces/index.ts @@ -1,6 +1,17 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -export { KeysCursorLimitPagination, Keys, type Key, type KeyListParams } from './keys'; +export { + KeysCursorLimitPagination, + Keys, + type Key, + type KeyBulkDeleteResponse, + type KeyBulkGetResponse, + type KeyBulkUpdateResponse, + type KeyListParams, + type KeyBulkDeleteParams, + type KeyBulkGetParams, + type KeyBulkUpdateParams, +} from './keys'; export { Metadata, type MetadataGetResponse, type MetadataGetParams } from './metadata'; export { NamespacesV4PagePaginationArray, @@ -8,16 +19,10 @@ export { type Namespace, type NamespaceUpdateResponse, type NamespaceDeleteResponse, - type NamespaceBulkDeleteResponse, - type NamespaceBulkGetResponse, - type NamespaceBulkUpdateResponse, type NamespaceCreateParams, type NamespaceUpdateParams, type NamespaceListParams, type NamespaceDeleteParams, - type NamespaceBulkDeleteParams, - type NamespaceBulkGetParams, - type NamespaceBulkUpdateParams, type NamespaceGetParams, } from './namespaces'; export { diff --git a/src/resources/kv/namespaces/keys.ts b/src/resources/kv/namespaces/keys.ts index befb8ba794..44137ad82b 100644 --- a/src/resources/kv/namespaces/keys.ts +++ b/src/resources/kv/namespaces/keys.ts @@ -20,6 +20,66 @@ export class Keys extends APIResource { { query, ...options }, ); } + + /** + * Remove multiple KV pairs from the namespace. Body should be an array of up to + * 10,000 keys to be removed. + */ + bulkDelete( + namespaceId: string, + params: KeyBulkDeleteParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, body } = params; + return ( + this._client.post(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/bulk/delete`, { + body: body, + ...options, + }) as Core.APIPromise<{ result: KeyBulkDeleteResponse | null }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Get multiple KV pairs from the namespace. Body should contain keys to retrieve + * at most 100. Keys must contain text-based values. If value is json, it can be + * requested to return in JSON, instead of string. Metadata can be return if + * withMetadata is true. + */ + bulkGet( + namespaceId: string, + params: KeyBulkGetParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, ...body } = params; + return ( + this._client.post(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/bulk/get`, { + body, + ...options, + }) as Core.APIPromise<{ result: KeyBulkGetResponse | null }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Write multiple keys and values at once. Body should be an array of up to 10,000 + * key-value pairs to be stored, along with optional expiration information. + * Existing values and expirations will be overwritten. If neither `expiration` nor + * `expiration_ttl` is specified, the key-value pair will never expire. If both are + * set, `expiration_ttl` is used and `expiration` is ignored. The entire request + * size must be 100 megabytes or less. + */ + bulkUpdate( + namespaceId: string, + params: KeyBulkUpdateParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, body } = params; + return ( + this._client.put(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/bulk`, { + body: body, + ...options, + }) as Core.APIPromise<{ result: KeyBulkUpdateResponse | null }> + )._thenUnwrap((obj) => obj.result); + } } export class KeysCursorLimitPagination extends CursorLimitPagination {} @@ -47,6 +107,70 @@ export interface Key { metadata?: Record; } +export interface KeyBulkDeleteResponse { + /** + * Number of keys successfully updated + */ + successful_key_count?: number; + + /** + * Name of the keys that failed to be fully updated. They should be retried. + */ + unsuccessful_keys?: Array; +} + +export type KeyBulkGetResponse = + | KeyBulkGetResponse.WorkersKVBulkGetResult + | KeyBulkGetResponse.WorkersKVBulkGetResultWithMetadata; + +export namespace KeyBulkGetResponse { + export interface WorkersKVBulkGetResult { + /** + * Requested keys are paired with their values in an object + */ + values?: Record>; + } + + export interface WorkersKVBulkGetResultWithMetadata { + /** + * Requested keys are paired with their values and metadata in an object + */ + values?: Record; + } + + export namespace WorkersKVBulkGetResultWithMetadata { + export interface Values { + /** + * The metadata associated with the key + */ + metadata: Record | null; + + /** + * The value associated with the key + */ + value: string | number | boolean | Record; + + /** + * The time, measured in number of seconds since the UNIX epoch, at which the key + * should expire. + */ + expiration?: number; + } + } +} + +export interface KeyBulkUpdateResponse { + /** + * Number of keys successfully updated + */ + successful_key_count?: number; + + /** + * Name of the keys that failed to be fully updated. They should be retried. + */ + unsuccessful_keys?: Array; +} + export interface KeyListParams extends CursorLimitPaginationParams { /** * Path param: Identifier @@ -60,12 +184,103 @@ export interface KeyListParams extends CursorLimitPaginationParams { prefix?: string; } +export interface KeyBulkDeleteParams { + /** + * Path param: Identifier + */ + account_id: string; + + /** + * Body param: + */ + body: Array; +} + +export interface KeyBulkGetParams { + /** + * Path param: Identifier + */ + account_id: string; + + /** + * Body param: Array of keys to retrieve (maximum 100) + */ + keys: Array; + + /** + * Body param: Whether to parse JSON values in the response + */ + type?: 'text' | 'json'; + + /** + * Body param: Whether to include metadata in the response + */ + withMetadata?: boolean; +} + +export interface KeyBulkUpdateParams { + /** + * Path param: Identifier + */ + account_id: string; + + /** + * Body param: + */ + body: Array; +} + +export namespace KeyBulkUpdateParams { + export interface Body { + /** + * Whether or not the server should base64 decode the value before storing it. + * Useful for writing values that wouldn't otherwise be valid JSON strings, such as + * images. + */ + base64?: boolean; + + /** + * The time, measured in number of seconds since the UNIX epoch, at which the key + * should expire. + */ + expiration?: number; + + /** + * The number of seconds for which the key should be visible before it expires. At + * least 60. + */ + expiration_ttl?: number; + + /** + * A key's name. The name may be at most 512 bytes. All printable, non-whitespace + * characters are valid. + */ + key?: string; + + /** + * Arbitrary JSON that is associated with a key. + */ + metadata?: Record; + + /** + * A UTF-8 encoded string to be stored, up to 25 MiB in length. + */ + value?: string; + } +} + Keys.KeysCursorLimitPagination = KeysCursorLimitPagination; export declare namespace Keys { export { type Key as Key, + type KeyBulkDeleteResponse as KeyBulkDeleteResponse, + type KeyBulkGetResponse as KeyBulkGetResponse, + type KeyBulkUpdateResponse as KeyBulkUpdateResponse, KeysCursorLimitPagination as KeysCursorLimitPagination, type KeyListParams as KeyListParams, + type KeyBulkDeleteParams as KeyBulkDeleteParams, + type KeyBulkGetParams as KeyBulkGetParams, + type KeyBulkUpdateParams as KeyBulkUpdateParams, }; } diff --git a/src/resources/kv/namespaces/namespaces.ts b/src/resources/kv/namespaces/namespaces.ts index f1b4609be8..ab201497ac 100644 --- a/src/resources/kv/namespaces/namespaces.ts +++ b/src/resources/kv/namespaces/namespaces.ts @@ -3,7 +3,18 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; import * as KeysAPI from './keys'; -import { Key, KeyListParams, Keys, KeysCursorLimitPagination } from './keys'; +import { + Key, + KeyBulkDeleteParams, + KeyBulkDeleteResponse, + KeyBulkGetParams, + KeyBulkGetResponse, + KeyBulkUpdateParams, + KeyBulkUpdateResponse, + KeyListParams, + Keys, + KeysCursorLimitPagination, +} from './keys'; import * as MetadataAPI from './metadata'; import { Metadata, MetadataGetParams, MetadataGetResponse } from './metadata'; import * as ValuesAPI from './values'; @@ -13,7 +24,7 @@ import { ValueGetParams, ValueUpdateParams, ValueUpdateResponse, - Values as ValuesAPIValues, + Values, } from './values'; import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../../pagination'; @@ -86,66 +97,6 @@ export class Namespaces extends APIResource { )._thenUnwrap((obj) => obj.result); } - /** - * Remove multiple KV pairs from the namespace. Body should be an array of up to - * 10,000 keys to be removed. - */ - bulkDelete( - namespaceId: string, - params: NamespaceBulkDeleteParams, - options?: Core.RequestOptions, - ): Core.APIPromise { - const { account_id, body } = params; - return ( - this._client.post(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/bulk/delete`, { - body: body, - ...options, - }) as Core.APIPromise<{ result: NamespaceBulkDeleteResponse | null }> - )._thenUnwrap((obj) => obj.result); - } - - /** - * Get multiple KV pairs from the namespace. Body should contain keys to retrieve - * at most 100. Keys must contain text-based values. If value is json, it can be - * requested to return in JSON, instead of string. Metadata can be return if - * withMetadata is true. - */ - bulkGet( - namespaceId: string, - params: NamespaceBulkGetParams, - options?: Core.RequestOptions, - ): Core.APIPromise { - const { account_id, ...body } = params; - return ( - this._client.post(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/bulk/get`, { - body, - ...options, - }) as Core.APIPromise<{ result: NamespaceBulkGetResponse | null }> - )._thenUnwrap((obj) => obj.result); - } - - /** - * Write multiple keys and values at once. Body should be an array of up to 10,000 - * key-value pairs to be stored, along with optional expiration information. - * Existing values and expirations will be overwritten. If neither `expiration` nor - * `expiration_ttl` is specified, the key-value pair will never expire. If both are - * set, `expiration_ttl` is used and `expiration` is ignored. The entire request - * size must be 100 megabytes or less. - */ - bulkUpdate( - namespaceId: string, - params: NamespaceBulkUpdateParams, - options?: Core.RequestOptions, - ): Core.APIPromise { - const { account_id, body } = params; - return ( - this._client.put(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/bulk`, { - body: body, - ...options, - }) as Core.APIPromise<{ result: NamespaceBulkUpdateResponse | null }> - )._thenUnwrap((obj) => obj.result); - } - /** * Get the namespace corresponding to the given ID. */ @@ -193,70 +144,6 @@ export interface NamespaceUpdateResponse {} export interface NamespaceDeleteResponse {} -export interface NamespaceBulkDeleteResponse { - /** - * Number of keys successfully updated - */ - successful_key_count?: number; - - /** - * Name of the keys that failed to be fully updated. They should be retried. - */ - unsuccessful_keys?: Array; -} - -export type NamespaceBulkGetResponse = - | NamespaceBulkGetResponse.WorkersKVBulkGetResult - | NamespaceBulkGetResponse.WorkersKVBulkGetResultWithMetadata; - -export namespace NamespaceBulkGetResponse { - export interface WorkersKVBulkGetResult { - /** - * Requested keys are paired with their values in an object - */ - values?: Record>; - } - - export interface WorkersKVBulkGetResultWithMetadata { - /** - * Requested keys are paired with their values and metadata in an object - */ - values?: Record; - } - - export namespace WorkersKVBulkGetResultWithMetadata { - export interface Values { - /** - * The metadata associated with the key - */ - metadata: Record | null; - - /** - * The value associated with the key - */ - value: string | number | boolean | Record; - - /** - * The time, measured in number of seconds since the UNIX epoch, at which the key - * should expire. - */ - expiration?: number; - } - } -} - -export interface NamespaceBulkUpdateResponse { - /** - * Number of keys successfully updated - */ - successful_key_count?: number; - - /** - * Name of the keys that failed to be fully updated. They should be retried. - */ - unsuccessful_keys?: Array; -} - export interface NamespaceCreateParams { /** * Path param: Identifier @@ -305,91 +192,6 @@ export interface NamespaceDeleteParams { account_id: string; } -export interface NamespaceBulkDeleteParams { - /** - * Path param: Identifier - */ - account_id: string; - - /** - * Body param: - */ - body: Array; -} - -export interface NamespaceBulkGetParams { - /** - * Path param: Identifier - */ - account_id: string; - - /** - * Body param: Array of keys to retrieve (maximum 100) - */ - keys: Array; - - /** - * Body param: Whether to parse JSON values in the response - */ - type?: 'text' | 'json'; - - /** - * Body param: Whether to include metadata in the response - */ - withMetadata?: boolean; -} - -export interface NamespaceBulkUpdateParams { - /** - * Path param: Identifier - */ - account_id: string; - - /** - * Body param: - */ - body: Array; -} - -export namespace NamespaceBulkUpdateParams { - export interface Body { - /** - * Whether or not the server should base64 decode the value before storing it. - * Useful for writing values that wouldn't otherwise be valid JSON strings, such as - * images. - */ - base64?: boolean; - - /** - * The time, measured in number of seconds since the UNIX epoch, at which the key - * should expire. - */ - expiration?: number; - - /** - * The number of seconds for which the key should be visible before it expires. At - * least 60. - */ - expiration_ttl?: number; - - /** - * A key's name. The name may be at most 512 bytes. All printable, non-whitespace - * characters are valid. - */ - key?: string; - - /** - * Arbitrary JSON that is associated with a key. - */ - metadata?: Record; - - /** - * A UTF-8 encoded string to be stored, up to 25 MiB in length. - */ - value?: string; - } -} - export interface NamespaceGetParams { /** * Identifier @@ -401,32 +203,32 @@ Namespaces.NamespacesV4PagePaginationArray = NamespacesV4PagePaginationArray; Namespaces.Keys = Keys; Namespaces.KeysCursorLimitPagination = KeysCursorLimitPagination; Namespaces.Metadata = Metadata; -Namespaces.Values = ValuesAPIValues; +Namespaces.Values = Values; export declare namespace Namespaces { export { type Namespace as Namespace, type NamespaceUpdateResponse as NamespaceUpdateResponse, type NamespaceDeleteResponse as NamespaceDeleteResponse, - type NamespaceBulkDeleteResponse as NamespaceBulkDeleteResponse, - type NamespaceBulkGetResponse as NamespaceBulkGetResponse, - type NamespaceBulkUpdateResponse as NamespaceBulkUpdateResponse, NamespacesV4PagePaginationArray as NamespacesV4PagePaginationArray, type NamespaceCreateParams as NamespaceCreateParams, type NamespaceUpdateParams as NamespaceUpdateParams, type NamespaceListParams as NamespaceListParams, type NamespaceDeleteParams as NamespaceDeleteParams, - type NamespaceBulkDeleteParams as NamespaceBulkDeleteParams, - type NamespaceBulkGetParams as NamespaceBulkGetParams, - type NamespaceBulkUpdateParams as NamespaceBulkUpdateParams, type NamespaceGetParams as NamespaceGetParams, }; export { Keys as Keys, type Key as Key, + type KeyBulkDeleteResponse as KeyBulkDeleteResponse, + type KeyBulkGetResponse as KeyBulkGetResponse, + type KeyBulkUpdateResponse as KeyBulkUpdateResponse, KeysCursorLimitPagination as KeysCursorLimitPagination, type KeyListParams as KeyListParams, + type KeyBulkDeleteParams as KeyBulkDeleteParams, + type KeyBulkGetParams as KeyBulkGetParams, + type KeyBulkUpdateParams as KeyBulkUpdateParams, }; export { @@ -436,7 +238,7 @@ export declare namespace Namespaces { }; export { - ValuesAPIValues as Values, + Values as Values, type ValueUpdateResponse as ValueUpdateResponse, type ValueDeleteResponse as ValueDeleteResponse, type ValueUpdateParams as ValueUpdateParams, diff --git a/tests/api-resources/kv/namespaces/keys.test.ts b/tests/api-resources/kv/namespaces/keys.test.ts index e245fa74e1..a14b3d5519 100644 --- a/tests/api-resources/kv/namespaces/keys.test.ts +++ b/tests/api-resources/kv/namespaces/keys.test.ts @@ -32,4 +32,78 @@ describe('resource keys', () => { prefix: 'My-Prefix', }); }); + + test('bulkDelete: only required params', async () => { + const responsePromise = client.kv.namespaces.keys.bulkDelete('0f2ac74b498b48028cb68387c421e279', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + body: ['My-Key'], + }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('bulkDelete: required and optional params', async () => { + const response = await client.kv.namespaces.keys.bulkDelete('0f2ac74b498b48028cb68387c421e279', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + body: ['My-Key'], + }); + }); + + test('bulkGet: only required params', async () => { + const responsePromise = client.kv.namespaces.keys.bulkGet('0f2ac74b498b48028cb68387c421e279', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + keys: ['My-Key'], + }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('bulkGet: required and optional params', async () => { + const response = await client.kv.namespaces.keys.bulkGet('0f2ac74b498b48028cb68387c421e279', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + keys: ['My-Key'], + type: 'text', + withMetadata: true, + }); + }); + + test('bulkUpdate: only required params', async () => { + const responsePromise = client.kv.namespaces.keys.bulkUpdate('0f2ac74b498b48028cb68387c421e279', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + body: [{}], + }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('bulkUpdate: required and optional params', async () => { + const response = await client.kv.namespaces.keys.bulkUpdate('0f2ac74b498b48028cb68387c421e279', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + body: [ + { + base64: true, + expiration: 1578435000, + expiration_ttl: 300, + key: 'My-Key', + metadata: { someMetadataKey: 'bar' }, + value: 'Some string', + }, + ], + }); + }); }); diff --git a/tests/api-resources/kv/namespaces/namespaces.test.ts b/tests/api-resources/kv/namespaces/namespaces.test.ts index c3aa98e19b..d09df9c336 100644 --- a/tests/api-resources/kv/namespaces/namespaces.test.ts +++ b/tests/api-resources/kv/namespaces/namespaces.test.ts @@ -92,80 +92,6 @@ describe('resource namespaces', () => { }); }); - test('bulkDelete: only required params', async () => { - const responsePromise = client.kv.namespaces.bulkDelete('0f2ac74b498b48028cb68387c421e279', { - account_id: '023e105f4ecef8ad9ca31a8372d0c353', - body: ['My-Key'], - }); - const rawResponse = await responsePromise.asResponse(); - expect(rawResponse).toBeInstanceOf(Response); - const response = await responsePromise; - expect(response).not.toBeInstanceOf(Response); - const dataAndResponse = await responsePromise.withResponse(); - expect(dataAndResponse.data).toBe(response); - expect(dataAndResponse.response).toBe(rawResponse); - }); - - test('bulkDelete: required and optional params', async () => { - const response = await client.kv.namespaces.bulkDelete('0f2ac74b498b48028cb68387c421e279', { - account_id: '023e105f4ecef8ad9ca31a8372d0c353', - body: ['My-Key'], - }); - }); - - test('bulkGet: only required params', async () => { - const responsePromise = client.kv.namespaces.bulkGet('0f2ac74b498b48028cb68387c421e279', { - account_id: '023e105f4ecef8ad9ca31a8372d0c353', - keys: ['My-Key'], - }); - const rawResponse = await responsePromise.asResponse(); - expect(rawResponse).toBeInstanceOf(Response); - const response = await responsePromise; - expect(response).not.toBeInstanceOf(Response); - const dataAndResponse = await responsePromise.withResponse(); - expect(dataAndResponse.data).toBe(response); - expect(dataAndResponse.response).toBe(rawResponse); - }); - - test('bulkGet: required and optional params', async () => { - const response = await client.kv.namespaces.bulkGet('0f2ac74b498b48028cb68387c421e279', { - account_id: '023e105f4ecef8ad9ca31a8372d0c353', - keys: ['My-Key'], - type: 'text', - withMetadata: true, - }); - }); - - test('bulkUpdate: only required params', async () => { - const responsePromise = client.kv.namespaces.bulkUpdate('0f2ac74b498b48028cb68387c421e279', { - account_id: '023e105f4ecef8ad9ca31a8372d0c353', - body: [{}], - }); - const rawResponse = await responsePromise.asResponse(); - expect(rawResponse).toBeInstanceOf(Response); - const response = await responsePromise; - expect(response).not.toBeInstanceOf(Response); - const dataAndResponse = await responsePromise.withResponse(); - expect(dataAndResponse.data).toBe(response); - expect(dataAndResponse.response).toBe(rawResponse); - }); - - test('bulkUpdate: required and optional params', async () => { - const response = await client.kv.namespaces.bulkUpdate('0f2ac74b498b48028cb68387c421e279', { - account_id: '023e105f4ecef8ad9ca31a8372d0c353', - body: [ - { - base64: true, - expiration: 1578435000, - expiration_ttl: 300, - key: 'My-Key', - metadata: { someMetadataKey: 'bar' }, - value: 'Some string', - }, - ], - }); - }); - test('get: only required params', async () => { const responsePromise = client.kv.namespaces.get('0f2ac74b498b48028cb68387c421e279', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', From 8762aa06152c5ecf4f5ce6284d05cff5bac8096a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Mar 2025 00:18:54 +0000 Subject: [PATCH 125/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ceb3f10cf2..4e75a217d8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e4b9f5edb1a080561740120d2418d122731ef29e54de4d6f48f5e47834cd8863.yml -openapi_spec_hash: aa8f1f50bc2718e571d926389ca0461c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-946584f5d6c56c67630a313f408a2abec5b8d820e5cf4c3e4082999a9d8ad0c8.yml +openapi_spec_hash: 690560ce1a27b7781b188b4f4374c006 config_hash: ba292e0053602e8a8923a35fb6c7c1e9 From ee0d7870519bca72b786c16647ed933cf3ad53de Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Mar 2025 01:55:36 +0000 Subject: [PATCH 126/461] codegen metadata --- .stats.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4e75a217d8..a06e93065f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-946584f5d6c56c67630a313f408a2abec5b8d820e5cf4c3e4082999a9d8ad0c8.yml -openapi_spec_hash: 690560ce1a27b7781b188b4f4374c006 -config_hash: ba292e0053602e8a8923a35fb6c7c1e9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-08e317ef2517027e1329b3d79e5205dec0842211b17088b73e92bb4a88e1821e.yml +openapi_spec_hash: aa8f1f50bc2718e571d926389ca0461c +config_hash: 4bb763c52905a0e8a7c5fc45197e7007 From be019a1e747e1f1c6055c4659b3170b6235347a3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Mar 2025 02:18:06 +0000 Subject: [PATCH 127/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a06e93065f..453928387a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-08e317ef2517027e1329b3d79e5205dec0842211b17088b73e92bb4a88e1821e.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9a5fabc53c303e36f4e3ab08df48a7b7742a3d03d68a24714cf19bbef83519f9.yml openapi_spec_hash: aa8f1f50bc2718e571d926389ca0461c -config_hash: 4bb763c52905a0e8a7c5fc45197e7007 +config_hash: 5585b9011c45f8b6b0bc39d36ea3f840 From 8ba86cace0f7fd626de82dbe7c8de2c9020e2fd1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Mar 2025 11:57:53 +0000 Subject: [PATCH 128/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 453928387a..98f81da593 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9a5fabc53c303e36f4e3ab08df48a7b7742a3d03d68a24714cf19bbef83519f9.yml -openapi_spec_hash: aa8f1f50bc2718e571d926389ca0461c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b380c5680ef1a27820ee3c17f013efa4fc6d68d6ad42536d9d0b2b7a3abe9028.yml +openapi_spec_hash: f1498f452c6d746e6f13fbcae61498cb config_hash: 5585b9011c45f8b6b0bc39d36ea3f840 From bd5fdbbfd97237587cc5d27327842ae726b9732d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Mar 2025 12:02:08 +0000 Subject: [PATCH 129/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 98f81da593..13d2e60b82 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b380c5680ef1a27820ee3c17f013efa4fc6d68d6ad42536d9d0b2b7a3abe9028.yml -openapi_spec_hash: f1498f452c6d746e6f13fbcae61498cb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f0246e6db153c7bb10626cce29a4a0fe52d4da4a3974e782c75df97d83855a2c.yml +openapi_spec_hash: fc8a6d67d1ab8469d2e71dd61b64553b config_hash: 5585b9011c45f8b6b0bc39d36ea3f840 From 77e486453e53cdb714b5dc65c2c471707f67ccb5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Mar 2025 14:36:01 +0000 Subject: [PATCH 130/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 13d2e60b82..d1aef96543 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f0246e6db153c7bb10626cce29a4a0fe52d4da4a3974e782c75df97d83855a2c.yml -openapi_spec_hash: fc8a6d67d1ab8469d2e71dd61b64553b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-861f1a5c378f48c0d46348fa0b27b5833e566510433ce0b1420cb6e560aced2c.yml +openapi_spec_hash: 9d5ac03d0920b736bc9354b37e328098 config_hash: 5585b9011c45f8b6b0bc39d36ea3f840 From 3a06ab0f0ba1e284e1682c497caa7e6dcdaddc56 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Mar 2025 16:14:37 +0000 Subject: [PATCH 131/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d1aef96543..890542991e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-861f1a5c378f48c0d46348fa0b27b5833e566510433ce0b1420cb6e560aced2c.yml -openapi_spec_hash: 9d5ac03d0920b736bc9354b37e328098 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3a9b8048afe3b4fe591741f4cf1d495f8410771c2cc445df6f06b786d1708f06.yml +openapi_spec_hash: a58ee85704ea9423d917f0e8d73f6d61 config_hash: 5585b9011c45f8b6b0bc39d36ea3f840 From 5ea5c96537df65f6002b4efb4417e691bb87be7e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Mar 2025 16:42:33 +0000 Subject: [PATCH 132/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 890542991e..239118823f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3a9b8048afe3b4fe591741f4cf1d495f8410771c2cc445df6f06b786d1708f06.yml -openapi_spec_hash: a58ee85704ea9423d917f0e8d73f6d61 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0abe640666af6d3645b70f71ac8f56f23fc5f8565934b2fae5c37a3556f01d64.yml +openapi_spec_hash: ac51a3c78f60ed2bfe1bfcbadc71d0e4 config_hash: 5585b9011c45f8b6b0bc39d36ea3f840 From 722c453bd0d54b5e60a7faf713875894890d596d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Mar 2025 19:09:25 +0000 Subject: [PATCH 133/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 239118823f..c5b31a9930 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0abe640666af6d3645b70f71ac8f56f23fc5f8565934b2fae5c37a3556f01d64.yml -openapi_spec_hash: ac51a3c78f60ed2bfe1bfcbadc71d0e4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dd880b7aa41cc532ee8f0a95909e1e7a191b76be9871762349e32cec08169766.yml +openapi_spec_hash: 062a6a5dfc124bcd62a7f7b3222a54ad config_hash: 5585b9011c45f8b6b0bc39d36ea3f840 From 2ebee8558d1a9ee188cf9896d9d83ad557596336 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Mar 2025 20:21:07 +0000 Subject: [PATCH 134/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c5b31a9930..f184662004 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dd880b7aa41cc532ee8f0a95909e1e7a191b76be9871762349e32cec08169766.yml -openapi_spec_hash: 062a6a5dfc124bcd62a7f7b3222a54ad +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-58e74f391916ed587843402b76f7c4f4a394ab263d557ee6fe48b87746b9c2ef.yml +openapi_spec_hash: 3eaaf411a6e7cdee5b35a3120f0ae223 config_hash: 5585b9011c45f8b6b0bc39d36ea3f840 From cd75d9f32e4f5ca8945f45df6cb434ec97712d41 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 28 Mar 2025 20:34:08 +0000 Subject: [PATCH 135/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f184662004..98f81da593 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-58e74f391916ed587843402b76f7c4f4a394ab263d557ee6fe48b87746b9c2ef.yml -openapi_spec_hash: 3eaaf411a6e7cdee5b35a3120f0ae223 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b380c5680ef1a27820ee3c17f013efa4fc6d68d6ad42536d9d0b2b7a3abe9028.yml +openapi_spec_hash: f1498f452c6d746e6f13fbcae61498cb config_hash: 5585b9011c45f8b6b0bc39d36ea3f840 From 7019d4d93578299d3b3bb40d0c135113db19bde8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 29 Mar 2025 06:23:27 +0000 Subject: [PATCH 136/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 98f81da593..c5b31a9930 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b380c5680ef1a27820ee3c17f013efa4fc6d68d6ad42536d9d0b2b7a3abe9028.yml -openapi_spec_hash: f1498f452c6d746e6f13fbcae61498cb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dd880b7aa41cc532ee8f0a95909e1e7a191b76be9871762349e32cec08169766.yml +openapi_spec_hash: 062a6a5dfc124bcd62a7f7b3222a54ad config_hash: 5585b9011c45f8b6b0bc39d36ea3f840 From 077a39b37d07f5aca48bd1703299e34150894266 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 30 Mar 2025 06:13:31 +0000 Subject: [PATCH 137/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c5b31a9930..cbddf944ad 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dd880b7aa41cc532ee8f0a95909e1e7a191b76be9871762349e32cec08169766.yml -openapi_spec_hash: 062a6a5dfc124bcd62a7f7b3222a54ad +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2327c225eb82e14ae8408d9957834d9c12def2ebf79dd74d08724d5e7c0715db.yml +openapi_spec_hash: aa2ca221166e48877364a94719fb4a59 config_hash: 5585b9011c45f8b6b0bc39d36ea3f840 From f2ea82f96d4e4803fe17cd1d585685e76d795b33 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 01:31:33 +0000 Subject: [PATCH 138/461] chore(internal): consistently order route keys (#2562) --- .stats.yml | 2 +- api.md | 1 - src/resources/rate-limits.ts | 20 ++++---------------- 3 files changed, 5 insertions(+), 18 deletions(-) diff --git a/.stats.yml b/.stats.yml index cbddf944ad..77f3426fb1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2327c225eb82e14ae8408d9957834d9c12def2ebf79dd74d08724d5e7c0715db.yml openapi_spec_hash: aa2ca221166e48877364a94719fb4a59 -config_hash: 5585b9011c45f8b6b0bc39d36ea3f840 +config_hash: 7696ae00d11a8f7c9347e351774531e1 diff --git a/api.md b/api.md index 794bfafbaa..629a4406fc 100644 --- a/api.md +++ b/api.md @@ -1847,7 +1847,6 @@ Methods: Types: - Action -- Methods - RateLimit - RateLimitDeleteResponse diff --git a/src/resources/rate-limits.ts b/src/resources/rate-limits.ts index 53030f442c..6a88e775e6 100644 --- a/src/resources/rate-limits.ts +++ b/src/resources/rate-limits.ts @@ -2,7 +2,6 @@ import { APIResource } from '../resource'; import * as Core from '../core'; -import * as RateLimitsAPI from './rate-limits'; import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../pagination'; /** @@ -111,16 +110,6 @@ export type Action = | 'log' | 'bypass'; -/** - * An HTTP method or `_ALL_` to indicate all methods. - */ -export type Methods = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | '_ALL_'; - -/** - * An HTTP method or `_ALL_` to indicate all methods. - */ -export type MethodsParam = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | '_ALL_'; - export interface RateLimit { /** * The unique identifier of the rate limit. @@ -267,7 +256,7 @@ export namespace RateLimit { * `['POST','PUT']`) or all methods (`['_ALL_']`). This field is optional when * creating a rate limit. */ - methods?: Array; + methods?: Array<'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | '_ALL_'>; /** * The HTTP schemes to match. You can specify one scheme (`['HTTPS']`), both @@ -444,7 +433,7 @@ export namespace RateLimitDeleteResponse { * `['POST','PUT']`) or all methods (`['_ALL_']`). This field is optional when * creating a rate limit. */ - methods?: Array; + methods?: Array<'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | '_ALL_'>; /** * The HTTP schemes to match. You can specify one scheme (`['HTTPS']`), both @@ -597,7 +586,7 @@ export namespace RateLimitCreateParams { * `['POST','PUT']`) or all methods (`['_ALL_']`). This field is optional when * creating a rate limit. */ - methods?: Array; + methods?: Array<'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | '_ALL_'>; /** * The HTTP schemes to match. You can specify one scheme (`['HTTPS']`), both @@ -764,7 +753,7 @@ export namespace RateLimitEditParams { * `['POST','PUT']`) or all methods (`['_ALL_']`). This field is optional when * creating a rate limit. */ - methods?: Array; + methods?: Array<'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | '_ALL_'>; /** * The HTTP schemes to match. You can specify one scheme (`['HTTPS']`), both @@ -807,7 +796,6 @@ RateLimits.RateLimitsV4PagePaginationArray = RateLimitsV4PagePaginationArray; export declare namespace RateLimits { export { type Action as Action, - type Methods as Methods, type RateLimit as RateLimit, type RateLimitDeleteResponse as RateLimitDeleteResponse, RateLimitsV4PagePaginationArray as RateLimitsV4PagePaginationArray, From b388ab2ba2d3098543b3cb8f0625202d27dca09c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 06:27:23 +0000 Subject: [PATCH 139/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 77f3426fb1..2f97678daa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2327c225eb82e14ae8408d9957834d9c12def2ebf79dd74d08724d5e7c0715db.yml -openapi_spec_hash: aa2ca221166e48877364a94719fb4a59 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-58e74f391916ed587843402b76f7c4f4a394ab263d557ee6fe48b87746b9c2ef.yml +openapi_spec_hash: 3eaaf411a6e7cdee5b35a3120f0ae223 config_hash: 7696ae00d11a8f7c9347e351774531e1 From af99330eb0fed7ae739aee80bddffd68e11315d9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 12:22:35 +0000 Subject: [PATCH 140/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2f97678daa..1d7551ccbc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-58e74f391916ed587843402b76f7c4f4a394ab263d557ee6fe48b87746b9c2ef.yml -openapi_spec_hash: 3eaaf411a6e7cdee5b35a3120f0ae223 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d6e7ac0584e2cab8c819ce2f5f375cf16568c087e6cfc855a3ef89a4e8e64c87.yml +openapi_spec_hash: 7a2731b521f801f6f807d3299c4f3e0c config_hash: 7696ae00d11a8f7c9347e351774531e1 From 28feb69bf3d170e23e77d8995ac37f4334f70357 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 12:26:13 +0000 Subject: [PATCH 141/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1d7551ccbc..ea9595d818 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d6e7ac0584e2cab8c819ce2f5f375cf16568c087e6cfc855a3ef89a4e8e64c87.yml -openapi_spec_hash: 7a2731b521f801f6f807d3299c4f3e0c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3a9b8048afe3b4fe591741f4cf1d495f8410771c2cc445df6f06b786d1708f06.yml +openapi_spec_hash: a58ee85704ea9423d917f0e8d73f6d61 config_hash: 7696ae00d11a8f7c9347e351774531e1 From be154fada5d24d96deb8d916b8a67f81328bd565 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 15:43:02 +0000 Subject: [PATCH 142/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ea9595d818..2f97678daa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3a9b8048afe3b4fe591741f4cf1d495f8410771c2cc445df6f06b786d1708f06.yml -openapi_spec_hash: a58ee85704ea9423d917f0e8d73f6d61 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-58e74f391916ed587843402b76f7c4f4a394ab263d557ee6fe48b87746b9c2ef.yml +openapi_spec_hash: 3eaaf411a6e7cdee5b35a3120f0ae223 config_hash: 7696ae00d11a8f7c9347e351774531e1 From c0a6cc57c5352777877e51322e89c5f30894e816 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 15:46:35 +0000 Subject: [PATCH 143/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2f97678daa..ea9595d818 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-58e74f391916ed587843402b76f7c4f4a394ab263d557ee6fe48b87746b9c2ef.yml -openapi_spec_hash: 3eaaf411a6e7cdee5b35a3120f0ae223 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3a9b8048afe3b4fe591741f4cf1d495f8410771c2cc445df6f06b786d1708f06.yml +openapi_spec_hash: a58ee85704ea9423d917f0e8d73f6d61 config_hash: 7696ae00d11a8f7c9347e351774531e1 From 0bdc4ecb805cc86131f59fd26c7aff57d4df63a8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 17:46:38 +0000 Subject: [PATCH 144/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ea9595d818..2f97678daa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3a9b8048afe3b4fe591741f4cf1d495f8410771c2cc445df6f06b786d1708f06.yml -openapi_spec_hash: a58ee85704ea9423d917f0e8d73f6d61 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-58e74f391916ed587843402b76f7c4f4a394ab263d557ee6fe48b87746b9c2ef.yml +openapi_spec_hash: 3eaaf411a6e7cdee5b35a3120f0ae223 config_hash: 7696ae00d11a8f7c9347e351774531e1 From efa6c1675814d8a41e7db0c032cdfc9e98f112b9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 18:12:41 +0000 Subject: [PATCH 145/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2f97678daa..57e75e66e3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-58e74f391916ed587843402b76f7c4f4a394ab263d557ee6fe48b87746b9c2ef.yml -openapi_spec_hash: 3eaaf411a6e7cdee5b35a3120f0ae223 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b380c5680ef1a27820ee3c17f013efa4fc6d68d6ad42536d9d0b2b7a3abe9028.yml +openapi_spec_hash: f1498f452c6d746e6f13fbcae61498cb config_hash: 7696ae00d11a8f7c9347e351774531e1 From a03e2ada09b5bc0758e9e02794fe8f809549d3e1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 19:40:37 +0000 Subject: [PATCH 146/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 57e75e66e3..3e88409494 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b380c5680ef1a27820ee3c17f013efa4fc6d68d6ad42536d9d0b2b7a3abe9028.yml -openapi_spec_hash: f1498f452c6d746e6f13fbcae61498cb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b027ce970a5d94e960be00a3ee2319ed85c4eb4d1badf8b25cc360c07eb0c2da.yml +openapi_spec_hash: 51c99a197e5b805e958fdf831eb63417 config_hash: 7696ae00d11a8f7c9347e351774531e1 From 9e3506e9fc8888dd00eb059cfe847f27cad28834 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 19:45:36 +0000 Subject: [PATCH 147/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3e88409494..e67255f36c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b027ce970a5d94e960be00a3ee2319ed85c4eb4d1badf8b25cc360c07eb0c2da.yml -openapi_spec_hash: 51c99a197e5b805e958fdf831eb63417 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-70cfaadce4f7767b39d6de852df4a09d28da93f9c21509419749b4e7274ba3c4.yml +openapi_spec_hash: c647ea2f35b3a6eb4bf9d7f8f8d32c69 config_hash: 7696ae00d11a8f7c9347e351774531e1 From 30819336fce0bfba67d80df7e7630226c9a5cffa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 20:16:13 +0000 Subject: [PATCH 148/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e67255f36c..9c6a29c126 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1662 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-70cfaadce4f7767b39d6de852df4a09d28da93f9c21509419749b4e7274ba3c4.yml -openapi_spec_hash: c647ea2f35b3a6eb4bf9d7f8f8d32c69 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0f85eda50790c0da1ccfce8ce0b48426d412c64626dfbd7e7e6056e91cc34439.yml +openapi_spec_hash: ff9db42dee98a21be0523ee649d3ff47 config_hash: 7696ae00d11a8f7c9347e351774531e1 From de781163f1e300d5a2d3d61a66f462e2c234b265 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 20:32:04 +0000 Subject: [PATCH 149/461] feat(devices): add global warp override support (#2563) --- .stats.yml | 4 +- api.md | 14 +++ src/resources/zero-trust/devices/devices.ts | 6 ++ src/resources/zero-trust/devices/index.ts | 1 + .../zero-trust/devices/resilience.ts | 3 + .../resilience/global-warp-override.ts | 92 +++++++++++++++++++ .../zero-trust/devices/resilience/index.ts | 10 ++ .../devices/resilience/resilience.ts | 29 ++++++ .../resilience/global-warp-override.test.ts | 53 +++++++++++ 9 files changed, 210 insertions(+), 2 deletions(-) create mode 100644 src/resources/zero-trust/devices/resilience.ts create mode 100644 src/resources/zero-trust/devices/resilience/global-warp-override.ts create mode 100644 src/resources/zero-trust/devices/resilience/index.ts create mode 100644 src/resources/zero-trust/devices/resilience/resilience.ts create mode 100644 tests/api-resources/zero-trust/devices/resilience/global-warp-override.test.ts diff --git a/.stats.yml b/.stats.yml index 9c6a29c126..639993c5cb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 1662 +configured_endpoints: 1664 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0f85eda50790c0da1ccfce8ce0b48426d412c64626dfbd7e7e6056e91cc34439.yml openapi_spec_hash: ff9db42dee98a21be0523ee649d3ff47 -config_hash: 7696ae00d11a8f7c9347e351774531e1 +config_hash: f19070938c38d2589d482763642f37a1 diff --git a/api.md b/api.md index 629a4406fc..b8df19c7af 100644 --- a/api.md +++ b/api.md @@ -4449,6 +4449,20 @@ Methods: - client.zeroTrust.devices.list({ ...params }) -> DevicesSinglePage - client.zeroTrust.devices.get(deviceId, { ...params }) -> DeviceGetResponse | null +### Resilience + +#### GlobalWARPOverride + +Types: + +- GlobalWARPOverrideCreateResponse +- GlobalWARPOverrideGetResponse + +Methods: + +- client.zeroTrust.devices.resilience.globalWARPOverride.create({ ...params }) -> GlobalWARPOverrideCreateResponse | null +- client.zeroTrust.devices.resilience.globalWARPOverride.get({ ...params }) -> GlobalWARPOverrideGetResponse | null + ### DEXTests Types: diff --git a/src/resources/zero-trust/devices/devices.ts b/src/resources/zero-trust/devices/devices.ts index 163f49f403..78af7536af 100644 --- a/src/resources/zero-trust/devices/devices.ts +++ b/src/resources/zero-trust/devices/devices.ts @@ -82,9 +82,12 @@ import { UniqueClientIDInput, WorkspaceOneInput, } from './posture/posture'; +import * as ResilienceAPI from './resilience/resilience'; +import { Resilience } from './resilience/resilience'; import { SinglePage } from '../../../pagination'; export class Devices extends APIResource { + resilience: ResilienceAPI.Resilience = new ResilienceAPI.Resilience(this._client); dexTests: DEXTestsAPI.DEXTests = new DEXTestsAPI.DEXTests(this._client); networks: NetworksAPI.Networks = new NetworksAPI.Networks(this._client); fleetStatus: FleetStatusAPI.FleetStatus = new FleetStatusAPI.FleetStatus(this._client); @@ -370,6 +373,7 @@ export interface DeviceGetParams { } Devices.DevicesSinglePage = DevicesSinglePage; +Devices.Resilience = Resilience; Devices.DEXTests = DEXTests; Devices.SchemaHTTPSSinglePage = SchemaHTTPSSinglePage; Devices.Networks = Networks; @@ -392,6 +396,8 @@ export declare namespace Devices { type DeviceGetParams as DeviceGetParams, }; + export { Resilience as Resilience }; + export { DEXTests as DEXTests, type DEXTest as DEXTest, diff --git a/src/resources/zero-trust/devices/index.ts b/src/resources/zero-trust/devices/index.ts index 45d383d9be..2d40dbe519 100644 --- a/src/resources/zero-trust/devices/index.ts +++ b/src/resources/zero-trust/devices/index.ts @@ -48,6 +48,7 @@ export { } from './devices'; export { FleetStatus, type FleetStatusGetResponse, type FleetStatusGetParams } from './fleet-status'; export { OverrideCodes, type OverrideCodeListResponse, type OverrideCodeListParams } from './override-codes'; +export { Resilience } from './resilience/index'; export { Revoke, type RevokeCreateResponse, type RevokeCreateParams } from './revoke'; export { SchemaHTTPSSinglePage, diff --git a/src/resources/zero-trust/devices/resilience.ts b/src/resources/zero-trust/devices/resilience.ts new file mode 100644 index 0000000000..b6dcf392fe --- /dev/null +++ b/src/resources/zero-trust/devices/resilience.ts @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +export * from './resilience/index'; diff --git a/src/resources/zero-trust/devices/resilience/global-warp-override.ts b/src/resources/zero-trust/devices/resilience/global-warp-override.ts new file mode 100644 index 0000000000..ab6a09ba7b --- /dev/null +++ b/src/resources/zero-trust/devices/resilience/global-warp-override.ts @@ -0,0 +1,92 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../../../resource'; +import * as Core from '../../../../core'; + +export class GlobalWARPOverride extends APIResource { + /** + * Sets the Global WARP override state. + */ + create( + params: GlobalWARPOverrideCreateParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, ...body } = params; + return ( + this._client.post(`/accounts/${account_id}/devices/resilience/disconnect`, { + body, + ...options, + }) as Core.APIPromise<{ result: GlobalWARPOverrideCreateResponse | null }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Fetch the Global WARP override state + */ + get( + params: GlobalWARPOverrideGetParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id } = params; + return ( + this._client.get(`/accounts/${account_id}/devices/resilience/disconnect`, options) as Core.APIPromise<{ + result: GlobalWARPOverrideGetResponse | null; + }> + )._thenUnwrap((obj) => obj.result); + } +} + +export interface GlobalWARPOverrideCreateResponse { + /** + * Disconnects all devices on the account using Global WARP override. + */ + disconnect?: boolean; + + /** + * When the Global WARP override state was updated. + */ + timestamp?: string; +} + +export interface GlobalWARPOverrideGetResponse { + /** + * Disconnects all devices on the account using Global WARP override. + */ + disconnect?: boolean; + + /** + * When the Global WARP override state was updated. + */ + timestamp?: string; +} + +export interface GlobalWARPOverrideCreateParams { + /** + * Path param: + */ + account_id: string; + + /** + * Body param: Disconnects all devices on the account using Global WARP override. + */ + disconnect: boolean; + + /** + * Body param: Reasoning for setting the Global WARP override state. This will be + * surfaced in the audit log. + */ + justification?: string; +} + +export interface GlobalWARPOverrideGetParams { + account_id: string; +} + +export declare namespace GlobalWARPOverride { + export { + type GlobalWARPOverrideCreateResponse as GlobalWARPOverrideCreateResponse, + type GlobalWARPOverrideGetResponse as GlobalWARPOverrideGetResponse, + type GlobalWARPOverrideCreateParams as GlobalWARPOverrideCreateParams, + type GlobalWARPOverrideGetParams as GlobalWARPOverrideGetParams, + }; +} diff --git a/src/resources/zero-trust/devices/resilience/index.ts b/src/resources/zero-trust/devices/resilience/index.ts new file mode 100644 index 0000000000..ab4c9567cc --- /dev/null +++ b/src/resources/zero-trust/devices/resilience/index.ts @@ -0,0 +1,10 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +export { + GlobalWARPOverride, + type GlobalWARPOverrideCreateResponse, + type GlobalWARPOverrideGetResponse, + type GlobalWARPOverrideCreateParams, + type GlobalWARPOverrideGetParams, +} from './global-warp-override'; +export { Resilience } from './resilience'; diff --git a/src/resources/zero-trust/devices/resilience/resilience.ts b/src/resources/zero-trust/devices/resilience/resilience.ts new file mode 100644 index 0000000000..774f8738ec --- /dev/null +++ b/src/resources/zero-trust/devices/resilience/resilience.ts @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../../../resource'; +import * as GlobalWARPOverrideAPI from './global-warp-override'; +import { + GlobalWARPOverride, + GlobalWARPOverrideCreateParams, + GlobalWARPOverrideCreateResponse, + GlobalWARPOverrideGetParams, + GlobalWARPOverrideGetResponse, +} from './global-warp-override'; + +export class Resilience extends APIResource { + globalWARPOverride: GlobalWARPOverrideAPI.GlobalWARPOverride = new GlobalWARPOverrideAPI.GlobalWARPOverride( + this._client, + ); +} + +Resilience.GlobalWARPOverride = GlobalWARPOverride; + +export declare namespace Resilience { + export { + GlobalWARPOverride as GlobalWARPOverride, + type GlobalWARPOverrideCreateResponse as GlobalWARPOverrideCreateResponse, + type GlobalWARPOverrideGetResponse as GlobalWARPOverrideGetResponse, + type GlobalWARPOverrideCreateParams as GlobalWARPOverrideCreateParams, + type GlobalWARPOverrideGetParams as GlobalWARPOverrideGetParams, + }; +} diff --git a/tests/api-resources/zero-trust/devices/resilience/global-warp-override.test.ts b/tests/api-resources/zero-trust/devices/resilience/global-warp-override.test.ts new file mode 100644 index 0000000000..3f4f9853ab --- /dev/null +++ b/tests/api-resources/zero-trust/devices/resilience/global-warp-override.test.ts @@ -0,0 +1,53 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import Cloudflare from 'cloudflare'; +import { Response } from 'node-fetch'; + +const client = new Cloudflare({ + apiKey: '144c9defac04969c7bfad8efaa8ea194', + apiEmail: 'user@example.com', + baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', +}); + +describe('resource globalWARPOverride', () => { + test('create: only required params', async () => { + const responsePromise = client.zeroTrust.devices.resilience.globalWARPOverride.create({ + account_id: '699d98642c564d2e855e9661899b7252', + disconnect: false, + }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('create: required and optional params', async () => { + const response = await client.zeroTrust.devices.resilience.globalWARPOverride.create({ + account_id: '699d98642c564d2e855e9661899b7252', + disconnect: false, + justification: 'Turning off WARP for testing purposes.', + }); + }); + + test('get: only required params', async () => { + const responsePromise = client.zeroTrust.devices.resilience.globalWARPOverride.get({ + account_id: '699d98642c564d2e855e9661899b7252', + }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('get: required and optional params', async () => { + const response = await client.zeroTrust.devices.resilience.globalWARPOverride.get({ + account_id: '699d98642c564d2e855e9661899b7252', + }); + }); +}); From f77e044a1098f94bcfed21e84f34d1009e836e9d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 20:49:15 +0000 Subject: [PATCH 150/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 639993c5cb..3e12fbd022 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0f85eda50790c0da1ccfce8ce0b48426d412c64626dfbd7e7e6056e91cc34439.yml -openapi_spec_hash: ff9db42dee98a21be0523ee649d3ff47 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-61d3c7ac1d6290250ccd8a7318a2e64f11a1264e1b4acea8162576617392375d.yml +openapi_spec_hash: 7fc5d026c1ed7e30217cb82b938df917 config_hash: f19070938c38d2589d482763642f37a1 From 78fcc89587386a056a750d5ae92b26f702377628 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 21:07:52 +0000 Subject: [PATCH 151/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3e12fbd022..03d4239dd8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-61d3c7ac1d6290250ccd8a7318a2e64f11a1264e1b4acea8162576617392375d.yml -openapi_spec_hash: 7fc5d026c1ed7e30217cb82b938df917 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-70cfaadce4f7767b39d6de852df4a09d28da93f9c21509419749b4e7274ba3c4.yml +openapi_spec_hash: c647ea2f35b3a6eb4bf9d7f8f8d32c69 config_hash: f19070938c38d2589d482763642f37a1 From 16c90ee60e3883c92df0cd39d76f26460e2a2244 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 21:20:35 +0000 Subject: [PATCH 152/461] feat(api): api update (#2564) --- .stats.yml | 4 +- api.md | 15 +- .../addressing/address-maps/accounts.ts | 9 +- .../addressing/address-maps/address-maps.ts | 5 +- src/resources/addressing/address-maps/ips.ts | 9 +- .../addressing/address-maps/zones.ts | 9 +- src/resources/addressing/prefixes/prefixes.ts | 5 +- .../addressing/prefixes/service-bindings.ts | 5 +- .../regional-hostnames/regional-hostnames.ts | 5 +- .../alerting/destinations/pagerduty.ts | 5 +- .../alerting/destinations/webhooks.ts | 5 +- src/resources/alerting/policies.ts | 5 +- .../api-gateway/user-schemas/user-schemas.ts | 3 +- src/resources/brand-protection.ts | 123 +-- src/resources/cache/cache-reserve.ts | 30 +- src/resources/cache/regional-tiered-cache.ts | 15 +- src/resources/cache/variants.ts | 20 +- .../cloudforce-one/requests/assets.ts | 5 +- .../cloudforce-one/requests/message.ts | 5 +- .../cloudforce-one/requests/priority.ts | 5 +- .../cloudforce-one/requests/requests.ts | 5 +- .../custom-certificates.ts | 23 +- .../certificate-pack/certificates.ts | 20 +- .../custom-hostnames/custom-hostnames.ts | 454 +-------- .../dns/analytics/reports/bytimes.ts | 5 +- .../dns/analytics/reports/reports.ts | 15 +- src/resources/dns/dns.ts | 58 +- src/resources/dns/zone-transfers/incoming.ts | 40 +- .../dns/zone-transfers/outgoing/outgoing.ts | 39 +- src/resources/email-routing/dns.ts | 9 +- .../firewall/waf/packages/packages.ts | 5 +- src/resources/firewall/waf/packages/rules.ts | 45 +- .../intel/attack-surface-report/issues.ts | 5 +- src/resources/intel/miscategorizations.ts | 5 +- src/resources/keyless-certificates.ts | 8 +- src/resources/logpush/index.ts | 1 + src/resources/logpush/logpush.ts | 2 + src/resources/logpush/ownership.ts | 11 +- src/resources/magic-transit/gre-tunnels.ts | 71 +- src/resources/magic-transit/ipsec-tunnels.ts | 81 +- src/resources/magic-transit/magic-transit.ts | 40 +- src/resources/magic-transit/sites/acls.ts | 20 +- .../origin-post-quantum-encryption.ts | 44 +- .../hostnames/certificates.ts | 49 +- src/resources/queues/consumers.ts | 3 +- src/resources/queues/queues.ts | 3 +- src/resources/r2/buckets/sippy.ts | 11 +- src/resources/radar/ai/bots/summary.ts | 34 +- src/resources/radar/ai/inference/summary.ts | 68 +- .../ai/inference/timeseries-groups/summary.ts | 18 +- src/resources/radar/ai/timeseries-groups.ts | 9 +- .../radar/annotations/annotations.ts | 18 +- src/resources/radar/annotations/outages.ts | 30 +- src/resources/radar/as112/as112.ts | 42 +- src/resources/radar/as112/summary.ts | 212 +--- .../radar/as112/timeseries-groups.ts | 18 +- src/resources/radar/as112/top.ts | 176 +--- src/resources/radar/attacks/layer3/layer3.ts | 10 +- src/resources/radar/attacks/layer3/summary.ts | 246 +---- .../radar/attacks/layer3/timeseries-groups.ts | 39 +- .../radar/attacks/layer3/top/locations.ts | 68 +- src/resources/radar/attacks/layer3/top/top.ts | 102 +- src/resources/radar/attacks/layer7/layer7.ts | 42 +- src/resources/radar/attacks/layer7/summary.ts | 246 +---- .../radar/attacks/layer7/timeseries-groups.ts | 57 +- .../radar/attacks/layer7/top/ases.ts | 34 +- .../radar/attacks/layer7/top/locations.ts | 68 +- src/resources/radar/attacks/layer7/top/top.ts | 102 +- src/resources/radar/bgp/bgp.ts | 42 +- src/resources/radar/bgp/routes.ts | 30 +- src/resources/radar/bgp/top/ases.ts | 26 +- src/resources/radar/bgp/top/top.ts | 16 +- src/resources/radar/dns/dns.ts | 42 +- src/resources/radar/dns/summary.ts | 348 +------ src/resources/radar/dns/timeseries-groups.ts | 18 +- src/resources/radar/dns/top.ts | 88 +- src/resources/radar/email/email.ts | 16 +- src/resources/radar/email/routing/summary.ts | 221 +--- .../radar/email/routing/timeseries-groups.ts | 9 +- src/resources/radar/email/security/summary.ts | 315 +----- .../radar/email/security/timeseries-groups.ts | 9 +- .../email/security/top/tlds/malicious.ts | 34 +- .../radar/email/security/top/tlds/spam.ts | 34 +- .../radar/email/security/top/tlds/spoof.ts | 34 +- .../radar/email/security/top/tlds/tlds.ts | 34 +- src/resources/radar/entities/asns.ts | 10 +- src/resources/radar/http/ases/ases.ts | 44 +- src/resources/radar/http/ases/bot-class.ts | 44 +- .../radar/http/ases/browser-family.ts | 44 +- src/resources/radar/http/ases/device-type.ts | 44 +- src/resources/radar/http/ases/http-method.ts | 44 +- .../radar/http/ases/http-protocol.ts | 44 +- src/resources/radar/http/ases/ip-version.ts | 44 +- src/resources/radar/http/ases/os.ts | 44 +- src/resources/radar/http/ases/tls-version.ts | 44 +- src/resources/radar/http/http.ts | 42 +- .../radar/http/locations/bot-class.ts | 44 +- .../radar/http/locations/browser-family.ts | 44 +- .../radar/http/locations/device-type.ts | 44 +- .../radar/http/locations/http-method.ts | 44 +- .../radar/http/locations/http-protocol.ts | 44 +- .../radar/http/locations/ip-version.ts | 44 +- .../radar/http/locations/locations.ts | 44 +- src/resources/radar/http/locations/os.ts | 44 +- .../radar/http/locations/tls-version.ts | 44 +- src/resources/radar/http/summary.ts | 280 +----- src/resources/radar/http/timeseries-groups.ts | 39 +- src/resources/radar/http/top.ts | 68 +- .../radar/leaked-credentials/summary.ts | 68 +- src/resources/radar/netflows/netflows.ts | 76 +- src/resources/radar/quality/iqi.ts | 34 +- src/resources/radar/quality/speed/speed.ts | 34 +- src/resources/radar/quality/speed/top.ts | 68 +- src/resources/radar/ranking/domain.ts | 16 +- .../radar/ranking/internet-services.ts | 16 +- src/resources/radar/ranking/ranking.ts | 16 +- src/resources/radar/robots-txt/top/top.ts | 34 +- .../radar/robots-txt/top/user-agents.ts | 34 +- src/resources/radar/tcp-resets-timeouts.ts | 68 +- .../radar/traffic-anomalies/locations.ts | 12 +- .../traffic-anomalies/traffic-anomalies.ts | 24 +- src/resources/radar/verified-bots/top.ts | 68 +- src/resources/rules/lists/bulk-operations.ts | 10 +- src/resources/rules/lists/items.ts | 13 +- src/resources/rulesets/phases/phases.ts | 30 +- src/resources/rulesets/phases/versions.ts | 10 +- src/resources/rulesets/rules.ts | 359 +++---- src/resources/rulesets/rulesets.ts | 50 +- src/resources/rulesets/versions.ts | 10 +- .../security-center/insights/insights.ts | 5 +- src/resources/security-txt.ts | 9 +- src/resources/shared.ts | 47 +- src/resources/snippets/rules.ts | 5 +- src/resources/snippets/snippets.ts | 5 +- src/resources/ssl/analyze.ts | 8 +- src/resources/url-scanner/url-scanner.ts | 36 +- src/resources/waiting-rooms/settings.ts | 9 +- .../dispatch/namespaces/scripts/content.ts | 6 +- src/resources/workers/routes.ts | 9 +- src/resources/workers/scripts/content.ts | 6 +- src/resources/workers/scripts/deployments.ts | 21 +- src/resources/workers/scripts/schedules.ts | 10 +- src/resources/workers/scripts/tail.ts | 5 +- src/resources/workers/workers.ts | 36 +- src/resources/zaraz/config.ts | 21 +- src/resources/zaraz/zaraz.ts | 78 +- .../access/applications/applications.ts | 89 +- .../access/applications/user-policy-checks.ts | 7 +- .../access/users/active-sessions.ts | 3 +- .../access/users/last-seen-identity.ts | 3 +- src/resources/zero-trust/devices/dex-tests.ts | 59 +- .../zero-trust/devices/policies/policies.ts | 2 +- .../zero-trust/devices/posture/posture.ts | 90 +- src/resources/zero-trust/dex/dex.ts | 11 +- .../zero-trust/dex/http-tests/http-tests.ts | 3 +- src/resources/zero-trust/dex/tests/tests.ts | 3 +- .../zero-trust/dex/traceroute-tests.ts | 2 +- .../gateway/configurations/configurations.ts | 426 +------- src/resources/zero-trust/gateway/logging.ts | 53 +- .../identity-providers/identity-providers.ts | 952 ++++-------------- .../zero-trust/networks/routes/routes.ts | 38 +- src/resources/zones/custom-nameservers.ts | 5 +- src/resources/zones/holds.ts | 32 +- src/resources/zones/index.ts | 4 + src/resources/zones/settings.ts | 22 +- src/resources/zones/zones.ts | 17 +- .../custom-certificates.test.ts | 4 +- .../custom-hostnames/custom-hostnames.test.ts | 12 +- .../keyless-certificates.test.ts | 2 +- .../magic-transit/cf-interconnects.test.ts | 2 +- .../magic-transit/gre-tunnels.test.ts | 4 +- .../magic-transit/ipsec-tunnels.test.ts | 8 +- .../magic-transit/sites/acls.test.ts | 6 +- tests/api-resources/r2/buckets/sippy.test.ts | 2 +- tests/api-resources/rulesets/rulesets.test.ts | 2 +- tests/api-resources/ssl/analyze.test.ts | 2 +- .../namespaces/scripts/content.test.ts | 2 +- .../workers/scripts/content.test.ts | 2 +- .../workers/scripts/deployments.test.ts | 2 +- .../workers/scripts/schedules.test.ts | 2 +- tests/api-resources/zaraz/config.test.ts | 19 +- .../devices/posture/posture.test.ts | 4 +- .../configurations/configurations.test.ts | 66 +- .../zero-trust/gateway/logging.test.ts | 2 +- .../identity-providers.test.ts | 22 +- 185 files changed, 1084 insertions(+), 7813 deletions(-) diff --git a/.stats.yml b/.stats.yml index 03d4239dd8..4320e5905b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-70cfaadce4f7767b39d6de852df4a09d28da93f9c21509419749b4e7274ba3c4.yml -openapi_spec_hash: c647ea2f35b3a6eb4bf9d7f8f8d32c69 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d60e8882189e2204ae91aeeadf9fe7a298f602085585332811afaf1786f86917.yml +openapi_spec_hash: 19ac633268a644b849d24b4797bb0c29 config_hash: f19070938c38d2589d482763642f37a1 diff --git a/api.md b/api.md index b8df19c7af..1e50749433 100644 --- a/api.md +++ b/api.md @@ -385,13 +385,17 @@ Methods: Types: - ZoneHold +- HoldCreateResponse +- HoldDeleteResponse +- HoldEditResponse +- HoldGetResponse Methods: -- client.zones.holds.create({ ...params }) -> ZoneHold -- client.zones.holds.delete({ ...params }) -> ZoneHold -- client.zones.holds.edit({ ...params }) -> ZoneHold -- client.zones.holds.get({ ...params }) -> ZoneHold +- client.zones.holds.create({ ...params }) -> HoldCreateResponse +- client.zones.holds.delete({ ...params }) -> HoldDeleteResponse +- client.zones.holds.edit({ ...params }) -> HoldEditResponse +- client.zones.holds.get({ ...params }) -> HoldGetResponse ## Subscriptions @@ -1685,11 +1689,12 @@ Types: - OwnershipValidation - OwnershipCreateResponse +- OwnershipValidateResponse Methods: - client.logpush.ownership.create({ ...params }) -> OwnershipCreateResponse | null -- client.logpush.ownership.validate({ ...params }) -> OwnershipValidation | null +- client.logpush.ownership.validate({ ...params }) -> OwnershipValidateResponse ## Validate diff --git a/src/resources/addressing/address-maps/accounts.ts b/src/resources/addressing/address-maps/accounts.ts index 589190d231..36fb4529de 100644 --- a/src/resources/addressing/address-maps/accounts.ts +++ b/src/resources/addressing/address-maps/accounts.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; export class Accounts extends APIResource { /** @@ -37,9 +36,9 @@ export class Accounts extends APIResource { } export interface AccountUpdateResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful @@ -74,9 +73,9 @@ export namespace AccountUpdateResponse { } export interface AccountDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/addressing/address-maps/address-maps.ts b/src/resources/addressing/address-maps/address-maps.ts index c179e49a71..dc5ee153d5 100644 --- a/src/resources/addressing/address-maps/address-maps.ts +++ b/src/resources/addressing/address-maps/address-maps.ts @@ -3,7 +3,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; import * as AddressMapsAPI from './address-maps'; -import * as Shared from '../../shared'; import * as AccountsAPI from './accounts'; import { AccountDeleteParams, @@ -244,9 +243,9 @@ export namespace AddressMapCreateResponse { } export interface AddressMapDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/addressing/address-maps/ips.ts b/src/resources/addressing/address-maps/ips.ts index b68855f9bb..14dd42f5e3 100644 --- a/src/resources/addressing/address-maps/ips.ts +++ b/src/resources/addressing/address-maps/ips.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; export class IPs extends APIResource { /** @@ -39,9 +38,9 @@ export class IPs extends APIResource { } export interface IPUpdateResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful @@ -76,9 +75,9 @@ export namespace IPUpdateResponse { } export interface IPDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/addressing/address-maps/zones.ts b/src/resources/addressing/address-maps/zones.ts index 263fc1ee81..78eaebf7de 100644 --- a/src/resources/addressing/address-maps/zones.ts +++ b/src/resources/addressing/address-maps/zones.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; export class Zones extends APIResource { /** @@ -37,9 +36,9 @@ export class Zones extends APIResource { } export interface ZoneUpdateResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful @@ -74,9 +73,9 @@ export namespace ZoneUpdateResponse { } export interface ZoneDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/addressing/prefixes/prefixes.ts b/src/resources/addressing/prefixes/prefixes.ts index e3389f7360..f2df89497a 100644 --- a/src/resources/addressing/prefixes/prefixes.ts +++ b/src/resources/addressing/prefixes/prefixes.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; import * as AdvertisementStatusAPI from './advertisement-status'; import { AdvertisementStatus, @@ -185,9 +184,9 @@ export interface Prefix { } export interface PrefixDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/addressing/prefixes/service-bindings.ts b/src/resources/addressing/prefixes/service-bindings.ts index 74a046d4e9..2f0e99f241 100644 --- a/src/resources/addressing/prefixes/service-bindings.ts +++ b/src/resources/addressing/prefixes/service-bindings.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; import { SinglePage } from '../../../pagination'; export class ServiceBindings extends APIResource { @@ -127,9 +126,9 @@ export namespace ServiceBinding { } export interface ServiceBindingDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/addressing/regional-hostnames/regional-hostnames.ts b/src/resources/addressing/regional-hostnames/regional-hostnames.ts index 3c3b0c2162..aa2e40b952 100644 --- a/src/resources/addressing/regional-hostnames/regional-hostnames.ts +++ b/src/resources/addressing/regional-hostnames/regional-hostnames.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; import * as RegionsAPI from './regions'; import { RegionListParams, RegionListResponse, RegionListResponsesSinglePage, Regions } from './regions'; import { SinglePage } from '../../../pagination'; @@ -131,9 +130,9 @@ export interface RegionalHostnameListResponse { } export interface RegionalHostnameDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/alerting/destinations/pagerduty.ts b/src/resources/alerting/destinations/pagerduty.ts index d229984140..8b99ff4d3c 100644 --- a/src/resources/alerting/destinations/pagerduty.ts +++ b/src/resources/alerting/destinations/pagerduty.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; import { SinglePage } from '../../../pagination'; export class PagerdutyResource extends APIResource { @@ -88,9 +87,9 @@ export interface PagerdutyCreateResponse { } export interface PagerdutyDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/alerting/destinations/webhooks.ts b/src/resources/alerting/destinations/webhooks.ts index eebca4e092..469521cd4c 100644 --- a/src/resources/alerting/destinations/webhooks.ts +++ b/src/resources/alerting/destinations/webhooks.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; import { SinglePage } from '../../../pagination'; export class Webhooks extends APIResource { @@ -137,9 +136,9 @@ export interface WebhookUpdateResponse { } export interface WebhookDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/alerting/policies.ts b/src/resources/alerting/policies.ts index e209fcaad1..c48b9240e1 100644 --- a/src/resources/alerting/policies.ts +++ b/src/resources/alerting/policies.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as Shared from '../shared'; import { SinglePage } from '../../pagination'; export class Policies extends APIResource { @@ -719,9 +718,9 @@ export interface PolicyUpdateResponse { } export interface PolicyDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/api-gateway/user-schemas/user-schemas.ts b/src/resources/api-gateway/user-schemas/user-schemas.ts index efec1bd24d..f8c134ae34 100644 --- a/src/resources/api-gateway/user-schemas/user-schemas.ts +++ b/src/resources/api-gateway/user-schemas/user-schemas.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; import * as HostsAPI from './hosts'; import { HostListParams, HostListResponse, HostListResponsesV4PagePaginationArray, Hosts } from './hosts'; import * as OperationsAPI from './operations'; @@ -95,7 +94,7 @@ export class UserSchemas extends APIResource { export class PublicSchemasV4PagePaginationArray extends V4PagePaginationArray {} -export type Message = Array; +export type Message = Array; export interface PublicSchema { created_at: string; diff --git a/src/resources/brand-protection.ts b/src/resources/brand-protection.ts index f17e5b194e..0695bd66ce 100644 --- a/src/resources/brand-protection.ts +++ b/src/resources/brand-protection.ts @@ -35,23 +35,20 @@ export interface Info { /** * List of categorizations applied to this submission. */ - categorizations?: Array; + categorizations?: Array; /** * 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?: unknown; /** * For internal use. @@ -69,129 +66,29 @@ export interface Info { url?: string; } -export namespace Info { - export interface Categorization { - /** - * Name of the category applied. - */ - category?: string; - - /** - * Result of human review for this categorization. - */ - verification_status?: string; - } -} - -export interface RuleMatch { - /** - * For internal use. - */ - banning?: boolean; - - /** - * For internal use. - */ - blocking?: boolean; - - /** - * Description of the signature that matched. - */ - description?: string; - - /** - * Name of the signature that matched. - */ - name?: string; -} +export type RuleMatch = unknown; -/** - * Status of the most recent scan found. - */ -export interface ScanStatus { - /** - * Timestamp of when the submission was processed. - */ - last_processed?: string; - - /** - * 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 type ScanStatus = unknown; export interface Submit { /** * URLs that were excluded from scanning because their domain is in our no-scan * list. */ - excluded_urls?: Array; + excluded_urls?: Array; /** * URLs that were skipped because the same URL is currently being scanned */ - skipped_urls?: Array; + skipped_urls?: Array; /** * URLs that were successfully submitted for scanning. */ - submitted_urls?: Array; + submitted_urls?: Array; } -export namespace Submit { - export interface ExcludedURL { - /** - * URL that was excluded. - */ - url?: string; - } - - export interface SkippedURL { - /** - * URL that was skipped. - */ - url?: string; - - /** - * ID of the submission of that URL that is currently scanning. - */ - url_id?: number; - } - - export interface SubmittedURL { - /** - * URL that was submitted. - */ - url?: string; - - /** - * ID assigned to this URL submission. Used to retrieve scanning results. - */ - url_id?: number; - } -} - -export interface URLInfoModelResults { - /** - * Name of the model. - */ - model_name?: string; - - /** - * Score output by the model for this submission. - */ - model_score?: number; -} +export type URLInfoModelResults = unknown; export interface BrandProtectionSubmitParams { /** diff --git a/src/resources/cache/cache-reserve.ts b/src/resources/cache/cache-reserve.ts index ae3f4bcae3..dc998f69f9 100644 --- a/src/resources/cache/cache-reserve.ts +++ b/src/resources/cache/cache-reserve.ts @@ -82,15 +82,9 @@ export class CacheReserveResource extends APIResource { } } -/** - * ID of the zone setting. - */ -export type CacheReserve = 'cache_reserve'; +export type CacheReserve = unknown; -/** - * ID of the zone setting. - */ -export type CacheReserveClear = 'cache_reserve_clear'; +export type CacheReserveClear = unknown; /** * The current state of the Cache Reserve Clear operation. @@ -104,10 +98,7 @@ export type State = 'In-progress' | 'Completed'; * that you cannot undo or cancel this operation. */ export interface CacheReserveClearResponse { - /** - * ID of the zone setting. - */ - id: CacheReserveClear; + id: unknown; /** * The time that the latest Cache Reserve Clear operation started. @@ -131,10 +122,7 @@ export interface CacheReserveClearResponse { } export interface CacheReserveEditResponse { - /** - * ID of the zone setting. - */ - id: CacheReserve; + id: unknown; /** * Whether the setting is editable @@ -153,10 +141,7 @@ export interface CacheReserveEditResponse { } export interface CacheReserveGetResponse { - /** - * ID of the zone setting. - */ - id: CacheReserve; + id: unknown; /** * Whether the setting is editable @@ -181,10 +166,7 @@ export interface CacheReserveGetResponse { * that you cannot undo or cancel this operation. */ export interface CacheReserveStatusResponse { - /** - * ID of the zone setting. - */ - id: CacheReserveClear; + id: unknown; /** * The time that the latest Cache Reserve Clear operation started. diff --git a/src/resources/cache/regional-tiered-cache.ts b/src/resources/cache/regional-tiered-cache.ts index f0c491d4fd..202bfed824 100644 --- a/src/resources/cache/regional-tiered-cache.ts +++ b/src/resources/cache/regional-tiered-cache.ts @@ -40,16 +40,10 @@ export class RegionalTieredCacheResource extends APIResource { } } -/** - * ID of the zone setting. - */ -export type RegionalTieredCache = 'tc_regional'; +export type RegionalTieredCache = unknown; export interface RegionalTieredCacheEditResponse { - /** - * ID of the zone setting. - */ - id: RegionalTieredCache; + id: unknown; /** * Whether the setting is editable @@ -68,10 +62,7 @@ export interface RegionalTieredCacheEditResponse { } export interface RegionalTieredCacheGetResponse { - /** - * ID of the zone setting. - */ - id: RegionalTieredCache; + id: unknown; /** * Whether the setting is editable diff --git a/src/resources/cache/variants.ts b/src/resources/cache/variants.ts index eea3f392ee..a22f7de3dc 100644 --- a/src/resources/cache/variants.ts +++ b/src/resources/cache/variants.ts @@ -61,10 +61,7 @@ export class Variants extends APIResource { * be indicated with BYPASS cache status in the response headers. */ export interface CacheVariant { - /** - * ID of the zone setting. - */ - id: 'variants'; + id: unknown; /** * Last time this setting was modified. @@ -73,10 +70,7 @@ export interface CacheVariant { } export interface VariantDeleteResponse { - /** - * ID of the zone setting. - */ - id: 'variants'; + id: unknown; /** * Whether the setting is editable @@ -90,10 +84,7 @@ export interface VariantDeleteResponse { } export interface VariantEditResponse { - /** - * ID of the zone setting. - */ - id: 'variants'; + id: unknown; /** * Whether the setting is editable @@ -112,10 +103,7 @@ export interface VariantEditResponse { } export interface VariantGetResponse { - /** - * ID of the zone setting. - */ - id: 'variants'; + id: unknown; /** * Whether the setting is editable diff --git a/src/resources/cloudforce-one/requests/assets.ts b/src/resources/cloudforce-one/requests/assets.ts index 5f8f861a0d..490addabc2 100644 --- a/src/resources/cloudforce-one/requests/assets.ts +++ b/src/resources/cloudforce-one/requests/assets.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; import { SinglePage } from '../../../pagination'; export class Assets extends APIResource { @@ -131,9 +130,9 @@ export interface AssetUpdateResponse { } export interface AssetDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/cloudforce-one/requests/message.ts b/src/resources/cloudforce-one/requests/message.ts index 9f26c9d4fa..8a2d31b0c5 100644 --- a/src/resources/cloudforce-one/requests/message.ts +++ b/src/resources/cloudforce-one/requests/message.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; import { SinglePage } from '../../../pagination'; export class MessageResource extends APIResource { @@ -108,9 +107,9 @@ export interface Message { } export interface MessageDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/cloudforce-one/requests/priority.ts b/src/resources/cloudforce-one/requests/priority.ts index 23e56fb99d..9c79bd5e4c 100644 --- a/src/resources/cloudforce-one/requests/priority.ts +++ b/src/resources/cloudforce-one/requests/priority.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; import * as RequestsAPI from './requests'; export class PriorityResource extends APIResource { @@ -146,9 +145,9 @@ export interface PriorityEdit { } export interface PriorityDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/cloudforce-one/requests/requests.ts b/src/resources/cloudforce-one/requests/requests.ts index ae54f02329..0b89aaa970 100644 --- a/src/resources/cloudforce-one/requests/requests.ts +++ b/src/resources/cloudforce-one/requests/requests.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; import * as AssetsAPI from './assets'; import { AssetCreateParams, @@ -314,9 +313,9 @@ export interface RequestConstants { export type RequestTypes = Array; export interface RequestDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/custom-certificates/custom-certificates.ts b/src/resources/custom-certificates/custom-certificates.ts index 7df6a88c52..6ed39f9868 100644 --- a/src/resources/custom-certificates/custom-certificates.ts +++ b/src/resources/custom-certificates/custom-certificates.ts @@ -5,7 +5,6 @@ import * as Core from '../../core'; import * as KeylessCertificatesAPI from '../keyless-certificates'; import * as PrioritizeAPI from './prioritize'; import { Prioritize, PrioritizeUpdateParams } from './prioritize'; -import * as CustomHostnamesAPI from '../custom-hostnames/custom-hostnames'; import { SinglePage, V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../pagination'; export class CustomCertificates extends APIResource { @@ -107,13 +106,7 @@ export interface CustomCertificate { */ id: string; - /** - * A ubiquitous bundle has the highest probability of being verified everywhere, - * even by clients using outdated or unusual trust stores. An optimal bundle uses - * the shortest chain and newest intermediates. And the force bundle verifies the - * chain, but does not otherwise modify it. - */ - bundle_method: CustomHostnamesAPI.BundleMethod; + bundle_method: unknown; /** * When the certificate from the authority expires. @@ -243,12 +236,9 @@ export interface CustomCertificateCreateParams { private_key: string; /** - * Body param: A ubiquitous bundle has the highest probability of being verified - * everywhere, even by clients using outdated or unusual trust stores. An optimal - * bundle uses the shortest chain and newest intermediates. And the force bundle - * verifies the chain, but does not otherwise modify it. + * Body param: */ - bundle_method?: CustomHostnamesAPI.BundleMethodParam; + bundle_method?: unknown; /** * Body param: Specify the region where your private key can be held locally for @@ -312,12 +302,9 @@ export interface CustomCertificateEditParams { zone_id: string; /** - * Body param: A ubiquitous bundle has the highest probability of being verified - * everywhere, even by clients using outdated or unusual trust stores. An optimal - * bundle uses the shortest chain and newest intermediates. And the force bundle - * verifies the chain, but does not otherwise modify it. + * Body param: */ - bundle_method?: CustomHostnamesAPI.BundleMethodParam; + bundle_method?: unknown; /** * Body param: The zone's SSL certificate or certificate and the intermediate(s). diff --git a/src/resources/custom-hostnames/certificate-pack/certificates.ts b/src/resources/custom-hostnames/certificate-pack/certificates.ts index 69c8d27665..99e94c8b59 100644 --- a/src/resources/custom-hostnames/certificate-pack/certificates.ts +++ b/src/resources/custom-hostnames/certificate-pack/certificates.ts @@ -3,7 +3,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; import * as Shared from '../../shared'; -import * as CustomHostnamesAPI from '../custom-hostnames'; export class Certificates extends APIResource { /** @@ -133,13 +132,7 @@ export namespace CertificateUpdateResponse { */ id?: string; - /** - * A ubiquitous bundle has the highest probability of being verified everywhere, - * even by clients using outdated or unusual trust stores. An optimal bundle uses - * the shortest chain and newest intermediates. And the force bundle verifies the - * chain, but does not otherwise modify it. - */ - bundle_method?: CustomHostnamesAPI.BundleMethod; + bundle_method?: unknown; /** * The Certificate Authority that will issue the certificate @@ -176,10 +169,7 @@ export namespace CertificateUpdateResponse { */ issuer?: string; - /** - * Domain control validation (DCV) method used for this hostname. - */ - method?: CustomHostnamesAPI.DCVMethod; + method?: unknown; /** * The serial number on a custom uploaded certificate. @@ -219,11 +209,7 @@ export namespace CertificateUpdateResponse { | 'backup_issued' | 'holding_deployment'; - /** - * Level of validation to be used for this hostname. Domain validation (dv) must be - * used. - */ - type?: CustomHostnamesAPI.DomainValidationType; + type?: unknown; /** * The time the custom certificate was uploaded. diff --git a/src/resources/custom-hostnames/custom-hostnames.ts b/src/resources/custom-hostnames/custom-hostnames.ts index 2b2e93ce3a..12bf04ef25 100644 --- a/src/resources/custom-hostnames/custom-hostnames.ts +++ b/src/resources/custom-hostnames/custom-hostnames.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as CustomHostnamesAPI from './custom-hostnames'; import * as Shared from '../shared'; import * as FallbackOriginAPI from './fallback-origin'; import { @@ -115,344 +114,13 @@ export class CustomHostnames extends APIResource { export class CustomHostnameListResponsesV4PagePaginationArray extends V4PagePaginationArray {} -/** - * A ubiquitous bundle has the highest probability of being verified everywhere, - * even by clients using outdated or unusual trust stores. An optimal bundle uses - * the shortest chain and newest intermediates. And the force bundle verifies the - * chain, but does not otherwise modify it. - */ -export type BundleMethod = 'ubiquitous' | 'optimal' | 'force'; +export type BundleMethod = unknown; -/** - * A ubiquitous bundle has the highest probability of being verified everywhere, - * even by clients using outdated or unusual trust stores. An optimal bundle uses - * the shortest chain and newest intermediates. And the force bundle verifies the - * chain, but does not otherwise modify it. - */ -export type BundleMethodParam = 'ubiquitous' | 'optimal' | 'force'; +export type CustomHostname = unknown; -export interface CustomHostname { - /** - * Identifier - */ - id: string; - - /** - * The custom hostname that will point to your hostname via CNAME. - */ - hostname: string; - - ssl: CustomHostname.SSL; - - /** - * This is the time the hostname was created. - */ - created_at?: string; - - /** - * Unique key/value metadata for this hostname. These are per-hostname (customer) - * settings. - */ - custom_metadata?: Record; - - /** - * a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME - * record. - */ - custom_origin_server?: string; - - /** - * A hostname that will be sent to your custom origin server as SNI for TLS - * handshake. This can be a valid subdomain of the zone or custom origin server - * name or the string ':request_host_header:' which will cause the host header in - * the request to be used as SNI. Not configurable with default/fallback origin - * server. - */ - custom_origin_sni?: string; - - /** - * This is a record which can be placed to activate a hostname. - */ - ownership_verification?: CustomHostname.OwnershipVerification; - - /** - * This presents the token to be served by the given http url to activate a - * hostname. - */ - ownership_verification_http?: CustomHostname.OwnershipVerificationHTTP; - - /** - * Status of the hostname's activation. - */ - status?: - | 'active' - | 'pending' - | 'active_redeploying' - | 'moved' - | 'pending_deletion' - | 'deleted' - | 'pending_blocked' - | 'pending_migration' - | 'pending_provisioned' - | 'test_pending' - | 'test_active' - | 'test_active_apex' - | 'test_blocked' - | 'test_failed' - | 'provisioned' - | 'blocked'; - - /** - * These are errors that were encountered while trying to activate a hostname. - */ - verification_errors?: Array; -} - -export namespace CustomHostname { - export interface SSL { - /** - * Custom hostname SSL identifier tag. - */ - id?: string; - - /** - * A ubiquitous bundle has the highest probability of being verified everywhere, - * even by clients using outdated or unusual trust stores. An optimal bundle uses - * the shortest chain and newest intermediates. And the force bundle verifies the - * chain, but does not otherwise modify it. - */ - bundle_method?: CustomHostnamesAPI.BundleMethod; - - /** - * The Certificate Authority that will issue the certificate - */ - certificate_authority?: Shared.CertificateCA; - - /** - * If a custom uploaded certificate is used. - */ - custom_certificate?: string; - - /** - * The identifier for the Custom CSR that was used. - */ - custom_csr_id?: string; - - /** - * The key for a custom uploaded certificate. - */ - custom_key?: string; - - /** - * The time the custom certificate expires on. - */ - expires_on?: string; - - /** - * A list of Hostnames on a custom uploaded certificate. - */ - hosts?: Array; - - /** - * The issuer on a custom uploaded certificate. - */ - issuer?: string; - - /** - * Domain control validation (DCV) method used for this hostname. - */ - method?: CustomHostnamesAPI.DCVMethod; - - /** - * The serial number on a custom uploaded certificate. - */ - serial_number?: string; - - settings?: SSL.Settings; - - /** - * The signature on a custom uploaded certificate. - */ - signature?: string; - - /** - * Status of the hostname's SSL certificates. - */ - status?: - | 'initializing' - | 'pending_validation' - | 'deleted' - | 'pending_issuance' - | 'pending_deployment' - | 'pending_deletion' - | 'pending_expiration' - | 'expired' - | 'active' - | 'initializing_timed_out' - | 'validation_timed_out' - | 'issuance_timed_out' - | 'deployment_timed_out' - | 'deletion_timed_out' - | 'pending_cleanup' - | 'staging_deployment' - | 'staging_active' - | 'deactivating' - | 'inactive' - | 'backup_issued' - | 'holding_deployment'; - - /** - * Level of validation to be used for this hostname. Domain validation (dv) must be - * used. - */ - type?: CustomHostnamesAPI.DomainValidationType; - - /** - * The time the custom certificate was uploaded. - */ - uploaded_on?: string; - - /** - * Domain validation errors that have been received by the certificate authority - * (CA). - */ - validation_errors?: Array; - - validation_records?: Array; - - /** - * Indicates whether the certificate covers a wildcard. - */ - wildcard?: boolean; - } - - export namespace SSL { - export interface Settings { - /** - * An allowlist of ciphers for TLS termination. These ciphers must be in the - * BoringSSL format. - */ - ciphers?: Array; - - /** - * Whether or not Early Hints is enabled. - */ - early_hints?: 'on' | 'off'; - - /** - * Whether or not HTTP2 is enabled. - */ - http2?: 'on' | 'off'; - - /** - * The minimum TLS version supported. - */ - min_tls_version?: '1.0' | '1.1' | '1.2' | '1.3'; - - /** - * Whether or not TLS 1.3 is enabled. - */ - tls_1_3?: 'on' | 'off'; - } - - export interface ValidationError { - /** - * A domain validation error. - */ - message?: string; - } - - export interface ValidationRecord { - /** - * The set of email addresses that the certificate authority (CA) will use to - * complete domain validation. - */ - emails?: Array; - - /** - * The content that the certificate authority (CA) will expect to find at the - * http_url during the domain validation. - */ - http_body?: string; - - /** - * The url that will be checked during domain validation. - */ - http_url?: string; - - /** - * The hostname that the certificate authority (CA) will check for a TXT record - * during domain validation . - */ - txt_name?: string; - - /** - * The TXT record that the certificate authority (CA) will check during domain - * validation. - */ - txt_value?: string; - } - } +export type DCVMethod = unknown; - /** - * This is a record which can be placed to activate a hostname. - */ - export interface OwnershipVerification { - /** - * DNS Name for record. - */ - name?: string; - - /** - * DNS Record type. - */ - type?: 'txt'; - - /** - * Content for the record. - */ - value?: string; - } - - /** - * This presents the token to be served by the given http url to activate a - * hostname. - */ - export interface OwnershipVerificationHTTP { - /** - * Token to be served. - */ - http_body?: string; - - /** - * The HTTP URL that will be checked during custom hostname verification and where - * the customer should host the token. - */ - http_url?: string; - } -} - -/** - * Domain control validation (DCV) method used for this hostname. - */ -export type DCVMethod = 'http' | 'txt' | 'email'; - -/** - * Domain control validation (DCV) method used for this hostname. - */ -export type DCVMethodParam = 'http' | 'txt' | 'email'; - -/** - * Level of validation to be used for this hostname. Domain validation (dv) must be - * used. - */ -export type DomainValidationType = 'dv'; - -/** - * Level of validation to be used for this hostname. Domain validation (dv) must be - * used. - */ -export type DomainValidationTypeParam = 'dv'; +export type DomainValidationType = unknown; export interface CustomHostnameCreateResponse { /** @@ -538,13 +206,7 @@ export namespace CustomHostnameCreateResponse { */ id?: string; - /** - * A ubiquitous bundle has the highest probability of being verified everywhere, - * even by clients using outdated or unusual trust stores. An optimal bundle uses - * the shortest chain and newest intermediates. And the force bundle verifies the - * chain, but does not otherwise modify it. - */ - bundle_method?: CustomHostnamesAPI.BundleMethod; + bundle_method?: unknown; /** * The Certificate Authority that will issue the certificate @@ -581,10 +243,7 @@ export namespace CustomHostnameCreateResponse { */ issuer?: string; - /** - * Domain control validation (DCV) method used for this hostname. - */ - method?: CustomHostnamesAPI.DCVMethod; + method?: unknown; /** * The serial number on a custom uploaded certificate. @@ -624,11 +283,7 @@ export namespace CustomHostnameCreateResponse { | 'backup_issued' | 'holding_deployment'; - /** - * Level of validation to be used for this hostname. Domain validation (dv) must be - * used. - */ - type?: CustomHostnamesAPI.DomainValidationType; + type?: unknown; /** * The time the custom certificate was uploaded. @@ -839,13 +494,7 @@ export namespace CustomHostnameListResponse { */ id?: string; - /** - * A ubiquitous bundle has the highest probability of being verified everywhere, - * even by clients using outdated or unusual trust stores. An optimal bundle uses - * the shortest chain and newest intermediates. And the force bundle verifies the - * chain, but does not otherwise modify it. - */ - bundle_method?: CustomHostnamesAPI.BundleMethod; + bundle_method?: unknown; /** * The Certificate Authority that will issue the certificate @@ -882,10 +531,7 @@ export namespace CustomHostnameListResponse { */ issuer?: string; - /** - * Domain control validation (DCV) method used for this hostname. - */ - method?: CustomHostnamesAPI.DCVMethod; + method?: unknown; /** * The serial number on a custom uploaded certificate. @@ -925,11 +571,7 @@ export namespace CustomHostnameListResponse { | 'backup_issued' | 'holding_deployment'; - /** - * Level of validation to be used for this hostname. Domain validation (dv) must be - * used. - */ - type?: CustomHostnamesAPI.DomainValidationType; + type?: unknown; /** * The time the custom certificate was uploaded. @@ -1147,13 +789,7 @@ export namespace CustomHostnameEditResponse { */ id?: string; - /** - * A ubiquitous bundle has the highest probability of being verified everywhere, - * even by clients using outdated or unusual trust stores. An optimal bundle uses - * the shortest chain and newest intermediates. And the force bundle verifies the - * chain, but does not otherwise modify it. - */ - bundle_method?: CustomHostnamesAPI.BundleMethod; + bundle_method?: unknown; /** * The Certificate Authority that will issue the certificate @@ -1190,10 +826,7 @@ export namespace CustomHostnameEditResponse { */ issuer?: string; - /** - * Domain control validation (DCV) method used for this hostname. - */ - method?: CustomHostnamesAPI.DCVMethod; + method?: unknown; /** * The serial number on a custom uploaded certificate. @@ -1233,11 +866,7 @@ export namespace CustomHostnameEditResponse { | 'backup_issued' | 'holding_deployment'; - /** - * Level of validation to be used for this hostname. Domain validation (dv) must be - * used. - */ - type?: CustomHostnamesAPI.DomainValidationType; + type?: unknown; /** * The time the custom certificate was uploaded. @@ -1448,13 +1077,7 @@ export namespace CustomHostnameGetResponse { */ id?: string; - /** - * A ubiquitous bundle has the highest probability of being verified everywhere, - * even by clients using outdated or unusual trust stores. An optimal bundle uses - * the shortest chain and newest intermediates. And the force bundle verifies the - * chain, but does not otherwise modify it. - */ - bundle_method?: CustomHostnamesAPI.BundleMethod; + bundle_method?: unknown; /** * The Certificate Authority that will issue the certificate @@ -1491,10 +1114,7 @@ export namespace CustomHostnameGetResponse { */ issuer?: string; - /** - * Domain control validation (DCV) method used for this hostname. - */ - method?: CustomHostnamesAPI.DCVMethod; + method?: unknown; /** * The serial number on a custom uploaded certificate. @@ -1534,11 +1154,7 @@ export namespace CustomHostnameGetResponse { | 'backup_issued' | 'holding_deployment'; - /** - * Level of validation to be used for this hostname. Domain validation (dv) must be - * used. - */ - type?: CustomHostnamesAPI.DomainValidationType; + type?: unknown; /** * The time the custom certificate was uploaded. @@ -1693,13 +1309,7 @@ export namespace CustomHostnameCreateParams { * SSL properties used when creating the custom hostname. */ export interface SSL { - /** - * A ubiquitous bundle has the highest probability of being verified everywhere, - * even by clients using outdated or unusual trust stores. An optimal bundle uses - * the shortest chain and newest intermediates. And the force bundle verifies the - * chain, but does not otherwise modify it. - */ - bundle_method?: CustomHostnamesAPI.BundleMethodParam; + bundle_method?: unknown; /** * The Certificate Authority that will issue the certificate @@ -1727,21 +1337,14 @@ export namespace CustomHostnameCreateParams { */ custom_key?: string; - /** - * Domain control validation (DCV) method used for this hostname. - */ - method?: CustomHostnamesAPI.DCVMethodParam; + method?: unknown; /** * SSL specific settings. */ settings?: SSL.Settings; - /** - * Level of validation to be used for this hostname. Domain validation (dv) must be - * used. - */ - type?: CustomHostnamesAPI.DomainValidationTypeParam; + type?: unknown; /** * Indicates whether the certificate covers a wildcard. @@ -1875,13 +1478,7 @@ export namespace CustomHostnameEditParams { * SSL properties used when creating the custom hostname. */ export interface SSL { - /** - * A ubiquitous bundle has the highest probability of being verified everywhere, - * even by clients using outdated or unusual trust stores. An optimal bundle uses - * the shortest chain and newest intermediates. And the force bundle verifies the - * chain, but does not otherwise modify it. - */ - bundle_method?: CustomHostnamesAPI.BundleMethodParam; + bundle_method?: unknown; /** * The Certificate Authority that will issue the certificate @@ -1909,21 +1506,14 @@ export namespace CustomHostnameEditParams { */ custom_key?: string; - /** - * Domain control validation (DCV) method used for this hostname. - */ - method?: CustomHostnamesAPI.DCVMethodParam; + method?: unknown; /** * SSL specific settings. */ settings?: SSL.Settings; - /** - * Level of validation to be used for this hostname. Domain validation (dv) must be - * used. - */ - type?: CustomHostnamesAPI.DomainValidationTypeParam; + type?: unknown; /** * Indicates whether the certificate covers a wildcard. diff --git a/src/resources/dns/analytics/reports/bytimes.ts b/src/resources/dns/analytics/reports/bytimes.ts index f3e3b81c48..e1ec5f2d35 100644 --- a/src/resources/dns/analytics/reports/bytimes.ts +++ b/src/resources/dns/analytics/reports/bytimes.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../../resource'; import * as Core from '../../../../core'; -import * as DNSAPI from '../../dns'; export class Bytimes extends APIResource { /** @@ -47,7 +46,7 @@ export interface ByTime { */ min: unknown; - query: DNSAPI.DNSAnalyticsQuery; + query: unknown; /** * Total number of rows in the result. @@ -79,7 +78,7 @@ export namespace ByTime { * Array with one item per requested metric. Each item is an array of values, * broken down by time interval. */ - metrics: Array; + metrics: Array; } } diff --git a/src/resources/dns/analytics/reports/reports.ts b/src/resources/dns/analytics/reports/reports.ts index 5e497635d4..61fd31fdd6 100644 --- a/src/resources/dns/analytics/reports/reports.ts +++ b/src/resources/dns/analytics/reports/reports.ts @@ -29,7 +29,7 @@ export interface Report { /** * Array with one row per combination of dimension values. */ - data: Array; + data: Array; /** * Number of seconds between current time and last processed event, in another @@ -64,19 +64,6 @@ export interface Report { } export namespace Report { - export interface Data { - /** - * Array of dimension values, representing the combination of dimension values - * corresponding to this row. - */ - dimensions: Array; - - /** - * Array with one item per requested metric. Each item is a single value. - */ - metrics: Array; - } - export interface Query { /** * Array of dimension names. diff --git a/src/resources/dns/dns.ts b/src/resources/dns/dns.ts index 49d6d2b48e..54da9c0b55 100644 --- a/src/resources/dns/dns.ts +++ b/src/resources/dns/dns.ts @@ -71,63 +71,9 @@ export class DNS extends APIResource { zoneTransfers: ZoneTransfersAPI.ZoneTransfers = new ZoneTransfersAPI.ZoneTransfers(this._client); } -/** - * Nominal metric values, broken down by time interval. - */ -export type DNSAnalyticsNominalMetric = Array; +export type DNSAnalyticsNominalMetric = unknown; -export interface DNSAnalyticsQuery { - /** - * Array of dimension names. - */ - dimensions: Array; - - /** - * Limit number of returned metrics. - */ - limit: number; - - /** - * Array of metric names. - */ - metrics: Array; - - /** - * Start date and time of requesting data period in ISO 8601 format. - */ - since: string; - - /** - * Unit of time to group data by. - */ - time_delta: - | 'all' - | 'auto' - | 'year' - | 'quarter' - | 'month' - | 'week' - | 'day' - | 'hour' - | 'dekaminute' - | 'minute'; - - /** - * End date and time of requesting data period in ISO 8601 format. - */ - until: string; - - /** - * Segmentation filter in 'attribute operator value' format. - */ - filters?: string; - - /** - * Array of dimensions to sort by, where each dimension may be prefixed by - - * (descending) or + (ascending). - */ - sort?: Array; -} +export type DNSAnalyticsQuery = unknown; DNS.DNSSECResource = DNSSECResource; DNS.Records = Records; diff --git a/src/resources/dns/zone-transfers/incoming.ts b/src/resources/dns/zone-transfers/incoming.ts index 505b692b2a..a9ee5a59db 100644 --- a/src/resources/dns/zone-transfers/incoming.ts +++ b/src/resources/dns/zone-transfers/incoming.ts @@ -62,45 +62,7 @@ export class IncomingResource extends APIResource { } } -export interface Incoming { - id?: string; - - /** - * How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not - * applicable for primary zones. - */ - auto_refresh_seconds?: number; - - /** - * The time for a specific event. - */ - checked_time?: string; - - /** - * The time for a specific event. - */ - created_time?: string; - - /** - * The time for a specific event. - */ - modified_time?: string; - - /** - * Zone name. - */ - name?: string; - - /** - * A list of peer tags. - */ - peers?: Array; - - /** - * The serial number of the SOA for the given zone. - */ - soa_serial?: number; -} +export type Incoming = unknown; export interface IncomingCreateResponse { id?: string; diff --git a/src/resources/dns/zone-transfers/outgoing/outgoing.ts b/src/resources/dns/zone-transfers/outgoing/outgoing.ts index a7dd05a120..a58719fca7 100644 --- a/src/resources/dns/zone-transfers/outgoing/outgoing.ts +++ b/src/resources/dns/zone-transfers/outgoing/outgoing.ts @@ -119,44 +119,9 @@ export type DisableTransfer = string; */ export type EnableTransfer = string; -export interface Outgoing { - id?: string; - - /** - * The time for a specific event. - */ - checked_time?: string; - - /** - * The time for a specific event. - */ - created_time?: string; +export type Outgoing = unknown; - /** - * The time for a specific event. - */ - last_transferred_time?: string; - - /** - * Zone name. - */ - name?: string; - - /** - * A list of peer tags. - */ - peers?: Array; - - /** - * The serial number of the SOA for the given zone. - */ - soa_serial?: number; -} - -/** - * The zone transfer status of a primary zone - */ -export type OutgoingStatus = string | null; +export type OutgoingStatus = unknown; export interface OutgoingCreateResponse { id?: string; diff --git a/src/resources/email-routing/dns.ts b/src/resources/email-routing/dns.ts index 1a1035d4cd..82f7dcf489 100644 --- a/src/resources/email-routing/dns.ts +++ b/src/resources/email-routing/dns.ts @@ -3,7 +3,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; import * as DNSAPI from './dns'; -import * as Shared from '../shared'; import * as EmailRoutingAPI from './email-routing'; import { SinglePage } from '../../pagination'; @@ -114,9 +113,9 @@ export type DNSGetResponse = export namespace DNSGetResponse { export interface EmailEmailRoutingDNSQueryResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful @@ -170,9 +169,9 @@ export namespace DNSGetResponse { } export interface EmailDNSSettingsResponseCollection { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/firewall/waf/packages/packages.ts b/src/resources/firewall/waf/packages/packages.ts index bab75abe14..0c1d2381ab 100644 --- a/src/resources/firewall/waf/packages/packages.ts +++ b/src/resources/firewall/waf/packages/packages.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../../resource'; import * as Core from '../../../../core'; -import * as Shared from '../../../shared'; import * as GroupsAPI from './groups'; import { Group, @@ -75,9 +74,9 @@ export type PackageGetResponse = PackageGetResponse.FirewallAPIResponseSingle | export namespace PackageGetResponse { export interface FirewallAPIResponseSingle { - errors: Array; + errors: Array; - messages: Array; + messages: Array; result: unknown | string | null; diff --git a/src/resources/firewall/waf/packages/rules.ts b/src/resources/firewall/waf/packages/rules.ts index 4884478794..8b1d1385e6 100644 --- a/src/resources/firewall/waf/packages/rules.ts +++ b/src/resources/firewall/waf/packages/rules.ts @@ -76,20 +76,7 @@ export class RuleListResponsesV4PagePaginationArray extends V4PagePaginationArra */ export type AllowedModesAnomaly = 'on' | 'off'; -/** - * The rule group to which the current WAF rule belongs. - */ -export interface WAFRuleGroup { - /** - * The unique identifier of the rule group. - */ - id?: string; - - /** - * The name of the rule group. - */ - name?: string; -} +export type WAFRuleGroup = unknown; /** * When triggered, anomaly detection WAF rules contribute to an overall threat @@ -126,10 +113,7 @@ export namespace RuleListResponse { */ description: string; - /** - * The rule group to which the current WAF rule belongs. - */ - group: RulesAPI.WAFRuleGroup; + group: unknown; /** * When set to `on`, the current WAF rule will be used when evaluating the request. @@ -175,10 +159,7 @@ export namespace RuleListResponse { */ description: string; - /** - * The rule group to which the current WAF rule belongs. - */ - group: RulesAPI.WAFRuleGroup; + group: unknown; /** * The action that the current WAF rule will perform when triggered. Applies to @@ -218,10 +199,7 @@ export namespace RuleListResponse { */ description: string; - /** - * The rule group to which the current WAF rule belongs. - */ - group: RulesAPI.WAFRuleGroup; + group: unknown; /** * When set to `on`, the current rule will be used when evaluating the request. @@ -276,10 +254,7 @@ export namespace RuleEditResponse { */ description: string; - /** - * The rule group to which the current WAF rule belongs. - */ - group: RulesAPI.WAFRuleGroup; + group: unknown; /** * When set to `on`, the current WAF rule will be used when evaluating the request. @@ -325,10 +300,7 @@ export namespace RuleEditResponse { */ description: string; - /** - * The rule group to which the current WAF rule belongs. - */ - group: RulesAPI.WAFRuleGroup; + group: unknown; /** * The action that the current WAF rule will perform when triggered. Applies to @@ -368,10 +340,7 @@ export namespace RuleEditResponse { */ description: string; - /** - * The rule group to which the current WAF rule belongs. - */ - group: RulesAPI.WAFRuleGroup; + group: unknown; /** * When set to `on`, the current rule will be used when evaluating the request. diff --git a/src/resources/intel/attack-surface-report/issues.ts b/src/resources/intel/attack-surface-report/issues.ts index 5e8e241f83..24d54aeff1 100644 --- a/src/resources/intel/attack-surface-report/issues.ts +++ b/src/resources/intel/attack-surface-report/issues.ts @@ -3,7 +3,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; import * as IssuesAPI from './issues'; -import * as Shared from '../../shared'; import { V4PagePagination, type V4PagePaginationParams } from '../../../pagination'; export class Issues extends APIResource { @@ -156,9 +155,9 @@ export namespace IssueClassResponse { } export interface IssueDismissResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/intel/miscategorizations.ts b/src/resources/intel/miscategorizations.ts index 077bfb7a0e..dbb1162a1e 100644 --- a/src/resources/intel/miscategorizations.ts +++ b/src/resources/intel/miscategorizations.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as Shared from '../shared'; export class Miscategorizations extends APIResource { /** @@ -18,9 +17,9 @@ export class Miscategorizations extends APIResource { } export interface MiscategorizationCreateResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/keyless-certificates.ts b/src/resources/keyless-certificates.ts index a1119b187e..b2bf44e737 100644 --- a/src/resources/keyless-certificates.ts +++ b/src/resources/keyless-certificates.ts @@ -2,7 +2,6 @@ import { APIResource } from '../resource'; import * as Core from '../core'; -import * as CustomHostnamesAPI from './custom-hostnames/custom-hostnames'; import { SinglePage } from '../pagination'; export class KeylessCertificates extends APIResource { @@ -205,12 +204,9 @@ export interface KeylessCertificateCreateParams { port: number; /** - * Body param: A ubiquitous bundle has the highest probability of being verified - * everywhere, even by clients using outdated or unusual trust stores. An optimal - * bundle uses the shortest chain and newest intermediates. And the force bundle - * verifies the chain, but does not otherwise modify it. + * Body param: */ - bundle_method?: CustomHostnamesAPI.BundleMethodParam; + bundle_method?: unknown; /** * Body param: The keyless SSL name. diff --git a/src/resources/logpush/index.ts b/src/resources/logpush/index.ts index fcf0b290ad..dcab52888d 100644 --- a/src/resources/logpush/index.ts +++ b/src/resources/logpush/index.ts @@ -25,6 +25,7 @@ export { Ownership, type OwnershipValidation, type OwnershipCreateResponse, + type OwnershipValidateResponse, type OwnershipCreateParams, type OwnershipValidateParams, } from './ownership'; diff --git a/src/resources/logpush/logpush.ts b/src/resources/logpush/logpush.ts index 5efcc2ea37..4d9415e76f 100644 --- a/src/resources/logpush/logpush.ts +++ b/src/resources/logpush/logpush.ts @@ -28,6 +28,7 @@ import { OwnershipCreateParams, OwnershipCreateResponse, OwnershipValidateParams, + OwnershipValidateResponse, OwnershipValidation, } from './ownership'; import * as ValidateAPI from './validate'; @@ -87,6 +88,7 @@ export declare namespace Logpush { Ownership as Ownership, type OwnershipValidation as OwnershipValidation, type OwnershipCreateResponse as OwnershipCreateResponse, + type OwnershipValidateResponse as OwnershipValidateResponse, type OwnershipCreateParams as OwnershipCreateParams, type OwnershipValidateParams as OwnershipValidateParams, }; diff --git a/src/resources/logpush/ownership.ts b/src/resources/logpush/ownership.ts index 27c99aa9c8..e180815cd4 100644 --- a/src/resources/logpush/ownership.ts +++ b/src/resources/logpush/ownership.ts @@ -43,7 +43,7 @@ export class Ownership extends APIResource { validate( params: OwnershipValidateParams, 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.'); @@ -65,14 +65,12 @@ export class Ownership extends APIResource { this._client.post(`/${accountOrZone}/${accountOrZoneId}/logpush/ownership/validate`, { body, ...options, - }) as Core.APIPromise<{ result: OwnershipValidation | null }> + }) as Core.APIPromise<{ result: OwnershipValidateResponse }> )._thenUnwrap((obj) => obj.result); } } -export interface OwnershipValidation { - valid?: boolean; -} +export type OwnershipValidation = unknown; export interface OwnershipCreateResponse { filename?: string; @@ -82,6 +80,8 @@ export interface OwnershipCreateResponse { valid?: boolean; } +export type OwnershipValidateResponse = unknown; + export interface OwnershipCreateParams { /** * Body param: Uniquely identifies a resource (such as an s3 bucket) where data @@ -133,6 +133,7 @@ export declare namespace Ownership { export { type OwnershipValidation as OwnershipValidation, type OwnershipCreateResponse as OwnershipCreateResponse, + type OwnershipValidateResponse as OwnershipValidateResponse, type OwnershipCreateParams as OwnershipCreateParams, type OwnershipValidateParams as OwnershipValidateParams, }; diff --git a/src/resources/magic-transit/gre-tunnels.ts b/src/resources/magic-transit/gre-tunnels.ts index 119ec7c7d9..fd59e1ccf1 100644 --- a/src/resources/magic-transit/gre-tunnels.ts +++ b/src/resources/magic-transit/gre-tunnels.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as MagicTransitAPI from './magic-transit'; export class GRETunnels extends APIResource { /** @@ -217,10 +216,7 @@ export namespace GRETunnelCreateResponse { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRate; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -233,10 +229,7 @@ export namespace GRETunnelCreateResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckType; + type?: unknown; } export namespace HealthCheck { @@ -345,10 +338,7 @@ export namespace GRETunnelUpdateResponse { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRate; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -361,10 +351,7 @@ export namespace GRETunnelUpdateResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckType; + type?: unknown; } export namespace HealthCheck { @@ -471,10 +458,7 @@ export namespace GRETunnelListResponse { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRate; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -487,10 +471,7 @@ export namespace GRETunnelListResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckType; + type?: unknown; } export namespace HealthCheck { @@ -599,10 +580,7 @@ export namespace GRETunnelDeleteResponse { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRate; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -615,10 +593,7 @@ export namespace GRETunnelDeleteResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckType; + type?: unknown; } export namespace HealthCheck { @@ -727,10 +702,7 @@ export namespace GRETunnelBulkUpdateResponse { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRate; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -743,10 +715,7 @@ export namespace GRETunnelBulkUpdateResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckType; + type?: unknown; } export namespace HealthCheck { @@ -853,10 +822,7 @@ export namespace GRETunnelGetResponse { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRate; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -869,10 +835,7 @@ export namespace GRETunnelGetResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckType; + type?: unknown; } export namespace HealthCheck { @@ -992,10 +955,7 @@ export namespace GRETunnelUpdateParams { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRateParam; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -1008,10 +968,7 @@ export namespace GRETunnelUpdateParams { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckTypeParam; + type?: unknown; } export namespace HealthCheck { diff --git a/src/resources/magic-transit/ipsec-tunnels.ts b/src/resources/magic-transit/ipsec-tunnels.ts index 132570f9bb..f7783db477 100644 --- a/src/resources/magic-transit/ipsec-tunnels.ts +++ b/src/resources/magic-transit/ipsec-tunnels.ts @@ -3,7 +3,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; import * as IPSECTunnelsAPI from './ipsec-tunnels'; -import * as MagicTransitAPI from './magic-transit'; export class IPSECTunnels extends APIResource { /** @@ -262,10 +261,7 @@ export namespace IPSECTunnelCreateResponse { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRate; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -278,10 +274,7 @@ export namespace IPSECTunnelCreateResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckType; + type?: unknown; } export namespace HealthCheck { @@ -396,10 +389,7 @@ export namespace IPSECTunnelUpdateResponse { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRate; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -412,10 +402,7 @@ export namespace IPSECTunnelUpdateResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckType; + type?: unknown; } export namespace HealthCheck { @@ -528,10 +515,7 @@ export namespace IPSECTunnelListResponse { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRate; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -544,10 +528,7 @@ export namespace IPSECTunnelListResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckType; + type?: unknown; } export namespace HealthCheck { @@ -662,10 +643,7 @@ export namespace IPSECTunnelDeleteResponse { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRate; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -678,10 +656,7 @@ export namespace IPSECTunnelDeleteResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckType; + type?: unknown; } export namespace HealthCheck { @@ -796,10 +771,7 @@ export namespace IPSECTunnelBulkUpdateResponse { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRate; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -812,10 +784,7 @@ export namespace IPSECTunnelBulkUpdateResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckType; + type?: unknown; } export namespace HealthCheck { @@ -928,10 +897,7 @@ export namespace IPSECTunnelGetResponse { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRate; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -944,10 +910,7 @@ export namespace IPSECTunnelGetResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckType; + type?: unknown; } export namespace HealthCheck { @@ -1066,10 +1029,7 @@ export namespace IPSECTunnelCreateParams { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRateParam; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -1082,10 +1042,7 @@ export namespace IPSECTunnelCreateParams { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckTypeParam; + type?: unknown; } export namespace HealthCheck { @@ -1179,10 +1136,7 @@ export namespace IPSECTunnelUpdateParams { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: MagicTransitAPI.HealthCheckRateParam; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -1195,10 +1149,7 @@ export namespace IPSECTunnelUpdateParams { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: MagicTransitAPI.HealthCheckTypeParam; + type?: unknown; } export namespace HealthCheck { diff --git a/src/resources/magic-transit/magic-transit.ts b/src/resources/magic-transit/magic-transit.ts index 5f89eab449..536800f50e 100644 --- a/src/resources/magic-transit/magic-transit.ts +++ b/src/resources/magic-transit/magic-transit.ts @@ -137,10 +137,7 @@ export interface HealthCheck { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: HealthCheckRate; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -153,10 +150,7 @@ export interface HealthCheck { */ target?: HealthCheck.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: HealthCheckType; + type?: unknown; } export namespace HealthCheck { @@ -189,10 +183,7 @@ export interface HealthCheckParam { */ enabled?: boolean; - /** - * How frequent the health check is run. The default value is `mid`. - */ - rate?: HealthCheckRateParam; + rate?: unknown; /** * The destination address in a request type health check. After the healthcheck is @@ -205,10 +196,7 @@ export interface HealthCheckParam { */ target?: HealthCheckParam.MagicHealthCheckTarget | string; - /** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ - type?: HealthCheckTypeParam; + type?: unknown; } export namespace HealthCheckParam { @@ -228,25 +216,9 @@ export namespace HealthCheckParam { } } -/** - * How frequent the health check is run. The default value is `mid`. - */ -export type HealthCheckRate = 'low' | 'mid' | 'high'; - -/** - * How frequent the health check is run. The default value is `mid`. - */ -export type HealthCheckRateParam = 'low' | 'mid' | 'high'; - -/** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ -export type HealthCheckType = 'reply' | 'request'; +export type HealthCheckRate = unknown; -/** - * The type of healthcheck to run, reply or request. The default value is `reply`. - */ -export type HealthCheckTypeParam = 'reply' | 'request'; +export type HealthCheckType = unknown; MagicTransit.Apps = Apps; MagicTransit.AppListResponsesSinglePage = AppListResponsesSinglePage; diff --git a/src/resources/magic-transit/sites/acls.ts b/src/resources/magic-transit/sites/acls.ts index c79a505b86..f838df9c0d 100644 --- a/src/resources/magic-transit/sites/acls.ts +++ b/src/resources/magic-transit/sites/acls.ts @@ -140,7 +140,7 @@ export interface ACL { */ name?: string; - protocols?: Array; + protocols?: Array; /** * The desired traffic direction for this ACL policy. If set to "false", the policy @@ -212,17 +212,7 @@ export interface ACLConfigurationParam { subnets?: Array; } -/** - * Array of allowed communication protocols between configured LANs. If no - * protocols are provided, all protocols are allowed. - */ -export type AllowedProtocol = 'tcp' | 'udp' | 'icmp'; - -/** - * Array of allowed communication protocols between configured LANs. If no - * protocols are provided, all protocols are allowed. - */ -export type AllowedProtocolParam = 'tcp' | 'udp' | 'icmp'; +export type AllowedProtocol = unknown; /** * A valid IPv4 address. @@ -271,7 +261,7 @@ export interface ACLCreateParams { /** * Body param: */ - protocols?: Array; + protocols?: Array; /** * Body param: The desired traffic direction for this ACL policy. If set to @@ -319,7 +309,7 @@ export interface ACLUpdateParams { /** * Body param: */ - protocols?: Array; + protocols?: Array; /** * Body param: The desired traffic direction for this ACL policy. If set to @@ -381,7 +371,7 @@ export interface ACLEditParams { /** * Body param: */ - protocols?: Array; + protocols?: Array; /** * Body param: The desired traffic direction for this ACL policy. If set to diff --git a/src/resources/origin-post-quantum-encryption.ts b/src/resources/origin-post-quantum-encryption.ts index be4d295897..3f78a80c57 100644 --- a/src/resources/origin-post-quantum-encryption.ts +++ b/src/resources/origin-post-quantum-encryption.ts @@ -46,49 +46,9 @@ export class OriginPostQuantumEncryption extends APIResource { } } -export interface OriginPostQuantumEncryptionUpdateResponse { - /** - * Value of the zone setting. - */ - id: 'origin_pqe'; - - /** - * Whether the setting is editable - */ - editable: boolean; - - /** - * The value of the feature - */ - value: 'preferred' | 'supported' | 'off'; - - /** - * Last time this setting was modified. - */ - modified_on?: string | null; -} +export type OriginPostQuantumEncryptionUpdateResponse = unknown; -export interface OriginPostQuantumEncryptionGetResponse { - /** - * Value of the zone setting. - */ - id: 'origin_pqe'; - - /** - * Whether the setting is editable - */ - editable: boolean; - - /** - * The value of the feature - */ - value: 'preferred' | 'supported' | 'off'; - - /** - * Last time this setting was modified. - */ - modified_on?: string | null; -} +export type OriginPostQuantumEncryptionGetResponse = unknown; export interface OriginPostQuantumEncryptionUpdateParams { /** diff --git a/src/resources/origin-tls-client-auth/hostnames/certificates.ts b/src/resources/origin-tls-client-auth/hostnames/certificates.ts index 64f8e3d28b..2d9f941e96 100644 --- a/src/resources/origin-tls-client-auth/hostnames/certificates.ts +++ b/src/resources/origin-tls-client-auth/hostnames/certificates.ts @@ -75,54 +75,7 @@ export class Certificates extends APIResource { export class CertificateListResponsesSinglePage extends SinglePage {} -export interface Certificate { - /** - * Identifier - */ - id?: string; - - /** - * The hostname certificate. - */ - certificate?: string; - - /** - * The date when the certificate expires. - */ - expires_on?: string; - - /** - * The certificate authority that issued the certificate. - */ - issuer?: string; - - /** - * The serial number on the uploaded certificate. - */ - serial_number?: string; - - /** - * The type of hash used for the certificate. - */ - signature?: string; - - /** - * Status of the certificate or the association. - */ - status?: - | 'initializing' - | 'pending_deployment' - | 'pending_deletion' - | 'active' - | 'deleted' - | 'deployment_timed_out' - | 'deletion_timed_out'; - - /** - * The time when the certificate was uploaded. - */ - uploaded_on?: string; -} +export type Certificate = unknown; export interface CertificateCreateResponse { /** diff --git a/src/resources/queues/consumers.ts b/src/resources/queues/consumers.ts index 7fe0776d57..645c762a96 100644 --- a/src/resources/queues/consumers.ts +++ b/src/resources/queues/consumers.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as Shared from '../shared'; import { SinglePage } from '../../pagination'; export class Consumers extends APIResource { @@ -177,7 +176,7 @@ export namespace Consumer { } export interface ConsumerDeleteResponse { - errors?: Array; + errors?: Array; messages?: Array; diff --git a/src/resources/queues/queues.ts b/src/resources/queues/queues.ts index 851d66a154..461b127523 100644 --- a/src/resources/queues/queues.ts +++ b/src/resources/queues/queues.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as Shared from '../shared'; import * as ConsumersAPI from './consumers'; import { Consumer, @@ -158,7 +157,7 @@ export namespace Queue { } export interface QueueDeleteResponse { - errors?: Array; + errors?: Array; messages?: Array; diff --git a/src/resources/r2/buckets/sippy.ts b/src/resources/r2/buckets/sippy.ts index 7743b687a2..1cabc3854d 100644 --- a/src/resources/r2/buckets/sippy.ts +++ b/src/resources/r2/buckets/sippy.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as SippyAPI from './sippy'; export class SippyResource extends APIResource { /** @@ -69,9 +68,7 @@ export class SippyResource extends APIResource { } } -export type Provider = 'r2'; - -export type ProviderParam = 'r2'; +export type Provider = unknown; export interface Sippy { /** @@ -107,7 +104,7 @@ export namespace Sippy { */ bucket?: string; - provider?: SippyAPI.Provider; + provider?: unknown; } /** @@ -172,7 +169,7 @@ export declare namespace SippyUpdateParams { */ accessKeyId?: string; - provider?: SippyAPI.ProviderParam; + provider?: unknown; /** * Value of a Cloudflare API token. This is the value labelled "Secret Access Key" @@ -250,7 +247,7 @@ export declare namespace SippyUpdateParams { */ accessKeyId?: string; - provider?: SippyAPI.ProviderParam; + provider?: unknown; /** * Value of a Cloudflare API token. This is the value labelled "Secret Access Key" diff --git a/src/resources/radar/ai/bots/summary.ts b/src/resources/radar/ai/bots/summary.ts index 3985e18fa2..dfa3a318f9 100644 --- a/src/resources/radar/ai/bots/summary.ts +++ b/src/resources/radar/ai/bots/summary.ts @@ -36,7 +36,7 @@ export interface SummaryUserAgentResponse { export namespace SummaryUserAgentResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -46,41 +46,11 @@ export namespace SummaryUserAgentResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } diff --git a/src/resources/radar/ai/inference/summary.ts b/src/resources/radar/ai/inference/summary.ts index 97bdff017a..b04b122739 100644 --- a/src/resources/radar/ai/inference/summary.ts +++ b/src/resources/radar/ai/inference/summary.ts @@ -52,7 +52,7 @@ export interface SummaryModelResponse { export namespace SummaryModelResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -62,41 +62,11 @@ export namespace SummaryModelResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } @@ -108,7 +78,7 @@ export interface SummaryTaskResponse { export namespace SummaryTaskResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -118,41 +88,11 @@ export namespace SummaryTaskResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } diff --git a/src/resources/radar/ai/inference/timeseries-groups/summary.ts b/src/resources/radar/ai/inference/timeseries-groups/summary.ts index 1466605675..c4d5246cdf 100644 --- a/src/resources/radar/ai/inference/timeseries-groups/summary.ts +++ b/src/resources/radar/ai/inference/timeseries-groups/summary.ts @@ -49,27 +49,13 @@ export class Summary extends APIResource { export interface SummaryModelResponse { meta: unknown; - serie_0: SummaryModelResponse.Serie0; -} - -export namespace SummaryModelResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface SummaryTaskResponse { meta: unknown; - serie_0: SummaryTaskResponse.Serie0; -} - -export namespace SummaryTaskResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface SummaryModelParams { diff --git a/src/resources/radar/ai/timeseries-groups.ts b/src/resources/radar/ai/timeseries-groups.ts index 14e61aeeae..6a2ed63bde 100644 --- a/src/resources/radar/ai/timeseries-groups.ts +++ b/src/resources/radar/ai/timeseries-groups.ts @@ -32,14 +32,7 @@ export class TimeseriesGroups extends APIResource { export interface TimeseriesGroupUserAgentResponse { meta: unknown; - serie_0: TimeseriesGroupUserAgentResponse.Serie0; -} - -export namespace TimeseriesGroupUserAgentResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupUserAgentParams { diff --git a/src/resources/radar/annotations/annotations.ts b/src/resources/radar/annotations/annotations.ts index 60f617d00f..2412d2467f 100644 --- a/src/resources/radar/annotations/annotations.ts +++ b/src/resources/radar/annotations/annotations.ts @@ -53,7 +53,7 @@ export namespace AnnotationListResponse { locations: Array; - locationsDetails: Array; + locationsDetails: Array; outage: Annotation.Outage; @@ -74,21 +74,7 @@ export namespace AnnotationListResponse { name: string; - locations?: ASNsDetail.Locations; - } - - export namespace ASNsDetail { - export interface Locations { - code: string; - - name: string; - } - } - - export interface LocationsDetail { - code: string; - - name: string; + locations?: unknown; } export interface Outage { diff --git a/src/resources/radar/annotations/outages.ts b/src/resources/radar/annotations/outages.ts index f5187c3bff..cde908d77d 100644 --- a/src/resources/radar/annotations/outages.ts +++ b/src/resources/radar/annotations/outages.ts @@ -65,7 +65,7 @@ export namespace OutageGetResponse { locations: Array; - locationsDetails: Array; + locationsDetails: Array; outage: Annotation.Outage; @@ -86,21 +86,7 @@ export namespace OutageGetResponse { name: string; - locations?: ASNsDetail.Locations; - } - - export namespace ASNsDetail { - export interface Locations { - code: string; - - name: string; - } - } - - export interface LocationsDetail { - code: string; - - name: string; + locations?: unknown; } export interface Outage { @@ -112,17 +98,7 @@ export namespace OutageGetResponse { } export interface OutageLocationsResponse { - annotations: Array; -} - -export namespace OutageLocationsResponse { - export interface Annotation { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; - } + annotations: Array; } export interface OutageGetParams { diff --git a/src/resources/radar/as112/as112.ts b/src/resources/radar/as112/as112.ts index 2670cf6ffb..892db20c1b 100644 --- a/src/resources/radar/as112/as112.ts +++ b/src/resources/radar/as112/as112.ts @@ -81,14 +81,14 @@ export class AS112 extends APIResource { export interface AS112TimeseriesResponse { meta: AS112TimeseriesResponse.Meta; - serie_0: AS112TimeseriesResponse.Serie0; + serie_0: unknown; } export namespace AS112TimeseriesResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -96,47 +96,11 @@ export namespace AS112TimeseriesResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Serie0 { - timestamps: Array; - - values: Array; } } diff --git a/src/resources/radar/as112/summary.ts b/src/resources/radar/as112/summary.ts index 734f2a0de6..b25541a7f2 100644 --- a/src/resources/radar/as112/summary.ts +++ b/src/resources/radar/as112/summary.ts @@ -142,7 +142,7 @@ export interface SummaryDNSSECResponse { export namespace SummaryDNSSECResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -152,41 +152,11 @@ export namespace SummaryDNSSECResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -204,7 +174,7 @@ export interface SummaryEdnsResponse { export namespace SummaryEdnsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -214,41 +184,11 @@ export namespace SummaryEdnsResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -261,12 +201,12 @@ export namespace SummaryEdnsResponse { export interface SummaryIPVersionResponse { meta: SummaryIPVersionResponse.Meta; - summary_0: SummaryIPVersionResponse.Summary0; + summary_0: unknown; } export namespace SummaryIPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -276,47 +216,11 @@ export namespace SummaryIPVersionResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Summary0 { - IPv4: string; - - IPv6: string; } } @@ -328,7 +232,7 @@ export interface SummaryProtocolResponse { export namespace SummaryProtocolResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -338,41 +242,11 @@ export namespace SummaryProtocolResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -394,7 +268,7 @@ export interface SummaryQueryTypeResponse { export namespace SummaryQueryTypeResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -404,41 +278,11 @@ export namespace SummaryQueryTypeResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } @@ -450,7 +294,7 @@ export interface SummaryResponseCodesResponse { export namespace SummaryResponseCodesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -460,41 +304,11 @@ export namespace SummaryResponseCodesResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } diff --git a/src/resources/radar/as112/timeseries-groups.ts b/src/resources/radar/as112/timeseries-groups.ts index 545db9d7ca..daad07eb42 100644 --- a/src/resources/radar/as112/timeseries-groups.ts +++ b/src/resources/radar/as112/timeseries-groups.ts @@ -208,27 +208,13 @@ export namespace TimeseriesGroupProtocolResponse { export interface TimeseriesGroupQueryTypeResponse { meta: unknown; - serie_0: TimeseriesGroupQueryTypeResponse.Serie0; -} - -export namespace TimeseriesGroupQueryTypeResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupResponseCodesResponse { meta: unknown; - serie_0: TimeseriesGroupResponseCodesResponse.Serie0; -} - -export namespace TimeseriesGroupResponseCodesResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupDNSSECParams { diff --git a/src/resources/radar/as112/top.ts b/src/resources/radar/as112/top.ts index 89d0328ad5..87276f4cc7 100644 --- a/src/resources/radar/as112/top.ts +++ b/src/resources/radar/as112/top.ts @@ -107,12 +107,12 @@ export class Top extends APIResource { export interface TopDNSSECResponse { meta: TopDNSSECResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TopDNSSECResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -120,61 +120,23 @@ export namespace TopDNSSECResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; } } export interface TopEdnsResponse { meta: TopEdnsResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TopEdnsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -182,61 +144,23 @@ export namespace TopEdnsResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; } } export interface TopIPVersionResponse { meta: TopIPVersionResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TopIPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -244,61 +168,23 @@ export namespace TopIPVersionResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; } } export interface TopLocationsResponse { meta: TopLocationsResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TopLocationsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -306,49 +192,11 @@ export namespace TopLocationsResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; } } diff --git a/src/resources/radar/attacks/layer3/layer3.ts b/src/resources/radar/attacks/layer3/layer3.ts index 141cc79f62..4885b987af 100644 --- a/src/resources/radar/attacks/layer3/layer3.ts +++ b/src/resources/radar/attacks/layer3/layer3.ts @@ -83,15 +83,7 @@ export class Layer3 extends APIResource { export interface Layer3TimeseriesResponse { meta: unknown; - serie_0: Layer3TimeseriesResponse.Serie0; -} - -export namespace Layer3TimeseriesResponse { - export interface Serie0 { - timestamps: Array; - - values: Array; - } + serie_0: unknown; } export interface Layer3TimeseriesParams { diff --git a/src/resources/radar/attacks/layer3/summary.ts b/src/resources/radar/attacks/layer3/summary.ts index b544c32bc9..3dc87d22bb 100644 --- a/src/resources/radar/attacks/layer3/summary.ts +++ b/src/resources/radar/attacks/layer3/summary.ts @@ -165,7 +165,7 @@ export interface SummaryBitrateResponse { export namespace SummaryBitrateResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -175,41 +175,11 @@ export namespace SummaryBitrateResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -233,7 +203,7 @@ export interface SummaryDurationResponse { export namespace SummaryDurationResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -243,41 +213,11 @@ export namespace SummaryDurationResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -303,7 +243,7 @@ export interface SummaryIndustryResponse { export namespace SummaryIndustryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -313,53 +253,23 @@ export namespace SummaryIndustryResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } export interface SummaryIPVersionResponse { meta: SummaryIPVersionResponse.Meta; - summary_0: SummaryIPVersionResponse.Summary0; + summary_0: unknown; } export namespace SummaryIPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -369,47 +279,11 @@ export namespace SummaryIPVersionResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Summary0 { - IPv4: string; - - IPv6: string; } } @@ -421,7 +295,7 @@ export interface SummaryProtocolResponse { export namespace SummaryProtocolResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -431,41 +305,11 @@ export namespace SummaryProtocolResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -487,7 +331,7 @@ export interface SummaryVectorResponse { export namespace SummaryVectorResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -497,41 +341,11 @@ export namespace SummaryVectorResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } @@ -543,7 +357,7 @@ export interface SummaryVerticalResponse { export namespace SummaryVerticalResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -553,41 +367,11 @@ export namespace SummaryVerticalResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } diff --git a/src/resources/radar/attacks/layer3/timeseries-groups.ts b/src/resources/radar/attacks/layer3/timeseries-groups.ts index 36be5798c0..04f5e78804 100644 --- a/src/resources/radar/attacks/layer3/timeseries-groups.ts +++ b/src/resources/radar/attacks/layer3/timeseries-groups.ts @@ -216,30 +216,13 @@ export namespace TimeseriesGroupDurationResponse { export interface TimeseriesGroupIndustryResponse { meta: unknown; - serie_0: TimeseriesGroupIndustryResponse.Serie0; -} - -export namespace TimeseriesGroupIndustryResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupIPVersionResponse { meta: unknown; - serie_0: TimeseriesGroupIPVersionResponse.Serie0; -} - -export namespace TimeseriesGroupIPVersionResponse { - export interface Serie0 { - IPv4: Array; - - IPv6: Array; - - timestamps: Array; - } + serie_0: unknown; } export interface TimeseriesGroupProtocolResponse { @@ -265,27 +248,13 @@ export namespace TimeseriesGroupProtocolResponse { export interface TimeseriesGroupVectorResponse { meta: unknown; - serie_0: TimeseriesGroupVectorResponse.Serie0; -} - -export namespace TimeseriesGroupVectorResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupVerticalResponse { meta: unknown; - serie_0: TimeseriesGroupVerticalResponse.Serie0; -} - -export namespace TimeseriesGroupVerticalResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupBitrateParams { diff --git a/src/resources/radar/attacks/layer3/top/locations.ts b/src/resources/radar/attacks/layer3/top/locations.ts index 72a7ee357a..343d2f2d54 100644 --- a/src/resources/radar/attacks/layer3/top/locations.ts +++ b/src/resources/radar/attacks/layer3/top/locations.ts @@ -60,7 +60,7 @@ export interface LocationOriginResponse { export namespace LocationOriginResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -68,41 +68,11 @@ export namespace LocationOriginResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { @@ -124,7 +94,7 @@ export interface LocationTargetResponse { export namespace LocationTargetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -132,41 +102,11 @@ export namespace LocationTargetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { diff --git a/src/resources/radar/attacks/layer3/top/top.ts b/src/resources/radar/attacks/layer3/top/top.ts index 65828ade92..bc7194722a 100644 --- a/src/resources/radar/attacks/layer3/top/top.ts +++ b/src/resources/radar/attacks/layer3/top/top.ts @@ -86,7 +86,7 @@ export interface TopAttacksResponse { export namespace TopAttacksResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -94,41 +94,11 @@ export namespace TopAttacksResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { @@ -148,7 +118,7 @@ export interface TopIndustryResponse { export namespace TopIndustryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -156,41 +126,11 @@ export namespace TopIndustryResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { @@ -208,7 +148,7 @@ export interface TopVerticalResponse { export namespace TopVerticalResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -216,41 +156,11 @@ export namespace TopVerticalResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { diff --git a/src/resources/radar/attacks/layer7/layer7.ts b/src/resources/radar/attacks/layer7/layer7.ts index c2d6fafe2e..1ce0be2f5e 100644 --- a/src/resources/radar/attacks/layer7/layer7.ts +++ b/src/resources/radar/attacks/layer7/layer7.ts @@ -83,14 +83,14 @@ export class Layer7 extends APIResource { export interface Layer7TimeseriesResponse { meta: Layer7TimeseriesResponse.Meta; - serie_0: Layer7TimeseriesResponse.Serie0; + serie_0: unknown; } export namespace Layer7TimeseriesResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -98,47 +98,11 @@ export namespace Layer7TimeseriesResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Serie0 { - timestamps: Array; - - values: Array; } } diff --git a/src/resources/radar/attacks/layer7/summary.ts b/src/resources/radar/attacks/layer7/summary.ts index 5d6a8bc150..807ea711ad 100644 --- a/src/resources/radar/attacks/layer7/summary.ts +++ b/src/resources/radar/attacks/layer7/summary.ts @@ -172,7 +172,7 @@ export interface SummaryHTTPMethodResponse { export namespace SummaryHTTPMethodResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -182,41 +182,11 @@ export namespace SummaryHTTPMethodResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } @@ -228,7 +198,7 @@ export interface SummaryHTTPVersionResponse { export namespace SummaryHTTPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -238,41 +208,11 @@ export namespace SummaryHTTPVersionResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -292,7 +232,7 @@ export interface SummaryIndustryResponse { export namespace SummaryIndustryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -302,53 +242,23 @@ export namespace SummaryIndustryResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } export interface SummaryIPVersionResponse { meta: SummaryIPVersionResponse.Meta; - summary_0: SummaryIPVersionResponse.Summary0; + summary_0: unknown; } export namespace SummaryIPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -358,47 +268,11 @@ export namespace SummaryIPVersionResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Summary0 { - IPv4: string; - - IPv6: string; } } @@ -410,7 +284,7 @@ export interface SummaryManagedRulesResponse { export namespace SummaryManagedRulesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -420,41 +294,11 @@ export namespace SummaryManagedRulesResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } @@ -466,7 +310,7 @@ export interface SummaryMitigationProductResponse { export namespace SummaryMitigationProductResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -476,41 +320,11 @@ export namespace SummaryMitigationProductResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } @@ -522,7 +336,7 @@ export interface SummaryVerticalResponse { export namespace SummaryVerticalResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -532,41 +346,11 @@ export namespace SummaryVerticalResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } diff --git a/src/resources/radar/attacks/layer7/timeseries-groups.ts b/src/resources/radar/attacks/layer7/timeseries-groups.ts index b3a2f7b9e5..816a85a79d 100644 --- a/src/resources/radar/attacks/layer7/timeseries-groups.ts +++ b/src/resources/radar/attacks/layer7/timeseries-groups.ts @@ -170,14 +170,7 @@ export class TimeseriesGroups extends APIResource { export interface TimeseriesGroupHTTPMethodResponse { meta: unknown; - serie_0: TimeseriesGroupHTTPMethodResponse.Serie0; -} - -export namespace TimeseriesGroupHTTPMethodResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupHTTPVersionResponse { @@ -201,69 +194,31 @@ export namespace TimeseriesGroupHTTPVersionResponse { export interface TimeseriesGroupIndustryResponse { meta: unknown; - serie_0: TimeseriesGroupIndustryResponse.Serie0; -} - -export namespace TimeseriesGroupIndustryResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupIPVersionResponse { meta: unknown; - serie_0: TimeseriesGroupIPVersionResponse.Serie0; -} - -export namespace TimeseriesGroupIPVersionResponse { - export interface Serie0 { - IPv4: Array; - - IPv6: Array; - - timestamps: Array; - } + serie_0: unknown; } export interface TimeseriesGroupManagedRulesResponse { meta: unknown; - serie_0: TimeseriesGroupManagedRulesResponse.Serie0; -} - -export namespace TimeseriesGroupManagedRulesResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupMitigationProductResponse { meta: unknown; - serie_0: TimeseriesGroupMitigationProductResponse.Serie0; -} - -export namespace TimeseriesGroupMitigationProductResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupVerticalResponse { meta: unknown; - serie_0: TimeseriesGroupVerticalResponse.Serie0; -} - -export namespace TimeseriesGroupVerticalResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupHTTPMethodParams { diff --git a/src/resources/radar/attacks/layer7/top/ases.ts b/src/resources/radar/attacks/layer7/top/ases.ts index 9e07e5a432..02d57660de 100644 --- a/src/resources/radar/attacks/layer7/top/ases.ts +++ b/src/resources/radar/attacks/layer7/top/ases.ts @@ -35,7 +35,7 @@ export interface AseOriginResponse { export namespace AseOriginResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -43,41 +43,11 @@ export namespace AseOriginResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { diff --git a/src/resources/radar/attacks/layer7/top/locations.ts b/src/resources/radar/attacks/layer7/top/locations.ts index cb44b826f8..1efbe9a67f 100644 --- a/src/resources/radar/attacks/layer7/top/locations.ts +++ b/src/resources/radar/attacks/layer7/top/locations.ts @@ -64,7 +64,7 @@ export interface LocationOriginResponse { export namespace LocationOriginResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -72,41 +72,11 @@ export namespace LocationOriginResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { @@ -128,7 +98,7 @@ export interface LocationTargetResponse { export namespace LocationTargetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -136,41 +106,11 @@ export namespace LocationTargetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { diff --git a/src/resources/radar/attacks/layer7/top/top.ts b/src/resources/radar/attacks/layer7/top/top.ts index cbc4d22456..301216c7d9 100644 --- a/src/resources/radar/attacks/layer7/top/top.ts +++ b/src/resources/radar/attacks/layer7/top/top.ts @@ -90,7 +90,7 @@ export interface TopAttacksResponse { export namespace TopAttacksResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -98,41 +98,11 @@ export namespace TopAttacksResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { @@ -156,7 +126,7 @@ export interface TopIndustryResponse { export namespace TopIndustryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -164,41 +134,11 @@ export namespace TopIndustryResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { @@ -216,7 +156,7 @@ export interface TopVerticalResponse { export namespace TopVerticalResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -224,41 +164,11 @@ export namespace TopVerticalResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { diff --git a/src/resources/radar/bgp/bgp.ts b/src/resources/radar/bgp/bgp.ts index e6cc7e4b1d..0821bce90b 100644 --- a/src/resources/radar/bgp/bgp.ts +++ b/src/resources/radar/bgp/bgp.ts @@ -60,14 +60,14 @@ export class BGP extends APIResource { export interface BGPTimeseriesResponse { meta: BGPTimeseriesResponse.Meta; - serie_0: BGPTimeseriesResponse.Serie0; + serie_0: unknown; } export namespace BGPTimeseriesResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -75,47 +75,11 @@ export namespace BGPTimeseriesResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Serie0 { - timestamps: Array; - - values: Array; } } diff --git a/src/resources/radar/bgp/routes.ts b/src/resources/radar/bgp/routes.ts index 3ba391c4fe..ec46592422 100644 --- a/src/resources/radar/bgp/routes.ts +++ b/src/resources/radar/bgp/routes.ts @@ -180,20 +180,12 @@ export namespace RouteAsesResponse { } export interface RouteMoasResponse { - meta: RouteMoasResponse.Meta; + meta: unknown; moas: Array; } export namespace RouteMoasResponse { - export interface Meta { - data_time: string; - - query_time: string; - - total_peers: number; - } - export interface Moa { origins: Array; @@ -212,20 +204,12 @@ export namespace RouteMoasResponse { } export interface RoutePfx2asResponse { - meta: RoutePfx2asResponse.Meta; + meta: unknown; prefix_origins: Array; } export namespace RoutePfx2asResponse { - export interface Meta { - data_time: string; - - query_time: string; - - total_peers: number; - } - export interface PrefixOrigin { origin: number; @@ -301,20 +285,12 @@ export namespace RouteRealtimeResponse { } export interface RouteStatsResponse { - meta: RouteStatsResponse.Meta; + meta: unknown; stats: RouteStatsResponse.Stats; } export namespace RouteStatsResponse { - export interface Meta { - data_time: string; - - query_time: string; - - total_peers: number; - } - export interface Stats { distinct_origins: number; diff --git a/src/resources/radar/bgp/top/ases.ts b/src/resources/radar/bgp/top/ases.ts index 9980470c26..9a64e604e7 100644 --- a/src/resources/radar/bgp/top/ases.ts +++ b/src/resources/radar/bgp/top/ases.ts @@ -54,21 +54,7 @@ export interface AseGetResponse { export namespace AseGetResponse { export interface Meta { - dateRange: Array; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } + dateRange: Array; } export interface Top0 { @@ -87,7 +73,7 @@ export namespace AseGetResponse { export interface AsePrefixesResponse { asns: Array; - meta: AsePrefixesResponse.Meta; + meta: unknown; } export namespace AsePrefixesResponse { @@ -100,14 +86,6 @@ export namespace AsePrefixesResponse { pfxs_count: number; } - - export interface Meta { - data_time: string; - - query_time: string; - - total_peers: number; - } } export interface AseGetParams { diff --git a/src/resources/radar/bgp/top/top.ts b/src/resources/radar/bgp/top/top.ts index d59e0972b9..f9ab91ea48 100644 --- a/src/resources/radar/bgp/top/top.ts +++ b/src/resources/radar/bgp/top/top.ts @@ -37,21 +37,7 @@ export interface TopPrefixesResponse { export namespace TopPrefixesResponse { export interface Meta { - dateRange: Array; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } + dateRange: Array; } export interface Top0 { diff --git a/src/resources/radar/dns/dns.ts b/src/resources/radar/dns/dns.ts index fd4bafc7c3..af575307f3 100644 --- a/src/resources/radar/dns/dns.ts +++ b/src/resources/radar/dns/dns.ts @@ -87,14 +87,14 @@ export class DNS extends APIResource { export interface DNSTimeseriesResponse { meta: DNSTimeseriesResponse.Meta; - serie_0: DNSTimeseriesResponse.Serie0; + serie_0: unknown; } export namespace DNSTimeseriesResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -102,47 +102,11 @@ export namespace DNSTimeseriesResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Serie0 { - timestamps: Array; - - values: Array; } } diff --git a/src/resources/radar/dns/summary.ts b/src/resources/radar/dns/summary.ts index 8922b20586..37371f4cfc 100644 --- a/src/resources/radar/dns/summary.ts +++ b/src/resources/radar/dns/summary.ts @@ -234,7 +234,7 @@ export interface SummaryCacheHitResponse { export namespace SummaryCacheHitResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -244,41 +244,11 @@ export namespace SummaryCacheHitResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -296,7 +266,7 @@ export interface SummaryDNSSECResponse { export namespace SummaryDNSSECResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -306,41 +276,11 @@ export namespace SummaryDNSSECResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -362,7 +302,7 @@ export interface SummaryDNSSECAwareResponse { export namespace SummaryDNSSECAwareResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -372,41 +312,11 @@ export namespace SummaryDNSSECAwareResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -424,7 +334,7 @@ export interface SummaryDNSSECE2EResponse { export namespace SummaryDNSSECE2EResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -434,41 +344,11 @@ export namespace SummaryDNSSECE2EResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -481,12 +361,12 @@ export namespace SummaryDNSSECE2EResponse { export interface SummaryIPVersionResponse { meta: SummaryIPVersionResponse.Meta; - summary_0: SummaryIPVersionResponse.Summary0; + summary_0: unknown; } export namespace SummaryIPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -496,47 +376,11 @@ export namespace SummaryIPVersionResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Summary0 { - IPv4: string; - - IPv6: string; } } @@ -548,7 +392,7 @@ export interface SummaryMatchingAnswerResponse { export namespace SummaryMatchingAnswerResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -558,41 +402,11 @@ export namespace SummaryMatchingAnswerResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -610,7 +424,7 @@ export interface SummaryProtocolResponse { export namespace SummaryProtocolResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -620,41 +434,11 @@ export namespace SummaryProtocolResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -676,7 +460,7 @@ export interface SummaryQueryTypeResponse { export namespace SummaryQueryTypeResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -686,41 +470,11 @@ export namespace SummaryQueryTypeResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } @@ -732,7 +486,7 @@ export interface SummaryResponseCodeResponse { export namespace SummaryResponseCodeResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -742,41 +496,11 @@ export namespace SummaryResponseCodeResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } @@ -788,7 +512,7 @@ export interface SummaryResponseTTLResponse { export namespace SummaryResponseTTLResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -798,41 +522,11 @@ export namespace SummaryResponseTTLResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { diff --git a/src/resources/radar/dns/timeseries-groups.ts b/src/resources/radar/dns/timeseries-groups.ts index 1d814c2f04..036a0978ba 100644 --- a/src/resources/radar/dns/timeseries-groups.ts +++ b/src/resources/radar/dns/timeseries-groups.ts @@ -342,27 +342,13 @@ export namespace TimeseriesGroupProtocolResponse { export interface TimeseriesGroupQueryTypeResponse { meta: unknown; - serie_0: TimeseriesGroupQueryTypeResponse.Serie0; -} - -export namespace TimeseriesGroupQueryTypeResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupResponseCodeResponse { meta: unknown; - serie_0: TimeseriesGroupResponseCodeResponse.Serie0; -} - -export namespace TimeseriesGroupResponseCodeResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupResponseTTLResponse { diff --git a/src/resources/radar/dns/top.ts b/src/resources/radar/dns/top.ts index 05c769a6db..f852352f46 100644 --- a/src/resources/radar/dns/top.ts +++ b/src/resources/radar/dns/top.ts @@ -48,120 +48,44 @@ export class Top extends APIResource { export interface TopAsesResponse { meta: TopAsesResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TopAsesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; confidenceInfo?: Meta.ConfidenceInfo; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; } } export interface TopLocationsResponse { meta: TopLocationsResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TopLocationsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; confidenceInfo?: Meta.ConfidenceInfo; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; } } diff --git a/src/resources/radar/email/email.ts b/src/resources/radar/email/email.ts index d6f3265d42..4cc37c1943 100644 --- a/src/resources/radar/email/email.ts +++ b/src/resources/radar/email/email.ts @@ -11,21 +11,9 @@ export class Email extends APIResource { security: SecurityAPI.Security = new SecurityAPI.Security(this._client); } -export interface RadarEmailSeries { - FAIL: Array; +export type RadarEmailSeries = unknown; - NONE: Array; - - PASS: Array; -} - -export interface RadarEmailSummary { - FAIL: string; - - NONE: string; - - PASS: string; -} +export type RadarEmailSummary = unknown; Email.Routing = Routing; Email.Security = Security; diff --git a/src/resources/radar/email/routing/summary.ts b/src/resources/radar/email/routing/summary.ts index 8e1550d5de..4690fcbe45 100644 --- a/src/resources/radar/email/routing/summary.ts +++ b/src/resources/radar/email/routing/summary.ts @@ -3,7 +3,6 @@ import { APIResource } from '../../../../resource'; import { isRequestOptions } from '../../../../core'; import * as Core from '../../../../core'; -import * as EmailAPI from '../email'; export class Summary extends APIResource { /** @@ -135,12 +134,12 @@ export class Summary extends APIResource { export interface SummaryARCResponse { meta: SummaryARCResponse.Meta; - summary_0: EmailAPI.RadarEmailSummary; + summary_0: unknown; } export namespace SummaryARCResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -150,53 +149,23 @@ export namespace SummaryARCResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } export interface SummaryDKIMResponse { meta: SummaryDKIMResponse.Meta; - summary_0: EmailAPI.RadarEmailSummary; + summary_0: unknown; } export namespace SummaryDKIMResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -206,53 +175,23 @@ export namespace SummaryDKIMResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } export interface SummaryDMARCResponse { meta: SummaryDMARCResponse.Meta; - summary_0: EmailAPI.RadarEmailSummary; + summary_0: unknown; } export namespace SummaryDMARCResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -262,41 +201,11 @@ export namespace SummaryDMARCResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } @@ -308,7 +217,7 @@ export interface SummaryEncryptedResponse { export namespace SummaryEncryptedResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -318,41 +227,11 @@ export namespace SummaryEncryptedResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -365,12 +244,12 @@ export namespace SummaryEncryptedResponse { export interface SummaryIPVersionResponse { meta: SummaryIPVersionResponse.Meta; - summary_0: SummaryIPVersionResponse.Summary0; + summary_0: unknown; } export namespace SummaryIPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -380,59 +259,23 @@ export namespace SummaryIPVersionResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Summary0 { - IPv4: string; - - IPv6: string; } } export interface SummarySPFResponse { meta: SummarySPFResponse.Meta; - summary_0: EmailAPI.RadarEmailSummary; + summary_0: unknown; } export namespace SummarySPFResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -442,41 +285,11 @@ export namespace SummarySPFResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } diff --git a/src/resources/radar/email/routing/timeseries-groups.ts b/src/resources/radar/email/routing/timeseries-groups.ts index 676d408ae8..44a344df22 100644 --- a/src/resources/radar/email/routing/timeseries-groups.ts +++ b/src/resources/radar/email/routing/timeseries-groups.ts @@ -3,7 +3,6 @@ import { APIResource } from '../../../../resource'; import { isRequestOptions } from '../../../../core'; import * as Core from '../../../../core'; -import * as EmailAPI from '../email'; export class TimeseriesGroups extends APIResource { /** @@ -153,19 +152,19 @@ export class TimeseriesGroups extends APIResource { export interface TimeseriesGroupARCResponse { meta: unknown; - serie_0: EmailAPI.RadarEmailSeries; + serie_0: unknown; } export interface TimeseriesGroupDKIMResponse { meta: unknown; - serie_0: EmailAPI.RadarEmailSeries; + serie_0: unknown; } export interface TimeseriesGroupDMARCResponse { meta: unknown; - serie_0: EmailAPI.RadarEmailSeries; + serie_0: unknown; } export interface TimeseriesGroupEncryptedResponse { @@ -199,7 +198,7 @@ export namespace TimeseriesGroupIPVersionResponse { export interface TimeseriesGroupSPFResponse { meta: unknown; - serie_0: EmailAPI.RadarEmailSeries; + serie_0: unknown; } export interface TimeseriesGroupARCParams { diff --git a/src/resources/radar/email/security/summary.ts b/src/resources/radar/email/security/summary.ts index 195974f8c1..57e721c214 100644 --- a/src/resources/radar/email/security/summary.ts +++ b/src/resources/radar/email/security/summary.ts @@ -3,7 +3,6 @@ import { APIResource } from '../../../../resource'; import { isRequestOptions } from '../../../../core'; import * as Core from '../../../../core'; -import * as EmailAPI from '../email'; export class Summary extends APIResource { /** @@ -197,12 +196,12 @@ export class Summary extends APIResource { export interface SummaryARCResponse { meta: SummaryARCResponse.Meta; - summary_0: EmailAPI.RadarEmailSummary; + summary_0: unknown; } export namespace SummaryARCResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -212,53 +211,23 @@ export namespace SummaryARCResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } export interface SummaryDKIMResponse { meta: SummaryDKIMResponse.Meta; - summary_0: EmailAPI.RadarEmailSummary; + summary_0: unknown; } export namespace SummaryDKIMResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -268,53 +237,23 @@ export namespace SummaryDKIMResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } export interface SummaryDMARCResponse { meta: SummaryDMARCResponse.Meta; - summary_0: EmailAPI.RadarEmailSummary; + summary_0: unknown; } export namespace SummaryDMARCResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -324,41 +263,11 @@ export namespace SummaryDMARCResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } @@ -370,7 +279,7 @@ export interface SummaryMaliciousResponse { export namespace SummaryMaliciousResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -380,41 +289,11 @@ export namespace SummaryMaliciousResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -432,7 +311,7 @@ export interface SummarySpamResponse { export namespace SummarySpamResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -442,41 +321,11 @@ export namespace SummarySpamResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -489,12 +338,12 @@ export namespace SummarySpamResponse { export interface SummarySPFResponse { meta: SummarySPFResponse.Meta; - summary_0: EmailAPI.RadarEmailSummary; + summary_0: unknown; } export namespace SummarySPFResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -504,41 +353,11 @@ export namespace SummarySPFResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } } @@ -550,7 +369,7 @@ export interface SummarySpoofResponse { export namespace SummarySpoofResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -560,41 +379,11 @@ export namespace SummarySpoofResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -612,7 +401,7 @@ export interface SummaryThreatCategoryResponse { export namespace SummaryThreatCategoryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -622,41 +411,11 @@ export namespace SummaryThreatCategoryResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -678,7 +437,7 @@ export interface SummaryTLSVersionResponse { export namespace SummaryTLSVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -688,41 +447,11 @@ export namespace SummaryTLSVersionResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { diff --git a/src/resources/radar/email/security/timeseries-groups.ts b/src/resources/radar/email/security/timeseries-groups.ts index ae336fe4a6..e386878452 100644 --- a/src/resources/radar/email/security/timeseries-groups.ts +++ b/src/resources/radar/email/security/timeseries-groups.ts @@ -3,7 +3,6 @@ import { APIResource } from '../../../../resource'; import { isRequestOptions } from '../../../../core'; import * as Core from '../../../../core'; -import * as EmailAPI from '../email'; export class TimeseriesGroups extends APIResource { /** @@ -223,19 +222,19 @@ export class TimeseriesGroups extends APIResource { export interface TimeseriesGroupARCResponse { meta: unknown; - serie_0: EmailAPI.RadarEmailSeries; + serie_0: unknown; } export interface TimeseriesGroupDKIMResponse { meta: unknown; - serie_0: EmailAPI.RadarEmailSeries; + serie_0: unknown; } export interface TimeseriesGroupDMARCResponse { meta: unknown; - serie_0: EmailAPI.RadarEmailSeries; + serie_0: unknown; } export interface TimeseriesGroupMaliciousResponse { @@ -269,7 +268,7 @@ export namespace TimeseriesGroupSpamResponse { export interface TimeseriesGroupSPFResponse { meta: unknown; - serie_0: EmailAPI.RadarEmailSeries; + serie_0: unknown; } export interface TimeseriesGroupSpoofResponse { diff --git a/src/resources/radar/email/security/top/tlds/malicious.ts b/src/resources/radar/email/security/top/tlds/malicious.ts index 8d7a14dc74..fc4f4cbdb2 100644 --- a/src/resources/radar/email/security/top/tlds/malicious.ts +++ b/src/resources/radar/email/security/top/tlds/malicious.ts @@ -42,7 +42,7 @@ export interface MaliciousGetResponse { export namespace MaliciousGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,41 +50,11 @@ export namespace MaliciousGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { diff --git a/src/resources/radar/email/security/top/tlds/spam.ts b/src/resources/radar/email/security/top/tlds/spam.ts index e011da0b92..94103c816a 100644 --- a/src/resources/radar/email/security/top/tlds/spam.ts +++ b/src/resources/radar/email/security/top/tlds/spam.ts @@ -39,7 +39,7 @@ export interface SpamGetResponse { export namespace SpamGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -47,41 +47,11 @@ export namespace SpamGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { diff --git a/src/resources/radar/email/security/top/tlds/spoof.ts b/src/resources/radar/email/security/top/tlds/spoof.ts index b9673d6e5a..00e4768c44 100644 --- a/src/resources/radar/email/security/top/tlds/spoof.ts +++ b/src/resources/radar/email/security/top/tlds/spoof.ts @@ -39,7 +39,7 @@ export interface SpoofGetResponse { export namespace SpoofGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -47,41 +47,11 @@ export namespace SpoofGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { diff --git a/src/resources/radar/email/security/top/tlds/tlds.ts b/src/resources/radar/email/security/top/tlds/tlds.ts index 211f329ccf..c9263a8fec 100644 --- a/src/resources/radar/email/security/top/tlds/tlds.ts +++ b/src/resources/radar/email/security/top/tlds/tlds.ts @@ -43,7 +43,7 @@ export interface TldGetResponse { export namespace TldGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,41 +51,11 @@ export namespace TldGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { diff --git a/src/resources/radar/entities/asns.ts b/src/resources/radar/entities/asns.ts index e679e9dab5..d8ee9dbce1 100644 --- a/src/resources/radar/entities/asns.ts +++ b/src/resources/radar/entities/asns.ts @@ -256,20 +256,12 @@ export namespace ASNIPResponse { } export interface ASNRelResponse { - meta: ASNRelResponse.Meta; + meta: unknown; rels: Array; } export namespace ASNRelResponse { - export interface Meta { - data_time: string; - - query_time: string; - - total_peers: number; - } - export interface Rel { asn1: number; diff --git a/src/resources/radar/http/ases/ases.ts b/src/resources/radar/http/ases/ases.ts index 9c34106357..04267f8e15 100644 --- a/src/resources/radar/http/ases/ases.ts +++ b/src/resources/radar/http/ases/ases.ts @@ -53,12 +53,12 @@ export class Ases extends APIResource { export interface AseGetResponse { meta: AseGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace AseGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -66,49 +66,11 @@ export namespace AseGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; } } diff --git a/src/resources/radar/http/ases/bot-class.ts b/src/resources/radar/http/ases/bot-class.ts index cf6508c475..acbf69595d 100644 --- a/src/resources/radar/http/ases/bot-class.ts +++ b/src/resources/radar/http/ases/bot-class.ts @@ -38,12 +38,12 @@ export class BotClass extends APIResource { export interface BotClassGetResponse { meta: BotClassGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace BotClassGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,49 +51,11 @@ export namespace BotClassGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; } } diff --git a/src/resources/radar/http/ases/browser-family.ts b/src/resources/radar/http/ases/browser-family.ts index 7489bcbb9e..aeca8c57ab 100644 --- a/src/resources/radar/http/ases/browser-family.ts +++ b/src/resources/radar/http/ases/browser-family.ts @@ -38,12 +38,12 @@ export class BrowserFamily extends APIResource { export interface BrowserFamilyGetResponse { meta: BrowserFamilyGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace BrowserFamilyGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,49 +51,11 @@ export namespace BrowserFamilyGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; } } diff --git a/src/resources/radar/http/ases/device-type.ts b/src/resources/radar/http/ases/device-type.ts index ef238bdf30..fce69585f3 100644 --- a/src/resources/radar/http/ases/device-type.ts +++ b/src/resources/radar/http/ases/device-type.ts @@ -38,12 +38,12 @@ export class DeviceType extends APIResource { export interface DeviceTypeGetResponse { meta: DeviceTypeGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace DeviceTypeGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,49 +51,11 @@ export namespace DeviceTypeGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; } } diff --git a/src/resources/radar/http/ases/http-method.ts b/src/resources/radar/http/ases/http-method.ts index c4f32695af..d41b8faa2f 100644 --- a/src/resources/radar/http/ases/http-method.ts +++ b/src/resources/radar/http/ases/http-method.ts @@ -38,12 +38,12 @@ export class HTTPMethod extends APIResource { export interface HTTPMethodGetResponse { meta: HTTPMethodGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace HTTPMethodGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,49 +51,11 @@ export namespace HTTPMethodGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; } } diff --git a/src/resources/radar/http/ases/http-protocol.ts b/src/resources/radar/http/ases/http-protocol.ts index 144a076856..f2980e8958 100644 --- a/src/resources/radar/http/ases/http-protocol.ts +++ b/src/resources/radar/http/ases/http-protocol.ts @@ -38,12 +38,12 @@ export class HTTPProtocol extends APIResource { export interface HTTPProtocolGetResponse { meta: HTTPProtocolGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace HTTPProtocolGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,49 +51,11 @@ export namespace HTTPProtocolGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; } } diff --git a/src/resources/radar/http/ases/ip-version.ts b/src/resources/radar/http/ases/ip-version.ts index 73ced457a6..e428957db7 100644 --- a/src/resources/radar/http/ases/ip-version.ts +++ b/src/resources/radar/http/ases/ip-version.ts @@ -35,12 +35,12 @@ export class IPVersion extends APIResource { export interface IPVersionGetResponse { meta: IPVersionGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace IPVersionGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -48,49 +48,11 @@ export namespace IPVersionGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; } } diff --git a/src/resources/radar/http/ases/os.ts b/src/resources/radar/http/ases/os.ts index 545da8e689..358d1511f5 100644 --- a/src/resources/radar/http/ases/os.ts +++ b/src/resources/radar/http/ases/os.ts @@ -37,12 +37,12 @@ export class OS extends APIResource { export interface OSGetResponse { meta: OSGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace OSGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,49 +50,11 @@ export namespace OSGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; } } diff --git a/src/resources/radar/http/ases/tls-version.ts b/src/resources/radar/http/ases/tls-version.ts index 4d92bb457d..96dc106c2a 100644 --- a/src/resources/radar/http/ases/tls-version.ts +++ b/src/resources/radar/http/ases/tls-version.ts @@ -38,12 +38,12 @@ export class TLSVersion extends APIResource { export interface TLSVersionGetResponse { meta: TLSVersionGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TLSVersionGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,49 +51,11 @@ export namespace TLSVersionGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; } } diff --git a/src/resources/radar/http/http.ts b/src/resources/radar/http/http.ts index bc44ea73cf..eb3a3d8fde 100644 --- a/src/resources/radar/http/http.ts +++ b/src/resources/radar/http/http.ts @@ -95,14 +95,14 @@ export class HTTP extends APIResource { export interface HTTPTimeseriesResponse { meta: HTTPTimeseriesResponse.Meta; - serie_0: HTTPTimeseriesResponse.Serie0; + serie_0: unknown; } export namespace HTTPTimeseriesResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -110,47 +110,11 @@ export namespace HTTPTimeseriesResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Serie0 { - timestamps: Array; - - values: Array; } } diff --git a/src/resources/radar/http/locations/bot-class.ts b/src/resources/radar/http/locations/bot-class.ts index 6a8d23fcf7..e2daa78887 100644 --- a/src/resources/radar/http/locations/bot-class.ts +++ b/src/resources/radar/http/locations/bot-class.ts @@ -37,12 +37,12 @@ export class BotClass extends APIResource { export interface BotClassGetResponse { meta: BotClassGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace BotClassGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,49 +50,11 @@ export namespace BotClassGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; } } diff --git a/src/resources/radar/http/locations/browser-family.ts b/src/resources/radar/http/locations/browser-family.ts index ab6719537a..2838b3bdf3 100644 --- a/src/resources/radar/http/locations/browser-family.ts +++ b/src/resources/radar/http/locations/browser-family.ts @@ -37,12 +37,12 @@ export class BrowserFamily extends APIResource { export interface BrowserFamilyGetResponse { meta: BrowserFamilyGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace BrowserFamilyGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,49 +50,11 @@ export namespace BrowserFamilyGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; } } diff --git a/src/resources/radar/http/locations/device-type.ts b/src/resources/radar/http/locations/device-type.ts index 3f1d8e0041..802efc517d 100644 --- a/src/resources/radar/http/locations/device-type.ts +++ b/src/resources/radar/http/locations/device-type.ts @@ -37,12 +37,12 @@ export class DeviceType extends APIResource { export interface DeviceTypeGetResponse { meta: DeviceTypeGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace DeviceTypeGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,49 +50,11 @@ export namespace DeviceTypeGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; } } diff --git a/src/resources/radar/http/locations/http-method.ts b/src/resources/radar/http/locations/http-method.ts index 3c73d856f7..7155ff461a 100644 --- a/src/resources/radar/http/locations/http-method.ts +++ b/src/resources/radar/http/locations/http-method.ts @@ -37,12 +37,12 @@ export class HTTPMethod extends APIResource { export interface HTTPMethodGetResponse { meta: HTTPMethodGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace HTTPMethodGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,49 +50,11 @@ export namespace HTTPMethodGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; } } diff --git a/src/resources/radar/http/locations/http-protocol.ts b/src/resources/radar/http/locations/http-protocol.ts index b49cca98eb..a4e09579a8 100644 --- a/src/resources/radar/http/locations/http-protocol.ts +++ b/src/resources/radar/http/locations/http-protocol.ts @@ -37,12 +37,12 @@ export class HTTPProtocol extends APIResource { export interface HTTPProtocolGetResponse { meta: HTTPProtocolGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace HTTPProtocolGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,49 +50,11 @@ export namespace HTTPProtocolGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; } } diff --git a/src/resources/radar/http/locations/ip-version.ts b/src/resources/radar/http/locations/ip-version.ts index 70511da345..ce84ccc519 100644 --- a/src/resources/radar/http/locations/ip-version.ts +++ b/src/resources/radar/http/locations/ip-version.ts @@ -34,12 +34,12 @@ export class IPVersion extends APIResource { export interface IPVersionGetResponse { meta: IPVersionGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace IPVersionGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -47,49 +47,11 @@ export namespace IPVersionGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; } } diff --git a/src/resources/radar/http/locations/locations.ts b/src/resources/radar/http/locations/locations.ts index a01db5dffe..60a6d79ec2 100644 --- a/src/resources/radar/http/locations/locations.ts +++ b/src/resources/radar/http/locations/locations.ts @@ -53,12 +53,12 @@ export class Locations extends APIResource { export interface LocationGetResponse { meta: LocationGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace LocationGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -66,49 +66,11 @@ export namespace LocationGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; } } diff --git a/src/resources/radar/http/locations/os.ts b/src/resources/radar/http/locations/os.ts index 0970e3b53c..2d1bc4a210 100644 --- a/src/resources/radar/http/locations/os.ts +++ b/src/resources/radar/http/locations/os.ts @@ -37,12 +37,12 @@ export class OS extends APIResource { export interface OSGetResponse { meta: OSGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace OSGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,49 +50,11 @@ export namespace OSGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; } } diff --git a/src/resources/radar/http/locations/tls-version.ts b/src/resources/radar/http/locations/tls-version.ts index af4cfd30c9..7550e00e26 100644 --- a/src/resources/radar/http/locations/tls-version.ts +++ b/src/resources/radar/http/locations/tls-version.ts @@ -38,12 +38,12 @@ export class TLSVersion extends APIResource { export interface TLSVersionGetResponse { meta: TLSVersionGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TLSVersionGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,49 +51,11 @@ export namespace TLSVersionGetResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; } } diff --git a/src/resources/radar/http/summary.ts b/src/resources/radar/http/summary.ts index 80ae8261b8..d416cd3000 100644 --- a/src/resources/radar/http/summary.ts +++ b/src/resources/radar/http/summary.ts @@ -192,7 +192,7 @@ export interface SummaryBotClassResponse { export namespace SummaryBotClassResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -202,41 +202,11 @@ export namespace SummaryBotClassResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -254,7 +224,7 @@ export interface SummaryDeviceTypeResponse { export namespace SummaryDeviceTypeResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -264,41 +234,11 @@ export namespace SummaryDeviceTypeResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -318,7 +258,7 @@ export interface SummaryHTTPProtocolResponse { export namespace SummaryHTTPProtocolResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -328,41 +268,11 @@ export namespace SummaryHTTPProtocolResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -380,7 +290,7 @@ export interface SummaryHTTPVersionResponse { export namespace SummaryHTTPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -390,41 +300,11 @@ export namespace SummaryHTTPVersionResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -439,12 +319,12 @@ export namespace SummaryHTTPVersionResponse { export interface SummaryIPVersionResponse { meta: SummaryIPVersionResponse.Meta; - summary_0: SummaryIPVersionResponse.Summary0; + summary_0: unknown; } export namespace SummaryIPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -454,47 +334,11 @@ export namespace SummaryIPVersionResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Summary0 { - IPv4: string; - - IPv6: string; } } @@ -506,7 +350,7 @@ export interface SummaryOSResponse { export namespace SummaryOSResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -516,41 +360,11 @@ export namespace SummaryOSResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -568,7 +382,7 @@ export interface SummaryPostQuantumResponse { export namespace SummaryPostQuantumResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -578,41 +392,11 @@ export namespace SummaryPostQuantumResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -630,7 +414,7 @@ export interface SummaryTLSVersionResponse { export namespace SummaryTLSVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -640,41 +424,11 @@ export namespace SummaryTLSVersionResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { diff --git a/src/resources/radar/http/timeseries-groups.ts b/src/resources/radar/http/timeseries-groups.ts index 023bb29960..3bfbfb4910 100644 --- a/src/resources/radar/http/timeseries-groups.ts +++ b/src/resources/radar/http/timeseries-groups.ts @@ -254,27 +254,13 @@ export namespace TimeseriesGroupBotClassResponse { export interface TimeseriesGroupBrowserResponse { meta: unknown; - serie_0: TimeseriesGroupBrowserResponse.Serie0; -} - -export namespace TimeseriesGroupBrowserResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupBrowserFamilyResponse { meta: unknown; - serie_0: TimeseriesGroupBrowserFamilyResponse.Serie0; -} - -export namespace TimeseriesGroupBrowserFamilyResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupDeviceTypeResponse { @@ -332,30 +318,13 @@ export namespace TimeseriesGroupHTTPVersionResponse { export interface TimeseriesGroupIPVersionResponse { meta: unknown; - serie_0: TimeseriesGroupIPVersionResponse.Serie0; -} - -export namespace TimeseriesGroupIPVersionResponse { - export interface Serie0 { - IPv4: Array; - - IPv6: Array; - - timestamps: Array; - } + serie_0: unknown; } export interface TimeseriesGroupOSResponse { meta: unknown; - serie_0: TimeseriesGroupOSResponse.Serie0; -} - -export namespace TimeseriesGroupOSResponse { - export interface Serie0 { - timestamps: Array; - [k: string]: Array | undefined; - } + serie_0: unknown; } export interface TimeseriesGroupPostQuantumResponse { diff --git a/src/resources/radar/http/top.ts b/src/resources/radar/http/top.ts index f2340c4d9c..c2a06d92ea 100644 --- a/src/resources/radar/http/top.ts +++ b/src/resources/radar/http/top.ts @@ -55,7 +55,7 @@ export interface TopBrowserResponse { export namespace TopBrowserResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -63,41 +63,11 @@ export namespace TopBrowserResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { @@ -115,7 +85,7 @@ export interface TopBrowserFamilyResponse { export namespace TopBrowserFamilyResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -123,41 +93,11 @@ export namespace TopBrowserFamilyResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { diff --git a/src/resources/radar/leaked-credentials/summary.ts b/src/resources/radar/leaked-credentials/summary.ts index a78abcdeb6..cdbc805143 100644 --- a/src/resources/radar/leaked-credentials/summary.ts +++ b/src/resources/radar/leaked-credentials/summary.ts @@ -61,7 +61,7 @@ export interface SummaryBotClassResponse { export namespace SummaryBotClassResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -71,41 +71,11 @@ export namespace SummaryBotClassResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -123,7 +93,7 @@ export interface SummaryCompromisedResponse { export namespace SummaryCompromisedResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -133,41 +103,11 @@ export namespace SummaryCompromisedResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { diff --git a/src/resources/radar/netflows/netflows.ts b/src/resources/radar/netflows/netflows.ts index 6ea78b7aa9..6c4466b949 100644 --- a/src/resources/radar/netflows/netflows.ts +++ b/src/resources/radar/netflows/netflows.ts @@ -63,47 +63,17 @@ export interface NetflowSummaryResponse { export namespace NetflowSummaryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; confidenceInfo?: Meta.ConfidenceInfo; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -116,14 +86,14 @@ export namespace NetflowSummaryResponse { export interface NetflowTimeseriesResponse { meta: NetflowTimeseriesResponse.Meta; - serie_0: NetflowTimeseriesResponse.Serie0; + serie_0: unknown; } export namespace NetflowTimeseriesResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -131,47 +101,11 @@ export namespace NetflowTimeseriesResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Serie0 { - timestamps: Array; - - values: Array; } } diff --git a/src/resources/radar/quality/iqi.ts b/src/resources/radar/quality/iqi.ts index 762cd9dd78..4e620e5c30 100644 --- a/src/resources/radar/quality/iqi.ts +++ b/src/resources/radar/quality/iqi.ts @@ -40,7 +40,7 @@ export interface IQISummaryResponse { export namespace IQISummaryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,41 +50,11 @@ export namespace IQISummaryResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { diff --git a/src/resources/radar/quality/speed/speed.ts b/src/resources/radar/quality/speed/speed.ts index 69fe21d5bc..9594e1f69f 100644 --- a/src/resources/radar/quality/speed/speed.ts +++ b/src/resources/radar/quality/speed/speed.ts @@ -77,7 +77,7 @@ export interface SpeedSummaryResponse { export namespace SpeedSummaryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -87,41 +87,11 @@ export namespace SpeedSummaryResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { diff --git a/src/resources/radar/quality/speed/top.ts b/src/resources/radar/quality/speed/top.ts index 0fe10def91..d3453cb49a 100644 --- a/src/resources/radar/quality/speed/top.ts +++ b/src/resources/radar/quality/speed/top.ts @@ -54,7 +54,7 @@ export interface TopAsesResponse { export namespace TopAsesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -62,41 +62,11 @@ export namespace TopAsesResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { @@ -130,7 +100,7 @@ export interface TopLocationsResponse { export namespace TopLocationsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -138,41 +108,11 @@ export namespace TopLocationsResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { diff --git a/src/resources/radar/ranking/domain.ts b/src/resources/radar/ranking/domain.ts index 0b13d7c639..e61ce854e2 100644 --- a/src/resources/radar/ranking/domain.ts +++ b/src/resources/radar/ranking/domain.ts @@ -72,21 +72,7 @@ export namespace DomainGetResponse { } export interface Meta { - dateRange: Array; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } + dateRange: Array; } } diff --git a/src/resources/radar/ranking/internet-services.ts b/src/resources/radar/ranking/internet-services.ts index a8fe32e1e5..376fe2678e 100644 --- a/src/resources/radar/ranking/internet-services.ts +++ b/src/resources/radar/ranking/internet-services.ts @@ -92,21 +92,7 @@ export interface InternetServiceTimeseriesGroupsResponse { export namespace InternetServiceTimeseriesGroupsResponse { export interface Meta { - dateRange: Array; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } + dateRange: Array; } export interface Serie0 { diff --git a/src/resources/radar/ranking/ranking.ts b/src/resources/radar/ranking/ranking.ts index 5d486634b8..e62280f918 100644 --- a/src/resources/radar/ranking/ranking.ts +++ b/src/resources/radar/ranking/ranking.ts @@ -75,21 +75,7 @@ export interface RankingTimeseriesGroupsResponse { export namespace RankingTimeseriesGroupsResponse { export interface Meta { - dateRange: Array; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } + dateRange: Array; } export interface Serie0 { diff --git a/src/resources/radar/robots-txt/top/top.ts b/src/resources/radar/robots-txt/top/top.ts index 12dc56ae94..9a1eb6b17c 100644 --- a/src/resources/radar/robots-txt/top/top.ts +++ b/src/resources/radar/robots-txt/top/top.ts @@ -40,7 +40,7 @@ export interface TopDomainCategoriesResponse { export namespace TopDomainCategoriesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -52,42 +52,12 @@ export namespace TopDomainCategoriesResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - export interface Unit { name: string; diff --git a/src/resources/radar/robots-txt/top/user-agents.ts b/src/resources/radar/robots-txt/top/user-agents.ts index a7fd368411..25a6e0322e 100644 --- a/src/resources/radar/robots-txt/top/user-agents.ts +++ b/src/resources/radar/robots-txt/top/user-agents.ts @@ -37,7 +37,7 @@ export interface UserAgentDirectiveResponse { export namespace UserAgentDirectiveResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -49,42 +49,12 @@ export namespace UserAgentDirectiveResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - export interface Unit { name: string; diff --git a/src/resources/radar/tcp-resets-timeouts.ts b/src/resources/radar/tcp-resets-timeouts.ts index b1f5d5699a..359104aef8 100644 --- a/src/resources/radar/tcp-resets-timeouts.ts +++ b/src/resources/radar/tcp-resets-timeouts.ts @@ -61,47 +61,17 @@ export interface TCPResetsTimeoutSummaryResponse { export namespace TCPResetsTimeoutSummaryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; confidenceInfo?: Meta.ConfidenceInfo; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Summary0 { @@ -146,7 +116,7 @@ export namespace TCPResetsTimeoutTimeseriesGroupsResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -154,41 +124,11 @@ export namespace TCPResetsTimeoutTimeseriesGroupsResponse { } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Serie0 { diff --git a/src/resources/radar/traffic-anomalies/locations.ts b/src/resources/radar/traffic-anomalies/locations.ts index de112a17dd..cee6fea6c2 100644 --- a/src/resources/radar/traffic-anomalies/locations.ts +++ b/src/resources/radar/traffic-anomalies/locations.ts @@ -28,17 +28,7 @@ export class Locations extends APIResource { } export interface LocationGetResponse { - trafficAnomalies: Array; -} - -export namespace LocationGetResponse { - export interface TrafficAnomaly { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; - } + trafficAnomalies: Array; } export interface LocationGetParams { diff --git a/src/resources/radar/traffic-anomalies/traffic-anomalies.ts b/src/resources/radar/traffic-anomalies/traffic-anomalies.ts index 861f40c839..47267a4b97 100644 --- a/src/resources/radar/traffic-anomalies/traffic-anomalies.ts +++ b/src/resources/radar/traffic-anomalies/traffic-anomalies.ts @@ -4,7 +4,7 @@ import { APIResource } from '../../../resource'; import { isRequestOptions } from '../../../core'; import * as Core from '../../../core'; import * as LocationsAPI from './locations'; -import { LocationGetParams, LocationGetResponse, Locations as LocationsAPILocations } from './locations'; +import { LocationGetParams, LocationGetResponse, Locations } from './locations'; export class TrafficAnomalies extends APIResource { locations: LocationsAPI.Locations = new LocationsAPI.Locations(this._client); @@ -52,7 +52,7 @@ export namespace TrafficAnomalyGetResponse { endDate?: string; - locationDetails?: TrafficAnomaly.LocationDetails; + locationDetails?: unknown; visibleInDataSources?: Array; } @@ -63,21 +63,7 @@ export namespace TrafficAnomalyGetResponse { name: string; - locations?: ASNDetails.Locations; - } - - export namespace ASNDetails { - export interface Locations { - code: string; - - name: string; - } - } - - export interface LocationDetails { - code: string; - - name: string; + locations?: unknown; } } } @@ -127,7 +113,7 @@ export interface TrafficAnomalyGetParams { status?: 'VERIFIED' | 'UNVERIFIED'; } -TrafficAnomalies.Locations = LocationsAPILocations; +TrafficAnomalies.Locations = Locations; export declare namespace TrafficAnomalies { export { @@ -136,7 +122,7 @@ export declare namespace TrafficAnomalies { }; export { - LocationsAPILocations as Locations, + Locations as Locations, type LocationGetResponse as LocationGetResponse, type LocationGetParams as LocationGetParams, }; diff --git a/src/resources/radar/verified-bots/top.ts b/src/resources/radar/verified-bots/top.ts index 4600dbc5f4..53ed154c2e 100644 --- a/src/resources/radar/verified-bots/top.ts +++ b/src/resources/radar/verified-bots/top.ts @@ -56,47 +56,17 @@ export interface TopBotsResponse { export namespace TopBotsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; confidenceInfo?: Meta.ConfidenceInfo; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { @@ -118,47 +88,17 @@ export interface TopCategoriesResponse { export namespace TopCategoriesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; confidenceInfo?: Meta.ConfidenceInfo; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: boolean; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } } export interface Top0 { diff --git a/src/resources/rules/lists/bulk-operations.ts b/src/resources/rules/lists/bulk-operations.ts index f321d4858a..b926a2e33e 100644 --- a/src/resources/rules/lists/bulk-operations.ts +++ b/src/resources/rules/lists/bulk-operations.ts @@ -25,10 +25,7 @@ export class BulkOperations extends APIResource { } } -/** - * The current status of the asynchronous operation. - */ -export type OperationStatus = 'pending' | 'running' | 'completed' | 'failed'; +export type OperationStatus = unknown; export interface BulkOperationGetResponse { /** @@ -36,10 +33,7 @@ export interface BulkOperationGetResponse { */ id: string; - /** - * The current status of the asynchronous operation. - */ - status: OperationStatus; + status: unknown; /** * The RFC 3339 timestamp of when the operation was completed. diff --git a/src/resources/rules/lists/items.ts b/src/resources/rules/lists/items.ts index 90d1442bf7..77954dfa71 100644 --- a/src/resources/rules/lists/items.ts +++ b/src/resources/rules/lists/items.ts @@ -105,18 +105,9 @@ export class Items extends APIResource { export class ItemListResponsesCursorPagination extends CursorPagination {} -export interface ListCursor { - after?: string; +export type ListCursor = unknown; - before?: string; -} - -export interface ListItem { - /** - * The unique operation ID of the asynchronous action. - */ - operation_id?: string; -} +export type ListItem = unknown; export interface ItemCreateResponse { /** diff --git a/src/resources/rulesets/phases/phases.ts b/src/resources/rulesets/phases/phases.ts index 35a462c4a8..b699b5d1f1 100644 --- a/src/resources/rulesets/phases/phases.ts +++ b/src/resources/rulesets/phases/phases.ts @@ -212,10 +212,7 @@ export namespace PhaseUpdateResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -347,10 +344,7 @@ export namespace PhaseUpdateResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -548,10 +542,7 @@ export namespace PhaseGetResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -683,10 +674,7 @@ export namespace PhaseGetResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -853,10 +841,7 @@ export namespace PhaseUpdateParams { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -973,10 +958,7 @@ export namespace PhaseUpdateParams { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. diff --git a/src/resources/rulesets/phases/versions.ts b/src/resources/rulesets/phases/versions.ts index 62eb0dcde5..b620858dae 100644 --- a/src/resources/rulesets/phases/versions.ts +++ b/src/resources/rulesets/phases/versions.ts @@ -260,10 +260,7 @@ export namespace VersionGetResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -395,10 +392,7 @@ export namespace VersionGetResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. diff --git a/src/resources/rulesets/rules.ts b/src/resources/rulesets/rules.ts index 9469f08562..9f6bc35d01 100644 --- a/src/resources/rulesets/rules.ts +++ b/src/resources/rulesets/rules.ts @@ -176,10 +176,7 @@ export interface BlockRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -328,10 +325,7 @@ export interface BlockRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -495,10 +489,7 @@ export interface CompressResponseRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -637,10 +628,7 @@ export interface CompressResponseRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -794,10 +782,7 @@ export interface DDoSDynamicRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -914,10 +899,7 @@ export interface DDoSDynamicRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -1049,10 +1031,7 @@ export interface ExecuteRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -1292,10 +1271,7 @@ export interface ExecuteRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -1550,10 +1526,7 @@ export interface ForceConnectionCloseRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -1670,10 +1643,7 @@ export interface ForceConnectionCloseRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -1805,10 +1775,7 @@ export interface LogCustomFieldRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -2017,10 +1984,7 @@ export interface LogCustomFieldRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -2244,10 +2208,7 @@ export interface LogRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -2364,10 +2325,7 @@ export interface LogRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -2448,25 +2406,7 @@ export namespace LogRuleParam { } } -/** - * An object configuring the rule's logging behavior. - */ -export interface Logging { - /** - * Whether to generate a log when the rule matches. - */ - enabled: boolean; -} - -/** - * An object configuring the rule's logging behavior. - */ -export interface LoggingParam { - /** - * Whether to generate a log when the rule matches. - */ - enabled: boolean; -} +export type Logging = unknown; export interface ManagedChallengeRule { /** @@ -2519,10 +2459,7 @@ export interface ManagedChallengeRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -2639,10 +2576,7 @@ export interface ManagedChallengeRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -2774,10 +2708,7 @@ export interface RedirectRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -2962,10 +2893,7 @@ export interface RedirectRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -3165,10 +3093,7 @@ export interface RewriteRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -3351,10 +3276,7 @@ export interface RewriteRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -3588,10 +3510,7 @@ export interface RouteRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -3755,10 +3674,7 @@ export interface RouteRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -3937,10 +3853,7 @@ export interface RulesetRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -4072,10 +3985,7 @@ export interface ScoreRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -4203,10 +4113,7 @@ export interface ScoreRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -4349,10 +4256,7 @@ export interface ServeErrorRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -4489,10 +4393,7 @@ export interface ServeErrorRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -4644,10 +4545,7 @@ export interface SetCacheSettingsRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -5160,10 +5058,7 @@ export interface SetCacheSettingsRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -5691,10 +5586,7 @@ export interface SetConfigRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -5923,10 +5815,7 @@ export interface SetConfigRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -6170,10 +6059,7 @@ export interface SkipRule { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -6324,10 +6210,7 @@ export interface SkipRuleParam { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -6558,10 +6441,7 @@ export namespace RuleCreateResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -6693,10 +6573,7 @@ export namespace RuleCreateResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -6894,10 +6771,7 @@ export namespace RuleDeleteResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -7029,10 +6903,7 @@ export namespace RuleDeleteResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -7230,10 +7101,7 @@ export namespace RuleEditResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -7365,10 +7233,7 @@ export namespace RuleEditResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -7520,9 +7385,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -7721,9 +7586,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -7890,9 +7755,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -8081,9 +7946,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -8373,9 +8238,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -8545,9 +8410,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -8714,9 +8579,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -8886,9 +8751,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -9123,9 +8988,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -9358,9 +9223,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -9574,9 +9439,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -9754,9 +9619,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -9943,9 +9808,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -10224,9 +10089,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -10427,9 +10292,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -10995,9 +10860,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -11259,9 +11124,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -11428,9 +11293,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -11634,9 +11499,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -11835,9 +11700,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -12004,9 +11869,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -12195,9 +12060,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -12487,9 +12352,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -12659,9 +12524,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -12828,9 +12693,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -13000,9 +12865,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -13237,9 +13102,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -13472,9 +13337,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -13688,9 +13553,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -13868,9 +13733,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -14057,9 +13922,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -14338,9 +14203,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -14541,9 +14406,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -15109,9 +14974,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -15373,9 +15238,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. @@ -15542,9 +15407,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: An object configuring the rule's logging behavior. + * Body param: */ - logging?: LoggingParam; + logging?: unknown; /** * Body param: An object configuring where the rule will be placed. diff --git a/src/resources/rulesets/rulesets.ts b/src/resources/rulesets/rulesets.ts index b3ca39a2dc..bb647fd44e 100644 --- a/src/resources/rulesets/rulesets.ts +++ b/src/resources/rulesets/rulesets.ts @@ -458,10 +458,7 @@ export namespace RulesetCreateResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -593,10 +590,7 @@ export namespace RulesetCreateResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -794,10 +788,7 @@ export namespace RulesetUpdateResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -929,10 +920,7 @@ export namespace RulesetUpdateResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -1170,10 +1158,7 @@ export namespace RulesetGetResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -1305,10 +1290,7 @@ export namespace RulesetGetResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -1485,10 +1467,7 @@ export namespace RulesetCreateParams { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -1605,10 +1584,7 @@ export namespace RulesetCreateParams { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -1785,10 +1761,7 @@ export namespace RulesetUpdateParams { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -1905,10 +1878,7 @@ export namespace RulesetUpdateParams { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.LoggingParam; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. diff --git a/src/resources/rulesets/versions.ts b/src/resources/rulesets/versions.ts index 41467d6fc8..fd9153a572 100644 --- a/src/resources/rulesets/versions.ts +++ b/src/resources/rulesets/versions.ts @@ -302,10 +302,7 @@ export namespace VersionGetResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. @@ -437,10 +434,7 @@ export namespace VersionGetResponse { */ expression?: string; - /** - * An object configuring the rule's logging behavior. - */ - logging?: RulesAPI.Logging; + logging?: unknown; /** * An object configuring the rule's ratelimit behavior. diff --git a/src/resources/security-center/insights/insights.ts b/src/resources/security-center/insights/insights.ts index ab6294b666..4420b3ad38 100644 --- a/src/resources/security-center/insights/insights.ts +++ b/src/resources/security-center/insights/insights.ts @@ -3,7 +3,6 @@ import { APIResource } from '../../../resource'; import { isRequestOptions } from '../../../core'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; import * as IssuesAPI from '../../intel/attack-surface-report/issues'; import * as ClassAPI from './class'; import { Class, ClassGetParams, ClassGetResponse } from './class'; @@ -140,9 +139,9 @@ export namespace InsightListResponse { } export interface InsightDismissResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/security-txt.ts b/src/resources/security-txt.ts index 0b9cacc8e7..caf534bcad 100644 --- a/src/resources/security-txt.ts +++ b/src/resources/security-txt.ts @@ -2,7 +2,6 @@ import { APIResource } from '../resource'; import * as Core from '../core'; -import * as Shared from './shared'; export class SecurityTXT extends APIResource { /** @@ -41,9 +40,9 @@ export class SecurityTXT extends APIResource { } export interface SecurityTXTUpdateResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful @@ -52,9 +51,9 @@ export interface SecurityTXTUpdateResponse { } export interface SecurityTXTDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/shared.ts b/src/resources/shared.ts index b848f4747f..cffe00df2d 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -261,21 +261,9 @@ export namespace ErrorData { } } -export interface Identifier { - /** - * Identifier - */ - id?: string; -} - -export interface LoadBalancerPreview { - /** - * Monitored pool IDs mapped to their respective names. - */ - pools?: Record; +export type Identifier = unknown; - preview_id?: string; -} +export type LoadBalancerPreview = unknown; export interface Member { /** @@ -595,36 +583,9 @@ export interface RatePlanParam { sets?: Array; } -export interface ResponseInfo { - code: number; - - message: string; -} - -export type Result = Result.UnionMember0 | Result.AaaAPIResponseCommon; +export type ResponseInfo = unknown; -export namespace Result { - export interface UnionMember0 { - errors?: Array; - - messages?: Array; - - result?: Array; - - success?: boolean; - } - - export interface AaaAPIResponseCommon { - errors: Array; - - messages: Array; - - /** - * Whether the API call was successful - */ - success: true; - } -} +export type Result = unknown; export interface Role { /** diff --git a/src/resources/snippets/rules.ts b/src/resources/snippets/rules.ts index 3155606849..f1e054425e 100644 --- a/src/resources/snippets/rules.ts +++ b/src/resources/snippets/rules.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as Shared from '../shared'; import { SinglePage } from '../../pagination'; export class Rules extends APIResource { @@ -76,9 +75,9 @@ export interface RuleListResponse { } export interface RuleDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/snippets/snippets.ts b/src/resources/snippets/snippets.ts index 56654850fb..78c4758b3e 100644 --- a/src/resources/snippets/snippets.ts +++ b/src/resources/snippets/snippets.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as Shared from '../shared'; import * as ContentAPI from './content'; import { Content, ContentGetParams } from './content'; import * as RulesAPI from './rules'; @@ -103,9 +102,9 @@ export interface Snippet { } export interface SnippetDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/ssl/analyze.ts b/src/resources/ssl/analyze.ts index fe1ab850e1..28f05d0b43 100644 --- a/src/resources/ssl/analyze.ts +++ b/src/resources/ssl/analyze.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as CustomHostnamesAPI from '../custom-hostnames/custom-hostnames'; export class Analyze extends APIResource { /** @@ -28,12 +27,9 @@ export interface AnalyzeCreateParams { zone_id: string; /** - * Body param: A ubiquitous bundle has the highest probability of being verified - * everywhere, even by clients using outdated or unusual trust stores. An optimal - * bundle uses the shortest chain and newest intermediates. And the force bundle - * verifies the chain, but does not otherwise modify it. + * Body param: */ - bundle_method?: CustomHostnamesAPI.BundleMethodParam; + bundle_method?: unknown; /** * Body param: The zone's SSL certificate or certificate and the intermediate(s). diff --git a/src/resources/url-scanner/url-scanner.ts b/src/resources/url-scanner/url-scanner.ts index cbecc9da36..a2387e6440 100644 --- a/src/resources/url-scanner/url-scanner.ts +++ b/src/resources/url-scanner/url-scanner.ts @@ -26,41 +26,9 @@ export class URLScanner extends APIResource { scans: ScansAPI.Scans = new ScansAPI.Scans(this._client); } -export interface URLScannerDomain { - id: number; +export type URLScannerDomain = unknown; - name: string; - - super_category_id?: number; -} - -export interface URLScannerTask { - effectiveUrl: string; - - errors: Array; - - location: string; - - region: string; - - status: string; - - success: boolean; - - time: string; - - url: string; - - uuid: string; - - visibility: string; -} - -export namespace URLScannerTask { - export interface Error { - message: string; - } -} +export type URLScannerTask = unknown; URLScanner.Responses = Responses; URLScanner.Scans = Scans; diff --git a/src/resources/waiting-rooms/settings.ts b/src/resources/waiting-rooms/settings.ts index 5361031b99..47c2b613d9 100644 --- a/src/resources/waiting-rooms/settings.ts +++ b/src/resources/waiting-rooms/settings.ts @@ -42,14 +42,7 @@ export class Settings extends APIResource { } } -export interface Setting { - /** - * Whether to allow verified search engine crawlers to bypass all waiting rooms on - * this zone. Verified search engine crawlers will not be tracked or counted by the - * waiting room system, and will not appear in waiting room analytics. - */ - search_engine_crawler_bypass: boolean; -} +export type Setting = unknown; export interface SettingUpdateResponse { /** diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/content.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/content.ts index 401f5abc8d..4cb666cc39 100644 --- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/content.ts +++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/content.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../../../resource'; import * as Core from '../../../../../core'; -import * as WorkersAPI from '../../../../workers/workers'; import * as ScriptsAPI from '../../../../workers/scripts/scripts'; import { type Response } from '../../../../../_shims/index'; @@ -65,10 +64,9 @@ export interface ContentUpdateParams { account_id: string; /** - * Body param: JSON encoded metadata about the uploaded parts and Worker - * configuration. + * Body param: */ - metadata: WorkersAPI.WorkerMetadataParam; + metadata: unknown; /** * Header param: The multipart name of a script upload part containing script diff --git a/src/resources/workers/routes.ts b/src/resources/workers/routes.ts index a4c38199a7..97490cc37c 100644 --- a/src/resources/workers/routes.ts +++ b/src/resources/workers/routes.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as Shared from '../shared'; import { SinglePage } from '../../pagination'; export class Routes extends APIResource { @@ -74,9 +73,9 @@ export class Routes extends APIResource { export class RouteListResponsesSinglePage extends SinglePage {} export interface RouteCreateResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful @@ -113,9 +112,9 @@ export interface RouteListResponse { } export interface RouteDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/workers/scripts/content.ts b/src/resources/workers/scripts/content.ts index 7830d9b8ed..30645a1ebb 100644 --- a/src/resources/workers/scripts/content.ts +++ b/src/resources/workers/scripts/content.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as WorkersAPI from '../workers'; import * as ScriptsAPI from './scripts'; import { type Response } from '../../../_shims/index'; @@ -63,10 +62,9 @@ export interface ContentUpdateParams { account_id: string; /** - * Body param: JSON encoded metadata about the uploaded parts and Worker - * configuration. + * Body param: */ - metadata: WorkersAPI.WorkerMetadataParam; + metadata: unknown; /** * Header param: The multipart name of a script upload part containing script diff --git a/src/resources/workers/scripts/deployments.ts b/src/resources/workers/scripts/deployments.ts index e37e32f3bb..4b08c5afe5 100644 --- a/src/resources/workers/scripts/deployments.ts +++ b/src/resources/workers/scripts/deployments.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as DeploymentsAPI from './deployments'; export class Deployments extends APIResource { /** @@ -45,19 +44,7 @@ export class Deployments extends APIResource { } } -export interface Deployment { - /** - * Human-readable message about the deployment. Truncated to 100 bytes. - */ - 'workers/message'?: string; -} - -export interface DeploymentParam { - /** - * Human-readable message about the deployment. Truncated to 100 bytes. - */ - 'workers/message'?: string; -} +export type Deployment = unknown; export interface DeploymentCreateResponse { strategy: 'percentage'; @@ -66,7 +53,7 @@ export interface DeploymentCreateResponse { id?: string; - annotations?: Deployment; + annotations?: unknown; author_email?: string; @@ -95,7 +82,7 @@ export namespace DeploymentGetResponse { id?: string; - annotations?: DeploymentsAPI.Deployment; + annotations?: unknown; author_email?: string; @@ -139,7 +126,7 @@ export interface DeploymentCreateParams { /** * Body param: */ - annotations?: DeploymentParam; + annotations?: unknown; } export namespace DeploymentCreateParams { diff --git a/src/resources/workers/scripts/schedules.ts b/src/resources/workers/scripts/schedules.ts index 35c22d76ae..6e4fa9cc43 100644 --- a/src/resources/workers/scripts/schedules.ts +++ b/src/resources/workers/scripts/schedules.ts @@ -47,16 +47,12 @@ export interface Schedule { modified_on?: string; } -export interface ScheduleParam { - cron?: string; -} - export interface ScheduleUpdateResponse { - schedules?: Array; + schedules?: Array; } export interface ScheduleGetResponse { - schedules?: Array; + schedules?: Array; } export interface ScheduleUpdateParams { @@ -68,7 +64,7 @@ export interface ScheduleUpdateParams { /** * Body param: */ - body: Array; + body: Array; } export interface ScheduleGetParams { diff --git a/src/resources/workers/scripts/tail.ts b/src/resources/workers/scripts/tail.ts index c6e2dc41f2..8be664e9d6 100644 --- a/src/resources/workers/scripts/tail.ts +++ b/src/resources/workers/scripts/tail.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as Shared from '../../shared'; export class Tail extends APIResource { /** @@ -102,9 +101,9 @@ export interface TailCreateResponse { } export interface TailDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/workers/workers.ts b/src/resources/workers/workers.ts index 97e5f97669..b7dd8da0ba 100644 --- a/src/resources/workers/workers.ts +++ b/src/resources/workers/workers.ts @@ -271,41 +271,7 @@ export namespace SingleStepMigrationParam { } } -/** - * JSON encoded metadata about the uploaded parts and Worker configuration. - */ -export interface WorkerMetadata { - /** - * Name of the part in the multipart request that contains the script (e.g. the - * file adding a listener to the `fetch` event). Indicates a - * `service worker syntax` Worker. - */ - body_part?: string; - - /** - * Name of the part in the multipart request that contains the main module (e.g. - * the file exporting a `fetch` handler). Indicates a `module syntax` Worker. - */ - main_module?: string; -} - -/** - * JSON encoded metadata about the uploaded parts and Worker configuration. - */ -export interface WorkerMetadataParam { - /** - * Name of the part in the multipart request that contains the script (e.g. the - * file adding a listener to the `fetch` event). Indicates a - * `service worker syntax` Worker. - */ - body_part?: string; - - /** - * Name of the part in the multipart request that contains the main module (e.g. - * the file exporting a `fetch` handler). Indicates a `module syntax` Worker. - */ - main_module?: string; -} +export type WorkerMetadata = unknown; Workers.Routes = Routes; Workers.RouteListResponsesSinglePage = RouteListResponsesSinglePage; diff --git a/src/resources/zaraz/config.ts b/src/resources/zaraz/config.ts index b09d9a6c86..1a3865ace1 100644 --- a/src/resources/zaraz/config.ts +++ b/src/resources/zaraz/config.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as ZarazAPI from './zaraz'; export class Config extends APIResource { /** @@ -222,7 +221,7 @@ export namespace Configuration { /** * Actions configured on a tool. Either this or neoEvents field is required. */ - actions?: Record; + actions?: unknown; /** * Default consent purpose ID @@ -233,7 +232,7 @@ export namespace Configuration { * DEPRECATED - List of actions configured on a tool. Either this or actions field * is required. If both are present, actions field will take precedence. */ - neoEvents?: Array; + neoEvents?: Array; /** * Vendor name for TCF compliant consent modal, required for Custom Managed @@ -294,7 +293,7 @@ export namespace Configuration { /** * Actions configured on a tool. Either this or neoEvents field is required. */ - actions?: Record; + actions?: unknown; /** * Default consent purpose ID @@ -305,7 +304,7 @@ export namespace Configuration { * DEPRECATED - List of actions configured on a tool. Either this or actions field * is required. If both are present, actions field will take precedence. */ - neoEvents?: Array; + neoEvents?: Array; /** * Vendor name for TCF compliant consent modal, required for Custom Managed @@ -659,7 +658,7 @@ export namespace Configuration { export interface Consent { enabled: boolean; - buttonTextTranslations?: ZarazAPI.ButtonTextTranslation; + buttonTextTranslations?: unknown; companyEmail?: string; @@ -914,7 +913,7 @@ export namespace ConfigUpdateParams { /** * Actions configured on a tool. Either this or neoEvents field is required. */ - actions?: Record; + actions?: unknown; /** * Default consent purpose ID @@ -925,7 +924,7 @@ export namespace ConfigUpdateParams { * DEPRECATED - List of actions configured on a tool. Either this or actions field * is required. If both are present, actions field will take precedence. */ - neoEvents?: Array; + neoEvents?: Array; /** * Vendor name for TCF compliant consent modal, required for Custom Managed @@ -986,7 +985,7 @@ export namespace ConfigUpdateParams { /** * Actions configured on a tool. Either this or neoEvents field is required. */ - actions?: Record; + actions?: unknown; /** * Default consent purpose ID @@ -997,7 +996,7 @@ export namespace ConfigUpdateParams { * DEPRECATED - List of actions configured on a tool. Either this or actions field * is required. If both are present, actions field will take precedence. */ - neoEvents?: Array; + neoEvents?: Array; /** * Vendor name for TCF compliant consent modal, required for Custom Managed @@ -1351,7 +1350,7 @@ export namespace ConfigUpdateParams { export interface Consent { enabled: boolean; - buttonTextTranslations?: ZarazAPI.ButtonTextTranslationParam; + buttonTextTranslations?: unknown; companyEmail?: string; diff --git a/src/resources/zaraz/zaraz.ts b/src/resources/zaraz/zaraz.ts index 9c2ea51f7b..26679d7d90 100644 --- a/src/resources/zaraz/zaraz.ts +++ b/src/resources/zaraz/zaraz.ts @@ -43,83 +43,9 @@ export class Zaraz extends APIResource { } } -export interface ButtonTextTranslation { - /** - * Object where keys are language codes - */ - accept_all: Record; - - /** - * Object where keys are language codes - */ - confirm_my_choices: Record; - - /** - * Object where keys are language codes - */ - reject_all: Record; -} - -export interface ButtonTextTranslationParam { - /** - * Object where keys are language codes - */ - accept_all: Record; - - /** - * Object where keys are language codes - */ - confirm_my_choices: Record; - - /** - * Object where keys are language codes - */ - reject_all: Record; -} - -export interface NeoEvent { - /** - * Tool event type - */ - actionType: string; +export type ButtonTextTranslation = unknown; - /** - * List of blocking triggers IDs - */ - blockingTriggers: Array; - - /** - * Event payload - */ - data: unknown; - - /** - * List of firing triggers IDs - */ - firingTriggers: Array; -} - -export interface NeoEventParam { - /** - * Tool event type - */ - actionType: string; - - /** - * List of blocking triggers IDs - */ - blockingTriggers: Array; - - /** - * Event payload - */ - data: unknown; - - /** - * List of firing triggers IDs - */ - firingTriggers: Array; -} +export type NeoEvent = unknown; export interface ZarazUpdateParams { /** diff --git a/src/resources/zero-trust/access/applications/applications.ts b/src/resources/zero-trust/access/applications/applications.ts index acb072ff47..a4bf6977ac 100644 --- a/src/resources/zero-trust/access/applications/applications.ts +++ b/src/resources/zero-trust/access/applications/applications.ts @@ -614,10 +614,7 @@ export namespace Application { */ idp_entity_id?: string; - /** - * The format of the name identifier sent to the SaaS application. - */ - name_id_format?: ApplicationsAPI.SaaSAppNameIDFormat; + name_id_format?: unknown; /** * A [JSONata](https://jsonata.org/) expression that transforms an application's @@ -1953,15 +1950,7 @@ export namespace OIDCSaaSAppParam { } } -/** - * The format of the name identifier sent to the SaaS application. - */ -export type SaaSAppNameIDFormat = 'id' | 'email'; - -/** - * The format of the name identifier sent to the SaaS application. - */ -export type SaaSAppNameIDFormatParam = 'id' | 'email'; +export type SaaSAppNameIDFormat = unknown; export interface SAMLSaaSApp { /** @@ -1991,10 +1980,7 @@ export interface SAMLSaaSApp { */ idp_entity_id?: string; - /** - * The format of the name identifier sent to the SaaS application. - */ - name_id_format?: SaaSAppNameIDFormat; + name_id_format?: unknown; /** * A [JSONata](https://jsonata.org/) expression that transforms an application's @@ -2114,10 +2100,7 @@ export interface SAMLSaaSAppParam { */ idp_entity_id?: string; - /** - * The format of the name identifier sent to the SaaS application. - */ - name_id_format?: SaaSAppNameIDFormatParam; + name_id_format?: unknown; /** * A [JSONata](https://jsonata.org/) expression that transforms an application's @@ -13188,6 +13171,10 @@ export declare namespace ApplicationCreateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -13429,6 +13416,10 @@ export declare namespace ApplicationCreateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -13816,6 +13807,10 @@ export declare namespace ApplicationCreateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -14203,6 +14198,10 @@ export declare namespace ApplicationCreateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -14494,6 +14493,10 @@ export declare namespace ApplicationCreateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -14787,6 +14790,10 @@ export declare namespace ApplicationCreateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -15080,6 +15087,10 @@ export declare namespace ApplicationCreateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -15765,6 +15776,10 @@ export declare namespace ApplicationCreateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -16166,6 +16181,10 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -16407,6 +16426,10 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -16794,6 +16817,10 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -17181,6 +17208,10 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -17472,6 +17503,10 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -17765,6 +17800,10 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -18058,6 +18097,10 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy @@ -18743,6 +18786,10 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } + /** + * An application-scoped policy JSON. If the policy does not yet exist, it will be + * created. + */ export interface UnionMember2 { /** * The UUID of the policy diff --git a/src/resources/zero-trust/access/applications/user-policy-checks.ts b/src/resources/zero-trust/access/applications/user-policy-checks.ts index 1cad615b42..bff8098bea 100644 --- a/src/resources/zero-trust/access/applications/user-policy-checks.ts +++ b/src/resources/zero-trust/access/applications/user-policy-checks.ts @@ -3,7 +3,6 @@ import { APIResource } from '../../../../resource'; import { isRequestOptions } from '../../../../core'; import * as Core from '../../../../core'; -import * as UserPolicyChecksAPI from './user-policy-checks'; import * as ApplicationsAPI from './applications'; import { CloudflareError } from '../../../../error'; @@ -54,9 +53,7 @@ export class UserPolicyChecks extends APIResource { } } -export interface UserPolicyCheckGeo { - country?: string; -} +export type UserPolicyCheckGeo = unknown; export interface UserPolicyCheckListResponse { app_state?: UserPolicyCheckListResponse.AppState; @@ -91,7 +88,7 @@ export namespace UserPolicyCheckListResponse { email?: string; - geo?: UserPolicyChecksAPI.UserPolicyCheckGeo; + geo?: unknown; iat?: number; diff --git a/src/resources/zero-trust/access/users/active-sessions.ts b/src/resources/zero-trust/access/users/active-sessions.ts index 293defd2cc..acc7952e98 100644 --- a/src/resources/zero-trust/access/users/active-sessions.ts +++ b/src/resources/zero-trust/access/users/active-sessions.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../../resource'; import * as Core from '../../../../core'; -import * as UserPolicyChecksAPI from '../applications/user-policy-checks'; import { SinglePage } from '../../../../pagination'; export class ActiveSessions extends APIResource { @@ -92,7 +91,7 @@ export interface ActiveSessionGetResponse { email?: string; - geo?: UserPolicyChecksAPI.UserPolicyCheckGeo; + geo?: unknown; iat?: number; diff --git a/src/resources/zero-trust/access/users/last-seen-identity.ts b/src/resources/zero-trust/access/users/last-seen-identity.ts index 6a22e52a67..a195403c8e 100644 --- a/src/resources/zero-trust/access/users/last-seen-identity.ts +++ b/src/resources/zero-trust/access/users/last-seen-identity.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../../resource'; import * as Core from '../../../../core'; -import * as UserPolicyChecksAPI from '../applications/user-policy-checks'; export class LastSeenIdentity extends APIResource { /** @@ -38,7 +37,7 @@ export interface Identity { email?: string; - geo?: UserPolicyChecksAPI.UserPolicyCheckGeo; + geo?: unknown; iat?: number; diff --git a/src/resources/zero-trust/devices/dex-tests.ts b/src/resources/zero-trust/devices/dex-tests.ts index 1f7e2ddd2d..4a43066b2d 100644 --- a/src/resources/zero-trust/devices/dex-tests.ts +++ b/src/resources/zero-trust/devices/dex-tests.ts @@ -87,64 +87,7 @@ export class DEXTests extends APIResource { export class SchemaHTTPSSinglePage extends SinglePage {} -export interface DEXTest { - /** - * The configuration object which contains the details for the WARP client to - * conduct the test. - */ - data: SchemaData; - - /** - * Determines whether or not the test is active. - */ - enabled: boolean; - - /** - * How often the test will run. - */ - interval: string; - - /** - * The name of the DEX test. Must be unique. - */ - name: string; - - /** - * Additional details about the test. - */ - description?: string; - - /** - * Device settings profiles targeted by this test - */ - target_policies?: Array; - - targeted?: boolean; - - /** - * The unique identifier for the test. - */ - test_id?: string; -} - -export namespace DEXTest { - export interface TargetPolicy { - /** - * The id of the device settings profile - */ - id?: string; - - /** - * Whether the profile is the account default - */ - default?: boolean; - - /** - * The name of the device settings profile - */ - name?: string; - } -} +export type DEXTest = unknown; /** * The configuration object which contains the details for the WARP client to diff --git a/src/resources/zero-trust/devices/policies/policies.ts b/src/resources/zero-trust/devices/policies/policies.ts index b075c8d268..1317ec903c 100644 --- a/src/resources/zero-trust/devices/policies/policies.ts +++ b/src/resources/zero-trust/devices/policies/policies.ts @@ -75,7 +75,7 @@ export interface FallbackDomainParam { dns_server?: Array; } -export type FallbackDomainPolicy = Array; +export type FallbackDomainPolicy = unknown; export interface SettingsPolicy { /** diff --git a/src/resources/zero-trust/devices/posture/posture.ts b/src/resources/zero-trust/devices/posture/posture.ts index 9804b10b05..ceec2f41cd 100644 --- a/src/resources/zero-trust/devices/posture/posture.ts +++ b/src/resources/zero-trust/devices/posture/posture.ts @@ -140,10 +140,7 @@ export interface CrowdstrikeInput { */ last_seen?: string; - /** - * operator - */ - operator?: '<' | '<=' | '>' | '>=' | '=='; + operator?: unknown; /** * Os Version @@ -187,10 +184,7 @@ export interface CrowdstrikeInputParam { */ last_seen?: string; - /** - * operator - */ - operator?: '<' | '<=' | '>' | '>=' | '=='; + operator?: unknown; /** * Os Version @@ -248,10 +242,7 @@ export type DeviceInput = export namespace DeviceInput { export interface TeamsDevicesCarbonblackInputRequest { - /** - * Operating system - */ - operating_system: 'windows' | 'linux' | 'mac'; + operating_system: unknown; /** * File path. @@ -270,10 +261,7 @@ export namespace DeviceInput { } export interface TeamsDevicesApplicationInputRequest { - /** - * Operating system - */ - operating_system: 'windows' | 'linux' | 'mac'; + operating_system: unknown; /** * Path for the application. @@ -303,10 +291,7 @@ export namespace DeviceInput { */ check_private_key: boolean; - /** - * Operating system - */ - operating_system: 'windows' | 'linux' | 'mac'; + operating_system: unknown; /** * Common Name that is protected by the client certificate. This may include one or @@ -344,10 +329,7 @@ export namespace DeviceInput { */ connection_id: string; - /** - * operator - */ - operator: '<' | '<=' | '>' | '>=' | '=='; + operator: unknown; /** * A value between 0-100 assigned to devices set by the 3rd party posture provider. @@ -381,10 +363,7 @@ export type DeviceInputParam = export namespace DeviceInputParam { export interface TeamsDevicesCarbonblackInputRequest { - /** - * Operating system - */ - operating_system: 'windows' | 'linux' | 'mac'; + operating_system: unknown; /** * File path. @@ -403,10 +382,7 @@ export namespace DeviceInputParam { } export interface TeamsDevicesApplicationInputRequest { - /** - * Operating system - */ - operating_system: 'windows' | 'linux' | 'mac'; + operating_system: unknown; /** * Path for the application. @@ -436,10 +412,7 @@ export namespace DeviceInputParam { */ check_private_key: boolean; - /** - * Operating system - */ - operating_system: 'windows' | 'linux' | 'mac'; + operating_system: unknown; /** * Common Name that is protected by the client certificate. This may include one or @@ -477,10 +450,7 @@ export namespace DeviceInputParam { */ connection_id: string; - /** - * operator - */ - operator: '<' | '<=' | '>' | '>=' | '=='; + operator: unknown; /** * A value between 0-100 assigned to devices set by the 3rd party posture provider. @@ -611,10 +581,7 @@ export interface DomainJoinedInputParam { } export interface FileInput { - /** - * Operating system - */ - operating_system: 'windows' | 'linux' | 'mac'; + operating_system: unknown; /** * File path. @@ -638,10 +605,7 @@ export interface FileInput { } export interface FileInputParam { - /** - * Operating system - */ - operating_system: 'windows' | 'linux' | 'mac'; + operating_system: unknown; /** * File path. @@ -752,10 +716,7 @@ export interface OSVersionInput { */ operating_system: 'windows'; - /** - * operator - */ - operator: '<' | '<=' | '>' | '>=' | '=='; + operator: unknown; /** * Version of OS @@ -785,10 +746,7 @@ export interface OSVersionInputParam { */ operating_system: 'windows'; - /** - * operator - */ - operator: '<' | '<=' | '>' | '>=' | '=='; + operator: unknown; /** * Version of OS @@ -813,10 +771,7 @@ export interface OSVersionInputParam { } export interface SentineloneInput { - /** - * Operating system - */ - operating_system: 'windows' | 'linux' | 'mac'; + operating_system: unknown; /** * File path. @@ -835,10 +790,7 @@ export interface SentineloneInput { } export interface SentineloneInputParam { - /** - * Operating system - */ - operating_system: 'windows' | 'linux' | 'mac'; + operating_system: unknown; /** * File path. @@ -894,10 +846,7 @@ export interface SentineloneS2sInput { | 'disabled_error' | 'db_corruption'; - /** - * operator - */ - operator?: '<' | '<=' | '>' | '>=' | '=='; + operator?: unknown; } export interface SentineloneS2sInputParam { @@ -938,10 +887,7 @@ export interface SentineloneS2sInputParam { | 'disabled_error' | 'db_corruption'; - /** - * operator - */ - operator?: '<' | '<=' | '>' | '>=' | '=='; + operator?: unknown; } export interface TaniumInput { diff --git a/src/resources/zero-trust/dex/dex.ts b/src/resources/zero-trust/dex/dex.ts index 8daee8b7c5..d2124d2cee 100644 --- a/src/resources/zero-trust/dex/dex.ts +++ b/src/resources/zero-trust/dex/dex.ts @@ -47,16 +47,7 @@ export class DEX extends APIResource { tracerouteTests: TracerouteTestsAPI.TracerouteTests = new TracerouteTestsAPI.TracerouteTests(this._client); } -export interface DigitalExperienceMonitor { - id: string; - - /** - * Whether the policy is the default for the account - */ - default: boolean; - - name: string; -} +export type DigitalExperienceMonitor = unknown; export interface NetworkPath { slots: Array; diff --git a/src/resources/zero-trust/dex/http-tests/http-tests.ts b/src/resources/zero-trust/dex/http-tests/http-tests.ts index 966ddf097c..3f6d6e3512 100644 --- a/src/resources/zero-trust/dex/http-tests/http-tests.ts +++ b/src/resources/zero-trust/dex/http-tests/http-tests.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../../resource'; import * as Core from '../../../../core'; -import * as DEXAPI from '../dex'; import * as PercentilesAPI from './percentiles'; import { HTTPDetailsPercentiles, PercentileGetParams, Percentiles, TestStatOverTime } from './percentiles'; @@ -55,7 +54,7 @@ export interface HTTPDetails { */ name?: string; - target_policies?: Array | null; + target_policies?: Array | null; targeted?: boolean; } diff --git a/src/resources/zero-trust/dex/tests/tests.ts b/src/resources/zero-trust/dex/tests/tests.ts index c269b87f60..6eebdb72b4 100644 --- a/src/resources/zero-trust/dex/tests/tests.ts +++ b/src/resources/zero-trust/dex/tests/tests.ts @@ -3,7 +3,6 @@ import { APIResource } from '../../../../resource'; import * as Core from '../../../../core'; import * as TestsAPI from './tests'; -import * as DEXAPI from '../dex'; import * as UniqueDevicesAPI from './unique-devices'; import { UniqueDeviceListParams, UniqueDevices } from './unique-devices'; import { V4PagePagination, type V4PagePaginationParams } from '../../../../pagination'; @@ -111,7 +110,7 @@ export namespace Tests { */ method?: string; - target_policies?: Array | null; + target_policies?: Array | null; targeted?: boolean; diff --git a/src/resources/zero-trust/dex/traceroute-tests.ts b/src/resources/zero-trust/dex/traceroute-tests.ts index 9ff5b13195..80c2fb7f09 100644 --- a/src/resources/zero-trust/dex/traceroute-tests.ts +++ b/src/resources/zero-trust/dex/traceroute-tests.ts @@ -78,7 +78,7 @@ export interface Traceroute { */ name: string; - target_policies?: Array | null; + target_policies?: Array | null; targeted?: boolean; diff --git a/src/resources/zero-trust/gateway/configurations/configurations.ts b/src/resources/zero-trust/gateway/configurations/configurations.ts index 88f7af6a88..96c242c327 100755 --- a/src/resources/zero-trust/gateway/configurations/configurations.ts +++ b/src/resources/zero-trust/gateway/configurations/configurations.ts @@ -72,16 +72,6 @@ export interface ActivityLogSettings { enabled?: boolean; } -/** - * Activity log settings. - */ -export interface ActivityLogSettingsParam { - /** - * Enable activity logging. - */ - enabled?: boolean; -} - /** * Anti-virus settings. */ @@ -108,32 +98,6 @@ export interface AntiVirusSettings { notification_settings?: NotificationSettings; } -/** - * Anti-virus settings. - */ -export interface AntiVirusSettingsParam { - /** - * Enable anti-virus scanning on downloads. - */ - enabled_download_phase?: boolean; - - /** - * Enable anti-virus scanning on uploads. - */ - enabled_upload_phase?: boolean; - - /** - * Block requests for files that cannot be scanned. - */ - fail_closed?: boolean; - - /** - * Configure a message to display on the user's device when an antivirus search is - * performed. - */ - notification_settings?: NotificationSettingsParam; -} - /** * Block page layout settings. */ @@ -203,75 +167,6 @@ export interface BlockPageSettings { target_uri?: string; } -/** - * Block page layout settings. - */ -export interface BlockPageSettingsParam { - /** - * If mode is customized_block_page: block page background color in #rrggbb format. - */ - background_color?: string; - - /** - * Enable only cipher suites and TLS versions compliant with FIPS 140-2. - */ - enabled?: boolean; - - /** - * If mode is customized_block_page: block page footer text. - */ - footer_text?: string; - - /** - * If mode is customized_block_page: block page header text. - */ - header_text?: string; - - /** - * If mode is redirect_uri: when enabled, context will be appended to target_uri as - * query parameters. - */ - include_context?: boolean; - - /** - * If mode is customized_block_page: full URL to the logo file. - */ - logo_path?: string; - - /** - * If mode is customized_block_page: admin email for users to contact. - */ - mailto_address?: string; - - /** - * If mode is customized_block_page: subject line for emails created from block - * page. - */ - mailto_subject?: string; - - /** - * Controls whether the user is redirected to a Cloudflare-hosted block page or to - * a customer-provided URI. - */ - mode?: 'customized_block_page' | 'redirect_uri'; - - /** - * If mode is customized_block_page: block page title. - */ - name?: string; - - /** - * If mode is customized_block_page: suppress detailed info at the bottom of the - * block page. - */ - suppress_footer?: boolean; - - /** - * If mode is redirect_uri: URI to which the user should be redirected. - */ - target_uri?: string; -} - /** * DLP body scanning settings. */ @@ -282,16 +177,6 @@ export interface BodyScanningSettings { inspection_mode?: string; } -/** - * DLP body scanning settings. - */ -export interface BodyScanningSettingsParam { - /** - * Set the inspection mode to either `deep` or `shallow`. - */ - inspection_mode?: string; -} - /** * Browser isolation settings. */ @@ -307,21 +192,6 @@ export interface BrowserIsolationSettings { url_browser_isolation_enabled?: boolean; } -/** - * Browser isolation settings. - */ -export interface BrowserIsolationSettingsParam { - /** - * Enable non-identity onramp support for Browser Isolation. - */ - non_identity_enabled?: boolean; - - /** - * Enable Clientless Browser Isolation. - */ - url_browser_isolation_enabled?: boolean; -} - /** * @deprecated Custom certificate settings for BYO-PKI. (deprecated and replaced by * `certificate`) @@ -345,22 +215,6 @@ export interface CustomCertificateSettings { updated_at?: string; } -/** - * @deprecated Custom certificate settings for BYO-PKI. (deprecated and replaced by - * `certificate`) - */ -export interface CustomCertificateSettingsParam { - /** - * Enable use of custom certificate authority for signing Gateway traffic. - */ - enabled: boolean; - - /** - * UUID of certificate (ID from MTLS certificate store). - */ - id?: string; -} - /** * Extended e-mail matching settings. */ @@ -372,17 +226,6 @@ export interface ExtendedEmailMatching { enabled?: boolean; } -/** - * Extended e-mail matching settings. - */ -export interface ExtendedEmailMatchingParam { - /** - * Enable matching all variants of user emails (with + or . modifiers) used as - * criteria in Firewall policies. - */ - enabled?: boolean; -} - /** * FIPS settings. */ @@ -393,209 +236,7 @@ export interface FipsSettings { tls?: boolean; } -/** - * FIPS settings. - */ -export interface FipsSettingsParam { - /** - * Enable only cipher suites and TLS versions compliant with FIPS 140-2. - */ - tls?: boolean; -} - -/** - * Account settings - */ -export interface GatewayConfigurationSettings { - /** - * Activity log settings. - */ - activity_log?: ActivityLogSettings; - - /** - * Anti-virus settings. - */ - antivirus?: AntiVirusSettings; - - /** - * Block page layout settings. - */ - block_page?: BlockPageSettings; - - /** - * DLP body scanning settings. - */ - body_scanning?: BodyScanningSettings; - - /** - * Browser isolation settings. - */ - browser_isolation?: BrowserIsolationSettings; - - /** - * Certificate settings for Gateway TLS interception. If not specified, the - * Cloudflare Root CA will be used. - */ - certificate?: GatewayConfigurationSettings.Certificate; - - /** - * @deprecated Custom certificate settings for BYO-PKI. (deprecated and replaced by - * `certificate`) - */ - custom_certificate?: CustomCertificateSettings; - - /** - * Extended e-mail matching settings. - */ - extended_email_matching?: ExtendedEmailMatching; - - /** - * FIPS settings. - */ - fips?: FipsSettings; - - /** - * Protocol Detection settings. - */ - protocol_detection?: ProtocolDetection; - - /** - * Sandbox settings. - */ - sandbox?: GatewayConfigurationSettings.Sandbox; - - /** - * TLS interception settings. - */ - tls_decrypt?: TLSSettings; -} - -export namespace GatewayConfigurationSettings { - /** - * Certificate settings for Gateway TLS interception. If not specified, the - * Cloudflare Root CA will be used. - */ - export interface Certificate { - /** - * UUID of certificate to be used for interception. Certificate must be available - * (previously called 'active') on the edge. A nil UUID will indicate the - * Cloudflare Root CA should be used. - */ - id: string; - } - - /** - * Sandbox settings. - */ - export interface Sandbox { - /** - * Enable sandbox. - */ - enabled?: boolean; - - /** - * Action to take when the file cannot be scanned. - */ - fallback_action?: 'allow' | 'block'; - } -} - -/** - * Account settings - */ -export interface GatewayConfigurationSettingsParam { - /** - * Activity log settings. - */ - activity_log?: ActivityLogSettingsParam; - - /** - * Anti-virus settings. - */ - antivirus?: AntiVirusSettingsParam; - - /** - * Block page layout settings. - */ - block_page?: BlockPageSettingsParam; - - /** - * DLP body scanning settings. - */ - body_scanning?: BodyScanningSettingsParam; - - /** - * Browser isolation settings. - */ - browser_isolation?: BrowserIsolationSettingsParam; - - /** - * Certificate settings for Gateway TLS interception. If not specified, the - * Cloudflare Root CA will be used. - */ - certificate?: GatewayConfigurationSettingsParam.Certificate; - - /** - * @deprecated Custom certificate settings for BYO-PKI. (deprecated and replaced by - * `certificate`) - */ - custom_certificate?: CustomCertificateSettingsParam; - - /** - * Extended e-mail matching settings. - */ - extended_email_matching?: ExtendedEmailMatchingParam; - - /** - * FIPS settings. - */ - fips?: FipsSettingsParam; - - /** - * Protocol Detection settings. - */ - protocol_detection?: ProtocolDetectionParam; - - /** - * Sandbox settings. - */ - sandbox?: GatewayConfigurationSettingsParam.Sandbox; - - /** - * TLS interception settings. - */ - tls_decrypt?: TLSSettingsParam; -} - -export namespace GatewayConfigurationSettingsParam { - /** - * Certificate settings for Gateway TLS interception. If not specified, the - * Cloudflare Root CA will be used. - */ - export interface Certificate { - /** - * UUID of certificate to be used for interception. Certificate must be available - * (previously called 'active') on the edge. A nil UUID will indicate the - * Cloudflare Root CA should be used. - */ - id: string; - } - - /** - * Sandbox settings. - */ - export interface Sandbox { - /** - * Enable sandbox. - */ - enabled?: boolean; - - /** - * Action to take when the file cannot be scanned. - */ - fallback_action?: 'allow' | 'block'; - } -} +export type GatewayConfigurationSettings = unknown; /** * Configure a message to display on the user's device when an antivirus search is @@ -619,28 +260,6 @@ export interface NotificationSettings { support_url?: string; } -/** - * Configure a message to display on the user's device when an antivirus search is - * performed. - */ -export interface NotificationSettingsParam { - /** - * Set notification on - */ - enabled?: boolean; - - /** - * Customize the message shown in the notification. - */ - msg?: string; - - /** - * Optional URL to direct users to additional information. If not set, the - * notification will open a block page. - */ - support_url?: string; -} - /** * Protocol Detection settings. */ @@ -651,16 +270,6 @@ export interface ProtocolDetection { enabled?: boolean; } -/** - * Protocol Detection settings. - */ -export interface ProtocolDetectionParam { - /** - * Enable detecting protocol on initial bytes of client traffic. - */ - enabled?: boolean; -} - /** * TLS interception settings. */ @@ -671,26 +280,13 @@ export interface TLSSettings { enabled?: boolean; } -/** - * TLS interception settings. - */ -export interface TLSSettingsParam { - /** - * Enable inspecting encrypted HTTP traffic. - */ - enabled?: boolean; -} - /** * Account settings */ export interface ConfigurationUpdateResponse { created_at?: string; - /** - * Account settings - */ - settings?: GatewayConfigurationSettings; + settings?: unknown; updated_at?: string; } @@ -701,10 +297,7 @@ export interface ConfigurationUpdateResponse { export interface ConfigurationEditResponse { created_at?: string; - /** - * Account settings - */ - settings?: GatewayConfigurationSettings; + settings?: unknown; updated_at?: string; } @@ -715,10 +308,7 @@ export interface ConfigurationEditResponse { export interface ConfigurationGetResponse { created_at?: string; - /** - * Account settings - */ - settings?: GatewayConfigurationSettings; + settings?: unknown; updated_at?: string; } @@ -730,9 +320,9 @@ export interface ConfigurationUpdateParams { account_id: string; /** - * Body param: Account settings + * Body param: */ - settings?: GatewayConfigurationSettingsParam; + settings?: unknown; } export interface ConfigurationEditParams { @@ -742,9 +332,9 @@ export interface ConfigurationEditParams { account_id: string; /** - * Body param: Account settings + * Body param: */ - settings?: GatewayConfigurationSettingsParam; + settings?: unknown; } export interface ConfigurationGetParams { diff --git a/src/resources/zero-trust/gateway/logging.ts b/src/resources/zero-trust/gateway/logging.ts index 4ee1d1c029..c8239d0896 100644 --- a/src/resources/zero-trust/gateway/logging.ts +++ b/src/resources/zero-trust/gateway/logging.ts @@ -36,32 +36,7 @@ export interface LoggingSetting { */ redact_pii?: boolean; - /** - * Logging settings by rule type. - */ - settings_by_rule_type?: LoggingSetting.SettingsByRuleType; -} - -export namespace LoggingSetting { - /** - * Logging settings by rule type. - */ - export interface SettingsByRuleType { - /** - * Logging settings for DNS firewall. - */ - dns?: unknown; - - /** - * Logging settings for HTTP/HTTPS firewall. - */ - http?: unknown; - - /** - * Logging settings for Network firewall. - */ - l4?: unknown; - } + settings_by_rule_type?: unknown; } export interface LoggingUpdateParams { @@ -78,31 +53,9 @@ export interface LoggingUpdateParams { redact_pii?: boolean; /** - * Body param: Logging settings by rule type. - */ - settings_by_rule_type?: LoggingUpdateParams.SettingsByRuleType; -} - -export namespace LoggingUpdateParams { - /** - * Logging settings by rule type. + * Body param: */ - export interface SettingsByRuleType { - /** - * Logging settings for DNS firewall. - */ - dns?: unknown; - - /** - * Logging settings for HTTP/HTTPS firewall. - */ - http?: unknown; - - /** - * Logging settings for Network firewall. - */ - l4?: unknown; - } + settings_by_rule_type?: unknown; } export interface LoggingGetParams { diff --git a/src/resources/zero-trust/identity-providers/identity-providers.ts b/src/resources/zero-trust/identity-providers/identity-providers.ts index 2e9208c858..2ef0dc1f86 100644 --- a/src/resources/zero-trust/identity-providers/identity-providers.ts +++ b/src/resources/zero-trust/identity-providers/identity-providers.ts @@ -221,23 +221,14 @@ export interface AzureAD { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AzureAD { @@ -309,18 +300,9 @@ export interface AzureADParam { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProviderTypeParam; + type: unknown; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AzureADParam { @@ -433,23 +415,14 @@ export namespace IdentityProvider { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessCentrify { @@ -504,23 +477,14 @@ export namespace IdentityProvider { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export interface AccessGitHub { @@ -536,23 +500,14 @@ export namespace IdentityProvider { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export interface AccessGoogle { @@ -568,23 +523,14 @@ export namespace IdentityProvider { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessGoogle { @@ -629,23 +575,14 @@ export namespace IdentityProvider { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessGoogleApps { @@ -695,23 +632,14 @@ export namespace IdentityProvider { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export interface AccessOIDC { @@ -727,23 +655,14 @@ export namespace IdentityProvider { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessOIDC { @@ -813,23 +732,14 @@ export namespace IdentityProvider { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessOkta { @@ -884,23 +794,14 @@ export namespace IdentityProvider { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessOnelogin { @@ -950,23 +851,14 @@ export namespace IdentityProvider { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessPingone { @@ -1016,23 +908,14 @@ export namespace IdentityProvider { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessSAML { @@ -1109,23 +992,14 @@ export namespace IdentityProvider { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export interface AccessOnetimepin { @@ -1141,23 +1015,14 @@ export namespace IdentityProvider { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessOnetimepin { @@ -1202,18 +1067,9 @@ export namespace IdentityProviderParam { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderTypeParam; + type: unknown; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessCentrify { @@ -1268,18 +1124,9 @@ export namespace IdentityProviderParam { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderTypeParam; + type: unknown; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export interface AccessGitHub { @@ -1295,18 +1142,9 @@ export namespace IdentityProviderParam { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderTypeParam; + type: unknown; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export interface AccessGoogle { @@ -1322,18 +1160,9 @@ export namespace IdentityProviderParam { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderTypeParam; + type: unknown; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessGoogle { @@ -1378,18 +1207,9 @@ export namespace IdentityProviderParam { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderTypeParam; + type: unknown; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessGoogleApps { @@ -1439,18 +1259,9 @@ export namespace IdentityProviderParam { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderTypeParam; + type: unknown; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export interface AccessOIDC { @@ -1466,18 +1277,9 @@ export namespace IdentityProviderParam { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderTypeParam; + type: unknown; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessOIDC { @@ -1547,18 +1349,9 @@ export namespace IdentityProviderParam { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderTypeParam; + type: unknown; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessOkta { @@ -1613,18 +1406,9 @@ export namespace IdentityProviderParam { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderTypeParam; + type: unknown; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessOnelogin { @@ -1674,18 +1458,9 @@ export namespace IdentityProviderParam { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderTypeParam; + type: unknown; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessPingone { @@ -1735,18 +1510,9 @@ export namespace IdentityProviderParam { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderTypeParam; + type: unknown; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessSAML { @@ -1823,18 +1589,9 @@ export namespace IdentityProviderParam { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderTypeParam; + type: unknown; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export interface AccessOnetimepin { @@ -1850,18 +1607,9 @@ export namespace IdentityProviderParam { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderTypeParam; + type: unknown; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessOnetimepin { @@ -1874,129 +1622,9 @@ export namespace IdentityProviderParam { } } -/** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ -export interface IdentityProviderSCIMConfig { - /** - * A flag to enable or disable SCIM for the identity provider. - */ - enabled?: boolean; - - /** - * Indicates how a SCIM event updates a user identity used for policy evaluation. - * Use "automatic" to automatically update a user's identity and augment it with - * fields from the SCIM user resource. Use "reauth" to force re-authentication on - * group membership updates, user identity update will only occur after successful - * re-authentication. With "reauth" identities will not contain fields from the - * SCIM user resource. With "no_action" identities will not be changed by SCIM - * updates in any way and users will not be prompted to reauthenticate. - */ - identity_update_behavior?: 'automatic' | 'reauth' | 'no_action'; +export type IdentityProviderSCIMConfig = unknown; - /** - * The base URL of Cloudflare's SCIM V2.0 API endpoint. - */ - scim_base_url?: string; - - /** - * A flag to remove a user's seat in Zero Trust when they have been deprovisioned - * in the Identity Provider. This cannot be enabled unless user_deprovision is also - * enabled. - */ - seat_deprovision?: boolean; - - /** - * A read-only token generated when the SCIM integration is enabled for the first - * time. It is redacted on subsequent requests. If you lose this you will need to - * refresh it at /access/identity_providers/:idpID/refresh_scim_secret. - */ - secret?: string; - - /** - * A flag to enable revoking a user's session in Access and Gateway when they have - * been deprovisioned in the Identity Provider. - */ - user_deprovision?: boolean; -} - -/** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ -export interface IdentityProviderSCIMConfigParam { - /** - * A flag to enable or disable SCIM for the identity provider. - */ - enabled?: boolean; - - /** - * Indicates how a SCIM event updates a user identity used for policy evaluation. - * Use "automatic" to automatically update a user's identity and augment it with - * fields from the SCIM user resource. Use "reauth" to force re-authentication on - * group membership updates, user identity update will only occur after successful - * re-authentication. With "reauth" identities will not contain fields from the - * SCIM user resource. With "no_action" identities will not be changed by SCIM - * updates in any way and users will not be prompted to reauthenticate. - */ - identity_update_behavior?: 'automatic' | 'reauth' | 'no_action'; - - /** - * A flag to remove a user's seat in Zero Trust when they have been deprovisioned - * in the Identity Provider. This cannot be enabled unless user_deprovision is also - * enabled. - */ - seat_deprovision?: boolean; - - /** - * A flag to enable revoking a user's session in Access and Gateway when they have - * been deprovisioned in the Identity Provider. - */ - user_deprovision?: boolean; -} - -/** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ -export type IdentityProviderType = - | 'onetimepin' - | 'azureAD' - | 'saml' - | 'centrify' - | 'facebook' - | 'github' - | 'google-apps' - | 'google' - | 'linkedin' - | 'oidc' - | 'okta' - | 'onelogin' - | 'pingone' - | 'yandex'; - -/** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ -export type IdentityProviderTypeParam = - | 'onetimepin' - | 'azureAD' - | 'saml' - | 'centrify' - | 'facebook' - | 'github' - | 'google-apps' - | 'google' - | 'linkedin' - | 'oidc' - | 'okta' - | 'onelogin' - | 'pingone' - | 'yandex'; +export type IdentityProviderType = unknown; export type IdentityProviderListResponse = | AzureAD @@ -2027,23 +1655,14 @@ export namespace IdentityProviderListResponse { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessCentrify { @@ -2098,23 +1717,14 @@ export namespace IdentityProviderListResponse { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export interface AccessGitHub { @@ -2130,23 +1740,14 @@ export namespace IdentityProviderListResponse { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export interface AccessGoogle { @@ -2162,23 +1763,14 @@ export namespace IdentityProviderListResponse { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessGoogle { @@ -2223,23 +1815,14 @@ export namespace IdentityProviderListResponse { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessGoogleApps { @@ -2289,23 +1872,14 @@ export namespace IdentityProviderListResponse { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export interface AccessOIDC { @@ -2321,23 +1895,14 @@ export namespace IdentityProviderListResponse { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessOIDC { @@ -2407,23 +1972,14 @@ export namespace IdentityProviderListResponse { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessOkta { @@ -2478,23 +2034,14 @@ export namespace IdentityProviderListResponse { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessOnelogin { @@ -2544,23 +2091,14 @@ export namespace IdentityProviderListResponse { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessPingone { @@ -2610,23 +2148,14 @@ export namespace IdentityProviderListResponse { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } export namespace AccessSAML { @@ -2703,23 +2232,14 @@ export namespace IdentityProviderListResponse { */ name: string; - /** - * The type of identity provider. To determine the value for a specific provider, - * refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - */ - type: IdentityProvidersAPI.IdentityProviderType; + type: unknown; /** * UUID */ id?: string; - /** - * The configuration settings for enabling a System for Cross-Domain Identity - * Management (SCIM) with the identity provider. - */ - scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; + scim_config?: unknown; } } @@ -2761,11 +2281,9 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2780,10 +2298,9 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AzureAD { @@ -2856,11 +2373,9 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2875,10 +2390,9 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessCentrify { @@ -2934,11 +2448,9 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2953,10 +2465,9 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export interface AccessGitHub { @@ -2973,11 +2484,9 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2992,10 +2501,9 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export interface AccessGoogle { @@ -3012,11 +2520,9 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3031,10 +2537,9 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessGoogle { @@ -3080,11 +2585,9 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3099,10 +2602,9 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessGoogleApps { @@ -3153,11 +2655,9 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3172,10 +2672,9 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export interface AccessOIDC { @@ -3192,11 +2691,9 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3211,10 +2708,9 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessOIDC { @@ -3285,11 +2781,9 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3304,10 +2798,9 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessOkta { @@ -3363,11 +2856,9 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3382,10 +2873,9 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessOnelogin { @@ -3436,11 +2926,9 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3455,10 +2943,9 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessPingone { @@ -3509,11 +2996,9 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3528,10 +3013,9 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessSAML { @@ -3609,11 +3093,9 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3628,10 +3110,9 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export interface AccessOnetimepin { @@ -3648,11 +3129,9 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3667,10 +3146,9 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessOnetimepin { @@ -3714,11 +3192,9 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3733,10 +3209,9 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AzureAD { @@ -3809,11 +3284,9 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3828,10 +3301,9 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessCentrify { @@ -3887,11 +3359,9 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3906,10 +3376,9 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export interface AccessGitHub { @@ -3926,11 +3395,9 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3945,10 +3412,9 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export interface AccessGoogle { @@ -3965,11 +3431,9 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3984,10 +3448,9 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessGoogle { @@ -4033,11 +3496,9 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -4052,10 +3513,9 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessGoogleApps { @@ -4106,11 +3566,9 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -4125,10 +3583,9 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export interface AccessOIDC { @@ -4145,11 +3602,9 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -4164,10 +3619,9 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessOIDC { @@ -4238,11 +3692,9 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -4257,10 +3709,9 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessOkta { @@ -4316,11 +3767,9 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -4335,10 +3784,9 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessOnelogin { @@ -4389,11 +3837,9 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -4408,10 +3854,9 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessPingone { @@ -4462,11 +3907,9 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -4481,10 +3924,9 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessSAML { @@ -4562,11 +4004,9 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -4581,10 +4021,9 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export interface AccessOnetimepin { @@ -4601,11 +4040,9 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: The type of identity provider. To determine the value for a specific - * provider, refer to our - * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + * Body param: */ - type: IdentityProviderTypeParam; + type: unknown; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -4620,10 +4057,9 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: The configuration settings for enabling a System for Cross-Domain - * Identity Management (SCIM) with the identity provider. + * Body param: */ - scim_config?: IdentityProviderSCIMConfigParam; + scim_config?: unknown; } export namespace AccessOnetimepin { diff --git a/src/resources/zero-trust/networks/routes/routes.ts b/src/resources/zero-trust/networks/routes/routes.ts index e9a509bace..817976366e 100644 --- a/src/resources/zero-trust/networks/routes/routes.ts +++ b/src/resources/zero-trust/networks/routes/routes.ts @@ -79,43 +79,7 @@ export class Routes extends APIResource { export class TeamnetsV4PagePaginationArray extends V4PagePaginationArray {} -export interface NetworkRoute { - /** - * UUID of the route. - */ - id?: string; - - /** - * Optional remark describing the route. - */ - comment?: string; - - /** - * Timestamp of when the resource was created. - */ - created_at?: string; - - /** - * Timestamp of when the resource was deleted. If `null`, the resource has not been - * deleted. - */ - deleted_at?: string; - - /** - * The private IPv4 or IPv6 range connected by the route, in CIDR notation. - */ - network?: string; - - /** - * UUID of the tunnel. - */ - tunnel_id?: string; - - /** - * UUID of the virtual network. - */ - virtual_network_id?: string; -} +export type NetworkRoute = unknown; export interface Route { /** diff --git a/src/resources/zones/custom-nameservers.ts b/src/resources/zones/custom-nameservers.ts index a24f5a3e4a..a1aad92b71 100644 --- a/src/resources/zones/custom-nameservers.ts +++ b/src/resources/zones/custom-nameservers.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as Shared from '../shared'; import { SinglePage } from '../../pagination'; /** @@ -58,9 +57,9 @@ export class CustomNameserverUpdateResponsesSinglePage extends SinglePage; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/zones/holds.ts b/src/resources/zones/holds.ts index 04a1529000..ca195be8b7 100644 --- a/src/resources/zones/holds.ts +++ b/src/resources/zones/holds.ts @@ -8,13 +8,13 @@ export class Holds extends APIResource { * Enforce a zone hold on the zone, blocking the creation and activation of zones * with this zone's hostname. */ - create(params: HoldCreateParams, options?: Core.RequestOptions): Core.APIPromise { + create(params: HoldCreateParams, options?: Core.RequestOptions): Core.APIPromise { const { zone_id, include_subdomains } = params; return ( this._client.post(`/zones/${zone_id}/hold`, { query: { include_subdomains }, ...options, - }) as Core.APIPromise<{ result: ZoneHold }> + }) as Core.APIPromise<{ result: HoldCreateResponse }> )._thenUnwrap((obj) => obj.result); } @@ -22,13 +22,13 @@ export class Holds extends APIResource { * Stop enforcement of a zone hold on the zone, permanently or temporarily, * allowing the creation and activation of zones with this zone's hostname. */ - delete(params: HoldDeleteParams, options?: Core.RequestOptions): Core.APIPromise { + delete(params: HoldDeleteParams, options?: Core.RequestOptions): Core.APIPromise { const { zone_id, hold_after } = params; return ( this._client.delete(`/zones/${zone_id}/hold`, { query: { hold_after }, ...options, - }) as Core.APIPromise<{ result: ZoneHold }> + }) as Core.APIPromise<{ result: HoldDeleteResponse }> )._thenUnwrap((obj) => obj.result); } @@ -36,11 +36,11 @@ export class Holds extends APIResource { * Update the `hold_after` and/or `include_subdomains` values on an existing zone * hold. The hold is enabled if the `hold_after` date-time value is in the past. */ - edit(params: HoldEditParams, options?: Core.RequestOptions): Core.APIPromise { + edit(params: HoldEditParams, options?: Core.RequestOptions): Core.APIPromise { const { zone_id, ...body } = params; return ( this._client.patch(`/zones/${zone_id}/hold`, { body, ...options }) as Core.APIPromise<{ - result: ZoneHold; + result: HoldEditResponse; }> )._thenUnwrap((obj) => obj.result); } @@ -49,21 +49,23 @@ export class Holds extends APIResource { * Retrieve whether the zone is subject to a zone hold, and metadata about the * hold. */ - get(params: HoldGetParams, options?: Core.RequestOptions): Core.APIPromise { + get(params: HoldGetParams, options?: Core.RequestOptions): Core.APIPromise { const { zone_id } = params; return ( - this._client.get(`/zones/${zone_id}/hold`, options) as Core.APIPromise<{ result: ZoneHold }> + this._client.get(`/zones/${zone_id}/hold`, options) as Core.APIPromise<{ result: HoldGetResponse }> )._thenUnwrap((obj) => obj.result); } } -export interface ZoneHold { - hold?: boolean; +export type ZoneHold = unknown; - hold_after?: string; +export type HoldCreateResponse = unknown; - include_subdomains?: string; -} +export type HoldDeleteResponse = unknown; + +export type HoldEditResponse = unknown; + +export type HoldGetResponse = unknown; export interface HoldCreateParams { /** @@ -128,6 +130,10 @@ export interface HoldGetParams { export declare namespace Holds { export { type ZoneHold as ZoneHold, + type HoldCreateResponse as HoldCreateResponse, + type HoldDeleteResponse as HoldDeleteResponse, + type HoldEditResponse as HoldEditResponse, + type HoldGetResponse as HoldGetResponse, type HoldCreateParams as HoldCreateParams, type HoldDeleteParams as HoldDeleteParams, type HoldEditParams as HoldEditParams, diff --git a/src/resources/zones/index.ts b/src/resources/zones/index.ts index db4835fceb..b0c2ba05dc 100644 --- a/src/resources/zones/index.ts +++ b/src/resources/zones/index.ts @@ -23,6 +23,10 @@ export { export { Holds, type ZoneHold, + type HoldCreateResponse, + type HoldDeleteResponse, + type HoldEditResponse, + type HoldGetResponse, type HoldCreateParams, type HoldDeleteParams, type HoldEditParams, diff --git a/src/resources/zones/settings.ts b/src/resources/zones/settings.ts index 76d6abf240..ab260eb1fd 100644 --- a/src/resources/zones/settings.ts +++ b/src/resources/zones/settings.ts @@ -1265,27 +1265,7 @@ export interface OriginErrorPagePassThruParam { value?: 'on' | 'off'; } -export interface OriginMaxHTTPVersion { - /** - * Value of the zone setting. - */ - id: 'origin_max_http_version'; - - /** - * Whether the setting is editable - */ - editable: boolean; - - /** - * The value of the feature - */ - value: '2' | '1'; - - /** - * Last time this setting was modified. - */ - modified_on?: string | null; -} +export type OriginMaxHTTPVersion = unknown; export interface Polish { /** diff --git a/src/resources/zones/zones.ts b/src/resources/zones/zones.ts index daaa1c1f00..feb4e581f4 100644 --- a/src/resources/zones/zones.ts +++ b/src/resources/zones/zones.ts @@ -19,7 +19,18 @@ import { CustomNameservers, } from './custom-nameservers'; import * as HoldsAPI from './holds'; -import { HoldCreateParams, HoldDeleteParams, HoldEditParams, HoldGetParams, Holds, ZoneHold } from './holds'; +import { + HoldCreateParams, + HoldCreateResponse, + HoldDeleteParams, + HoldDeleteResponse, + HoldEditParams, + HoldEditResponse, + HoldGetParams, + HoldGetResponse, + Holds, + ZoneHold, +} from './holds'; import * as PlansAPI from './plans'; import { AvailableRatePlan, @@ -594,6 +605,10 @@ export declare namespace Zones { export { Holds as Holds, type ZoneHold as ZoneHold, + type HoldCreateResponse as HoldCreateResponse, + type HoldDeleteResponse as HoldDeleteResponse, + type HoldEditResponse as HoldEditResponse, + type HoldGetResponse as HoldGetResponse, type HoldCreateParams as HoldCreateParams, type HoldDeleteParams as HoldDeleteParams, type HoldEditParams as HoldEditParams, diff --git a/tests/api-resources/custom-certificates/custom-certificates.test.ts b/tests/api-resources/custom-certificates/custom-certificates.test.ts index 1d8b1f281e..1537a0e202 100644 --- a/tests/api-resources/custom-certificates/custom-certificates.test.ts +++ b/tests/api-resources/custom-certificates/custom-certificates.test.ts @@ -34,7 +34,7 @@ describe('resource customCertificates', () => { '-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMHAwfXZ5/PWMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQwHhcNMTYwODI0MTY0MzAxWhcNMTYxMTIyMTY0MzAxWjBF\nMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50\nZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmGdtcGbg/1\nCGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKnabIRuGvB\nKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpidtnKX/a+5\n0GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+pyFxIXjbEI\ndZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pEewooaeO2\nizNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABo4GnMIGkMB0GA1UdDgQWBBT/LbE4\n9rWf288N6sJA5BRb6FJIGDB1BgNVHSMEbjBsgBT/LbE49rWf288N6sJA5BRb6FJI\nGKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV\nBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAMHAwfXZ5/PWMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHHFwl0tH0quUYZYO0dZYt4R7SJ0pCm2\n2satiyzHl4OnXcHDpekAo7/a09c6Lz6AU83cKy/+x3/djYHXWba7HpEu0dR3ugQP\nMlr4zrhd9xKZ0KZKiYmtJH+ak4OM4L3FbT0owUZPyjLSlhMtJVcoRp5CJsjAMBUG\nSvD8RX+T01wzox/Qb+lnnNnOlaWpqu8eoOenybxKp1a9ULzIVvN/LAcc+14vioFq\n2swRWtmocBAs8QR9n4uvbpiYvS8eYueDCWMM4fvFfBhaDZ3N9IbtySh3SpFdQDhw\nYbjM2rxXiyLGxB4Bol7QTv4zHif7Zt89FReT/NBy4rzaskDJY5L6xmY=\n-----END CERTIFICATE-----\n', private_key: '-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n', - bundle_method: 'ubiquitous', + bundle_method: {}, geo_restrictions: { label: 'us' }, policy: '(country: US) or (region: EU)', type: 'legacy_custom', @@ -97,7 +97,7 @@ describe('resource customCertificates', () => { test('edit: required and optional params', async () => { const response = await client.customCertificates.edit('023e105f4ecef8ad9ca31a8372d0c353', { zone_id: '023e105f4ecef8ad9ca31a8372d0c353', - bundle_method: 'ubiquitous', + bundle_method: {}, certificate: '-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMHAwfXZ5/PWMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQwHhcNMTYwODI0MTY0MzAxWhcNMTYxMTIyMTY0MzAxWjBF\nMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50\nZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmGdtcGbg/1\nCGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKnabIRuGvB\nKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpidtnKX/a+5\n0GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+pyFxIXjbEI\ndZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pEewooaeO2\nizNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABo4GnMIGkMB0GA1UdDgQWBBT/LbE4\n9rWf288N6sJA5BRb6FJIGDB1BgNVHSMEbjBsgBT/LbE49rWf288N6sJA5BRb6FJI\nGKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV\nBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAMHAwfXZ5/PWMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHHFwl0tH0quUYZYO0dZYt4R7SJ0pCm2\n2satiyzHl4OnXcHDpekAo7/a09c6Lz6AU83cKy/+x3/djYHXWba7HpEu0dR3ugQP\nMlr4zrhd9xKZ0KZKiYmtJH+ak4OM4L3FbT0owUZPyjLSlhMtJVcoRp5CJsjAMBUG\nSvD8RX+T01wzox/Qb+lnnNnOlaWpqu8eoOenybxKp1a9ULzIVvN/LAcc+14vioFq\n2swRWtmocBAs8QR9n4uvbpiYvS8eYueDCWMM4fvFfBhaDZ3N9IbtySh3SpFdQDhw\nYbjM2rxXiyLGxB4Bol7QTv4zHif7Zt89FReT/NBy4rzaskDJY5L6xmY=\n-----END CERTIFICATE-----\n', geo_restrictions: { label: 'us' }, diff --git a/tests/api-resources/custom-hostnames/custom-hostnames.test.ts b/tests/api-resources/custom-hostnames/custom-hostnames.test.ts index cf9c4c6055..a9a90081c6 100644 --- a/tests/api-resources/custom-hostnames/custom-hostnames.test.ts +++ b/tests/api-resources/custom-hostnames/custom-hostnames.test.ts @@ -30,7 +30,7 @@ describe('resource customHostnames', () => { zone_id: '023e105f4ecef8ad9ca31a8372d0c353', hostname: 'app.example.com', ssl: { - bundle_method: 'ubiquitous', + bundle_method: {}, certificate_authority: 'digicert', cloudflare_branding: false, custom_cert_bundle: [ @@ -45,7 +45,7 @@ describe('resource customHostnames', () => { '-----BEGIN CERTIFICATE-----\\nMIIFJDCCBAygAwIBAgIQD0ifmj/Yi5NP/2gdUySbfzANBgkqhkiG9w0BAQsFADBN\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMScwJQYDVQQDEx5E...SzSHfXp5lnu/3V08I72q1QNzOCgY1XeL4GKVcj4or6cT6tX6oJH7ePPmfrBfqI/O\\nOeH8gMJ+FuwtXYEPa4hBf38M5eU5xWG7\\n-----END CERTIFICATE-----\\n', custom_key: '-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n', - method: 'http', + method: {}, settings: { ciphers: ['ECDHE-RSA-AES128-GCM-SHA256', 'AES128-SHA'], early_hints: 'on', @@ -53,7 +53,7 @@ describe('resource customHostnames', () => { min_tls_version: '1.0', tls_1_3: 'on', }, - type: 'dv', + type: {}, wildcard: false, }, custom_metadata: { foo: 'string' }, @@ -123,7 +123,7 @@ describe('resource customHostnames', () => { custom_origin_server: 'origin2.example.com', custom_origin_sni: 'sni.example.com', ssl: { - bundle_method: 'ubiquitous', + bundle_method: {}, certificate_authority: 'digicert', cloudflare_branding: false, custom_cert_bundle: [ @@ -138,7 +138,7 @@ describe('resource customHostnames', () => { '-----BEGIN CERTIFICATE-----\\nMIIFJDCCBAygAwIBAgIQD0ifmj/Yi5NP/2gdUySbfzANBgkqhkiG9w0BAQsFADBN\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMScwJQYDVQQDEx5E...SzSHfXp5lnu/3V08I72q1QNzOCgY1XeL4GKVcj4or6cT6tX6oJH7ePPmfrBfqI/O\\nOeH8gMJ+FuwtXYEPa4hBf38M5eU5xWG7\\n-----END CERTIFICATE-----\\n', custom_key: '-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n', - method: 'http', + method: {}, settings: { ciphers: ['ECDHE-RSA-AES128-GCM-SHA256', 'AES128-SHA'], early_hints: 'on', @@ -146,7 +146,7 @@ describe('resource customHostnames', () => { min_tls_version: '1.0', tls_1_3: 'on', }, - type: 'dv', + type: {}, wildcard: false, }, }); diff --git a/tests/api-resources/keyless-certificates.test.ts b/tests/api-resources/keyless-certificates.test.ts index d0ce6c286f..3fc9dcaa43 100644 --- a/tests/api-resources/keyless-certificates.test.ts +++ b/tests/api-resources/keyless-certificates.test.ts @@ -34,7 +34,7 @@ describe('resource keylessCertificates', () => { '-----BEGIN CERTIFICATE----- MIIDtTCCAp2gAwIBAgIJAM15n7fdxhRtMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV BAYTAlVTMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX aWRnaXRzIFB0eSBMdGQwHhcNMTQwMzExMTkyMTU5WhcNMTQwNDEwMTkyMTU5WjBF MQswCQYDVQQGEwJVUzETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50 ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB CgKCAQEAvq3sKsHpeduJHimOK+fvQdKsI8z8A05MZyyLp2/R/GE8FjNv+hkVY1WQ LIyTNNQH7CJecE1nbTfo8Y56S7x/rhxC6/DJ8MIulapFPnorq46KU6yRxiM0MQ3N nTJHlHA2ozZta6YBBfVfhHWl1F0IfNbXCLKvGwWWMbCx43OfW6KTkbRnE6gFWKuO fSO5h2u5TaWVuSIzBvYs7Vza6m+gtYAvKAJV2nSZ+eSEFPDo29corOy8+huEOUL8 5FAw4BFPsr1TlrlGPFitduQUHGrSL7skk1ESGza0to3bOtrodKei2s9bk5MXm7lZ qI+WZJX4Zu9+mzZhc9pCVi8r/qlXuQIDAQABo4GnMIGkMB0GA1UdDgQWBBRvavf+ sWM4IwKiH9X9w1vl6nUVRDB1BgNVHSMEbjBsgBRvavf+sWM4IwKiH9X9w1vl6nUV RKFJpEcwRTELMAkGA1UEBhMCVVMxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV BAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAM15n7fdxhRtMAwGA1UdEwQF MAMBAf8wDQYJKoZIhvcNAQEFBQADggEBABY2ZzBaW0dMsAAT7tPJzrVWVzQx6KU4 UEBLudIlWPlkAwTnINCWR/8eNjCCmGA4heUdHmazdpPa8RzwOmc0NT1NQqzSyktt vTqb4iHD7+8f9MqJ9/FssCfTtqr/Qst/hGH4Wmdf1EJ/6FqYAAb5iRlPgshFZxU8 uXtA8hWn6fK6eISD9HBdcAFToUvKNZ1BIDPvh9f95Ine8ar6yGd56TUNrHR8eHBs ESxz5ddVR/oWRysNJ+aGAyYqHS8S/ttmC7r4XCAHqXptkHPCGRqkAhsterYhd4I8 /cBzejUobNCjjHFbtkAL/SjxZOLW+pNkZwfeYdM8iPkD54Uua1v2tdw= -----END CERTIFICATE-----', host: 'example.com', port: 24008, - bundle_method: 'ubiquitous', + bundle_method: {}, name: 'example.com Keyless SSL', tunnel: { private_ip: '10.0.0.1', vnet_id: '7365377a-85a4-4390-9480-531ef7dc7a3c' }, }); diff --git a/tests/api-resources/magic-transit/cf-interconnects.test.ts b/tests/api-resources/magic-transit/cf-interconnects.test.ts index 8f1a7b68f2..8cc2453510 100644 --- a/tests/api-resources/magic-transit/cf-interconnects.test.ts +++ b/tests/api-resources/magic-transit/cf-interconnects.test.ts @@ -30,7 +30,7 @@ describe('resource cfInterconnects', () => { account_id: '023e105f4ecef8ad9ca31a8372d0c353', description: 'Tunnel for Interconnect to ORD', gre: { cloudflare_endpoint: '203.0.113.1' }, - health_check: { enabled: true, rate: 'low', target: { saved: '203.0.113.1' }, type: 'reply' }, + health_check: { enabled: true, rate: {}, target: { saved: '203.0.113.1' }, type: {} }, interface_address: '192.0.2.0/31', mtu: 0, 'x-magic-new-hc-target': true, diff --git a/tests/api-resources/magic-transit/gre-tunnels.test.ts b/tests/api-resources/magic-transit/gre-tunnels.test.ts index fa4e8b7706..505fe24127 100644 --- a/tests/api-resources/magic-transit/gre-tunnels.test.ts +++ b/tests/api-resources/magic-transit/gre-tunnels.test.ts @@ -64,9 +64,9 @@ describe('resource greTunnels', () => { health_check: { direction: 'unidirectional', enabled: true, - rate: 'low', + rate: {}, target: { saved: '203.0.113.1' }, - type: 'reply', + type: {}, }, mtu: 0, ttl: 0, diff --git a/tests/api-resources/magic-transit/ipsec-tunnels.test.ts b/tests/api-resources/magic-transit/ipsec-tunnels.test.ts index 80344216c9..7610a6f2f7 100644 --- a/tests/api-resources/magic-transit/ipsec-tunnels.test.ts +++ b/tests/api-resources/magic-transit/ipsec-tunnels.test.ts @@ -37,9 +37,9 @@ describe('resource ipsecTunnels', () => { health_check: { direction: 'unidirectional', enabled: true, - rate: 'low', + rate: {}, target: { saved: '203.0.113.1' }, - type: 'reply', + type: {}, }, psk: 'O3bwKSjnaoCxDoUxjcq4Rk8ZKkezQUiy', replay_protection: false, @@ -76,9 +76,9 @@ describe('resource ipsecTunnels', () => { health_check: { direction: 'unidirectional', enabled: true, - rate: 'low', + rate: {}, target: { saved: '203.0.113.1' }, - type: 'reply', + type: {}, }, psk: 'O3bwKSjnaoCxDoUxjcq4Rk8ZKkezQUiy', replay_protection: false, diff --git a/tests/api-resources/magic-transit/sites/acls.test.ts b/tests/api-resources/magic-transit/sites/acls.test.ts index ba540fd7f3..21444bd9b3 100644 --- a/tests/api-resources/magic-transit/sites/acls.test.ts +++ b/tests/api-resources/magic-transit/sites/acls.test.ts @@ -46,7 +46,7 @@ describe('resource acls', () => { name: 'PIN Pad - Cash Register', description: 'Allows local traffic between PIN pads and cash register.', forward_locally: true, - protocols: ['tcp'], + protocols: [{}], unidirectional: true, }); }); @@ -89,7 +89,7 @@ describe('resource acls', () => { subnets: ['192.0.2.1'], }, name: 'PIN Pad - Cash Register', - protocols: ['tcp'], + protocols: [{}], unidirectional: true, }, ); @@ -175,7 +175,7 @@ describe('resource acls', () => { subnets: ['192.0.2.1'], }, name: 'PIN Pad - Cash Register', - protocols: ['tcp'], + protocols: [{}], unidirectional: true, }, ); diff --git a/tests/api-resources/r2/buckets/sippy.test.ts b/tests/api-resources/r2/buckets/sippy.test.ts index 0b9a8df818..5f9b4df503 100644 --- a/tests/api-resources/r2/buckets/sippy.test.ts +++ b/tests/api-resources/r2/buckets/sippy.test.ts @@ -28,7 +28,7 @@ describe('resource sippy', () => { test.skip('update: required and optional params', async () => { const response = await client.r2.buckets.sippy.update('example-bucket', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', - destination: { accessKeyId: 'accessKeyId', provider: 'r2', secretAccessKey: 'secretAccessKey' }, + destination: { accessKeyId: 'accessKeyId', provider: {}, secretAccessKey: 'secretAccessKey' }, source: { accessKeyId: 'accessKeyId', bucket: 'bucket', diff --git a/tests/api-resources/rulesets/rulesets.test.ts b/tests/api-resources/rulesets/rulesets.test.ts index 7903904da3..64d6775303 100644 --- a/tests/api-resources/rulesets/rulesets.test.ts +++ b/tests/api-resources/rulesets/rulesets.test.ts @@ -53,7 +53,7 @@ describe('resource rulesets', () => { username_expression: 'url_decode(http.request.body.form[\\"username\\"][0])', }, expression: 'ip.src ne 1.1.1.1', - logging: { enabled: true }, + logging: {}, ratelimit: { characteristics: ['ip.src'], period: 10, diff --git a/tests/api-resources/ssl/analyze.test.ts b/tests/api-resources/ssl/analyze.test.ts index 8c61bf9ae8..c26dd52aaa 100644 --- a/tests/api-resources/ssl/analyze.test.ts +++ b/tests/api-resources/ssl/analyze.test.ts @@ -24,7 +24,7 @@ describe('resource analyze', () => { test('create: required and optional params', async () => { const response = await client.ssl.analyze.create({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353', - bundle_method: 'ubiquitous', + bundle_method: {}, certificate: '-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMHAwfXZ5/PWMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQwHhcNMTYwODI0MTY0MzAxWhcNMTYxMTIyMTY0MzAxWjBF\nMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50\nZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmGdtcGbg/1\nCGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKnabIRuGvB\nKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpidtnKX/a+5\n0GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+pyFxIXjbEI\ndZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pEewooaeO2\nizNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABo4GnMIGkMB0GA1UdDgQWBBT/LbE4\n9rWf288N6sJA5BRb6FJIGDB1BgNVHSMEbjBsgBT/LbE49rWf288N6sJA5BRb6FJI\nGKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV\nBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAMHAwfXZ5/PWMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHHFwl0tH0quUYZYO0dZYt4R7SJ0pCm2\n2satiyzHl4OnXcHDpekAo7/a09c6Lz6AU83cKy/+x3/djYHXWba7HpEu0dR3ugQP\nMlr4zrhd9xKZ0KZKiYmtJH+ak4OM4L3FbT0owUZPyjLSlhMtJVcoRp5CJsjAMBUG\nSvD8RX+T01wzox/Qb+lnnNnOlaWpqu8eoOenybxKp1a9ULzIVvN/LAcc+14vioFq\n2swRWtmocBAs8QR9n4uvbpiYvS8eYueDCWMM4fvFfBhaDZ3N9IbtySh3SpFdQDhw\nYbjM2rxXiyLGxB4Bol7QTv4zHif7Zt89FReT/NBy4rzaskDJY5L6xmY=\n-----END CERTIFICATE-----\n', }); diff --git a/tests/api-resources/workers-for-platforms/dispatch/namespaces/scripts/content.test.ts b/tests/api-resources/workers-for-platforms/dispatch/namespaces/scripts/content.test.ts index 9f46ab7ef2..813e0391f8 100644 --- a/tests/api-resources/workers-for-platforms/dispatch/namespaces/scripts/content.test.ts +++ b/tests/api-resources/workers-for-platforms/dispatch/namespaces/scripts/content.test.ts @@ -33,7 +33,7 @@ describe('resource content', () => { 'this-is_my_script-01', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', - metadata: { body_part: 'worker.js', main_module: 'worker.js' }, + metadata: {}, 'CF-WORKER-BODY-PART': 'CF-WORKER-BODY-PART', 'CF-WORKER-MAIN-MODULE-PART': 'CF-WORKER-MAIN-MODULE-PART', }, diff --git a/tests/api-resources/workers/scripts/content.test.ts b/tests/api-resources/workers/scripts/content.test.ts index 1567728d10..3030b90173 100644 --- a/tests/api-resources/workers/scripts/content.test.ts +++ b/tests/api-resources/workers/scripts/content.test.ts @@ -29,7 +29,7 @@ describe('resource content', () => { test.skip('update: required and optional params', async () => { const response = await client.workers.scripts.content.update('this-is_my_script-01', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', - metadata: { body_part: 'worker.js', main_module: 'worker.js' }, + metadata: {}, 'CF-WORKER-BODY-PART': 'CF-WORKER-BODY-PART', 'CF-WORKER-MAIN-MODULE-PART': 'CF-WORKER-MAIN-MODULE-PART', }); diff --git a/tests/api-resources/workers/scripts/deployments.test.ts b/tests/api-resources/workers/scripts/deployments.test.ts index 08559beefc..22d926cbc4 100644 --- a/tests/api-resources/workers/scripts/deployments.test.ts +++ b/tests/api-resources/workers/scripts/deployments.test.ts @@ -31,7 +31,7 @@ describe('resource deployments', () => { strategy: 'percentage', versions: [{ percentage: 100, version_id: 'bcf48806-b317-4351-9ee7-36e7d557d4de' }], force: true, - annotations: { 'workers/message': 'Deploy bug fix.' }, + annotations: {}, }); }); diff --git a/tests/api-resources/workers/scripts/schedules.test.ts b/tests/api-resources/workers/scripts/schedules.test.ts index 90224aff1a..0b2a489c8f 100644 --- a/tests/api-resources/workers/scripts/schedules.test.ts +++ b/tests/api-resources/workers/scripts/schedules.test.ts @@ -27,7 +27,7 @@ describe('resource schedules', () => { test('update: required and optional params', async () => { const response = await client.workers.scripts.schedules.update('this-is_my_script-01', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', - body: [{ cron: '*/30 * * * *' }], + body: [{}], }); }); diff --git a/tests/api-resources/zaraz/config.test.ts b/tests/api-resources/zaraz/config.test.ts index 502f5712fa..86edc43174 100644 --- a/tests/api-resources/zaraz/config.test.ts +++ b/tests/api-resources/zaraz/config.test.ts @@ -78,18 +78,9 @@ describe('resource config', () => { permissions: ['string'], settings: { foo: 'string' }, type: 'component', - actions: { - foo: { - actionType: 'actionType', - blockingTriggers: ['string'], - data: {}, - firingTriggers: ['string'], - }, - }, + actions: {}, defaultPurpose: 'defaultPurpose', - neoEvents: [ - { actionType: 'actionType', blockingTriggers: ['string'], data: {}, firingTriggers: ['string'] }, - ], + neoEvents: [{}], vendorName: 'vendorName', vendorPolicyUrl: 'vendorPolicyUrl', }, @@ -108,11 +99,7 @@ describe('resource config', () => { analytics: { defaultPurpose: 'defaultPurpose', enabled: true, sessionExpTime: 60 }, consent: { enabled: true, - buttonTextTranslations: { - accept_all: { foo: 'string' }, - confirm_my_choices: { foo: 'string' }, - reject_all: { foo: 'string' }, - }, + buttonTextTranslations: {}, companyEmail: 'companyEmail', companyName: 'companyName', companyStreetAddress: 'companyStreetAddress', diff --git a/tests/api-resources/zero-trust/devices/posture/posture.test.ts b/tests/api-resources/zero-trust/devices/posture/posture.test.ts index 3421b8bd79..9019ca3e04 100644 --- a/tests/api-resources/zero-trust/devices/posture/posture.test.ts +++ b/tests/api-resources/zero-trust/devices/posture/posture.test.ts @@ -33,7 +33,7 @@ describe('resource posture', () => { description: 'The rule for admin serial numbers', expiration: '1h', input: { - operating_system: 'windows', + operating_system: {}, path: '/bin/cat', exists: true, sha256: 'https://api.us-2.crowdstrike.com', @@ -67,7 +67,7 @@ describe('resource posture', () => { description: 'The rule for admin serial numbers', expiration: '1h', input: { - operating_system: 'windows', + operating_system: {}, path: '/bin/cat', exists: true, sha256: 'https://api.us-2.crowdstrike.com', diff --git a/tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts b/tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts index 93ce5a9053..9d6c89b711 100755 --- a/tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts +++ b/tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts @@ -26,38 +26,7 @@ describe('resource configurations', () => { test('update: required and optional params', async () => { const response = await client.zeroTrust.gateway.configurations.update({ account_id: '699d98642c564d2e855e9661899b7252', - settings: { - activity_log: { enabled: true }, - antivirus: { - enabled_download_phase: false, - enabled_upload_phase: false, - fail_closed: false, - notification_settings: { enabled: true, msg: 'msg', support_url: 'support_url' }, - }, - block_page: { - background_color: 'background_color', - enabled: true, - footer_text: '--footer--', - header_text: '--header--', - include_context: true, - logo_path: 'https://logos.com/a.png', - mailto_address: 'admin@example.com', - mailto_subject: 'Blocked User Inquiry', - mode: 'customized_block_page', - name: 'Cloudflare', - suppress_footer: false, - target_uri: 'https://example.com', - }, - body_scanning: { inspection_mode: 'deep' }, - browser_isolation: { non_identity_enabled: true, url_browser_isolation_enabled: true }, - certificate: { id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, - custom_certificate: { enabled: true, id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, - extended_email_matching: { enabled: true }, - fips: { tls: true }, - protocol_detection: { enabled: true }, - sandbox: { enabled: true, fallback_action: 'allow' }, - tls_decrypt: { enabled: true }, - }, + settings: {}, }); }); @@ -77,38 +46,7 @@ describe('resource configurations', () => { test('edit: required and optional params', async () => { const response = await client.zeroTrust.gateway.configurations.edit({ account_id: '699d98642c564d2e855e9661899b7252', - settings: { - activity_log: { enabled: true }, - antivirus: { - enabled_download_phase: false, - enabled_upload_phase: false, - fail_closed: false, - notification_settings: { enabled: true, msg: 'msg', support_url: 'support_url' }, - }, - block_page: { - background_color: 'background_color', - enabled: true, - footer_text: '--footer--', - header_text: '--header--', - include_context: true, - logo_path: 'https://logos.com/a.png', - mailto_address: 'admin@example.com', - mailto_subject: 'Blocked User Inquiry', - mode: 'customized_block_page', - name: 'Cloudflare', - suppress_footer: false, - target_uri: 'https://example.com', - }, - body_scanning: { inspection_mode: 'deep' }, - browser_isolation: { non_identity_enabled: true, url_browser_isolation_enabled: true }, - certificate: { id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, - custom_certificate: { enabled: true, id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, - extended_email_matching: { enabled: true }, - fips: { tls: true }, - protocol_detection: { enabled: true }, - sandbox: { enabled: true, fallback_action: 'allow' }, - tls_decrypt: { enabled: true }, - }, + settings: {}, }); }); diff --git a/tests/api-resources/zero-trust/gateway/logging.test.ts b/tests/api-resources/zero-trust/gateway/logging.test.ts index 68106b5c53..8ecda94155 100644 --- a/tests/api-resources/zero-trust/gateway/logging.test.ts +++ b/tests/api-resources/zero-trust/gateway/logging.test.ts @@ -27,7 +27,7 @@ describe('resource logging', () => { const response = await client.zeroTrust.gateway.logging.update({ account_id: '699d98642c564d2e855e9661899b7252', redact_pii: true, - settings_by_rule_type: { dns: {}, http: {}, l4: {} }, + settings_by_rule_type: {}, }); }); diff --git a/tests/api-resources/zero-trust/identity-providers/identity-providers.test.ts b/tests/api-resources/zero-trust/identity-providers/identity-providers.test.ts index 9d0aee3fe6..4cafe240a3 100644 --- a/tests/api-resources/zero-trust/identity-providers/identity-providers.test.ts +++ b/tests/api-resources/zero-trust/identity-providers/identity-providers.test.ts @@ -15,7 +15,7 @@ describe('resource identityProviders', () => { const responsePromise = client.zeroTrust.identityProviders.create({ config: {}, name: 'Widget Corps IDP', - type: 'onetimepin', + type: {}, account_id: 'account_id', }); const rawResponse = await responsePromise.asResponse(); @@ -41,14 +41,9 @@ describe('resource identityProviders', () => { support_groups: true, }, name: 'Widget Corps IDP', - type: 'onetimepin', + type: {}, account_id: 'account_id', - scim_config: { - enabled: true, - identity_update_behavior: 'automatic', - seat_deprovision: true, - user_deprovision: true, - }, + scim_config: {}, }); }); @@ -56,7 +51,7 @@ describe('resource identityProviders', () => { test.skip('update: only required params', async () => { const responsePromise = client.zeroTrust.identityProviders.update( 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', - { config: {}, name: 'Widget Corps IDP', type: 'onetimepin', account_id: 'account_id' }, + { config: {}, name: 'Widget Corps IDP', type: {}, account_id: 'account_id' }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -81,14 +76,9 @@ describe('resource identityProviders', () => { support_groups: true, }, name: 'Widget Corps IDP', - type: 'onetimepin', + type: {}, account_id: 'account_id', - scim_config: { - enabled: true, - identity_update_behavior: 'automatic', - seat_deprovision: true, - user_deprovision: true, - }, + scim_config: {}, }); }); From b8b5c9cbf92da925891e47a2e8e4aace55ca3129 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 22:14:49 +0000 Subject: [PATCH 153/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4320e5905b..1b6f422a78 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d60e8882189e2204ae91aeeadf9fe7a298f602085585332811afaf1786f86917.yml -openapi_spec_hash: 19ac633268a644b849d24b4797bb0c29 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ba301aeaf435995f9c9017c9d9ef11b470e023e66ff3aa70d3e471ea452b937b.yml +openapi_spec_hash: df115451d779efa43c4358a6eeecd4ad config_hash: f19070938c38d2589d482763642f37a1 From 9161819b75144006eb2163886c860a61cef5da43 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 22:25:27 +0000 Subject: [PATCH 154/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 1b6f422a78..4a1d002e83 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ba301aeaf435995f9c9017c9d9ef11b470e023e66ff3aa70d3e471ea452b937b.yml openapi_spec_hash: df115451d779efa43c4358a6eeecd4ad -config_hash: f19070938c38d2589d482763642f37a1 +config_hash: f01b56f70c651f15e93a85ce451aa063 From d9d0bc53dac35ee7f8f686e2f690ad445ec6ffcc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 23:45:39 +0000 Subject: [PATCH 155/461] feat(api): api update (#2565) --- .stats.yml | 4 +- api.md | 15 +- .../addressing/address-maps/accounts.ts | 9 +- .../addressing/address-maps/address-maps.ts | 5 +- src/resources/addressing/address-maps/ips.ts | 9 +- .../addressing/address-maps/zones.ts | 9 +- src/resources/addressing/prefixes/prefixes.ts | 5 +- .../addressing/prefixes/service-bindings.ts | 5 +- .../regional-hostnames/regional-hostnames.ts | 5 +- .../alerting/destinations/pagerduty.ts | 5 +- .../alerting/destinations/webhooks.ts | 5 +- src/resources/alerting/policies.ts | 5 +- .../api-gateway/user-schemas/user-schemas.ts | 3 +- src/resources/brand-protection.ts | 123 ++- src/resources/cache/cache-reserve.ts | 30 +- src/resources/cache/regional-tiered-cache.ts | 15 +- src/resources/cache/variants.ts | 20 +- .../cloudforce-one/requests/assets.ts | 5 +- .../cloudforce-one/requests/message.ts | 5 +- .../cloudforce-one/requests/priority.ts | 5 +- .../cloudforce-one/requests/requests.ts | 5 +- .../custom-certificates.ts | 23 +- .../certificate-pack/certificates.ts | 20 +- .../custom-hostnames/custom-hostnames.ts | 454 ++++++++- .../dns/analytics/reports/bytimes.ts | 5 +- .../dns/analytics/reports/reports.ts | 15 +- src/resources/dns/dns.ts | 58 +- src/resources/dns/zone-transfers/incoming.ts | 40 +- .../dns/zone-transfers/outgoing/outgoing.ts | 39 +- src/resources/email-routing/dns.ts | 9 +- .../firewall/waf/packages/packages.ts | 5 +- src/resources/firewall/waf/packages/rules.ts | 45 +- .../intel/attack-surface-report/issues.ts | 5 +- src/resources/intel/miscategorizations.ts | 5 +- src/resources/keyless-certificates.ts | 8 +- src/resources/logpush/index.ts | 1 - src/resources/logpush/logpush.ts | 2 - src/resources/logpush/ownership.ts | 11 +- src/resources/magic-transit/gre-tunnels.ts | 71 +- src/resources/magic-transit/ipsec-tunnels.ts | 81 +- src/resources/magic-transit/magic-transit.ts | 40 +- src/resources/magic-transit/sites/acls.ts | 20 +- .../origin-post-quantum-encryption.ts | 44 +- .../hostnames/certificates.ts | 49 +- src/resources/queues/consumers.ts | 3 +- src/resources/queues/queues.ts | 3 +- src/resources/r2/buckets/sippy.ts | 11 +- src/resources/radar/ai/bots/summary.ts | 34 +- src/resources/radar/ai/inference/summary.ts | 68 +- .../ai/inference/timeseries-groups/summary.ts | 18 +- src/resources/radar/ai/timeseries-groups.ts | 9 +- .../radar/annotations/annotations.ts | 18 +- src/resources/radar/annotations/outages.ts | 30 +- src/resources/radar/as112/as112.ts | 42 +- src/resources/radar/as112/summary.ts | 212 +++- .../radar/as112/timeseries-groups.ts | 18 +- src/resources/radar/as112/top.ts | 176 +++- src/resources/radar/attacks/layer3/layer3.ts | 10 +- src/resources/radar/attacks/layer3/summary.ts | 246 ++++- .../radar/attacks/layer3/timeseries-groups.ts | 39 +- .../radar/attacks/layer3/top/locations.ts | 68 +- src/resources/radar/attacks/layer3/top/top.ts | 102 +- src/resources/radar/attacks/layer7/layer7.ts | 42 +- src/resources/radar/attacks/layer7/summary.ts | 246 ++++- .../radar/attacks/layer7/timeseries-groups.ts | 57 +- .../radar/attacks/layer7/top/ases.ts | 34 +- .../radar/attacks/layer7/top/locations.ts | 68 +- src/resources/radar/attacks/layer7/top/top.ts | 102 +- src/resources/radar/bgp/bgp.ts | 42 +- src/resources/radar/bgp/routes.ts | 30 +- src/resources/radar/bgp/top/ases.ts | 26 +- src/resources/radar/bgp/top/top.ts | 16 +- src/resources/radar/dns/dns.ts | 42 +- src/resources/radar/dns/summary.ts | 348 ++++++- src/resources/radar/dns/timeseries-groups.ts | 18 +- src/resources/radar/dns/top.ts | 88 +- src/resources/radar/email/email.ts | 16 +- src/resources/radar/email/routing/summary.ts | 221 +++- .../radar/email/routing/timeseries-groups.ts | 9 +- src/resources/radar/email/security/summary.ts | 315 +++++- .../radar/email/security/timeseries-groups.ts | 9 +- .../email/security/top/tlds/malicious.ts | 34 +- .../radar/email/security/top/tlds/spam.ts | 34 +- .../radar/email/security/top/tlds/spoof.ts | 34 +- .../radar/email/security/top/tlds/tlds.ts | 34 +- src/resources/radar/entities/asns.ts | 10 +- src/resources/radar/http/ases/ases.ts | 44 +- src/resources/radar/http/ases/bot-class.ts | 44 +- .../radar/http/ases/browser-family.ts | 44 +- src/resources/radar/http/ases/device-type.ts | 44 +- src/resources/radar/http/ases/http-method.ts | 44 +- .../radar/http/ases/http-protocol.ts | 44 +- src/resources/radar/http/ases/ip-version.ts | 44 +- src/resources/radar/http/ases/os.ts | 44 +- src/resources/radar/http/ases/tls-version.ts | 44 +- src/resources/radar/http/http.ts | 42 +- .../radar/http/locations/bot-class.ts | 44 +- .../radar/http/locations/browser-family.ts | 44 +- .../radar/http/locations/device-type.ts | 44 +- .../radar/http/locations/http-method.ts | 44 +- .../radar/http/locations/http-protocol.ts | 44 +- .../radar/http/locations/ip-version.ts | 44 +- .../radar/http/locations/locations.ts | 44 +- src/resources/radar/http/locations/os.ts | 44 +- .../radar/http/locations/tls-version.ts | 44 +- src/resources/radar/http/summary.ts | 280 +++++- src/resources/radar/http/timeseries-groups.ts | 39 +- src/resources/radar/http/top.ts | 68 +- .../radar/leaked-credentials/summary.ts | 68 +- src/resources/radar/netflows/netflows.ts | 76 +- src/resources/radar/quality/iqi.ts | 34 +- src/resources/radar/quality/speed/speed.ts | 34 +- src/resources/radar/quality/speed/top.ts | 68 +- src/resources/radar/ranking/domain.ts | 16 +- .../radar/ranking/internet-services.ts | 16 +- src/resources/radar/ranking/ranking.ts | 16 +- src/resources/radar/robots-txt/top/top.ts | 34 +- .../radar/robots-txt/top/user-agents.ts | 34 +- src/resources/radar/tcp-resets-timeouts.ts | 68 +- .../radar/traffic-anomalies/locations.ts | 12 +- .../traffic-anomalies/traffic-anomalies.ts | 24 +- src/resources/radar/verified-bots/top.ts | 68 +- src/resources/rules/lists/bulk-operations.ts | 10 +- src/resources/rules/lists/items.ts | 13 +- src/resources/rulesets/phases/phases.ts | 30 +- src/resources/rulesets/phases/versions.ts | 10 +- src/resources/rulesets/rules.ts | 359 ++++--- src/resources/rulesets/rulesets.ts | 50 +- src/resources/rulesets/versions.ts | 10 +- .../security-center/insights/insights.ts | 5 +- src/resources/security-txt.ts | 9 +- src/resources/shared.ts | 47 +- src/resources/snippets/rules.ts | 5 +- src/resources/snippets/snippets.ts | 5 +- src/resources/ssl/analyze.ts | 8 +- src/resources/url-scanner/url-scanner.ts | 36 +- src/resources/waiting-rooms/settings.ts | 9 +- .../dispatch/namespaces/scripts/content.ts | 6 +- src/resources/workers/routes.ts | 9 +- src/resources/workers/scripts/content.ts | 6 +- src/resources/workers/scripts/deployments.ts | 21 +- src/resources/workers/scripts/schedules.ts | 10 +- src/resources/workers/scripts/tail.ts | 5 +- src/resources/workers/workers.ts | 36 +- src/resources/zaraz/config.ts | 21 +- src/resources/zaraz/zaraz.ts | 78 +- .../access/applications/applications.ts | 89 +- .../access/applications/user-policy-checks.ts | 7 +- .../access/users/active-sessions.ts | 3 +- .../access/users/last-seen-identity.ts | 3 +- src/resources/zero-trust/devices/dex-tests.ts | 59 +- .../zero-trust/devices/policies/policies.ts | 2 +- .../zero-trust/devices/posture/posture.ts | 90 +- src/resources/zero-trust/dex/dex.ts | 11 +- .../zero-trust/dex/http-tests/http-tests.ts | 3 +- src/resources/zero-trust/dex/tests/tests.ts | 3 +- .../zero-trust/dex/traceroute-tests.ts | 2 +- .../gateway/configurations/configurations.ts | 426 +++++++- src/resources/zero-trust/gateway/logging.ts | 53 +- .../identity-providers/identity-providers.ts | 952 ++++++++++++++---- .../zero-trust/networks/routes/routes.ts | 38 +- src/resources/zones/custom-nameservers.ts | 5 +- src/resources/zones/holds.ts | 32 +- src/resources/zones/index.ts | 4 - src/resources/zones/settings.ts | 22 +- src/resources/zones/zones.ts | 17 +- .../custom-certificates.test.ts | 4 +- .../custom-hostnames/custom-hostnames.test.ts | 12 +- .../keyless-certificates.test.ts | 2 +- .../magic-transit/cf-interconnects.test.ts | 2 +- .../magic-transit/gre-tunnels.test.ts | 4 +- .../magic-transit/ipsec-tunnels.test.ts | 8 +- .../magic-transit/sites/acls.test.ts | 6 +- tests/api-resources/r2/buckets/sippy.test.ts | 2 +- tests/api-resources/rulesets/rulesets.test.ts | 2 +- tests/api-resources/ssl/analyze.test.ts | 2 +- .../namespaces/scripts/content.test.ts | 2 +- .../workers/scripts/content.test.ts | 2 +- .../workers/scripts/deployments.test.ts | 2 +- .../workers/scripts/schedules.test.ts | 2 +- tests/api-resources/zaraz/config.test.ts | 19 +- .../devices/posture/posture.test.ts | 4 +- .../configurations/configurations.test.ts | 66 +- .../zero-trust/gateway/logging.test.ts | 2 +- .../identity-providers.test.ts | 22 +- 185 files changed, 7813 insertions(+), 1084 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4a1d002e83..0f343dec8f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ba301aeaf435995f9c9017c9d9ef11b470e023e66ff3aa70d3e471ea452b937b.yml -openapi_spec_hash: df115451d779efa43c4358a6eeecd4ad +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-270122f270548b1d47f7e3ac3552ef65417230c5ec71e8cfb6cd5031e7eaa188.yml +openapi_spec_hash: 01925ed2891006b54e44074457d99a71 config_hash: f01b56f70c651f15e93a85ce451aa063 diff --git a/api.md b/api.md index 1e50749433..b8df19c7af 100644 --- a/api.md +++ b/api.md @@ -385,17 +385,13 @@ Methods: Types: - ZoneHold -- HoldCreateResponse -- HoldDeleteResponse -- HoldEditResponse -- HoldGetResponse Methods: -- client.zones.holds.create({ ...params }) -> HoldCreateResponse -- client.zones.holds.delete({ ...params }) -> HoldDeleteResponse -- client.zones.holds.edit({ ...params }) -> HoldEditResponse -- client.zones.holds.get({ ...params }) -> HoldGetResponse +- client.zones.holds.create({ ...params }) -> ZoneHold +- client.zones.holds.delete({ ...params }) -> ZoneHold +- client.zones.holds.edit({ ...params }) -> ZoneHold +- client.zones.holds.get({ ...params }) -> ZoneHold ## Subscriptions @@ -1689,12 +1685,11 @@ Types: - OwnershipValidation - OwnershipCreateResponse -- OwnershipValidateResponse Methods: - client.logpush.ownership.create({ ...params }) -> OwnershipCreateResponse | null -- client.logpush.ownership.validate({ ...params }) -> OwnershipValidateResponse +- client.logpush.ownership.validate({ ...params }) -> OwnershipValidation | null ## Validate diff --git a/src/resources/addressing/address-maps/accounts.ts b/src/resources/addressing/address-maps/accounts.ts index 36fb4529de..589190d231 100644 --- a/src/resources/addressing/address-maps/accounts.ts +++ b/src/resources/addressing/address-maps/accounts.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; export class Accounts extends APIResource { /** @@ -36,9 +37,9 @@ export class Accounts extends APIResource { } export interface AccountUpdateResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful @@ -73,9 +74,9 @@ export namespace AccountUpdateResponse { } export interface AccountDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/addressing/address-maps/address-maps.ts b/src/resources/addressing/address-maps/address-maps.ts index dc5ee153d5..c179e49a71 100644 --- a/src/resources/addressing/address-maps/address-maps.ts +++ b/src/resources/addressing/address-maps/address-maps.ts @@ -3,6 +3,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; import * as AddressMapsAPI from './address-maps'; +import * as Shared from '../../shared'; import * as AccountsAPI from './accounts'; import { AccountDeleteParams, @@ -243,9 +244,9 @@ export namespace AddressMapCreateResponse { } export interface AddressMapDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/addressing/address-maps/ips.ts b/src/resources/addressing/address-maps/ips.ts index 14dd42f5e3..b68855f9bb 100644 --- a/src/resources/addressing/address-maps/ips.ts +++ b/src/resources/addressing/address-maps/ips.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; export class IPs extends APIResource { /** @@ -38,9 +39,9 @@ export class IPs extends APIResource { } export interface IPUpdateResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful @@ -75,9 +76,9 @@ export namespace IPUpdateResponse { } export interface IPDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/addressing/address-maps/zones.ts b/src/resources/addressing/address-maps/zones.ts index 78eaebf7de..263fc1ee81 100644 --- a/src/resources/addressing/address-maps/zones.ts +++ b/src/resources/addressing/address-maps/zones.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; export class Zones extends APIResource { /** @@ -36,9 +37,9 @@ export class Zones extends APIResource { } export interface ZoneUpdateResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful @@ -73,9 +74,9 @@ export namespace ZoneUpdateResponse { } export interface ZoneDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/addressing/prefixes/prefixes.ts b/src/resources/addressing/prefixes/prefixes.ts index f2df89497a..e3389f7360 100644 --- a/src/resources/addressing/prefixes/prefixes.ts +++ b/src/resources/addressing/prefixes/prefixes.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; import * as AdvertisementStatusAPI from './advertisement-status'; import { AdvertisementStatus, @@ -184,9 +185,9 @@ export interface Prefix { } export interface PrefixDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/addressing/prefixes/service-bindings.ts b/src/resources/addressing/prefixes/service-bindings.ts index 2f0e99f241..74a046d4e9 100644 --- a/src/resources/addressing/prefixes/service-bindings.ts +++ b/src/resources/addressing/prefixes/service-bindings.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; import { SinglePage } from '../../../pagination'; export class ServiceBindings extends APIResource { @@ -126,9 +127,9 @@ export namespace ServiceBinding { } export interface ServiceBindingDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/addressing/regional-hostnames/regional-hostnames.ts b/src/resources/addressing/regional-hostnames/regional-hostnames.ts index aa2e40b952..3c3b0c2162 100644 --- a/src/resources/addressing/regional-hostnames/regional-hostnames.ts +++ b/src/resources/addressing/regional-hostnames/regional-hostnames.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; import * as RegionsAPI from './regions'; import { RegionListParams, RegionListResponse, RegionListResponsesSinglePage, Regions } from './regions'; import { SinglePage } from '../../../pagination'; @@ -130,9 +131,9 @@ export interface RegionalHostnameListResponse { } export interface RegionalHostnameDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/alerting/destinations/pagerduty.ts b/src/resources/alerting/destinations/pagerduty.ts index 8b99ff4d3c..d229984140 100644 --- a/src/resources/alerting/destinations/pagerduty.ts +++ b/src/resources/alerting/destinations/pagerduty.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; import { SinglePage } from '../../../pagination'; export class PagerdutyResource extends APIResource { @@ -87,9 +88,9 @@ export interface PagerdutyCreateResponse { } export interface PagerdutyDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/alerting/destinations/webhooks.ts b/src/resources/alerting/destinations/webhooks.ts index 469521cd4c..eebca4e092 100644 --- a/src/resources/alerting/destinations/webhooks.ts +++ b/src/resources/alerting/destinations/webhooks.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; import { SinglePage } from '../../../pagination'; export class Webhooks extends APIResource { @@ -136,9 +137,9 @@ export interface WebhookUpdateResponse { } export interface WebhookDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/alerting/policies.ts b/src/resources/alerting/policies.ts index c48b9240e1..e209fcaad1 100644 --- a/src/resources/alerting/policies.ts +++ b/src/resources/alerting/policies.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; +import * as Shared from '../shared'; import { SinglePage } from '../../pagination'; export class Policies extends APIResource { @@ -718,9 +719,9 @@ export interface PolicyUpdateResponse { } export interface PolicyDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/api-gateway/user-schemas/user-schemas.ts b/src/resources/api-gateway/user-schemas/user-schemas.ts index f8c134ae34..efec1bd24d 100644 --- a/src/resources/api-gateway/user-schemas/user-schemas.ts +++ b/src/resources/api-gateway/user-schemas/user-schemas.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; import * as HostsAPI from './hosts'; import { HostListParams, HostListResponse, HostListResponsesV4PagePaginationArray, Hosts } from './hosts'; import * as OperationsAPI from './operations'; @@ -94,7 +95,7 @@ export class UserSchemas extends APIResource { export class PublicSchemasV4PagePaginationArray extends V4PagePaginationArray {} -export type Message = Array; +export type Message = Array; export interface PublicSchema { created_at: string; diff --git a/src/resources/brand-protection.ts b/src/resources/brand-protection.ts index 0695bd66ce..f17e5b194e 100644 --- a/src/resources/brand-protection.ts +++ b/src/resources/brand-protection.ts @@ -35,20 +35,23 @@ export interface Info { /** * List of categorizations applied to this submission. */ - categorizations?: Array; + categorizations?: Array; /** * 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; - scan_status?: unknown; + /** + * Status of the most recent scan found. + */ + scan_status?: ScanStatus; /** * For internal use. @@ -66,29 +69,129 @@ export interface Info { url?: string; } -export type RuleMatch = unknown; +export namespace Info { + export interface Categorization { + /** + * Name of the category applied. + */ + category?: string; + + /** + * Result of human review for this categorization. + */ + verification_status?: string; + } +} + +export interface RuleMatch { + /** + * For internal use. + */ + banning?: boolean; + + /** + * For internal use. + */ + blocking?: boolean; + + /** + * Description of the signature that matched. + */ + description?: string; + + /** + * Name of the signature that matched. + */ + name?: string; +} -export type ScanStatus = unknown; +/** + * Status of the most recent scan found. + */ +export interface ScanStatus { + /** + * Timestamp of when the submission was processed. + */ + last_processed?: string; + + /** + * 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 { /** * URLs that were excluded from scanning because their domain is in our no-scan * list. */ - excluded_urls?: Array; + excluded_urls?: Array; /** * URLs that were skipped because the same URL is currently being scanned */ - skipped_urls?: Array; + skipped_urls?: Array; /** * URLs that were successfully submitted for scanning. */ - submitted_urls?: Array; + submitted_urls?: Array; } -export type URLInfoModelResults = unknown; +export namespace Submit { + export interface ExcludedURL { + /** + * URL that was excluded. + */ + url?: string; + } + + export interface SkippedURL { + /** + * URL that was skipped. + */ + url?: string; + + /** + * ID of the submission of that URL that is currently scanning. + */ + url_id?: number; + } + + export interface SubmittedURL { + /** + * URL that was submitted. + */ + url?: string; + + /** + * ID assigned to this URL submission. Used to retrieve scanning results. + */ + url_id?: number; + } +} + +export interface URLInfoModelResults { + /** + * Name of the model. + */ + model_name?: string; + + /** + * Score output by the model for this submission. + */ + model_score?: number; +} export interface BrandProtectionSubmitParams { /** diff --git a/src/resources/cache/cache-reserve.ts b/src/resources/cache/cache-reserve.ts index dc998f69f9..ae3f4bcae3 100644 --- a/src/resources/cache/cache-reserve.ts +++ b/src/resources/cache/cache-reserve.ts @@ -82,9 +82,15 @@ export class CacheReserveResource extends APIResource { } } -export type CacheReserve = unknown; +/** + * ID of the zone setting. + */ +export type CacheReserve = 'cache_reserve'; -export type CacheReserveClear = unknown; +/** + * ID of the zone setting. + */ +export type CacheReserveClear = 'cache_reserve_clear'; /** * The current state of the Cache Reserve Clear operation. @@ -98,7 +104,10 @@ export type State = 'In-progress' | 'Completed'; * that you cannot undo or cancel this operation. */ export interface CacheReserveClearResponse { - id: unknown; + /** + * ID of the zone setting. + */ + id: CacheReserveClear; /** * The time that the latest Cache Reserve Clear operation started. @@ -122,7 +131,10 @@ export interface CacheReserveClearResponse { } export interface CacheReserveEditResponse { - id: unknown; + /** + * ID of the zone setting. + */ + id: CacheReserve; /** * Whether the setting is editable @@ -141,7 +153,10 @@ export interface CacheReserveEditResponse { } export interface CacheReserveGetResponse { - id: unknown; + /** + * ID of the zone setting. + */ + id: CacheReserve; /** * Whether the setting is editable @@ -166,7 +181,10 @@ export interface CacheReserveGetResponse { * that you cannot undo or cancel this operation. */ export interface CacheReserveStatusResponse { - id: unknown; + /** + * ID of the zone setting. + */ + id: CacheReserveClear; /** * The time that the latest Cache Reserve Clear operation started. diff --git a/src/resources/cache/regional-tiered-cache.ts b/src/resources/cache/regional-tiered-cache.ts index 202bfed824..f0c491d4fd 100644 --- a/src/resources/cache/regional-tiered-cache.ts +++ b/src/resources/cache/regional-tiered-cache.ts @@ -40,10 +40,16 @@ export class RegionalTieredCacheResource extends APIResource { } } -export type RegionalTieredCache = unknown; +/** + * ID of the zone setting. + */ +export type RegionalTieredCache = 'tc_regional'; export interface RegionalTieredCacheEditResponse { - id: unknown; + /** + * ID of the zone setting. + */ + id: RegionalTieredCache; /** * Whether the setting is editable @@ -62,7 +68,10 @@ export interface RegionalTieredCacheEditResponse { } export interface RegionalTieredCacheGetResponse { - id: unknown; + /** + * ID of the zone setting. + */ + id: RegionalTieredCache; /** * Whether the setting is editable diff --git a/src/resources/cache/variants.ts b/src/resources/cache/variants.ts index a22f7de3dc..eea3f392ee 100644 --- a/src/resources/cache/variants.ts +++ b/src/resources/cache/variants.ts @@ -61,7 +61,10 @@ export class Variants extends APIResource { * be indicated with BYPASS cache status in the response headers. */ export interface CacheVariant { - id: unknown; + /** + * ID of the zone setting. + */ + id: 'variants'; /** * Last time this setting was modified. @@ -70,7 +73,10 @@ export interface CacheVariant { } export interface VariantDeleteResponse { - id: unknown; + /** + * ID of the zone setting. + */ + id: 'variants'; /** * Whether the setting is editable @@ -84,7 +90,10 @@ export interface VariantDeleteResponse { } export interface VariantEditResponse { - id: unknown; + /** + * ID of the zone setting. + */ + id: 'variants'; /** * Whether the setting is editable @@ -103,7 +112,10 @@ export interface VariantEditResponse { } export interface VariantGetResponse { - id: unknown; + /** + * ID of the zone setting. + */ + id: 'variants'; /** * Whether the setting is editable diff --git a/src/resources/cloudforce-one/requests/assets.ts b/src/resources/cloudforce-one/requests/assets.ts index 490addabc2..5f8f861a0d 100644 --- a/src/resources/cloudforce-one/requests/assets.ts +++ b/src/resources/cloudforce-one/requests/assets.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; import { SinglePage } from '../../../pagination'; export class Assets extends APIResource { @@ -130,9 +131,9 @@ export interface AssetUpdateResponse { } export interface AssetDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/cloudforce-one/requests/message.ts b/src/resources/cloudforce-one/requests/message.ts index 8a2d31b0c5..9f26c9d4fa 100644 --- a/src/resources/cloudforce-one/requests/message.ts +++ b/src/resources/cloudforce-one/requests/message.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; import { SinglePage } from '../../../pagination'; export class MessageResource extends APIResource { @@ -107,9 +108,9 @@ export interface Message { } export interface MessageDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/cloudforce-one/requests/priority.ts b/src/resources/cloudforce-one/requests/priority.ts index 9c79bd5e4c..23e56fb99d 100644 --- a/src/resources/cloudforce-one/requests/priority.ts +++ b/src/resources/cloudforce-one/requests/priority.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; import * as RequestsAPI from './requests'; export class PriorityResource extends APIResource { @@ -145,9 +146,9 @@ export interface PriorityEdit { } export interface PriorityDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/cloudforce-one/requests/requests.ts b/src/resources/cloudforce-one/requests/requests.ts index 0b89aaa970..ae54f02329 100644 --- a/src/resources/cloudforce-one/requests/requests.ts +++ b/src/resources/cloudforce-one/requests/requests.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; import * as AssetsAPI from './assets'; import { AssetCreateParams, @@ -313,9 +314,9 @@ export interface RequestConstants { export type RequestTypes = Array; export interface RequestDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/custom-certificates/custom-certificates.ts b/src/resources/custom-certificates/custom-certificates.ts index 6ed39f9868..7df6a88c52 100644 --- a/src/resources/custom-certificates/custom-certificates.ts +++ b/src/resources/custom-certificates/custom-certificates.ts @@ -5,6 +5,7 @@ import * as Core from '../../core'; import * as KeylessCertificatesAPI from '../keyless-certificates'; import * as PrioritizeAPI from './prioritize'; import { Prioritize, PrioritizeUpdateParams } from './prioritize'; +import * as CustomHostnamesAPI from '../custom-hostnames/custom-hostnames'; import { SinglePage, V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../pagination'; export class CustomCertificates extends APIResource { @@ -106,7 +107,13 @@ export interface CustomCertificate { */ id: string; - bundle_method: unknown; + /** + * A ubiquitous bundle has the highest probability of being verified everywhere, + * even by clients using outdated or unusual trust stores. An optimal bundle uses + * the shortest chain and newest intermediates. And the force bundle verifies the + * chain, but does not otherwise modify it. + */ + bundle_method: CustomHostnamesAPI.BundleMethod; /** * When the certificate from the authority expires. @@ -236,9 +243,12 @@ export interface CustomCertificateCreateParams { private_key: string; /** - * Body param: + * Body param: A ubiquitous bundle has the highest probability of being verified + * everywhere, even by clients using outdated or unusual trust stores. An optimal + * bundle uses the shortest chain and newest intermediates. And the force bundle + * verifies the chain, but does not otherwise modify it. */ - bundle_method?: unknown; + bundle_method?: CustomHostnamesAPI.BundleMethodParam; /** * Body param: Specify the region where your private key can be held locally for @@ -302,9 +312,12 @@ export interface CustomCertificateEditParams { zone_id: string; /** - * Body param: + * Body param: A ubiquitous bundle has the highest probability of being verified + * everywhere, even by clients using outdated or unusual trust stores. An optimal + * bundle uses the shortest chain and newest intermediates. And the force bundle + * verifies the chain, but does not otherwise modify it. */ - bundle_method?: unknown; + bundle_method?: CustomHostnamesAPI.BundleMethodParam; /** * Body param: The zone's SSL certificate or certificate and the intermediate(s). diff --git a/src/resources/custom-hostnames/certificate-pack/certificates.ts b/src/resources/custom-hostnames/certificate-pack/certificates.ts index 99e94c8b59..69c8d27665 100644 --- a/src/resources/custom-hostnames/certificate-pack/certificates.ts +++ b/src/resources/custom-hostnames/certificate-pack/certificates.ts @@ -3,6 +3,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; import * as Shared from '../../shared'; +import * as CustomHostnamesAPI from '../custom-hostnames'; export class Certificates extends APIResource { /** @@ -132,7 +133,13 @@ export namespace CertificateUpdateResponse { */ id?: string; - bundle_method?: unknown; + /** + * A ubiquitous bundle has the highest probability of being verified everywhere, + * even by clients using outdated or unusual trust stores. An optimal bundle uses + * the shortest chain and newest intermediates. And the force bundle verifies the + * chain, but does not otherwise modify it. + */ + bundle_method?: CustomHostnamesAPI.BundleMethod; /** * The Certificate Authority that will issue the certificate @@ -169,7 +176,10 @@ export namespace CertificateUpdateResponse { */ issuer?: string; - method?: unknown; + /** + * Domain control validation (DCV) method used for this hostname. + */ + method?: CustomHostnamesAPI.DCVMethod; /** * The serial number on a custom uploaded certificate. @@ -209,7 +219,11 @@ export namespace CertificateUpdateResponse { | 'backup_issued' | 'holding_deployment'; - type?: unknown; + /** + * Level of validation to be used for this hostname. Domain validation (dv) must be + * used. + */ + type?: CustomHostnamesAPI.DomainValidationType; /** * The time the custom certificate was uploaded. diff --git a/src/resources/custom-hostnames/custom-hostnames.ts b/src/resources/custom-hostnames/custom-hostnames.ts index 12bf04ef25..2b2e93ce3a 100644 --- a/src/resources/custom-hostnames/custom-hostnames.ts +++ b/src/resources/custom-hostnames/custom-hostnames.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; +import * as CustomHostnamesAPI from './custom-hostnames'; import * as Shared from '../shared'; import * as FallbackOriginAPI from './fallback-origin'; import { @@ -114,13 +115,344 @@ export class CustomHostnames extends APIResource { export class CustomHostnameListResponsesV4PagePaginationArray extends V4PagePaginationArray {} -export type BundleMethod = unknown; +/** + * A ubiquitous bundle has the highest probability of being verified everywhere, + * even by clients using outdated or unusual trust stores. An optimal bundle uses + * the shortest chain and newest intermediates. And the force bundle verifies the + * chain, but does not otherwise modify it. + */ +export type BundleMethod = 'ubiquitous' | 'optimal' | 'force'; -export type CustomHostname = unknown; +/** + * A ubiquitous bundle has the highest probability of being verified everywhere, + * even by clients using outdated or unusual trust stores. An optimal bundle uses + * the shortest chain and newest intermediates. And the force bundle verifies the + * chain, but does not otherwise modify it. + */ +export type BundleMethodParam = 'ubiquitous' | 'optimal' | 'force'; -export type DCVMethod = unknown; +export interface CustomHostname { + /** + * Identifier + */ + id: string; + + /** + * The custom hostname that will point to your hostname via CNAME. + */ + hostname: string; + + ssl: CustomHostname.SSL; + + /** + * This is the time the hostname was created. + */ + created_at?: string; + + /** + * Unique key/value metadata for this hostname. These are per-hostname (customer) + * settings. + */ + custom_metadata?: Record; + + /** + * a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME + * record. + */ + custom_origin_server?: string; + + /** + * A hostname that will be sent to your custom origin server as SNI for TLS + * handshake. This can be a valid subdomain of the zone or custom origin server + * name or the string ':request_host_header:' which will cause the host header in + * the request to be used as SNI. Not configurable with default/fallback origin + * server. + */ + custom_origin_sni?: string; + + /** + * This is a record which can be placed to activate a hostname. + */ + ownership_verification?: CustomHostname.OwnershipVerification; + + /** + * This presents the token to be served by the given http url to activate a + * hostname. + */ + ownership_verification_http?: CustomHostname.OwnershipVerificationHTTP; + + /** + * Status of the hostname's activation. + */ + status?: + | 'active' + | 'pending' + | 'active_redeploying' + | 'moved' + | 'pending_deletion' + | 'deleted' + | 'pending_blocked' + | 'pending_migration' + | 'pending_provisioned' + | 'test_pending' + | 'test_active' + | 'test_active_apex' + | 'test_blocked' + | 'test_failed' + | 'provisioned' + | 'blocked'; + + /** + * These are errors that were encountered while trying to activate a hostname. + */ + verification_errors?: Array; +} + +export namespace CustomHostname { + export interface SSL { + /** + * Custom hostname SSL identifier tag. + */ + id?: string; + + /** + * A ubiquitous bundle has the highest probability of being verified everywhere, + * even by clients using outdated or unusual trust stores. An optimal bundle uses + * the shortest chain and newest intermediates. And the force bundle verifies the + * chain, but does not otherwise modify it. + */ + bundle_method?: CustomHostnamesAPI.BundleMethod; + + /** + * The Certificate Authority that will issue the certificate + */ + certificate_authority?: Shared.CertificateCA; + + /** + * If a custom uploaded certificate is used. + */ + custom_certificate?: string; + + /** + * The identifier for the Custom CSR that was used. + */ + custom_csr_id?: string; + + /** + * The key for a custom uploaded certificate. + */ + custom_key?: string; + + /** + * The time the custom certificate expires on. + */ + expires_on?: string; + + /** + * A list of Hostnames on a custom uploaded certificate. + */ + hosts?: Array; + + /** + * The issuer on a custom uploaded certificate. + */ + issuer?: string; + + /** + * Domain control validation (DCV) method used for this hostname. + */ + method?: CustomHostnamesAPI.DCVMethod; + + /** + * The serial number on a custom uploaded certificate. + */ + serial_number?: string; + + settings?: SSL.Settings; + + /** + * The signature on a custom uploaded certificate. + */ + signature?: string; + + /** + * Status of the hostname's SSL certificates. + */ + status?: + | 'initializing' + | 'pending_validation' + | 'deleted' + | 'pending_issuance' + | 'pending_deployment' + | 'pending_deletion' + | 'pending_expiration' + | 'expired' + | 'active' + | 'initializing_timed_out' + | 'validation_timed_out' + | 'issuance_timed_out' + | 'deployment_timed_out' + | 'deletion_timed_out' + | 'pending_cleanup' + | 'staging_deployment' + | 'staging_active' + | 'deactivating' + | 'inactive' + | 'backup_issued' + | 'holding_deployment'; + + /** + * Level of validation to be used for this hostname. Domain validation (dv) must be + * used. + */ + type?: CustomHostnamesAPI.DomainValidationType; + + /** + * The time the custom certificate was uploaded. + */ + uploaded_on?: string; + + /** + * Domain validation errors that have been received by the certificate authority + * (CA). + */ + validation_errors?: Array; + + validation_records?: Array; + + /** + * Indicates whether the certificate covers a wildcard. + */ + wildcard?: boolean; + } + + export namespace SSL { + export interface Settings { + /** + * An allowlist of ciphers for TLS termination. These ciphers must be in the + * BoringSSL format. + */ + ciphers?: Array; + + /** + * Whether or not Early Hints is enabled. + */ + early_hints?: 'on' | 'off'; + + /** + * Whether or not HTTP2 is enabled. + */ + http2?: 'on' | 'off'; + + /** + * The minimum TLS version supported. + */ + min_tls_version?: '1.0' | '1.1' | '1.2' | '1.3'; + + /** + * Whether or not TLS 1.3 is enabled. + */ + tls_1_3?: 'on' | 'off'; + } + + export interface ValidationError { + /** + * A domain validation error. + */ + message?: string; + } + + export interface ValidationRecord { + /** + * The set of email addresses that the certificate authority (CA) will use to + * complete domain validation. + */ + emails?: Array; + + /** + * The content that the certificate authority (CA) will expect to find at the + * http_url during the domain validation. + */ + http_body?: string; + + /** + * The url that will be checked during domain validation. + */ + http_url?: string; + + /** + * The hostname that the certificate authority (CA) will check for a TXT record + * during domain validation . + */ + txt_name?: string; + + /** + * The TXT record that the certificate authority (CA) will check during domain + * validation. + */ + txt_value?: string; + } + } -export type DomainValidationType = unknown; + /** + * This is a record which can be placed to activate a hostname. + */ + export interface OwnershipVerification { + /** + * DNS Name for record. + */ + name?: string; + + /** + * DNS Record type. + */ + type?: 'txt'; + + /** + * Content for the record. + */ + value?: string; + } + + /** + * This presents the token to be served by the given http url to activate a + * hostname. + */ + export interface OwnershipVerificationHTTP { + /** + * Token to be served. + */ + http_body?: string; + + /** + * The HTTP URL that will be checked during custom hostname verification and where + * the customer should host the token. + */ + http_url?: string; + } +} + +/** + * Domain control validation (DCV) method used for this hostname. + */ +export type DCVMethod = 'http' | 'txt' | 'email'; + +/** + * Domain control validation (DCV) method used for this hostname. + */ +export type DCVMethodParam = 'http' | 'txt' | 'email'; + +/** + * Level of validation to be used for this hostname. Domain validation (dv) must be + * used. + */ +export type DomainValidationType = 'dv'; + +/** + * Level of validation to be used for this hostname. Domain validation (dv) must be + * used. + */ +export type DomainValidationTypeParam = 'dv'; export interface CustomHostnameCreateResponse { /** @@ -206,7 +538,13 @@ export namespace CustomHostnameCreateResponse { */ id?: string; - bundle_method?: unknown; + /** + * A ubiquitous bundle has the highest probability of being verified everywhere, + * even by clients using outdated or unusual trust stores. An optimal bundle uses + * the shortest chain and newest intermediates. And the force bundle verifies the + * chain, but does not otherwise modify it. + */ + bundle_method?: CustomHostnamesAPI.BundleMethod; /** * The Certificate Authority that will issue the certificate @@ -243,7 +581,10 @@ export namespace CustomHostnameCreateResponse { */ issuer?: string; - method?: unknown; + /** + * Domain control validation (DCV) method used for this hostname. + */ + method?: CustomHostnamesAPI.DCVMethod; /** * The serial number on a custom uploaded certificate. @@ -283,7 +624,11 @@ export namespace CustomHostnameCreateResponse { | 'backup_issued' | 'holding_deployment'; - type?: unknown; + /** + * Level of validation to be used for this hostname. Domain validation (dv) must be + * used. + */ + type?: CustomHostnamesAPI.DomainValidationType; /** * The time the custom certificate was uploaded. @@ -494,7 +839,13 @@ export namespace CustomHostnameListResponse { */ id?: string; - bundle_method?: unknown; + /** + * A ubiquitous bundle has the highest probability of being verified everywhere, + * even by clients using outdated or unusual trust stores. An optimal bundle uses + * the shortest chain and newest intermediates. And the force bundle verifies the + * chain, but does not otherwise modify it. + */ + bundle_method?: CustomHostnamesAPI.BundleMethod; /** * The Certificate Authority that will issue the certificate @@ -531,7 +882,10 @@ export namespace CustomHostnameListResponse { */ issuer?: string; - method?: unknown; + /** + * Domain control validation (DCV) method used for this hostname. + */ + method?: CustomHostnamesAPI.DCVMethod; /** * The serial number on a custom uploaded certificate. @@ -571,7 +925,11 @@ export namespace CustomHostnameListResponse { | 'backup_issued' | 'holding_deployment'; - type?: unknown; + /** + * Level of validation to be used for this hostname. Domain validation (dv) must be + * used. + */ + type?: CustomHostnamesAPI.DomainValidationType; /** * The time the custom certificate was uploaded. @@ -789,7 +1147,13 @@ export namespace CustomHostnameEditResponse { */ id?: string; - bundle_method?: unknown; + /** + * A ubiquitous bundle has the highest probability of being verified everywhere, + * even by clients using outdated or unusual trust stores. An optimal bundle uses + * the shortest chain and newest intermediates. And the force bundle verifies the + * chain, but does not otherwise modify it. + */ + bundle_method?: CustomHostnamesAPI.BundleMethod; /** * The Certificate Authority that will issue the certificate @@ -826,7 +1190,10 @@ export namespace CustomHostnameEditResponse { */ issuer?: string; - method?: unknown; + /** + * Domain control validation (DCV) method used for this hostname. + */ + method?: CustomHostnamesAPI.DCVMethod; /** * The serial number on a custom uploaded certificate. @@ -866,7 +1233,11 @@ export namespace CustomHostnameEditResponse { | 'backup_issued' | 'holding_deployment'; - type?: unknown; + /** + * Level of validation to be used for this hostname. Domain validation (dv) must be + * used. + */ + type?: CustomHostnamesAPI.DomainValidationType; /** * The time the custom certificate was uploaded. @@ -1077,7 +1448,13 @@ export namespace CustomHostnameGetResponse { */ id?: string; - bundle_method?: unknown; + /** + * A ubiquitous bundle has the highest probability of being verified everywhere, + * even by clients using outdated or unusual trust stores. An optimal bundle uses + * the shortest chain and newest intermediates. And the force bundle verifies the + * chain, but does not otherwise modify it. + */ + bundle_method?: CustomHostnamesAPI.BundleMethod; /** * The Certificate Authority that will issue the certificate @@ -1114,7 +1491,10 @@ export namespace CustomHostnameGetResponse { */ issuer?: string; - method?: unknown; + /** + * Domain control validation (DCV) method used for this hostname. + */ + method?: CustomHostnamesAPI.DCVMethod; /** * The serial number on a custom uploaded certificate. @@ -1154,7 +1534,11 @@ export namespace CustomHostnameGetResponse { | 'backup_issued' | 'holding_deployment'; - type?: unknown; + /** + * Level of validation to be used for this hostname. Domain validation (dv) must be + * used. + */ + type?: CustomHostnamesAPI.DomainValidationType; /** * The time the custom certificate was uploaded. @@ -1309,7 +1693,13 @@ export namespace CustomHostnameCreateParams { * SSL properties used when creating the custom hostname. */ export interface SSL { - bundle_method?: unknown; + /** + * A ubiquitous bundle has the highest probability of being verified everywhere, + * even by clients using outdated or unusual trust stores. An optimal bundle uses + * the shortest chain and newest intermediates. And the force bundle verifies the + * chain, but does not otherwise modify it. + */ + bundle_method?: CustomHostnamesAPI.BundleMethodParam; /** * The Certificate Authority that will issue the certificate @@ -1337,14 +1727,21 @@ export namespace CustomHostnameCreateParams { */ custom_key?: string; - method?: unknown; + /** + * Domain control validation (DCV) method used for this hostname. + */ + method?: CustomHostnamesAPI.DCVMethodParam; /** * SSL specific settings. */ settings?: SSL.Settings; - type?: unknown; + /** + * Level of validation to be used for this hostname. Domain validation (dv) must be + * used. + */ + type?: CustomHostnamesAPI.DomainValidationTypeParam; /** * Indicates whether the certificate covers a wildcard. @@ -1478,7 +1875,13 @@ export namespace CustomHostnameEditParams { * SSL properties used when creating the custom hostname. */ export interface SSL { - bundle_method?: unknown; + /** + * A ubiquitous bundle has the highest probability of being verified everywhere, + * even by clients using outdated or unusual trust stores. An optimal bundle uses + * the shortest chain and newest intermediates. And the force bundle verifies the + * chain, but does not otherwise modify it. + */ + bundle_method?: CustomHostnamesAPI.BundleMethodParam; /** * The Certificate Authority that will issue the certificate @@ -1506,14 +1909,21 @@ export namespace CustomHostnameEditParams { */ custom_key?: string; - method?: unknown; + /** + * Domain control validation (DCV) method used for this hostname. + */ + method?: CustomHostnamesAPI.DCVMethodParam; /** * SSL specific settings. */ settings?: SSL.Settings; - type?: unknown; + /** + * Level of validation to be used for this hostname. Domain validation (dv) must be + * used. + */ + type?: CustomHostnamesAPI.DomainValidationTypeParam; /** * Indicates whether the certificate covers a wildcard. diff --git a/src/resources/dns/analytics/reports/bytimes.ts b/src/resources/dns/analytics/reports/bytimes.ts index e1ec5f2d35..f3e3b81c48 100644 --- a/src/resources/dns/analytics/reports/bytimes.ts +++ b/src/resources/dns/analytics/reports/bytimes.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../../resource'; import * as Core from '../../../../core'; +import * as DNSAPI from '../../dns'; export class Bytimes extends APIResource { /** @@ -46,7 +47,7 @@ export interface ByTime { */ min: unknown; - query: unknown; + query: DNSAPI.DNSAnalyticsQuery; /** * Total number of rows in the result. @@ -78,7 +79,7 @@ export namespace ByTime { * Array with one item per requested metric. Each item is an array of values, * broken down by time interval. */ - metrics: Array; + metrics: Array; } } diff --git a/src/resources/dns/analytics/reports/reports.ts b/src/resources/dns/analytics/reports/reports.ts index 61fd31fdd6..5e497635d4 100644 --- a/src/resources/dns/analytics/reports/reports.ts +++ b/src/resources/dns/analytics/reports/reports.ts @@ -29,7 +29,7 @@ export interface Report { /** * Array with one row per combination of dimension values. */ - data: Array; + data: Array; /** * Number of seconds between current time and last processed event, in another @@ -64,6 +64,19 @@ export interface Report { } export namespace Report { + export interface Data { + /** + * Array of dimension values, representing the combination of dimension values + * corresponding to this row. + */ + dimensions: Array; + + /** + * Array with one item per requested metric. Each item is a single value. + */ + metrics: Array; + } + export interface Query { /** * Array of dimension names. diff --git a/src/resources/dns/dns.ts b/src/resources/dns/dns.ts index 54da9c0b55..49d6d2b48e 100644 --- a/src/resources/dns/dns.ts +++ b/src/resources/dns/dns.ts @@ -71,9 +71,63 @@ export class DNS extends APIResource { zoneTransfers: ZoneTransfersAPI.ZoneTransfers = new ZoneTransfersAPI.ZoneTransfers(this._client); } -export type DNSAnalyticsNominalMetric = unknown; +/** + * Nominal metric values, broken down by time interval. + */ +export type DNSAnalyticsNominalMetric = Array; -export type DNSAnalyticsQuery = unknown; +export interface DNSAnalyticsQuery { + /** + * Array of dimension names. + */ + dimensions: Array; + + /** + * Limit number of returned metrics. + */ + limit: number; + + /** + * Array of metric names. + */ + metrics: Array; + + /** + * Start date and time of requesting data period in ISO 8601 format. + */ + since: string; + + /** + * Unit of time to group data by. + */ + time_delta: + | 'all' + | 'auto' + | 'year' + | 'quarter' + | 'month' + | 'week' + | 'day' + | 'hour' + | 'dekaminute' + | 'minute'; + + /** + * End date and time of requesting data period in ISO 8601 format. + */ + until: string; + + /** + * Segmentation filter in 'attribute operator value' format. + */ + filters?: string; + + /** + * Array of dimensions to sort by, where each dimension may be prefixed by - + * (descending) or + (ascending). + */ + sort?: Array; +} DNS.DNSSECResource = DNSSECResource; DNS.Records = Records; diff --git a/src/resources/dns/zone-transfers/incoming.ts b/src/resources/dns/zone-transfers/incoming.ts index a9ee5a59db..505b692b2a 100644 --- a/src/resources/dns/zone-transfers/incoming.ts +++ b/src/resources/dns/zone-transfers/incoming.ts @@ -62,7 +62,45 @@ export class IncomingResource extends APIResource { } } -export type Incoming = unknown; +export interface Incoming { + id?: string; + + /** + * How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not + * applicable for primary zones. + */ + auto_refresh_seconds?: number; + + /** + * The time for a specific event. + */ + checked_time?: string; + + /** + * The time for a specific event. + */ + created_time?: string; + + /** + * The time for a specific event. + */ + modified_time?: string; + + /** + * Zone name. + */ + name?: string; + + /** + * A list of peer tags. + */ + peers?: Array; + + /** + * The serial number of the SOA for the given zone. + */ + soa_serial?: number; +} export interface IncomingCreateResponse { id?: string; diff --git a/src/resources/dns/zone-transfers/outgoing/outgoing.ts b/src/resources/dns/zone-transfers/outgoing/outgoing.ts index a58719fca7..a7dd05a120 100644 --- a/src/resources/dns/zone-transfers/outgoing/outgoing.ts +++ b/src/resources/dns/zone-transfers/outgoing/outgoing.ts @@ -119,9 +119,44 @@ export type DisableTransfer = string; */ export type EnableTransfer = string; -export type Outgoing = unknown; +export interface Outgoing { + id?: string; + + /** + * The time for a specific event. + */ + checked_time?: string; + + /** + * The time for a specific event. + */ + created_time?: string; -export type OutgoingStatus = unknown; + /** + * The time for a specific event. + */ + last_transferred_time?: string; + + /** + * Zone name. + */ + name?: string; + + /** + * A list of peer tags. + */ + peers?: Array; + + /** + * The serial number of the SOA for the given zone. + */ + soa_serial?: number; +} + +/** + * The zone transfer status of a primary zone + */ +export type OutgoingStatus = string | null; export interface OutgoingCreateResponse { id?: string; diff --git a/src/resources/email-routing/dns.ts b/src/resources/email-routing/dns.ts index 82f7dcf489..1a1035d4cd 100644 --- a/src/resources/email-routing/dns.ts +++ b/src/resources/email-routing/dns.ts @@ -3,6 +3,7 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; import * as DNSAPI from './dns'; +import * as Shared from '../shared'; import * as EmailRoutingAPI from './email-routing'; import { SinglePage } from '../../pagination'; @@ -113,9 +114,9 @@ export type DNSGetResponse = export namespace DNSGetResponse { export interface EmailEmailRoutingDNSQueryResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful @@ -169,9 +170,9 @@ export namespace DNSGetResponse { } export interface EmailDNSSettingsResponseCollection { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/firewall/waf/packages/packages.ts b/src/resources/firewall/waf/packages/packages.ts index 0c1d2381ab..bab75abe14 100644 --- a/src/resources/firewall/waf/packages/packages.ts +++ b/src/resources/firewall/waf/packages/packages.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../../resource'; import * as Core from '../../../../core'; +import * as Shared from '../../../shared'; import * as GroupsAPI from './groups'; import { Group, @@ -74,9 +75,9 @@ export type PackageGetResponse = PackageGetResponse.FirewallAPIResponseSingle | export namespace PackageGetResponse { export interface FirewallAPIResponseSingle { - errors: Array; + errors: Array; - messages: Array; + messages: Array; result: unknown | string | null; diff --git a/src/resources/firewall/waf/packages/rules.ts b/src/resources/firewall/waf/packages/rules.ts index 8b1d1385e6..4884478794 100644 --- a/src/resources/firewall/waf/packages/rules.ts +++ b/src/resources/firewall/waf/packages/rules.ts @@ -76,7 +76,20 @@ export class RuleListResponsesV4PagePaginationArray extends V4PagePaginationArra */ export type AllowedModesAnomaly = 'on' | 'off'; -export type WAFRuleGroup = unknown; +/** + * The rule group to which the current WAF rule belongs. + */ +export interface WAFRuleGroup { + /** + * The unique identifier of the rule group. + */ + id?: string; + + /** + * The name of the rule group. + */ + name?: string; +} /** * When triggered, anomaly detection WAF rules contribute to an overall threat @@ -113,7 +126,10 @@ export namespace RuleListResponse { */ description: string; - group: unknown; + /** + * The rule group to which the current WAF rule belongs. + */ + group: RulesAPI.WAFRuleGroup; /** * When set to `on`, the current WAF rule will be used when evaluating the request. @@ -159,7 +175,10 @@ export namespace RuleListResponse { */ description: string; - group: unknown; + /** + * The rule group to which the current WAF rule belongs. + */ + group: RulesAPI.WAFRuleGroup; /** * The action that the current WAF rule will perform when triggered. Applies to @@ -199,7 +218,10 @@ export namespace RuleListResponse { */ description: string; - group: unknown; + /** + * The rule group to which the current WAF rule belongs. + */ + group: RulesAPI.WAFRuleGroup; /** * When set to `on`, the current rule will be used when evaluating the request. @@ -254,7 +276,10 @@ export namespace RuleEditResponse { */ description: string; - group: unknown; + /** + * The rule group to which the current WAF rule belongs. + */ + group: RulesAPI.WAFRuleGroup; /** * When set to `on`, the current WAF rule will be used when evaluating the request. @@ -300,7 +325,10 @@ export namespace RuleEditResponse { */ description: string; - group: unknown; + /** + * The rule group to which the current WAF rule belongs. + */ + group: RulesAPI.WAFRuleGroup; /** * The action that the current WAF rule will perform when triggered. Applies to @@ -340,7 +368,10 @@ export namespace RuleEditResponse { */ description: string; - group: unknown; + /** + * The rule group to which the current WAF rule belongs. + */ + group: RulesAPI.WAFRuleGroup; /** * When set to `on`, the current rule will be used when evaluating the request. diff --git a/src/resources/intel/attack-surface-report/issues.ts b/src/resources/intel/attack-surface-report/issues.ts index 24d54aeff1..5e8e241f83 100644 --- a/src/resources/intel/attack-surface-report/issues.ts +++ b/src/resources/intel/attack-surface-report/issues.ts @@ -3,6 +3,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; import * as IssuesAPI from './issues'; +import * as Shared from '../../shared'; import { V4PagePagination, type V4PagePaginationParams } from '../../../pagination'; export class Issues extends APIResource { @@ -155,9 +156,9 @@ export namespace IssueClassResponse { } export interface IssueDismissResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/intel/miscategorizations.ts b/src/resources/intel/miscategorizations.ts index dbb1162a1e..077bfb7a0e 100644 --- a/src/resources/intel/miscategorizations.ts +++ b/src/resources/intel/miscategorizations.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; +import * as Shared from '../shared'; export class Miscategorizations extends APIResource { /** @@ -17,9 +18,9 @@ export class Miscategorizations extends APIResource { } export interface MiscategorizationCreateResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/keyless-certificates.ts b/src/resources/keyless-certificates.ts index b2bf44e737..a1119b187e 100644 --- a/src/resources/keyless-certificates.ts +++ b/src/resources/keyless-certificates.ts @@ -2,6 +2,7 @@ import { APIResource } from '../resource'; import * as Core from '../core'; +import * as CustomHostnamesAPI from './custom-hostnames/custom-hostnames'; import { SinglePage } from '../pagination'; export class KeylessCertificates extends APIResource { @@ -204,9 +205,12 @@ export interface KeylessCertificateCreateParams { port: number; /** - * Body param: + * Body param: A ubiquitous bundle has the highest probability of being verified + * everywhere, even by clients using outdated or unusual trust stores. An optimal + * bundle uses the shortest chain and newest intermediates. And the force bundle + * verifies the chain, but does not otherwise modify it. */ - bundle_method?: unknown; + bundle_method?: CustomHostnamesAPI.BundleMethodParam; /** * Body param: The keyless SSL name. diff --git a/src/resources/logpush/index.ts b/src/resources/logpush/index.ts index dcab52888d..fcf0b290ad 100644 --- a/src/resources/logpush/index.ts +++ b/src/resources/logpush/index.ts @@ -25,7 +25,6 @@ export { Ownership, type OwnershipValidation, type OwnershipCreateResponse, - type OwnershipValidateResponse, type OwnershipCreateParams, type OwnershipValidateParams, } from './ownership'; diff --git a/src/resources/logpush/logpush.ts b/src/resources/logpush/logpush.ts index 4d9415e76f..5efcc2ea37 100644 --- a/src/resources/logpush/logpush.ts +++ b/src/resources/logpush/logpush.ts @@ -28,7 +28,6 @@ import { OwnershipCreateParams, OwnershipCreateResponse, OwnershipValidateParams, - OwnershipValidateResponse, OwnershipValidation, } from './ownership'; import * as ValidateAPI from './validate'; @@ -88,7 +87,6 @@ export declare namespace Logpush { Ownership as Ownership, type OwnershipValidation as OwnershipValidation, type OwnershipCreateResponse as OwnershipCreateResponse, - type OwnershipValidateResponse as OwnershipValidateResponse, type OwnershipCreateParams as OwnershipCreateParams, type OwnershipValidateParams as OwnershipValidateParams, }; diff --git a/src/resources/logpush/ownership.ts b/src/resources/logpush/ownership.ts index e180815cd4..27c99aa9c8 100644 --- a/src/resources/logpush/ownership.ts +++ b/src/resources/logpush/ownership.ts @@ -43,7 +43,7 @@ export class Ownership extends APIResource { validate( params: OwnershipValidateParams, 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.'); @@ -65,12 +65,14 @@ export class Ownership extends APIResource { this._client.post(`/${accountOrZone}/${accountOrZoneId}/logpush/ownership/validate`, { body, ...options, - }) as Core.APIPromise<{ result: OwnershipValidateResponse }> + }) as Core.APIPromise<{ result: OwnershipValidation | null }> )._thenUnwrap((obj) => obj.result); } } -export type OwnershipValidation = unknown; +export interface OwnershipValidation { + valid?: boolean; +} export interface OwnershipCreateResponse { filename?: string; @@ -80,8 +82,6 @@ export interface OwnershipCreateResponse { valid?: boolean; } -export type OwnershipValidateResponse = unknown; - export interface OwnershipCreateParams { /** * Body param: Uniquely identifies a resource (such as an s3 bucket) where data @@ -133,7 +133,6 @@ export declare namespace Ownership { export { type OwnershipValidation as OwnershipValidation, type OwnershipCreateResponse as OwnershipCreateResponse, - type OwnershipValidateResponse as OwnershipValidateResponse, type OwnershipCreateParams as OwnershipCreateParams, type OwnershipValidateParams as OwnershipValidateParams, }; diff --git a/src/resources/magic-transit/gre-tunnels.ts b/src/resources/magic-transit/gre-tunnels.ts index fd59e1ccf1..119ec7c7d9 100644 --- a/src/resources/magic-transit/gre-tunnels.ts +++ b/src/resources/magic-transit/gre-tunnels.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; +import * as MagicTransitAPI from './magic-transit'; export class GRETunnels extends APIResource { /** @@ -216,7 +217,10 @@ export namespace GRETunnelCreateResponse { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRate; /** * The destination address in a request type health check. After the healthcheck is @@ -229,7 +233,10 @@ export namespace GRETunnelCreateResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckType; } export namespace HealthCheck { @@ -338,7 +345,10 @@ export namespace GRETunnelUpdateResponse { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRate; /** * The destination address in a request type health check. After the healthcheck is @@ -351,7 +361,10 @@ export namespace GRETunnelUpdateResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckType; } export namespace HealthCheck { @@ -458,7 +471,10 @@ export namespace GRETunnelListResponse { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRate; /** * The destination address in a request type health check. After the healthcheck is @@ -471,7 +487,10 @@ export namespace GRETunnelListResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckType; } export namespace HealthCheck { @@ -580,7 +599,10 @@ export namespace GRETunnelDeleteResponse { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRate; /** * The destination address in a request type health check. After the healthcheck is @@ -593,7 +615,10 @@ export namespace GRETunnelDeleteResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckType; } export namespace HealthCheck { @@ -702,7 +727,10 @@ export namespace GRETunnelBulkUpdateResponse { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRate; /** * The destination address in a request type health check. After the healthcheck is @@ -715,7 +743,10 @@ export namespace GRETunnelBulkUpdateResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckType; } export namespace HealthCheck { @@ -822,7 +853,10 @@ export namespace GRETunnelGetResponse { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRate; /** * The destination address in a request type health check. After the healthcheck is @@ -835,7 +869,10 @@ export namespace GRETunnelGetResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckType; } export namespace HealthCheck { @@ -955,7 +992,10 @@ export namespace GRETunnelUpdateParams { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRateParam; /** * The destination address in a request type health check. After the healthcheck is @@ -968,7 +1008,10 @@ export namespace GRETunnelUpdateParams { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckTypeParam; } export namespace HealthCheck { diff --git a/src/resources/magic-transit/ipsec-tunnels.ts b/src/resources/magic-transit/ipsec-tunnels.ts index f7783db477..132570f9bb 100644 --- a/src/resources/magic-transit/ipsec-tunnels.ts +++ b/src/resources/magic-transit/ipsec-tunnels.ts @@ -3,6 +3,7 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; import * as IPSECTunnelsAPI from './ipsec-tunnels'; +import * as MagicTransitAPI from './magic-transit'; export class IPSECTunnels extends APIResource { /** @@ -261,7 +262,10 @@ export namespace IPSECTunnelCreateResponse { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRate; /** * The destination address in a request type health check. After the healthcheck is @@ -274,7 +278,10 @@ export namespace IPSECTunnelCreateResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckType; } export namespace HealthCheck { @@ -389,7 +396,10 @@ export namespace IPSECTunnelUpdateResponse { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRate; /** * The destination address in a request type health check. After the healthcheck is @@ -402,7 +412,10 @@ export namespace IPSECTunnelUpdateResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckType; } export namespace HealthCheck { @@ -515,7 +528,10 @@ export namespace IPSECTunnelListResponse { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRate; /** * The destination address in a request type health check. After the healthcheck is @@ -528,7 +544,10 @@ export namespace IPSECTunnelListResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckType; } export namespace HealthCheck { @@ -643,7 +662,10 @@ export namespace IPSECTunnelDeleteResponse { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRate; /** * The destination address in a request type health check. After the healthcheck is @@ -656,7 +678,10 @@ export namespace IPSECTunnelDeleteResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckType; } export namespace HealthCheck { @@ -771,7 +796,10 @@ export namespace IPSECTunnelBulkUpdateResponse { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRate; /** * The destination address in a request type health check. After the healthcheck is @@ -784,7 +812,10 @@ export namespace IPSECTunnelBulkUpdateResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckType; } export namespace HealthCheck { @@ -897,7 +928,10 @@ export namespace IPSECTunnelGetResponse { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRate; /** * The destination address in a request type health check. After the healthcheck is @@ -910,7 +944,10 @@ export namespace IPSECTunnelGetResponse { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckType; } export namespace HealthCheck { @@ -1029,7 +1066,10 @@ export namespace IPSECTunnelCreateParams { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRateParam; /** * The destination address in a request type health check. After the healthcheck is @@ -1042,7 +1082,10 @@ export namespace IPSECTunnelCreateParams { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckTypeParam; } export namespace HealthCheck { @@ -1136,7 +1179,10 @@ export namespace IPSECTunnelUpdateParams { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: MagicTransitAPI.HealthCheckRateParam; /** * The destination address in a request type health check. After the healthcheck is @@ -1149,7 +1195,10 @@ export namespace IPSECTunnelUpdateParams { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: MagicTransitAPI.HealthCheckTypeParam; } export namespace HealthCheck { diff --git a/src/resources/magic-transit/magic-transit.ts b/src/resources/magic-transit/magic-transit.ts index 536800f50e..5f89eab449 100644 --- a/src/resources/magic-transit/magic-transit.ts +++ b/src/resources/magic-transit/magic-transit.ts @@ -137,7 +137,10 @@ export interface HealthCheck { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: HealthCheckRate; /** * The destination address in a request type health check. After the healthcheck is @@ -150,7 +153,10 @@ export interface HealthCheck { */ target?: HealthCheck.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: HealthCheckType; } export namespace HealthCheck { @@ -183,7 +189,10 @@ export interface HealthCheckParam { */ enabled?: boolean; - rate?: unknown; + /** + * How frequent the health check is run. The default value is `mid`. + */ + rate?: HealthCheckRateParam; /** * The destination address in a request type health check. After the healthcheck is @@ -196,7 +205,10 @@ export interface HealthCheckParam { */ target?: HealthCheckParam.MagicHealthCheckTarget | string; - type?: unknown; + /** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ + type?: HealthCheckTypeParam; } export namespace HealthCheckParam { @@ -216,9 +228,25 @@ export namespace HealthCheckParam { } } -export type HealthCheckRate = unknown; +/** + * How frequent the health check is run. The default value is `mid`. + */ +export type HealthCheckRate = 'low' | 'mid' | 'high'; + +/** + * How frequent the health check is run. The default value is `mid`. + */ +export type HealthCheckRateParam = 'low' | 'mid' | 'high'; + +/** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ +export type HealthCheckType = 'reply' | 'request'; -export type HealthCheckType = unknown; +/** + * The type of healthcheck to run, reply or request. The default value is `reply`. + */ +export type HealthCheckTypeParam = 'reply' | 'request'; MagicTransit.Apps = Apps; MagicTransit.AppListResponsesSinglePage = AppListResponsesSinglePage; diff --git a/src/resources/magic-transit/sites/acls.ts b/src/resources/magic-transit/sites/acls.ts index f838df9c0d..c79a505b86 100644 --- a/src/resources/magic-transit/sites/acls.ts +++ b/src/resources/magic-transit/sites/acls.ts @@ -140,7 +140,7 @@ export interface ACL { */ name?: string; - protocols?: Array; + protocols?: Array; /** * The desired traffic direction for this ACL policy. If set to "false", the policy @@ -212,7 +212,17 @@ export interface ACLConfigurationParam { subnets?: Array; } -export type AllowedProtocol = unknown; +/** + * Array of allowed communication protocols between configured LANs. If no + * protocols are provided, all protocols are allowed. + */ +export type AllowedProtocol = 'tcp' | 'udp' | 'icmp'; + +/** + * Array of allowed communication protocols between configured LANs. If no + * protocols are provided, all protocols are allowed. + */ +export type AllowedProtocolParam = 'tcp' | 'udp' | 'icmp'; /** * A valid IPv4 address. @@ -261,7 +271,7 @@ export interface ACLCreateParams { /** * Body param: */ - protocols?: Array; + protocols?: Array; /** * Body param: The desired traffic direction for this ACL policy. If set to @@ -309,7 +319,7 @@ export interface ACLUpdateParams { /** * Body param: */ - protocols?: Array; + protocols?: Array; /** * Body param: The desired traffic direction for this ACL policy. If set to @@ -371,7 +381,7 @@ export interface ACLEditParams { /** * Body param: */ - protocols?: Array; + protocols?: Array; /** * Body param: The desired traffic direction for this ACL policy. If set to diff --git a/src/resources/origin-post-quantum-encryption.ts b/src/resources/origin-post-quantum-encryption.ts index 3f78a80c57..be4d295897 100644 --- a/src/resources/origin-post-quantum-encryption.ts +++ b/src/resources/origin-post-quantum-encryption.ts @@ -46,9 +46,49 @@ export class OriginPostQuantumEncryption extends APIResource { } } -export type OriginPostQuantumEncryptionUpdateResponse = unknown; +export interface OriginPostQuantumEncryptionUpdateResponse { + /** + * Value of the zone setting. + */ + id: 'origin_pqe'; + + /** + * Whether the setting is editable + */ + editable: boolean; + + /** + * The value of the feature + */ + value: 'preferred' | 'supported' | 'off'; + + /** + * Last time this setting was modified. + */ + modified_on?: string | null; +} -export type OriginPostQuantumEncryptionGetResponse = unknown; +export interface OriginPostQuantumEncryptionGetResponse { + /** + * Value of the zone setting. + */ + id: 'origin_pqe'; + + /** + * Whether the setting is editable + */ + editable: boolean; + + /** + * The value of the feature + */ + value: 'preferred' | 'supported' | 'off'; + + /** + * Last time this setting was modified. + */ + modified_on?: string | null; +} export interface OriginPostQuantumEncryptionUpdateParams { /** diff --git a/src/resources/origin-tls-client-auth/hostnames/certificates.ts b/src/resources/origin-tls-client-auth/hostnames/certificates.ts index 2d9f941e96..64f8e3d28b 100644 --- a/src/resources/origin-tls-client-auth/hostnames/certificates.ts +++ b/src/resources/origin-tls-client-auth/hostnames/certificates.ts @@ -75,7 +75,54 @@ export class Certificates extends APIResource { export class CertificateListResponsesSinglePage extends SinglePage {} -export type Certificate = unknown; +export interface Certificate { + /** + * Identifier + */ + id?: string; + + /** + * The hostname certificate. + */ + certificate?: string; + + /** + * The date when the certificate expires. + */ + expires_on?: string; + + /** + * The certificate authority that issued the certificate. + */ + issuer?: string; + + /** + * The serial number on the uploaded certificate. + */ + serial_number?: string; + + /** + * The type of hash used for the certificate. + */ + signature?: string; + + /** + * Status of the certificate or the association. + */ + status?: + | 'initializing' + | 'pending_deployment' + | 'pending_deletion' + | 'active' + | 'deleted' + | 'deployment_timed_out' + | 'deletion_timed_out'; + + /** + * The time when the certificate was uploaded. + */ + uploaded_on?: string; +} export interface CertificateCreateResponse { /** diff --git a/src/resources/queues/consumers.ts b/src/resources/queues/consumers.ts index 645c762a96..7fe0776d57 100644 --- a/src/resources/queues/consumers.ts +++ b/src/resources/queues/consumers.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; +import * as Shared from '../shared'; import { SinglePage } from '../../pagination'; export class Consumers extends APIResource { @@ -176,7 +177,7 @@ export namespace Consumer { } export interface ConsumerDeleteResponse { - errors?: Array; + errors?: Array; messages?: Array; diff --git a/src/resources/queues/queues.ts b/src/resources/queues/queues.ts index 461b127523..851d66a154 100644 --- a/src/resources/queues/queues.ts +++ b/src/resources/queues/queues.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; +import * as Shared from '../shared'; import * as ConsumersAPI from './consumers'; import { Consumer, @@ -157,7 +158,7 @@ export namespace Queue { } export interface QueueDeleteResponse { - errors?: Array; + errors?: Array; messages?: Array; diff --git a/src/resources/r2/buckets/sippy.ts b/src/resources/r2/buckets/sippy.ts index 1cabc3854d..7743b687a2 100644 --- a/src/resources/r2/buckets/sippy.ts +++ b/src/resources/r2/buckets/sippy.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as SippyAPI from './sippy'; export class SippyResource extends APIResource { /** @@ -68,7 +69,9 @@ export class SippyResource extends APIResource { } } -export type Provider = unknown; +export type Provider = 'r2'; + +export type ProviderParam = 'r2'; export interface Sippy { /** @@ -104,7 +107,7 @@ export namespace Sippy { */ bucket?: string; - provider?: unknown; + provider?: SippyAPI.Provider; } /** @@ -169,7 +172,7 @@ export declare namespace SippyUpdateParams { */ accessKeyId?: string; - provider?: unknown; + provider?: SippyAPI.ProviderParam; /** * Value of a Cloudflare API token. This is the value labelled "Secret Access Key" @@ -247,7 +250,7 @@ export declare namespace SippyUpdateParams { */ accessKeyId?: string; - provider?: unknown; + provider?: SippyAPI.ProviderParam; /** * Value of a Cloudflare API token. This is the value labelled "Secret Access Key" diff --git a/src/resources/radar/ai/bots/summary.ts b/src/resources/radar/ai/bots/summary.ts index dfa3a318f9..3985e18fa2 100644 --- a/src/resources/radar/ai/bots/summary.ts +++ b/src/resources/radar/ai/bots/summary.ts @@ -36,7 +36,7 @@ export interface SummaryUserAgentResponse { export namespace SummaryUserAgentResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -46,11 +46,41 @@ export namespace SummaryUserAgentResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } diff --git a/src/resources/radar/ai/inference/summary.ts b/src/resources/radar/ai/inference/summary.ts index b04b122739..97bdff017a 100644 --- a/src/resources/radar/ai/inference/summary.ts +++ b/src/resources/radar/ai/inference/summary.ts @@ -52,7 +52,7 @@ export interface SummaryModelResponse { export namespace SummaryModelResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -62,11 +62,41 @@ export namespace SummaryModelResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } @@ -78,7 +108,7 @@ export interface SummaryTaskResponse { export namespace SummaryTaskResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -88,11 +118,41 @@ export namespace SummaryTaskResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } diff --git a/src/resources/radar/ai/inference/timeseries-groups/summary.ts b/src/resources/radar/ai/inference/timeseries-groups/summary.ts index c4d5246cdf..1466605675 100644 --- a/src/resources/radar/ai/inference/timeseries-groups/summary.ts +++ b/src/resources/radar/ai/inference/timeseries-groups/summary.ts @@ -49,13 +49,27 @@ export class Summary extends APIResource { export interface SummaryModelResponse { meta: unknown; - serie_0: unknown; + serie_0: SummaryModelResponse.Serie0; +} + +export namespace SummaryModelResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface SummaryTaskResponse { meta: unknown; - serie_0: unknown; + serie_0: SummaryTaskResponse.Serie0; +} + +export namespace SummaryTaskResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface SummaryModelParams { diff --git a/src/resources/radar/ai/timeseries-groups.ts b/src/resources/radar/ai/timeseries-groups.ts index 6a2ed63bde..14e61aeeae 100644 --- a/src/resources/radar/ai/timeseries-groups.ts +++ b/src/resources/radar/ai/timeseries-groups.ts @@ -32,7 +32,14 @@ export class TimeseriesGroups extends APIResource { export interface TimeseriesGroupUserAgentResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupUserAgentResponse.Serie0; +} + +export namespace TimeseriesGroupUserAgentResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupUserAgentParams { diff --git a/src/resources/radar/annotations/annotations.ts b/src/resources/radar/annotations/annotations.ts index 2412d2467f..60f617d00f 100644 --- a/src/resources/radar/annotations/annotations.ts +++ b/src/resources/radar/annotations/annotations.ts @@ -53,7 +53,7 @@ export namespace AnnotationListResponse { locations: Array; - locationsDetails: Array; + locationsDetails: Array; outage: Annotation.Outage; @@ -74,7 +74,21 @@ export namespace AnnotationListResponse { name: string; - locations?: unknown; + locations?: ASNsDetail.Locations; + } + + export namespace ASNsDetail { + export interface Locations { + code: string; + + name: string; + } + } + + export interface LocationsDetail { + code: string; + + name: string; } export interface Outage { diff --git a/src/resources/radar/annotations/outages.ts b/src/resources/radar/annotations/outages.ts index cde908d77d..f5187c3bff 100644 --- a/src/resources/radar/annotations/outages.ts +++ b/src/resources/radar/annotations/outages.ts @@ -65,7 +65,7 @@ export namespace OutageGetResponse { locations: Array; - locationsDetails: Array; + locationsDetails: Array; outage: Annotation.Outage; @@ -86,7 +86,21 @@ export namespace OutageGetResponse { name: string; - locations?: unknown; + locations?: ASNsDetail.Locations; + } + + export namespace ASNsDetail { + export interface Locations { + code: string; + + name: string; + } + } + + export interface LocationsDetail { + code: string; + + name: string; } export interface Outage { @@ -98,7 +112,17 @@ export namespace OutageGetResponse { } export interface OutageLocationsResponse { - annotations: Array; + annotations: Array; +} + +export namespace OutageLocationsResponse { + export interface Annotation { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; + } } export interface OutageGetParams { diff --git a/src/resources/radar/as112/as112.ts b/src/resources/radar/as112/as112.ts index 892db20c1b..2670cf6ffb 100644 --- a/src/resources/radar/as112/as112.ts +++ b/src/resources/radar/as112/as112.ts @@ -81,14 +81,14 @@ export class AS112 extends APIResource { export interface AS112TimeseriesResponse { meta: AS112TimeseriesResponse.Meta; - serie_0: unknown; + serie_0: AS112TimeseriesResponse.Serie0; } export namespace AS112TimeseriesResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -96,11 +96,47 @@ export namespace AS112TimeseriesResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Serie0 { + timestamps: Array; + + values: Array; } } diff --git a/src/resources/radar/as112/summary.ts b/src/resources/radar/as112/summary.ts index b25541a7f2..734f2a0de6 100644 --- a/src/resources/radar/as112/summary.ts +++ b/src/resources/radar/as112/summary.ts @@ -142,7 +142,7 @@ export interface SummaryDNSSECResponse { export namespace SummaryDNSSECResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -152,11 +152,41 @@ export namespace SummaryDNSSECResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -174,7 +204,7 @@ export interface SummaryEdnsResponse { export namespace SummaryEdnsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -184,11 +214,41 @@ export namespace SummaryEdnsResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -201,12 +261,12 @@ export namespace SummaryEdnsResponse { export interface SummaryIPVersionResponse { meta: SummaryIPVersionResponse.Meta; - summary_0: unknown; + summary_0: SummaryIPVersionResponse.Summary0; } export namespace SummaryIPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -216,11 +276,47 @@ export namespace SummaryIPVersionResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Summary0 { + IPv4: string; + + IPv6: string; } } @@ -232,7 +328,7 @@ export interface SummaryProtocolResponse { export namespace SummaryProtocolResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -242,11 +338,41 @@ export namespace SummaryProtocolResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -268,7 +394,7 @@ export interface SummaryQueryTypeResponse { export namespace SummaryQueryTypeResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -278,11 +404,41 @@ export namespace SummaryQueryTypeResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } @@ -294,7 +450,7 @@ export interface SummaryResponseCodesResponse { export namespace SummaryResponseCodesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -304,11 +460,41 @@ export namespace SummaryResponseCodesResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } diff --git a/src/resources/radar/as112/timeseries-groups.ts b/src/resources/radar/as112/timeseries-groups.ts index daad07eb42..545db9d7ca 100644 --- a/src/resources/radar/as112/timeseries-groups.ts +++ b/src/resources/radar/as112/timeseries-groups.ts @@ -208,13 +208,27 @@ export namespace TimeseriesGroupProtocolResponse { export interface TimeseriesGroupQueryTypeResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupQueryTypeResponse.Serie0; +} + +export namespace TimeseriesGroupQueryTypeResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupResponseCodesResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupResponseCodesResponse.Serie0; +} + +export namespace TimeseriesGroupResponseCodesResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupDNSSECParams { diff --git a/src/resources/radar/as112/top.ts b/src/resources/radar/as112/top.ts index 87276f4cc7..89d0328ad5 100644 --- a/src/resources/radar/as112/top.ts +++ b/src/resources/radar/as112/top.ts @@ -107,12 +107,12 @@ export class Top extends APIResource { export interface TopDNSSECResponse { meta: TopDNSSECResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TopDNSSECResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -120,23 +120,61 @@ export namespace TopDNSSECResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; } } export interface TopEdnsResponse { meta: TopEdnsResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TopEdnsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -144,23 +182,61 @@ export namespace TopEdnsResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; } } export interface TopIPVersionResponse { meta: TopIPVersionResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TopIPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -168,23 +244,61 @@ export namespace TopIPVersionResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; } } export interface TopLocationsResponse { meta: TopLocationsResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TopLocationsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -192,11 +306,49 @@ export namespace TopLocationsResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; } } diff --git a/src/resources/radar/attacks/layer3/layer3.ts b/src/resources/radar/attacks/layer3/layer3.ts index 4885b987af..141cc79f62 100644 --- a/src/resources/radar/attacks/layer3/layer3.ts +++ b/src/resources/radar/attacks/layer3/layer3.ts @@ -83,7 +83,15 @@ export class Layer3 extends APIResource { export interface Layer3TimeseriesResponse { meta: unknown; - serie_0: unknown; + serie_0: Layer3TimeseriesResponse.Serie0; +} + +export namespace Layer3TimeseriesResponse { + export interface Serie0 { + timestamps: Array; + + values: Array; + } } export interface Layer3TimeseriesParams { diff --git a/src/resources/radar/attacks/layer3/summary.ts b/src/resources/radar/attacks/layer3/summary.ts index 3dc87d22bb..b544c32bc9 100644 --- a/src/resources/radar/attacks/layer3/summary.ts +++ b/src/resources/radar/attacks/layer3/summary.ts @@ -165,7 +165,7 @@ export interface SummaryBitrateResponse { export namespace SummaryBitrateResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -175,11 +175,41 @@ export namespace SummaryBitrateResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -203,7 +233,7 @@ export interface SummaryDurationResponse { export namespace SummaryDurationResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -213,11 +243,41 @@ export namespace SummaryDurationResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -243,7 +303,7 @@ export interface SummaryIndustryResponse { export namespace SummaryIndustryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -253,23 +313,53 @@ export namespace SummaryIndustryResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } export interface SummaryIPVersionResponse { meta: SummaryIPVersionResponse.Meta; - summary_0: unknown; + summary_0: SummaryIPVersionResponse.Summary0; } export namespace SummaryIPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -279,11 +369,47 @@ export namespace SummaryIPVersionResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Summary0 { + IPv4: string; + + IPv6: string; } } @@ -295,7 +421,7 @@ export interface SummaryProtocolResponse { export namespace SummaryProtocolResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -305,11 +431,41 @@ export namespace SummaryProtocolResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -331,7 +487,7 @@ export interface SummaryVectorResponse { export namespace SummaryVectorResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -341,11 +497,41 @@ export namespace SummaryVectorResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } @@ -357,7 +543,7 @@ export interface SummaryVerticalResponse { export namespace SummaryVerticalResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -367,11 +553,41 @@ export namespace SummaryVerticalResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } diff --git a/src/resources/radar/attacks/layer3/timeseries-groups.ts b/src/resources/radar/attacks/layer3/timeseries-groups.ts index 04f5e78804..36be5798c0 100644 --- a/src/resources/radar/attacks/layer3/timeseries-groups.ts +++ b/src/resources/radar/attacks/layer3/timeseries-groups.ts @@ -216,13 +216,30 @@ export namespace TimeseriesGroupDurationResponse { export interface TimeseriesGroupIndustryResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupIndustryResponse.Serie0; +} + +export namespace TimeseriesGroupIndustryResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupIPVersionResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupIPVersionResponse.Serie0; +} + +export namespace TimeseriesGroupIPVersionResponse { + export interface Serie0 { + IPv4: Array; + + IPv6: Array; + + timestamps: Array; + } } export interface TimeseriesGroupProtocolResponse { @@ -248,13 +265,27 @@ export namespace TimeseriesGroupProtocolResponse { export interface TimeseriesGroupVectorResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupVectorResponse.Serie0; +} + +export namespace TimeseriesGroupVectorResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupVerticalResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupVerticalResponse.Serie0; +} + +export namespace TimeseriesGroupVerticalResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupBitrateParams { diff --git a/src/resources/radar/attacks/layer3/top/locations.ts b/src/resources/radar/attacks/layer3/top/locations.ts index 343d2f2d54..72a7ee357a 100644 --- a/src/resources/radar/attacks/layer3/top/locations.ts +++ b/src/resources/radar/attacks/layer3/top/locations.ts @@ -60,7 +60,7 @@ export interface LocationOriginResponse { export namespace LocationOriginResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -68,11 +68,41 @@ export namespace LocationOriginResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { @@ -94,7 +124,7 @@ export interface LocationTargetResponse { export namespace LocationTargetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -102,11 +132,41 @@ export namespace LocationTargetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { diff --git a/src/resources/radar/attacks/layer3/top/top.ts b/src/resources/radar/attacks/layer3/top/top.ts index bc7194722a..65828ade92 100644 --- a/src/resources/radar/attacks/layer3/top/top.ts +++ b/src/resources/radar/attacks/layer3/top/top.ts @@ -86,7 +86,7 @@ export interface TopAttacksResponse { export namespace TopAttacksResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -94,11 +94,41 @@ export namespace TopAttacksResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { @@ -118,7 +148,7 @@ export interface TopIndustryResponse { export namespace TopIndustryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -126,11 +156,41 @@ export namespace TopIndustryResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { @@ -148,7 +208,7 @@ export interface TopVerticalResponse { export namespace TopVerticalResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -156,11 +216,41 @@ export namespace TopVerticalResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { diff --git a/src/resources/radar/attacks/layer7/layer7.ts b/src/resources/radar/attacks/layer7/layer7.ts index 1ce0be2f5e..c2d6fafe2e 100644 --- a/src/resources/radar/attacks/layer7/layer7.ts +++ b/src/resources/radar/attacks/layer7/layer7.ts @@ -83,14 +83,14 @@ export class Layer7 extends APIResource { export interface Layer7TimeseriesResponse { meta: Layer7TimeseriesResponse.Meta; - serie_0: unknown; + serie_0: Layer7TimeseriesResponse.Serie0; } export namespace Layer7TimeseriesResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -98,11 +98,47 @@ export namespace Layer7TimeseriesResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Serie0 { + timestamps: Array; + + values: Array; } } diff --git a/src/resources/radar/attacks/layer7/summary.ts b/src/resources/radar/attacks/layer7/summary.ts index 807ea711ad..5d6a8bc150 100644 --- a/src/resources/radar/attacks/layer7/summary.ts +++ b/src/resources/radar/attacks/layer7/summary.ts @@ -172,7 +172,7 @@ export interface SummaryHTTPMethodResponse { export namespace SummaryHTTPMethodResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -182,11 +182,41 @@ export namespace SummaryHTTPMethodResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } @@ -198,7 +228,7 @@ export interface SummaryHTTPVersionResponse { export namespace SummaryHTTPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -208,11 +238,41 @@ export namespace SummaryHTTPVersionResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -232,7 +292,7 @@ export interface SummaryIndustryResponse { export namespace SummaryIndustryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -242,23 +302,53 @@ export namespace SummaryIndustryResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } export interface SummaryIPVersionResponse { meta: SummaryIPVersionResponse.Meta; - summary_0: unknown; + summary_0: SummaryIPVersionResponse.Summary0; } export namespace SummaryIPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -268,11 +358,47 @@ export namespace SummaryIPVersionResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Summary0 { + IPv4: string; + + IPv6: string; } } @@ -284,7 +410,7 @@ export interface SummaryManagedRulesResponse { export namespace SummaryManagedRulesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -294,11 +420,41 @@ export namespace SummaryManagedRulesResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } @@ -310,7 +466,7 @@ export interface SummaryMitigationProductResponse { export namespace SummaryMitigationProductResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -320,11 +476,41 @@ export namespace SummaryMitigationProductResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } @@ -336,7 +522,7 @@ export interface SummaryVerticalResponse { export namespace SummaryVerticalResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -346,11 +532,41 @@ export namespace SummaryVerticalResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } diff --git a/src/resources/radar/attacks/layer7/timeseries-groups.ts b/src/resources/radar/attacks/layer7/timeseries-groups.ts index 816a85a79d..b3a2f7b9e5 100644 --- a/src/resources/radar/attacks/layer7/timeseries-groups.ts +++ b/src/resources/radar/attacks/layer7/timeseries-groups.ts @@ -170,7 +170,14 @@ export class TimeseriesGroups extends APIResource { export interface TimeseriesGroupHTTPMethodResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupHTTPMethodResponse.Serie0; +} + +export namespace TimeseriesGroupHTTPMethodResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupHTTPVersionResponse { @@ -194,31 +201,69 @@ export namespace TimeseriesGroupHTTPVersionResponse { export interface TimeseriesGroupIndustryResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupIndustryResponse.Serie0; +} + +export namespace TimeseriesGroupIndustryResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupIPVersionResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupIPVersionResponse.Serie0; +} + +export namespace TimeseriesGroupIPVersionResponse { + export interface Serie0 { + IPv4: Array; + + IPv6: Array; + + timestamps: Array; + } } export interface TimeseriesGroupManagedRulesResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupManagedRulesResponse.Serie0; +} + +export namespace TimeseriesGroupManagedRulesResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupMitigationProductResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupMitigationProductResponse.Serie0; +} + +export namespace TimeseriesGroupMitigationProductResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupVerticalResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupVerticalResponse.Serie0; +} + +export namespace TimeseriesGroupVerticalResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupHTTPMethodParams { diff --git a/src/resources/radar/attacks/layer7/top/ases.ts b/src/resources/radar/attacks/layer7/top/ases.ts index 02d57660de..9e07e5a432 100644 --- a/src/resources/radar/attacks/layer7/top/ases.ts +++ b/src/resources/radar/attacks/layer7/top/ases.ts @@ -35,7 +35,7 @@ export interface AseOriginResponse { export namespace AseOriginResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -43,11 +43,41 @@ export namespace AseOriginResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { diff --git a/src/resources/radar/attacks/layer7/top/locations.ts b/src/resources/radar/attacks/layer7/top/locations.ts index 1efbe9a67f..cb44b826f8 100644 --- a/src/resources/radar/attacks/layer7/top/locations.ts +++ b/src/resources/radar/attacks/layer7/top/locations.ts @@ -64,7 +64,7 @@ export interface LocationOriginResponse { export namespace LocationOriginResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -72,11 +72,41 @@ export namespace LocationOriginResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { @@ -98,7 +128,7 @@ export interface LocationTargetResponse { export namespace LocationTargetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -106,11 +136,41 @@ export namespace LocationTargetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { diff --git a/src/resources/radar/attacks/layer7/top/top.ts b/src/resources/radar/attacks/layer7/top/top.ts index 301216c7d9..cbc4d22456 100644 --- a/src/resources/radar/attacks/layer7/top/top.ts +++ b/src/resources/radar/attacks/layer7/top/top.ts @@ -90,7 +90,7 @@ export interface TopAttacksResponse { export namespace TopAttacksResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -98,11 +98,41 @@ export namespace TopAttacksResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { @@ -126,7 +156,7 @@ export interface TopIndustryResponse { export namespace TopIndustryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -134,11 +164,41 @@ export namespace TopIndustryResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { @@ -156,7 +216,7 @@ export interface TopVerticalResponse { export namespace TopVerticalResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -164,11 +224,41 @@ export namespace TopVerticalResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { diff --git a/src/resources/radar/bgp/bgp.ts b/src/resources/radar/bgp/bgp.ts index 0821bce90b..e6cc7e4b1d 100644 --- a/src/resources/radar/bgp/bgp.ts +++ b/src/resources/radar/bgp/bgp.ts @@ -60,14 +60,14 @@ export class BGP extends APIResource { export interface BGPTimeseriesResponse { meta: BGPTimeseriesResponse.Meta; - serie_0: unknown; + serie_0: BGPTimeseriesResponse.Serie0; } export namespace BGPTimeseriesResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -75,11 +75,47 @@ export namespace BGPTimeseriesResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Serie0 { + timestamps: Array; + + values: Array; } } diff --git a/src/resources/radar/bgp/routes.ts b/src/resources/radar/bgp/routes.ts index ec46592422..3ba391c4fe 100644 --- a/src/resources/radar/bgp/routes.ts +++ b/src/resources/radar/bgp/routes.ts @@ -180,12 +180,20 @@ export namespace RouteAsesResponse { } export interface RouteMoasResponse { - meta: unknown; + meta: RouteMoasResponse.Meta; moas: Array; } export namespace RouteMoasResponse { + export interface Meta { + data_time: string; + + query_time: string; + + total_peers: number; + } + export interface Moa { origins: Array; @@ -204,12 +212,20 @@ export namespace RouteMoasResponse { } export interface RoutePfx2asResponse { - meta: unknown; + meta: RoutePfx2asResponse.Meta; prefix_origins: Array; } export namespace RoutePfx2asResponse { + export interface Meta { + data_time: string; + + query_time: string; + + total_peers: number; + } + export interface PrefixOrigin { origin: number; @@ -285,12 +301,20 @@ export namespace RouteRealtimeResponse { } export interface RouteStatsResponse { - meta: unknown; + meta: RouteStatsResponse.Meta; stats: RouteStatsResponse.Stats; } export namespace RouteStatsResponse { + export interface Meta { + data_time: string; + + query_time: string; + + total_peers: number; + } + export interface Stats { distinct_origins: number; diff --git a/src/resources/radar/bgp/top/ases.ts b/src/resources/radar/bgp/top/ases.ts index 9a64e604e7..9980470c26 100644 --- a/src/resources/radar/bgp/top/ases.ts +++ b/src/resources/radar/bgp/top/ases.ts @@ -54,7 +54,21 @@ export interface AseGetResponse { export namespace AseGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; + } + + export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } } export interface Top0 { @@ -73,7 +87,7 @@ export namespace AseGetResponse { export interface AsePrefixesResponse { asns: Array; - meta: unknown; + meta: AsePrefixesResponse.Meta; } export namespace AsePrefixesResponse { @@ -86,6 +100,14 @@ export namespace AsePrefixesResponse { pfxs_count: number; } + + export interface Meta { + data_time: string; + + query_time: string; + + total_peers: number; + } } export interface AseGetParams { diff --git a/src/resources/radar/bgp/top/top.ts b/src/resources/radar/bgp/top/top.ts index f9ab91ea48..d59e0972b9 100644 --- a/src/resources/radar/bgp/top/top.ts +++ b/src/resources/radar/bgp/top/top.ts @@ -37,7 +37,21 @@ export interface TopPrefixesResponse { export namespace TopPrefixesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; + } + + export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } } export interface Top0 { diff --git a/src/resources/radar/dns/dns.ts b/src/resources/radar/dns/dns.ts index af575307f3..fd4bafc7c3 100644 --- a/src/resources/radar/dns/dns.ts +++ b/src/resources/radar/dns/dns.ts @@ -87,14 +87,14 @@ export class DNS extends APIResource { export interface DNSTimeseriesResponse { meta: DNSTimeseriesResponse.Meta; - serie_0: unknown; + serie_0: DNSTimeseriesResponse.Serie0; } export namespace DNSTimeseriesResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -102,11 +102,47 @@ export namespace DNSTimeseriesResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Serie0 { + timestamps: Array; + + values: Array; } } diff --git a/src/resources/radar/dns/summary.ts b/src/resources/radar/dns/summary.ts index 37371f4cfc..8922b20586 100644 --- a/src/resources/radar/dns/summary.ts +++ b/src/resources/radar/dns/summary.ts @@ -234,7 +234,7 @@ export interface SummaryCacheHitResponse { export namespace SummaryCacheHitResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -244,11 +244,41 @@ export namespace SummaryCacheHitResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -266,7 +296,7 @@ export interface SummaryDNSSECResponse { export namespace SummaryDNSSECResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -276,11 +306,41 @@ export namespace SummaryDNSSECResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -302,7 +362,7 @@ export interface SummaryDNSSECAwareResponse { export namespace SummaryDNSSECAwareResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -312,11 +372,41 @@ export namespace SummaryDNSSECAwareResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -334,7 +424,7 @@ export interface SummaryDNSSECE2EResponse { export namespace SummaryDNSSECE2EResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -344,11 +434,41 @@ export namespace SummaryDNSSECE2EResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -361,12 +481,12 @@ export namespace SummaryDNSSECE2EResponse { export interface SummaryIPVersionResponse { meta: SummaryIPVersionResponse.Meta; - summary_0: unknown; + summary_0: SummaryIPVersionResponse.Summary0; } export namespace SummaryIPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -376,11 +496,47 @@ export namespace SummaryIPVersionResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Summary0 { + IPv4: string; + + IPv6: string; } } @@ -392,7 +548,7 @@ export interface SummaryMatchingAnswerResponse { export namespace SummaryMatchingAnswerResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -402,11 +558,41 @@ export namespace SummaryMatchingAnswerResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -424,7 +610,7 @@ export interface SummaryProtocolResponse { export namespace SummaryProtocolResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -434,11 +620,41 @@ export namespace SummaryProtocolResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -460,7 +676,7 @@ export interface SummaryQueryTypeResponse { export namespace SummaryQueryTypeResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -470,11 +686,41 @@ export namespace SummaryQueryTypeResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } @@ -486,7 +732,7 @@ export interface SummaryResponseCodeResponse { export namespace SummaryResponseCodeResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -496,11 +742,41 @@ export namespace SummaryResponseCodeResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } @@ -512,7 +788,7 @@ export interface SummaryResponseTTLResponse { export namespace SummaryResponseTTLResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -522,11 +798,41 @@ export namespace SummaryResponseTTLResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { diff --git a/src/resources/radar/dns/timeseries-groups.ts b/src/resources/radar/dns/timeseries-groups.ts index 036a0978ba..1d814c2f04 100644 --- a/src/resources/radar/dns/timeseries-groups.ts +++ b/src/resources/radar/dns/timeseries-groups.ts @@ -342,13 +342,27 @@ export namespace TimeseriesGroupProtocolResponse { export interface TimeseriesGroupQueryTypeResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupQueryTypeResponse.Serie0; +} + +export namespace TimeseriesGroupQueryTypeResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupResponseCodeResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupResponseCodeResponse.Serie0; +} + +export namespace TimeseriesGroupResponseCodeResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupResponseTTLResponse { diff --git a/src/resources/radar/dns/top.ts b/src/resources/radar/dns/top.ts index f852352f46..05c769a6db 100644 --- a/src/resources/radar/dns/top.ts +++ b/src/resources/radar/dns/top.ts @@ -48,44 +48,120 @@ export class Top extends APIResource { export interface TopAsesResponse { meta: TopAsesResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TopAsesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; confidenceInfo?: Meta.ConfidenceInfo; } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientASN: number; + + clientASName: string; + + value: string; } } export interface TopLocationsResponse { meta: TopLocationsResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TopLocationsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; confidenceInfo?: Meta.ConfidenceInfo; } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; } } diff --git a/src/resources/radar/email/email.ts b/src/resources/radar/email/email.ts index 4cc37c1943..d6f3265d42 100644 --- a/src/resources/radar/email/email.ts +++ b/src/resources/radar/email/email.ts @@ -11,9 +11,21 @@ export class Email extends APIResource { security: SecurityAPI.Security = new SecurityAPI.Security(this._client); } -export type RadarEmailSeries = unknown; +export interface RadarEmailSeries { + FAIL: Array; -export type RadarEmailSummary = unknown; + NONE: Array; + + PASS: Array; +} + +export interface RadarEmailSummary { + FAIL: string; + + NONE: string; + + PASS: string; +} Email.Routing = Routing; Email.Security = Security; diff --git a/src/resources/radar/email/routing/summary.ts b/src/resources/radar/email/routing/summary.ts index 4690fcbe45..8e1550d5de 100644 --- a/src/resources/radar/email/routing/summary.ts +++ b/src/resources/radar/email/routing/summary.ts @@ -3,6 +3,7 @@ import { APIResource } from '../../../../resource'; import { isRequestOptions } from '../../../../core'; import * as Core from '../../../../core'; +import * as EmailAPI from '../email'; export class Summary extends APIResource { /** @@ -134,12 +135,12 @@ export class Summary extends APIResource { export interface SummaryARCResponse { meta: SummaryARCResponse.Meta; - summary_0: unknown; + summary_0: EmailAPI.RadarEmailSummary; } export namespace SummaryARCResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -149,23 +150,53 @@ export namespace SummaryARCResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } export interface SummaryDKIMResponse { meta: SummaryDKIMResponse.Meta; - summary_0: unknown; + summary_0: EmailAPI.RadarEmailSummary; } export namespace SummaryDKIMResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -175,23 +206,53 @@ export namespace SummaryDKIMResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } export interface SummaryDMARCResponse { meta: SummaryDMARCResponse.Meta; - summary_0: unknown; + summary_0: EmailAPI.RadarEmailSummary; } export namespace SummaryDMARCResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -201,11 +262,41 @@ export namespace SummaryDMARCResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } @@ -217,7 +308,7 @@ export interface SummaryEncryptedResponse { export namespace SummaryEncryptedResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -227,11 +318,41 @@ export namespace SummaryEncryptedResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -244,12 +365,12 @@ export namespace SummaryEncryptedResponse { export interface SummaryIPVersionResponse { meta: SummaryIPVersionResponse.Meta; - summary_0: unknown; + summary_0: SummaryIPVersionResponse.Summary0; } export namespace SummaryIPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -259,23 +380,59 @@ export namespace SummaryIPVersionResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Summary0 { + IPv4: string; + + IPv6: string; } } export interface SummarySPFResponse { meta: SummarySPFResponse.Meta; - summary_0: unknown; + summary_0: EmailAPI.RadarEmailSummary; } export namespace SummarySPFResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -285,11 +442,41 @@ export namespace SummarySPFResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } diff --git a/src/resources/radar/email/routing/timeseries-groups.ts b/src/resources/radar/email/routing/timeseries-groups.ts index 44a344df22..676d408ae8 100644 --- a/src/resources/radar/email/routing/timeseries-groups.ts +++ b/src/resources/radar/email/routing/timeseries-groups.ts @@ -3,6 +3,7 @@ import { APIResource } from '../../../../resource'; import { isRequestOptions } from '../../../../core'; import * as Core from '../../../../core'; +import * as EmailAPI from '../email'; export class TimeseriesGroups extends APIResource { /** @@ -152,19 +153,19 @@ export class TimeseriesGroups extends APIResource { export interface TimeseriesGroupARCResponse { meta: unknown; - serie_0: unknown; + serie_0: EmailAPI.RadarEmailSeries; } export interface TimeseriesGroupDKIMResponse { meta: unknown; - serie_0: unknown; + serie_0: EmailAPI.RadarEmailSeries; } export interface TimeseriesGroupDMARCResponse { meta: unknown; - serie_0: unknown; + serie_0: EmailAPI.RadarEmailSeries; } export interface TimeseriesGroupEncryptedResponse { @@ -198,7 +199,7 @@ export namespace TimeseriesGroupIPVersionResponse { export interface TimeseriesGroupSPFResponse { meta: unknown; - serie_0: unknown; + serie_0: EmailAPI.RadarEmailSeries; } export interface TimeseriesGroupARCParams { diff --git a/src/resources/radar/email/security/summary.ts b/src/resources/radar/email/security/summary.ts index 57e721c214..195974f8c1 100644 --- a/src/resources/radar/email/security/summary.ts +++ b/src/resources/radar/email/security/summary.ts @@ -3,6 +3,7 @@ import { APIResource } from '../../../../resource'; import { isRequestOptions } from '../../../../core'; import * as Core from '../../../../core'; +import * as EmailAPI from '../email'; export class Summary extends APIResource { /** @@ -196,12 +197,12 @@ export class Summary extends APIResource { export interface SummaryARCResponse { meta: SummaryARCResponse.Meta; - summary_0: unknown; + summary_0: EmailAPI.RadarEmailSummary; } export namespace SummaryARCResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -211,23 +212,53 @@ export namespace SummaryARCResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } export interface SummaryDKIMResponse { meta: SummaryDKIMResponse.Meta; - summary_0: unknown; + summary_0: EmailAPI.RadarEmailSummary; } export namespace SummaryDKIMResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -237,23 +268,53 @@ export namespace SummaryDKIMResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } export interface SummaryDMARCResponse { meta: SummaryDMARCResponse.Meta; - summary_0: unknown; + summary_0: EmailAPI.RadarEmailSummary; } export namespace SummaryDMARCResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -263,11 +324,41 @@ export namespace SummaryDMARCResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } @@ -279,7 +370,7 @@ export interface SummaryMaliciousResponse { export namespace SummaryMaliciousResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -289,11 +380,41 @@ export namespace SummaryMaliciousResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -311,7 +432,7 @@ export interface SummarySpamResponse { export namespace SummarySpamResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -321,11 +442,41 @@ export namespace SummarySpamResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -338,12 +489,12 @@ export namespace SummarySpamResponse { export interface SummarySPFResponse { meta: SummarySPFResponse.Meta; - summary_0: unknown; + summary_0: EmailAPI.RadarEmailSummary; } export namespace SummarySPFResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -353,11 +504,41 @@ export namespace SummarySPFResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } } @@ -369,7 +550,7 @@ export interface SummarySpoofResponse { export namespace SummarySpoofResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -379,11 +560,41 @@ export namespace SummarySpoofResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -401,7 +612,7 @@ export interface SummaryThreatCategoryResponse { export namespace SummaryThreatCategoryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -411,11 +622,41 @@ export namespace SummaryThreatCategoryResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -437,7 +678,7 @@ export interface SummaryTLSVersionResponse { export namespace SummaryTLSVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -447,11 +688,41 @@ export namespace SummaryTLSVersionResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { diff --git a/src/resources/radar/email/security/timeseries-groups.ts b/src/resources/radar/email/security/timeseries-groups.ts index e386878452..ae336fe4a6 100644 --- a/src/resources/radar/email/security/timeseries-groups.ts +++ b/src/resources/radar/email/security/timeseries-groups.ts @@ -3,6 +3,7 @@ import { APIResource } from '../../../../resource'; import { isRequestOptions } from '../../../../core'; import * as Core from '../../../../core'; +import * as EmailAPI from '../email'; export class TimeseriesGroups extends APIResource { /** @@ -222,19 +223,19 @@ export class TimeseriesGroups extends APIResource { export interface TimeseriesGroupARCResponse { meta: unknown; - serie_0: unknown; + serie_0: EmailAPI.RadarEmailSeries; } export interface TimeseriesGroupDKIMResponse { meta: unknown; - serie_0: unknown; + serie_0: EmailAPI.RadarEmailSeries; } export interface TimeseriesGroupDMARCResponse { meta: unknown; - serie_0: unknown; + serie_0: EmailAPI.RadarEmailSeries; } export interface TimeseriesGroupMaliciousResponse { @@ -268,7 +269,7 @@ export namespace TimeseriesGroupSpamResponse { export interface TimeseriesGroupSPFResponse { meta: unknown; - serie_0: unknown; + serie_0: EmailAPI.RadarEmailSeries; } export interface TimeseriesGroupSpoofResponse { diff --git a/src/resources/radar/email/security/top/tlds/malicious.ts b/src/resources/radar/email/security/top/tlds/malicious.ts index fc4f4cbdb2..8d7a14dc74 100644 --- a/src/resources/radar/email/security/top/tlds/malicious.ts +++ b/src/resources/radar/email/security/top/tlds/malicious.ts @@ -42,7 +42,7 @@ export interface MaliciousGetResponse { export namespace MaliciousGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,11 +50,41 @@ export namespace MaliciousGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { diff --git a/src/resources/radar/email/security/top/tlds/spam.ts b/src/resources/radar/email/security/top/tlds/spam.ts index 94103c816a..e011da0b92 100644 --- a/src/resources/radar/email/security/top/tlds/spam.ts +++ b/src/resources/radar/email/security/top/tlds/spam.ts @@ -39,7 +39,7 @@ export interface SpamGetResponse { export namespace SpamGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -47,11 +47,41 @@ export namespace SpamGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { diff --git a/src/resources/radar/email/security/top/tlds/spoof.ts b/src/resources/radar/email/security/top/tlds/spoof.ts index 00e4768c44..b9673d6e5a 100644 --- a/src/resources/radar/email/security/top/tlds/spoof.ts +++ b/src/resources/radar/email/security/top/tlds/spoof.ts @@ -39,7 +39,7 @@ export interface SpoofGetResponse { export namespace SpoofGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -47,11 +47,41 @@ export namespace SpoofGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { diff --git a/src/resources/radar/email/security/top/tlds/tlds.ts b/src/resources/radar/email/security/top/tlds/tlds.ts index c9263a8fec..211f329ccf 100644 --- a/src/resources/radar/email/security/top/tlds/tlds.ts +++ b/src/resources/radar/email/security/top/tlds/tlds.ts @@ -43,7 +43,7 @@ export interface TldGetResponse { export namespace TldGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,11 +51,41 @@ export namespace TldGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { diff --git a/src/resources/radar/entities/asns.ts b/src/resources/radar/entities/asns.ts index d8ee9dbce1..e679e9dab5 100644 --- a/src/resources/radar/entities/asns.ts +++ b/src/resources/radar/entities/asns.ts @@ -256,12 +256,20 @@ export namespace ASNIPResponse { } export interface ASNRelResponse { - meta: unknown; + meta: ASNRelResponse.Meta; rels: Array; } export namespace ASNRelResponse { + export interface Meta { + data_time: string; + + query_time: string; + + total_peers: number; + } + export interface Rel { asn1: number; diff --git a/src/resources/radar/http/ases/ases.ts b/src/resources/radar/http/ases/ases.ts index 04267f8e15..9c34106357 100644 --- a/src/resources/radar/http/ases/ases.ts +++ b/src/resources/radar/http/ases/ases.ts @@ -53,12 +53,12 @@ export class Ases extends APIResource { export interface AseGetResponse { meta: AseGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace AseGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -66,11 +66,49 @@ export namespace AseGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientASN: number; + + clientASName: string; + + value: string; } } diff --git a/src/resources/radar/http/ases/bot-class.ts b/src/resources/radar/http/ases/bot-class.ts index acbf69595d..cf6508c475 100644 --- a/src/resources/radar/http/ases/bot-class.ts +++ b/src/resources/radar/http/ases/bot-class.ts @@ -38,12 +38,12 @@ export class BotClass extends APIResource { export interface BotClassGetResponse { meta: BotClassGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace BotClassGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,11 +51,49 @@ export namespace BotClassGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientASN: number; + + clientASName: string; + + value: string; } } diff --git a/src/resources/radar/http/ases/browser-family.ts b/src/resources/radar/http/ases/browser-family.ts index aeca8c57ab..7489bcbb9e 100644 --- a/src/resources/radar/http/ases/browser-family.ts +++ b/src/resources/radar/http/ases/browser-family.ts @@ -38,12 +38,12 @@ export class BrowserFamily extends APIResource { export interface BrowserFamilyGetResponse { meta: BrowserFamilyGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace BrowserFamilyGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,11 +51,49 @@ export namespace BrowserFamilyGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientASN: number; + + clientASName: string; + + value: string; } } diff --git a/src/resources/radar/http/ases/device-type.ts b/src/resources/radar/http/ases/device-type.ts index fce69585f3..ef238bdf30 100644 --- a/src/resources/radar/http/ases/device-type.ts +++ b/src/resources/radar/http/ases/device-type.ts @@ -38,12 +38,12 @@ export class DeviceType extends APIResource { export interface DeviceTypeGetResponse { meta: DeviceTypeGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace DeviceTypeGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,11 +51,49 @@ export namespace DeviceTypeGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientASN: number; + + clientASName: string; + + value: string; } } diff --git a/src/resources/radar/http/ases/http-method.ts b/src/resources/radar/http/ases/http-method.ts index d41b8faa2f..c4f32695af 100644 --- a/src/resources/radar/http/ases/http-method.ts +++ b/src/resources/radar/http/ases/http-method.ts @@ -38,12 +38,12 @@ export class HTTPMethod extends APIResource { export interface HTTPMethodGetResponse { meta: HTTPMethodGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace HTTPMethodGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,11 +51,49 @@ export namespace HTTPMethodGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientASN: number; + + clientASName: string; + + value: string; } } diff --git a/src/resources/radar/http/ases/http-protocol.ts b/src/resources/radar/http/ases/http-protocol.ts index f2980e8958..144a076856 100644 --- a/src/resources/radar/http/ases/http-protocol.ts +++ b/src/resources/radar/http/ases/http-protocol.ts @@ -38,12 +38,12 @@ export class HTTPProtocol extends APIResource { export interface HTTPProtocolGetResponse { meta: HTTPProtocolGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace HTTPProtocolGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,11 +51,49 @@ export namespace HTTPProtocolGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientASN: number; + + clientASName: string; + + value: string; } } diff --git a/src/resources/radar/http/ases/ip-version.ts b/src/resources/radar/http/ases/ip-version.ts index e428957db7..73ced457a6 100644 --- a/src/resources/radar/http/ases/ip-version.ts +++ b/src/resources/radar/http/ases/ip-version.ts @@ -35,12 +35,12 @@ export class IPVersion extends APIResource { export interface IPVersionGetResponse { meta: IPVersionGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace IPVersionGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -48,11 +48,49 @@ export namespace IPVersionGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientASN: number; + + clientASName: string; + + value: string; } } diff --git a/src/resources/radar/http/ases/os.ts b/src/resources/radar/http/ases/os.ts index 358d1511f5..545da8e689 100644 --- a/src/resources/radar/http/ases/os.ts +++ b/src/resources/radar/http/ases/os.ts @@ -37,12 +37,12 @@ export class OS extends APIResource { export interface OSGetResponse { meta: OSGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace OSGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,11 +50,49 @@ export namespace OSGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientASN: number; + + clientASName: string; + + value: string; } } diff --git a/src/resources/radar/http/ases/tls-version.ts b/src/resources/radar/http/ases/tls-version.ts index 96dc106c2a..4d92bb457d 100644 --- a/src/resources/radar/http/ases/tls-version.ts +++ b/src/resources/radar/http/ases/tls-version.ts @@ -38,12 +38,12 @@ export class TLSVersion extends APIResource { export interface TLSVersionGetResponse { meta: TLSVersionGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TLSVersionGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,11 +51,49 @@ export namespace TLSVersionGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientASN: number; + + clientASName: string; + + value: string; } } diff --git a/src/resources/radar/http/http.ts b/src/resources/radar/http/http.ts index eb3a3d8fde..bc44ea73cf 100644 --- a/src/resources/radar/http/http.ts +++ b/src/resources/radar/http/http.ts @@ -95,14 +95,14 @@ export class HTTP extends APIResource { export interface HTTPTimeseriesResponse { meta: HTTPTimeseriesResponse.Meta; - serie_0: unknown; + serie_0: HTTPTimeseriesResponse.Serie0; } export namespace HTTPTimeseriesResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -110,11 +110,47 @@ export namespace HTTPTimeseriesResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Serie0 { + timestamps: Array; + + values: Array; } } diff --git a/src/resources/radar/http/locations/bot-class.ts b/src/resources/radar/http/locations/bot-class.ts index e2daa78887..6a8d23fcf7 100644 --- a/src/resources/radar/http/locations/bot-class.ts +++ b/src/resources/radar/http/locations/bot-class.ts @@ -37,12 +37,12 @@ export class BotClass extends APIResource { export interface BotClassGetResponse { meta: BotClassGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace BotClassGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,11 +50,49 @@ export namespace BotClassGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; } } diff --git a/src/resources/radar/http/locations/browser-family.ts b/src/resources/radar/http/locations/browser-family.ts index 2838b3bdf3..ab6719537a 100644 --- a/src/resources/radar/http/locations/browser-family.ts +++ b/src/resources/radar/http/locations/browser-family.ts @@ -37,12 +37,12 @@ export class BrowserFamily extends APIResource { export interface BrowserFamilyGetResponse { meta: BrowserFamilyGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace BrowserFamilyGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,11 +50,49 @@ export namespace BrowserFamilyGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; } } diff --git a/src/resources/radar/http/locations/device-type.ts b/src/resources/radar/http/locations/device-type.ts index 802efc517d..3f1d8e0041 100644 --- a/src/resources/radar/http/locations/device-type.ts +++ b/src/resources/radar/http/locations/device-type.ts @@ -37,12 +37,12 @@ export class DeviceType extends APIResource { export interface DeviceTypeGetResponse { meta: DeviceTypeGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace DeviceTypeGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,11 +50,49 @@ export namespace DeviceTypeGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; } } diff --git a/src/resources/radar/http/locations/http-method.ts b/src/resources/radar/http/locations/http-method.ts index 7155ff461a..3c73d856f7 100644 --- a/src/resources/radar/http/locations/http-method.ts +++ b/src/resources/radar/http/locations/http-method.ts @@ -37,12 +37,12 @@ export class HTTPMethod extends APIResource { export interface HTTPMethodGetResponse { meta: HTTPMethodGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace HTTPMethodGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,11 +50,49 @@ export namespace HTTPMethodGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; } } diff --git a/src/resources/radar/http/locations/http-protocol.ts b/src/resources/radar/http/locations/http-protocol.ts index a4e09579a8..b49cca98eb 100644 --- a/src/resources/radar/http/locations/http-protocol.ts +++ b/src/resources/radar/http/locations/http-protocol.ts @@ -37,12 +37,12 @@ export class HTTPProtocol extends APIResource { export interface HTTPProtocolGetResponse { meta: HTTPProtocolGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace HTTPProtocolGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,11 +50,49 @@ export namespace HTTPProtocolGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; } } diff --git a/src/resources/radar/http/locations/ip-version.ts b/src/resources/radar/http/locations/ip-version.ts index ce84ccc519..70511da345 100644 --- a/src/resources/radar/http/locations/ip-version.ts +++ b/src/resources/radar/http/locations/ip-version.ts @@ -34,12 +34,12 @@ export class IPVersion extends APIResource { export interface IPVersionGetResponse { meta: IPVersionGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace IPVersionGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -47,11 +47,49 @@ export namespace IPVersionGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; } } diff --git a/src/resources/radar/http/locations/locations.ts b/src/resources/radar/http/locations/locations.ts index 60a6d79ec2..a01db5dffe 100644 --- a/src/resources/radar/http/locations/locations.ts +++ b/src/resources/radar/http/locations/locations.ts @@ -53,12 +53,12 @@ export class Locations extends APIResource { export interface LocationGetResponse { meta: LocationGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace LocationGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -66,11 +66,49 @@ export namespace LocationGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; } } diff --git a/src/resources/radar/http/locations/os.ts b/src/resources/radar/http/locations/os.ts index 2d1bc4a210..0970e3b53c 100644 --- a/src/resources/radar/http/locations/os.ts +++ b/src/resources/radar/http/locations/os.ts @@ -37,12 +37,12 @@ export class OS extends APIResource { export interface OSGetResponse { meta: OSGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace OSGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,11 +50,49 @@ export namespace OSGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; } } diff --git a/src/resources/radar/http/locations/tls-version.ts b/src/resources/radar/http/locations/tls-version.ts index 7550e00e26..af4cfd30c9 100644 --- a/src/resources/radar/http/locations/tls-version.ts +++ b/src/resources/radar/http/locations/tls-version.ts @@ -38,12 +38,12 @@ export class TLSVersion extends APIResource { export interface TLSVersionGetResponse { meta: TLSVersionGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TLSVersionGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -51,11 +51,49 @@ export namespace TLSVersionGetResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Top0 { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; } } diff --git a/src/resources/radar/http/summary.ts b/src/resources/radar/http/summary.ts index d416cd3000..80ae8261b8 100644 --- a/src/resources/radar/http/summary.ts +++ b/src/resources/radar/http/summary.ts @@ -192,7 +192,7 @@ export interface SummaryBotClassResponse { export namespace SummaryBotClassResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -202,11 +202,41 @@ export namespace SummaryBotClassResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -224,7 +254,7 @@ export interface SummaryDeviceTypeResponse { export namespace SummaryDeviceTypeResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -234,11 +264,41 @@ export namespace SummaryDeviceTypeResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -258,7 +318,7 @@ export interface SummaryHTTPProtocolResponse { export namespace SummaryHTTPProtocolResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -268,11 +328,41 @@ export namespace SummaryHTTPProtocolResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -290,7 +380,7 @@ export interface SummaryHTTPVersionResponse { export namespace SummaryHTTPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -300,11 +390,41 @@ export namespace SummaryHTTPVersionResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -319,12 +439,12 @@ export namespace SummaryHTTPVersionResponse { export interface SummaryIPVersionResponse { meta: SummaryIPVersionResponse.Meta; - summary_0: unknown; + summary_0: SummaryIPVersionResponse.Summary0; } export namespace SummaryIPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -334,11 +454,47 @@ export namespace SummaryIPVersionResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Summary0 { + IPv4: string; + + IPv6: string; } } @@ -350,7 +506,7 @@ export interface SummaryOSResponse { export namespace SummaryOSResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -360,11 +516,41 @@ export namespace SummaryOSResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -382,7 +568,7 @@ export interface SummaryPostQuantumResponse { export namespace SummaryPostQuantumResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -392,11 +578,41 @@ export namespace SummaryPostQuantumResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -414,7 +630,7 @@ export interface SummaryTLSVersionResponse { export namespace SummaryTLSVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -424,11 +640,41 @@ export namespace SummaryTLSVersionResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { diff --git a/src/resources/radar/http/timeseries-groups.ts b/src/resources/radar/http/timeseries-groups.ts index 3bfbfb4910..023bb29960 100644 --- a/src/resources/radar/http/timeseries-groups.ts +++ b/src/resources/radar/http/timeseries-groups.ts @@ -254,13 +254,27 @@ export namespace TimeseriesGroupBotClassResponse { export interface TimeseriesGroupBrowserResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupBrowserResponse.Serie0; +} + +export namespace TimeseriesGroupBrowserResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupBrowserFamilyResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupBrowserFamilyResponse.Serie0; +} + +export namespace TimeseriesGroupBrowserFamilyResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupDeviceTypeResponse { @@ -318,13 +332,30 @@ export namespace TimeseriesGroupHTTPVersionResponse { export interface TimeseriesGroupIPVersionResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupIPVersionResponse.Serie0; +} + +export namespace TimeseriesGroupIPVersionResponse { + export interface Serie0 { + IPv4: Array; + + IPv6: Array; + + timestamps: Array; + } } export interface TimeseriesGroupOSResponse { meta: unknown; - serie_0: unknown; + serie_0: TimeseriesGroupOSResponse.Serie0; +} + +export namespace TimeseriesGroupOSResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array | undefined; + } } export interface TimeseriesGroupPostQuantumResponse { diff --git a/src/resources/radar/http/top.ts b/src/resources/radar/http/top.ts index c2a06d92ea..f2340c4d9c 100644 --- a/src/resources/radar/http/top.ts +++ b/src/resources/radar/http/top.ts @@ -55,7 +55,7 @@ export interface TopBrowserResponse { export namespace TopBrowserResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -63,11 +63,41 @@ export namespace TopBrowserResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { @@ -85,7 +115,7 @@ export interface TopBrowserFamilyResponse { export namespace TopBrowserFamilyResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -93,11 +123,41 @@ export namespace TopBrowserFamilyResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { diff --git a/src/resources/radar/leaked-credentials/summary.ts b/src/resources/radar/leaked-credentials/summary.ts index cdbc805143..a78abcdeb6 100644 --- a/src/resources/radar/leaked-credentials/summary.ts +++ b/src/resources/radar/leaked-credentials/summary.ts @@ -61,7 +61,7 @@ export interface SummaryBotClassResponse { export namespace SummaryBotClassResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -71,11 +71,41 @@ export namespace SummaryBotClassResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -93,7 +123,7 @@ export interface SummaryCompromisedResponse { export namespace SummaryCompromisedResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -103,11 +133,41 @@ export namespace SummaryCompromisedResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { diff --git a/src/resources/radar/netflows/netflows.ts b/src/resources/radar/netflows/netflows.ts index 6c4466b949..6ea78b7aa9 100644 --- a/src/resources/radar/netflows/netflows.ts +++ b/src/resources/radar/netflows/netflows.ts @@ -63,17 +63,47 @@ export interface NetflowSummaryResponse { export namespace NetflowSummaryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; confidenceInfo?: Meta.ConfidenceInfo; } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -86,14 +116,14 @@ export namespace NetflowSummaryResponse { export interface NetflowTimeseriesResponse { meta: NetflowTimeseriesResponse.Meta; - serie_0: unknown; + serie_0: NetflowTimeseriesResponse.Serie0; } export namespace NetflowTimeseriesResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -101,11 +131,47 @@ export namespace NetflowTimeseriesResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + } + + export interface Serie0 { + timestamps: Array; + + values: Array; } } diff --git a/src/resources/radar/quality/iqi.ts b/src/resources/radar/quality/iqi.ts index 4e620e5c30..762cd9dd78 100644 --- a/src/resources/radar/quality/iqi.ts +++ b/src/resources/radar/quality/iqi.ts @@ -40,7 +40,7 @@ export interface IQISummaryResponse { export namespace IQISummaryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,11 +50,41 @@ export namespace IQISummaryResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { diff --git a/src/resources/radar/quality/speed/speed.ts b/src/resources/radar/quality/speed/speed.ts index 9594e1f69f..69fe21d5bc 100644 --- a/src/resources/radar/quality/speed/speed.ts +++ b/src/resources/radar/quality/speed/speed.ts @@ -77,7 +77,7 @@ export interface SpeedSummaryResponse { export namespace SpeedSummaryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -87,11 +87,41 @@ export namespace SpeedSummaryResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { diff --git a/src/resources/radar/quality/speed/top.ts b/src/resources/radar/quality/speed/top.ts index d3453cb49a..0fe10def91 100644 --- a/src/resources/radar/quality/speed/top.ts +++ b/src/resources/radar/quality/speed/top.ts @@ -54,7 +54,7 @@ export interface TopAsesResponse { export namespace TopAsesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -62,11 +62,41 @@ export namespace TopAsesResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { @@ -100,7 +130,7 @@ export interface TopLocationsResponse { export namespace TopLocationsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -108,11 +138,41 @@ export namespace TopLocationsResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { diff --git a/src/resources/radar/ranking/domain.ts b/src/resources/radar/ranking/domain.ts index e61ce854e2..0b13d7c639 100644 --- a/src/resources/radar/ranking/domain.ts +++ b/src/resources/radar/ranking/domain.ts @@ -72,7 +72,21 @@ export namespace DomainGetResponse { } export interface Meta { - dateRange: Array; + dateRange: Array; + } + + export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } } } diff --git a/src/resources/radar/ranking/internet-services.ts b/src/resources/radar/ranking/internet-services.ts index 376fe2678e..a8fe32e1e5 100644 --- a/src/resources/radar/ranking/internet-services.ts +++ b/src/resources/radar/ranking/internet-services.ts @@ -92,7 +92,21 @@ export interface InternetServiceTimeseriesGroupsResponse { export namespace InternetServiceTimeseriesGroupsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; + } + + export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } } export interface Serie0 { diff --git a/src/resources/radar/ranking/ranking.ts b/src/resources/radar/ranking/ranking.ts index e62280f918..5d486634b8 100644 --- a/src/resources/radar/ranking/ranking.ts +++ b/src/resources/radar/ranking/ranking.ts @@ -75,7 +75,21 @@ export interface RankingTimeseriesGroupsResponse { export namespace RankingTimeseriesGroupsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; + } + + export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } } export interface Serie0 { diff --git a/src/resources/radar/robots-txt/top/top.ts b/src/resources/radar/robots-txt/top/top.ts index 9a1eb6b17c..12dc56ae94 100644 --- a/src/resources/radar/robots-txt/top/top.ts +++ b/src/resources/radar/robots-txt/top/top.ts @@ -40,7 +40,7 @@ export interface TopDomainCategoriesResponse { export namespace TopDomainCategoriesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -52,12 +52,42 @@ export namespace TopDomainCategoriesResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + export interface Unit { name: string; diff --git a/src/resources/radar/robots-txt/top/user-agents.ts b/src/resources/radar/robots-txt/top/user-agents.ts index 25a6e0322e..a7fd368411 100644 --- a/src/resources/radar/robots-txt/top/user-agents.ts +++ b/src/resources/radar/robots-txt/top/user-agents.ts @@ -37,7 +37,7 @@ export interface UserAgentDirectiveResponse { export namespace UserAgentDirectiveResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -49,12 +49,42 @@ export namespace UserAgentDirectiveResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } + export interface Unit { name: string; diff --git a/src/resources/radar/tcp-resets-timeouts.ts b/src/resources/radar/tcp-resets-timeouts.ts index 359104aef8..b1f5d5699a 100644 --- a/src/resources/radar/tcp-resets-timeouts.ts +++ b/src/resources/radar/tcp-resets-timeouts.ts @@ -61,17 +61,47 @@ export interface TCPResetsTimeoutSummaryResponse { export namespace TCPResetsTimeoutSummaryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; confidenceInfo?: Meta.ConfidenceInfo; } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Summary0 { @@ -116,7 +146,7 @@ export namespace TCPResetsTimeoutTimeseriesGroupsResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -124,11 +154,41 @@ export namespace TCPResetsTimeoutTimeseriesGroupsResponse { } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Serie0 { diff --git a/src/resources/radar/traffic-anomalies/locations.ts b/src/resources/radar/traffic-anomalies/locations.ts index cee6fea6c2..de112a17dd 100644 --- a/src/resources/radar/traffic-anomalies/locations.ts +++ b/src/resources/radar/traffic-anomalies/locations.ts @@ -28,7 +28,17 @@ export class Locations extends APIResource { } export interface LocationGetResponse { - trafficAnomalies: Array; + trafficAnomalies: Array; +} + +export namespace LocationGetResponse { + export interface TrafficAnomaly { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; + } } export interface LocationGetParams { diff --git a/src/resources/radar/traffic-anomalies/traffic-anomalies.ts b/src/resources/radar/traffic-anomalies/traffic-anomalies.ts index 47267a4b97..861f40c839 100644 --- a/src/resources/radar/traffic-anomalies/traffic-anomalies.ts +++ b/src/resources/radar/traffic-anomalies/traffic-anomalies.ts @@ -4,7 +4,7 @@ import { APIResource } from '../../../resource'; import { isRequestOptions } from '../../../core'; import * as Core from '../../../core'; import * as LocationsAPI from './locations'; -import { LocationGetParams, LocationGetResponse, Locations } from './locations'; +import { LocationGetParams, LocationGetResponse, Locations as LocationsAPILocations } from './locations'; export class TrafficAnomalies extends APIResource { locations: LocationsAPI.Locations = new LocationsAPI.Locations(this._client); @@ -52,7 +52,7 @@ export namespace TrafficAnomalyGetResponse { endDate?: string; - locationDetails?: unknown; + locationDetails?: TrafficAnomaly.LocationDetails; visibleInDataSources?: Array; } @@ -63,7 +63,21 @@ export namespace TrafficAnomalyGetResponse { name: string; - locations?: unknown; + locations?: ASNDetails.Locations; + } + + export namespace ASNDetails { + export interface Locations { + code: string; + + name: string; + } + } + + export interface LocationDetails { + code: string; + + name: string; } } } @@ -113,7 +127,7 @@ export interface TrafficAnomalyGetParams { status?: 'VERIFIED' | 'UNVERIFIED'; } -TrafficAnomalies.Locations = Locations; +TrafficAnomalies.Locations = LocationsAPILocations; export declare namespace TrafficAnomalies { export { @@ -122,7 +136,7 @@ export declare namespace TrafficAnomalies { }; export { - Locations as Locations, + LocationsAPILocations as Locations, type LocationGetResponse as LocationGetResponse, type LocationGetParams as LocationGetParams, }; diff --git a/src/resources/radar/verified-bots/top.ts b/src/resources/radar/verified-bots/top.ts index 53ed154c2e..4600dbc5f4 100644 --- a/src/resources/radar/verified-bots/top.ts +++ b/src/resources/radar/verified-bots/top.ts @@ -56,17 +56,47 @@ export interface TopBotsResponse { export namespace TopBotsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; confidenceInfo?: Meta.ConfidenceInfo; } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { @@ -88,17 +118,47 @@ export interface TopCategoriesResponse { export namespace TopCategoriesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; confidenceInfo?: Meta.ConfidenceInfo; } export namespace Meta { + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + export interface ConfidenceInfo { - annotations?: Array; + annotations?: Array; level?: number; } + + export namespace ConfidenceInfo { + export interface Annotation { + dataSource: string; + + description: string; + + eventType: string; + + isInstantaneous: boolean; + + endTime?: string; + + linkedUrl?: string; + + startTime?: string; + } + } } export interface Top0 { diff --git a/src/resources/rules/lists/bulk-operations.ts b/src/resources/rules/lists/bulk-operations.ts index b926a2e33e..f321d4858a 100644 --- a/src/resources/rules/lists/bulk-operations.ts +++ b/src/resources/rules/lists/bulk-operations.ts @@ -25,7 +25,10 @@ export class BulkOperations extends APIResource { } } -export type OperationStatus = unknown; +/** + * The current status of the asynchronous operation. + */ +export type OperationStatus = 'pending' | 'running' | 'completed' | 'failed'; export interface BulkOperationGetResponse { /** @@ -33,7 +36,10 @@ export interface BulkOperationGetResponse { */ id: string; - status: unknown; + /** + * The current status of the asynchronous operation. + */ + status: OperationStatus; /** * The RFC 3339 timestamp of when the operation was completed. diff --git a/src/resources/rules/lists/items.ts b/src/resources/rules/lists/items.ts index 77954dfa71..90d1442bf7 100644 --- a/src/resources/rules/lists/items.ts +++ b/src/resources/rules/lists/items.ts @@ -105,9 +105,18 @@ export class Items extends APIResource { export class ItemListResponsesCursorPagination extends CursorPagination {} -export type ListCursor = unknown; +export interface ListCursor { + after?: string; -export type ListItem = unknown; + before?: string; +} + +export interface ListItem { + /** + * The unique operation ID of the asynchronous action. + */ + operation_id?: string; +} export interface ItemCreateResponse { /** diff --git a/src/resources/rulesets/phases/phases.ts b/src/resources/rulesets/phases/phases.ts index b699b5d1f1..35a462c4a8 100644 --- a/src/resources/rulesets/phases/phases.ts +++ b/src/resources/rulesets/phases/phases.ts @@ -212,7 +212,10 @@ export namespace PhaseUpdateResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -344,7 +347,10 @@ export namespace PhaseUpdateResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -542,7 +548,10 @@ export namespace PhaseGetResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -674,7 +683,10 @@ export namespace PhaseGetResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -841,7 +853,10 @@ export namespace PhaseUpdateParams { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -958,7 +973,10 @@ export namespace PhaseUpdateParams { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.LoggingParam; /** * An object configuring the rule's ratelimit behavior. diff --git a/src/resources/rulesets/phases/versions.ts b/src/resources/rulesets/phases/versions.ts index b620858dae..62eb0dcde5 100644 --- a/src/resources/rulesets/phases/versions.ts +++ b/src/resources/rulesets/phases/versions.ts @@ -260,7 +260,10 @@ export namespace VersionGetResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -392,7 +395,10 @@ export namespace VersionGetResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. diff --git a/src/resources/rulesets/rules.ts b/src/resources/rulesets/rules.ts index 9f6bc35d01..9469f08562 100644 --- a/src/resources/rulesets/rules.ts +++ b/src/resources/rulesets/rules.ts @@ -176,7 +176,10 @@ export interface BlockRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -325,7 +328,10 @@ export interface BlockRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -489,7 +495,10 @@ export interface CompressResponseRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -628,7 +637,10 @@ export interface CompressResponseRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -782,7 +794,10 @@ export interface DDoSDynamicRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -899,7 +914,10 @@ export interface DDoSDynamicRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -1031,7 +1049,10 @@ export interface ExecuteRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -1271,7 +1292,10 @@ export interface ExecuteRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -1526,7 +1550,10 @@ export interface ForceConnectionCloseRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -1643,7 +1670,10 @@ export interface ForceConnectionCloseRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -1775,7 +1805,10 @@ export interface LogCustomFieldRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -1984,7 +2017,10 @@ export interface LogCustomFieldRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -2208,7 +2244,10 @@ export interface LogRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -2325,7 +2364,10 @@ export interface LogRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -2406,7 +2448,25 @@ export namespace LogRuleParam { } } -export type Logging = unknown; +/** + * An object configuring the rule's logging behavior. + */ +export interface Logging { + /** + * Whether to generate a log when the rule matches. + */ + enabled: boolean; +} + +/** + * An object configuring the rule's logging behavior. + */ +export interface LoggingParam { + /** + * Whether to generate a log when the rule matches. + */ + enabled: boolean; +} export interface ManagedChallengeRule { /** @@ -2459,7 +2519,10 @@ export interface ManagedChallengeRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -2576,7 +2639,10 @@ export interface ManagedChallengeRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -2708,7 +2774,10 @@ export interface RedirectRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -2893,7 +2962,10 @@ export interface RedirectRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -3093,7 +3165,10 @@ export interface RewriteRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -3276,7 +3351,10 @@ export interface RewriteRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -3510,7 +3588,10 @@ export interface RouteRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -3674,7 +3755,10 @@ export interface RouteRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -3853,7 +3937,10 @@ export interface RulesetRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -3985,7 +4072,10 @@ export interface ScoreRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -4113,7 +4203,10 @@ export interface ScoreRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -4256,7 +4349,10 @@ export interface ServeErrorRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -4393,7 +4489,10 @@ export interface ServeErrorRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -4545,7 +4644,10 @@ export interface SetCacheSettingsRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -5058,7 +5160,10 @@ export interface SetCacheSettingsRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -5586,7 +5691,10 @@ export interface SetConfigRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -5815,7 +5923,10 @@ export interface SetConfigRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -6059,7 +6170,10 @@ export interface SkipRule { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: Logging; /** * An object configuring the rule's ratelimit behavior. @@ -6210,7 +6324,10 @@ export interface SkipRuleParam { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -6441,7 +6558,10 @@ export namespace RuleCreateResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -6573,7 +6693,10 @@ export namespace RuleCreateResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -6771,7 +6894,10 @@ export namespace RuleDeleteResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -6903,7 +7029,10 @@ export namespace RuleDeleteResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -7101,7 +7230,10 @@ export namespace RuleEditResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -7233,7 +7365,10 @@ export namespace RuleEditResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -7385,9 +7520,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -7586,9 +7721,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -7755,9 +7890,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -7946,9 +8081,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -8238,9 +8373,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -8410,9 +8545,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -8579,9 +8714,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -8751,9 +8886,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -8988,9 +9123,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -9223,9 +9358,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -9439,9 +9574,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -9619,9 +9754,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -9808,9 +9943,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -10089,9 +10224,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -10292,9 +10427,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -10860,9 +10995,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -11124,9 +11259,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -11293,9 +11428,9 @@ export declare namespace RuleCreateParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -11499,9 +11634,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -11700,9 +11835,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -11869,9 +12004,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -12060,9 +12195,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -12352,9 +12487,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -12524,9 +12659,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -12693,9 +12828,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -12865,9 +13000,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -13102,9 +13237,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -13337,9 +13472,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -13553,9 +13688,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -13733,9 +13868,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -13922,9 +14057,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -14203,9 +14338,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -14406,9 +14541,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -14974,9 +15109,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -15238,9 +15373,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. @@ -15407,9 +15542,9 @@ export declare namespace RuleEditParams { expression?: string; /** - * Body param: + * Body param: An object configuring the rule's logging behavior. */ - logging?: unknown; + logging?: LoggingParam; /** * Body param: An object configuring where the rule will be placed. diff --git a/src/resources/rulesets/rulesets.ts b/src/resources/rulesets/rulesets.ts index bb647fd44e..b3ca39a2dc 100644 --- a/src/resources/rulesets/rulesets.ts +++ b/src/resources/rulesets/rulesets.ts @@ -458,7 +458,10 @@ export namespace RulesetCreateResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -590,7 +593,10 @@ export namespace RulesetCreateResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -788,7 +794,10 @@ export namespace RulesetUpdateResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -920,7 +929,10 @@ export namespace RulesetUpdateResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -1158,7 +1170,10 @@ export namespace RulesetGetResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -1290,7 +1305,10 @@ export namespace RulesetGetResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -1467,7 +1485,10 @@ export namespace RulesetCreateParams { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -1584,7 +1605,10 @@ export namespace RulesetCreateParams { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -1761,7 +1785,10 @@ export namespace RulesetUpdateParams { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.LoggingParam; /** * An object configuring the rule's ratelimit behavior. @@ -1878,7 +1905,10 @@ export namespace RulesetUpdateParams { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.LoggingParam; /** * An object configuring the rule's ratelimit behavior. diff --git a/src/resources/rulesets/versions.ts b/src/resources/rulesets/versions.ts index fd9153a572..41467d6fc8 100644 --- a/src/resources/rulesets/versions.ts +++ b/src/resources/rulesets/versions.ts @@ -302,7 +302,10 @@ export namespace VersionGetResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. @@ -434,7 +437,10 @@ export namespace VersionGetResponse { */ expression?: string; - logging?: unknown; + /** + * An object configuring the rule's logging behavior. + */ + logging?: RulesAPI.Logging; /** * An object configuring the rule's ratelimit behavior. diff --git a/src/resources/security-center/insights/insights.ts b/src/resources/security-center/insights/insights.ts index 4420b3ad38..ab6294b666 100644 --- a/src/resources/security-center/insights/insights.ts +++ b/src/resources/security-center/insights/insights.ts @@ -3,6 +3,7 @@ import { APIResource } from '../../../resource'; import { isRequestOptions } from '../../../core'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; import * as IssuesAPI from '../../intel/attack-surface-report/issues'; import * as ClassAPI from './class'; import { Class, ClassGetParams, ClassGetResponse } from './class'; @@ -139,9 +140,9 @@ export namespace InsightListResponse { } export interface InsightDismissResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/security-txt.ts b/src/resources/security-txt.ts index caf534bcad..0b9cacc8e7 100644 --- a/src/resources/security-txt.ts +++ b/src/resources/security-txt.ts @@ -2,6 +2,7 @@ import { APIResource } from '../resource'; import * as Core from '../core'; +import * as Shared from './shared'; export class SecurityTXT extends APIResource { /** @@ -40,9 +41,9 @@ export class SecurityTXT extends APIResource { } export interface SecurityTXTUpdateResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful @@ -51,9 +52,9 @@ export interface SecurityTXTUpdateResponse { } export interface SecurityTXTDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/shared.ts b/src/resources/shared.ts index cffe00df2d..b848f4747f 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -261,9 +261,21 @@ export namespace ErrorData { } } -export type Identifier = unknown; +export interface Identifier { + /** + * Identifier + */ + id?: string; +} + +export interface LoadBalancerPreview { + /** + * Monitored pool IDs mapped to their respective names. + */ + pools?: Record; -export type LoadBalancerPreview = unknown; + preview_id?: string; +} export interface Member { /** @@ -583,9 +595,36 @@ export interface RatePlanParam { sets?: Array; } -export type ResponseInfo = unknown; +export interface ResponseInfo { + code: number; + + message: string; +} + +export type Result = Result.UnionMember0 | Result.AaaAPIResponseCommon; -export type Result = unknown; +export namespace Result { + export interface UnionMember0 { + errors?: Array; + + messages?: Array; + + result?: Array; + + success?: boolean; + } + + export interface AaaAPIResponseCommon { + errors: Array; + + messages: Array; + + /** + * Whether the API call was successful + */ + success: true; + } +} export interface Role { /** diff --git a/src/resources/snippets/rules.ts b/src/resources/snippets/rules.ts index f1e054425e..3155606849 100644 --- a/src/resources/snippets/rules.ts +++ b/src/resources/snippets/rules.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; +import * as Shared from '../shared'; import { SinglePage } from '../../pagination'; export class Rules extends APIResource { @@ -75,9 +76,9 @@ export interface RuleListResponse { } export interface RuleDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/snippets/snippets.ts b/src/resources/snippets/snippets.ts index 78c4758b3e..56654850fb 100644 --- a/src/resources/snippets/snippets.ts +++ b/src/resources/snippets/snippets.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; +import * as Shared from '../shared'; import * as ContentAPI from './content'; import { Content, ContentGetParams } from './content'; import * as RulesAPI from './rules'; @@ -102,9 +103,9 @@ export interface Snippet { } export interface SnippetDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/ssl/analyze.ts b/src/resources/ssl/analyze.ts index 28f05d0b43..fe1ab850e1 100644 --- a/src/resources/ssl/analyze.ts +++ b/src/resources/ssl/analyze.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; +import * as CustomHostnamesAPI from '../custom-hostnames/custom-hostnames'; export class Analyze extends APIResource { /** @@ -27,9 +28,12 @@ export interface AnalyzeCreateParams { zone_id: string; /** - * Body param: + * Body param: A ubiquitous bundle has the highest probability of being verified + * everywhere, even by clients using outdated or unusual trust stores. An optimal + * bundle uses the shortest chain and newest intermediates. And the force bundle + * verifies the chain, but does not otherwise modify it. */ - bundle_method?: unknown; + bundle_method?: CustomHostnamesAPI.BundleMethodParam; /** * Body param: The zone's SSL certificate or certificate and the intermediate(s). diff --git a/src/resources/url-scanner/url-scanner.ts b/src/resources/url-scanner/url-scanner.ts index a2387e6440..cbecc9da36 100644 --- a/src/resources/url-scanner/url-scanner.ts +++ b/src/resources/url-scanner/url-scanner.ts @@ -26,9 +26,41 @@ export class URLScanner extends APIResource { scans: ScansAPI.Scans = new ScansAPI.Scans(this._client); } -export type URLScannerDomain = unknown; +export interface URLScannerDomain { + id: number; -export type URLScannerTask = unknown; + name: string; + + super_category_id?: number; +} + +export interface URLScannerTask { + effectiveUrl: string; + + errors: Array; + + location: string; + + region: string; + + status: string; + + success: boolean; + + time: string; + + url: string; + + uuid: string; + + visibility: string; +} + +export namespace URLScannerTask { + export interface Error { + message: string; + } +} URLScanner.Responses = Responses; URLScanner.Scans = Scans; diff --git a/src/resources/waiting-rooms/settings.ts b/src/resources/waiting-rooms/settings.ts index 47c2b613d9..5361031b99 100644 --- a/src/resources/waiting-rooms/settings.ts +++ b/src/resources/waiting-rooms/settings.ts @@ -42,7 +42,14 @@ export class Settings extends APIResource { } } -export type Setting = unknown; +export interface Setting { + /** + * Whether to allow verified search engine crawlers to bypass all waiting rooms on + * this zone. Verified search engine crawlers will not be tracked or counted by the + * waiting room system, and will not appear in waiting room analytics. + */ + search_engine_crawler_bypass: boolean; +} export interface SettingUpdateResponse { /** diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/content.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/content.ts index 4cb666cc39..401f5abc8d 100644 --- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/content.ts +++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/content.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../../../resource'; import * as Core from '../../../../../core'; +import * as WorkersAPI from '../../../../workers/workers'; import * as ScriptsAPI from '../../../../workers/scripts/scripts'; import { type Response } from '../../../../../_shims/index'; @@ -64,9 +65,10 @@ export interface ContentUpdateParams { account_id: string; /** - * Body param: + * Body param: JSON encoded metadata about the uploaded parts and Worker + * configuration. */ - metadata: unknown; + metadata: WorkersAPI.WorkerMetadataParam; /** * Header param: The multipart name of a script upload part containing script diff --git a/src/resources/workers/routes.ts b/src/resources/workers/routes.ts index 97490cc37c..a4c38199a7 100644 --- a/src/resources/workers/routes.ts +++ b/src/resources/workers/routes.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; +import * as Shared from '../shared'; import { SinglePage } from '../../pagination'; export class Routes extends APIResource { @@ -73,9 +74,9 @@ export class Routes extends APIResource { export class RouteListResponsesSinglePage extends SinglePage {} export interface RouteCreateResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful @@ -112,9 +113,9 @@ export interface RouteListResponse { } export interface RouteDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/workers/scripts/content.ts b/src/resources/workers/scripts/content.ts index 30645a1ebb..7830d9b8ed 100644 --- a/src/resources/workers/scripts/content.ts +++ b/src/resources/workers/scripts/content.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as WorkersAPI from '../workers'; import * as ScriptsAPI from './scripts'; import { type Response } from '../../../_shims/index'; @@ -62,9 +63,10 @@ export interface ContentUpdateParams { account_id: string; /** - * Body param: + * Body param: JSON encoded metadata about the uploaded parts and Worker + * configuration. */ - metadata: unknown; + metadata: WorkersAPI.WorkerMetadataParam; /** * Header param: The multipart name of a script upload part containing script diff --git a/src/resources/workers/scripts/deployments.ts b/src/resources/workers/scripts/deployments.ts index 4b08c5afe5..e37e32f3bb 100644 --- a/src/resources/workers/scripts/deployments.ts +++ b/src/resources/workers/scripts/deployments.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as DeploymentsAPI from './deployments'; export class Deployments extends APIResource { /** @@ -44,7 +45,19 @@ export class Deployments extends APIResource { } } -export type Deployment = unknown; +export interface Deployment { + /** + * Human-readable message about the deployment. Truncated to 100 bytes. + */ + 'workers/message'?: string; +} + +export interface DeploymentParam { + /** + * Human-readable message about the deployment. Truncated to 100 bytes. + */ + 'workers/message'?: string; +} export interface DeploymentCreateResponse { strategy: 'percentage'; @@ -53,7 +66,7 @@ export interface DeploymentCreateResponse { id?: string; - annotations?: unknown; + annotations?: Deployment; author_email?: string; @@ -82,7 +95,7 @@ export namespace DeploymentGetResponse { id?: string; - annotations?: unknown; + annotations?: DeploymentsAPI.Deployment; author_email?: string; @@ -126,7 +139,7 @@ export interface DeploymentCreateParams { /** * Body param: */ - annotations?: unknown; + annotations?: DeploymentParam; } export namespace DeploymentCreateParams { diff --git a/src/resources/workers/scripts/schedules.ts b/src/resources/workers/scripts/schedules.ts index 6e4fa9cc43..35c22d76ae 100644 --- a/src/resources/workers/scripts/schedules.ts +++ b/src/resources/workers/scripts/schedules.ts @@ -47,12 +47,16 @@ export interface Schedule { modified_on?: string; } +export interface ScheduleParam { + cron?: string; +} + export interface ScheduleUpdateResponse { - schedules?: Array; + schedules?: Array; } export interface ScheduleGetResponse { - schedules?: Array; + schedules?: Array; } export interface ScheduleUpdateParams { @@ -64,7 +68,7 @@ export interface ScheduleUpdateParams { /** * Body param: */ - body: Array; + body: Array; } export interface ScheduleGetParams { diff --git a/src/resources/workers/scripts/tail.ts b/src/resources/workers/scripts/tail.ts index 8be664e9d6..c6e2dc41f2 100644 --- a/src/resources/workers/scripts/tail.ts +++ b/src/resources/workers/scripts/tail.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; +import * as Shared from '../../shared'; export class Tail extends APIResource { /** @@ -101,9 +102,9 @@ export interface TailCreateResponse { } export interface TailDeleteResponse { - errors: Array; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/workers/workers.ts b/src/resources/workers/workers.ts index b7dd8da0ba..97e5f97669 100644 --- a/src/resources/workers/workers.ts +++ b/src/resources/workers/workers.ts @@ -271,7 +271,41 @@ export namespace SingleStepMigrationParam { } } -export type WorkerMetadata = unknown; +/** + * JSON encoded metadata about the uploaded parts and Worker configuration. + */ +export interface WorkerMetadata { + /** + * Name of the part in the multipart request that contains the script (e.g. the + * file adding a listener to the `fetch` event). Indicates a + * `service worker syntax` Worker. + */ + body_part?: string; + + /** + * Name of the part in the multipart request that contains the main module (e.g. + * the file exporting a `fetch` handler). Indicates a `module syntax` Worker. + */ + main_module?: string; +} + +/** + * JSON encoded metadata about the uploaded parts and Worker configuration. + */ +export interface WorkerMetadataParam { + /** + * Name of the part in the multipart request that contains the script (e.g. the + * file adding a listener to the `fetch` event). Indicates a + * `service worker syntax` Worker. + */ + body_part?: string; + + /** + * Name of the part in the multipart request that contains the main module (e.g. + * the file exporting a `fetch` handler). Indicates a `module syntax` Worker. + */ + main_module?: string; +} Workers.Routes = Routes; Workers.RouteListResponsesSinglePage = RouteListResponsesSinglePage; diff --git a/src/resources/zaraz/config.ts b/src/resources/zaraz/config.ts index 1a3865ace1..b09d9a6c86 100644 --- a/src/resources/zaraz/config.ts +++ b/src/resources/zaraz/config.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; +import * as ZarazAPI from './zaraz'; export class Config extends APIResource { /** @@ -221,7 +222,7 @@ export namespace Configuration { /** * Actions configured on a tool. Either this or neoEvents field is required. */ - actions?: unknown; + actions?: Record; /** * Default consent purpose ID @@ -232,7 +233,7 @@ export namespace Configuration { * DEPRECATED - List of actions configured on a tool. Either this or actions field * is required. If both are present, actions field will take precedence. */ - neoEvents?: Array; + neoEvents?: Array; /** * Vendor name for TCF compliant consent modal, required for Custom Managed @@ -293,7 +294,7 @@ export namespace Configuration { /** * Actions configured on a tool. Either this or neoEvents field is required. */ - actions?: unknown; + actions?: Record; /** * Default consent purpose ID @@ -304,7 +305,7 @@ export namespace Configuration { * DEPRECATED - List of actions configured on a tool. Either this or actions field * is required. If both are present, actions field will take precedence. */ - neoEvents?: Array; + neoEvents?: Array; /** * Vendor name for TCF compliant consent modal, required for Custom Managed @@ -658,7 +659,7 @@ export namespace Configuration { export interface Consent { enabled: boolean; - buttonTextTranslations?: unknown; + buttonTextTranslations?: ZarazAPI.ButtonTextTranslation; companyEmail?: string; @@ -913,7 +914,7 @@ export namespace ConfigUpdateParams { /** * Actions configured on a tool. Either this or neoEvents field is required. */ - actions?: unknown; + actions?: Record; /** * Default consent purpose ID @@ -924,7 +925,7 @@ export namespace ConfigUpdateParams { * DEPRECATED - List of actions configured on a tool. Either this or actions field * is required. If both are present, actions field will take precedence. */ - neoEvents?: Array; + neoEvents?: Array; /** * Vendor name for TCF compliant consent modal, required for Custom Managed @@ -985,7 +986,7 @@ export namespace ConfigUpdateParams { /** * Actions configured on a tool. Either this or neoEvents field is required. */ - actions?: unknown; + actions?: Record; /** * Default consent purpose ID @@ -996,7 +997,7 @@ export namespace ConfigUpdateParams { * DEPRECATED - List of actions configured on a tool. Either this or actions field * is required. If both are present, actions field will take precedence. */ - neoEvents?: Array; + neoEvents?: Array; /** * Vendor name for TCF compliant consent modal, required for Custom Managed @@ -1350,7 +1351,7 @@ export namespace ConfigUpdateParams { export interface Consent { enabled: boolean; - buttonTextTranslations?: unknown; + buttonTextTranslations?: ZarazAPI.ButtonTextTranslationParam; companyEmail?: string; diff --git a/src/resources/zaraz/zaraz.ts b/src/resources/zaraz/zaraz.ts index 26679d7d90..9c2ea51f7b 100644 --- a/src/resources/zaraz/zaraz.ts +++ b/src/resources/zaraz/zaraz.ts @@ -43,9 +43,83 @@ export class Zaraz extends APIResource { } } -export type ButtonTextTranslation = unknown; +export interface ButtonTextTranslation { + /** + * Object where keys are language codes + */ + accept_all: Record; + + /** + * Object where keys are language codes + */ + confirm_my_choices: Record; + + /** + * Object where keys are language codes + */ + reject_all: Record; +} + +export interface ButtonTextTranslationParam { + /** + * Object where keys are language codes + */ + accept_all: Record; + + /** + * Object where keys are language codes + */ + confirm_my_choices: Record; + + /** + * Object where keys are language codes + */ + reject_all: Record; +} + +export interface NeoEvent { + /** + * Tool event type + */ + actionType: string; -export type NeoEvent = unknown; + /** + * List of blocking triggers IDs + */ + blockingTriggers: Array; + + /** + * Event payload + */ + data: unknown; + + /** + * List of firing triggers IDs + */ + firingTriggers: Array; +} + +export interface NeoEventParam { + /** + * Tool event type + */ + actionType: string; + + /** + * List of blocking triggers IDs + */ + blockingTriggers: Array; + + /** + * Event payload + */ + data: unknown; + + /** + * List of firing triggers IDs + */ + firingTriggers: Array; +} export interface ZarazUpdateParams { /** diff --git a/src/resources/zero-trust/access/applications/applications.ts b/src/resources/zero-trust/access/applications/applications.ts index a4bf6977ac..acb072ff47 100644 --- a/src/resources/zero-trust/access/applications/applications.ts +++ b/src/resources/zero-trust/access/applications/applications.ts @@ -614,7 +614,10 @@ export namespace Application { */ idp_entity_id?: string; - name_id_format?: unknown; + /** + * The format of the name identifier sent to the SaaS application. + */ + name_id_format?: ApplicationsAPI.SaaSAppNameIDFormat; /** * A [JSONata](https://jsonata.org/) expression that transforms an application's @@ -1950,7 +1953,15 @@ export namespace OIDCSaaSAppParam { } } -export type SaaSAppNameIDFormat = unknown; +/** + * The format of the name identifier sent to the SaaS application. + */ +export type SaaSAppNameIDFormat = 'id' | 'email'; + +/** + * The format of the name identifier sent to the SaaS application. + */ +export type SaaSAppNameIDFormatParam = 'id' | 'email'; export interface SAMLSaaSApp { /** @@ -1980,7 +1991,10 @@ export interface SAMLSaaSApp { */ idp_entity_id?: string; - name_id_format?: unknown; + /** + * The format of the name identifier sent to the SaaS application. + */ + name_id_format?: SaaSAppNameIDFormat; /** * A [JSONata](https://jsonata.org/) expression that transforms an application's @@ -2100,7 +2114,10 @@ export interface SAMLSaaSAppParam { */ idp_entity_id?: string; - name_id_format?: unknown; + /** + * The format of the name identifier sent to the SaaS application. + */ + name_id_format?: SaaSAppNameIDFormatParam; /** * A [JSONata](https://jsonata.org/) expression that transforms an application's @@ -13171,10 +13188,6 @@ export declare namespace ApplicationCreateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -13416,10 +13429,6 @@ export declare namespace ApplicationCreateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -13807,10 +13816,6 @@ export declare namespace ApplicationCreateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -14198,10 +14203,6 @@ export declare namespace ApplicationCreateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -14493,10 +14494,6 @@ export declare namespace ApplicationCreateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -14790,10 +14787,6 @@ export declare namespace ApplicationCreateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -15087,10 +15080,6 @@ export declare namespace ApplicationCreateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -15776,10 +15765,6 @@ export declare namespace ApplicationCreateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -16181,10 +16166,6 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -16426,10 +16407,6 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -16817,10 +16794,6 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -17208,10 +17181,6 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -17503,10 +17472,6 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -17800,10 +17765,6 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -18097,10 +18058,6 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy @@ -18786,10 +18743,6 @@ export declare namespace ApplicationUpdateParams { precedence?: number; } - /** - * An application-scoped policy JSON. If the policy does not yet exist, it will be - * created. - */ export interface UnionMember2 { /** * The UUID of the policy diff --git a/src/resources/zero-trust/access/applications/user-policy-checks.ts b/src/resources/zero-trust/access/applications/user-policy-checks.ts index bff8098bea..1cad615b42 100644 --- a/src/resources/zero-trust/access/applications/user-policy-checks.ts +++ b/src/resources/zero-trust/access/applications/user-policy-checks.ts @@ -3,6 +3,7 @@ import { APIResource } from '../../../../resource'; import { isRequestOptions } from '../../../../core'; import * as Core from '../../../../core'; +import * as UserPolicyChecksAPI from './user-policy-checks'; import * as ApplicationsAPI from './applications'; import { CloudflareError } from '../../../../error'; @@ -53,7 +54,9 @@ export class UserPolicyChecks extends APIResource { } } -export type UserPolicyCheckGeo = unknown; +export interface UserPolicyCheckGeo { + country?: string; +} export interface UserPolicyCheckListResponse { app_state?: UserPolicyCheckListResponse.AppState; @@ -88,7 +91,7 @@ export namespace UserPolicyCheckListResponse { email?: string; - geo?: unknown; + geo?: UserPolicyChecksAPI.UserPolicyCheckGeo; iat?: number; diff --git a/src/resources/zero-trust/access/users/active-sessions.ts b/src/resources/zero-trust/access/users/active-sessions.ts index acc7952e98..293defd2cc 100644 --- a/src/resources/zero-trust/access/users/active-sessions.ts +++ b/src/resources/zero-trust/access/users/active-sessions.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../../resource'; import * as Core from '../../../../core'; +import * as UserPolicyChecksAPI from '../applications/user-policy-checks'; import { SinglePage } from '../../../../pagination'; export class ActiveSessions extends APIResource { @@ -91,7 +92,7 @@ export interface ActiveSessionGetResponse { email?: string; - geo?: unknown; + geo?: UserPolicyChecksAPI.UserPolicyCheckGeo; iat?: number; diff --git a/src/resources/zero-trust/access/users/last-seen-identity.ts b/src/resources/zero-trust/access/users/last-seen-identity.ts index a195403c8e..6a22e52a67 100644 --- a/src/resources/zero-trust/access/users/last-seen-identity.ts +++ b/src/resources/zero-trust/access/users/last-seen-identity.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../../resource'; import * as Core from '../../../../core'; +import * as UserPolicyChecksAPI from '../applications/user-policy-checks'; export class LastSeenIdentity extends APIResource { /** @@ -37,7 +38,7 @@ export interface Identity { email?: string; - geo?: unknown; + geo?: UserPolicyChecksAPI.UserPolicyCheckGeo; iat?: number; diff --git a/src/resources/zero-trust/devices/dex-tests.ts b/src/resources/zero-trust/devices/dex-tests.ts index 4a43066b2d..1f7e2ddd2d 100644 --- a/src/resources/zero-trust/devices/dex-tests.ts +++ b/src/resources/zero-trust/devices/dex-tests.ts @@ -87,7 +87,64 @@ export class DEXTests extends APIResource { export class SchemaHTTPSSinglePage extends SinglePage {} -export type DEXTest = unknown; +export interface DEXTest { + /** + * The configuration object which contains the details for the WARP client to + * conduct the test. + */ + data: SchemaData; + + /** + * Determines whether or not the test is active. + */ + enabled: boolean; + + /** + * How often the test will run. + */ + interval: string; + + /** + * The name of the DEX test. Must be unique. + */ + name: string; + + /** + * Additional details about the test. + */ + description?: string; + + /** + * Device settings profiles targeted by this test + */ + target_policies?: Array; + + targeted?: boolean; + + /** + * The unique identifier for the test. + */ + test_id?: string; +} + +export namespace DEXTest { + export interface TargetPolicy { + /** + * The id of the device settings profile + */ + id?: string; + + /** + * Whether the profile is the account default + */ + default?: boolean; + + /** + * The name of the device settings profile + */ + name?: string; + } +} /** * The configuration object which contains the details for the WARP client to diff --git a/src/resources/zero-trust/devices/policies/policies.ts b/src/resources/zero-trust/devices/policies/policies.ts index 1317ec903c..b075c8d268 100644 --- a/src/resources/zero-trust/devices/policies/policies.ts +++ b/src/resources/zero-trust/devices/policies/policies.ts @@ -75,7 +75,7 @@ export interface FallbackDomainParam { dns_server?: Array; } -export type FallbackDomainPolicy = unknown; +export type FallbackDomainPolicy = Array; export interface SettingsPolicy { /** diff --git a/src/resources/zero-trust/devices/posture/posture.ts b/src/resources/zero-trust/devices/posture/posture.ts index ceec2f41cd..9804b10b05 100644 --- a/src/resources/zero-trust/devices/posture/posture.ts +++ b/src/resources/zero-trust/devices/posture/posture.ts @@ -140,7 +140,10 @@ export interface CrowdstrikeInput { */ last_seen?: string; - operator?: unknown; + /** + * operator + */ + operator?: '<' | '<=' | '>' | '>=' | '=='; /** * Os Version @@ -184,7 +187,10 @@ export interface CrowdstrikeInputParam { */ last_seen?: string; - operator?: unknown; + /** + * operator + */ + operator?: '<' | '<=' | '>' | '>=' | '=='; /** * Os Version @@ -242,7 +248,10 @@ export type DeviceInput = export namespace DeviceInput { export interface TeamsDevicesCarbonblackInputRequest { - operating_system: unknown; + /** + * Operating system + */ + operating_system: 'windows' | 'linux' | 'mac'; /** * File path. @@ -261,7 +270,10 @@ export namespace DeviceInput { } export interface TeamsDevicesApplicationInputRequest { - operating_system: unknown; + /** + * Operating system + */ + operating_system: 'windows' | 'linux' | 'mac'; /** * Path for the application. @@ -291,7 +303,10 @@ export namespace DeviceInput { */ check_private_key: boolean; - operating_system: unknown; + /** + * Operating system + */ + operating_system: 'windows' | 'linux' | 'mac'; /** * Common Name that is protected by the client certificate. This may include one or @@ -329,7 +344,10 @@ export namespace DeviceInput { */ connection_id: string; - operator: unknown; + /** + * operator + */ + operator: '<' | '<=' | '>' | '>=' | '=='; /** * A value between 0-100 assigned to devices set by the 3rd party posture provider. @@ -363,7 +381,10 @@ export type DeviceInputParam = export namespace DeviceInputParam { export interface TeamsDevicesCarbonblackInputRequest { - operating_system: unknown; + /** + * Operating system + */ + operating_system: 'windows' | 'linux' | 'mac'; /** * File path. @@ -382,7 +403,10 @@ export namespace DeviceInputParam { } export interface TeamsDevicesApplicationInputRequest { - operating_system: unknown; + /** + * Operating system + */ + operating_system: 'windows' | 'linux' | 'mac'; /** * Path for the application. @@ -412,7 +436,10 @@ export namespace DeviceInputParam { */ check_private_key: boolean; - operating_system: unknown; + /** + * Operating system + */ + operating_system: 'windows' | 'linux' | 'mac'; /** * Common Name that is protected by the client certificate. This may include one or @@ -450,7 +477,10 @@ export namespace DeviceInputParam { */ connection_id: string; - operator: unknown; + /** + * operator + */ + operator: '<' | '<=' | '>' | '>=' | '=='; /** * A value between 0-100 assigned to devices set by the 3rd party posture provider. @@ -581,7 +611,10 @@ export interface DomainJoinedInputParam { } export interface FileInput { - operating_system: unknown; + /** + * Operating system + */ + operating_system: 'windows' | 'linux' | 'mac'; /** * File path. @@ -605,7 +638,10 @@ export interface FileInput { } export interface FileInputParam { - operating_system: unknown; + /** + * Operating system + */ + operating_system: 'windows' | 'linux' | 'mac'; /** * File path. @@ -716,7 +752,10 @@ export interface OSVersionInput { */ operating_system: 'windows'; - operator: unknown; + /** + * operator + */ + operator: '<' | '<=' | '>' | '>=' | '=='; /** * Version of OS @@ -746,7 +785,10 @@ export interface OSVersionInputParam { */ operating_system: 'windows'; - operator: unknown; + /** + * operator + */ + operator: '<' | '<=' | '>' | '>=' | '=='; /** * Version of OS @@ -771,7 +813,10 @@ export interface OSVersionInputParam { } export interface SentineloneInput { - operating_system: unknown; + /** + * Operating system + */ + operating_system: 'windows' | 'linux' | 'mac'; /** * File path. @@ -790,7 +835,10 @@ export interface SentineloneInput { } export interface SentineloneInputParam { - operating_system: unknown; + /** + * Operating system + */ + operating_system: 'windows' | 'linux' | 'mac'; /** * File path. @@ -846,7 +894,10 @@ export interface SentineloneS2sInput { | 'disabled_error' | 'db_corruption'; - operator?: unknown; + /** + * operator + */ + operator?: '<' | '<=' | '>' | '>=' | '=='; } export interface SentineloneS2sInputParam { @@ -887,7 +938,10 @@ export interface SentineloneS2sInputParam { | 'disabled_error' | 'db_corruption'; - operator?: unknown; + /** + * operator + */ + operator?: '<' | '<=' | '>' | '>=' | '=='; } export interface TaniumInput { diff --git a/src/resources/zero-trust/dex/dex.ts b/src/resources/zero-trust/dex/dex.ts index d2124d2cee..8daee8b7c5 100644 --- a/src/resources/zero-trust/dex/dex.ts +++ b/src/resources/zero-trust/dex/dex.ts @@ -47,7 +47,16 @@ export class DEX extends APIResource { tracerouteTests: TracerouteTestsAPI.TracerouteTests = new TracerouteTestsAPI.TracerouteTests(this._client); } -export type DigitalExperienceMonitor = unknown; +export interface DigitalExperienceMonitor { + id: string; + + /** + * Whether the policy is the default for the account + */ + default: boolean; + + name: string; +} export interface NetworkPath { slots: Array; diff --git a/src/resources/zero-trust/dex/http-tests/http-tests.ts b/src/resources/zero-trust/dex/http-tests/http-tests.ts index 3f6d6e3512..966ddf097c 100644 --- a/src/resources/zero-trust/dex/http-tests/http-tests.ts +++ b/src/resources/zero-trust/dex/http-tests/http-tests.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../../../resource'; import * as Core from '../../../../core'; +import * as DEXAPI from '../dex'; import * as PercentilesAPI from './percentiles'; import { HTTPDetailsPercentiles, PercentileGetParams, Percentiles, TestStatOverTime } from './percentiles'; @@ -54,7 +55,7 @@ export interface HTTPDetails { */ name?: string; - target_policies?: Array | null; + target_policies?: Array | null; targeted?: boolean; } diff --git a/src/resources/zero-trust/dex/tests/tests.ts b/src/resources/zero-trust/dex/tests/tests.ts index 6eebdb72b4..c269b87f60 100644 --- a/src/resources/zero-trust/dex/tests/tests.ts +++ b/src/resources/zero-trust/dex/tests/tests.ts @@ -3,6 +3,7 @@ import { APIResource } from '../../../../resource'; import * as Core from '../../../../core'; import * as TestsAPI from './tests'; +import * as DEXAPI from '../dex'; import * as UniqueDevicesAPI from './unique-devices'; import { UniqueDeviceListParams, UniqueDevices } from './unique-devices'; import { V4PagePagination, type V4PagePaginationParams } from '../../../../pagination'; @@ -110,7 +111,7 @@ export namespace Tests { */ method?: string; - target_policies?: Array | null; + target_policies?: Array | null; targeted?: boolean; diff --git a/src/resources/zero-trust/dex/traceroute-tests.ts b/src/resources/zero-trust/dex/traceroute-tests.ts index 80c2fb7f09..9ff5b13195 100644 --- a/src/resources/zero-trust/dex/traceroute-tests.ts +++ b/src/resources/zero-trust/dex/traceroute-tests.ts @@ -78,7 +78,7 @@ export interface Traceroute { */ name: string; - target_policies?: Array | null; + target_policies?: Array | null; targeted?: boolean; diff --git a/src/resources/zero-trust/gateway/configurations/configurations.ts b/src/resources/zero-trust/gateway/configurations/configurations.ts index 96c242c327..88f7af6a88 100755 --- a/src/resources/zero-trust/gateway/configurations/configurations.ts +++ b/src/resources/zero-trust/gateway/configurations/configurations.ts @@ -72,6 +72,16 @@ export interface ActivityLogSettings { enabled?: boolean; } +/** + * Activity log settings. + */ +export interface ActivityLogSettingsParam { + /** + * Enable activity logging. + */ + enabled?: boolean; +} + /** * Anti-virus settings. */ @@ -98,6 +108,32 @@ export interface AntiVirusSettings { notification_settings?: NotificationSettings; } +/** + * Anti-virus settings. + */ +export interface AntiVirusSettingsParam { + /** + * Enable anti-virus scanning on downloads. + */ + enabled_download_phase?: boolean; + + /** + * Enable anti-virus scanning on uploads. + */ + enabled_upload_phase?: boolean; + + /** + * Block requests for files that cannot be scanned. + */ + fail_closed?: boolean; + + /** + * Configure a message to display on the user's device when an antivirus search is + * performed. + */ + notification_settings?: NotificationSettingsParam; +} + /** * Block page layout settings. */ @@ -167,6 +203,75 @@ export interface BlockPageSettings { target_uri?: string; } +/** + * Block page layout settings. + */ +export interface BlockPageSettingsParam { + /** + * If mode is customized_block_page: block page background color in #rrggbb format. + */ + background_color?: string; + + /** + * Enable only cipher suites and TLS versions compliant with FIPS 140-2. + */ + enabled?: boolean; + + /** + * If mode is customized_block_page: block page footer text. + */ + footer_text?: string; + + /** + * If mode is customized_block_page: block page header text. + */ + header_text?: string; + + /** + * If mode is redirect_uri: when enabled, context will be appended to target_uri as + * query parameters. + */ + include_context?: boolean; + + /** + * If mode is customized_block_page: full URL to the logo file. + */ + logo_path?: string; + + /** + * If mode is customized_block_page: admin email for users to contact. + */ + mailto_address?: string; + + /** + * If mode is customized_block_page: subject line for emails created from block + * page. + */ + mailto_subject?: string; + + /** + * Controls whether the user is redirected to a Cloudflare-hosted block page or to + * a customer-provided URI. + */ + mode?: 'customized_block_page' | 'redirect_uri'; + + /** + * If mode is customized_block_page: block page title. + */ + name?: string; + + /** + * If mode is customized_block_page: suppress detailed info at the bottom of the + * block page. + */ + suppress_footer?: boolean; + + /** + * If mode is redirect_uri: URI to which the user should be redirected. + */ + target_uri?: string; +} + /** * DLP body scanning settings. */ @@ -177,6 +282,16 @@ export interface BodyScanningSettings { inspection_mode?: string; } +/** + * DLP body scanning settings. + */ +export interface BodyScanningSettingsParam { + /** + * Set the inspection mode to either `deep` or `shallow`. + */ + inspection_mode?: string; +} + /** * Browser isolation settings. */ @@ -192,6 +307,21 @@ export interface BrowserIsolationSettings { url_browser_isolation_enabled?: boolean; } +/** + * Browser isolation settings. + */ +export interface BrowserIsolationSettingsParam { + /** + * Enable non-identity onramp support for Browser Isolation. + */ + non_identity_enabled?: boolean; + + /** + * Enable Clientless Browser Isolation. + */ + url_browser_isolation_enabled?: boolean; +} + /** * @deprecated Custom certificate settings for BYO-PKI. (deprecated and replaced by * `certificate`) @@ -215,6 +345,22 @@ export interface CustomCertificateSettings { updated_at?: string; } +/** + * @deprecated Custom certificate settings for BYO-PKI. (deprecated and replaced by + * `certificate`) + */ +export interface CustomCertificateSettingsParam { + /** + * Enable use of custom certificate authority for signing Gateway traffic. + */ + enabled: boolean; + + /** + * UUID of certificate (ID from MTLS certificate store). + */ + id?: string; +} + /** * Extended e-mail matching settings. */ @@ -226,6 +372,17 @@ export interface ExtendedEmailMatching { enabled?: boolean; } +/** + * Extended e-mail matching settings. + */ +export interface ExtendedEmailMatchingParam { + /** + * Enable matching all variants of user emails (with + or . modifiers) used as + * criteria in Firewall policies. + */ + enabled?: boolean; +} + /** * FIPS settings. */ @@ -236,7 +393,209 @@ export interface FipsSettings { tls?: boolean; } -export type GatewayConfigurationSettings = unknown; +/** + * FIPS settings. + */ +export interface FipsSettingsParam { + /** + * Enable only cipher suites and TLS versions compliant with FIPS 140-2. + */ + tls?: boolean; +} + +/** + * Account settings + */ +export interface GatewayConfigurationSettings { + /** + * Activity log settings. + */ + activity_log?: ActivityLogSettings; + + /** + * Anti-virus settings. + */ + antivirus?: AntiVirusSettings; + + /** + * Block page layout settings. + */ + block_page?: BlockPageSettings; + + /** + * DLP body scanning settings. + */ + body_scanning?: BodyScanningSettings; + + /** + * Browser isolation settings. + */ + browser_isolation?: BrowserIsolationSettings; + + /** + * Certificate settings for Gateway TLS interception. If not specified, the + * Cloudflare Root CA will be used. + */ + certificate?: GatewayConfigurationSettings.Certificate; + + /** + * @deprecated Custom certificate settings for BYO-PKI. (deprecated and replaced by + * `certificate`) + */ + custom_certificate?: CustomCertificateSettings; + + /** + * Extended e-mail matching settings. + */ + extended_email_matching?: ExtendedEmailMatching; + + /** + * FIPS settings. + */ + fips?: FipsSettings; + + /** + * Protocol Detection settings. + */ + protocol_detection?: ProtocolDetection; + + /** + * Sandbox settings. + */ + sandbox?: GatewayConfigurationSettings.Sandbox; + + /** + * TLS interception settings. + */ + tls_decrypt?: TLSSettings; +} + +export namespace GatewayConfigurationSettings { + /** + * Certificate settings for Gateway TLS interception. If not specified, the + * Cloudflare Root CA will be used. + */ + export interface Certificate { + /** + * UUID of certificate to be used for interception. Certificate must be available + * (previously called 'active') on the edge. A nil UUID will indicate the + * Cloudflare Root CA should be used. + */ + id: string; + } + + /** + * Sandbox settings. + */ + export interface Sandbox { + /** + * Enable sandbox. + */ + enabled?: boolean; + + /** + * Action to take when the file cannot be scanned. + */ + fallback_action?: 'allow' | 'block'; + } +} + +/** + * Account settings + */ +export interface GatewayConfigurationSettingsParam { + /** + * Activity log settings. + */ + activity_log?: ActivityLogSettingsParam; + + /** + * Anti-virus settings. + */ + antivirus?: AntiVirusSettingsParam; + + /** + * Block page layout settings. + */ + block_page?: BlockPageSettingsParam; + + /** + * DLP body scanning settings. + */ + body_scanning?: BodyScanningSettingsParam; + + /** + * Browser isolation settings. + */ + browser_isolation?: BrowserIsolationSettingsParam; + + /** + * Certificate settings for Gateway TLS interception. If not specified, the + * Cloudflare Root CA will be used. + */ + certificate?: GatewayConfigurationSettingsParam.Certificate; + + /** + * @deprecated Custom certificate settings for BYO-PKI. (deprecated and replaced by + * `certificate`) + */ + custom_certificate?: CustomCertificateSettingsParam; + + /** + * Extended e-mail matching settings. + */ + extended_email_matching?: ExtendedEmailMatchingParam; + + /** + * FIPS settings. + */ + fips?: FipsSettingsParam; + + /** + * Protocol Detection settings. + */ + protocol_detection?: ProtocolDetectionParam; + + /** + * Sandbox settings. + */ + sandbox?: GatewayConfigurationSettingsParam.Sandbox; + + /** + * TLS interception settings. + */ + tls_decrypt?: TLSSettingsParam; +} + +export namespace GatewayConfigurationSettingsParam { + /** + * Certificate settings for Gateway TLS interception. If not specified, the + * Cloudflare Root CA will be used. + */ + export interface Certificate { + /** + * UUID of certificate to be used for interception. Certificate must be available + * (previously called 'active') on the edge. A nil UUID will indicate the + * Cloudflare Root CA should be used. + */ + id: string; + } + + /** + * Sandbox settings. + */ + export interface Sandbox { + /** + * Enable sandbox. + */ + enabled?: boolean; + + /** + * Action to take when the file cannot be scanned. + */ + fallback_action?: 'allow' | 'block'; + } +} /** * Configure a message to display on the user's device when an antivirus search is @@ -260,6 +619,28 @@ export interface NotificationSettings { support_url?: string; } +/** + * Configure a message to display on the user's device when an antivirus search is + * performed. + */ +export interface NotificationSettingsParam { + /** + * Set notification on + */ + enabled?: boolean; + + /** + * Customize the message shown in the notification. + */ + msg?: string; + + /** + * Optional URL to direct users to additional information. If not set, the + * notification will open a block page. + */ + support_url?: string; +} + /** * Protocol Detection settings. */ @@ -270,6 +651,16 @@ export interface ProtocolDetection { enabled?: boolean; } +/** + * Protocol Detection settings. + */ +export interface ProtocolDetectionParam { + /** + * Enable detecting protocol on initial bytes of client traffic. + */ + enabled?: boolean; +} + /** * TLS interception settings. */ @@ -280,13 +671,26 @@ export interface TLSSettings { enabled?: boolean; } +/** + * TLS interception settings. + */ +export interface TLSSettingsParam { + /** + * Enable inspecting encrypted HTTP traffic. + */ + enabled?: boolean; +} + /** * Account settings */ export interface ConfigurationUpdateResponse { created_at?: string; - settings?: unknown; + /** + * Account settings + */ + settings?: GatewayConfigurationSettings; updated_at?: string; } @@ -297,7 +701,10 @@ export interface ConfigurationUpdateResponse { export interface ConfigurationEditResponse { created_at?: string; - settings?: unknown; + /** + * Account settings + */ + settings?: GatewayConfigurationSettings; updated_at?: string; } @@ -308,7 +715,10 @@ export interface ConfigurationEditResponse { export interface ConfigurationGetResponse { created_at?: string; - settings?: unknown; + /** + * Account settings + */ + settings?: GatewayConfigurationSettings; updated_at?: string; } @@ -320,9 +730,9 @@ export interface ConfigurationUpdateParams { account_id: string; /** - * Body param: + * Body param: Account settings */ - settings?: unknown; + settings?: GatewayConfigurationSettingsParam; } export interface ConfigurationEditParams { @@ -332,9 +742,9 @@ export interface ConfigurationEditParams { account_id: string; /** - * Body param: + * Body param: Account settings */ - settings?: unknown; + settings?: GatewayConfigurationSettingsParam; } export interface ConfigurationGetParams { diff --git a/src/resources/zero-trust/gateway/logging.ts b/src/resources/zero-trust/gateway/logging.ts index c8239d0896..4ee1d1c029 100644 --- a/src/resources/zero-trust/gateway/logging.ts +++ b/src/resources/zero-trust/gateway/logging.ts @@ -36,7 +36,32 @@ export interface LoggingSetting { */ redact_pii?: boolean; - settings_by_rule_type?: unknown; + /** + * Logging settings by rule type. + */ + settings_by_rule_type?: LoggingSetting.SettingsByRuleType; +} + +export namespace LoggingSetting { + /** + * Logging settings by rule type. + */ + export interface SettingsByRuleType { + /** + * Logging settings for DNS firewall. + */ + dns?: unknown; + + /** + * Logging settings for HTTP/HTTPS firewall. + */ + http?: unknown; + + /** + * Logging settings for Network firewall. + */ + l4?: unknown; + } } export interface LoggingUpdateParams { @@ -53,9 +78,31 @@ export interface LoggingUpdateParams { redact_pii?: boolean; /** - * Body param: + * Body param: Logging settings by rule type. + */ + settings_by_rule_type?: LoggingUpdateParams.SettingsByRuleType; +} + +export namespace LoggingUpdateParams { + /** + * Logging settings by rule type. */ - settings_by_rule_type?: unknown; + export interface SettingsByRuleType { + /** + * Logging settings for DNS firewall. + */ + dns?: unknown; + + /** + * Logging settings for HTTP/HTTPS firewall. + */ + http?: unknown; + + /** + * Logging settings for Network firewall. + */ + l4?: unknown; + } } export interface LoggingGetParams { diff --git a/src/resources/zero-trust/identity-providers/identity-providers.ts b/src/resources/zero-trust/identity-providers/identity-providers.ts index 2ef0dc1f86..2e9208c858 100644 --- a/src/resources/zero-trust/identity-providers/identity-providers.ts +++ b/src/resources/zero-trust/identity-providers/identity-providers.ts @@ -221,14 +221,23 @@ export interface AzureAD { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProviderSCIMConfig; } export namespace AzureAD { @@ -300,9 +309,18 @@ export interface AzureADParam { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProviderTypeParam; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AzureADParam { @@ -415,14 +433,23 @@ export namespace IdentityProvider { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessCentrify { @@ -477,14 +504,23 @@ export namespace IdentityProvider { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export interface AccessGitHub { @@ -500,14 +536,23 @@ export namespace IdentityProvider { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export interface AccessGoogle { @@ -523,14 +568,23 @@ export namespace IdentityProvider { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessGoogle { @@ -575,14 +629,23 @@ export namespace IdentityProvider { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessGoogleApps { @@ -632,14 +695,23 @@ export namespace IdentityProvider { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export interface AccessOIDC { @@ -655,14 +727,23 @@ export namespace IdentityProvider { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessOIDC { @@ -732,14 +813,23 @@ export namespace IdentityProvider { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessOkta { @@ -794,14 +884,23 @@ export namespace IdentityProvider { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessOnelogin { @@ -851,14 +950,23 @@ export namespace IdentityProvider { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessPingone { @@ -908,14 +1016,23 @@ export namespace IdentityProvider { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessSAML { @@ -992,14 +1109,23 @@ export namespace IdentityProvider { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export interface AccessOnetimepin { @@ -1015,14 +1141,23 @@ export namespace IdentityProvider { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessOnetimepin { @@ -1067,9 +1202,18 @@ export namespace IdentityProviderParam { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderTypeParam; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; } export namespace AccessCentrify { @@ -1124,9 +1268,18 @@ export namespace IdentityProviderParam { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderTypeParam; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; } export interface AccessGitHub { @@ -1142,9 +1295,18 @@ export namespace IdentityProviderParam { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderTypeParam; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; } export interface AccessGoogle { @@ -1160,9 +1322,18 @@ export namespace IdentityProviderParam { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderTypeParam; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; } export namespace AccessGoogle { @@ -1207,9 +1378,18 @@ export namespace IdentityProviderParam { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderTypeParam; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; } export namespace AccessGoogleApps { @@ -1259,9 +1439,18 @@ export namespace IdentityProviderParam { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderTypeParam; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; } export interface AccessOIDC { @@ -1277,9 +1466,18 @@ export namespace IdentityProviderParam { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderTypeParam; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; } export namespace AccessOIDC { @@ -1349,9 +1547,18 @@ export namespace IdentityProviderParam { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderTypeParam; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; } export namespace AccessOkta { @@ -1406,9 +1613,18 @@ export namespace IdentityProviderParam { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderTypeParam; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; } export namespace AccessOnelogin { @@ -1458,9 +1674,18 @@ export namespace IdentityProviderParam { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderTypeParam; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; } export namespace AccessPingone { @@ -1510,9 +1735,18 @@ export namespace IdentityProviderParam { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderTypeParam; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; } export namespace AccessSAML { @@ -1589,9 +1823,18 @@ export namespace IdentityProviderParam { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderTypeParam; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; } export interface AccessOnetimepin { @@ -1607,9 +1850,18 @@ export namespace IdentityProviderParam { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderTypeParam; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfigParam; } export namespace AccessOnetimepin { @@ -1622,9 +1874,129 @@ export namespace IdentityProviderParam { } } -export type IdentityProviderSCIMConfig = unknown; +/** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ +export interface IdentityProviderSCIMConfig { + /** + * A flag to enable or disable SCIM for the identity provider. + */ + enabled?: boolean; + + /** + * Indicates how a SCIM event updates a user identity used for policy evaluation. + * Use "automatic" to automatically update a user's identity and augment it with + * fields from the SCIM user resource. Use "reauth" to force re-authentication on + * group membership updates, user identity update will only occur after successful + * re-authentication. With "reauth" identities will not contain fields from the + * SCIM user resource. With "no_action" identities will not be changed by SCIM + * updates in any way and users will not be prompted to reauthenticate. + */ + identity_update_behavior?: 'automatic' | 'reauth' | 'no_action'; -export type IdentityProviderType = unknown; + /** + * The base URL of Cloudflare's SCIM V2.0 API endpoint. + */ + scim_base_url?: string; + + /** + * A flag to remove a user's seat in Zero Trust when they have been deprovisioned + * in the Identity Provider. This cannot be enabled unless user_deprovision is also + * enabled. + */ + seat_deprovision?: boolean; + + /** + * A read-only token generated when the SCIM integration is enabled for the first + * time. It is redacted on subsequent requests. If you lose this you will need to + * refresh it at /access/identity_providers/:idpID/refresh_scim_secret. + */ + secret?: string; + + /** + * A flag to enable revoking a user's session in Access and Gateway when they have + * been deprovisioned in the Identity Provider. + */ + user_deprovision?: boolean; +} + +/** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ +export interface IdentityProviderSCIMConfigParam { + /** + * A flag to enable or disable SCIM for the identity provider. + */ + enabled?: boolean; + + /** + * Indicates how a SCIM event updates a user identity used for policy evaluation. + * Use "automatic" to automatically update a user's identity and augment it with + * fields from the SCIM user resource. Use "reauth" to force re-authentication on + * group membership updates, user identity update will only occur after successful + * re-authentication. With "reauth" identities will not contain fields from the + * SCIM user resource. With "no_action" identities will not be changed by SCIM + * updates in any way and users will not be prompted to reauthenticate. + */ + identity_update_behavior?: 'automatic' | 'reauth' | 'no_action'; + + /** + * A flag to remove a user's seat in Zero Trust when they have been deprovisioned + * in the Identity Provider. This cannot be enabled unless user_deprovision is also + * enabled. + */ + seat_deprovision?: boolean; + + /** + * A flag to enable revoking a user's session in Access and Gateway when they have + * been deprovisioned in the Identity Provider. + */ + user_deprovision?: boolean; +} + +/** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ +export type IdentityProviderType = + | 'onetimepin' + | 'azureAD' + | 'saml' + | 'centrify' + | 'facebook' + | 'github' + | 'google-apps' + | 'google' + | 'linkedin' + | 'oidc' + | 'okta' + | 'onelogin' + | 'pingone' + | 'yandex'; + +/** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ +export type IdentityProviderTypeParam = + | 'onetimepin' + | 'azureAD' + | 'saml' + | 'centrify' + | 'facebook' + | 'github' + | 'google-apps' + | 'google' + | 'linkedin' + | 'oidc' + | 'okta' + | 'onelogin' + | 'pingone' + | 'yandex'; export type IdentityProviderListResponse = | AzureAD @@ -1655,14 +2027,23 @@ export namespace IdentityProviderListResponse { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessCentrify { @@ -1717,14 +2098,23 @@ export namespace IdentityProviderListResponse { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export interface AccessGitHub { @@ -1740,14 +2130,23 @@ export namespace IdentityProviderListResponse { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export interface AccessGoogle { @@ -1763,14 +2162,23 @@ export namespace IdentityProviderListResponse { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessGoogle { @@ -1815,14 +2223,23 @@ export namespace IdentityProviderListResponse { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessGoogleApps { @@ -1872,14 +2289,23 @@ export namespace IdentityProviderListResponse { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export interface AccessOIDC { @@ -1895,14 +2321,23 @@ export namespace IdentityProviderListResponse { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessOIDC { @@ -1972,14 +2407,23 @@ export namespace IdentityProviderListResponse { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessOkta { @@ -2034,14 +2478,23 @@ export namespace IdentityProviderListResponse { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessOnelogin { @@ -2091,14 +2544,23 @@ export namespace IdentityProviderListResponse { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessPingone { @@ -2148,14 +2610,23 @@ export namespace IdentityProviderListResponse { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } export namespace AccessSAML { @@ -2232,14 +2703,23 @@ export namespace IdentityProviderListResponse { */ name: string; - type: unknown; + /** + * The type of identity provider. To determine the value for a specific provider, + * refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + */ + type: IdentityProvidersAPI.IdentityProviderType; /** * UUID */ id?: string; - scim_config?: unknown; + /** + * The configuration settings for enabling a System for Cross-Domain Identity + * Management (SCIM) with the identity provider. + */ + scim_config?: IdentityProvidersAPI.IdentityProviderSCIMConfig; } } @@ -2281,9 +2761,11 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2298,9 +2780,10 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AzureAD { @@ -2373,9 +2856,11 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2390,9 +2875,10 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessCentrify { @@ -2448,9 +2934,11 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2465,9 +2953,10 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export interface AccessGitHub { @@ -2484,9 +2973,11 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2501,9 +2992,10 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export interface AccessGoogle { @@ -2520,9 +3012,11 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2537,9 +3031,10 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessGoogle { @@ -2585,9 +3080,11 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2602,9 +3099,10 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessGoogleApps { @@ -2655,9 +3153,11 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2672,9 +3172,10 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export interface AccessOIDC { @@ -2691,9 +3192,11 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2708,9 +3211,10 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessOIDC { @@ -2781,9 +3285,11 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2798,9 +3304,10 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessOkta { @@ -2856,9 +3363,11 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2873,9 +3382,10 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessOnelogin { @@ -2926,9 +3436,11 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -2943,9 +3455,10 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessPingone { @@ -2996,9 +3509,11 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3013,9 +3528,10 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessSAML { @@ -3093,9 +3609,11 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3110,9 +3628,10 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export interface AccessOnetimepin { @@ -3129,9 +3648,11 @@ export declare namespace IdentityProviderCreateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3146,9 +3667,10 @@ export declare namespace IdentityProviderCreateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessOnetimepin { @@ -3192,9 +3714,11 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3209,9 +3733,10 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AzureAD { @@ -3284,9 +3809,11 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3301,9 +3828,10 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessCentrify { @@ -3359,9 +3887,11 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3376,9 +3906,10 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export interface AccessGitHub { @@ -3395,9 +3926,11 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3412,9 +3945,10 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export interface AccessGoogle { @@ -3431,9 +3965,11 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3448,9 +3984,10 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessGoogle { @@ -3496,9 +4033,11 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3513,9 +4052,10 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessGoogleApps { @@ -3566,9 +4106,11 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3583,9 +4125,10 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export interface AccessOIDC { @@ -3602,9 +4145,11 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3619,9 +4164,10 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessOIDC { @@ -3692,9 +4238,11 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3709,9 +4257,10 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessOkta { @@ -3767,9 +4316,11 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3784,9 +4335,10 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessOnelogin { @@ -3837,9 +4389,11 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3854,9 +4408,10 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessPingone { @@ -3907,9 +4462,11 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -3924,9 +4481,10 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessSAML { @@ -4004,9 +4562,11 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -4021,9 +4581,10 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export interface AccessOnetimepin { @@ -4040,9 +4601,11 @@ export declare namespace IdentityProviderUpdateParams { name: string; /** - * Body param: + * Body param: The type of identity provider. To determine the value for a specific + * provider, refer to our + * [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). */ - type: unknown; + type: IdentityProviderTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -4057,9 +4620,10 @@ export declare namespace IdentityProviderUpdateParams { zone_id?: string; /** - * Body param: + * Body param: The configuration settings for enabling a System for Cross-Domain + * Identity Management (SCIM) with the identity provider. */ - scim_config?: unknown; + scim_config?: IdentityProviderSCIMConfigParam; } export namespace AccessOnetimepin { diff --git a/src/resources/zero-trust/networks/routes/routes.ts b/src/resources/zero-trust/networks/routes/routes.ts index 817976366e..e9a509bace 100644 --- a/src/resources/zero-trust/networks/routes/routes.ts +++ b/src/resources/zero-trust/networks/routes/routes.ts @@ -79,7 +79,43 @@ export class Routes extends APIResource { export class TeamnetsV4PagePaginationArray extends V4PagePaginationArray {} -export type NetworkRoute = unknown; +export interface NetworkRoute { + /** + * UUID of the route. + */ + id?: string; + + /** + * Optional remark describing the route. + */ + comment?: string; + + /** + * Timestamp of when the resource was created. + */ + created_at?: string; + + /** + * Timestamp of when the resource was deleted. If `null`, the resource has not been + * deleted. + */ + deleted_at?: string; + + /** + * The private IPv4 or IPv6 range connected by the route, in CIDR notation. + */ + network?: string; + + /** + * UUID of the tunnel. + */ + tunnel_id?: string; + + /** + * UUID of the virtual network. + */ + virtual_network_id?: string; +} export interface Route { /** diff --git a/src/resources/zones/custom-nameservers.ts b/src/resources/zones/custom-nameservers.ts index a1aad92b71..a24f5a3e4a 100644 --- a/src/resources/zones/custom-nameservers.ts +++ b/src/resources/zones/custom-nameservers.ts @@ -2,6 +2,7 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; +import * as Shared from '../shared'; import { SinglePage } from '../../pagination'; /** @@ -57,9 +58,9 @@ export class CustomNameserverUpdateResponsesSinglePage extends SinglePage; + errors: Array; - messages: Array; + messages: Array; /** * Whether the API call was successful diff --git a/src/resources/zones/holds.ts b/src/resources/zones/holds.ts index ca195be8b7..04a1529000 100644 --- a/src/resources/zones/holds.ts +++ b/src/resources/zones/holds.ts @@ -8,13 +8,13 @@ export class Holds extends APIResource { * Enforce a zone hold on the zone, blocking the creation and activation of zones * with this zone's hostname. */ - create(params: HoldCreateParams, options?: Core.RequestOptions): Core.APIPromise { + create(params: HoldCreateParams, options?: Core.RequestOptions): Core.APIPromise { const { zone_id, include_subdomains } = params; return ( this._client.post(`/zones/${zone_id}/hold`, { query: { include_subdomains }, ...options, - }) as Core.APIPromise<{ result: HoldCreateResponse }> + }) as Core.APIPromise<{ result: ZoneHold }> )._thenUnwrap((obj) => obj.result); } @@ -22,13 +22,13 @@ export class Holds extends APIResource { * Stop enforcement of a zone hold on the zone, permanently or temporarily, * allowing the creation and activation of zones with this zone's hostname. */ - delete(params: HoldDeleteParams, options?: Core.RequestOptions): Core.APIPromise { + delete(params: HoldDeleteParams, options?: Core.RequestOptions): Core.APIPromise { const { zone_id, hold_after } = params; return ( this._client.delete(`/zones/${zone_id}/hold`, { query: { hold_after }, ...options, - }) as Core.APIPromise<{ result: HoldDeleteResponse }> + }) as Core.APIPromise<{ result: ZoneHold }> )._thenUnwrap((obj) => obj.result); } @@ -36,11 +36,11 @@ export class Holds extends APIResource { * Update the `hold_after` and/or `include_subdomains` values on an existing zone * hold. The hold is enabled if the `hold_after` date-time value is in the past. */ - edit(params: HoldEditParams, options?: Core.RequestOptions): Core.APIPromise { + edit(params: HoldEditParams, options?: Core.RequestOptions): Core.APIPromise { const { zone_id, ...body } = params; return ( this._client.patch(`/zones/${zone_id}/hold`, { body, ...options }) as Core.APIPromise<{ - result: HoldEditResponse; + result: ZoneHold; }> )._thenUnwrap((obj) => obj.result); } @@ -49,23 +49,21 @@ export class Holds extends APIResource { * Retrieve whether the zone is subject to a zone hold, and metadata about the * hold. */ - get(params: HoldGetParams, options?: Core.RequestOptions): Core.APIPromise { + get(params: HoldGetParams, options?: Core.RequestOptions): Core.APIPromise { const { zone_id } = params; return ( - this._client.get(`/zones/${zone_id}/hold`, options) as Core.APIPromise<{ result: HoldGetResponse }> + this._client.get(`/zones/${zone_id}/hold`, options) as Core.APIPromise<{ result: ZoneHold }> )._thenUnwrap((obj) => obj.result); } } -export type ZoneHold = unknown; +export interface ZoneHold { + hold?: boolean; -export type HoldCreateResponse = unknown; - -export type HoldDeleteResponse = unknown; - -export type HoldEditResponse = unknown; + hold_after?: string; -export type HoldGetResponse = unknown; + include_subdomains?: string; +} export interface HoldCreateParams { /** @@ -130,10 +128,6 @@ export interface HoldGetParams { export declare namespace Holds { export { type ZoneHold as ZoneHold, - type HoldCreateResponse as HoldCreateResponse, - type HoldDeleteResponse as HoldDeleteResponse, - type HoldEditResponse as HoldEditResponse, - type HoldGetResponse as HoldGetResponse, type HoldCreateParams as HoldCreateParams, type HoldDeleteParams as HoldDeleteParams, type HoldEditParams as HoldEditParams, diff --git a/src/resources/zones/index.ts b/src/resources/zones/index.ts index b0c2ba05dc..db4835fceb 100644 --- a/src/resources/zones/index.ts +++ b/src/resources/zones/index.ts @@ -23,10 +23,6 @@ export { export { Holds, type ZoneHold, - type HoldCreateResponse, - type HoldDeleteResponse, - type HoldEditResponse, - type HoldGetResponse, type HoldCreateParams, type HoldDeleteParams, type HoldEditParams, diff --git a/src/resources/zones/settings.ts b/src/resources/zones/settings.ts index ab260eb1fd..76d6abf240 100644 --- a/src/resources/zones/settings.ts +++ b/src/resources/zones/settings.ts @@ -1265,7 +1265,27 @@ export interface OriginErrorPagePassThruParam { value?: 'on' | 'off'; } -export type OriginMaxHTTPVersion = unknown; +export interface OriginMaxHTTPVersion { + /** + * Value of the zone setting. + */ + id: 'origin_max_http_version'; + + /** + * Whether the setting is editable + */ + editable: boolean; + + /** + * The value of the feature + */ + value: '2' | '1'; + + /** + * Last time this setting was modified. + */ + modified_on?: string | null; +} export interface Polish { /** diff --git a/src/resources/zones/zones.ts b/src/resources/zones/zones.ts index feb4e581f4..daaa1c1f00 100644 --- a/src/resources/zones/zones.ts +++ b/src/resources/zones/zones.ts @@ -19,18 +19,7 @@ import { CustomNameservers, } from './custom-nameservers'; import * as HoldsAPI from './holds'; -import { - HoldCreateParams, - HoldCreateResponse, - HoldDeleteParams, - HoldDeleteResponse, - HoldEditParams, - HoldEditResponse, - HoldGetParams, - HoldGetResponse, - Holds, - ZoneHold, -} from './holds'; +import { HoldCreateParams, HoldDeleteParams, HoldEditParams, HoldGetParams, Holds, ZoneHold } from './holds'; import * as PlansAPI from './plans'; import { AvailableRatePlan, @@ -605,10 +594,6 @@ export declare namespace Zones { export { Holds as Holds, type ZoneHold as ZoneHold, - type HoldCreateResponse as HoldCreateResponse, - type HoldDeleteResponse as HoldDeleteResponse, - type HoldEditResponse as HoldEditResponse, - type HoldGetResponse as HoldGetResponse, type HoldCreateParams as HoldCreateParams, type HoldDeleteParams as HoldDeleteParams, type HoldEditParams as HoldEditParams, diff --git a/tests/api-resources/custom-certificates/custom-certificates.test.ts b/tests/api-resources/custom-certificates/custom-certificates.test.ts index 1537a0e202..1d8b1f281e 100644 --- a/tests/api-resources/custom-certificates/custom-certificates.test.ts +++ b/tests/api-resources/custom-certificates/custom-certificates.test.ts @@ -34,7 +34,7 @@ describe('resource customCertificates', () => { '-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMHAwfXZ5/PWMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQwHhcNMTYwODI0MTY0MzAxWhcNMTYxMTIyMTY0MzAxWjBF\nMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50\nZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmGdtcGbg/1\nCGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKnabIRuGvB\nKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpidtnKX/a+5\n0GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+pyFxIXjbEI\ndZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pEewooaeO2\nizNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABo4GnMIGkMB0GA1UdDgQWBBT/LbE4\n9rWf288N6sJA5BRb6FJIGDB1BgNVHSMEbjBsgBT/LbE49rWf288N6sJA5BRb6FJI\nGKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV\nBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAMHAwfXZ5/PWMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHHFwl0tH0quUYZYO0dZYt4R7SJ0pCm2\n2satiyzHl4OnXcHDpekAo7/a09c6Lz6AU83cKy/+x3/djYHXWba7HpEu0dR3ugQP\nMlr4zrhd9xKZ0KZKiYmtJH+ak4OM4L3FbT0owUZPyjLSlhMtJVcoRp5CJsjAMBUG\nSvD8RX+T01wzox/Qb+lnnNnOlaWpqu8eoOenybxKp1a9ULzIVvN/LAcc+14vioFq\n2swRWtmocBAs8QR9n4uvbpiYvS8eYueDCWMM4fvFfBhaDZ3N9IbtySh3SpFdQDhw\nYbjM2rxXiyLGxB4Bol7QTv4zHif7Zt89FReT/NBy4rzaskDJY5L6xmY=\n-----END CERTIFICATE-----\n', private_key: '-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n', - bundle_method: {}, + bundle_method: 'ubiquitous', geo_restrictions: { label: 'us' }, policy: '(country: US) or (region: EU)', type: 'legacy_custom', @@ -97,7 +97,7 @@ describe('resource customCertificates', () => { test('edit: required and optional params', async () => { const response = await client.customCertificates.edit('023e105f4ecef8ad9ca31a8372d0c353', { zone_id: '023e105f4ecef8ad9ca31a8372d0c353', - bundle_method: {}, + bundle_method: 'ubiquitous', certificate: '-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMHAwfXZ5/PWMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQwHhcNMTYwODI0MTY0MzAxWhcNMTYxMTIyMTY0MzAxWjBF\nMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50\nZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmGdtcGbg/1\nCGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKnabIRuGvB\nKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpidtnKX/a+5\n0GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+pyFxIXjbEI\ndZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pEewooaeO2\nizNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABo4GnMIGkMB0GA1UdDgQWBBT/LbE4\n9rWf288N6sJA5BRb6FJIGDB1BgNVHSMEbjBsgBT/LbE49rWf288N6sJA5BRb6FJI\nGKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV\nBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAMHAwfXZ5/PWMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHHFwl0tH0quUYZYO0dZYt4R7SJ0pCm2\n2satiyzHl4OnXcHDpekAo7/a09c6Lz6AU83cKy/+x3/djYHXWba7HpEu0dR3ugQP\nMlr4zrhd9xKZ0KZKiYmtJH+ak4OM4L3FbT0owUZPyjLSlhMtJVcoRp5CJsjAMBUG\nSvD8RX+T01wzox/Qb+lnnNnOlaWpqu8eoOenybxKp1a9ULzIVvN/LAcc+14vioFq\n2swRWtmocBAs8QR9n4uvbpiYvS8eYueDCWMM4fvFfBhaDZ3N9IbtySh3SpFdQDhw\nYbjM2rxXiyLGxB4Bol7QTv4zHif7Zt89FReT/NBy4rzaskDJY5L6xmY=\n-----END CERTIFICATE-----\n', geo_restrictions: { label: 'us' }, diff --git a/tests/api-resources/custom-hostnames/custom-hostnames.test.ts b/tests/api-resources/custom-hostnames/custom-hostnames.test.ts index a9a90081c6..cf9c4c6055 100644 --- a/tests/api-resources/custom-hostnames/custom-hostnames.test.ts +++ b/tests/api-resources/custom-hostnames/custom-hostnames.test.ts @@ -30,7 +30,7 @@ describe('resource customHostnames', () => { zone_id: '023e105f4ecef8ad9ca31a8372d0c353', hostname: 'app.example.com', ssl: { - bundle_method: {}, + bundle_method: 'ubiquitous', certificate_authority: 'digicert', cloudflare_branding: false, custom_cert_bundle: [ @@ -45,7 +45,7 @@ describe('resource customHostnames', () => { '-----BEGIN CERTIFICATE-----\\nMIIFJDCCBAygAwIBAgIQD0ifmj/Yi5NP/2gdUySbfzANBgkqhkiG9w0BAQsFADBN\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMScwJQYDVQQDEx5E...SzSHfXp5lnu/3V08I72q1QNzOCgY1XeL4GKVcj4or6cT6tX6oJH7ePPmfrBfqI/O\\nOeH8gMJ+FuwtXYEPa4hBf38M5eU5xWG7\\n-----END CERTIFICATE-----\\n', custom_key: '-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n', - method: {}, + method: 'http', settings: { ciphers: ['ECDHE-RSA-AES128-GCM-SHA256', 'AES128-SHA'], early_hints: 'on', @@ -53,7 +53,7 @@ describe('resource customHostnames', () => { min_tls_version: '1.0', tls_1_3: 'on', }, - type: {}, + type: 'dv', wildcard: false, }, custom_metadata: { foo: 'string' }, @@ -123,7 +123,7 @@ describe('resource customHostnames', () => { custom_origin_server: 'origin2.example.com', custom_origin_sni: 'sni.example.com', ssl: { - bundle_method: {}, + bundle_method: 'ubiquitous', certificate_authority: 'digicert', cloudflare_branding: false, custom_cert_bundle: [ @@ -138,7 +138,7 @@ describe('resource customHostnames', () => { '-----BEGIN CERTIFICATE-----\\nMIIFJDCCBAygAwIBAgIQD0ifmj/Yi5NP/2gdUySbfzANBgkqhkiG9w0BAQsFADBN\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMScwJQYDVQQDEx5E...SzSHfXp5lnu/3V08I72q1QNzOCgY1XeL4GKVcj4or6cT6tX6oJH7ePPmfrBfqI/O\\nOeH8gMJ+FuwtXYEPa4hBf38M5eU5xWG7\\n-----END CERTIFICATE-----\\n', custom_key: '-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n', - method: {}, + method: 'http', settings: { ciphers: ['ECDHE-RSA-AES128-GCM-SHA256', 'AES128-SHA'], early_hints: 'on', @@ -146,7 +146,7 @@ describe('resource customHostnames', () => { min_tls_version: '1.0', tls_1_3: 'on', }, - type: {}, + type: 'dv', wildcard: false, }, }); diff --git a/tests/api-resources/keyless-certificates.test.ts b/tests/api-resources/keyless-certificates.test.ts index 3fc9dcaa43..d0ce6c286f 100644 --- a/tests/api-resources/keyless-certificates.test.ts +++ b/tests/api-resources/keyless-certificates.test.ts @@ -34,7 +34,7 @@ describe('resource keylessCertificates', () => { '-----BEGIN CERTIFICATE----- MIIDtTCCAp2gAwIBAgIJAM15n7fdxhRtMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV BAYTAlVTMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX aWRnaXRzIFB0eSBMdGQwHhcNMTQwMzExMTkyMTU5WhcNMTQwNDEwMTkyMTU5WjBF MQswCQYDVQQGEwJVUzETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50 ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB CgKCAQEAvq3sKsHpeduJHimOK+fvQdKsI8z8A05MZyyLp2/R/GE8FjNv+hkVY1WQ LIyTNNQH7CJecE1nbTfo8Y56S7x/rhxC6/DJ8MIulapFPnorq46KU6yRxiM0MQ3N nTJHlHA2ozZta6YBBfVfhHWl1F0IfNbXCLKvGwWWMbCx43OfW6KTkbRnE6gFWKuO fSO5h2u5TaWVuSIzBvYs7Vza6m+gtYAvKAJV2nSZ+eSEFPDo29corOy8+huEOUL8 5FAw4BFPsr1TlrlGPFitduQUHGrSL7skk1ESGza0to3bOtrodKei2s9bk5MXm7lZ qI+WZJX4Zu9+mzZhc9pCVi8r/qlXuQIDAQABo4GnMIGkMB0GA1UdDgQWBBRvavf+ sWM4IwKiH9X9w1vl6nUVRDB1BgNVHSMEbjBsgBRvavf+sWM4IwKiH9X9w1vl6nUV RKFJpEcwRTELMAkGA1UEBhMCVVMxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV BAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAM15n7fdxhRtMAwGA1UdEwQF MAMBAf8wDQYJKoZIhvcNAQEFBQADggEBABY2ZzBaW0dMsAAT7tPJzrVWVzQx6KU4 UEBLudIlWPlkAwTnINCWR/8eNjCCmGA4heUdHmazdpPa8RzwOmc0NT1NQqzSyktt vTqb4iHD7+8f9MqJ9/FssCfTtqr/Qst/hGH4Wmdf1EJ/6FqYAAb5iRlPgshFZxU8 uXtA8hWn6fK6eISD9HBdcAFToUvKNZ1BIDPvh9f95Ine8ar6yGd56TUNrHR8eHBs ESxz5ddVR/oWRysNJ+aGAyYqHS8S/ttmC7r4XCAHqXptkHPCGRqkAhsterYhd4I8 /cBzejUobNCjjHFbtkAL/SjxZOLW+pNkZwfeYdM8iPkD54Uua1v2tdw= -----END CERTIFICATE-----', host: 'example.com', port: 24008, - bundle_method: {}, + bundle_method: 'ubiquitous', name: 'example.com Keyless SSL', tunnel: { private_ip: '10.0.0.1', vnet_id: '7365377a-85a4-4390-9480-531ef7dc7a3c' }, }); diff --git a/tests/api-resources/magic-transit/cf-interconnects.test.ts b/tests/api-resources/magic-transit/cf-interconnects.test.ts index 8cc2453510..8f1a7b68f2 100644 --- a/tests/api-resources/magic-transit/cf-interconnects.test.ts +++ b/tests/api-resources/magic-transit/cf-interconnects.test.ts @@ -30,7 +30,7 @@ describe('resource cfInterconnects', () => { account_id: '023e105f4ecef8ad9ca31a8372d0c353', description: 'Tunnel for Interconnect to ORD', gre: { cloudflare_endpoint: '203.0.113.1' }, - health_check: { enabled: true, rate: {}, target: { saved: '203.0.113.1' }, type: {} }, + health_check: { enabled: true, rate: 'low', target: { saved: '203.0.113.1' }, type: 'reply' }, interface_address: '192.0.2.0/31', mtu: 0, 'x-magic-new-hc-target': true, diff --git a/tests/api-resources/magic-transit/gre-tunnels.test.ts b/tests/api-resources/magic-transit/gre-tunnels.test.ts index 505fe24127..fa4e8b7706 100644 --- a/tests/api-resources/magic-transit/gre-tunnels.test.ts +++ b/tests/api-resources/magic-transit/gre-tunnels.test.ts @@ -64,9 +64,9 @@ describe('resource greTunnels', () => { health_check: { direction: 'unidirectional', enabled: true, - rate: {}, + rate: 'low', target: { saved: '203.0.113.1' }, - type: {}, + type: 'reply', }, mtu: 0, ttl: 0, diff --git a/tests/api-resources/magic-transit/ipsec-tunnels.test.ts b/tests/api-resources/magic-transit/ipsec-tunnels.test.ts index 7610a6f2f7..80344216c9 100644 --- a/tests/api-resources/magic-transit/ipsec-tunnels.test.ts +++ b/tests/api-resources/magic-transit/ipsec-tunnels.test.ts @@ -37,9 +37,9 @@ describe('resource ipsecTunnels', () => { health_check: { direction: 'unidirectional', enabled: true, - rate: {}, + rate: 'low', target: { saved: '203.0.113.1' }, - type: {}, + type: 'reply', }, psk: 'O3bwKSjnaoCxDoUxjcq4Rk8ZKkezQUiy', replay_protection: false, @@ -76,9 +76,9 @@ describe('resource ipsecTunnels', () => { health_check: { direction: 'unidirectional', enabled: true, - rate: {}, + rate: 'low', target: { saved: '203.0.113.1' }, - type: {}, + type: 'reply', }, psk: 'O3bwKSjnaoCxDoUxjcq4Rk8ZKkezQUiy', replay_protection: false, diff --git a/tests/api-resources/magic-transit/sites/acls.test.ts b/tests/api-resources/magic-transit/sites/acls.test.ts index 21444bd9b3..ba540fd7f3 100644 --- a/tests/api-resources/magic-transit/sites/acls.test.ts +++ b/tests/api-resources/magic-transit/sites/acls.test.ts @@ -46,7 +46,7 @@ describe('resource acls', () => { name: 'PIN Pad - Cash Register', description: 'Allows local traffic between PIN pads and cash register.', forward_locally: true, - protocols: [{}], + protocols: ['tcp'], unidirectional: true, }); }); @@ -89,7 +89,7 @@ describe('resource acls', () => { subnets: ['192.0.2.1'], }, name: 'PIN Pad - Cash Register', - protocols: [{}], + protocols: ['tcp'], unidirectional: true, }, ); @@ -175,7 +175,7 @@ describe('resource acls', () => { subnets: ['192.0.2.1'], }, name: 'PIN Pad - Cash Register', - protocols: [{}], + protocols: ['tcp'], unidirectional: true, }, ); diff --git a/tests/api-resources/r2/buckets/sippy.test.ts b/tests/api-resources/r2/buckets/sippy.test.ts index 5f9b4df503..0b9a8df818 100644 --- a/tests/api-resources/r2/buckets/sippy.test.ts +++ b/tests/api-resources/r2/buckets/sippy.test.ts @@ -28,7 +28,7 @@ describe('resource sippy', () => { test.skip('update: required and optional params', async () => { const response = await client.r2.buckets.sippy.update('example-bucket', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', - destination: { accessKeyId: 'accessKeyId', provider: {}, secretAccessKey: 'secretAccessKey' }, + destination: { accessKeyId: 'accessKeyId', provider: 'r2', secretAccessKey: 'secretAccessKey' }, source: { accessKeyId: 'accessKeyId', bucket: 'bucket', diff --git a/tests/api-resources/rulesets/rulesets.test.ts b/tests/api-resources/rulesets/rulesets.test.ts index 64d6775303..7903904da3 100644 --- a/tests/api-resources/rulesets/rulesets.test.ts +++ b/tests/api-resources/rulesets/rulesets.test.ts @@ -53,7 +53,7 @@ describe('resource rulesets', () => { username_expression: 'url_decode(http.request.body.form[\\"username\\"][0])', }, expression: 'ip.src ne 1.1.1.1', - logging: {}, + logging: { enabled: true }, ratelimit: { characteristics: ['ip.src'], period: 10, diff --git a/tests/api-resources/ssl/analyze.test.ts b/tests/api-resources/ssl/analyze.test.ts index c26dd52aaa..8c61bf9ae8 100644 --- a/tests/api-resources/ssl/analyze.test.ts +++ b/tests/api-resources/ssl/analyze.test.ts @@ -24,7 +24,7 @@ describe('resource analyze', () => { test('create: required and optional params', async () => { const response = await client.ssl.analyze.create({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353', - bundle_method: {}, + bundle_method: 'ubiquitous', certificate: '-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMHAwfXZ5/PWMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQwHhcNMTYwODI0MTY0MzAxWhcNMTYxMTIyMTY0MzAxWjBF\nMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50\nZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmGdtcGbg/1\nCGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKnabIRuGvB\nKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpidtnKX/a+5\n0GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+pyFxIXjbEI\ndZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pEewooaeO2\nizNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABo4GnMIGkMB0GA1UdDgQWBBT/LbE4\n9rWf288N6sJA5BRb6FJIGDB1BgNVHSMEbjBsgBT/LbE49rWf288N6sJA5BRb6FJI\nGKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV\nBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAMHAwfXZ5/PWMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHHFwl0tH0quUYZYO0dZYt4R7SJ0pCm2\n2satiyzHl4OnXcHDpekAo7/a09c6Lz6AU83cKy/+x3/djYHXWba7HpEu0dR3ugQP\nMlr4zrhd9xKZ0KZKiYmtJH+ak4OM4L3FbT0owUZPyjLSlhMtJVcoRp5CJsjAMBUG\nSvD8RX+T01wzox/Qb+lnnNnOlaWpqu8eoOenybxKp1a9ULzIVvN/LAcc+14vioFq\n2swRWtmocBAs8QR9n4uvbpiYvS8eYueDCWMM4fvFfBhaDZ3N9IbtySh3SpFdQDhw\nYbjM2rxXiyLGxB4Bol7QTv4zHif7Zt89FReT/NBy4rzaskDJY5L6xmY=\n-----END CERTIFICATE-----\n', }); diff --git a/tests/api-resources/workers-for-platforms/dispatch/namespaces/scripts/content.test.ts b/tests/api-resources/workers-for-platforms/dispatch/namespaces/scripts/content.test.ts index 813e0391f8..9f46ab7ef2 100644 --- a/tests/api-resources/workers-for-platforms/dispatch/namespaces/scripts/content.test.ts +++ b/tests/api-resources/workers-for-platforms/dispatch/namespaces/scripts/content.test.ts @@ -33,7 +33,7 @@ describe('resource content', () => { 'this-is_my_script-01', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', - metadata: {}, + metadata: { body_part: 'worker.js', main_module: 'worker.js' }, 'CF-WORKER-BODY-PART': 'CF-WORKER-BODY-PART', 'CF-WORKER-MAIN-MODULE-PART': 'CF-WORKER-MAIN-MODULE-PART', }, diff --git a/tests/api-resources/workers/scripts/content.test.ts b/tests/api-resources/workers/scripts/content.test.ts index 3030b90173..1567728d10 100644 --- a/tests/api-resources/workers/scripts/content.test.ts +++ b/tests/api-resources/workers/scripts/content.test.ts @@ -29,7 +29,7 @@ describe('resource content', () => { test.skip('update: required and optional params', async () => { const response = await client.workers.scripts.content.update('this-is_my_script-01', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', - metadata: {}, + metadata: { body_part: 'worker.js', main_module: 'worker.js' }, 'CF-WORKER-BODY-PART': 'CF-WORKER-BODY-PART', 'CF-WORKER-MAIN-MODULE-PART': 'CF-WORKER-MAIN-MODULE-PART', }); diff --git a/tests/api-resources/workers/scripts/deployments.test.ts b/tests/api-resources/workers/scripts/deployments.test.ts index 22d926cbc4..08559beefc 100644 --- a/tests/api-resources/workers/scripts/deployments.test.ts +++ b/tests/api-resources/workers/scripts/deployments.test.ts @@ -31,7 +31,7 @@ describe('resource deployments', () => { strategy: 'percentage', versions: [{ percentage: 100, version_id: 'bcf48806-b317-4351-9ee7-36e7d557d4de' }], force: true, - annotations: {}, + annotations: { 'workers/message': 'Deploy bug fix.' }, }); }); diff --git a/tests/api-resources/workers/scripts/schedules.test.ts b/tests/api-resources/workers/scripts/schedules.test.ts index 0b2a489c8f..90224aff1a 100644 --- a/tests/api-resources/workers/scripts/schedules.test.ts +++ b/tests/api-resources/workers/scripts/schedules.test.ts @@ -27,7 +27,7 @@ describe('resource schedules', () => { test('update: required and optional params', async () => { const response = await client.workers.scripts.schedules.update('this-is_my_script-01', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', - body: [{}], + body: [{ cron: '*/30 * * * *' }], }); }); diff --git a/tests/api-resources/zaraz/config.test.ts b/tests/api-resources/zaraz/config.test.ts index 86edc43174..502f5712fa 100644 --- a/tests/api-resources/zaraz/config.test.ts +++ b/tests/api-resources/zaraz/config.test.ts @@ -78,9 +78,18 @@ describe('resource config', () => { permissions: ['string'], settings: { foo: 'string' }, type: 'component', - actions: {}, + actions: { + foo: { + actionType: 'actionType', + blockingTriggers: ['string'], + data: {}, + firingTriggers: ['string'], + }, + }, defaultPurpose: 'defaultPurpose', - neoEvents: [{}], + neoEvents: [ + { actionType: 'actionType', blockingTriggers: ['string'], data: {}, firingTriggers: ['string'] }, + ], vendorName: 'vendorName', vendorPolicyUrl: 'vendorPolicyUrl', }, @@ -99,7 +108,11 @@ describe('resource config', () => { analytics: { defaultPurpose: 'defaultPurpose', enabled: true, sessionExpTime: 60 }, consent: { enabled: true, - buttonTextTranslations: {}, + buttonTextTranslations: { + accept_all: { foo: 'string' }, + confirm_my_choices: { foo: 'string' }, + reject_all: { foo: 'string' }, + }, companyEmail: 'companyEmail', companyName: 'companyName', companyStreetAddress: 'companyStreetAddress', diff --git a/tests/api-resources/zero-trust/devices/posture/posture.test.ts b/tests/api-resources/zero-trust/devices/posture/posture.test.ts index 9019ca3e04..3421b8bd79 100644 --- a/tests/api-resources/zero-trust/devices/posture/posture.test.ts +++ b/tests/api-resources/zero-trust/devices/posture/posture.test.ts @@ -33,7 +33,7 @@ describe('resource posture', () => { description: 'The rule for admin serial numbers', expiration: '1h', input: { - operating_system: {}, + operating_system: 'windows', path: '/bin/cat', exists: true, sha256: 'https://api.us-2.crowdstrike.com', @@ -67,7 +67,7 @@ describe('resource posture', () => { description: 'The rule for admin serial numbers', expiration: '1h', input: { - operating_system: {}, + operating_system: 'windows', path: '/bin/cat', exists: true, sha256: 'https://api.us-2.crowdstrike.com', diff --git a/tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts b/tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts index 9d6c89b711..93ce5a9053 100755 --- a/tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts +++ b/tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts @@ -26,7 +26,38 @@ describe('resource configurations', () => { test('update: required and optional params', async () => { const response = await client.zeroTrust.gateway.configurations.update({ account_id: '699d98642c564d2e855e9661899b7252', - settings: {}, + settings: { + activity_log: { enabled: true }, + antivirus: { + enabled_download_phase: false, + enabled_upload_phase: false, + fail_closed: false, + notification_settings: { enabled: true, msg: 'msg', support_url: 'support_url' }, + }, + block_page: { + background_color: 'background_color', + enabled: true, + footer_text: '--footer--', + header_text: '--header--', + include_context: true, + logo_path: 'https://logos.com/a.png', + mailto_address: 'admin@example.com', + mailto_subject: 'Blocked User Inquiry', + mode: 'customized_block_page', + name: 'Cloudflare', + suppress_footer: false, + target_uri: 'https://example.com', + }, + body_scanning: { inspection_mode: 'deep' }, + browser_isolation: { non_identity_enabled: true, url_browser_isolation_enabled: true }, + certificate: { id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, + custom_certificate: { enabled: true, id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, + extended_email_matching: { enabled: true }, + fips: { tls: true }, + protocol_detection: { enabled: true }, + sandbox: { enabled: true, fallback_action: 'allow' }, + tls_decrypt: { enabled: true }, + }, }); }); @@ -46,7 +77,38 @@ describe('resource configurations', () => { test('edit: required and optional params', async () => { const response = await client.zeroTrust.gateway.configurations.edit({ account_id: '699d98642c564d2e855e9661899b7252', - settings: {}, + settings: { + activity_log: { enabled: true }, + antivirus: { + enabled_download_phase: false, + enabled_upload_phase: false, + fail_closed: false, + notification_settings: { enabled: true, msg: 'msg', support_url: 'support_url' }, + }, + block_page: { + background_color: 'background_color', + enabled: true, + footer_text: '--footer--', + header_text: '--header--', + include_context: true, + logo_path: 'https://logos.com/a.png', + mailto_address: 'admin@example.com', + mailto_subject: 'Blocked User Inquiry', + mode: 'customized_block_page', + name: 'Cloudflare', + suppress_footer: false, + target_uri: 'https://example.com', + }, + body_scanning: { inspection_mode: 'deep' }, + browser_isolation: { non_identity_enabled: true, url_browser_isolation_enabled: true }, + certificate: { id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, + custom_certificate: { enabled: true, id: 'd1b364c5-1311-466e-a194-f0e943e0799f' }, + extended_email_matching: { enabled: true }, + fips: { tls: true }, + protocol_detection: { enabled: true }, + sandbox: { enabled: true, fallback_action: 'allow' }, + tls_decrypt: { enabled: true }, + }, }); }); diff --git a/tests/api-resources/zero-trust/gateway/logging.test.ts b/tests/api-resources/zero-trust/gateway/logging.test.ts index 8ecda94155..68106b5c53 100644 --- a/tests/api-resources/zero-trust/gateway/logging.test.ts +++ b/tests/api-resources/zero-trust/gateway/logging.test.ts @@ -27,7 +27,7 @@ describe('resource logging', () => { const response = await client.zeroTrust.gateway.logging.update({ account_id: '699d98642c564d2e855e9661899b7252', redact_pii: true, - settings_by_rule_type: {}, + settings_by_rule_type: { dns: {}, http: {}, l4: {} }, }); }); diff --git a/tests/api-resources/zero-trust/identity-providers/identity-providers.test.ts b/tests/api-resources/zero-trust/identity-providers/identity-providers.test.ts index 4cafe240a3..9d0aee3fe6 100644 --- a/tests/api-resources/zero-trust/identity-providers/identity-providers.test.ts +++ b/tests/api-resources/zero-trust/identity-providers/identity-providers.test.ts @@ -15,7 +15,7 @@ describe('resource identityProviders', () => { const responsePromise = client.zeroTrust.identityProviders.create({ config: {}, name: 'Widget Corps IDP', - type: {}, + type: 'onetimepin', account_id: 'account_id', }); const rawResponse = await responsePromise.asResponse(); @@ -41,9 +41,14 @@ describe('resource identityProviders', () => { support_groups: true, }, name: 'Widget Corps IDP', - type: {}, + type: 'onetimepin', account_id: 'account_id', - scim_config: {}, + scim_config: { + enabled: true, + identity_update_behavior: 'automatic', + seat_deprovision: true, + user_deprovision: true, + }, }); }); @@ -51,7 +56,7 @@ describe('resource identityProviders', () => { test.skip('update: only required params', async () => { const responsePromise = client.zeroTrust.identityProviders.update( 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', - { config: {}, name: 'Widget Corps IDP', type: {}, account_id: 'account_id' }, + { config: {}, name: 'Widget Corps IDP', type: 'onetimepin', account_id: 'account_id' }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -76,9 +81,14 @@ describe('resource identityProviders', () => { support_groups: true, }, name: 'Widget Corps IDP', - type: {}, + type: 'onetimepin', account_id: 'account_id', - scim_config: {}, + scim_config: { + enabled: true, + identity_update_behavior: 'automatic', + seat_deprovision: true, + user_deprovision: true, + }, }); }); From 34c5914a4851757ab57e1d7ce2b194f7e59a813c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 01:10:41 +0000 Subject: [PATCH 156/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 0f343dec8f..21a0cd2b80 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-270122f270548b1d47f7e3ac3552ef65417230c5ec71e8cfb6cd5031e7eaa188.yml openapi_spec_hash: 01925ed2891006b54e44074457d99a71 -config_hash: f01b56f70c651f15e93a85ce451aa063 +config_hash: da55c5b48addf6c0e323c1da0f89e503 From 5933d3e6b70cedc81dea874f5ceebae80a2ce9a0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 06:20:17 +0000 Subject: [PATCH 157/461] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 21a0cd2b80..f4375a2b79 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-270122f270548b1d47f7e3ac3552ef65417230c5ec71e8cfb6cd5031e7eaa188.yml openapi_spec_hash: 01925ed2891006b54e44074457d99a71 -config_hash: da55c5b48addf6c0e323c1da0f89e503 +config_hash: af2dbb6a6332cef477c4697db6a78d79 From 881534b99e1725de9041f0ddce26334cb2af4608 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 06:24:26 +0000 Subject: [PATCH 158/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f4375a2b79..ea30acdddf 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-270122f270548b1d47f7e3ac3552ef65417230c5ec71e8cfb6cd5031e7eaa188.yml -openapi_spec_hash: 01925ed2891006b54e44074457d99a71 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-55b9bbeace02701cebe9c5981296b4f959142756104ecaf1fafe2e219e8ff4a0.yml +openapi_spec_hash: 5a88c6383d0ae18185eeafe93dfe793f config_hash: af2dbb6a6332cef477c4697db6a78d79 From 23834423bb00b88f873966d3a2219fe97a831d11 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 06:28:19 +0000 Subject: [PATCH 159/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ea30acdddf..f4375a2b79 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-55b9bbeace02701cebe9c5981296b4f959142756104ecaf1fafe2e219e8ff4a0.yml -openapi_spec_hash: 5a88c6383d0ae18185eeafe93dfe793f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-270122f270548b1d47f7e3ac3552ef65417230c5ec71e8cfb6cd5031e7eaa188.yml +openapi_spec_hash: 01925ed2891006b54e44074457d99a71 config_hash: af2dbb6a6332cef477c4697db6a78d79 From 4649bb94df872b7273c8abde5b70ee44b02b6bb9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 09:09:57 +0000 Subject: [PATCH 160/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f4375a2b79..ea30acdddf 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-270122f270548b1d47f7e3ac3552ef65417230c5ec71e8cfb6cd5031e7eaa188.yml -openapi_spec_hash: 01925ed2891006b54e44074457d99a71 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-55b9bbeace02701cebe9c5981296b4f959142756104ecaf1fafe2e219e8ff4a0.yml +openapi_spec_hash: 5a88c6383d0ae18185eeafe93dfe793f config_hash: af2dbb6a6332cef477c4697db6a78d79 From 9a4e8bfc70c9f9102117499eae955632ed59fa54 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 09:13:42 +0000 Subject: [PATCH 161/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ea30acdddf..14a1d989c7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-55b9bbeace02701cebe9c5981296b4f959142756104ecaf1fafe2e219e8ff4a0.yml -openapi_spec_hash: 5a88c6383d0ae18185eeafe93dfe793f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2eafa515caf876b73ee511fd6343ce557abe8da65ed2a7dea27f97bc189c6960.yml +openapi_spec_hash: 3d35043f975462029d2f41ff0ed7b95c config_hash: af2dbb6a6332cef477c4697db6a78d79 From 65e75a591c565d7bb312cfa524496ea4c12f917a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 09:46:09 +0000 Subject: [PATCH 162/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 14a1d989c7..562fdcfc0e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2eafa515caf876b73ee511fd6343ce557abe8da65ed2a7dea27f97bc189c6960.yml -openapi_spec_hash: 3d35043f975462029d2f41ff0ed7b95c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-28bfb1f9fa323f1e2503dcf069eb2bf19b1d198bd84c5ac8a644bfb3862f7141.yml +openapi_spec_hash: 6e5a25837c8877afc37a1b2fd2b158bd config_hash: af2dbb6a6332cef477c4697db6a78d79 From 5b2f7e0c751376f8469b7c04e0abfe4483a891fa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 11:13:09 +0000 Subject: [PATCH 163/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 562fdcfc0e..6089623754 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-28bfb1f9fa323f1e2503dcf069eb2bf19b1d198bd84c5ac8a644bfb3862f7141.yml -openapi_spec_hash: 6e5a25837c8877afc37a1b2fd2b158bd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-41fe438a8476b6b3f3f3c58db0c637c78776e7de8f9aeab33c016ea1e82cb858.yml +openapi_spec_hash: 575f9f796eace51d52c51f55c114f874 config_hash: af2dbb6a6332cef477c4697db6a78d79 From 2ca0fe3702f70853625b1998498a6bedf43b6d5f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 11:39:03 +0000 Subject: [PATCH 164/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6089623754..562fdcfc0e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-41fe438a8476b6b3f3f3c58db0c637c78776e7de8f9aeab33c016ea1e82cb858.yml -openapi_spec_hash: 575f9f796eace51d52c51f55c114f874 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-28bfb1f9fa323f1e2503dcf069eb2bf19b1d198bd84c5ac8a644bfb3862f7141.yml +openapi_spec_hash: 6e5a25837c8877afc37a1b2fd2b158bd config_hash: af2dbb6a6332cef477c4697db6a78d79 From 8d82deb76a4d50a39b40e48ae754561d3fb003d1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 15:15:19 +0000 Subject: [PATCH 165/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 562fdcfc0e..603687a066 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-28bfb1f9fa323f1e2503dcf069eb2bf19b1d198bd84c5ac8a644bfb3862f7141.yml -openapi_spec_hash: 6e5a25837c8877afc37a1b2fd2b158bd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1632324f7b6ff975da251df437669cd5ef135edab414239deed6237c928620f4.yml +openapi_spec_hash: 5a4e9309a9e2b0785ad7855709678eac config_hash: af2dbb6a6332cef477c4697db6a78d79 From 51bc079e8f596992f4e2ffa7b03d5bd8cb81d16e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 15:27:02 +0000 Subject: [PATCH 166/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 603687a066..aa88e15576 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1632324f7b6ff975da251df437669cd5ef135edab414239deed6237c928620f4.yml -openapi_spec_hash: 5a4e9309a9e2b0785ad7855709678eac +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-207bba6f1025362e551af0a2c985a238e79a39ba77a3bb2409860c460a6b0ebb.yml +openapi_spec_hash: 1c47fb5f534351c71c50844d391924fa config_hash: af2dbb6a6332cef477c4697db6a78d79 From 8a332c5bb1f03549f3b57bc88b8223a43c7e2dc6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 16:03:59 +0000 Subject: [PATCH 167/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index aa88e15576..dba7f043ce 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-207bba6f1025362e551af0a2c985a238e79a39ba77a3bb2409860c460a6b0ebb.yml -openapi_spec_hash: 1c47fb5f534351c71c50844d391924fa +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e0d69d79e70e111c4087ed0d10990dcfac0f773c0ba90972f3866c35ee5c263.yml +openapi_spec_hash: 3e6db406daa52bb8d8eaabc4dc379804 config_hash: af2dbb6a6332cef477c4697db6a78d79 From 9a9b0fec248ed4dfcd2e9389c8e0f9de171ad1dc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 16:08:52 +0000 Subject: [PATCH 168/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index dba7f043ce..bf4f97fb6a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e0d69d79e70e111c4087ed0d10990dcfac0f773c0ba90972f3866c35ee5c263.yml -openapi_spec_hash: 3e6db406daa52bb8d8eaabc4dc379804 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b8d0a0d5c74a2a7ab10a968e311f682c56dda081444aa456216500f7ee37abe4.yml +openapi_spec_hash: 42da689dd948f1131747c4129e361ff6 config_hash: af2dbb6a6332cef477c4697db6a78d79 From 32d146f0ecb43a48f3dabe29e1be606661aa7efa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 16:13:34 +0000 Subject: [PATCH 169/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index bf4f97fb6a..81eb5528e3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b8d0a0d5c74a2a7ab10a968e311f682c56dda081444aa456216500f7ee37abe4.yml -openapi_spec_hash: 42da689dd948f1131747c4129e361ff6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-35b2251d1c4c00b0a56c568bbd49353dfb573050be1a6ba5df9b0f3f4b7a8337.yml +openapi_spec_hash: e7c99588938493962766287246eaadaf config_hash: af2dbb6a6332cef477c4697db6a78d79 From e5c0bbb09457293c94359e13d566c3a2c42ce5ad Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 16:53:24 +0000 Subject: [PATCH 170/461] feat(api): api update (#2566) --- .stats.yml | 4 +- src/resources/zero-trust/gateway/logging.ts | 114 +++++++++++++----- .../zero-trust/gateway/logging.test.ts | 6 +- 3 files changed, 93 insertions(+), 31 deletions(-) diff --git a/.stats.yml b/.stats.yml index 81eb5528e3..3ed3d6478e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-35b2251d1c4c00b0a56c568bbd49353dfb573050be1a6ba5df9b0f3f4b7a8337.yml -openapi_spec_hash: e7c99588938493962766287246eaadaf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f928427b3d44df551039f12f8194f38fa13706ce4f7ba91bc60e862867c9bae1.yml +openapi_spec_hash: c229613f61a9d35463cf425768e0e44a config_hash: af2dbb6a6332cef477c4697db6a78d79 diff --git a/src/resources/zero-trust/gateway/logging.ts b/src/resources/zero-trust/gateway/logging.ts index 4ee1d1c029..0835eb2db4 100644 --- a/src/resources/zero-trust/gateway/logging.ts +++ b/src/resources/zero-trust/gateway/logging.ts @@ -47,20 +47,49 @@ export namespace LoggingSetting { * Logging settings by rule type. */ export interface SettingsByRuleType { - /** - * Logging settings for DNS firewall. - */ - dns?: unknown; - - /** - * Logging settings for HTTP/HTTPS firewall. - */ - http?: unknown; - - /** - * Logging settings for Network firewall. - */ - l4?: unknown; + dns?: SettingsByRuleType.DNS; + + http?: SettingsByRuleType.HTTP; + + l4?: SettingsByRuleType.L4; + } + + export namespace SettingsByRuleType { + export interface DNS { + /** + * Log all requests to this service. + */ + log_all?: boolean; + + /** + * Log only blocking requests to this service. + */ + log_blocks?: boolean; + } + + export interface HTTP { + /** + * Log all requests to this service. + */ + log_all?: boolean; + + /** + * Log only blocking requests to this service. + */ + log_blocks?: boolean; + } + + export interface L4 { + /** + * Log all requests to this service. + */ + log_all?: boolean; + + /** + * Log only blocking requests to this service. + */ + log_blocks?: boolean; + } } } @@ -88,20 +117,49 @@ export namespace LoggingUpdateParams { * Logging settings by rule type. */ export interface SettingsByRuleType { - /** - * Logging settings for DNS firewall. - */ - dns?: unknown; - - /** - * Logging settings for HTTP/HTTPS firewall. - */ - http?: unknown; - - /** - * Logging settings for Network firewall. - */ - l4?: unknown; + dns?: SettingsByRuleType.DNS; + + http?: SettingsByRuleType.HTTP; + + l4?: SettingsByRuleType.L4; + } + + export namespace SettingsByRuleType { + export interface DNS { + /** + * Log all requests to this service. + */ + log_all?: boolean; + + /** + * Log only blocking requests to this service. + */ + log_blocks?: boolean; + } + + export interface HTTP { + /** + * Log all requests to this service. + */ + log_all?: boolean; + + /** + * Log only blocking requests to this service. + */ + log_blocks?: boolean; + } + + export interface L4 { + /** + * Log all requests to this service. + */ + log_all?: boolean; + + /** + * Log only blocking requests to this service. + */ + log_blocks?: boolean; + } } } diff --git a/tests/api-resources/zero-trust/gateway/logging.test.ts b/tests/api-resources/zero-trust/gateway/logging.test.ts index 68106b5c53..85f133860c 100644 --- a/tests/api-resources/zero-trust/gateway/logging.test.ts +++ b/tests/api-resources/zero-trust/gateway/logging.test.ts @@ -27,7 +27,11 @@ describe('resource logging', () => { const response = await client.zeroTrust.gateway.logging.update({ account_id: '699d98642c564d2e855e9661899b7252', redact_pii: true, - settings_by_rule_type: { dns: {}, http: {}, l4: {} }, + settings_by_rule_type: { + dns: { log_all: false, log_blocks: true }, + http: { log_all: false, log_blocks: true }, + l4: { log_all: false, log_blocks: true }, + }, }); }); From ac6be0f0d74b5f161e22ef26009c8cad366423a3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 18:19:38 +0000 Subject: [PATCH 171/461] chore(internal): codegen related update (#2567) --- .stats.yml | 4 ++-- src/resources/stream/copy.ts | 16 +--------------- src/resources/stream/stream.ts | 2 +- tests/api-resources/stream/copy.test.ts | 2 -- 4 files changed, 4 insertions(+), 20 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3ed3d6478e..0d40eeb913 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f928427b3d44df551039f12f8194f38fa13706ce4f7ba91bc60e862867c9bae1.yml -openapi_spec_hash: c229613f61a9d35463cf425768e0e44a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4e988c584e8eacb13347475cb6ac38171cedd948f5101b03c37ec712341b9d7a.yml +openapi_spec_hash: c4e86fdb536ff8299ffc1faed7e3e573 config_hash: af2dbb6a6332cef477c4697db6a78d79 diff --git a/src/resources/stream/copy.ts b/src/resources/stream/copy.ts index 6c9729dce9..28a8402bea 100644 --- a/src/resources/stream/copy.ts +++ b/src/resources/stream/copy.ts @@ -9,19 +9,13 @@ export class Copy extends APIResource { * Uploads a video to Stream from a provided URL. */ create(params: CopyCreateParams, options?: Core.RequestOptions): Core.APIPromise { - const { - account_id, - 'Upload-Creator': uploadCreator, - 'Upload-Metadata': uploadMetadata, - ...body - } = params; + const { account_id, 'Upload-Creator': uploadCreator, ...body } = params; return ( this._client.post(`/accounts/${account_id}/stream/copy`, { body, ...options, headers: { ...(uploadCreator != null ? { 'Upload-Creator': uploadCreator } : undefined), - ...(uploadMetadata != null ? { 'Upload-Metadata': uploadMetadata } : undefined), ...options?.headers, }, }) as Core.APIPromise<{ result: StreamAPI.Video }> @@ -94,14 +88,6 @@ export interface CopyCreateParams { * Header param: A user-defined identifier for the media creator. */ 'Upload-Creator'?: string; - - /** - * Header param: Comma-separated key-value pairs following the TUS protocol - * specification. Values are Base-64 encoded. Supported keys: `name`, - * `requiresignedurls`, `allowedorigins`, `thumbnailtimestamppct`, `watermark`, - * `scheduleddeletion`. - */ - 'Upload-Metadata'?: string; } export namespace CopyCreateParams { diff --git a/src/resources/stream/stream.ts b/src/resources/stream/stream.ts index e0132b1ec1..8642ae661f 100644 --- a/src/resources/stream/stream.ts +++ b/src/resources/stream/stream.ts @@ -412,7 +412,7 @@ export interface StreamCreateParams { * Header param: Comma-separated key-value pairs following the TUS protocol * specification. Values are Base-64 encoded. Supported keys: `name`, * `requiresignedurls`, `allowedorigins`, `thumbnailtimestamppct`, `watermark`, - * `scheduleddeletion`. + * `scheduleddeletion`, `maxdurationseconds`. */ 'Upload-Metadata'?: string; } diff --git a/tests/api-resources/stream/copy.test.ts b/tests/api-resources/stream/copy.test.ts index 077f2aefcd..e68498c3dc 100644 --- a/tests/api-resources/stream/copy.test.ts +++ b/tests/api-resources/stream/copy.test.ts @@ -36,8 +36,6 @@ describe('resource copy', () => { thumbnailTimestampPct: 0.529241, watermark: { uid: 'ea95132c15732412d22c1476fa83f27a' }, 'Upload-Creator': 'creator-id_abcde12345', - 'Upload-Metadata': - 'name aGVsbG8gd29ybGQ=, requiresignedurls, allowedorigins ZXhhbXBsZS5jb20sdGVzdC5jb20=', }); }); }); From 5f3a7d7dce2db27a8ba983a6c6a552ed57bfbd7e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 19:17:15 +0000 Subject: [PATCH 172/461] feat(api): api update (#2568) --- .stats.yml | 4 +- src/resources/waiting-rooms/events/details.ts | 12 +++++ src/resources/waiting-rooms/events/events.ts | 51 +++++++++++++++++++ src/resources/zones/zones.ts | 4 +- .../waiting-rooms/events/events.test.ts | 6 +++ 5 files changed, 73 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0d40eeb913..ea1ce66616 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4e988c584e8eacb13347475cb6ac38171cedd948f5101b03c37ec712341b9d7a.yml -openapi_spec_hash: c4e86fdb536ff8299ffc1faed7e3e573 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3f1027f7740afd5fbb6aa554575dd2fd7dd68c0d7c394c68b5515753860eaf8e.yml +openapi_spec_hash: fbe090182fbea3b046b951f6f4fb3b33 config_hash: af2dbb6a6332cef477c4697db6a78d79 diff --git a/src/resources/waiting-rooms/events/details.ts b/src/resources/waiting-rooms/events/details.ts index 220630457e..0a41349479 100644 --- a/src/resources/waiting-rooms/events/details.ts +++ b/src/resources/waiting-rooms/events/details.ts @@ -108,6 +108,18 @@ export interface EventQuery { * the event's `new_users_per_minute` property is also set. */ total_active_users?: number | null; + + /** + * If set, the event will override the waiting room's `turnstile_action` property + * while it is active. If null, the event will inherit it. + */ + turnstile_action?: 'log' | 'infinite_queue' | null; + + /** + * If set, the event will override the waiting room's `turnstile_mode` property + * while it is active. If null, the event will inherit it. + */ + turnstile_mode?: 'off' | 'invisible' | 'visible_non_interactive' | 'visible_managed' | null; } export interface DetailGetResponse { diff --git a/src/resources/waiting-rooms/events/events.ts b/src/resources/waiting-rooms/events/events.ts index f3fe0719e7..bbc3117654 100644 --- a/src/resources/waiting-rooms/events/events.ts +++ b/src/resources/waiting-rooms/events/events.ts @@ -212,6 +212,18 @@ export interface Event { * the event's `new_users_per_minute` property is also set. */ total_active_users?: number | null; + + /** + * If set, the event will override the waiting room's `turnstile_action` property + * while it is active. If null, the event will inherit it. + */ + turnstile_action?: 'log' | 'infinite_queue' | null; + + /** + * If set, the event will override the waiting room's `turnstile_mode` property + * while it is active. If null, the event will inherit it. + */ + turnstile_mode?: 'off' | 'invisible' | 'visible_non_interactive' | 'visible_managed' | null; } export interface EventDeleteResponse { @@ -312,6 +324,19 @@ export interface EventCreateParams { * is also set. */ total_active_users?: number | null; + + /** + * Body param: If set, the event will override the waiting room's + * `turnstile_action` property while it is active. If null, the event will inherit + * it. + */ + turnstile_action?: 'log' | 'infinite_queue' | null; + + /** + * Body param: If set, the event will override the waiting room's `turnstile_mode` + * property while it is active. If null, the event will inherit it. + */ + turnstile_mode?: 'off' | 'invisible' | 'visible_non_interactive' | 'visible_managed' | null; } export interface EventUpdateParams { @@ -408,6 +433,19 @@ export interface EventUpdateParams { * is also set. */ total_active_users?: number | null; + + /** + * Body param: If set, the event will override the waiting room's + * `turnstile_action` property while it is active. If null, the event will inherit + * it. + */ + turnstile_action?: 'log' | 'infinite_queue' | null; + + /** + * Body param: If set, the event will override the waiting room's `turnstile_mode` + * property while it is active. If null, the event will inherit it. + */ + turnstile_mode?: 'off' | 'invisible' | 'visible_non_interactive' | 'visible_managed' | null; } export interface EventListParams extends V4PagePaginationArrayParams { @@ -518,6 +556,19 @@ export interface EventEditParams { * is also set. */ total_active_users?: number | null; + + /** + * Body param: If set, the event will override the waiting room's + * `turnstile_action` property while it is active. If null, the event will inherit + * it. + */ + turnstile_action?: 'log' | 'infinite_queue' | null; + + /** + * Body param: If set, the event will override the waiting room's `turnstile_mode` + * property while it is active. If null, the event will inherit it. + */ + turnstile_mode?: 'off' | 'invisible' | 'visible_non_interactive' | 'visible_managed' | null; } export interface EventGetParams { diff --git a/src/resources/zones/zones.ts b/src/resources/zones/zones.ts index daaa1c1f00..b3e8afac73 100644 --- a/src/resources/zones/zones.ts +++ b/src/resources/zones/zones.ts @@ -185,13 +185,13 @@ export class ZonesV4PagePaginationArray extends V4PagePaginationArray {} * A full zone implies that DNS is hosted with Cloudflare. A partial zone is * typically a partner-hosted zone or a CNAME setup. */ -export type Type = 'full' | 'partial' | 'secondary'; +export type Type = 'full' | 'partial' | 'secondary' | 'internal'; /** * A full zone implies that DNS is hosted with Cloudflare. A partial zone is * typically a partner-hosted zone or a CNAME setup. */ -export type TypeParam = 'full' | 'partial' | 'secondary'; +export type TypeParam = 'full' | 'partial' | 'secondary' | 'internal'; export interface Zone { /** diff --git a/tests/api-resources/waiting-rooms/events/events.test.ts b/tests/api-resources/waiting-rooms/events/events.test.ts index 3c018c8e2f..597c01b339 100644 --- a/tests/api-resources/waiting-rooms/events/events.test.ts +++ b/tests/api-resources/waiting-rooms/events/events.test.ts @@ -43,6 +43,8 @@ describe('resource events', () => { shuffle_at_event_start: true, suspended: true, total_active_users: 200, + turnstile_action: 'log', + turnstile_mode: 'off', }); }); @@ -86,6 +88,8 @@ describe('resource events', () => { shuffle_at_event_start: true, suspended: true, total_active_users: 200, + turnstile_action: 'log', + turnstile_mode: 'off', }, ); }); @@ -174,6 +178,8 @@ describe('resource events', () => { shuffle_at_event_start: true, suspended: true, total_active_users: 200, + turnstile_action: 'log', + turnstile_mode: 'off', }, ); }); From 3dc93eec98193e641edbfe6116e6c9b0389fb048 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 19:24:28 +0000 Subject: [PATCH 173/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ea1ce66616..6719d4973d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3f1027f7740afd5fbb6aa554575dd2fd7dd68c0d7c394c68b5515753860eaf8e.yml -openapi_spec_hash: fbe090182fbea3b046b951f6f4fb3b33 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-810e4823e40cd529db136eda0ab3556a49d24d72fb5b5add87e82e73954d5582.yml +openapi_spec_hash: 87de256d3ca667e8292fc260d7d604eb config_hash: af2dbb6a6332cef477c4697db6a78d79 From b94339e1cb3402249d3c69d4f467cf7464bf7e30 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 20:29:41 +0000 Subject: [PATCH 174/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6719d4973d..f57fa30f25 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-810e4823e40cd529db136eda0ab3556a49d24d72fb5b5add87e82e73954d5582.yml -openapi_spec_hash: 87de256d3ca667e8292fc260d7d604eb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dfa188a2b6e206fe003ffa4af584f8d8697a948aee134b60c0bb63e7f7a071b7.yml +openapi_spec_hash: 03354467f3438f37c500675014e2b4c7 config_hash: af2dbb6a6332cef477c4697db6a78d79 From 362dd854c0c1c9f0b3de56189d27b655445e98e2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 20:49:16 +0000 Subject: [PATCH 175/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f57fa30f25..6719d4973d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dfa188a2b6e206fe003ffa4af584f8d8697a948aee134b60c0bb63e7f7a071b7.yml -openapi_spec_hash: 03354467f3438f37c500675014e2b4c7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-810e4823e40cd529db136eda0ab3556a49d24d72fb5b5add87e82e73954d5582.yml +openapi_spec_hash: 87de256d3ca667e8292fc260d7d604eb config_hash: af2dbb6a6332cef477c4697db6a78d79 From 66ce361533689f919524ac38cdd7246d44d9001e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 20:55:52 +0000 Subject: [PATCH 176/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6719d4973d..a17c2d683e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-810e4823e40cd529db136eda0ab3556a49d24d72fb5b5add87e82e73954d5582.yml -openapi_spec_hash: 87de256d3ca667e8292fc260d7d604eb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-538c994d7acb0d4a7958dadaf8e97aa356852e833792c9c813f141926ebfd6e9.yml +openapi_spec_hash: 934551a564bb3e2397ccda1962aa1aa3 config_hash: af2dbb6a6332cef477c4697db6a78d79 From c3c2b3194dc109dfa5f05a67b5380e4d2e814942 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 21:41:36 +0000 Subject: [PATCH 177/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a17c2d683e..107e090e05 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-538c994d7acb0d4a7958dadaf8e97aa356852e833792c9c813f141926ebfd6e9.yml -openapi_spec_hash: 934551a564bb3e2397ccda1962aa1aa3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4eaabd786934a621624c9f0795f39354f5d2b6e99aab17fc8430719789a3f494.yml +openapi_spec_hash: ad19e24e8bd97bdd9130963e467a7913 config_hash: af2dbb6a6332cef477c4697db6a78d79 From cc892963aa00f3f631944fb74ff0d0fe4f851c8d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 21:55:22 +0000 Subject: [PATCH 178/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 107e090e05..376ba76acb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4eaabd786934a621624c9f0795f39354f5d2b6e99aab17fc8430719789a3f494.yml -openapi_spec_hash: ad19e24e8bd97bdd9130963e467a7913 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2dd56bdbc7a949dc3a775d5d8007304436551579b430c15b9b5593b8afba6b51.yml +openapi_spec_hash: 2bbf03bf41a0053304815c2d9a30ffe3 config_hash: af2dbb6a6332cef477c4697db6a78d79 From b76574fe37142b19e6edf6a58ca5c72bffb923fe Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 22:18:37 +0000 Subject: [PATCH 179/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 376ba76acb..139438c868 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2dd56bdbc7a949dc3a775d5d8007304436551579b430c15b9b5593b8afba6b51.yml -openapi_spec_hash: 2bbf03bf41a0053304815c2d9a30ffe3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f13b8d8da4008e9091b8ded53a587d517f9a426a75e6b5e14a062aceaa8791a8.yml +openapi_spec_hash: 41e60f8c9bdd42867030502d9369c3bd config_hash: af2dbb6a6332cef477c4697db6a78d79 From 4b7f44340d0cf52c56ba6075601d44195ee3e05f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 22:31:37 +0000 Subject: [PATCH 180/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 139438c868..07f499b2a9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f13b8d8da4008e9091b8ded53a587d517f9a426a75e6b5e14a062aceaa8791a8.yml -openapi_spec_hash: 41e60f8c9bdd42867030502d9369c3bd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d2ce013615ee092e877f6373c0dc43b6af71fc9f67563de2dece933e172aa7a0.yml +openapi_spec_hash: 317e73ed212f3e8b5ec8d0a10febacb5 config_hash: af2dbb6a6332cef477c4697db6a78d79 From 6fb003f9f924c46451b761bed350d89e2a81d60f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 23:34:31 +0000 Subject: [PATCH 181/461] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 07f499b2a9..4f762b88ca 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1664 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d2ce013615ee092e877f6373c0dc43b6af71fc9f67563de2dece933e172aa7a0.yml -openapi_spec_hash: 317e73ed212f3e8b5ec8d0a10febacb5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e6020a67e862bf0a579c6977605f8e28657d6b161f107192512ac660a3b01858.yml +openapi_spec_hash: 4e7b96ee4e75204fc2667400a1bf84ec config_hash: af2dbb6a6332cef477c4697db6a78d79 From c113defd3aa2ad6aac3186170b3b23e0f29c2680 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 23:45:10 +0000 Subject: [PATCH 182/461] feat(r2): add super_slurper endpoints (#2569) --- .stats.yml | 4 +- api.md | 48 ++ src/resources/r2/index.ts | 1 + src/resources/r2/r2.ts | 6 + src/resources/r2/super-slurper.ts | 3 + .../r2/super-slurper/connectivity-precheck.ts | 198 ++++++++ src/resources/r2/super-slurper/index.ts | 30 ++ src/resources/r2/super-slurper/jobs.ts | 3 + src/resources/r2/super-slurper/jobs/index.ts | 23 + src/resources/r2/super-slurper/jobs/jobs.ts | 441 ++++++++++++++++++ src/resources/r2/super-slurper/jobs/logs.ts | 79 ++++ .../r2/super-slurper/super-slurper.ts | 73 +++ .../connectivity-precheck.test.ts | 54 +++ .../r2/super-slurper/jobs/jobs.test.ts | 151 ++++++ .../r2/super-slurper/jobs/logs.test.ts | 31 ++ 15 files changed, 1143 insertions(+), 2 deletions(-) create mode 100644 src/resources/r2/super-slurper.ts create mode 100644 src/resources/r2/super-slurper/connectivity-precheck.ts create mode 100644 src/resources/r2/super-slurper/index.ts create mode 100644 src/resources/r2/super-slurper/jobs.ts create mode 100644 src/resources/r2/super-slurper/jobs/index.ts create mode 100644 src/resources/r2/super-slurper/jobs/jobs.ts create mode 100644 src/resources/r2/super-slurper/jobs/logs.ts create mode 100644 src/resources/r2/super-slurper/super-slurper.ts create mode 100644 tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts create mode 100644 tests/api-resources/r2/super-slurper/jobs/jobs.test.ts create mode 100644 tests/api-resources/r2/super-slurper/jobs/logs.test.ts diff --git a/.stats.yml b/.stats.yml index 4f762b88ca..a44bc87b82 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 1664 +configured_endpoints: 1675 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e6020a67e862bf0a579c6977605f8e28657d6b161f107192512ac660a3b01858.yml openapi_spec_hash: 4e7b96ee4e75204fc2667400a1bf84ec -config_hash: af2dbb6a6332cef477c4697db6a78d79 +config_hash: 168e7bdbb3c1078b03a9370043cdf57e diff --git a/api.md b/api.md index b8df19c7af..fa22f95336 100644 --- a/api.md +++ b/api.md @@ -4333,6 +4333,54 @@ Methods: - client.r2.temporaryCredentials.create({ ...params }) -> TemporaryCredentialCreateResponse +## SuperSlurper + +### Jobs + +Types: + +- JobCreateResponse +- JobListResponse +- JobAbortResponse +- JobAbortAllResponse +- JobGetResponse +- JobPauseResponse +- JobProgressResponse +- JobResumeResponse + +Methods: + +- client.r2.superSlurper.jobs.create({ ...params }) -> JobCreateResponse +- client.r2.superSlurper.jobs.list({ ...params }) -> JobListResponsesSinglePage +- client.r2.superSlurper.jobs.abort(jobId, { ...params }) -> JobAbortResponse +- client.r2.superSlurper.jobs.abortAll({ ...params }) -> JobAbortAllResponse +- client.r2.superSlurper.jobs.get(jobId, { ...params }) -> JobGetResponse +- client.r2.superSlurper.jobs.pause(jobId, { ...params }) -> JobPauseResponse +- client.r2.superSlurper.jobs.progress(jobId, { ...params }) -> JobProgressResponse +- client.r2.superSlurper.jobs.resume(jobId, { ...params }) -> JobResumeResponse + +#### Logs + +Types: + +- LogListResponse + +Methods: + +- client.r2.superSlurper.jobs.logs.list(jobId, { ...params }) -> LogListResponsesSinglePage + +### ConnectivityPrecheck + +Types: + +- ConnectivityPrecheckSourceResponse +- ConnectivityPrecheckTargetResponse + +Methods: + +- client.r2.superSlurper.connectivityPrecheck.source({ ...params }) -> ConnectivityPrecheckSourceResponse +- client.r2.superSlurper.connectivityPrecheck.target({ ...params }) -> ConnectivityPrecheckTargetResponse + # WorkersForPlatforms ## Dispatch diff --git a/src/resources/r2/index.ts b/src/resources/r2/index.ts index 788ae8bc61..2d9efff053 100644 --- a/src/resources/r2/index.ts +++ b/src/resources/r2/index.ts @@ -11,6 +11,7 @@ export { type BucketGetParams, } from './buckets/index'; export { R2 } from './r2'; +export { SuperSlurper } from './super-slurper/index'; export { TemporaryCredentials, type TemporaryCredential, diff --git a/src/resources/r2/r2.ts b/src/resources/r2/r2.ts index 01c40db57c..e5d199410c 100644 --- a/src/resources/r2/r2.ts +++ b/src/resources/r2/r2.ts @@ -19,15 +19,19 @@ import { BucketListResponse, Buckets, } from './buckets/buckets'; +import * as SuperSlurperAPI from './super-slurper/super-slurper'; +import { SuperSlurper } from './super-slurper/super-slurper'; export class R2 extends APIResource { buckets: BucketsAPI.Buckets = new BucketsAPI.Buckets(this._client); temporaryCredentials: TemporaryCredentialsAPI.TemporaryCredentials = new TemporaryCredentialsAPI.TemporaryCredentials(this._client); + superSlurper: SuperSlurperAPI.SuperSlurper = new SuperSlurperAPI.SuperSlurper(this._client); } R2.Buckets = Buckets; R2.TemporaryCredentials = TemporaryCredentials; +R2.SuperSlurper = SuperSlurper; export declare namespace R2 { export { @@ -47,4 +51,6 @@ export declare namespace R2 { type TemporaryCredentialCreateResponse as TemporaryCredentialCreateResponse, type TemporaryCredentialCreateParams as TemporaryCredentialCreateParams, }; + + export { SuperSlurper as SuperSlurper }; } diff --git a/src/resources/r2/super-slurper.ts b/src/resources/r2/super-slurper.ts new file mode 100644 index 0000000000..701b884b1a --- /dev/null +++ b/src/resources/r2/super-slurper.ts @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +export * from './super-slurper/index'; diff --git a/src/resources/r2/super-slurper/connectivity-precheck.ts b/src/resources/r2/super-slurper/connectivity-precheck.ts new file mode 100644 index 0000000000..562ce9bef9 --- /dev/null +++ b/src/resources/r2/super-slurper/connectivity-precheck.ts @@ -0,0 +1,198 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../../resource'; +import * as Core from '../../../core'; +import * as SippyAPI from '../buckets/sippy'; + +export class ConnectivityPrecheck extends APIResource { + /** + * Check whether tokens are valid against the source bucket + */ + source( + params: ConnectivityPrecheckSourceParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, ...body } = params; + return ( + this._client.put(`/accounts/${account_id}/slurper/source/connectivity-precheck`, { + body, + ...options, + }) as Core.APIPromise<{ result: ConnectivityPrecheckSourceResponse }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Check whether tokens are valid against the target bucket + */ + target( + params: ConnectivityPrecheckTargetParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, ...body } = params; + return ( + this._client.put(`/accounts/${account_id}/slurper/target/connectivity-precheck`, { + body, + ...options, + }) as Core.APIPromise<{ result: ConnectivityPrecheckTargetResponse }> + )._thenUnwrap((obj) => obj.result); + } +} + +export interface ConnectivityPrecheckSourceResponse { + connectivityStatus?: 'success' | 'error'; +} + +export interface ConnectivityPrecheckTargetResponse { + connectivityStatus?: 'success' | 'error'; +} + +export type ConnectivityPrecheckSourceParams = + | ConnectivityPrecheckSourceParams.R2SlurperS3SourceSchema + | ConnectivityPrecheckSourceParams.R2SlurperGcsSourceSchema + | ConnectivityPrecheckSourceParams.R2SlurperR2SourceSchema; + +export declare namespace ConnectivityPrecheckSourceParams { + export interface R2SlurperS3SourceSchema { + /** + * Path param: + */ + account_id: string; + + /** + * Body param: + */ + bucket?: string; + + /** + * Body param: + */ + endpoint?: string | null; + + /** + * Body param: + */ + secret?: R2SlurperS3SourceSchema.Secret; + + /** + * Body param: + */ + vendor?: 's3'; + } + + export namespace R2SlurperS3SourceSchema { + export interface Secret { + accessKeyId?: string; + + secretAccessKey?: string; + } + } + + export interface R2SlurperGcsSourceSchema { + /** + * Path param: + */ + account_id: string; + + /** + * Body param: + */ + bucket?: string; + + /** + * Body param: + */ + secret?: R2SlurperGcsSourceSchema.Secret; + + /** + * Body param: + */ + vendor?: 'gcs'; + } + + export namespace R2SlurperGcsSourceSchema { + export interface Secret { + clientEmail?: string; + + privateKey?: string; + } + } + + export interface R2SlurperR2SourceSchema { + /** + * Path param: + */ + account_id: string; + + /** + * Body param: + */ + bucket?: string; + + /** + * Body param: + */ + jurisdiction?: 'default' | 'eu' | 'fedramp'; + + /** + * Body param: + */ + secret?: R2SlurperR2SourceSchema.Secret; + + /** + * Body param: + */ + vendor?: SippyAPI.ProviderParam; + } + + export namespace R2SlurperR2SourceSchema { + export interface Secret { + accessKeyId?: string; + + secretAccessKey?: string; + } + } +} + +export interface ConnectivityPrecheckTargetParams { + /** + * Path param: + */ + account_id: string; + + /** + * Body param: + */ + bucket?: string; + + /** + * Body param: + */ + jurisdiction?: 'default' | 'eu' | 'fedramp'; + + /** + * Body param: + */ + secret?: ConnectivityPrecheckTargetParams.Secret; + + /** + * Body param: + */ + vendor?: SippyAPI.ProviderParam; +} + +export namespace ConnectivityPrecheckTargetParams { + export interface Secret { + accessKeyId?: string; + + secretAccessKey?: string; + } +} + +export declare namespace ConnectivityPrecheck { + export { + type ConnectivityPrecheckSourceResponse as ConnectivityPrecheckSourceResponse, + type ConnectivityPrecheckTargetResponse as ConnectivityPrecheckTargetResponse, + type ConnectivityPrecheckSourceParams as ConnectivityPrecheckSourceParams, + type ConnectivityPrecheckTargetParams as ConnectivityPrecheckTargetParams, + }; +} diff --git a/src/resources/r2/super-slurper/index.ts b/src/resources/r2/super-slurper/index.ts new file mode 100644 index 0000000000..59ce3330f5 --- /dev/null +++ b/src/resources/r2/super-slurper/index.ts @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +export { + ConnectivityPrecheck, + type ConnectivityPrecheckSourceResponse, + type ConnectivityPrecheckTargetResponse, + type ConnectivityPrecheckSourceParams, + type ConnectivityPrecheckTargetParams, +} from './connectivity-precheck'; +export { + JobListResponsesSinglePage, + Jobs, + type JobCreateResponse, + type JobListResponse, + type JobAbortResponse, + type JobAbortAllResponse, + type JobGetResponse, + type JobPauseResponse, + type JobProgressResponse, + type JobResumeResponse, + type JobCreateParams, + type JobListParams, + type JobAbortParams, + type JobAbortAllParams, + type JobGetParams, + type JobPauseParams, + type JobProgressParams, + type JobResumeParams, +} from './jobs/index'; +export { SuperSlurper } from './super-slurper'; diff --git a/src/resources/r2/super-slurper/jobs.ts b/src/resources/r2/super-slurper/jobs.ts new file mode 100644 index 0000000000..6640de1f20 --- /dev/null +++ b/src/resources/r2/super-slurper/jobs.ts @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +export * from './jobs/index'; diff --git a/src/resources/r2/super-slurper/jobs/index.ts b/src/resources/r2/super-slurper/jobs/index.ts new file mode 100644 index 0000000000..7c7d6c772b --- /dev/null +++ b/src/resources/r2/super-slurper/jobs/index.ts @@ -0,0 +1,23 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +export { + JobListResponsesSinglePage, + Jobs, + type JobCreateResponse, + type JobListResponse, + type JobAbortResponse, + type JobAbortAllResponse, + type JobGetResponse, + type JobPauseResponse, + type JobProgressResponse, + type JobResumeResponse, + type JobCreateParams, + type JobListParams, + type JobAbortParams, + type JobAbortAllParams, + type JobGetParams, + type JobPauseParams, + type JobProgressParams, + type JobResumeParams, +} from './jobs'; +export { LogListResponsesSinglePage, Logs, type LogListResponse, type LogListParams } from './logs'; diff --git a/src/resources/r2/super-slurper/jobs/jobs.ts b/src/resources/r2/super-slurper/jobs/jobs.ts new file mode 100644 index 0000000000..96fc927c2e --- /dev/null +++ b/src/resources/r2/super-slurper/jobs/jobs.ts @@ -0,0 +1,441 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../../../resource'; +import * as Core from '../../../../core'; +import * as SippyAPI from '../../buckets/sippy'; +import * as LogsAPI from './logs'; +import { LogListParams, LogListResponse, LogListResponsesSinglePage, Logs } from './logs'; +import { SinglePage } from '../../../../pagination'; + +export class Jobs extends APIResource { + logs: LogsAPI.Logs = new LogsAPI.Logs(this._client); + + /** + * Create a job + */ + create(params: JobCreateParams, options?: Core.RequestOptions): Core.APIPromise { + const { account_id, ...body } = params; + return ( + this._client.post(`/accounts/${account_id}/slurper/jobs`, { body, ...options }) as Core.APIPromise<{ + result: JobCreateResponse; + }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * List jobs + */ + list( + params: JobListParams, + options?: Core.RequestOptions, + ): Core.PagePromise { + const { account_id, ...query } = params; + return this._client.getAPIList(`/accounts/${account_id}/slurper/jobs`, JobListResponsesSinglePage, { + query, + ...options, + }); + } + + /** + * Abort a job + */ + abort( + jobId: string, + params: JobAbortParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id } = params; + return ( + this._client.put(`/accounts/${account_id}/slurper/jobs/${jobId}/abort`, options) as Core.APIPromise<{ + result: JobAbortResponse; + }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Abort all jobs + */ + abortAll(params: JobAbortAllParams, options?: Core.RequestOptions): Core.APIPromise { + const { account_id } = params; + return ( + this._client.put(`/accounts/${account_id}/slurper/jobs/abortAll`, options) as Core.APIPromise<{ + result: JobAbortAllResponse; + }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Get job details + */ + get(jobId: string, params: JobGetParams, options?: Core.RequestOptions): Core.APIPromise { + const { account_id } = params; + return ( + this._client.get(`/accounts/${account_id}/slurper/jobs/${jobId}`, options) as Core.APIPromise<{ + result: JobGetResponse; + }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Pause a job + */ + pause( + jobId: string, + params: JobPauseParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id } = params; + return ( + this._client.put(`/accounts/${account_id}/slurper/jobs/${jobId}/pause`, options) as Core.APIPromise<{ + result: JobPauseResponse; + }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Get job progress + */ + progress( + jobId: string, + params: JobProgressParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id } = params; + return ( + this._client.get(`/accounts/${account_id}/slurper/jobs/${jobId}/progress`, options) as Core.APIPromise<{ + result: JobProgressResponse; + }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Resume a job + */ + resume( + jobId: string, + params: JobResumeParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id } = params; + return ( + this._client.put(`/accounts/${account_id}/slurper/jobs/${jobId}/resume`, options) as Core.APIPromise<{ + result: JobResumeResponse; + }> + )._thenUnwrap((obj) => obj.result); + } +} + +export class JobListResponsesSinglePage extends SinglePage {} + +export interface JobCreateResponse { + jobId?: string; +} + +export interface JobListResponse { + id?: string; + + createdAt?: string; + + finishedAt?: string | null; + + overwrite?: boolean; + + source?: + | JobListResponse.S3SourceResponseSchema + | JobListResponse.GcsSourceResponseSchema + | JobListResponse.R2SourceResponseSchema; + + status?: 'running' | 'paused' | 'aborted' | 'completed'; + + target?: JobListResponse.Target; +} + +export namespace JobListResponse { + export interface S3SourceResponseSchema { + bucket?: string; + + endpoint?: string | null; + + pathPrefix?: string | null; + + vendor?: 's3'; + } + + export interface GcsSourceResponseSchema { + bucket?: string; + + pathPrefix?: string | null; + + vendor?: 'gcs'; + } + + export interface R2SourceResponseSchema { + bucket?: string; + + jurisdiction?: 'default' | 'eu' | 'fedramp'; + + pathPrefix?: string | null; + + vendor?: SippyAPI.Provider; + } + + export interface Target { + bucket?: string; + + jurisdiction?: 'default' | 'eu' | 'fedramp'; + + vendor?: SippyAPI.Provider; + } +} + +export type JobAbortResponse = string; + +export type JobAbortAllResponse = string; + +export interface JobGetResponse { + id?: string; + + createdAt?: string; + + finishedAt?: string | null; + + overwrite?: boolean; + + source?: + | JobGetResponse.S3SourceResponseSchema + | JobGetResponse.GcsSourceResponseSchema + | JobGetResponse.R2SourceResponseSchema; + + status?: 'running' | 'paused' | 'aborted' | 'completed'; + + target?: JobGetResponse.Target; +} + +export namespace JobGetResponse { + export interface S3SourceResponseSchema { + bucket?: string; + + endpoint?: string | null; + + pathPrefix?: string | null; + + vendor?: 's3'; + } + + export interface GcsSourceResponseSchema { + bucket?: string; + + pathPrefix?: string | null; + + vendor?: 'gcs'; + } + + export interface R2SourceResponseSchema { + bucket?: string; + + jurisdiction?: 'default' | 'eu' | 'fedramp'; + + pathPrefix?: string | null; + + vendor?: SippyAPI.Provider; + } + + export interface Target { + bucket?: string; + + jurisdiction?: 'default' | 'eu' | 'fedramp'; + + vendor?: SippyAPI.Provider; + } +} + +export type JobPauseResponse = string; + +export interface JobProgressResponse { + id?: string; + + createdAt?: string; + + failedObjects?: number; + + objects?: number; + + skippedObjects?: number; + + status?: 'running' | 'paused' | 'aborted' | 'completed'; + + transferredObjects?: number; +} + +export type JobResumeResponse = string; + +export interface JobCreateParams { + /** + * Path param: + */ + account_id: string; + + /** + * Body param: + */ + overwrite?: boolean; + + /** + * Body param: + */ + source?: + | JobCreateParams.R2SlurperS3SourceSchema + | JobCreateParams.R2SlurperGcsSourceSchema + | JobCreateParams.R2SlurperR2SourceSchema; + + /** + * Body param: + */ + target?: JobCreateParams.Target; +} + +export namespace JobCreateParams { + export interface R2SlurperS3SourceSchema { + bucket?: string; + + endpoint?: string | null; + + secret?: R2SlurperS3SourceSchema.Secret; + + vendor?: 's3'; + } + + export namespace R2SlurperS3SourceSchema { + export interface Secret { + accessKeyId?: string; + + secretAccessKey?: string; + } + } + + export interface R2SlurperGcsSourceSchema { + bucket?: string; + + secret?: R2SlurperGcsSourceSchema.Secret; + + vendor?: 'gcs'; + } + + export namespace R2SlurperGcsSourceSchema { + export interface Secret { + clientEmail?: string; + + privateKey?: string; + } + } + + export interface R2SlurperR2SourceSchema { + bucket?: string; + + jurisdiction?: 'default' | 'eu' | 'fedramp'; + + secret?: R2SlurperR2SourceSchema.Secret; + + vendor?: SippyAPI.ProviderParam; + } + + export namespace R2SlurperR2SourceSchema { + export interface Secret { + accessKeyId?: string; + + secretAccessKey?: string; + } + } + + export interface Target { + bucket?: string; + + jurisdiction?: 'default' | 'eu' | 'fedramp'; + + secret?: Target.Secret; + + vendor?: SippyAPI.ProviderParam; + } + + export namespace Target { + export interface Secret { + accessKeyId?: string; + + secretAccessKey?: string; + } + } +} + +export interface JobListParams { + /** + * Path param: + */ + account_id: string; + + /** + * Query param: + */ + limit?: number; + + /** + * Query param: + */ + offset?: number; +} + +export interface JobAbortParams { + account_id: string; +} + +export interface JobAbortAllParams { + account_id: string; +} + +export interface JobGetParams { + account_id: string; +} + +export interface JobPauseParams { + account_id: string; +} + +export interface JobProgressParams { + account_id: string; +} + +export interface JobResumeParams { + account_id: string; +} + +Jobs.JobListResponsesSinglePage = JobListResponsesSinglePage; +Jobs.Logs = Logs; +Jobs.LogListResponsesSinglePage = LogListResponsesSinglePage; + +export declare namespace Jobs { + export { + type JobCreateResponse as JobCreateResponse, + type JobListResponse as JobListResponse, + type JobAbortResponse as JobAbortResponse, + type JobAbortAllResponse as JobAbortAllResponse, + type JobGetResponse as JobGetResponse, + type JobPauseResponse as JobPauseResponse, + type JobProgressResponse as JobProgressResponse, + type JobResumeResponse as JobResumeResponse, + JobListResponsesSinglePage as JobListResponsesSinglePage, + type JobCreateParams as JobCreateParams, + type JobListParams as JobListParams, + type JobAbortParams as JobAbortParams, + type JobAbortAllParams as JobAbortAllParams, + type JobGetParams as JobGetParams, + type JobPauseParams as JobPauseParams, + type JobProgressParams as JobProgressParams, + type JobResumeParams as JobResumeParams, + }; + + export { + Logs as Logs, + type LogListResponse as LogListResponse, + LogListResponsesSinglePage as LogListResponsesSinglePage, + type LogListParams as LogListParams, + }; +} diff --git a/src/resources/r2/super-slurper/jobs/logs.ts b/src/resources/r2/super-slurper/jobs/logs.ts new file mode 100644 index 0000000000..f5fa24efc0 --- /dev/null +++ b/src/resources/r2/super-slurper/jobs/logs.ts @@ -0,0 +1,79 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../../../resource'; +import * as Core from '../../../../core'; +import { SinglePage } from '../../../../pagination'; + +export class Logs extends APIResource { + /** + * Get job logs + */ + list( + jobId: string, + params: LogListParams, + options?: Core.RequestOptions, + ): Core.PagePromise { + const { account_id, ...query } = params; + return this._client.getAPIList( + `/accounts/${account_id}/slurper/jobs/${jobId}/logs`, + LogListResponsesSinglePage, + { query, ...options }, + ); + } +} + +export class LogListResponsesSinglePage extends SinglePage {} + +export interface LogListResponse { + createdAt?: string; + + job?: string; + + logType?: + | 'migrationStart' + | 'migrationComplete' + | 'migrationAbort' + | 'migrationError' + | 'migrationPause' + | 'migrationResume' + | 'migrationErrorFailedContinuation' + | 'importErrorRetryExhaustion' + | 'importSkippedStorageClass' + | 'importSkippedOversized' + | 'importSkippedEmptyObject' + | 'importSkippedUnsupportedContentType' + | 'importSkippedExcludedContentType' + | 'importSkippedInvalidMedia' + | 'importSkippedRequiresRetrieval'; + + message?: string | null; + + objectKey?: string | null; +} + +export interface LogListParams { + /** + * Path param: + */ + account_id: string; + + /** + * Query param: + */ + limit?: number; + + /** + * Query param: + */ + offset?: number; +} + +Logs.LogListResponsesSinglePage = LogListResponsesSinglePage; + +export declare namespace Logs { + export { + type LogListResponse as LogListResponse, + LogListResponsesSinglePage as LogListResponsesSinglePage, + type LogListParams as LogListParams, + }; +} diff --git a/src/resources/r2/super-slurper/super-slurper.ts b/src/resources/r2/super-slurper/super-slurper.ts new file mode 100644 index 0000000000..9eb14c5f43 --- /dev/null +++ b/src/resources/r2/super-slurper/super-slurper.ts @@ -0,0 +1,73 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../../resource'; +import * as ConnectivityPrecheckAPI from './connectivity-precheck'; +import { + ConnectivityPrecheck, + ConnectivityPrecheckSourceParams, + ConnectivityPrecheckSourceResponse, + ConnectivityPrecheckTargetParams, + ConnectivityPrecheckTargetResponse, +} from './connectivity-precheck'; +import * as JobsAPI from './jobs/jobs'; +import { + JobAbortAllParams, + JobAbortAllResponse, + JobAbortParams, + JobAbortResponse, + JobCreateParams, + JobCreateResponse, + JobGetParams, + JobGetResponse, + JobListParams, + JobListResponse, + JobListResponsesSinglePage, + JobPauseParams, + JobPauseResponse, + JobProgressParams, + JobProgressResponse, + JobResumeParams, + JobResumeResponse, + Jobs, +} from './jobs/jobs'; + +export class SuperSlurper extends APIResource { + jobs: JobsAPI.Jobs = new JobsAPI.Jobs(this._client); + connectivityPrecheck: ConnectivityPrecheckAPI.ConnectivityPrecheck = + new ConnectivityPrecheckAPI.ConnectivityPrecheck(this._client); +} + +SuperSlurper.Jobs = Jobs; +SuperSlurper.JobListResponsesSinglePage = JobListResponsesSinglePage; +SuperSlurper.ConnectivityPrecheck = ConnectivityPrecheck; + +export declare namespace SuperSlurper { + export { + Jobs as Jobs, + type JobCreateResponse as JobCreateResponse, + type JobListResponse as JobListResponse, + type JobAbortResponse as JobAbortResponse, + type JobAbortAllResponse as JobAbortAllResponse, + type JobGetResponse as JobGetResponse, + type JobPauseResponse as JobPauseResponse, + type JobProgressResponse as JobProgressResponse, + type JobResumeResponse as JobResumeResponse, + JobListResponsesSinglePage as JobListResponsesSinglePage, + type JobCreateParams as JobCreateParams, + type JobListParams as JobListParams, + type JobAbortParams as JobAbortParams, + type JobAbortAllParams as JobAbortAllParams, + type JobGetParams as JobGetParams, + type JobPauseParams as JobPauseParams, + type JobProgressParams as JobProgressParams, + type JobResumeParams as JobResumeParams, + }; + + export { + ConnectivityPrecheck as ConnectivityPrecheck, + type ConnectivityPrecheckSourceResponse as ConnectivityPrecheckSourceResponse, + type ConnectivityPrecheckTargetResponse as ConnectivityPrecheckTargetResponse, + type ConnectivityPrecheckSourceParams as ConnectivityPrecheckSourceParams, + type ConnectivityPrecheckTargetParams as ConnectivityPrecheckTargetParams, + }; +} diff --git a/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts b/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts new file mode 100644 index 0000000000..c3238ed19b --- /dev/null +++ b/tests/api-resources/r2/super-slurper/connectivity-precheck.test.ts @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import Cloudflare from 'cloudflare'; +import { Response } from 'node-fetch'; + +const client = new Cloudflare({ + apiKey: '144c9defac04969c7bfad8efaa8ea194', + apiEmail: 'user@example.com', + baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', +}); + +describe('resource connectivityPrecheck', () => { + test('source: only required params', async () => { + const responsePromise = client.r2.superSlurper.connectivityPrecheck.source({ account_id: 'account_id' }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('source: required and optional params', async () => { + const response = await client.r2.superSlurper.connectivityPrecheck.source({ + account_id: 'account_id', + bucket: 'bucket', + endpoint: 'endpoint', + secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' }, + vendor: 's3', + }); + }); + + test('target: only required params', async () => { + const responsePromise = client.r2.superSlurper.connectivityPrecheck.target({ account_id: 'account_id' }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('target: required and optional params', async () => { + const response = await client.r2.superSlurper.connectivityPrecheck.target({ + account_id: 'account_id', + bucket: 'bucket', + jurisdiction: 'default', + secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' }, + vendor: 'r2', + }); + }); +}); diff --git a/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts b/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts new file mode 100644 index 0000000000..25fbd97cef --- /dev/null +++ b/tests/api-resources/r2/super-slurper/jobs/jobs.test.ts @@ -0,0 +1,151 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import Cloudflare from 'cloudflare'; +import { Response } from 'node-fetch'; + +const client = new Cloudflare({ + apiKey: '144c9defac04969c7bfad8efaa8ea194', + apiEmail: 'user@example.com', + baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', +}); + +describe('resource jobs', () => { + test('create: only required params', async () => { + const responsePromise = client.r2.superSlurper.jobs.create({ account_id: 'account_id' }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('create: required and optional params', async () => { + const response = await client.r2.superSlurper.jobs.create({ + account_id: 'account_id', + overwrite: true, + source: { + bucket: 'bucket', + endpoint: 'endpoint', + secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' }, + vendor: 's3', + }, + target: { + bucket: 'bucket', + jurisdiction: 'default', + secret: { accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey' }, + vendor: 'r2', + }, + }); + }); + + test('list: only required params', async () => { + const responsePromise = client.r2.superSlurper.jobs.list({ account_id: 'account_id' }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('list: required and optional params', async () => { + const response = await client.r2.superSlurper.jobs.list({ + account_id: 'account_id', + limit: 50, + offset: 0, + }); + }); + + test('abort: only required params', async () => { + const responsePromise = client.r2.superSlurper.jobs.abort('jobId', { account_id: 'account_id' }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('abort: required and optional params', async () => { + const response = await client.r2.superSlurper.jobs.abort('jobId', { account_id: 'account_id' }); + }); + + test('abortAll: only required params', async () => { + const responsePromise = client.r2.superSlurper.jobs.abortAll({ account_id: 'account_id' }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('abortAll: required and optional params', async () => { + const response = await client.r2.superSlurper.jobs.abortAll({ account_id: 'account_id' }); + }); + + test('get: only required params', async () => { + const responsePromise = client.r2.superSlurper.jobs.get('jobId', { account_id: 'account_id' }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('get: required and optional params', async () => { + const response = await client.r2.superSlurper.jobs.get('jobId', { account_id: 'account_id' }); + }); + + test('pause: only required params', async () => { + const responsePromise = client.r2.superSlurper.jobs.pause('jobId', { account_id: 'account_id' }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('pause: required and optional params', async () => { + const response = await client.r2.superSlurper.jobs.pause('jobId', { account_id: 'account_id' }); + }); + + test('progress: only required params', async () => { + const responsePromise = client.r2.superSlurper.jobs.progress('jobId', { account_id: 'account_id' }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('progress: required and optional params', async () => { + const response = await client.r2.superSlurper.jobs.progress('jobId', { account_id: 'account_id' }); + }); + + test('resume: only required params', async () => { + const responsePromise = client.r2.superSlurper.jobs.resume('jobId', { account_id: 'account_id' }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('resume: required and optional params', async () => { + const response = await client.r2.superSlurper.jobs.resume('jobId', { account_id: 'account_id' }); + }); +}); diff --git a/tests/api-resources/r2/super-slurper/jobs/logs.test.ts b/tests/api-resources/r2/super-slurper/jobs/logs.test.ts new file mode 100644 index 0000000000..df464498fa --- /dev/null +++ b/tests/api-resources/r2/super-slurper/jobs/logs.test.ts @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import Cloudflare from 'cloudflare'; +import { Response } from 'node-fetch'; + +const client = new Cloudflare({ + apiKey: '144c9defac04969c7bfad8efaa8ea194', + apiEmail: 'user@example.com', + baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', +}); + +describe('resource logs', () => { + test('list: only required params', async () => { + const responsePromise = client.r2.superSlurper.jobs.logs.list('jobId', { account_id: 'account_id' }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('list: required and optional params', async () => { + const response = await client.r2.superSlurper.jobs.logs.list('jobId', { + account_id: 'account_id', + limit: 50, + offset: 0, + }); + }); +}); From 182b573fff116d49f06240ccbdccacec61c3dcf2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 23:55:12 +0000 Subject: [PATCH 183/461] feat(browser_rendering): add json, links and markdown support (#2570) --- .stats.yml | 4 +- api.md | 30 ++ .../browser-rendering/browser-rendering.ts | 30 ++ src/resources/browser-rendering/index.ts | 3 + src/resources/browser-rendering/json.ts | 305 ++++++++++++++++++ src/resources/browser-rendering/links.ts | 289 +++++++++++++++++ src/resources/browser-rendering/markdown.ts | 294 +++++++++++++++++ .../browser-rendering/json.test.ts | 80 +++++ .../browser-rendering/links.test.ts | 79 +++++ .../browser-rendering/markdown.test.ts | 78 +++++ 10 files changed, 1190 insertions(+), 2 deletions(-) create mode 100644 src/resources/browser-rendering/json.ts create mode 100644 src/resources/browser-rendering/links.ts create mode 100644 src/resources/browser-rendering/markdown.ts create mode 100644 tests/api-resources/browser-rendering/json.test.ts create mode 100644 tests/api-resources/browser-rendering/links.test.ts create mode 100644 tests/api-resources/browser-rendering/markdown.test.ts diff --git a/.stats.yml b/.stats.yml index a44bc87b82..87d71cccd2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 1675 +configured_endpoints: 1678 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e6020a67e862bf0a579c6977605f8e28657d6b161f107192512ac660a3b01858.yml openapi_spec_hash: 4e7b96ee4e75204fc2667400a1bf84ec -config_hash: 168e7bdbb3c1078b03a9370043cdf57e +config_hash: 3ece0d947c96cf13d886f57d8451c3f2 diff --git a/api.md b/api.md index fa22f95336..3cd649f24f 100644 --- a/api.md +++ b/api.md @@ -8295,6 +8295,36 @@ Methods: - client.browserRendering.snapshot.create({ ...params }) -> SnapshotCreateResponse +## Json + +Types: + +- JsonCreateResponse + +Methods: + +- client.browserRendering.json.create({ ...params }) -> JsonCreateResponse + +## Links + +Types: + +- LinkCreateResponse + +Methods: + +- client.browserRendering.links.create({ ...params }) -> LinkCreateResponse + +## Markdown + +Types: + +- MarkdownCreateResponse + +Methods: + +- client.browserRendering.markdown.create({ ...params }) -> MarkdownCreateResponse + # CustomPages Types: diff --git a/src/resources/browser-rendering/browser-rendering.ts b/src/resources/browser-rendering/browser-rendering.ts index fceb64045a..4bc9dab9bd 100644 --- a/src/resources/browser-rendering/browser-rendering.ts +++ b/src/resources/browser-rendering/browser-rendering.ts @@ -3,6 +3,12 @@ import { APIResource } from '../../resource'; import * as ContentAPI from './content'; import { Content, ContentCreateParams, ContentCreateResponse } from './content'; +import * as JsonAPI from './json'; +import { Json, JsonCreateParams, JsonCreateResponse } from './json'; +import * as LinksAPI from './links'; +import { LinkCreateParams, LinkCreateResponse, Links } from './links'; +import * as MarkdownAPI from './markdown'; +import { Markdown, MarkdownCreateParams, MarkdownCreateResponse } from './markdown'; import * as PDFAPI from './pdf'; import { PDF, PDFCreateParams } from './pdf'; import * as ScrapeAPI from './scrape'; @@ -18,6 +24,9 @@ export class BrowserRendering extends APIResource { scrape: ScrapeAPI.Scrape = new ScrapeAPI.Scrape(this._client); screenshot: ScreenshotAPI.Screenshot = new ScreenshotAPI.Screenshot(this._client); snapshot: SnapshotAPI.Snapshot = new SnapshotAPI.Snapshot(this._client); + json: JsonAPI.Json = new JsonAPI.Json(this._client); + links: LinksAPI.Links = new LinksAPI.Links(this._client); + markdown: MarkdownAPI.Markdown = new MarkdownAPI.Markdown(this._client); } BrowserRendering.Content = Content; @@ -25,6 +34,9 @@ BrowserRendering.PDF = PDF; BrowserRendering.Scrape = Scrape; BrowserRendering.Screenshot = Screenshot; BrowserRendering.Snapshot = Snapshot; +BrowserRendering.Json = Json; +BrowserRendering.Links = Links; +BrowserRendering.Markdown = Markdown; export declare namespace BrowserRendering { export { @@ -52,4 +64,22 @@ export declare namespace BrowserRendering { type SnapshotCreateResponse as SnapshotCreateResponse, type SnapshotCreateParams as SnapshotCreateParams, }; + + export { + Json as Json, + type JsonCreateResponse as JsonCreateResponse, + type JsonCreateParams as JsonCreateParams, + }; + + export { + Links as Links, + type LinkCreateResponse as LinkCreateResponse, + type LinkCreateParams as LinkCreateParams, + }; + + export { + Markdown as Markdown, + type MarkdownCreateResponse as MarkdownCreateResponse, + type MarkdownCreateParams as MarkdownCreateParams, + }; } diff --git a/src/resources/browser-rendering/index.ts b/src/resources/browser-rendering/index.ts index 3ff6884cfa..1602f26449 100644 --- a/src/resources/browser-rendering/index.ts +++ b/src/resources/browser-rendering/index.ts @@ -2,6 +2,9 @@ export { BrowserRendering } from './browser-rendering'; export { Content, type ContentCreateResponse, type ContentCreateParams } from './content'; +export { Json, type JsonCreateResponse, type JsonCreateParams } from './json'; +export { Links, type LinkCreateResponse, type LinkCreateParams } from './links'; +export { Markdown, type MarkdownCreateResponse, type MarkdownCreateParams } from './markdown'; export { PDF, type PDFCreateParams } from './pdf'; export { Scrape, type ScrapeCreateResponse, type ScrapeCreateParams } from './scrape'; export { Screenshot, type ScreenshotCreateResponse, type ScreenshotCreateParams } from './screenshot'; diff --git a/src/resources/browser-rendering/json.ts b/src/resources/browser-rendering/json.ts new file mode 100644 index 0000000000..e25cc79245 --- /dev/null +++ b/src/resources/browser-rendering/json.ts @@ -0,0 +1,305 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../resource'; +import * as Core from '../../core'; + +export class Json extends APIResource { + /** + * Gets json from a webpage from a provided URL or HTML. Pass `prompt` or `schema` + * in the body. Control page loading with `gotoOptions` and `waitFor*` options. + */ + create(params: JsonCreateParams, options?: Core.RequestOptions): Core.APIPromise { + const { account_id, cacheTTL, ...body } = params; + return ( + this._client.post(`/accounts/${account_id}/browser-rendering/json`, { + query: { cacheTTL }, + body, + ...options, + }) as Core.APIPromise<{ result: JsonCreateResponse }> + )._thenUnwrap((obj) => obj.result); + } +} + +export type JsonCreateResponse = Record; + +export interface JsonCreateParams { + /** + * Path param: Account ID. + */ + account_id: string; + + /** + * Query param: Cache TTL default is 5s. Set to 0 to disable. + */ + cacheTTL?: number; + + /** + * Body param: Adds a `