From d8fe580aafdfdd49f7e09fe89d350d17b507758b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 23:44:41 +0000 Subject: [PATCH 001/366] chore(docs): grammar improvements From df38ba4ff3f8f029cfc45a8d2dfb8304091f5b57 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 17:57:39 +0000 Subject: [PATCH 002/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 470cb923dc..524c6fa241 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fbc6a8fce0f0e610b2737d9dc9755ab47d02a55d23152e9bdee060780a422df5.yml -openapi_spec_hash: 26c9bd123e3ac76b7c135c949c244286 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a275fea92bfc05931697e56a2b00b15f8351e168b5e1de5731d52180e35a66d8.yml +openapi_spec_hash: efe1a66814eeb2671e8a4bb1fa7846d5 config_hash: 7e270b3449efce600e3469937a344c2d From c60882c70d6fe8128e343c96b3e0c4f20183f8b2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 18:02:02 +0000 Subject: [PATCH 003/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 524c6fa241..46b6dc4aa2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a275fea92bfc05931697e56a2b00b15f8351e168b5e1de5731d52180e35a66d8.yml -openapi_spec_hash: efe1a66814eeb2671e8a4bb1fa7846d5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-850aaa78f2540328befdca9ad7a626784f4eb07e33ac7faaeda4a54952e2ffd8.yml +openapi_spec_hash: ca9eca1d411481f1f014568a713e8ce5 config_hash: 7e270b3449efce600e3469937a344c2d From d3bb0ec8556007ab0ff274ee808a75e2a91e2479 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 18:08:35 +0000 Subject: [PATCH 004/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 46b6dc4aa2..524c6fa241 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-850aaa78f2540328befdca9ad7a626784f4eb07e33ac7faaeda4a54952e2ffd8.yml -openapi_spec_hash: ca9eca1d411481f1f014568a713e8ce5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a275fea92bfc05931697e56a2b00b15f8351e168b5e1de5731d52180e35a66d8.yml +openapi_spec_hash: efe1a66814eeb2671e8a4bb1fa7846d5 config_hash: 7e270b3449efce600e3469937a344c2d From bc9d932ef8becef37a91cf84b83458bc2ef7192e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 18:11:28 +0000 Subject: [PATCH 005/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 524c6fa241..fe06d69991 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a275fea92bfc05931697e56a2b00b15f8351e168b5e1de5731d52180e35a66d8.yml -openapi_spec_hash: efe1a66814eeb2671e8a4bb1fa7846d5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ae6de4480382dbc622f468482b25fa352625256ea37e3ce4055a81bf30a36e9a.yml +openapi_spec_hash: 3dda970684ca7c6339c1f8333dd687ec config_hash: 7e270b3449efce600e3469937a344c2d From 85a903de30fb2c762704b9f742878a148c78a5f8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 18:26:04 +0000 Subject: [PATCH 006/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index fe06d69991..524c6fa241 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ae6de4480382dbc622f468482b25fa352625256ea37e3ce4055a81bf30a36e9a.yml -openapi_spec_hash: 3dda970684ca7c6339c1f8333dd687ec +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a275fea92bfc05931697e56a2b00b15f8351e168b5e1de5731d52180e35a66d8.yml +openapi_spec_hash: efe1a66814eeb2671e8a4bb1fa7846d5 config_hash: 7e270b3449efce600e3469937a344c2d From 7c088802553230a4219cb43515616d8404f0f5f1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 18:30:16 +0000 Subject: [PATCH 007/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 524c6fa241..fe06d69991 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a275fea92bfc05931697e56a2b00b15f8351e168b5e1de5731d52180e35a66d8.yml -openapi_spec_hash: efe1a66814eeb2671e8a4bb1fa7846d5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ae6de4480382dbc622f468482b25fa352625256ea37e3ce4055a81bf30a36e9a.yml +openapi_spec_hash: 3dda970684ca7c6339c1f8333dd687ec config_hash: 7e270b3449efce600e3469937a344c2d From 6292c4d904ff3adc4ed6bb00562dfb2e644e5907 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 19:10:53 +0000 Subject: [PATCH 008/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index fe06d69991..524c6fa241 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ae6de4480382dbc622f468482b25fa352625256ea37e3ce4055a81bf30a36e9a.yml -openapi_spec_hash: 3dda970684ca7c6339c1f8333dd687ec +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a275fea92bfc05931697e56a2b00b15f8351e168b5e1de5731d52180e35a66d8.yml +openapi_spec_hash: efe1a66814eeb2671e8a4bb1fa7846d5 config_hash: 7e270b3449efce600e3469937a344c2d From fe55e90ed0ec90f10a7116662773fd2d269766a0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 19:13:30 +0000 Subject: [PATCH 009/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 524c6fa241..3922e10a49 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a275fea92bfc05931697e56a2b00b15f8351e168b5e1de5731d52180e35a66d8.yml -openapi_spec_hash: efe1a66814eeb2671e8a4bb1fa7846d5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4aee7930f4c2c8e59c7484dee296dcb6ccce42d7e6519844a17e0683c6d9ee69.yml +openapi_spec_hash: fc7cbe020a10d350bbf5fc7ef1fc1e29 config_hash: 7e270b3449efce600e3469937a344c2d From 5a0c48d9f681fcef210f6b773dc0b561b40eca6e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 19:18:27 +0000 Subject: [PATCH 010/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3922e10a49..d28761d4f8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4aee7930f4c2c8e59c7484dee296dcb6ccce42d7e6519844a17e0683c6d9ee69.yml -openapi_spec_hash: fc7cbe020a10d350bbf5fc7ef1fc1e29 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5fa47af357b9f3d20b43154c9ca14d079e5814d7b61fa9b49121c290d26162e2.yml +openapi_spec_hash: 6efef68568e8669c5f23598aadc0ced0 config_hash: 7e270b3449efce600e3469937a344c2d From 9751fb63a51a11e12952c690b5e800770f3ff0c2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 19:34:53 +0000 Subject: [PATCH 011/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/rulesets/rules.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index d28761d4f8..c9bb64695d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5fa47af357b9f3d20b43154c9ca14d079e5814d7b61fa9b49121c290d26162e2.yml -openapi_spec_hash: 6efef68568e8669c5f23598aadc0ced0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8400707c7d65617a4b6a962691833cdc36c6fc5de5bcf32aa6632ad64b26f4b5.yml +openapi_spec_hash: c93c7a8fad796d5eab4dc0f8c32db670 config_hash: 7e270b3449efce600e3469937a344c2d diff --git a/src/resources/rulesets/rules.ts b/src/resources/rulesets/rules.ts index 3f8f395185..d58790897a 100644 --- a/src/resources/rulesets/rules.ts +++ b/src/resources/rulesets/rules.ts @@ -5852,7 +5852,7 @@ export namespace SetConfigRule { /** * Configure the Polish level. */ - polish?: 'off' | 'lossless' | 'lossy'; + polish?: 'off' | 'lossless' | 'lossy' | 'webp'; /** * Turn on or off Rocket Loader @@ -6084,7 +6084,7 @@ export namespace SetConfigRuleParam { /** * Configure the Polish level. */ - polish?: 'off' | 'lossless' | 'lossy'; + polish?: 'off' | 'lossless' | 'lossy' | 'webp'; /** * Turn on or off Rocket Loader @@ -10136,7 +10136,7 @@ export declare namespace RuleCreateParams { /** * Configure the Polish level. */ - polish?: 'off' | 'lossless' | 'lossy'; + polish?: 'off' | 'lossless' | 'lossy' | 'webp'; /** * Turn on or off Rocket Loader @@ -14278,7 +14278,7 @@ export declare namespace RuleEditParams { /** * Configure the Polish level. */ - polish?: 'off' | 'lossless' | 'lossy'; + polish?: 'off' | 'lossless' | 'lossy' | 'webp'; /** * Turn on or off Rocket Loader From 4f85b5404a137c7c0d2f1652df0d27454c48221d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 20:17:00 +0000 Subject: [PATCH 012/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c9bb64695d..7c3e23ca67 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8400707c7d65617a4b6a962691833cdc36c6fc5de5bcf32aa6632ad64b26f4b5.yml -openapi_spec_hash: c93c7a8fad796d5eab4dc0f8c32db670 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3e396d4ac0c39ea547ef391a6bdc4e081c654b494ccfd81b30fec1ef44633dbb.yml +openapi_spec_hash: 8c333ec843d572f342bfc92f8132a297 config_hash: 7e270b3449efce600e3469937a344c2d From 8c96b25ae6a93238b5a251185a990ae25b17461f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 20:21:11 +0000 Subject: [PATCH 013/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7c3e23ca67..c9bb64695d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3e396d4ac0c39ea547ef391a6bdc4e081c654b494ccfd81b30fec1ef44633dbb.yml -openapi_spec_hash: 8c333ec843d572f342bfc92f8132a297 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8400707c7d65617a4b6a962691833cdc36c6fc5de5bcf32aa6632ad64b26f4b5.yml +openapi_spec_hash: c93c7a8fad796d5eab4dc0f8c32db670 config_hash: 7e270b3449efce600e3469937a344c2d From a5445810584e440a3dbce1968961dc2d0ac53f4b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 22:42:23 +0000 Subject: [PATCH 014/366] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index c9bb64695d..23aee6bbdb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8400707c7d65617a4b6a962691833cdc36c6fc5de5bcf32aa6632ad64b26f4b5.yml openapi_spec_hash: c93c7a8fad796d5eab4dc0f8c32db670 -config_hash: 7e270b3449efce600e3469937a344c2d +config_hash: ab6d922663ab4c7b89e22975f70d50d8 From 8d73966bca77ae38fec00f2a9fa121b2c1db1e30 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 23:22:27 +0000 Subject: [PATCH 015/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 23aee6bbdb..dc35a3d3b9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8400707c7d65617a4b6a962691833cdc36c6fc5de5bcf32aa6632ad64b26f4b5.yml -openapi_spec_hash: c93c7a8fad796d5eab4dc0f8c32db670 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3e396d4ac0c39ea547ef391a6bdc4e081c654b494ccfd81b30fec1ef44633dbb.yml +openapi_spec_hash: 8c333ec843d572f342bfc92f8132a297 config_hash: ab6d922663ab4c7b89e22975f70d50d8 From bef729686e267d90b3de7d0018b450be686e216c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 23:24:59 +0000 Subject: [PATCH 016/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index dc35a3d3b9..6333c84910 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3e396d4ac0c39ea547ef391a6bdc4e081c654b494ccfd81b30fec1ef44633dbb.yml -openapi_spec_hash: 8c333ec843d572f342bfc92f8132a297 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-09baa66031d21ee8a75ec81dddaa997c71829fb9b40e202dd10761fc67bd8819.yml +openapi_spec_hash: 6c74d4fcbf73861ada8220ccfb061cb9 config_hash: ab6d922663ab4c7b89e22975f70d50d8 From eb670465b61bff47099b6ce6b4f06efce5c8f1d6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 06:07:14 +0000 Subject: [PATCH 017/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6333c84910..ecfe7f5751 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-09baa66031d21ee8a75ec81dddaa997c71829fb9b40e202dd10761fc67bd8819.yml -openapi_spec_hash: 6c74d4fcbf73861ada8220ccfb061cb9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e2658d53454ffe5dfe8ede03fdd73b17e21b4c7a4c4cc44c498d9b783578228d.yml +openapi_spec_hash: 34b720fdeeec6630acebc450924fb535 config_hash: ab6d922663ab4c7b89e22975f70d50d8 From 2e7acfbbe76a4aafccc9a80b3da243cab96b0a78 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 10:55:42 +0000 Subject: [PATCH 018/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ecfe7f5751..61c3ac6d4f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e2658d53454ffe5dfe8ede03fdd73b17e21b4c7a4c4cc44c498d9b783578228d.yml -openapi_spec_hash: 34b720fdeeec6630acebc450924fb535 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5c11da89c6dd1e139ba66f36894b11aa131606697f25cd24dae2a1a474ce8b1f.yml +openapi_spec_hash: 99ecf7c0608c6123ff34cccecf48bf8d config_hash: ab6d922663ab4c7b89e22975f70d50d8 From 807e10cd7ef2ad280685537070e8228c4fd74391 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 14:06:26 +0000 Subject: [PATCH 019/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/zero-trust/gateway/rules.ts | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.stats.yml b/.stats.yml index 61c3ac6d4f..052418b91b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5c11da89c6dd1e139ba66f36894b11aa131606697f25cd24dae2a1a474ce8b1f.yml -openapi_spec_hash: 99ecf7c0608c6123ff34cccecf48bf8d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3d49e1d67e5503c28d3a7d90936a4e6fba7de35574ea2e0e36466ae9198973e4.yml +openapi_spec_hash: 318cadc958dc0355de1286086371f331 config_hash: ab6d922663ab4c7b89e22975f70d50d8 diff --git a/src/resources/zero-trust/gateway/rules.ts b/src/resources/zero-trust/gateway/rules.ts index 6dcaae2138..85d10edf79 100644 --- a/src/resources/zero-trust/gateway/rules.ts +++ b/src/resources/zero-trust/gateway/rules.ts @@ -591,10 +591,10 @@ export namespace RuleSetting { dk?: boolean; /** - * Configure whether downloading enabled or not. When absent, downloading is - * enabled. Only applies when `version == "v2"`. + * Configure whether downloading enabled or not. When set with "remote_only", + * downloads are only available for viewing. Only applies when `version == "v2"`. */ - download?: 'enabled' | 'disabled'; + download?: 'enabled' | 'disabled' | 'remote_only'; /** * Set to false to enable printing. Only applies when `version == "v1"`. @@ -1020,10 +1020,10 @@ export namespace RuleSettingParam { dk?: boolean; /** - * Configure whether downloading enabled or not. When absent, downloading is - * enabled. Only applies when `version == "v2"`. + * Configure whether downloading enabled or not. When set with "remote_only", + * downloads are only available for viewing. Only applies when `version == "v2"`. */ - download?: 'enabled' | 'disabled'; + download?: 'enabled' | 'disabled' | 'remote_only'; /** * Set to false to enable printing. Only applies when `version == "v1"`. From daf0e2429ca5d108eea8981443d8e7da15a26634 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 14:26:06 +0000 Subject: [PATCH 020/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 052418b91b..52c6fa99a0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3d49e1d67e5503c28d3a7d90936a4e6fba7de35574ea2e0e36466ae9198973e4.yml -openapi_spec_hash: 318cadc958dc0355de1286086371f331 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b8daab4527a78a5eb4707dc8e5e9273087d51c36e91b5db9eec7b8d50df74a5c.yml +openapi_spec_hash: f05b5603428ab504c57deb34469d938b config_hash: ab6d922663ab4c7b89e22975f70d50d8 From 221212b70eb68dfc619240568397f56826ee9e3e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 14:28:41 +0000 Subject: [PATCH 021/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 52c6fa99a0..369bd71f33 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b8daab4527a78a5eb4707dc8e5e9273087d51c36e91b5db9eec7b8d50df74a5c.yml -openapi_spec_hash: f05b5603428ab504c57deb34469d938b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5186f2511fbe9217fd7aaef4da65f27edf3eb2e3c66f739e76fb7d88f0fbcd53.yml +openapi_spec_hash: 8bf10d56642f91aef2454fdd86ed505e config_hash: ab6d922663ab4c7b89e22975f70d50d8 From 08075d756e89ce345e3ab8b924ebd8147c9856d1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 15:06:54 +0000 Subject: [PATCH 022/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 369bd71f33..288f67a8ef 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5186f2511fbe9217fd7aaef4da65f27edf3eb2e3c66f739e76fb7d88f0fbcd53.yml -openapi_spec_hash: 8bf10d56642f91aef2454fdd86ed505e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1c0c9a5018a83b355de08a90364a9d9953b8922e2fe7e2cd527cd4ea24c844ac.yml +openapi_spec_hash: 100d341ead089dfb086e7b5dcc288683 config_hash: ab6d922663ab4c7b89e22975f70d50d8 From e19db7fbbfbae471ed8264d63d8c2ee7f2c0db79 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 15:09:36 +0000 Subject: [PATCH 023/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 288f67a8ef..ee737824c7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1c0c9a5018a83b355de08a90364a9d9953b8922e2fe7e2cd527cd4ea24c844ac.yml -openapi_spec_hash: 100d341ead089dfb086e7b5dcc288683 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d5108474b70b4bd1ee8b6a2a87eea54ee4174ad6066e83659d4e98f751722f67.yml +openapi_spec_hash: b7b2538cab1312f92afa5e115f98afbd config_hash: ab6d922663ab4c7b89e22975f70d50d8 From 84840311aca395519a5b7ea65525ebb9acbd3972 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 15:49:48 +0000 Subject: [PATCH 024/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ee737824c7..7beb39d9ce 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d5108474b70b4bd1ee8b6a2a87eea54ee4174ad6066e83659d4e98f751722f67.yml -openapi_spec_hash: b7b2538cab1312f92afa5e115f98afbd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d5e9a5f8f3f612c25db8c16420f383742353ef7498fff7d053941ffe104056cd.yml +openapi_spec_hash: 1fd0448a000ae00795284903c0cc240e config_hash: ab6d922663ab4c7b89e22975f70d50d8 From 4e4f6c5191abcb2157525d349f2a5aa409f64e06 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 16:04:40 +0000 Subject: [PATCH 025/366] feat(api): api update --- .stats.yml | 4 +-- api.md | 2 +- src/resources/queues/index.ts | 1 - src/resources/queues/messages.ts | 57 +++++++++++++++++--------------- src/resources/queues/queues.ts | 3 -- 5 files changed, 33 insertions(+), 34 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7beb39d9ce..1d50ffa22f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d5e9a5f8f3f612c25db8c16420f383742353ef7498fff7d053941ffe104056cd.yml -openapi_spec_hash: 1fd0448a000ae00795284903c0cc240e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3d93c74b07b7ff242a14162d8afcf07aa1f29e3202d4e005c073a2d2e7dbf99e.yml +openapi_spec_hash: f30eba752a22db6a739dff48b749ed0b config_hash: ab6d922663ab4c7b89e22975f70d50d8 diff --git a/api.md b/api.md index 1bd95c9cc9..af17f57e9e 100644 --- a/api.md +++ b/api.md @@ -2352,7 +2352,7 @@ Methods: - client.queues.messages.ack(queueId, { ...params }) -> MessageAckResponse - client.queues.messages.bulkPush(queueId, { ...params }) -> MessageBulkPushResponse -- client.queues.messages.pull(queueId, { ...params }) -> MessagePullResponsesSinglePage +- client.queues.messages.pull(queueId, { ...params }) -> MessagePullResponse - client.queues.messages.push(queueId, { ...params }) -> MessagePushResponse ## Purge diff --git a/src/resources/queues/index.ts b/src/resources/queues/index.ts index 904a3f6422..4606015396 100644 --- a/src/resources/queues/index.ts +++ b/src/resources/queues/index.ts @@ -11,7 +11,6 @@ export { type ConsumerGetParams, } from './consumers'; export { - MessagePullResponsesSinglePage, Messages, type MessageAckResponse, type MessageBulkPushResponse, diff --git a/src/resources/queues/messages.ts b/src/resources/queues/messages.ts index c6b37102c1..3557b14318 100644 --- a/src/resources/queues/messages.ts +++ b/src/resources/queues/messages.ts @@ -3,7 +3,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; import * as Shared from '../shared'; -import { SinglePage } from '../../pagination'; export class Messages extends APIResource { /** @@ -59,26 +58,24 @@ export class Messages extends APIResource { * * @example * ```ts - * // Automatically fetches more pages as needed. - * for await (const messagePullResponse of client.queues.messages.pull( + * const response = await client.queues.messages.pull( * '023e105f4ecef8ad9ca31a8372d0c353', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * )) { - * // ... - * } + * ); * ``` */ pull( queueId: string, params: MessagePullParams, options?: Core.RequestOptions, - ): Core.PagePromise { + ): Core.APIPromise { const { account_id, ...body } = params; - return this._client.getAPIList( - `/accounts/${account_id}/queues/${queueId}/messages/pull`, - MessagePullResponsesSinglePage, - { body, method: 'post', ...options }, - ); + return ( + this._client.post(`/accounts/${account_id}/queues/${queueId}/messages/pull`, { + body, + ...options, + }) as Core.APIPromise<{ result: MessagePullResponse }> + )._thenUnwrap((obj) => obj.result); } /** @@ -102,8 +99,6 @@ export class Messages extends APIResource { } } -export class MessagePullResponsesSinglePage extends SinglePage {} - export interface MessageAckResponse { /** * The number of messages that were succesfully acknowledged. @@ -130,21 +125,32 @@ export interface MessageBulkPushResponse { } export interface MessagePullResponse { - id?: string; + /** + * The number of unacknowledged messages in the queue + */ + message_backlog_count?: number; - attempts?: number; + messages?: Array; +} - body?: string; +export namespace MessagePullResponse { + export interface Message { + id?: string; - /** - * An ID that represents an "in-flight" message that has been pulled from a Queue. - * You must hold on to this ID and use it to acknowledge this message. - */ - lease_id?: string; + attempts?: number; - metadata?: unknown; + body?: string; + + /** + * An ID that represents an "in-flight" message that has been pulled from a Queue. + * You must hold on to this ID and use it to acknowledge this message. + */ + lease_id?: string; + + metadata?: unknown; - timestamp_ms?: number; + timestamp_ms?: number; + } } export interface MessagePushResponse { @@ -311,15 +317,12 @@ export declare namespace MessagePushParams { } } -Messages.MessagePullResponsesSinglePage = MessagePullResponsesSinglePage; - export declare namespace Messages { export { type MessageAckResponse as MessageAckResponse, type MessageBulkPushResponse as MessageBulkPushResponse, type MessagePullResponse as MessagePullResponse, type MessagePushResponse as MessagePushResponse, - MessagePullResponsesSinglePage as MessagePullResponsesSinglePage, type MessageAckParams as MessageAckParams, type MessageBulkPushParams as MessageBulkPushParams, type MessagePullParams as MessagePullParams, diff --git a/src/resources/queues/queues.ts b/src/resources/queues/queues.ts index 842af6b99e..240e61d273 100644 --- a/src/resources/queues/queues.ts +++ b/src/resources/queues/queues.ts @@ -22,7 +22,6 @@ import { MessageBulkPushResponse, MessagePullParams, MessagePullResponse, - MessagePullResponsesSinglePage, MessagePushParams, MessagePushResponse, Messages, @@ -331,7 +330,6 @@ Queues.QueuesSinglePage = QueuesSinglePage; Queues.Consumers = Consumers; Queues.ConsumersSinglePage = ConsumersSinglePage; Queues.Messages = Messages; -Queues.MessagePullResponsesSinglePage = MessagePullResponsesSinglePage; Queues.Purge = Purge; export declare namespace Queues { @@ -364,7 +362,6 @@ export declare namespace Queues { type MessageBulkPushResponse as MessageBulkPushResponse, type MessagePullResponse as MessagePullResponse, type MessagePushResponse as MessagePushResponse, - MessagePullResponsesSinglePage as MessagePullResponsesSinglePage, type MessageAckParams as MessageAckParams, type MessageBulkPushParams as MessageBulkPushParams, type MessagePullParams as MessagePullParams, From c12c85a431c426fd9563b1e6a3cf7f4473206b1f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 16:16:11 +0000 Subject: [PATCH 026/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1d50ffa22f..c4a477a2ba 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3d93c74b07b7ff242a14162d8afcf07aa1f29e3202d4e005c073a2d2e7dbf99e.yml -openapi_spec_hash: f30eba752a22db6a739dff48b749ed0b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-125ec8c2cef3e54e0bed02e17ffb9e5d119d69a55229efbf349acbd9466a49e2.yml +openapi_spec_hash: 6c3738080499ce73fe8b30651b5a7954 config_hash: ab6d922663ab4c7b89e22975f70d50d8 From 5909e825b378d31247051eb432b054afc706afe8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 16:45:23 +0000 Subject: [PATCH 027/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c4a477a2ba..22323fef19 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-125ec8c2cef3e54e0bed02e17ffb9e5d119d69a55229efbf349acbd9466a49e2.yml -openapi_spec_hash: 6c3738080499ce73fe8b30651b5a7954 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1d761c90b067d4aae44db25ad901b304a2145976249c4dbc5b44a0fecb3f2857.yml +openapi_spec_hash: 6e36e4d39609316fe9215bf38deed84e config_hash: ab6d922663ab4c7b89e22975f70d50d8 From 4072b80d8254aae0882f6f93e56958ce2dc07801 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 16:51:50 +0000 Subject: [PATCH 028/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 22323fef19..0478d5c6f9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1d761c90b067d4aae44db25ad901b304a2145976249c4dbc5b44a0fecb3f2857.yml -openapi_spec_hash: 6e36e4d39609316fe9215bf38deed84e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c367d2efcc223cfa6fd361db8e03492ba7dbf35500c9d66f53e6ab7dff141be8.yml +openapi_spec_hash: 5dc1c249efd85689971ef68bea8f6fb4 config_hash: ab6d922663ab4c7b89e22975f70d50d8 From abb7ee1a7033cd509a371f45e5260a0c1db55fe2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 17:06:25 +0000 Subject: [PATCH 029/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0478d5c6f9..a417d5f7dd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c367d2efcc223cfa6fd361db8e03492ba7dbf35500c9d66f53e6ab7dff141be8.yml -openapi_spec_hash: 5dc1c249efd85689971ef68bea8f6fb4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-08441ed2052fb819446b9e9cee1a2982c6da044474bf98a266c99f4216097e89.yml +openapi_spec_hash: d407c75b153b8293e4431995694009ed config_hash: ab6d922663ab4c7b89e22975f70d50d8 From f8b6965672dbb1ca1cbb047afb641909f296b3f3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 17:36:10 +0000 Subject: [PATCH 030/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a417d5f7dd..ec117dd331 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-08441ed2052fb819446b9e9cee1a2982c6da044474bf98a266c99f4216097e89.yml -openapi_spec_hash: d407c75b153b8293e4431995694009ed +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8edb3781dd58d2bae63de4a0aa2e031649378e3d400470f6b594e60758141efb.yml +openapi_spec_hash: 9845d13252e3ba9e80b4f19c7877aafc config_hash: ab6d922663ab4c7b89e22975f70d50d8 From 178ca89bee88a50b1ead669f1fb5b468c5984cff Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 17:58:04 +0000 Subject: [PATCH 031/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ec117dd331..0fefa94257 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8edb3781dd58d2bae63de4a0aa2e031649378e3d400470f6b594e60758141efb.yml -openapi_spec_hash: 9845d13252e3ba9e80b4f19c7877aafc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0d187f5b7dc6ae22366d71def4b9108d8e76bacb26ea1bea2d38ca5d7b722e22.yml +openapi_spec_hash: 26a37fb1956dc23bb3e1c99a9183e3b0 config_hash: ab6d922663ab4c7b89e22975f70d50d8 From 9a3d4f9a9665c4b06c2b19de059329cb84113188 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 18:28:55 +0000 Subject: [PATCH 032/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0fefa94257..922d383457 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0d187f5b7dc6ae22366d71def4b9108d8e76bacb26ea1bea2d38ca5d7b722e22.yml -openapi_spec_hash: 26a37fb1956dc23bb3e1c99a9183e3b0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-89a4bb5dadfafb85574f95336e2903886080d77d989a41ed5fc355e38c2c6094.yml +openapi_spec_hash: 85c07b30af1857b080fe67176119959b config_hash: ab6d922663ab4c7b89e22975f70d50d8 From 03fcde24adb6d6c0185584a9d7727de7365e8c52 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 18:31:28 +0000 Subject: [PATCH 033/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 922d383457..b1559429aa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-89a4bb5dadfafb85574f95336e2903886080d77d989a41ed5fc355e38c2c6094.yml -openapi_spec_hash: 85c07b30af1857b080fe67176119959b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5e0e79425d94ef0aaef4d94192f3d8c35617f21e4ddd9b40fbefba8ab19fa6fa.yml +openapi_spec_hash: ffcafef754352b4db4936fbc8d3112d8 config_hash: ab6d922663ab4c7b89e22975f70d50d8 From 7347a47872f5f4b43aa96078ecfae6998d7f8f1b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 19:52:28 +0000 Subject: [PATCH 034/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b1559429aa..3ebd390289 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5e0e79425d94ef0aaef4d94192f3d8c35617f21e4ddd9b40fbefba8ab19fa6fa.yml -openapi_spec_hash: ffcafef754352b4db4936fbc8d3112d8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-174f9eada3e5e906f66a9a0e12bb2cc479f709d64f924c219f758595c4671d5b.yml +openapi_spec_hash: 6110017c0003924c9fc476974371fffe config_hash: ab6d922663ab4c7b89e22975f70d50d8 From feb44b515d6c020cd6bab30fed39ba23565e61f3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 21:15:34 +0000 Subject: [PATCH 035/366] feat(api): api update --- .stats.yml | 4 ++-- .../access/applications/applications.ts | 24 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3ebd390289..6056dc418e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-174f9eada3e5e906f66a9a0e12bb2cc479f709d64f924c219f758595c4671d5b.yml -openapi_spec_hash: 6110017c0003924c9fc476974371fffe +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-573685d7db400f78cc6d2dbfc14c34312378e4a46192d026e02ee3d2ddbc012c.yml +openapi_spec_hash: c0b909d44d96650b9657201c014ae62c config_hash: ab6d922663ab4c7b89e22975f70d50d8 diff --git a/src/resources/zero-trust/access/applications/applications.ts b/src/resources/zero-trust/access/applications/applications.ts index ec7b5b4c71..699b63492d 100644 --- a/src/resources/zero-trust/access/applications/applications.ts +++ b/src/resources/zero-trust/access/applications/applications.ts @@ -5220,7 +5220,7 @@ export namespace ApplicationCreateResponse { /** * The communication protocol your application secures. */ - protocol: 'ssh'; + protocol: 'SSH'; /** * Contains a map of target attribute keys to target attribute values. @@ -5598,7 +5598,7 @@ export namespace ApplicationCreateResponse { /** * The communication protocol your application secures. */ - protocol: 'ssh'; + protocol: 'SSH'; /** * Contains a map of target attribute keys to target attribute values. @@ -8475,7 +8475,7 @@ export namespace ApplicationUpdateResponse { /** * The communication protocol your application secures. */ - protocol: 'ssh'; + protocol: 'SSH'; /** * Contains a map of target attribute keys to target attribute values. @@ -8853,7 +8853,7 @@ export namespace ApplicationUpdateResponse { /** * The communication protocol your application secures. */ - protocol: 'ssh'; + protocol: 'SSH'; /** * Contains a map of target attribute keys to target attribute values. @@ -11730,7 +11730,7 @@ export namespace ApplicationListResponse { /** * The communication protocol your application secures. */ - protocol: 'ssh'; + protocol: 'SSH'; /** * Contains a map of target attribute keys to target attribute values. @@ -12108,7 +12108,7 @@ export namespace ApplicationListResponse { /** * The communication protocol your application secures. */ - protocol: 'ssh'; + protocol: 'SSH'; /** * Contains a map of target attribute keys to target attribute values. @@ -14992,7 +14992,7 @@ export namespace ApplicationGetResponse { /** * The communication protocol your application secures. */ - protocol: 'ssh'; + protocol: 'SSH'; /** * Contains a map of target attribute keys to target attribute values. @@ -15370,7 +15370,7 @@ export namespace ApplicationGetResponse { /** * The communication protocol your application secures. */ - protocol: 'ssh'; + protocol: 'SSH'; /** * Contains a map of target attribute keys to target attribute values. @@ -18149,7 +18149,7 @@ export declare namespace ApplicationCreateParams { /** * The communication protocol your application secures. */ - protocol: 'ssh'; + protocol: 'SSH'; /** * Contains a map of target attribute keys to target attribute values. @@ -18431,7 +18431,7 @@ export declare namespace ApplicationCreateParams { /** * The communication protocol your application secures. */ - protocol: 'ssh'; + protocol: 'SSH'; /** * Contains a map of target attribute keys to target attribute values. @@ -21191,7 +21191,7 @@ export declare namespace ApplicationUpdateParams { /** * The communication protocol your application secures. */ - protocol: 'ssh'; + protocol: 'SSH'; /** * Contains a map of target attribute keys to target attribute values. @@ -21473,7 +21473,7 @@ export declare namespace ApplicationUpdateParams { /** * The communication protocol your application secures. */ - protocol: 'ssh'; + protocol: 'SSH'; /** * Contains a map of target attribute keys to target attribute values. From bca8ac42a8ff30ba2d99bb79ea6e92698d326672 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 21:23:29 +0000 Subject: [PATCH 036/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6056dc418e..7072306296 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-573685d7db400f78cc6d2dbfc14c34312378e4a46192d026e02ee3d2ddbc012c.yml -openapi_spec_hash: c0b909d44d96650b9657201c014ae62c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bec9cd7b22ac8af0991008a7b27ab252a24b2571a196741c2f04b59e8710138c.yml +openapi_spec_hash: c3946e442f3034de3f2c9ab5a5c042ae config_hash: ab6d922663ab4c7b89e22975f70d50d8 From a6908749c1c4d610bb946ddc7df6ccb0f20f1ce0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 21:43:25 +0000 Subject: [PATCH 037/366] feat(api): api update --- .stats.yml | 4 +-- src/resources/zones/settings.ts | 40 ++++++++++++++++++++++-- src/resources/zones/zones.ts | 54 ++++++++++++++++----------------- 3 files changed, 67 insertions(+), 31 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7072306296..896ba53946 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bec9cd7b22ac8af0991008a7b27ab252a24b2571a196741c2f04b59e8710138c.yml -openapi_spec_hash: c3946e442f3034de3f2c9ab5a5c042ae +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fb111a0086c40e2051f762a27180c017d30a7e71f13b5a883f6109c205e53603.yml +openapi_spec_hash: de05b9c2b538d5175ca561373016af91 config_hash: ab6d922663ab4c7b89e22975f70d50d8 diff --git a/src/resources/zones/settings.ts b/src/resources/zones/settings.ts index 1b96624b62..2cb6cdbcf2 100644 --- a/src/resources/zones/settings.ts +++ b/src/resources/zones/settings.ts @@ -1977,7 +1977,25 @@ export namespace SettingEditResponse { /** * Current value of the zone setting. */ - value: 100 | 200 | 500; + value: + | 100 + | 125 + | 150 + | 175 + | 200 + | 225 + | 250 + | 275 + | 300 + | 325 + | 350 + | 375 + | 400 + | 425 + | 450 + | 475 + | 500 + | 1000; /** * Whether or not this setting can be modified for this zone (based on your @@ -3031,7 +3049,25 @@ export namespace SettingGetResponse { /** * Current value of the zone setting. */ - value: 100 | 200 | 500; + value: + | 100 + | 125 + | 150 + | 175 + | 200 + | 225 + | 250 + | 275 + | 300 + | 325 + | 350 + | 375 + | 400 + | 425 + | 450 + | 475 + | 500 + | 1000; /** * Whether or not this setting can be modified for this zone (based on your diff --git a/src/resources/zones/zones.ts b/src/resources/zones/zones.ts index af2e4d7356..ba8ab4549a 100644 --- a/src/resources/zones/zones.ts +++ b/src/resources/zones/zones.ts @@ -237,17 +237,17 @@ export interface Zone { id: string; /** - * The account the zone belongs to + * The account the zone belongs to. */ account: Zone.Account; /** - * The last time proof of ownership was detected and the zone was made active + * The last time proof of ownership was detected and the zone was made active. */ activated_on: string | null; /** - * When the zone was created + * When the zone was created. */ created_on: string; @@ -259,42 +259,42 @@ export interface Zone { development_mode: number; /** - * Metadata about the zone + * Metadata about the zone. */ meta: Zone.Meta; /** - * When the zone was last modified + * When the zone was last modified. */ modified_on: string; /** - * The domain name + * The domain name. */ name: string; /** - * The name servers Cloudflare assigns to a zone + * The name servers Cloudflare assigns to a zone. */ name_servers: Array; /** - * DNS host at the time of switching to Cloudflare + * DNS host at the time of switching to Cloudflare. */ original_dnshost: string | null; /** - * Original name servers before moving to Cloudflare + * Original name servers before moving to Cloudflare. */ original_name_servers: Array | null; /** - * Registrar for the domain at the time of switching to Cloudflare + * Registrar for the domain at the time of switching to Cloudflare. */ original_registrar: string | null; /** - * The owner of the zone + * The owner of the zone. */ owner: Zone.Owner; @@ -356,7 +356,7 @@ export interface Zone { export namespace Zone { /** - * The account the zone belongs to + * The account the zone belongs to. */ export interface Account { /** @@ -365,42 +365,42 @@ export namespace Zone { id?: string; /** - * The name of the account + * The name of the account. */ name?: string; } /** - * Metadata about the zone + * Metadata about the zone. */ export interface Meta { /** - * The zone is only configured for CDN + * The zone is only configured for CDN. */ cdn_only?: boolean; /** - * Number of Custom Certificates the zone can have + * Number of Custom Certificates the zone can have. */ custom_certificate_quota?: number; /** - * The zone is only configured for DNS + * The zone is only configured for DNS. */ dns_only?: boolean; /** - * The zone is setup with Foundation DNS + * The zone is setup with Foundation DNS. */ foundation_dns?: boolean; /** - * Number of Page Rules a zone can have + * Number of Page Rules a zone can have. */ page_rule_quota?: number; /** - * The zone has been flagged for phishing + * The zone has been flagged for phishing. */ phishing_detected?: boolean; @@ -408,7 +408,7 @@ export namespace Zone { } /** - * The owner of the zone + * The owner of the zone. */ export interface Owner { /** @@ -417,12 +417,12 @@ export namespace Zone { id?: string; /** - * Name of the owner + * Name of the owner. */ name?: string; /** - * The type of owner + * The type of owner. */ type?: string; } @@ -472,7 +472,7 @@ export namespace Zone { legacy_id?: string; /** - * Name of the owner + * Name of the owner. */ name?: string; @@ -521,7 +521,7 @@ export interface ZoneCreateParams { account: ZoneCreateParams.Account; /** - * The domain name + * The domain name. */ name: string; @@ -575,7 +575,7 @@ export interface ZoneListParams extends V4PagePaginationArrayParams { order?: 'name' | 'status' | 'account.id' | 'account.name' | 'plan.id'; /** - * A zone status + * Specify a zone status to filter by. */ status?: 'initializing' | 'pending' | 'active' | 'moved'; } @@ -583,7 +583,7 @@ export interface ZoneListParams extends V4PagePaginationArrayParams { export namespace ZoneListParams { export interface Account { /** - * An account ID + * Filter by an account ID. */ id?: string; From 8fe7c2559724321f7a736f01d4c881f0affc7ff0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 22:42:51 +0000 Subject: [PATCH 038/366] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 896ba53946..0b00f8128e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1734 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fb111a0086c40e2051f762a27180c017d30a7e71f13b5a883f6109c205e53603.yml openapi_spec_hash: de05b9c2b538d5175ca561373016af91 -config_hash: ab6d922663ab4c7b89e22975f70d50d8 +config_hash: 79edb087a15ab7daa5cb062a88889242 From c466334f4f16b240684db91e6e67f2f97930b2c6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 02:49:32 +0000 Subject: [PATCH 039/366] feat(dex): map endpoints into namespaces --- .stats.yml | 4 +- api.md | 24 + src/resources/zero-trust/devices/devices.ts | 37 +- src/resources/zero-trust/devices/dex-tests.ts | 742 +++++++++++++++++- src/resources/zero-trust/devices/index.ts | 18 +- src/resources/zero-trust/devices/settings.ts | 25 + src/resources/zero-trust/dex/dex.ts | 12 + src/resources/zero-trust/dex/index.ts | 5 + .../zero-trust/dex/warp-change-events.ts | 221 ++++++ .../zero-trust/devices/dex-tests.test.ts | 129 +++ .../zero-trust/devices/settings.test.ts | 19 + .../zero-trust/dex/warp-change-events.test.ts | 44 ++ 12 files changed, 1273 insertions(+), 7 deletions(-) create mode 100644 src/resources/zero-trust/dex/warp-change-events.ts create mode 100644 tests/api-resources/zero-trust/devices/dex-tests.test.ts create mode 100644 tests/api-resources/zero-trust/dex/warp-change-events.test.ts diff --git a/.stats.yml b/.stats.yml index 0b00f8128e..4f41c83328 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 1734 +configured_endpoints: 1741 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fb111a0086c40e2051f762a27180c017d30a7e71f13b5a883f6109c205e53603.yml openapi_spec_hash: de05b9c2b538d5175ca561373016af91 -config_hash: 79edb087a15ab7daa5cb062a88889242 +config_hash: d72c4fd125f1a13d55b0929439ad8189 diff --git a/api.md b/api.md index af17f57e9e..2b8b72d9db 100644 --- a/api.md +++ b/api.md @@ -4618,6 +4618,19 @@ Types: - SchemaData - SchemaHTTP +- DEXTestCreateResponse +- DEXTestUpdateResponse +- DEXTestListResponse +- DEXTestDeleteResponse +- DEXTestGetResponse + +Methods: + +- client.zeroTrust.devices.dexTests.create({ ...params }) -> DEXTestCreateResponse +- client.zeroTrust.devices.dexTests.update(dexTestId, { ...params }) -> DEXTestUpdateResponse +- client.zeroTrust.devices.dexTests.list({ ...params }) -> DEXTestListResponsesSinglePage +- client.zeroTrust.devices.dexTests.delete(dexTestId, { ...params }) -> DEXTestDeleteResponse +- client.zeroTrust.devices.dexTests.get(dexTestId, { ...params }) -> DEXTestGetResponse ### Networks @@ -4791,6 +4804,7 @@ Types: Methods: - client.zeroTrust.devices.settings.update({ ...params }) -> DeviceSettings | null +- client.zeroTrust.devices.settings.delete({ ...params }) -> DeviceSettings | null - client.zeroTrust.devices.settings.edit({ ...params }) -> DeviceSettings | null - client.zeroTrust.devices.settings.get({ ...params }) -> DeviceSettings | null @@ -5285,6 +5299,16 @@ Types: - NetworkPathResponse - Percentiles +### WARPChangeEvents + +Types: + +- WARPChangeEventGetResponse + +Methods: + +- client.zeroTrust.dex.warpChangeEvents.get({ ...params }) -> WARPChangeEventGetResponse + ### Commands Types: diff --git a/src/resources/zero-trust/devices/devices.ts b/src/resources/zero-trust/devices/devices.ts index 3c8b776eab..b85a53c4bd 100644 --- a/src/resources/zero-trust/devices/devices.ts +++ b/src/resources/zero-trust/devices/devices.ts @@ -13,7 +13,22 @@ import { Devices as DevicesAPIDevices, } from './devices_'; import * as DEXTestsAPI from './dex-tests'; -import { DEXTests, SchemaData, SchemaHTTP } from './dex-tests'; +import { + DEXTestCreateParams, + DEXTestCreateResponse, + DEXTestDeleteParams, + DEXTestDeleteResponse, + DEXTestGetParams, + DEXTestGetResponse, + DEXTestListParams, + DEXTestListResponse, + DEXTestListResponsesSinglePage, + DEXTestUpdateParams, + DEXTestUpdateResponse, + DEXTests, + SchemaData, + SchemaHTTP, +} from './dex-tests'; import * as FleetStatusAPI from './fleet-status'; import { FleetStatus, FleetStatusGetParams, FleetStatusGetResponse } from './fleet-status'; import * as NetworksAPI from './networks'; @@ -58,6 +73,7 @@ import { Revoke, RevokeCreateParams, RevokeCreateResponse } from './revoke'; import * as SettingsAPI from './settings'; import { DeviceSettings, + SettingDeleteParams, SettingEditParams, SettingGetParams, SettingUpdateParams, @@ -433,6 +449,7 @@ Devices.Resilience = Resilience; Devices.Registrations = Registrations; Devices.RegistrationListResponsesCursorPagination = RegistrationListResponsesCursorPagination; Devices.DEXTests = DEXTests; +Devices.DEXTestListResponsesSinglePage = DEXTestListResponsesSinglePage; Devices.Networks = Networks; Devices.DeviceNetworksSinglePage = DeviceNetworksSinglePage; Devices.FleetStatus = FleetStatus; @@ -483,7 +500,22 @@ export declare namespace Devices { type RegistrationUnrevokeParams as RegistrationUnrevokeParams, }; - export { DEXTests as DEXTests, type SchemaData as SchemaData, type SchemaHTTP as SchemaHTTP }; + export { + DEXTests as DEXTests, + type SchemaData as SchemaData, + type SchemaHTTP as SchemaHTTP, + type DEXTestCreateResponse as DEXTestCreateResponse, + type DEXTestUpdateResponse as DEXTestUpdateResponse, + type DEXTestListResponse as DEXTestListResponse, + type DEXTestDeleteResponse as DEXTestDeleteResponse, + type DEXTestGetResponse as DEXTestGetResponse, + DEXTestListResponsesSinglePage as DEXTestListResponsesSinglePage, + type DEXTestCreateParams as DEXTestCreateParams, + type DEXTestUpdateParams as DEXTestUpdateParams, + type DEXTestListParams as DEXTestListParams, + type DEXTestDeleteParams as DEXTestDeleteParams, + type DEXTestGetParams as DEXTestGetParams, + }; export { Networks as Networks, @@ -551,6 +583,7 @@ export declare namespace Devices { Settings as Settings, type DeviceSettings as DeviceSettings, type SettingUpdateParams as SettingUpdateParams, + type SettingDeleteParams as SettingDeleteParams, type SettingEditParams as SettingEditParams, type SettingGetParams as SettingGetParams, }; diff --git a/src/resources/zero-trust/devices/dex-tests.ts b/src/resources/zero-trust/devices/dex-tests.ts index c64c83fc53..a61068b100 100644 --- a/src/resources/zero-trust/devices/dex-tests.ts +++ b/src/resources/zero-trust/devices/dex-tests.ts @@ -1,8 +1,146 @@ // 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 DEXTests extends APIResource {} +export class DEXTests extends APIResource { + /** + * Create a DEX test. + * + * @example + * ```ts + * const dexTest = + * await client.zeroTrust.devices.dexTests.create({ + * account_id: '01a7362d577a6c3019a474fd6f485823', + * data: {}, + * enabled: true, + * interval: '30m', + * name: 'HTTP dash health check', + * }); + * ``` + */ + create(params: DEXTestCreateParams, options?: Core.RequestOptions): Core.APIPromise { + const { account_id, ...body } = params; + return ( + this._client.post(`/accounts/${account_id}/dex/devices/dex_tests`, { + body, + ...options, + }) as Core.APIPromise<{ result: DEXTestCreateResponse }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Update a DEX test. + * + * @example + * ```ts + * const dexTest = + * await client.zeroTrust.devices.dexTests.update( + * 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', + * { + * account_id: '01a7362d577a6c3019a474fd6f485823', + * data: {}, + * enabled: true, + * interval: '30m', + * name: 'HTTP dash health check', + * }, + * ); + * ``` + */ + update( + dexTestId: string, + params: DEXTestUpdateParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, ...body } = params; + return ( + this._client.put(`/accounts/${account_id}/dex/devices/dex_tests/${dexTestId}`, { + body, + ...options, + }) as Core.APIPromise<{ result: DEXTestUpdateResponse }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Fetch all DEX tests. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const dexTestListResponse of client.zeroTrust.devices.dexTests.list( + * { account_id: '01a7362d577a6c3019a474fd6f485823' }, + * )) { + * // ... + * } + * ``` + */ + list( + params: DEXTestListParams, + options?: Core.RequestOptions, + ): Core.PagePromise { + const { account_id } = params; + return this._client.getAPIList( + `/accounts/${account_id}/dex/devices/dex_tests`, + DEXTestListResponsesSinglePage, + options, + ); + } + + /** + * Delete a Device DEX test. Returns the remaining device dex tests for the + * account. + * + * @example + * ```ts + * const dexTest = + * await client.zeroTrust.devices.dexTests.delete( + * 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', + * { account_id: '01a7362d577a6c3019a474fd6f485823' }, + * ); + * ``` + */ + delete( + dexTestId: string, + params: DEXTestDeleteParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id } = params; + return ( + this._client.delete( + `/accounts/${account_id}/dex/devices/dex_tests/${dexTestId}`, + options, + ) as Core.APIPromise<{ result: DEXTestDeleteResponse }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Fetch a single DEX test. + * + * @example + * ```ts + * const dexTest = await client.zeroTrust.devices.dexTests.get( + * '372e67954025e0ba6aaa6d586b9e0b59', + * { account_id: '01a7362d577a6c3019a474fd6f485823' }, + * ); + * ``` + */ + get( + dexTestId: string, + params: DEXTestGetParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id } = params; + return ( + this._client.get( + `/accounts/${account_id}/dex/devices/dex_tests/${dexTestId}`, + options, + ) as Core.APIPromise<{ result: DEXTestGetResponse }> + )._thenUnwrap((obj) => obj.result); + } +} + +export class DEXTestListResponsesSinglePage extends SinglePage {} /** * The configuration object which contains the details for the WARP client to @@ -84,6 +222,606 @@ export namespace SchemaHTTP { } } +export interface DEXTestCreateResponse { + /** + * The configuration object which contains the details for the WARP client to + * conduct the test. + */ + data: DEXTestCreateResponse.Data; + + /** + * 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; + + /** + * DEX rules targeted by this test + */ + target_policies?: Array; + + targeted?: boolean; + + /** + * The unique identifier for the test. + */ + test_id?: string; +} + +export namespace DEXTestCreateResponse { + /** + * The configuration object which contains the details for the WARP client to + * conduct the test. + */ + export interface Data { + /** + * The desired endpoint to test. + */ + host?: string; + + /** + * The type of test. + */ + kind?: string; + + /** + * The HTTP request method type. + */ + method?: string; + } + + export interface TargetPolicy { + /** + * The id of the DEX rule + */ + id?: string; + + /** + * Whether the DEX rule is the account default + */ + default?: boolean; + + /** + * The name of the DEX rule + */ + name?: string; + } +} + +export interface DEXTestUpdateResponse { + /** + * The configuration object which contains the details for the WARP client to + * conduct the test. + */ + data: DEXTestUpdateResponse.Data; + + /** + * 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; + + /** + * DEX rules targeted by this test + */ + target_policies?: Array; + + targeted?: boolean; + + /** + * The unique identifier for the test. + */ + test_id?: string; +} + +export namespace DEXTestUpdateResponse { + /** + * The configuration object which contains the details for the WARP client to + * conduct the test. + */ + export interface Data { + /** + * The desired endpoint to test. + */ + host?: string; + + /** + * The type of test. + */ + kind?: string; + + /** + * The HTTP request method type. + */ + method?: string; + } + + export interface TargetPolicy { + /** + * The id of the DEX rule + */ + id?: string; + + /** + * Whether the DEX rule is the account default + */ + default?: boolean; + + /** + * The name of the DEX rule + */ + name?: string; + } +} + +export interface DEXTestListResponse { + /** + * The configuration object which contains the details for the WARP client to + * conduct the test. + */ + data: DEXTestListResponse.Data; + + /** + * 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; + + /** + * DEX rules targeted by this test + */ + target_policies?: Array; + + targeted?: boolean; + + /** + * The unique identifier for the test. + */ + test_id?: string; +} + +export namespace DEXTestListResponse { + /** + * The configuration object which contains the details for the WARP client to + * conduct the test. + */ + export interface Data { + /** + * The desired endpoint to test. + */ + host?: string; + + /** + * The type of test. + */ + kind?: string; + + /** + * The HTTP request method type. + */ + method?: string; + } + + export interface TargetPolicy { + /** + * The id of the DEX rule + */ + id?: string; + + /** + * Whether the DEX rule is the account default + */ + default?: boolean; + + /** + * The name of the DEX rule + */ + name?: string; + } +} + +export interface DEXTestDeleteResponse { + dex_tests?: Array; +} + +export namespace DEXTestDeleteResponse { + export interface DEXTest { + /** + * The configuration object which contains the details for the WARP client to + * conduct the test. + */ + data: DEXTest.Data; + + /** + * 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; + + /** + * DEX rules targeted by this test + */ + target_policies?: Array; + + targeted?: boolean; + + /** + * The unique identifier for the test. + */ + test_id?: string; + } + + export namespace DEXTest { + /** + * The configuration object which contains the details for the WARP client to + * conduct the test. + */ + export interface Data { + /** + * The desired endpoint to test. + */ + host?: string; + + /** + * The type of test. + */ + kind?: string; + + /** + * The HTTP request method type. + */ + method?: string; + } + + export interface TargetPolicy { + /** + * The id of the DEX rule + */ + id?: string; + + /** + * Whether the DEX rule is the account default + */ + default?: boolean; + + /** + * The name of the DEX rule + */ + name?: string; + } + } +} + +export interface DEXTestGetResponse { + /** + * The configuration object which contains the details for the WARP client to + * conduct the test. + */ + data: DEXTestGetResponse.Data; + + /** + * 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; + + /** + * DEX rules targeted by this test + */ + target_policies?: Array; + + targeted?: boolean; + + /** + * The unique identifier for the test. + */ + test_id?: string; +} + +export namespace DEXTestGetResponse { + /** + * The configuration object which contains the details for the WARP client to + * conduct the test. + */ + export interface Data { + /** + * The desired endpoint to test. + */ + host?: string; + + /** + * The type of test. + */ + kind?: string; + + /** + * The HTTP request method type. + */ + method?: string; + } + + export interface TargetPolicy { + /** + * The id of the DEX rule + */ + id?: string; + + /** + * Whether the DEX rule is the account default + */ + default?: boolean; + + /** + * The name of the DEX rule + */ + name?: string; + } +} + +export interface DEXTestCreateParams { + /** + * Path param: + */ + account_id: string; + + /** + * Body param: The configuration object which contains the details for the WARP + * client to conduct the test. + */ + data: DEXTestCreateParams.Data; + + /** + * Body param: Determines whether or not the test is active. + */ + enabled: boolean; + + /** + * Body param: How often the test will run. + */ + interval: string; + + /** + * Body param: The name of the DEX test. Must be unique. + */ + name: string; + + /** + * Body param: Additional details about the test. + */ + description?: string; + + /** + * Body param: DEX rules targeted by this test + */ + target_policies?: Array; + + /** + * Body param: + */ + targeted?: boolean; +} + +export namespace DEXTestCreateParams { + /** + * The configuration object which contains the details for the WARP client to + * conduct the test. + */ + export interface Data { + /** + * The desired endpoint to test. + */ + host?: string; + + /** + * The type of test. + */ + kind?: string; + + /** + * The HTTP request method type. + */ + method?: string; + } + + export interface TargetPolicy { + /** + * The id of the DEX rule + */ + id?: string; + + /** + * Whether the DEX rule is the account default + */ + default?: boolean; + + /** + * The name of the DEX rule + */ + name?: string; + } +} + +export interface DEXTestUpdateParams { + /** + * Path param: + */ + account_id: string; + + /** + * Body param: The configuration object which contains the details for the WARP + * client to conduct the test. + */ + data: DEXTestUpdateParams.Data; + + /** + * Body param: Determines whether or not the test is active. + */ + enabled: boolean; + + /** + * Body param: How often the test will run. + */ + interval: string; + + /** + * Body param: The name of the DEX test. Must be unique. + */ + name: string; + + /** + * Body param: Additional details about the test. + */ + description?: string; + + /** + * Body param: DEX rules targeted by this test + */ + target_policies?: Array; + + /** + * Body param: + */ + targeted?: boolean; +} + +export namespace DEXTestUpdateParams { + /** + * The configuration object which contains the details for the WARP client to + * conduct the test. + */ + export interface Data { + /** + * The desired endpoint to test. + */ + host?: string; + + /** + * The type of test. + */ + kind?: string; + + /** + * The HTTP request method type. + */ + method?: string; + } + + export interface TargetPolicy { + /** + * The id of the DEX rule + */ + id?: string; + + /** + * Whether the DEX rule is the account default + */ + default?: boolean; + + /** + * The name of the DEX rule + */ + name?: string; + } +} + +export interface DEXTestListParams { + account_id: string; +} + +export interface DEXTestDeleteParams { + account_id: string; +} + +export interface DEXTestGetParams { + account_id: string; +} + +DEXTests.DEXTestListResponsesSinglePage = DEXTestListResponsesSinglePage; + export declare namespace DEXTests { - export { type SchemaData as SchemaData, type SchemaHTTP as SchemaHTTP }; + export { + type SchemaData as SchemaData, + type SchemaHTTP as SchemaHTTP, + type DEXTestCreateResponse as DEXTestCreateResponse, + type DEXTestUpdateResponse as DEXTestUpdateResponse, + type DEXTestListResponse as DEXTestListResponse, + type DEXTestDeleteResponse as DEXTestDeleteResponse, + type DEXTestGetResponse as DEXTestGetResponse, + DEXTestListResponsesSinglePage as DEXTestListResponsesSinglePage, + type DEXTestCreateParams as DEXTestCreateParams, + type DEXTestUpdateParams as DEXTestUpdateParams, + type DEXTestListParams as DEXTestListParams, + type DEXTestDeleteParams as DEXTestDeleteParams, + type DEXTestGetParams as DEXTestGetParams, + }; } diff --git a/src/resources/zero-trust/devices/index.ts b/src/resources/zero-trust/devices/index.ts index dd34680d1e..ea1d849640 100644 --- a/src/resources/zero-trust/devices/index.ts +++ b/src/resources/zero-trust/devices/index.ts @@ -1,6 +1,21 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -export { DEXTests, type SchemaData, type SchemaHTTP } from './dex-tests'; +export { + DEXTestListResponsesSinglePage, + DEXTests, + type SchemaData, + type SchemaHTTP, + type DEXTestCreateResponse, + type DEXTestUpdateResponse, + type DEXTestListResponse, + type DEXTestDeleteResponse, + type DEXTestGetResponse, + type DEXTestCreateParams, + type DEXTestUpdateParams, + type DEXTestListParams, + type DEXTestDeleteParams, + type DEXTestGetParams, +} from './dex-tests'; export { DeviceListResponsesCursorPagination, type DeviceListResponse, @@ -86,6 +101,7 @@ export { Settings, type DeviceSettings, type SettingUpdateParams, + type SettingDeleteParams, type SettingEditParams, type SettingGetParams, } from './settings'; diff --git a/src/resources/zero-trust/devices/settings.ts b/src/resources/zero-trust/devices/settings.ts index aff5ad4865..1f8d913538 100644 --- a/src/resources/zero-trust/devices/settings.ts +++ b/src/resources/zero-trust/devices/settings.ts @@ -24,6 +24,26 @@ export class Settings extends APIResource { )._thenUnwrap((obj) => obj.result); } + /** + * Resets the current device settings for a Zero Trust account. + * + * @example + * ```ts + * const deviceSettings = + * await client.zeroTrust.devices.settings.delete({ + * account_id: '699d98642c564d2e855e9661899b7252', + * }); + * ``` + */ + delete(params: SettingDeleteParams, options?: Core.RequestOptions): Core.APIPromise { + const { account_id } = params; + return ( + this._client.delete(`/accounts/${account_id}/devices/settings`, options) as Core.APIPromise<{ + result: DeviceSettings | null; + }> + )._thenUnwrap((obj) => obj.result); + } + /** * Patches the current device settings for a Zero Trust account. * @@ -127,6 +147,10 @@ export interface SettingUpdateParams { use_zt_virtual_ip?: boolean; } +export interface SettingDeleteParams { + account_id: string; +} + export interface SettingEditParams { /** * Path param: @@ -168,6 +192,7 @@ export declare namespace Settings { export { type DeviceSettings as DeviceSettings, type SettingUpdateParams as SettingUpdateParams, + type SettingDeleteParams as SettingDeleteParams, type SettingEditParams as SettingEditParams, type SettingGetParams as SettingGetParams, }; diff --git a/src/resources/zero-trust/dex/dex.ts b/src/resources/zero-trust/dex/dex.ts index 8daee8b7c5..f12a3ad01f 100644 --- a/src/resources/zero-trust/dex/dex.ts +++ b/src/resources/zero-trust/dex/dex.ts @@ -12,6 +12,8 @@ import { TracerouteTestPercentilesResponse, TracerouteTests, } from './traceroute-tests'; +import * as WARPChangeEventsAPI from './warp-change-events'; +import { WARPChangeEventGetParams, WARPChangeEventGetResponse, WARPChangeEvents } from './warp-change-events'; import * as CommandsAPI from './commands/commands'; import { CommandCreateParams, @@ -37,6 +39,9 @@ import * as TracerouteTestResultsAPI from './traceroute-test-results/traceroute- import { TracerouteTestResults } from './traceroute-test-results/traceroute-test-results'; export class DEX extends APIResource { + warpChangeEvents: WARPChangeEventsAPI.WARPChangeEvents = new WARPChangeEventsAPI.WARPChangeEvents( + this._client, + ); commands: CommandsAPI.Commands = new CommandsAPI.Commands(this._client); colos: ColosAPI.Colos = new ColosAPI.Colos(this._client); fleetStatus: FleetStatusAPI.FleetStatus = new FleetStatusAPI.FleetStatus(this._client); @@ -158,6 +163,7 @@ export interface Percentiles { p99?: number | null; } +DEX.WARPChangeEvents = WARPChangeEvents; DEX.Commands = Commands; DEX.CommandListResponsesV4PagePagination = CommandListResponsesV4PagePagination; DEX.Colos = Colos; @@ -176,6 +182,12 @@ export declare namespace DEX { type Percentiles as Percentiles, }; + export { + WARPChangeEvents as WARPChangeEvents, + type WARPChangeEventGetResponse as WARPChangeEventGetResponse, + type WARPChangeEventGetParams as WARPChangeEventGetParams, + }; + export { Commands as Commands, type CommandCreateResponse as CommandCreateResponse, diff --git a/src/resources/zero-trust/dex/index.ts b/src/resources/zero-trust/dex/index.ts index 129d2d85f2..f97aa02d43 100644 --- a/src/resources/zero-trust/dex/index.ts +++ b/src/resources/zero-trust/dex/index.ts @@ -34,3 +34,8 @@ export { type TracerouteTestNetworkPathParams, type TracerouteTestPercentilesParams, } from './traceroute-tests'; +export { + WARPChangeEvents, + type WARPChangeEventGetResponse, + type WARPChangeEventGetParams, +} from './warp-change-events'; diff --git a/src/resources/zero-trust/dex/warp-change-events.ts b/src/resources/zero-trust/dex/warp-change-events.ts new file mode 100644 index 0000000000..6e2ecaf135 --- /dev/null +++ b/src/resources/zero-trust/dex/warp-change-events.ts @@ -0,0 +1,221 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../../resource'; +import * as Core from '../../../core'; + +export class WARPChangeEvents extends APIResource { + /** + * List WARP configuration and enablement toggle change events by device. + * + * @example + * ```ts + * const warpChangeEvents = + * await client.zeroTrust.dex.warpChangeEvents.get({ + * account_id: '01a7362d577a6c3019a474fd6f485823', + * from: '2023-09-20T17:00:00Z', + * page: 1, + * per_page: 1, + * to: '2023-09-20T17:00:00Z', + * }); + * ``` + */ + get( + params: WARPChangeEventGetParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, ...query } = params; + return ( + this._client.get(`/accounts/${account_id}/dex/warp-change-events`, { + query, + ...options, + }) as Core.APIPromise<{ result: WARPChangeEventGetResponse }> + )._thenUnwrap((obj) => obj.result); + } +} + +export type WARPChangeEventGetResponse = Array< + | WARPChangeEventGetResponse.DigitalExperienceMonitoringWARPToggleChangeEvent + | WARPChangeEventGetResponse.DigitalExperienceMonitoringWARPConfigChangeEvent +>; + +export namespace WARPChangeEventGetResponse { + export interface DigitalExperienceMonitoringWARPToggleChangeEvent { + /** + * The account name. + */ + account_name?: string; + + /** + * The public account identifier. + */ + account_tag?: string; + + /** + * API Resource UUID tag. + */ + device_id?: string; + + /** + * API Resource UUID tag. + */ + device_registration?: string; + + /** + * The hostname of the machine the event is from + */ + hostname?: string; + + /** + * The serial number of the machine the event is from + */ + serial_number?: string; + + /** + * Timestamp in ISO format + */ + timestamp?: string; + + /** + * The state of the WARP toggle. + */ + toggle?: 'on' | 'off'; + + /** + * Email tied to the device + */ + user_email?: string; + } + + export interface DigitalExperienceMonitoringWARPConfigChangeEvent { + /** + * API Resource UUID tag. + */ + device_id?: string; + + /** + * API Resource UUID tag. + */ + device_registration?: string; + + from?: DigitalExperienceMonitoringWARPConfigChangeEvent.From; + + /** + * The hostname of the machine the event is from + */ + hostname?: string; + + /** + * The serial number of the machine the event is from + */ + serial_number?: string; + + /** + * Timestamp in ISO format + */ + timestamp?: string; + + to?: DigitalExperienceMonitoringWARPConfigChangeEvent.To; + + /** + * Email tied to the device + */ + user_email?: string; + } + + export namespace DigitalExperienceMonitoringWARPConfigChangeEvent { + export interface From { + /** + * The account name. + */ + account_name?: string; + + /** + * API Resource UUID tag. + */ + account_tag?: string; + + /** + * The name of the WARP configuration. + */ + config_name?: string; + } + + export interface To { + /** + * The account name. + */ + account_name?: string; + + /** + * API Resource UUID tag. + */ + account_tag?: string; + + /** + * The name of the WARP configuration. + */ + config_name?: string; + } + } +} + +export interface WARPChangeEventGetParams { + /** + * Path param: unique identifier linked to an account in the API request path + */ + account_id: string; + + /** + * Query param: Start time for the query in ISO (RFC3339 - ISO 8601) format + */ + from: string; + + /** + * Query param: Page number of paginated results + */ + page: number; + + /** + * Query param: Number of items per page + */ + per_page: number; + + /** + * Query param: End time for the query in ISO (RFC3339 - ISO 8601) format + */ + to: string; + + /** + * Query param: Filter events by account name. + */ + account_name?: string; + + /** + * Query param: Filter events by WARP configuration name changed from or to. + * Applicable to type='config' events only. + */ + config_name?: string; + + /** + * Query param: Sort response by event timestamp. + */ + sort_order?: 'ASC' | 'DESC'; + + /** + * Query param: Filter events by type toggle value. Applicable to type='toggle' + * events only. + */ + toggle?: 'on' | 'off'; + + /** + * Query param: Filter events by type 'config' or 'toggle' + */ + type?: 'config' | 'toggle'; +} + +export declare namespace WARPChangeEvents { + export { + type WARPChangeEventGetResponse as WARPChangeEventGetResponse, + type WARPChangeEventGetParams as WARPChangeEventGetParams, + }; +} diff --git a/tests/api-resources/zero-trust/devices/dex-tests.test.ts b/tests/api-resources/zero-trust/devices/dex-tests.test.ts new file mode 100644 index 0000000000..246e9b7961 --- /dev/null +++ b/tests/api-resources/zero-trust/devices/dex-tests.test.ts @@ -0,0 +1,129 @@ +// 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 dexTests', () => { + test('create: only required params', async () => { + const responsePromise = client.zeroTrust.devices.dexTests.create({ + account_id: '01a7362d577a6c3019a474fd6f485823', + data: {}, + enabled: true, + interval: '30m', + name: 'HTTP dash health check', + }); + 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.dexTests.create({ + account_id: '01a7362d577a6c3019a474fd6f485823', + data: { host: 'https://dash.cloudflare.com', kind: 'http', method: 'GET' }, + enabled: true, + interval: '30m', + name: 'HTTP dash health check', + description: 'Checks the dash endpoint every 30 minutes', + target_policies: [{ id: 'id', default: true, name: 'name' }], + targeted: true, + }); + }); + + test('update: only required params', async () => { + const responsePromise = client.zeroTrust.devices.dexTests.update('f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { + account_id: '01a7362d577a6c3019a474fd6f485823', + data: {}, + enabled: true, + interval: '30m', + name: 'HTTP dash health check', + }); + 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('update: required and optional params', async () => { + const response = await client.zeroTrust.devices.dexTests.update('f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { + account_id: '01a7362d577a6c3019a474fd6f485823', + data: { host: 'https://dash.cloudflare.com', kind: 'http', method: 'GET' }, + enabled: true, + interval: '30m', + name: 'HTTP dash health check', + description: 'Checks the dash endpoint every 30 minutes', + target_policies: [{ id: 'id', default: true, name: 'name' }], + targeted: true, + }); + }); + + test('list: only required params', async () => { + const responsePromise = client.zeroTrust.devices.dexTests.list({ + account_id: '01a7362d577a6c3019a474fd6f485823', + }); + 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.zeroTrust.devices.dexTests.list({ + account_id: '01a7362d577a6c3019a474fd6f485823', + }); + }); + + test('delete: only required params', async () => { + const responsePromise = client.zeroTrust.devices.dexTests.delete('f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { + account_id: '01a7362d577a6c3019a474fd6f485823', + }); + 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('delete: required and optional params', async () => { + const response = await client.zeroTrust.devices.dexTests.delete('f174e90a-fafe-4643-bbbc-4a0ed4fc8415', { + account_id: '01a7362d577a6c3019a474fd6f485823', + }); + }); + + test('get: only required params', async () => { + const responsePromise = client.zeroTrust.devices.dexTests.get('372e67954025e0ba6aaa6d586b9e0b59', { + account_id: '01a7362d577a6c3019a474fd6f485823', + }); + 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.dexTests.get('372e67954025e0ba6aaa6d586b9e0b59', { + account_id: '01a7362d577a6c3019a474fd6f485823', + }); + }); +}); diff --git a/tests/api-resources/zero-trust/devices/settings.test.ts b/tests/api-resources/zero-trust/devices/settings.test.ts index b13424df54..a031df251e 100644 --- a/tests/api-resources/zero-trust/devices/settings.test.ts +++ b/tests/api-resources/zero-trust/devices/settings.test.ts @@ -34,6 +34,25 @@ describe('resource settings', () => { }); }); + test('delete: only required params', async () => { + const responsePromise = client.zeroTrust.devices.settings.delete({ + 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('delete: required and optional params', async () => { + const response = await client.zeroTrust.devices.settings.delete({ + account_id: '699d98642c564d2e855e9661899b7252', + }); + }); + test('edit: only required params', async () => { const responsePromise = client.zeroTrust.devices.settings.edit({ account_id: '699d98642c564d2e855e9661899b7252', diff --git a/tests/api-resources/zero-trust/dex/warp-change-events.test.ts b/tests/api-resources/zero-trust/dex/warp-change-events.test.ts new file mode 100644 index 0000000000..9a77f5af0f --- /dev/null +++ b/tests/api-resources/zero-trust/dex/warp-change-events.test.ts @@ -0,0 +1,44 @@ +// 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 warpChangeEvents', () => { + test('get: only required params', async () => { + const responsePromise = client.zeroTrust.dex.warpChangeEvents.get({ + account_id: '01a7362d577a6c3019a474fd6f485823', + from: '2023-09-20T17:00:00Z', + page: 1, + per_page: 1, + to: '2023-09-20T17:00:00Z', + }); + 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.dex.warpChangeEvents.get({ + account_id: '01a7362d577a6c3019a474fd6f485823', + from: '2023-09-20T17:00:00Z', + page: 1, + per_page: 1, + to: '2023-09-20T17:00:00Z', + account_name: 'Myorg', + config_name: 'MASQUE', + sort_order: 'ASC', + toggle: 'on', + type: 'config', + }); + }); +}); From ccf502bf3f26470a21193d55c27238043c450dc4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 06:11:52 +0000 Subject: [PATCH 040/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4f41c83328..fee2438fdf 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fb111a0086c40e2051f762a27180c017d30a7e71f13b5a883f6109c205e53603.yml -openapi_spec_hash: de05b9c2b538d5175ca561373016af91 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3e2a9cde6d6b916cadea2090d4d8652f6baa0e00866439f2eeadfffa2ba0e87b.yml +openapi_spec_hash: 4d7254fe4abf800040ccd9285dbe8fa3 config_hash: d72c4fd125f1a13d55b0929439ad8189 From 7028643be7fedc5bbbedf220449240c9b326f971 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 08:39:12 +0000 Subject: [PATCH 041/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index fee2438fdf..1236f991cb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3e2a9cde6d6b916cadea2090d4d8652f6baa0e00866439f2eeadfffa2ba0e87b.yml -openapi_spec_hash: 4d7254fe4abf800040ccd9285dbe8fa3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-938745c297a98c6d8c5bd6721998cd977a9873db773ac2bcad51db7747941c8e.yml +openapi_spec_hash: 21e448b525f3fb113b75808dcf95e779 config_hash: d72c4fd125f1a13d55b0929439ad8189 From 05c8b5619044b18e4b945c7fb76f912fbf5a0b26 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 09:11:40 +0000 Subject: [PATCH 042/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1236f991cb..52d1e49e23 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-938745c297a98c6d8c5bd6721998cd977a9873db773ac2bcad51db7747941c8e.yml -openapi_spec_hash: 21e448b525f3fb113b75808dcf95e779 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-157e64fc5881826dc0017db780ebeefb1b9ff3d482bcc3d251a022eef8dc7107.yml +openapi_spec_hash: 3b9f5ec40efeb9af2fe07f8fb0f89979 config_hash: d72c4fd125f1a13d55b0929439ad8189 From e6b2c231c1befc7244021e607050700e3439b369 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 10:29:25 +0000 Subject: [PATCH 043/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/zero-trust/networks/virtual-networks.ts | 7 ++++++- .../zero-trust/networks/virtual-networks.test.ts | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index 52d1e49e23..1629b064b6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-157e64fc5881826dc0017db780ebeefb1b9ff3d482bcc3d251a022eef8dc7107.yml -openapi_spec_hash: 3b9f5ec40efeb9af2fe07f8fb0f89979 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1f318e6f6ba519659336fbf171e097df5b67026a477451b17f92104f2b6a530d.yml +openapi_spec_hash: d8d6ae156457ee8732072b74c1187b7d config_hash: d72c4fd125f1a13d55b0929439ad8189 diff --git a/src/resources/zero-trust/networks/virtual-networks.ts b/src/resources/zero-trust/networks/virtual-networks.ts index 826f6caa95..0c31c355e9 100644 --- a/src/resources/zero-trust/networks/virtual-networks.ts +++ b/src/resources/zero-trust/networks/virtual-networks.ts @@ -183,9 +183,14 @@ export interface VirtualNetworkCreateParams { comment?: string; /** - * Body param: If `true`, this virtual network is the default for the account. + * @deprecated Use the is_default_network property instead. */ is_default?: boolean; + + /** + * Body param: If `true`, this virtual network is the default for the account. + */ + is_default_network?: boolean; } export interface VirtualNetworkListParams { diff --git a/tests/api-resources/zero-trust/networks/virtual-networks.test.ts b/tests/api-resources/zero-trust/networks/virtual-networks.test.ts index 288b29b30c..c85f9c2d8a 100644 --- a/tests/api-resources/zero-trust/networks/virtual-networks.test.ts +++ b/tests/api-resources/zero-trust/networks/virtual-networks.test.ts @@ -30,6 +30,7 @@ describe('resource virtualNetworks', () => { name: 'us-east-1-vpc', comment: 'Staging VPC for data science', is_default: true, + is_default_network: false, }); }); @@ -97,7 +98,7 @@ describe('resource virtualNetworks', () => { { account_id: '699d98642c564d2e855e9661899b7252', comment: 'Staging VPC for data science', - is_default_network: true, + is_default_network: false, name: 'us-east-1-vpc', }, ); From c0bedb04dfbf9628498ae9da9d8a169d90d71817 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 12:28:01 +0000 Subject: [PATCH 044/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1629b064b6..1b6d96c03c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1f318e6f6ba519659336fbf171e097df5b67026a477451b17f92104f2b6a530d.yml -openapi_spec_hash: d8d6ae156457ee8732072b74c1187b7d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4f168864b220ca8096d10253e67dfe655214cba27bb4f8b5a12fc148824a4f9a.yml +openapi_spec_hash: efaac83c522d0ce595aff8b4e9698a99 config_hash: d72c4fd125f1a13d55b0929439ad8189 From f7377961eb41554d5a5aa44aa60fc913da506a32 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 13:08:26 +0000 Subject: [PATCH 045/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1b6d96c03c..2bbc6a1b97 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4f168864b220ca8096d10253e67dfe655214cba27bb4f8b5a12fc148824a4f9a.yml -openapi_spec_hash: efaac83c522d0ce595aff8b4e9698a99 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1675fe005490c5d3ba493e6798d6a6eb1ae8e23d535942f078ec6884f2ef7539.yml +openapi_spec_hash: 7956aa2060f5a1217e5eecb1e2875e00 config_hash: d72c4fd125f1a13d55b0929439ad8189 From 55b13230a5aba27b8b159cddfa3378f252acd255 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 14:13:00 +0000 Subject: [PATCH 046/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2bbc6a1b97..3d9012908e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1675fe005490c5d3ba493e6798d6a6eb1ae8e23d535942f078ec6884f2ef7539.yml -openapi_spec_hash: 7956aa2060f5a1217e5eecb1e2875e00 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-598a84593de25dc5ffe53049b43fd4b24d9a7fcd4b50649195cc69e587dc755d.yml +openapi_spec_hash: ec777d9ff47ae534a737d6aa007d44a8 config_hash: d72c4fd125f1a13d55b0929439ad8189 From 5dbc6fae4c2c5ca8103c2ee96869b6a8eeaa8bef Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 14:15:26 +0000 Subject: [PATCH 047/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3d9012908e..7c3e10b995 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-598a84593de25dc5ffe53049b43fd4b24d9a7fcd4b50649195cc69e587dc755d.yml -openapi_spec_hash: ec777d9ff47ae534a737d6aa007d44a8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-72f62ac920f297e42dea108b4f636a0d8e19c9595c4bd70462b51519563187fa.yml +openapi_spec_hash: ce33a3621ed0b50f27d3e5787fd81a37 config_hash: d72c4fd125f1a13d55b0929439ad8189 From 71ec813a446b6c79ec66dceff298641f88139592 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 14:29:51 +0000 Subject: [PATCH 048/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7c3e10b995..9edaf32421 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-72f62ac920f297e42dea108b4f636a0d8e19c9595c4bd70462b51519563187fa.yml -openapi_spec_hash: ce33a3621ed0b50f27d3e5787fd81a37 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-83f1dc2c46a6003edb3c1a338eeed6eb2b20fd1960df15b1114214d55ff8576d.yml +openapi_spec_hash: 6aed28f3a51fe3258bbd49be9482c74d config_hash: d72c4fd125f1a13d55b0929439ad8189 From e9d3eb31e62f97e19ac0c1e0a1e42792549dad90 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 14:32:23 +0000 Subject: [PATCH 049/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9edaf32421..4b57003954 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-83f1dc2c46a6003edb3c1a338eeed6eb2b20fd1960df15b1114214d55ff8576d.yml -openapi_spec_hash: 6aed28f3a51fe3258bbd49be9482c74d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-21830db1e58667bb5491a9df74ec360aaf783d7185c216a2c897ec41657d4c80.yml +openapi_spec_hash: ee3e7fffcac2e3aef9121af57fc1b56e config_hash: d72c4fd125f1a13d55b0929439ad8189 From d0b1928e634dfbe0c0e0abff120e53333d472578 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 14:36:02 +0000 Subject: [PATCH 050/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/firewall/lockdowns.ts | 18 ++++++++++++++ src/resources/firewall/ua-rules.ts | 24 +++++++++++++------ .../api-resources/firewall/lockdowns.test.ts | 3 +++ tests/api-resources/firewall/ua-rules.test.ts | 2 +- 5 files changed, 41 insertions(+), 10 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4b57003954..05697ca9ec 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-21830db1e58667bb5491a9df74ec360aaf783d7185c216a2c897ec41657d4c80.yml -openapi_spec_hash: ee3e7fffcac2e3aef9121af57fc1b56e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-79b0883c50661fe0956591bd1f7067d5cebf7db5b45d7b5971554e5aad570699.yml +openapi_spec_hash: 08e5d3e41fee4265e778fd22ed3ea93e config_hash: d72c4fd125f1a13d55b0929439ad8189 diff --git a/src/resources/firewall/lockdowns.ts b/src/resources/firewall/lockdowns.ts index 3c34238457..cce23bc361 100644 --- a/src/resources/firewall/lockdowns.ts +++ b/src/resources/firewall/lockdowns.ts @@ -269,6 +269,24 @@ export interface LockdownCreateParams { * use simple wildcard patterns. */ urls: Array; + + /** + * Body param: An informative summary of the rate limit. This value is sanitized + * and any tags will be removed. + */ + description?: string; + + /** + * Body param: When true, indicates that the rule is currently paused. + */ + paused?: boolean; + + /** + * Body param: The priority of the rule to control the processing order. A lower + * number indicates higher priority. If not provided, any rules with a configured + * priority will be processed before rules without a priority. + */ + priority?: number; } export interface LockdownUpdateParams { diff --git a/src/resources/firewall/ua-rules.ts b/src/resources/firewall/ua-rules.ts index 973452c4bb..af997cc365 100644 --- a/src/resources/firewall/ua-rules.ts +++ b/src/resources/firewall/ua-rules.ts @@ -199,14 +199,9 @@ export interface UARuleCreateParams { zone_id: string; /** - * Body param: The rule configuration. + * Body param: */ - configuration: - | AccessRulesAPI.AccessRuleIPConfigurationParam - | AccessRulesAPI.IPV6ConfigurationParam - | AccessRulesAPI.AccessRuleCIDRConfigurationParam - | AccessRulesAPI.ASNConfigurationParam - | AccessRulesAPI.CountryConfigurationParam; + configuration: UARuleCreateParams.Configuration; /** * Body param: The action to apply to a matched request. @@ -214,6 +209,21 @@ export interface UARuleCreateParams { mode: 'block' | 'challenge' | 'whitelist' | 'js_challenge' | 'managed_challenge'; } +export namespace UARuleCreateParams { + export interface Configuration { + /** + * The configuration target. You must set the target to `ua` when specifying a user + * agent in the rule. + */ + target?: 'ua'; + + /** + * the user agent to exactly match + */ + value?: string; + } +} + export interface UARuleUpdateParams { /** * Path param: Defines an identifier. diff --git a/tests/api-resources/firewall/lockdowns.test.ts b/tests/api-resources/firewall/lockdowns.test.ts index 0f718dcaba..1d8fe3c1c5 100644 --- a/tests/api-resources/firewall/lockdowns.test.ts +++ b/tests/api-resources/firewall/lockdowns.test.ts @@ -32,6 +32,9 @@ describe('resource lockdowns', () => { zone_id: '023e105f4ecef8ad9ca31a8372d0c353', configurations: [{ target: 'ip', value: '198.51.100.4' }], urls: ['shop.example.com/*'], + description: 'Prevent multiple login failures to mitigate brute force attacks', + paused: false, + priority: 5, }); }); diff --git a/tests/api-resources/firewall/ua-rules.test.ts b/tests/api-resources/firewall/ua-rules.test.ts index 5e38482e48..ecaf7976a4 100644 --- a/tests/api-resources/firewall/ua-rules.test.ts +++ b/tests/api-resources/firewall/ua-rules.test.ts @@ -30,7 +30,7 @@ describe('resource uaRules', () => { test.skip('create: required and optional params', async () => { const response = await client.firewall.uaRules.create({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353', - configuration: { target: 'ip', value: '198.51.100.4' }, + configuration: { target: 'ua', value: 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)' }, mode: 'challenge', }); }); From 1767613f8a02309975e29ba33de4b89ab9e876fc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 17:58:22 +0000 Subject: [PATCH 051/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 05697ca9ec..41e8d54608 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-79b0883c50661fe0956591bd1f7067d5cebf7db5b45d7b5971554e5aad570699.yml -openapi_spec_hash: 08e5d3e41fee4265e778fd22ed3ea93e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3bda233a7bb042d3f049df1bd312d17fe817162a3a277a466b3acfe101aea490.yml +openapi_spec_hash: d33a5535b00271b153b29c93a0bcc29e config_hash: d72c4fd125f1a13d55b0929439ad8189 From 8b11e537d84c8fdb006038ced8cf2ed545e1bc2b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 18:00:52 +0000 Subject: [PATCH 052/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 41e8d54608..a2e9b55788 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3bda233a7bb042d3f049df1bd312d17fe817162a3a277a466b3acfe101aea490.yml -openapi_spec_hash: d33a5535b00271b153b29c93a0bcc29e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9e313cba3bc05ed7954e456672f3cbbe680dd3deefa251bede26d9b18b234de6.yml +openapi_spec_hash: 89eb8b4569bf8e1120de2af6bd9bf065 config_hash: d72c4fd125f1a13d55b0929439ad8189 From d385cc50d74bcc5de0f20d86e0711465dfcd9aeb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 18:06:15 +0000 Subject: [PATCH 053/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a2e9b55788..90d11a3f49 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9e313cba3bc05ed7954e456672f3cbbe680dd3deefa251bede26d9b18b234de6.yml -openapi_spec_hash: 89eb8b4569bf8e1120de2af6bd9bf065 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1416901693dd4d0f8a0eca98f94242ad5e1e53a1533a91a023f3cda2d4fe8e98.yml +openapi_spec_hash: 71c43f83c953116e7ba268993e089033 config_hash: d72c4fd125f1a13d55b0929439ad8189 From 337b6ca8c4ec19a76a6743c9dd8277de3ef39e4c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 18:12:34 +0000 Subject: [PATCH 054/366] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 90d11a3f49..7267c4c896 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1416901693dd4d0f8a0eca98f94242ad5e1e53a1533a91a023f3cda2d4fe8e98.yml openapi_spec_hash: 71c43f83c953116e7ba268993e089033 -config_hash: d72c4fd125f1a13d55b0929439ad8189 +config_hash: 2782b93d61eb52118b969d0541d46a01 From 76c6030941fb26a186e9b04a88cf0ac7d6aae2ee Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 18:43:34 +0000 Subject: [PATCH 055/366] feat(api): api update --- .stats.yml | 4 +- .../access/applications/applications.ts | 282 +++++++++++++++--- 2 files changed, 242 insertions(+), 44 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7267c4c896..4ace89faad 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1416901693dd4d0f8a0eca98f94242ad5e1e53a1533a91a023f3cda2d4fe8e98.yml -openapi_spec_hash: 71c43f83c953116e7ba268993e089033 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ec2e67b662661804e6d539ba819c6a4a8229e9ce62c05a51b26bfcaa6b67d739.yml +openapi_spec_hash: 259c6df9ff626ecf3e7f817b223fef5e config_hash: 2782b93d61eb52118b969d0541d46a01 diff --git a/src/resources/zero-trust/access/applications/applications.ts b/src/resources/zero-trust/access/applications/applications.ts index 699b63492d..743992d3f5 100644 --- a/src/resources/zero-trust/access/applications/applications.ts +++ b/src/resources/zero-trust/access/applications/applications.ts @@ -2606,7 +2606,7 @@ export namespace ApplicationCreateResponse { /** * The application type. */ - type: string; + type: ApplicationsAPI.ApplicationType; /** * UUID. @@ -3071,7 +3071,7 @@ export namespace ApplicationCreateResponse { /** * The application type. */ - type?: string; + type?: ApplicationsAPI.ApplicationType; updated_at?: string; } @@ -3268,7 +3268,18 @@ export namespace ApplicationCreateResponse { /** * The application type. */ - type: string; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * UUID. @@ -3679,7 +3690,18 @@ export namespace ApplicationCreateResponse { /** * The application type. */ - type: string; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * UUID. @@ -4084,7 +4106,18 @@ export namespace ApplicationCreateResponse { /** * The application type. */ - type: ApplicationsAPI.ApplicationType; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * UUID. @@ -5067,7 +5100,7 @@ export namespace ApplicationCreateResponse { /** * The application type. */ - type?: string; + type?: ApplicationsAPI.ApplicationType; updated_at?: string; } @@ -5418,7 +5451,7 @@ export namespace ApplicationCreateResponse { /** * The application type. */ - type: string; + type: ApplicationsAPI.ApplicationType; /** * UUID. @@ -5861,7 +5894,7 @@ export namespace ApplicationUpdateResponse { /** * The application type. */ - type: string; + type: ApplicationsAPI.ApplicationType; /** * UUID. @@ -6326,7 +6359,7 @@ export namespace ApplicationUpdateResponse { /** * The application type. */ - type?: string; + type?: ApplicationsAPI.ApplicationType; updated_at?: string; } @@ -6523,7 +6556,18 @@ export namespace ApplicationUpdateResponse { /** * The application type. */ - type: string; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * UUID. @@ -6934,7 +6978,18 @@ export namespace ApplicationUpdateResponse { /** * The application type. */ - type: string; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * UUID. @@ -7339,7 +7394,18 @@ export namespace ApplicationUpdateResponse { /** * The application type. */ - type: ApplicationsAPI.ApplicationType; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * UUID. @@ -8322,7 +8388,7 @@ export namespace ApplicationUpdateResponse { /** * The application type. */ - type?: string; + type?: ApplicationsAPI.ApplicationType; updated_at?: string; } @@ -8673,7 +8739,7 @@ export namespace ApplicationUpdateResponse { /** * The application type. */ - type: string; + type: ApplicationsAPI.ApplicationType; /** * UUID. @@ -9116,7 +9182,7 @@ export namespace ApplicationListResponse { /** * The application type. */ - type: string; + type: ApplicationsAPI.ApplicationType; /** * UUID. @@ -9581,7 +9647,7 @@ export namespace ApplicationListResponse { /** * The application type. */ - type?: string; + type?: ApplicationsAPI.ApplicationType; updated_at?: string; } @@ -9778,7 +9844,18 @@ export namespace ApplicationListResponse { /** * The application type. */ - type: string; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * UUID. @@ -10189,7 +10266,18 @@ export namespace ApplicationListResponse { /** * The application type. */ - type: string; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * UUID. @@ -10594,7 +10682,18 @@ export namespace ApplicationListResponse { /** * The application type. */ - type: ApplicationsAPI.ApplicationType; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * UUID. @@ -11577,7 +11676,7 @@ export namespace ApplicationListResponse { /** * The application type. */ - type?: string; + type?: ApplicationsAPI.ApplicationType; updated_at?: string; } @@ -11928,7 +12027,7 @@ export namespace ApplicationListResponse { /** * The application type. */ - type: string; + type: ApplicationsAPI.ApplicationType; /** * UUID. @@ -12378,7 +12477,7 @@ export namespace ApplicationGetResponse { /** * The application type. */ - type: string; + type: ApplicationsAPI.ApplicationType; /** * UUID. @@ -12843,7 +12942,7 @@ export namespace ApplicationGetResponse { /** * The application type. */ - type?: string; + type?: ApplicationsAPI.ApplicationType; updated_at?: string; } @@ -13040,7 +13139,18 @@ export namespace ApplicationGetResponse { /** * The application type. */ - type: string; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * UUID. @@ -13451,7 +13561,18 @@ export namespace ApplicationGetResponse { /** * The application type. */ - type: string; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * UUID. @@ -13856,7 +13977,18 @@ export namespace ApplicationGetResponse { /** * The application type. */ - type: ApplicationsAPI.ApplicationType; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * UUID. @@ -14839,7 +14971,7 @@ export namespace ApplicationGetResponse { /** * The application type. */ - type?: string; + type?: ApplicationsAPI.ApplicationType; updated_at?: string; } @@ -15190,7 +15322,7 @@ export namespace ApplicationGetResponse { /** * The application type. */ - type: string; + type: ApplicationsAPI.ApplicationType; /** * UUID. @@ -15635,7 +15767,7 @@ export declare namespace ApplicationCreateParams { /** * Body param: The application type. */ - type: string; + type: ApplicationTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -16101,7 +16233,7 @@ export declare namespace ApplicationCreateParams { /** * Body param: The application type. */ - type?: string; + type?: ApplicationTypeParam; } export namespace SaaSApplication { @@ -16279,7 +16411,18 @@ export declare namespace ApplicationCreateParams { /** * Body param: The application type. */ - type: string; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -16682,7 +16825,18 @@ export declare namespace ApplicationCreateParams { /** * Body param: The application type. */ - type: string; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -17079,7 +17233,18 @@ export declare namespace ApplicationCreateParams { /** * Body param: The application type. */ - type: ApplicationTypeParam; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -18000,7 +18165,7 @@ export declare namespace ApplicationCreateParams { /** * Body param: The application type. */ - type?: string; + type?: ApplicationTypeParam; } export namespace BookmarkApplication { @@ -18242,7 +18407,7 @@ export declare namespace ApplicationCreateParams { /** * Body param: The application type. */ - type: string; + type: ApplicationTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -18677,7 +18842,7 @@ export declare namespace ApplicationUpdateParams { /** * Body param: The application type. */ - type: string; + type: ApplicationTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -19143,7 +19308,7 @@ export declare namespace ApplicationUpdateParams { /** * Body param: The application type. */ - type?: string; + type?: ApplicationTypeParam; } export namespace SaaSApplication { @@ -19321,7 +19486,18 @@ export declare namespace ApplicationUpdateParams { /** * Body param: The application type. */ - type: string; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -19724,7 +19900,18 @@ export declare namespace ApplicationUpdateParams { /** * Body param: The application type. */ - type: string; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -20121,7 +20308,18 @@ export declare namespace ApplicationUpdateParams { /** * Body param: The application type. */ - type: ApplicationTypeParam; + type: + | 'self_hosted' + | 'saas' + | 'ssh' + | 'vnc' + | 'app_launcher' + | 'warp' + | 'biso' + | 'bookmark' + | 'dash_sso' + | 'infrastructure' + | 'rdp'; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the @@ -21042,7 +21240,7 @@ export declare namespace ApplicationUpdateParams { /** * Body param: The application type. */ - type?: string; + type?: ApplicationTypeParam; } export namespace BookmarkApplication { @@ -21284,7 +21482,7 @@ export declare namespace ApplicationUpdateParams { /** * Body param: The application type. */ - type: string; + type: ApplicationTypeParam; /** * Path param: The Account ID to use for this endpoint. Mutually exclusive with the From f81f5f0010fb9f52a7a37aa2a0489b8c27083aeb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 18:50:26 +0000 Subject: [PATCH 056/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4ace89faad..dc61eda577 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ec2e67b662661804e6d539ba819c6a4a8229e9ce62c05a51b26bfcaa6b67d739.yml -openapi_spec_hash: 259c6df9ff626ecf3e7f817b223fef5e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-565c8d95123e68824d8f87eb6729d5bff98e8d236c813fea0fbf0b0b92bc3815.yml +openapi_spec_hash: c64c0533ddd197589cdee29328c933b4 config_hash: 2782b93d61eb52118b969d0541d46a01 From 41f4c40d00b90003369e760844bfb7eef1cbcc4a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 19:11:48 +0000 Subject: [PATCH 057/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/load-balancers/searches.ts | 22 ++++++------------- .../load-balancers/searches.test.ts | 3 ++- 3 files changed, 11 insertions(+), 18 deletions(-) diff --git a/.stats.yml b/.stats.yml index dc61eda577..ff6cceeb64 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-565c8d95123e68824d8f87eb6729d5bff98e8d236c813fea0fbf0b0b92bc3815.yml -openapi_spec_hash: c64c0533ddd197589cdee29328c933b4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4f09536481c9c0a4787d1ca16e6abf17da7eab89d2c7d2d0d9def51cc5bb6d76.yml +openapi_spec_hash: 63f3bfe2f416defc47924e120dd89266 config_hash: 2782b93d61eb52118b969d0541d46a01 diff --git a/src/resources/load-balancers/searches.ts b/src/resources/load-balancers/searches.ts index 8313995233..1ddf9765c4 100644 --- a/src/resources/load-balancers/searches.ts +++ b/src/resources/load-balancers/searches.ts @@ -76,23 +76,15 @@ export interface SearchListParams extends V4PagePaginationParams { account_id: string; /** - * Query param: + * Query param: Search query term. */ - search_params?: SearchListParams.SearchParams; -} + query?: string; -export namespace SearchListParams { - export interface SearchParams { - /** - * Search query term. - */ - query?: string; - - /** - * The type of references to include ("\*" for all). - */ - references?: '' | '*' | 'referral' | 'referrer'; - } + /** + * Query param: The type of references to include. "\*" to include both referral + * and referrer references. "" to not include any reference information. + */ + references?: '' | '*' | 'referral' | 'referrer'; } Searches.SearchListResponsesV4PagePagination = SearchListResponsesV4PagePagination; diff --git a/tests/api-resources/load-balancers/searches.test.ts b/tests/api-resources/load-balancers/searches.test.ts index 02837b7b84..382127806f 100644 --- a/tests/api-resources/load-balancers/searches.test.ts +++ b/tests/api-resources/load-balancers/searches.test.ts @@ -30,7 +30,8 @@ describe('resource searches', () => { account_id: '023e105f4ecef8ad9ca31a8372d0c353', page: 1, per_page: 1, - search_params: { query: 'primary', references: '*' }, + query: 'primary', + references: '*', }); }); }); From 464dd975bfb74f37d672df145377b8d7d41f75b7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 19:15:52 +0000 Subject: [PATCH 058/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ff6cceeb64..c57e176c92 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4f09536481c9c0a4787d1ca16e6abf17da7eab89d2c7d2d0d9def51cc5bb6d76.yml -openapi_spec_hash: 63f3bfe2f416defc47924e120dd89266 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5875d8941abff1affbb7cd50dfca520037685fc77594e2896d1f6c84d85f6c79.yml +openapi_spec_hash: ba14c24fc6d344a910e24d96660d5877 config_hash: 2782b93d61eb52118b969d0541d46a01 From f6bcdfb7f82f3e6e5472da44345e27240c1b31b7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 19:59:52 +0000 Subject: [PATCH 059/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c57e176c92..27c62e9150 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5875d8941abff1affbb7cd50dfca520037685fc77594e2896d1f6c84d85f6c79.yml -openapi_spec_hash: ba14c24fc6d344a910e24d96660d5877 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3c64e6b4765e941e2c348841e409930f3d720dca12a5278e2d974f2901763615.yml +openapi_spec_hash: e7dd315099896c954926181a718140de config_hash: 2782b93d61eb52118b969d0541d46a01 From a97cde05a006128aa7c091399297b9c2be77bd92 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 20:40:09 +0000 Subject: [PATCH 060/366] feat(api): Add infrastructure targets bulk deletion endpoint --- .stats.yml | 2 +- api.md | 2 +- .../zero-trust/access/infrastructure/targets.ts | 17 +++++++++++++---- .../access/infrastructure/targets.test.ts | 2 ++ 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index 27c62e9150..2836b50a0f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3c64e6b4765e941e2c348841e409930f3d720dca12a5278e2d974f2901763615.yml openapi_spec_hash: e7dd315099896c954926181a718140de -config_hash: 2782b93d61eb52118b969d0541d46a01 +config_hash: cbdf70f7c241783c9f039f2c0ba7fa0e diff --git a/api.md b/api.md index 2b8b72d9db..de14550376 100644 --- a/api.md +++ b/api.md @@ -4935,7 +4935,7 @@ Methods: - client.zeroTrust.access.infrastructure.targets.update(targetId, { ...params }) -> TargetUpdateResponse - client.zeroTrust.access.infrastructure.targets.list({ ...params }) -> TargetListResponsesV4PagePaginationArray - client.zeroTrust.access.infrastructure.targets.delete(targetId, { ...params }) -> void -- client.zeroTrust.access.infrastructure.targets.bulkDelete({ ...params }) -> void +- client.zeroTrust.access.infrastructure.targets.bulkDelete({ ...params }) -> void - client.zeroTrust.access.infrastructure.targets.bulkUpdate([ ...body ]) -> TargetBulkUpdateResponsesSinglePage - client.zeroTrust.access.infrastructure.targets.get(targetId, { ...params }) -> TargetGetResponse diff --git a/src/resources/zero-trust/access/infrastructure/targets.ts b/src/resources/zero-trust/access/infrastructure/targets.ts index 0c131221bf..574488e351 100644 --- a/src/resources/zero-trust/access/infrastructure/targets.ts +++ b/src/resources/zero-trust/access/infrastructure/targets.ts @@ -111,13 +111,17 @@ export class Targets extends APIResource { * @example * ```ts * await client.zeroTrust.access.infrastructure.targets.bulkDelete( - * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, + * { + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', + * target_ids: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], + * }, * ); * ``` */ bulkDelete(params: TargetBulkDeleteParams, options?: Core.RequestOptions): Core.APIPromise { - const { account_id } = params; - return this._client.delete(`/accounts/${account_id}/infrastructure/targets/batch`, { + const { account_id, ...body } = params; + return this._client.post(`/accounts/${account_id}/infrastructure/targets/batch_delete`, { + body, ...options, headers: { Accept: '*/*', ...options?.headers }, }); @@ -827,9 +831,14 @@ export interface TargetDeleteParams { export interface TargetBulkDeleteParams { /** - * Account identifier + * Path param: Account identifier */ account_id: string; + + /** + * Body param: List of target IDs to bulk delete + */ + target_ids: Array; } export interface TargetBulkUpdateParams { diff --git a/tests/api-resources/zero-trust/access/infrastructure/targets.test.ts b/tests/api-resources/zero-trust/access/infrastructure/targets.test.ts index 928a90120e..4e614a9dd4 100644 --- a/tests/api-resources/zero-trust/access/infrastructure/targets.test.ts +++ b/tests/api-resources/zero-trust/access/infrastructure/targets.test.ts @@ -133,6 +133,7 @@ describe('resource targets', () => { test('bulkDelete: only required params', async () => { const responsePromise = client.zeroTrust.access.infrastructure.targets.bulkDelete({ account_id: '023e105f4ecef8ad9ca31a8372d0c353', + target_ids: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -146,6 +147,7 @@ describe('resource targets', () => { test('bulkDelete: required and optional params', async () => { const response = await client.zeroTrust.access.infrastructure.targets.bulkDelete({ account_id: '023e105f4ecef8ad9ca31a8372d0c353', + target_ids: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], }); }); From 86bf4f01983532d16dfacaa7922a1b901fd85ce0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 22:25:38 +0000 Subject: [PATCH 061/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2836b50a0f..60a0ca27ce 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3c64e6b4765e941e2c348841e409930f3d720dca12a5278e2d974f2901763615.yml -openapi_spec_hash: e7dd315099896c954926181a718140de +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-29bf3d61fcb61eb0653d41dcc24eed2ba8341348c34ad34703ca1befcab49ee4.yml +openapi_spec_hash: 2a71c286b3a1cd37ee7679c81da7e359 config_hash: cbdf70f7c241783c9f039f2c0ba7fa0e From 84b6b1a911d8dbce20c23d022b48a98d14faf817 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 25 May 2025 23:33:35 +0000 Subject: [PATCH 062/366] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 60a0ca27ce..5bf3a9b5a7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-29bf3d61fcb61eb0653d41dcc24eed2ba8341348c34ad34703ca1befcab49ee4.yml openapi_spec_hash: 2a71c286b3a1cd37ee7679c81da7e359 -config_hash: cbdf70f7c241783c9f039f2c0ba7fa0e +config_hash: f6c4a93139a93cfd16a678e54b5fb249 From 5e7301496ec801b73dcd5b703d6c861841bf812c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 06:05:55 +0000 Subject: [PATCH 063/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5bf3a9b5a7..7bc22e9f7e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-29bf3d61fcb61eb0653d41dcc24eed2ba8341348c34ad34703ca1befcab49ee4.yml -openapi_spec_hash: 2a71c286b3a1cd37ee7679c81da7e359 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8897771442f9636e1b84b47f965aef054aebadb40ced175653a7a3b0ffcbe28e.yml +openapi_spec_hash: 5da438ec1a131a3296e5dbbf54fd1a89 config_hash: f6c4a93139a93cfd16a678e54b5fb249 From 55fb4a267a911aead9a0de72c491150bef9d2730 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 06:08:28 +0000 Subject: [PATCH 064/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7bc22e9f7e..75366e9cfd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8897771442f9636e1b84b47f965aef054aebadb40ced175653a7a3b0ffcbe28e.yml -openapi_spec_hash: 5da438ec1a131a3296e5dbbf54fd1a89 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3c64e6b4765e941e2c348841e409930f3d720dca12a5278e2d974f2901763615.yml +openapi_spec_hash: e7dd315099896c954926181a718140de config_hash: f6c4a93139a93cfd16a678e54b5fb249 From 1eea2d9c4e15459088c5a0179069122716f5af6a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 08:26:59 +0000 Subject: [PATCH 065/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 75366e9cfd..eaa6563e4d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3c64e6b4765e941e2c348841e409930f3d720dca12a5278e2d974f2901763615.yml -openapi_spec_hash: e7dd315099896c954926181a718140de +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f632de229392e9118263c201d2c738018aead0c09d14dc77fc78b41ecfd71b80.yml +openapi_spec_hash: 89e241775a4d0a96c8d8504695841e1a config_hash: f6c4a93139a93cfd16a678e54b5fb249 From b32732f7f47daf3ddc1031786a477906162a462f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 08:48:29 +0000 Subject: [PATCH 066/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index eaa6563e4d..1da59b502a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f632de229392e9118263c201d2c738018aead0c09d14dc77fc78b41ecfd71b80.yml -openapi_spec_hash: 89e241775a4d0a96c8d8504695841e1a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1275196e3f721bb51d5293558a64f10e71a492cb107d88242147bd58f94310d9.yml +openapi_spec_hash: 3875d70a6134a2081a6c8c1de038901d config_hash: f6c4a93139a93cfd16a678e54b5fb249 From 251f100038aecf8cfab3c3f1cad4ee5560f77751 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 09:40:54 +0000 Subject: [PATCH 067/366] feat(api): api update --- .stats.yml | 4 +- src/resources/radar/ai/bots/summary.ts | 80 +- src/resources/radar/ai/inference/summary.ts | 160 ++- .../ai/inference/timeseries-groups/summary.ts | 198 +++- src/resources/radar/ai/timeseries-groups.ts | 99 +- src/resources/radar/annotations/outages.ts | 3 + src/resources/radar/as112/as112.ts | 92 +- src/resources/radar/as112/summary.ts | 510 ++++++--- .../radar/as112/timeseries-groups.ts | 586 ++++++++++- src/resources/radar/as112/top.ts | 324 ++++-- src/resources/radar/attacks/layer3/layer3.ts | 102 +- src/resources/radar/attacks/layer3/summary.ts | 611 ++++++++--- .../radar/attacks/layer3/timeseries-groups.ts | 685 +++++++++++- .../radar/attacks/layer3/top/locations.ts | 156 ++- src/resources/radar/attacks/layer3/top/top.ts | 234 ++++- src/resources/radar/attacks/layer7/layer7.ts | 85 +- src/resources/radar/attacks/layer7/summary.ts | 560 +++++++--- .../radar/attacks/layer7/timeseries-groups.ts | 689 ++++++++++++- .../radar/attacks/layer7/top/ases.ts | 78 +- .../radar/attacks/layer7/top/locations.ts | 156 ++- src/resources/radar/attacks/layer7/top/top.ts | 234 ++++- src/resources/radar/bgp/bgp.ts | 49 +- src/resources/radar/bgp/ips.ts | 143 ++- src/resources/radar/bgp/routes.ts | 6 +- src/resources/radar/bgp/top/top.ts | 3 + src/resources/radar/dns/dns.ts | 92 +- src/resources/radar/dns/summary.ts | 875 ++++++++++++---- src/resources/radar/dns/timeseries-groups.ts | 974 ++++++++++++++++- src/resources/radar/dns/top.ts | 166 ++- src/resources/radar/email/email.ts | 9 + src/resources/radar/email/routing/summary.ts | 492 ++++++--- .../radar/email/routing/timeseries-groups.ts | 590 ++++++++++- src/resources/radar/email/security/summary.ts | 762 ++++++++++---- .../radar/email/security/timeseries-groups.ts | 881 +++++++++++++++- .../email/security/top/tlds/malicious.ts | 81 +- .../radar/email/security/top/tlds/spam.ts | 81 +- .../radar/email/security/top/tlds/spoof.ts | 81 +- .../radar/email/security/top/tlds/tlds.ts | 81 +- src/resources/radar/entities/locations.ts | 12 + src/resources/radar/http/ases/ases.ts | 81 +- src/resources/radar/http/ases/bot-class.ts | 81 +- .../radar/http/ases/browser-family.ts | 81 +- src/resources/radar/http/ases/device-type.ts | 81 +- src/resources/radar/http/ases/http-method.ts | 81 +- .../radar/http/ases/http-protocol.ts | 81 +- src/resources/radar/http/ases/ip-version.ts | 81 +- src/resources/radar/http/ases/os.ts | 81 +- src/resources/radar/http/ases/tls-version.ts | 81 +- src/resources/radar/http/http.ts | 92 +- .../radar/http/locations/bot-class.ts | 81 +- .../radar/http/locations/browser-family.ts | 81 +- .../radar/http/locations/device-type.ts | 81 +- .../radar/http/locations/http-method.ts | 81 +- .../radar/http/locations/http-protocol.ts | 81 +- .../radar/http/locations/ip-version.ts | 81 +- .../radar/http/locations/locations.ts | 81 +- src/resources/radar/http/locations/os.ts | 81 +- .../radar/http/locations/tls-version.ts | 81 +- src/resources/radar/http/summary.ts | 703 ++++++++++--- src/resources/radar/http/timeseries-groups.ts | 976 +++++++++++++++++- src/resources/radar/http/top.ts | 156 ++- .../radar/leaked-credentials/summary.ts | 172 ++- .../leaked-credentials/timeseries-groups.ts | 194 +++- src/resources/radar/netflows/netflows.ts | 171 ++- src/resources/radar/netflows/top.ts | 186 ++++ src/resources/radar/quality/iqi.ts | 177 +++- src/resources/radar/quality/speed/speed.ts | 169 ++- src/resources/radar/quality/speed/top.ts | 156 ++- .../radar/ranking/internet-services.ts | 155 ++- src/resources/radar/ranking/ranking.ts | 155 ++- src/resources/radar/robots-txt/top/top.ts | 76 +- .../radar/robots-txt/top/user-agents.ts | 76 +- src/resources/radar/tcp-resets-timeouts.ts | 165 ++- .../radar/traffic-anomalies/locations.ts | 3 + src/resources/radar/verified-bots/top.ts | 166 ++- 75 files changed, 14090 insertions(+), 2340 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1da59b502a..bf526f4a17 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1275196e3f721bb51d5293558a64f10e71a492cb107d88242147bd58f94310d9.yml -openapi_spec_hash: 3875d70a6134a2081a6c8c1de038901d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-67f1e6a1c9002584a0b224367460a0322a4a0591334123eb4630caf4c278e4b4.yml +openapi_spec_hash: 2f45d30f8bbb348c3105378c8ba3e96c config_hash: f6c4a93139a93cfd16a678e54b5fb249 diff --git a/src/resources/radar/ai/bots/summary.ts b/src/resources/radar/ai/bots/summary.ts index 404b9608c9..99b9e854d7 100644 --- a/src/resources/radar/ai/bots/summary.ts +++ b/src/resources/radar/ai/bots/summary.ts @@ -35,58 +35,98 @@ export class Summary extends APIResource { } export interface SummaryUserAgentResponse { + /** + * Metadata for the results. + */ meta: SummaryUserAgentResponse.Meta; summary_0: Record; } export namespace SummaryUserAgentResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } diff --git a/src/resources/radar/ai/inference/summary.ts b/src/resources/radar/ai/inference/summary.ts index 6359bbd0dd..b1a85c84ff 100644 --- a/src/resources/radar/ai/inference/summary.ts +++ b/src/resources/radar/ai/inference/summary.ts @@ -57,114 +57,194 @@ export class Summary extends APIResource { } export interface SummaryModelResponse { + /** + * Metadata for the results. + */ meta: SummaryModelResponse.Meta; summary_0: Record; } export namespace SummaryModelResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryTaskResponse { + /** + * Metadata for the results. + */ meta: SummaryTaskResponse.Meta; summary_0: Record; } export namespace SummaryTaskResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } diff --git a/src/resources/radar/ai/inference/timeseries-groups/summary.ts b/src/resources/radar/ai/inference/timeseries-groups/summary.ts index 7b76a12fd2..f620ae048c 100644 --- a/src/resources/radar/ai/inference/timeseries-groups/summary.ts +++ b/src/resources/radar/ai/inference/timeseries-groups/summary.ts @@ -59,30 +59,220 @@ export class Summary extends APIResource { } export interface SummaryModelResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: SummaryModelResponse.Meta; serie_0: SummaryModelResponse.Serie0; } export namespace SummaryModelResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } export interface SummaryTaskResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: SummaryTaskResponse.Meta; serie_0: SummaryTaskResponse.Serie0; } export namespace SummaryTaskResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } diff --git a/src/resources/radar/ai/timeseries-groups.ts b/src/resources/radar/ai/timeseries-groups.ts index 87d2f8539a..530ecf9f87 100644 --- a/src/resources/radar/ai/timeseries-groups.ts +++ b/src/resources/radar/ai/timeseries-groups.ts @@ -36,16 +36,111 @@ export class TimeseriesGroups extends APIResource { } export interface TimeseriesGroupUserAgentResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupUserAgentResponse.Meta; serie_0: TimeseriesGroupUserAgentResponse.Serie0; } export namespace TimeseriesGroupUserAgentResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } diff --git a/src/resources/radar/annotations/outages.ts b/src/resources/radar/annotations/outages.ts index f8c0beefe9..aa96529ac2 100644 --- a/src/resources/radar/annotations/outages.ts +++ b/src/resources/radar/annotations/outages.ts @@ -132,6 +132,9 @@ export namespace OutageLocationsResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/as112/as112.ts b/src/resources/radar/as112/as112.ts index 6a8db9766f..0361290e55 100644 --- a/src/resources/radar/as112/as112.ts +++ b/src/resources/radar/as112/as112.ts @@ -84,64 +84,108 @@ export class AS112 extends APIResource { } export interface AS112TimeseriesResponse { + /** + * Metadata for the results. + */ meta: AS112TimeseriesResponse.Meta; - serie_0: AS112TimeseriesResponse.Serie0; + [k: string]: + | AS112TimeseriesResponse.unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb + | AS112TimeseriesResponse.Meta + | undefined; } export namespace AS112TimeseriesResponse { + /** + * Metadata for the results. + */ export interface Meta { - aggInterval: string; + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } - } - export interface Serie0 { - timestamps: Array; + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; - values: Array; + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } diff --git a/src/resources/radar/as112/summary.ts b/src/resources/radar/as112/summary.ts index ace394d9fc..a139a62867 100644 --- a/src/resources/radar/as112/summary.ts +++ b/src/resources/radar/as112/summary.ts @@ -169,366 +169,636 @@ export class Summary extends APIResource { } export interface SummaryDNSSECResponse { + /** + * Metadata for the results. + */ meta: SummaryDNSSECResponse.Meta; summary_0: SummaryDNSSECResponse.Summary0; } export namespace SummaryDNSSECResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ NOT_SUPPORTED: string; + /** + * A numeric string. + */ SUPPORTED: string; } } export interface SummaryEdnsResponse { + /** + * Metadata for the results. + */ meta: SummaryEdnsResponse.Meta; summary_0: SummaryEdnsResponse.Summary0; } export namespace SummaryEdnsResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ NOT_SUPPORTED: string; + /** + * A numeric string. + */ SUPPORTED: string; } } export interface SummaryIPVersionResponse { + /** + * Metadata for the results. + */ meta: SummaryIPVersionResponse.Meta; summary_0: SummaryIPVersionResponse.Summary0; } export namespace SummaryIPVersionResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ IPv4: string; + /** + * A numeric string. + */ IPv6: string; } } export interface SummaryProtocolResponse { + /** + * Metadata for the results. + */ meta: SummaryProtocolResponse.Meta; summary_0: SummaryProtocolResponse.Summary0; } export namespace SummaryProtocolResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ HTTPS: string; + /** + * A numeric string. + */ TCP: string; + /** + * A numeric string. + */ TLS: string; + /** + * A numeric string. + */ UDP: string; } } export interface SummaryQueryTypeResponse { + /** + * Metadata for the results. + */ meta: SummaryQueryTypeResponse.Meta; summary_0: Record; } export namespace SummaryQueryTypeResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryResponseCodesResponse { + /** + * Metadata for the results. + */ meta: SummaryResponseCodesResponse.Meta; summary_0: Record; } export namespace SummaryResponseCodesResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } diff --git a/src/resources/radar/as112/timeseries-groups.ts b/src/resources/radar/as112/timeseries-groups.ts index af9bdd0068..450008b4db 100644 --- a/src/resources/radar/as112/timeseries-groups.ts +++ b/src/resources/radar/as112/timeseries-groups.ts @@ -182,12 +182,107 @@ export class TimeseriesGroups extends APIResource { } export interface TimeseriesGroupDNSSECResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupDNSSECResponse.Meta; serie_0: TimeseriesGroupDNSSECResponse.Serie0; } export namespace TimeseriesGroupDNSSECResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { NOT_SUPPORTED: Array; @@ -196,12 +291,107 @@ export namespace TimeseriesGroupDNSSECResponse { } export interface TimeseriesGroupEdnsResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupEdnsResponse.Meta; serie_0: TimeseriesGroupEdnsResponse.Serie0; } export namespace TimeseriesGroupEdnsResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { NOT_SUPPORTED: Array; @@ -210,12 +400,107 @@ export namespace TimeseriesGroupEdnsResponse { } export interface TimeseriesGroupIPVersionResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupIPVersionResponse.Meta; serie_0: TimeseriesGroupIPVersionResponse.Serie0; } export namespace TimeseriesGroupIPVersionResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { IPv4: Array; @@ -224,12 +509,107 @@ export namespace TimeseriesGroupIPVersionResponse { } export interface TimeseriesGroupProtocolResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupProtocolResponse.Meta; serie_0: TimeseriesGroupProtocolResponse.Serie0; } export namespace TimeseriesGroupProtocolResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { HTTPS: Array; @@ -242,30 +622,220 @@ export namespace TimeseriesGroupProtocolResponse { } export interface TimeseriesGroupQueryTypeResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupQueryTypeResponse.Meta; serie_0: TimeseriesGroupQueryTypeResponse.Serie0; } export namespace TimeseriesGroupQueryTypeResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } export interface TimeseriesGroupResponseCodesResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupResponseCodesResponse.Meta; serie_0: TimeseriesGroupResponseCodesResponse.Serie0; } export namespace TimeseriesGroupResponseCodesResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } diff --git a/src/resources/radar/as112/top.ts b/src/resources/radar/as112/top.ts index 02b4697dd5..e0aa3c2e79 100644 --- a/src/resources/radar/as112/top.ts +++ b/src/resources/radar/as112/top.ts @@ -131,56 +131,98 @@ export class Top extends APIResource { } export interface TopDNSSECResponse { + /** + * Metadata for the results. + */ meta: TopDNSSECResponse.Meta; top_0: Array; } export namespace TopDNSSECResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -188,61 +230,106 @@ export namespace TopDNSSECResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } export interface TopEdnsResponse { + /** + * Metadata for the results. + */ meta: TopEdnsResponse.Meta; top_0: Array; } export namespace TopEdnsResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -250,61 +337,106 @@ export namespace TopEdnsResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } export interface TopIPVersionResponse { + /** + * Metadata for the results. + */ meta: TopIPVersionResponse.Meta; top_0: Array; } export namespace TopIPVersionResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -312,61 +444,106 @@ export namespace TopIPVersionResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } export interface TopLocationsResponse { + /** + * Metadata for the results. + */ meta: TopLocationsResponse.Meta; top_0: Array; } export namespace TopLocationsResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -374,6 +551,9 @@ export namespace TopLocationsResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/attacks/layer3/layer3.ts b/src/resources/radar/attacks/layer3/layer3.ts index 05eafbb521..0e5e8e1c4e 100644 --- a/src/resources/radar/attacks/layer3/layer3.ts +++ b/src/resources/radar/attacks/layer3/layer3.ts @@ -87,16 +87,108 @@ export class Layer3 extends APIResource { } export interface Layer3TimeseriesResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: Layer3TimeseriesResponse.Meta; - serie_0: Layer3TimeseriesResponse.Serie0; + [k: string]: + | Layer3TimeseriesResponse.unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb + | Layer3TimeseriesResponse.Meta + | undefined; } export namespace Layer3TimeseriesResponse { - export interface Serie0 { - timestamps: Array; + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } - values: Array; + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } diff --git a/src/resources/radar/attacks/layer3/summary.ts b/src/resources/radar/attacks/layer3/summary.ts index 8d2341cd50..ca010a7c18 100644 --- a/src/resources/radar/attacks/layer3/summary.ts +++ b/src/resources/radar/attacks/layer3/summary.ts @@ -200,436 +200,767 @@ export class Summary extends APIResource { } export interface SummaryBitrateResponse { + /** + * Metadata for the results. + */ meta: SummaryBitrateResponse.Meta; summary_0: SummaryBitrateResponse.Summary0; } export namespace SummaryBitrateResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ _1_GBPS_TO_10_GBPS: string; + /** + * A numeric string. + */ _10_GBPS_TO_100_GBPS: string; + /** + * A numeric string. + */ _500_MBPS_TO_1_GBPS: string; + /** + * A numeric string. + */ OVER_100_GBPS: string; + /** + * A numeric string. + */ UNDER_500_MBPS: string; } } export interface SummaryDurationResponse { + /** + * Metadata for the results. + */ meta: SummaryDurationResponse.Meta; summary_0: SummaryDurationResponse.Summary0; } export namespace SummaryDurationResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ _1_HOUR_TO_3_HOURS: string; + /** + * A numeric string. + */ _10_MINS_TO_20_MINS: string; + /** + * A numeric string. + */ _20_MINS_TO_40_MINS: string; + /** + * A numeric string. + */ _40_MINS_TO_1_HOUR: string; + /** + * A numeric string. + */ OVER_3_HOURS: string; + /** + * A numeric string. + */ UNDER_10_MINS: string; } } export interface SummaryIndustryResponse { + /** + * Metadata for the results. + */ meta: SummaryIndustryResponse.Meta; summary_0: Record; } export namespace SummaryIndustryResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryIPVersionResponse { + /** + * Metadata for the results. + */ meta: SummaryIPVersionResponse.Meta; summary_0: SummaryIPVersionResponse.Summary0; } export namespace SummaryIPVersionResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ IPv4: string; + /** + * A numeric string. + */ IPv6: string; } } export interface SummaryProtocolResponse { + /** + * Metadata for the results. + */ meta: SummaryProtocolResponse.Meta; summary_0: SummaryProtocolResponse.Summary0; } export namespace SummaryProtocolResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ GRE: string; + /** + * A numeric string. + */ ICMP: string; + /** + * A numeric string. + */ TCP: string; + /** + * A numeric string. + */ UDP: string; } } export interface SummaryVectorResponse { + /** + * Metadata for the results. + */ meta: SummaryVectorResponse.Meta; summary_0: Record; } export namespace SummaryVectorResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryVerticalResponse { + /** + * Metadata for the results. + */ meta: SummaryVerticalResponse.Meta; summary_0: Record; } export namespace SummaryVerticalResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } diff --git a/src/resources/radar/attacks/layer3/timeseries-groups.ts b/src/resources/radar/attacks/layer3/timeseries-groups.ts index 2c790af065..3842c4f2a7 100644 --- a/src/resources/radar/attacks/layer3/timeseries-groups.ts +++ b/src/resources/radar/attacks/layer3/timeseries-groups.ts @@ -210,12 +210,107 @@ export class TimeseriesGroups extends APIResource { } export interface TimeseriesGroupBitrateResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupBitrateResponse.Meta; serie_0: TimeseriesGroupBitrateResponse.Serie0; } export namespace TimeseriesGroupBitrateResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { _1_GBPS_TO_10_GBPS: Array; @@ -232,12 +327,107 @@ export namespace TimeseriesGroupBitrateResponse { } export interface TimeseriesGroupDurationResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupDurationResponse.Meta; serie_0: TimeseriesGroupDurationResponse.Serie0; } export namespace TimeseriesGroupDurationResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { _1_HOUR_TO_3_HOURS: Array; @@ -256,26 +446,216 @@ export namespace TimeseriesGroupDurationResponse { } export interface TimeseriesGroupIndustryResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupIndustryResponse.Meta; serie_0: TimeseriesGroupIndustryResponse.Serie0; } export namespace TimeseriesGroupIndustryResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } export interface TimeseriesGroupIPVersionResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupIPVersionResponse.Meta; serie_0: TimeseriesGroupIPVersionResponse.Serie0; } export namespace TimeseriesGroupIPVersionResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { IPv4: Array; @@ -286,12 +666,107 @@ export namespace TimeseriesGroupIPVersionResponse { } export interface TimeseriesGroupProtocolResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupProtocolResponse.Meta; serie_0: TimeseriesGroupProtocolResponse.Serie0; } export namespace TimeseriesGroupProtocolResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { GRE: Array; @@ -306,30 +781,220 @@ export namespace TimeseriesGroupProtocolResponse { } export interface TimeseriesGroupVectorResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupVectorResponse.Meta; serie_0: TimeseriesGroupVectorResponse.Serie0; } export namespace TimeseriesGroupVectorResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } export interface TimeseriesGroupVerticalResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupVerticalResponse.Meta; serie_0: TimeseriesGroupVerticalResponse.Serie0; } export namespace TimeseriesGroupVerticalResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } diff --git a/src/resources/radar/attacks/layer3/top/locations.ts b/src/resources/radar/attacks/layer3/top/locations.ts index a0d1f41f6c..d2e1acbb5a 100644 --- a/src/resources/radar/attacks/layer3/top/locations.ts +++ b/src/resources/radar/attacks/layer3/top/locations.ts @@ -65,56 +65,98 @@ export class Locations extends APIResource { } export interface LocationOriginResponse { + /** + * Metadata for the results. + */ meta: LocationOriginResponse.Meta; top_0: Array; } export namespace LocationOriginResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -129,56 +171,98 @@ export namespace LocationOriginResponse { } export interface LocationTargetResponse { + /** + * Metadata for the results. + */ meta: LocationTargetResponse.Meta; top_0: Array; } export namespace LocationTargetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { diff --git a/src/resources/radar/attacks/layer3/top/top.ts b/src/resources/radar/attacks/layer3/top/top.ts index 9da91d3f29..4078be87e4 100644 --- a/src/resources/radar/attacks/layer3/top/top.ts +++ b/src/resources/radar/attacks/layer3/top/top.ts @@ -97,56 +97,98 @@ export class Top extends APIResource { } export interface TopAttacksResponse { + /** + * Metadata for the results. + */ meta: TopAttacksResponse.Meta; top_0: Array; } export namespace TopAttacksResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -159,56 +201,98 @@ export namespace TopAttacksResponse { } export interface TopIndustryResponse { + /** + * Metadata for the results. + */ meta: TopIndustryResponse.Meta; top_0: Array; } export namespace TopIndustryResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -219,56 +303,98 @@ export namespace TopIndustryResponse { } export interface TopVerticalResponse { + /** + * Metadata for the results. + */ meta: TopVerticalResponse.Meta; top_0: Array; } export namespace TopVerticalResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { diff --git a/src/resources/radar/attacks/layer7/layer7.ts b/src/resources/radar/attacks/layer7/layer7.ts index 8b3ea3a9e2..8b01702461 100644 --- a/src/resources/radar/attacks/layer7/layer7.ts +++ b/src/resources/radar/attacks/layer7/layer7.ts @@ -87,58 +87,105 @@ export class Layer7 extends APIResource { } export interface Layer7TimeseriesResponse { + /** + * Metadata for the results. + */ meta: Layer7TimeseriesResponse.Meta; serie_0: Layer7TimeseriesResponse.Serie0; } export namespace Layer7TimeseriesResponse { + /** + * Metadata for the results. + */ export interface Meta { - aggInterval: string; + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Serie0 { diff --git a/src/resources/radar/attacks/layer7/summary.ts b/src/resources/radar/attacks/layer7/summary.ts index 176e607ced..fcd7f00760 100644 --- a/src/resources/radar/attacks/layer7/summary.ts +++ b/src/resources/radar/attacks/layer7/summary.ts @@ -207,114 +207,194 @@ export class Summary extends APIResource { } export interface SummaryHTTPMethodResponse { + /** + * Metadata for the results. + */ meta: SummaryHTTPMethodResponse.Meta; summary_0: Record; } export namespace SummaryHTTPMethodResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryHTTPVersionResponse { + /** + * Metadata for the results. + */ meta: SummaryHTTPVersionResponse.Meta; summary_0: SummaryHTTPVersionResponse.Summary0; } export namespace SummaryHTTPVersionResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { @@ -327,114 +407,194 @@ export namespace SummaryHTTPVersionResponse { } export interface SummaryIndustryResponse { + /** + * Metadata for the results. + */ meta: SummaryIndustryResponse.Meta; summary_0: Record; } export namespace SummaryIndustryResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryIPVersionResponse { + /** + * Metadata for the results. + */ meta: SummaryIPVersionResponse.Meta; summary_0: SummaryIPVersionResponse.Summary0; } export namespace SummaryIPVersionResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { @@ -445,170 +605,290 @@ export namespace SummaryIPVersionResponse { } export interface SummaryManagedRulesResponse { + /** + * Metadata for the results. + */ meta: SummaryManagedRulesResponse.Meta; summary_0: Record; } export namespace SummaryManagedRulesResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryMitigationProductResponse { + /** + * Metadata for the results. + */ meta: SummaryMitigationProductResponse.Meta; summary_0: Record; } export namespace SummaryMitigationProductResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryVerticalResponse { + /** + * Metadata for the results. + */ meta: SummaryVerticalResponse.Meta; summary_0: Record; } export namespace SummaryVerticalResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } diff --git a/src/resources/radar/attacks/layer7/timeseries-groups.ts b/src/resources/radar/attacks/layer7/timeseries-groups.ts index b8bb1a12d7..2a4cf78585 100644 --- a/src/resources/radar/attacks/layer7/timeseries-groups.ts +++ b/src/resources/radar/attacks/layer7/timeseries-groups.ts @@ -210,26 +210,216 @@ export class TimeseriesGroups extends APIResource { } export interface TimeseriesGroupHTTPMethodResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupHTTPMethodResponse.Meta; serie_0: TimeseriesGroupHTTPMethodResponse.Serie0; } export namespace TimeseriesGroupHTTPMethodResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } export interface TimeseriesGroupHTTPVersionResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupHTTPVersionResponse.Meta; serie_0: TimeseriesGroupHTTPVersionResponse.Serie0; } export namespace TimeseriesGroupHTTPVersionResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { 'HTTP/1.x': Array; @@ -242,26 +432,216 @@ export namespace TimeseriesGroupHTTPVersionResponse { } export interface TimeseriesGroupIndustryResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupIndustryResponse.Meta; serie_0: TimeseriesGroupIndustryResponse.Serie0; } export namespace TimeseriesGroupIndustryResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } export interface TimeseriesGroupIPVersionResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupIPVersionResponse.Meta; serie_0: TimeseriesGroupIPVersionResponse.Serie0; } export namespace TimeseriesGroupIPVersionResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { IPv4: Array; @@ -272,44 +652,329 @@ export namespace TimeseriesGroupIPVersionResponse { } export interface TimeseriesGroupManagedRulesResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupManagedRulesResponse.Meta; serie_0: TimeseriesGroupManagedRulesResponse.Serie0; } export namespace TimeseriesGroupManagedRulesResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } export interface TimeseriesGroupMitigationProductResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupMitigationProductResponse.Meta; serie_0: TimeseriesGroupMitigationProductResponse.Serie0; } export namespace TimeseriesGroupMitigationProductResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } export interface TimeseriesGroupVerticalResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupVerticalResponse.Meta; serie_0: TimeseriesGroupVerticalResponse.Serie0; } export namespace TimeseriesGroupVerticalResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } diff --git a/src/resources/radar/attacks/layer7/top/ases.ts b/src/resources/radar/attacks/layer7/top/ases.ts index 3a097ff825..63316eca89 100644 --- a/src/resources/radar/attacks/layer7/top/ases.ts +++ b/src/resources/radar/attacks/layer7/top/ases.ts @@ -34,56 +34,98 @@ export class Ases extends APIResource { } export interface AseOriginResponse { + /** + * Metadata for the results. + */ meta: AseOriginResponse.Meta; top_0: Array; } export namespace AseOriginResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { diff --git a/src/resources/radar/attacks/layer7/top/locations.ts b/src/resources/radar/attacks/layer7/top/locations.ts index a6a6042d14..daafe413ab 100644 --- a/src/resources/radar/attacks/layer7/top/locations.ts +++ b/src/resources/radar/attacks/layer7/top/locations.ts @@ -69,56 +69,98 @@ export class Locations extends APIResource { } export interface LocationOriginResponse { + /** + * Metadata for the results. + */ meta: LocationOriginResponse.Meta; top_0: Array; } export namespace LocationOriginResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -133,56 +175,98 @@ export namespace LocationOriginResponse { } export interface LocationTargetResponse { + /** + * Metadata for the results. + */ meta: LocationTargetResponse.Meta; top_0: Array; } export namespace LocationTargetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { diff --git a/src/resources/radar/attacks/layer7/top/top.ts b/src/resources/radar/attacks/layer7/top/top.ts index c113c127c1..864c188b03 100644 --- a/src/resources/radar/attacks/layer7/top/top.ts +++ b/src/resources/radar/attacks/layer7/top/top.ts @@ -101,56 +101,98 @@ export class Top extends APIResource { } export interface TopAttacksResponse { + /** + * Metadata for the results. + */ meta: TopAttacksResponse.Meta; top_0: Array; } export namespace TopAttacksResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -167,56 +209,98 @@ export namespace TopAttacksResponse { } export interface TopIndustryResponse { + /** + * Metadata for the results. + */ meta: TopIndustryResponse.Meta; top_0: Array; } export namespace TopIndustryResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -227,56 +311,98 @@ export namespace TopIndustryResponse { } export interface TopVerticalResponse { + /** + * Metadata for the results. + */ meta: TopVerticalResponse.Meta; top_0: Array; } export namespace TopVerticalResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { diff --git a/src/resources/radar/bgp/bgp.ts b/src/resources/radar/bgp/bgp.ts index 57c1b82553..de9a61d543 100644 --- a/src/resources/radar/bgp/bgp.ts +++ b/src/resources/radar/bgp/bgp.ts @@ -70,51 +70,60 @@ export interface BGPTimeseriesResponse { export namespace BGPTimeseriesResponse { export interface Meta { - aggInterval: string; + aggInterval: '15m' | '1h' | '1d' | '1w'; + + confidenceInfo: Meta.ConfidenceInfo; dateRange: Array; lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + 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/bgp/ips.ts b/src/resources/radar/bgp/ips.ts index 3e0c86841c..3f182cb92a 100644 --- a/src/resources/radar/bgp/ips.ts +++ b/src/resources/radar/bgp/ips.ts @@ -35,33 +35,160 @@ export class IPs extends APIResource { } export interface IPTimeseriesResponse { + /** + * Metadata for the results. + */ meta: IPTimeseriesResponse.Meta; - serie_174: IPTimeseriesResponse.Serie174; + serie_0: IPTimeseriesResponse.Serie0; } export namespace IPTimeseriesResponse { + /** + * Metadata for the results. + */ export interface Meta { - queries: Array; + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + + delay?: Meta.Delay; } export namespace Meta { - export interface Query { - dateRange: Query.DateRange; + export interface ConfidenceInfo { + annotations: Array; - entity: string; + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; } - export namespace Query { - export interface DateRange { + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + endTime: string; + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + + export interface Delay { + asn_data: Delay.ASNData; + + country_data: Delay.CountryData; + + healthy: boolean; + + nowTs: number; + } + + export namespace Delay { + export interface ASNData { + delaySecs: number; + + delayStr: string; + + healthy: boolean; + + latest: ASNData.Latest; + } + + export namespace ASNData { + export interface Latest { + entries_count: number; + + path: string; + + timestamp: number; + } + } + + export interface CountryData { + delaySecs: number; + + delayStr: string; + + healthy: boolean; + + latest: CountryData.Latest; + } + + export namespace CountryData { + export interface Latest { + count: number; + + timestamp: number; + } + } + } } - export interface Serie174 { + export interface Serie0 { ipv4: Array; ipv6: Array; diff --git a/src/resources/radar/bgp/routes.ts b/src/resources/radar/bgp/routes.ts index ee20848a31..6a67caeff7 100644 --- a/src/resources/radar/bgp/routes.ts +++ b/src/resources/radar/bgp/routes.ts @@ -78,8 +78,8 @@ export class Routes extends APIResource { } /** - * Retrieves realtime routes for prefixes using public realtime data collectors - * (RouteViews and RIPE RIS). + * Retrieves real-time BGP routes for a prefix, using public real-time data + * collectors (RouteViews and RIPE RIS). * * @example * ```ts @@ -322,7 +322,7 @@ export namespace RouteRealtimeResponse { collector: string; /** - * Latest realtime stream timestamp for this collector. + * Latest real-time stream timestamp for this collector. */ latest_realtime_ts: string; diff --git a/src/resources/radar/bgp/top/top.ts b/src/resources/radar/bgp/top/top.ts index ab5a853003..ab54d64d0e 100644 --- a/src/resources/radar/bgp/top/top.ts +++ b/src/resources/radar/bgp/top/top.ts @@ -62,6 +62,9 @@ export namespace TopPrefixesResponse { export interface Top0 { prefix: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/dns/dns.ts b/src/resources/radar/dns/dns.ts index 3ba72f8977..e0aada6e45 100644 --- a/src/resources/radar/dns/dns.ts +++ b/src/resources/radar/dns/dns.ts @@ -90,64 +90,108 @@ export class DNS extends APIResource { } export interface DNSTimeseriesResponse { + /** + * Metadata for the results. + */ meta: DNSTimeseriesResponse.Meta; - serie_0: DNSTimeseriesResponse.Serie0; + [k: string]: + | DNSTimeseriesResponse.unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb + | DNSTimeseriesResponse.Meta + | undefined; } export namespace DNSTimeseriesResponse { + /** + * Metadata for the results. + */ export interface Meta { - aggInterval: string; + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } - } - export interface Serie0 { - timestamps: Array; + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; - values: Array; + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } diff --git a/src/resources/radar/dns/summary.ts b/src/resources/radar/dns/summary.ts index 89007b2948..8e4822e1cf 100644 --- a/src/resources/radar/dns/summary.ts +++ b/src/resources/radar/dns/summary.ts @@ -281,627 +281,1102 @@ export class Summary extends APIResource { } export interface SummaryCacheHitResponse { + /** + * Metadata for the results. + */ meta: SummaryCacheHitResponse.Meta; summary_0: SummaryCacheHitResponse.Summary0; } export namespace SummaryCacheHitResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ NEGATIVE: string; + /** + * A numeric string. + */ POSITIVE: string; } } export interface SummaryDNSSECResponse { + /** + * Metadata for the results. + */ meta: SummaryDNSSECResponse.Meta; summary_0: SummaryDNSSECResponse.Summary0; } export namespace SummaryDNSSECResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ INSECURE: string; + /** + * A numeric string. + */ INVALID: string; + /** + * A numeric string. + */ OTHER: string; + /** + * A numeric string. + */ SECURE: string; } } export interface SummaryDNSSECAwareResponse { + /** + * Metadata for the results. + */ meta: SummaryDNSSECAwareResponse.Meta; summary_0: SummaryDNSSECAwareResponse.Summary0; } export namespace SummaryDNSSECAwareResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ NOT_SUPPORTED: string; + /** + * A numeric string. + */ SUPPORTED: string; } } export interface SummaryDNSSECE2EResponse { + /** + * Metadata for the results. + */ meta: SummaryDNSSECE2EResponse.Meta; summary_0: SummaryDNSSECE2EResponse.Summary0; } export namespace SummaryDNSSECE2EResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ NEGATIVE: string; + /** + * A numeric string. + */ POSITIVE: string; } } export interface SummaryIPVersionResponse { + /** + * Metadata for the results. + */ meta: SummaryIPVersionResponse.Meta; summary_0: SummaryIPVersionResponse.Summary0; } export namespace SummaryIPVersionResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ IPv4: string; + /** + * A numeric string. + */ IPv6: string; } } export interface SummaryMatchingAnswerResponse { + /** + * Metadata for the results. + */ meta: SummaryMatchingAnswerResponse.Meta; summary_0: SummaryMatchingAnswerResponse.Summary0; } export namespace SummaryMatchingAnswerResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ NEGATIVE: string; + /** + * A numeric string. + */ POSITIVE: string; } } export interface SummaryProtocolResponse { + /** + * Metadata for the results. + */ meta: SummaryProtocolResponse.Meta; summary_0: SummaryProtocolResponse.Summary0; } export namespace SummaryProtocolResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ HTTPS: string; + /** + * A numeric string. + */ TCP: string; + /** + * A numeric string. + */ TLS: string; + /** + * A numeric string. + */ UDP: string; } } export interface SummaryQueryTypeResponse { + /** + * Metadata for the results. + */ meta: SummaryQueryTypeResponse.Meta; summary_0: Record; } export namespace SummaryQueryTypeResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryResponseCodeResponse { + /** + * Metadata for the results. + */ meta: SummaryResponseCodeResponse.Meta; summary_0: Record; } export namespace SummaryResponseCodeResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryResponseTTLResponse { + /** + * Metadata for the results. + */ meta: SummaryResponseTTLResponse.Meta; summary_0: SummaryResponseTTLResponse.Summary0; } export namespace SummaryResponseTTLResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ gt_15m_lte_1h: string; + /** + * A numeric string. + */ gt_1d_lte_1w: string; + /** + * A numeric string. + */ gt_1h_lte_1d: string; + /** + * A numeric string. + */ gt_1m_lte_5m: string; + /** + * A numeric string. + */ gt_1w: string; + /** + * A numeric string. + */ gt_5m_lte_15m: string; + /** + * A numeric string. + */ lte_1m: string; } } diff --git a/src/resources/radar/dns/timeseries-groups.ts b/src/resources/radar/dns/timeseries-groups.ts index 8f09832643..58965b42ff 100644 --- a/src/resources/radar/dns/timeseries-groups.ts +++ b/src/resources/radar/dns/timeseries-groups.ts @@ -294,12 +294,107 @@ export class TimeseriesGroups extends APIResource { } export interface TimeseriesGroupCacheHitResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupCacheHitResponse.Meta; serie_0: TimeseriesGroupCacheHitResponse.Serie0; } export namespace TimeseriesGroupCacheHitResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { NEGATIVE: Array; @@ -308,12 +403,107 @@ export namespace TimeseriesGroupCacheHitResponse { } export interface TimeseriesGroupDNSSECResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupDNSSECResponse.Meta; serie_0: TimeseriesGroupDNSSECResponse.Serie0; } export namespace TimeseriesGroupDNSSECResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { INSECURE: Array; @@ -326,12 +516,107 @@ export namespace TimeseriesGroupDNSSECResponse { } export interface TimeseriesGroupDNSSECAwareResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupDNSSECAwareResponse.Meta; serie_0: TimeseriesGroupDNSSECAwareResponse.Serie0; } export namespace TimeseriesGroupDNSSECAwareResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { NOT_SUPPORTED: Array; @@ -340,12 +625,107 @@ export namespace TimeseriesGroupDNSSECAwareResponse { } export interface TimeseriesGroupDNSSECE2EResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupDNSSECE2EResponse.Meta; serie_0: TimeseriesGroupDNSSECE2EResponse.Serie0; } export namespace TimeseriesGroupDNSSECE2EResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { NEGATIVE: Array; @@ -354,12 +734,107 @@ export namespace TimeseriesGroupDNSSECE2EResponse { } export interface TimeseriesGroupIPVersionResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupIPVersionResponse.Meta; serie_0: TimeseriesGroupIPVersionResponse.Serie0; } export namespace TimeseriesGroupIPVersionResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { IPv4: Array; @@ -368,12 +843,107 @@ export namespace TimeseriesGroupIPVersionResponse { } export interface TimeseriesGroupMatchingAnswerResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupMatchingAnswerResponse.Meta; serie_0: TimeseriesGroupMatchingAnswerResponse.Serie0; } export namespace TimeseriesGroupMatchingAnswerResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { NEGATIVE: Array; @@ -382,12 +952,107 @@ export namespace TimeseriesGroupMatchingAnswerResponse { } export interface TimeseriesGroupProtocolResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupProtocolResponse.Meta; serie_0: TimeseriesGroupProtocolResponse.Serie0; } export namespace TimeseriesGroupProtocolResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { HTTPS: Array; @@ -400,40 +1065,325 @@ export namespace TimeseriesGroupProtocolResponse { } export interface TimeseriesGroupQueryTypeResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupQueryTypeResponse.Meta; serie_0: TimeseriesGroupQueryTypeResponse.Serie0; } export namespace TimeseriesGroupQueryTypeResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } export interface TimeseriesGroupResponseCodeResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupResponseCodeResponse.Meta; serie_0: TimeseriesGroupResponseCodeResponse.Serie0; } export namespace TimeseriesGroupResponseCodeResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } export interface TimeseriesGroupResponseTTLResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupResponseTTLResponse.Meta; serie_0: TimeseriesGroupResponseTTLResponse.Serie0; } export namespace TimeseriesGroupResponseTTLResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { gt_15m_lte_1h: Array; diff --git a/src/resources/radar/dns/top.ts b/src/resources/radar/dns/top.ts index 74b0dc2469..e2a36e7632 100644 --- a/src/resources/radar/dns/top.ts +++ b/src/resources/radar/dns/top.ts @@ -56,54 +56,98 @@ export class Top extends APIResource { } export interface TopAsesResponse { + /** + * Metadata for the results. + */ meta: TopAsesResponse.Meta; top_0: Array; } export namespace TopAsesResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -111,59 +155,106 @@ export namespace TopAsesResponse { clientASName: string; + /** + * A numeric string. + */ value: string; } } export interface TopLocationsResponse { + /** + * Metadata for the results. + */ meta: TopLocationsResponse.Meta; top_0: Array; } export namespace TopLocationsResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -171,6 +262,9 @@ export namespace TopLocationsResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/email/email.ts b/src/resources/radar/email/email.ts index d6f3265d42..460238da53 100644 --- a/src/resources/radar/email/email.ts +++ b/src/resources/radar/email/email.ts @@ -20,10 +20,19 @@ export interface RadarEmailSeries { } export interface RadarEmailSummary { + /** + * A numeric string. + */ FAIL: string; + /** + * A numeric string. + */ NONE: string; + /** + * A numeric string. + */ PASS: string; } diff --git a/src/resources/radar/email/routing/summary.ts b/src/resources/radar/email/routing/summary.ts index 90ce8b5c67..bd02bc248a 100644 --- a/src/resources/radar/email/routing/summary.ts +++ b/src/resources/radar/email/routing/summary.ts @@ -169,350 +169,602 @@ export class Summary extends APIResource { } export interface SummaryARCResponse { + /** + * Metadata for the results. + */ meta: SummaryARCResponse.Meta; summary_0: EmailAPI.RadarEmailSummary; } export namespace SummaryARCResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryDKIMResponse { + /** + * Metadata for the results. + */ meta: SummaryDKIMResponse.Meta; summary_0: EmailAPI.RadarEmailSummary; } export namespace SummaryDKIMResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryDMARCResponse { + /** + * Metadata for the results. + */ meta: SummaryDMARCResponse.Meta; summary_0: EmailAPI.RadarEmailSummary; } export namespace SummaryDMARCResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryEncryptedResponse { + /** + * Metadata for the results. + */ meta: SummaryEncryptedResponse.Meta; summary_0: SummaryEncryptedResponse.Summary0; } export namespace SummaryEncryptedResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ ENCRYPTED: string; + /** + * A numeric string. + */ NOT_ENCRYPTED: string; } } export interface SummaryIPVersionResponse { + /** + * Metadata for the results. + */ meta: SummaryIPVersionResponse.Meta; summary_0: SummaryIPVersionResponse.Summary0; } export namespace SummaryIPVersionResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ IPv4: string; + /** + * A numeric string. + */ IPv6: string; } } export interface SummarySPFResponse { + /** + * Metadata for the results. + */ meta: SummarySPFResponse.Meta; summary_0: EmailAPI.RadarEmailSummary; } export namespace SummarySPFResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } diff --git a/src/resources/radar/email/routing/timeseries-groups.ts b/src/resources/radar/email/routing/timeseries-groups.ts index b4715ea006..a16b18aab4 100644 --- a/src/resources/radar/email/routing/timeseries-groups.ts +++ b/src/resources/radar/email/routing/timeseries-groups.ts @@ -187,30 +187,416 @@ export class TimeseriesGroups extends APIResource { } export interface TimeseriesGroupARCResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupARCResponse.Meta; serie_0: EmailAPI.RadarEmailSeries; } +export namespace TimeseriesGroupARCResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } +} + export interface TimeseriesGroupDKIMResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupDKIMResponse.Meta; serie_0: EmailAPI.RadarEmailSeries; } +export namespace TimeseriesGroupDKIMResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } +} + export interface TimeseriesGroupDMARCResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupDMARCResponse.Meta; serie_0: EmailAPI.RadarEmailSeries; } +export namespace TimeseriesGroupDMARCResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } +} + export interface TimeseriesGroupEncryptedResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupEncryptedResponse.Meta; serie_0: TimeseriesGroupEncryptedResponse.Serie0; } export namespace TimeseriesGroupEncryptedResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { ENCRYPTED: Array; @@ -219,12 +605,107 @@ export namespace TimeseriesGroupEncryptedResponse { } export interface TimeseriesGroupIPVersionResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupIPVersionResponse.Meta; serie_0: TimeseriesGroupIPVersionResponse.Serie0; } export namespace TimeseriesGroupIPVersionResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { IPv4: Array; @@ -233,11 +714,108 @@ export namespace TimeseriesGroupIPVersionResponse { } export interface TimeseriesGroupSPFResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupSPFResponse.Meta; serie_0: EmailAPI.RadarEmailSeries; } +export namespace TimeseriesGroupSPFResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } +} + export interface TimeseriesGroupARCParams { /** * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). diff --git a/src/resources/radar/email/security/summary.ts b/src/resources/radar/email/security/summary.ts index 2f358a89ed..c143f50f9b 100644 --- a/src/resources/radar/email/security/summary.ts +++ b/src/resources/radar/email/security/summary.ts @@ -249,543 +249,945 @@ export class Summary extends APIResource { } export interface SummaryARCResponse { + /** + * Metadata for the results. + */ meta: SummaryARCResponse.Meta; summary_0: EmailAPI.RadarEmailSummary; } export namespace SummaryARCResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryDKIMResponse { + /** + * Metadata for the results. + */ meta: SummaryDKIMResponse.Meta; summary_0: EmailAPI.RadarEmailSummary; } export namespace SummaryDKIMResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryDMARCResponse { + /** + * Metadata for the results. + */ meta: SummaryDMARCResponse.Meta; summary_0: EmailAPI.RadarEmailSummary; } export namespace SummaryDMARCResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummaryMaliciousResponse { + /** + * Metadata for the results. + */ meta: SummaryMaliciousResponse.Meta; summary_0: SummaryMaliciousResponse.Summary0; } export namespace SummaryMaliciousResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ MALICIOUS: string; + /** + * A numeric string. + */ NOT_MALICIOUS: string; } } export interface SummarySpamResponse { + /** + * Metadata for the results. + */ meta: SummarySpamResponse.Meta; summary_0: SummarySpamResponse.Summary0; } export namespace SummarySpamResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ NOT_SPAM: string; + /** + * A numeric string. + */ SPAM: string; } } export interface SummarySPFResponse { + /** + * Metadata for the results. + */ meta: SummarySPFResponse.Meta; summary_0: EmailAPI.RadarEmailSummary; } export namespace SummarySPFResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } export interface SummarySpoofResponse { + /** + * Metadata for the results. + */ meta: SummarySpoofResponse.Meta; summary_0: SummarySpoofResponse.Summary0; } export namespace SummarySpoofResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ NOT_SPOOF: string; + /** + * A numeric string. + */ SPOOF: string; } } export interface SummaryThreatCategoryResponse { + /** + * Metadata for the results. + */ meta: SummaryThreatCategoryResponse.Meta; summary_0: SummaryThreatCategoryResponse.Summary0; } export namespace SummaryThreatCategoryResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ BrandImpersonation: string; + /** + * A numeric string. + */ CredentialHarvester: string; + /** + * A numeric string. + */ IdentityDeception: string; + /** + * A numeric string. + */ Link: string; } } export interface SummaryTLSVersionResponse { + /** + * Metadata for the results. + */ meta: SummaryTLSVersionResponse.Meta; summary_0: SummaryTLSVersionResponse.Summary0; } export namespace SummaryTLSVersionResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ 'TLS 1.0': string; + /** + * A numeric string. + */ 'TLS 1.1': string; + /** + * A numeric string. + */ 'TLS 1.2': string; + /** + * A numeric string. + */ 'TLS 1.3': string; } } diff --git a/src/resources/radar/email/security/timeseries-groups.ts b/src/resources/radar/email/security/timeseries-groups.ts index 8a1a16bc05..fe8ff86cfb 100644 --- a/src/resources/radar/email/security/timeseries-groups.ts +++ b/src/resources/radar/email/security/timeseries-groups.ts @@ -275,30 +275,416 @@ export class TimeseriesGroups extends APIResource { } export interface TimeseriesGroupARCResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupARCResponse.Meta; serie_0: EmailAPI.RadarEmailSeries; } +export namespace TimeseriesGroupARCResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } +} + export interface TimeseriesGroupDKIMResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupDKIMResponse.Meta; serie_0: EmailAPI.RadarEmailSeries; } +export namespace TimeseriesGroupDKIMResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } +} + export interface TimeseriesGroupDMARCResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupDMARCResponse.Meta; serie_0: EmailAPI.RadarEmailSeries; } +export namespace TimeseriesGroupDMARCResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } +} + export interface TimeseriesGroupMaliciousResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupMaliciousResponse.Meta; serie_0: TimeseriesGroupMaliciousResponse.Serie0; } export namespace TimeseriesGroupMaliciousResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { MALICIOUS: Array; @@ -307,12 +693,107 @@ export namespace TimeseriesGroupMaliciousResponse { } export interface TimeseriesGroupSpamResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupSpamResponse.Meta; serie_0: TimeseriesGroupSpamResponse.Serie0; } export namespace TimeseriesGroupSpamResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { NOT_SPAM: Array; @@ -321,18 +802,210 @@ export namespace TimeseriesGroupSpamResponse { } export interface TimeseriesGroupSPFResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupSPFResponse.Meta; serie_0: EmailAPI.RadarEmailSeries; } +export namespace TimeseriesGroupSPFResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } +} + export interface TimeseriesGroupSpoofResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupSpoofResponse.Meta; serie_0: TimeseriesGroupSpoofResponse.Serie0; } export namespace TimeseriesGroupSpoofResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { NOT_SPOOF: Array; @@ -341,12 +1014,107 @@ export namespace TimeseriesGroupSpoofResponse { } export interface TimeseriesGroupThreatCategoryResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupThreatCategoryResponse.Meta; serie_0: TimeseriesGroupThreatCategoryResponse.Serie0; } export namespace TimeseriesGroupThreatCategoryResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { BrandImpersonation: Array; @@ -359,12 +1127,107 @@ export namespace TimeseriesGroupThreatCategoryResponse { } export interface TimeseriesGroupTLSVersionResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupTLSVersionResponse.Meta; serie_0: TimeseriesGroupTLSVersionResponse.Serie0; } export namespace TimeseriesGroupTLSVersionResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { 'TLS 1.0': Array; diff --git a/src/resources/radar/email/security/top/tlds/malicious.ts b/src/resources/radar/email/security/top/tlds/malicious.ts index a092742b86..e72205f833 100644 --- a/src/resources/radar/email/security/top/tlds/malicious.ts +++ b/src/resources/radar/email/security/top/tlds/malicious.ts @@ -43,61 +43,106 @@ export class Malicious extends APIResource { } export interface MaliciousGetResponse { + /** + * Metadata for the results. + */ meta: MaliciousGetResponse.Meta; top_0: Array; } export namespace MaliciousGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { name: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/email/security/top/tlds/spam.ts b/src/resources/radar/email/security/top/tlds/spam.ts index 1698f328f4..c7040f7e51 100644 --- a/src/resources/radar/email/security/top/tlds/spam.ts +++ b/src/resources/radar/email/security/top/tlds/spam.ts @@ -40,61 +40,106 @@ export class Spam extends APIResource { } export interface SpamGetResponse { + /** + * Metadata for the results. + */ meta: SpamGetResponse.Meta; top_0: Array; } export namespace SpamGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { name: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/email/security/top/tlds/spoof.ts b/src/resources/radar/email/security/top/tlds/spoof.ts index dabd7dd8bc..ae482bc339 100644 --- a/src/resources/radar/email/security/top/tlds/spoof.ts +++ b/src/resources/radar/email/security/top/tlds/spoof.ts @@ -40,61 +40,106 @@ export class Spoof extends APIResource { } export interface SpoofGetResponse { + /** + * Metadata for the results. + */ meta: SpoofGetResponse.Meta; top_0: Array; } export namespace SpoofGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { name: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/email/security/top/tlds/tlds.ts b/src/resources/radar/email/security/top/tlds/tlds.ts index 47b994b9d7..73c5768e00 100644 --- a/src/resources/radar/email/security/top/tlds/tlds.ts +++ b/src/resources/radar/email/security/top/tlds/tlds.ts @@ -42,61 +42,106 @@ export class Tlds extends APIResource { } export interface TldGetResponse { + /** + * Metadata for the results. + */ meta: TldGetResponse.Meta; top_0: Array; } export namespace TldGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { name: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/entities/locations.ts b/src/resources/radar/entities/locations.ts index 55974ea881..d0cbbf8980 100644 --- a/src/resources/radar/entities/locations.ts +++ b/src/resources/radar/entities/locations.ts @@ -72,8 +72,14 @@ export namespace LocationListResponse { export interface Location { alpha2: string; + /** + * A numeric string. + */ latitude: string; + /** + * A numeric string. + */ longitude: string; name: string; @@ -90,8 +96,14 @@ export namespace LocationGetResponse { confidenceLevel: number; + /** + * A numeric string. + */ latitude: string; + /** + * A numeric string. + */ longitude: string; name: string; diff --git a/src/resources/radar/http/ases/ases.ts b/src/resources/radar/http/ases/ases.ts index 7c7bdc1f56..2dda0fe4f4 100644 --- a/src/resources/radar/http/ases/ases.ts +++ b/src/resources/radar/http/ases/ases.ts @@ -56,56 +56,98 @@ export class Ases extends APIResource { } export interface AseGetResponse { + /** + * Metadata for the results. + */ meta: AseGetResponse.Meta; top_0: Array; } export namespace AseGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -113,6 +155,9 @@ export namespace AseGetResponse { clientASName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/ases/bot-class.ts b/src/resources/radar/http/ases/bot-class.ts index b8f0c8248b..3376f0b926 100644 --- a/src/resources/radar/http/ases/bot-class.ts +++ b/src/resources/radar/http/ases/bot-class.ts @@ -43,56 +43,98 @@ export class BotClass extends APIResource { } export interface BotClassGetResponse { + /** + * Metadata for the results. + */ meta: BotClassGetResponse.Meta; top_0: Array; } export namespace BotClassGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -100,6 +142,9 @@ export namespace BotClassGetResponse { clientASName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/ases/browser-family.ts b/src/resources/radar/http/ases/browser-family.ts index dead2ee212..da538b1deb 100644 --- a/src/resources/radar/http/ases/browser-family.ts +++ b/src/resources/radar/http/ases/browser-family.ts @@ -42,56 +42,98 @@ export class BrowserFamily extends APIResource { } export interface BrowserFamilyGetResponse { + /** + * Metadata for the results. + */ meta: BrowserFamilyGetResponse.Meta; top_0: Array; } export namespace BrowserFamilyGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -99,6 +141,9 @@ export namespace BrowserFamilyGetResponse { clientASName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/ases/device-type.ts b/src/resources/radar/http/ases/device-type.ts index 7e2fdee46a..f733b48e15 100644 --- a/src/resources/radar/http/ases/device-type.ts +++ b/src/resources/radar/http/ases/device-type.ts @@ -42,56 +42,98 @@ export class DeviceType extends APIResource { } export interface DeviceTypeGetResponse { + /** + * Metadata for the results. + */ meta: DeviceTypeGetResponse.Meta; top_0: Array; } export namespace DeviceTypeGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -99,6 +141,9 @@ export namespace DeviceTypeGetResponse { clientASName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/ases/http-method.ts b/src/resources/radar/http/ases/http-method.ts index 2d2f0dc563..98ecda721d 100644 --- a/src/resources/radar/http/ases/http-method.ts +++ b/src/resources/radar/http/ases/http-method.ts @@ -42,56 +42,98 @@ export class HTTPMethod extends APIResource { } export interface HTTPMethodGetResponse { + /** + * Metadata for the results. + */ meta: HTTPMethodGetResponse.Meta; top_0: Array; } export namespace HTTPMethodGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -99,6 +141,9 @@ export namespace HTTPMethodGetResponse { clientASName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/ases/http-protocol.ts b/src/resources/radar/http/ases/http-protocol.ts index cc1360b4dc..b424135d91 100644 --- a/src/resources/radar/http/ases/http-protocol.ts +++ b/src/resources/radar/http/ases/http-protocol.ts @@ -42,56 +42,98 @@ export class HTTPProtocol extends APIResource { } export interface HTTPProtocolGetResponse { + /** + * Metadata for the results. + */ meta: HTTPProtocolGetResponse.Meta; top_0: Array; } export namespace HTTPProtocolGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -99,6 +141,9 @@ export namespace HTTPProtocolGetResponse { clientASName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/ases/ip-version.ts b/src/resources/radar/http/ases/ip-version.ts index a8a18286af..ddd09c2b31 100644 --- a/src/resources/radar/http/ases/ip-version.ts +++ b/src/resources/radar/http/ases/ip-version.ts @@ -39,56 +39,98 @@ export class IPVersion extends APIResource { } export interface IPVersionGetResponse { + /** + * Metadata for the results. + */ meta: IPVersionGetResponse.Meta; top_0: Array; } export namespace IPVersionGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -96,6 +138,9 @@ export namespace IPVersionGetResponse { clientASName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/ases/os.ts b/src/resources/radar/http/ases/os.ts index 393e8d0dcc..297de98378 100644 --- a/src/resources/radar/http/ases/os.ts +++ b/src/resources/radar/http/ases/os.ts @@ -40,56 +40,98 @@ export class OS extends APIResource { } export interface OSGetResponse { + /** + * Metadata for the results. + */ meta: OSGetResponse.Meta; top_0: Array; } export namespace OSGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -97,6 +139,9 @@ export namespace OSGetResponse { clientASName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/ases/tls-version.ts b/src/resources/radar/http/ases/tls-version.ts index 8c70afc13e..c2647592cd 100644 --- a/src/resources/radar/http/ases/tls-version.ts +++ b/src/resources/radar/http/ases/tls-version.ts @@ -42,56 +42,98 @@ export class TLSVersion extends APIResource { } export interface TLSVersionGetResponse { + /** + * Metadata for the results. + */ meta: TLSVersionGetResponse.Meta; top_0: Array; } export namespace TLSVersionGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -99,6 +141,9 @@ export namespace TLSVersionGetResponse { clientASName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/http.ts b/src/resources/radar/http/http.ts index 777ea3b976..1c0d8ba0cb 100644 --- a/src/resources/radar/http/http.ts +++ b/src/resources/radar/http/http.ts @@ -98,64 +98,108 @@ export class HTTP extends APIResource { } export interface HTTPTimeseriesResponse { + /** + * Metadata for the results. + */ meta: HTTPTimeseriesResponse.Meta; - serie_0: HTTPTimeseriesResponse.Serie0; + [k: string]: + | HTTPTimeseriesResponse.unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb + | HTTPTimeseriesResponse.Meta + | undefined; } export namespace HTTPTimeseriesResponse { + /** + * Metadata for the results. + */ export interface Meta { - aggInterval: string; + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } - } - export interface Serie0 { - timestamps: Array; + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; - values: Array; + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } } diff --git a/src/resources/radar/http/locations/bot-class.ts b/src/resources/radar/http/locations/bot-class.ts index a300b19b78..0aee401b7f 100644 --- a/src/resources/radar/http/locations/bot-class.ts +++ b/src/resources/radar/http/locations/bot-class.ts @@ -43,56 +43,98 @@ export class BotClass extends APIResource { } export interface BotClassGetResponse { + /** + * Metadata for the results. + */ meta: BotClassGetResponse.Meta; top_0: Array; } export namespace BotClassGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -100,6 +142,9 @@ export namespace BotClassGetResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/locations/browser-family.ts b/src/resources/radar/http/locations/browser-family.ts index 38dc462efe..e0fd348305 100644 --- a/src/resources/radar/http/locations/browser-family.ts +++ b/src/resources/radar/http/locations/browser-family.ts @@ -43,56 +43,98 @@ export class BrowserFamily extends APIResource { } export interface BrowserFamilyGetResponse { + /** + * Metadata for the results. + */ meta: BrowserFamilyGetResponse.Meta; top_0: Array; } export namespace BrowserFamilyGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -100,6 +142,9 @@ export namespace BrowserFamilyGetResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/locations/device-type.ts b/src/resources/radar/http/locations/device-type.ts index 9b3d16ca03..e1b1938245 100644 --- a/src/resources/radar/http/locations/device-type.ts +++ b/src/resources/radar/http/locations/device-type.ts @@ -43,56 +43,98 @@ export class DeviceType extends APIResource { } export interface DeviceTypeGetResponse { + /** + * Metadata for the results. + */ meta: DeviceTypeGetResponse.Meta; top_0: Array; } export namespace DeviceTypeGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -100,6 +142,9 @@ export namespace DeviceTypeGetResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/locations/http-method.ts b/src/resources/radar/http/locations/http-method.ts index 74456f18b5..b4adcabc5b 100644 --- a/src/resources/radar/http/locations/http-method.ts +++ b/src/resources/radar/http/locations/http-method.ts @@ -43,56 +43,98 @@ export class HTTPMethod extends APIResource { } export interface HTTPMethodGetResponse { + /** + * Metadata for the results. + */ meta: HTTPMethodGetResponse.Meta; top_0: Array; } export namespace HTTPMethodGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -100,6 +142,9 @@ export namespace HTTPMethodGetResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/locations/http-protocol.ts b/src/resources/radar/http/locations/http-protocol.ts index d00c1bf686..3c5af51345 100644 --- a/src/resources/radar/http/locations/http-protocol.ts +++ b/src/resources/radar/http/locations/http-protocol.ts @@ -43,56 +43,98 @@ export class HTTPProtocol extends APIResource { } export interface HTTPProtocolGetResponse { + /** + * Metadata for the results. + */ meta: HTTPProtocolGetResponse.Meta; top_0: Array; } export namespace HTTPProtocolGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -100,6 +142,9 @@ export namespace HTTPProtocolGetResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/locations/ip-version.ts b/src/resources/radar/http/locations/ip-version.ts index 190f43c73f..bbacf021ab 100644 --- a/src/resources/radar/http/locations/ip-version.ts +++ b/src/resources/radar/http/locations/ip-version.ts @@ -38,56 +38,98 @@ export class IPVersion extends APIResource { } export interface IPVersionGetResponse { + /** + * Metadata for the results. + */ meta: IPVersionGetResponse.Meta; top_0: Array; } export namespace IPVersionGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -95,6 +137,9 @@ export namespace IPVersionGetResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/locations/locations.ts b/src/resources/radar/http/locations/locations.ts index 40eacb7819..fa8ba2d7ac 100644 --- a/src/resources/radar/http/locations/locations.ts +++ b/src/resources/radar/http/locations/locations.ts @@ -56,56 +56,98 @@ export class Locations extends APIResource { } export interface LocationGetResponse { + /** + * Metadata for the results. + */ meta: LocationGetResponse.Meta; top_0: Array; } export namespace LocationGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -113,6 +155,9 @@ export namespace LocationGetResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/locations/os.ts b/src/resources/radar/http/locations/os.ts index 8c9b4157a3..cd72b81062 100644 --- a/src/resources/radar/http/locations/os.ts +++ b/src/resources/radar/http/locations/os.ts @@ -42,56 +42,98 @@ export class OS extends APIResource { } export interface OSGetResponse { + /** + * Metadata for the results. + */ meta: OSGetResponse.Meta; top_0: Array; } export namespace OSGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -99,6 +141,9 @@ export namespace OSGetResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/locations/tls-version.ts b/src/resources/radar/http/locations/tls-version.ts index 0d1ec78207..95bb4a9e90 100644 --- a/src/resources/radar/http/locations/tls-version.ts +++ b/src/resources/radar/http/locations/tls-version.ts @@ -44,56 +44,98 @@ export class TLSVersion extends APIResource { } export interface TLSVersionGetResponse { + /** + * Metadata for the results. + */ meta: TLSVersionGetResponse.Meta; top_0: Array; } export namespace TLSVersionGetResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -101,6 +143,9 @@ export namespace TLSVersionGetResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/http/summary.ts b/src/resources/radar/http/summary.ts index f481baee36..88ef498df9 100644 --- a/src/resources/radar/http/summary.ts +++ b/src/resources/radar/http/summary.ts @@ -231,507 +231,890 @@ export class Summary extends APIResource { } export interface SummaryBotClassResponse { + /** + * Metadata for the results. + */ meta: SummaryBotClassResponse.Meta; summary_0: SummaryBotClassResponse.Summary0; } export namespace SummaryBotClassResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ bot: string; + /** + * A numeric string. + */ human: string; } } export interface SummaryDeviceTypeResponse { + /** + * Metadata for the results. + */ meta: SummaryDeviceTypeResponse.Meta; summary_0: SummaryDeviceTypeResponse.Summary0; } export namespace SummaryDeviceTypeResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ desktop: string; + /** + * A numeric string. + */ mobile: string; + /** + * A numeric string. + */ other: string; } } export interface SummaryHTTPProtocolResponse { + /** + * Metadata for the results. + */ meta: SummaryHTTPProtocolResponse.Meta; summary_0: SummaryHTTPProtocolResponse.Summary0; } export namespace SummaryHTTPProtocolResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ http: string; + /** + * A numeric string. + */ https: string; } } export interface SummaryHTTPVersionResponse { + /** + * Metadata for the results. + */ meta: SummaryHTTPVersionResponse.Meta; summary_0: SummaryHTTPVersionResponse.Summary0; } export namespace SummaryHTTPVersionResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ 'HTTP/1.x': string; + /** + * A numeric string. + */ 'HTTP/2': string; + /** + * A numeric string. + */ 'HTTP/3': string; } } export interface SummaryIPVersionResponse { + /** + * Metadata for the results. + */ meta: SummaryIPVersionResponse.Meta; summary_0: SummaryIPVersionResponse.Summary0; } export namespace SummaryIPVersionResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ IPv4: string; + /** + * A numeric string. + */ IPv6: string; } } export interface SummaryOSResponse { + /** + * Metadata for the results. + */ meta: SummaryOSResponse.Meta; summary_0: SummaryOSResponse.Summary0; } export namespace SummaryOSResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ ANDROID: string; + /** + * A numeric string. + */ IOS: string; } } export interface SummaryPostQuantumResponse { + /** + * Metadata for the results. + */ meta: SummaryPostQuantumResponse.Meta; summary_0: SummaryPostQuantumResponse.Summary0; } export namespace SummaryPostQuantumResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ NOT_SUPPORTED: string; + /** + * A numeric string. + */ SUPPORTED: string; } } export interface SummaryTLSVersionResponse { + /** + * Metadata for the results. + */ meta: SummaryTLSVersionResponse.Meta; summary_0: SummaryTLSVersionResponse.Summary0; } export namespace SummaryTLSVersionResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ 'TLS 1.0': string; + /** + * A numeric string. + */ 'TLS 1.1': string; + /** + * A numeric string. + */ 'TLS 1.2': string; + /** + * A numeric string. + */ 'TLS 1.3': string; + /** + * A numeric string. + */ 'TLS QUIC': string; } } diff --git a/src/resources/radar/http/timeseries-groups.ts b/src/resources/radar/http/timeseries-groups.ts index f186059c0e..0adf62e9e2 100644 --- a/src/resources/radar/http/timeseries-groups.ts +++ b/src/resources/radar/http/timeseries-groups.ts @@ -296,12 +296,107 @@ export class TimeseriesGroups extends APIResource { } export interface TimeseriesGroupBotClassResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupBotClassResponse.Meta; serie_0: TimeseriesGroupBotClassResponse.Serie0; } export namespace TimeseriesGroupBotClassResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { bot: Array; @@ -312,40 +407,325 @@ export namespace TimeseriesGroupBotClassResponse { } export interface TimeseriesGroupBrowserResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupBrowserResponse.Meta; serie_0: TimeseriesGroupBrowserResponse.Serie0; } export namespace TimeseriesGroupBrowserResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } export interface TimeseriesGroupBrowserFamilyResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupBrowserFamilyResponse.Meta; serie_0: TimeseriesGroupBrowserFamilyResponse.Serie0; } export namespace TimeseriesGroupBrowserFamilyResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } export interface TimeseriesGroupDeviceTypeResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupDeviceTypeResponse.Meta; serie_0: TimeseriesGroupDeviceTypeResponse.Serie0; } export namespace TimeseriesGroupDeviceTypeResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { desktop: Array; @@ -358,12 +738,107 @@ export namespace TimeseriesGroupDeviceTypeResponse { } export interface TimeseriesGroupHTTPProtocolResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupHTTPProtocolResponse.Meta; serie_0: TimeseriesGroupHTTPProtocolResponse.Serie0; } export namespace TimeseriesGroupHTTPProtocolResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { http: Array; @@ -374,12 +849,107 @@ export namespace TimeseriesGroupHTTPProtocolResponse { } export interface TimeseriesGroupHTTPVersionResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupHTTPVersionResponse.Meta; serie_0: TimeseriesGroupHTTPVersionResponse.Serie0; } export namespace TimeseriesGroupHTTPVersionResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { 'HTTP/1.x': Array; @@ -392,12 +962,107 @@ export namespace TimeseriesGroupHTTPVersionResponse { } export interface TimeseriesGroupIPVersionResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupIPVersionResponse.Meta; serie_0: TimeseriesGroupIPVersionResponse.Serie0; } export namespace TimeseriesGroupIPVersionResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { IPv4: Array; @@ -408,26 +1073,216 @@ export namespace TimeseriesGroupIPVersionResponse { } export interface TimeseriesGroupOSResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupOSResponse.Meta; serie_0: TimeseriesGroupOSResponse.Serie0; } export namespace TimeseriesGroupOSResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; - [k: string]: Array | undefined; + [k: string]: Array | Array | undefined; } } export interface TimeseriesGroupPostQuantumResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupPostQuantumResponse.Meta; serie_0: TimeseriesGroupPostQuantumResponse.Serie0; } export namespace TimeseriesGroupPostQuantumResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { NOT_SUPPORTED: Array; @@ -438,12 +1293,107 @@ export namespace TimeseriesGroupPostQuantumResponse { } export interface TimeseriesGroupTLSVersionResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupTLSVersionResponse.Meta; serie_0: TimeseriesGroupTLSVersionResponse.Serie0; } export namespace TimeseriesGroupTLSVersionResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { timestamps: Array; diff --git a/src/resources/radar/http/top.ts b/src/resources/radar/http/top.ts index 0f25b7f2bf..37b882ae35 100644 --- a/src/resources/radar/http/top.ts +++ b/src/resources/radar/http/top.ts @@ -59,56 +59,98 @@ export class Top extends APIResource { } export interface TopBrowserResponse { + /** + * Metadata for the results. + */ meta: TopBrowserResponse.Meta; top_0: Array; } export namespace TopBrowserResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -119,56 +161,98 @@ export namespace TopBrowserResponse { } export interface TopBrowserFamilyResponse { + /** + * Metadata for the results. + */ meta: TopBrowserFamilyResponse.Meta; top_0: Array; } export namespace TopBrowserFamilyResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { diff --git a/src/resources/radar/leaked-credentials/summary.ts b/src/resources/radar/leaked-credentials/summary.ts index 3d51d17157..a570570f53 100644 --- a/src/resources/radar/leaked-credentials/summary.ts +++ b/src/resources/radar/leaked-credentials/summary.ts @@ -66,125 +66,217 @@ export class Summary extends APIResource { } export interface SummaryBotClassResponse { + /** + * Metadata for the results. + */ meta: SummaryBotClassResponse.Meta; summary_0: SummaryBotClassResponse.Summary0; } export namespace SummaryBotClassResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ bot: string; + /** + * A numeric string. + */ human: string; } } export interface SummaryCompromisedResponse { + /** + * Metadata for the results. + */ meta: SummaryCompromisedResponse.Meta; summary_0: SummaryCompromisedResponse.Summary0; } export namespace SummaryCompromisedResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ CLEAN: string; + /** + * A numeric string. + */ COMPROMISED: string; } } diff --git a/src/resources/radar/leaked-credentials/timeseries-groups.ts b/src/resources/radar/leaked-credentials/timeseries-groups.ts index c160cce5d3..1fc9c2bdbc 100644 --- a/src/resources/radar/leaked-credentials/timeseries-groups.ts +++ b/src/resources/radar/leaked-credentials/timeseries-groups.ts @@ -67,12 +67,107 @@ export class TimeseriesGroups extends APIResource { } export interface TimeseriesGroupBotClassResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupBotClassResponse.Meta; serie_0: TimeseriesGroupBotClassResponse.Serie0; } export namespace TimeseriesGroupBotClassResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { bot: Array; @@ -83,12 +178,107 @@ export namespace TimeseriesGroupBotClassResponse { } export interface TimeseriesGroupCompromisedResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: TimeseriesGroupCompromisedResponse.Meta; serie_0: TimeseriesGroupCompromisedResponse.Serie0; } export namespace TimeseriesGroupCompromisedResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { CLEAN: Array; diff --git a/src/resources/radar/netflows/netflows.ts b/src/resources/radar/netflows/netflows.ts index 556bc5b87d..62d5be65d1 100644 --- a/src/resources/radar/netflows/netflows.ts +++ b/src/resources/radar/netflows/netflows.ts @@ -66,116 +66,213 @@ export class Netflows extends APIResource { } export interface NetflowSummaryResponse { + /** + * Metadata for the results. + */ meta: NetflowSummaryResponse.Meta; summary_0: NetflowSummaryResponse.Summary0; } export namespace NetflowSummaryResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { + /** + * A numeric string. + */ HTTP: string; + /** + * A numeric string. + */ OTHER: string; } } export interface NetflowTimeseriesResponse { + /** + * Metadata for the results. + */ meta: NetflowTimeseriesResponse.Meta; serie_0: NetflowTimeseriesResponse.Serie0; } export namespace NetflowTimeseriesResponse { + /** + * Metadata for the results. + */ export interface Meta { - aggInterval: string; + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Serie0 { diff --git a/src/resources/radar/netflows/top.ts b/src/resources/radar/netflows/top.ts index fd7f1e3ab3..45b25c50c4 100644 --- a/src/resources/radar/netflows/top.ts +++ b/src/resources/radar/netflows/top.ts @@ -56,29 +56,215 @@ export class Top extends APIResource { } export interface TopAsesResponse { + /** + * Metadata for the results. + */ + meta: TopAsesResponse.Meta; + top_0: Array; } export namespace TopAsesResponse { + /** + * Metadata for the results. + */ + export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Top0 { clientASN: number; clientASName: string; + /** + * A numeric string. + */ value: string; } } export interface TopLocationsResponse { + /** + * Metadata for the results. + */ + meta: TopLocationsResponse.Meta; + top_0: Array; } export namespace TopLocationsResponse { + /** + * Metadata for the results. + */ + export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Top0 { clientCountryAlpha2: string; clientCountryName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/quality/iqi.ts b/src/resources/radar/quality/iqi.ts index 5460d553c4..38f1752ac3 100644 --- a/src/resources/radar/quality/iqi.ts +++ b/src/resources/radar/quality/iqi.ts @@ -48,58 +48,98 @@ export class IQI extends APIResource { } export interface IQISummaryResponse { + /** + * Metadata for the results. + */ meta: IQISummaryResponse.Meta; summary_0: IQISummaryResponse.Summary0; } export namespace IQISummaryResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { @@ -112,12 +152,107 @@ export namespace IQISummaryResponse { } export interface IQITimeseriesGroupsResponse { - meta: unknown; + /** + * Metadata for the results. + */ + meta: IQITimeseriesGroupsResponse.Meta; serie_0: IQITimeseriesGroupsResponse.Serie0; } export namespace IQITimeseriesGroupsResponse { + /** + * Metadata for the results. + */ + export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } + } + export interface Serie0 { p25: Array; diff --git a/src/resources/radar/quality/speed/speed.ts b/src/resources/radar/quality/speed/speed.ts index d1aed30038..e3d4a92a0e 100644 --- a/src/resources/radar/quality/speed/speed.ts +++ b/src/resources/radar/quality/speed/speed.ts @@ -67,7 +67,10 @@ export class Speed extends APIResource { export interface SpeedHistogramResponse { histogram_0: SpeedHistogramResponse.Histogram0; - meta: unknown; + /** + * Metadata for the results. + */ + meta: SpeedHistogramResponse.Meta; } export namespace SpeedHistogramResponse { @@ -78,26 +81,80 @@ export namespace SpeedHistogramResponse { bucketMin: Array; } -} -export interface SpeedSummaryResponse { - meta: SpeedSummaryResponse.Meta; + /** + * Metadata for the results. + */ + export interface Meta { + /** + * The width for every bucket in the histogram. + */ + bucketSize: number; - summary_0: SpeedSummaryResponse.Summary0; -} + confidenceInfo: Meta.ConfidenceInfo | null; -export namespace SpeedSummaryResponse { - export interface Meta { dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + totalTests: Array; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + export interface DateRange { /** * Adjusted end of date range. @@ -110,29 +167,107 @@ export namespace SpeedSummaryResponse { startTime: string; } + export interface Unit { + name: string; + + value: string; + } + } +} + +export interface SpeedSummaryResponse { + /** + * Metadata for the results. + */ + meta: SpeedSummaryResponse.Meta; + + summary_0: SpeedSummaryResponse.Summary0; +} + +export namespace SpeedSummaryResponse { + /** + * Metadata for the results. + */ + export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; + } + + export namespace Meta { export interface ConfidenceInfo { - annotations?: Array; + annotations: Array; - level?: number; + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { diff --git a/src/resources/radar/quality/speed/top.ts b/src/resources/radar/quality/speed/top.ts index 14e270818b..3736dadd5b 100644 --- a/src/resources/radar/quality/speed/top.ts +++ b/src/resources/radar/quality/speed/top.ts @@ -59,56 +59,98 @@ export class Top extends APIResource { } export interface TopAsesResponse { + /** + * Metadata for the results. + */ meta: TopAsesResponse.Meta; top_0: Array; } export namespace TopAsesResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -135,56 +177,98 @@ export namespace TopAsesResponse { } export interface TopLocationsResponse { + /** + * Metadata for the results. + */ meta: TopLocationsResponse.Meta; top_0: Array; } export namespace TopLocationsResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { diff --git a/src/resources/radar/ranking/internet-services.ts b/src/resources/radar/ranking/internet-services.ts index ad6e2e0bfa..596a37e9cc 100644 --- a/src/resources/radar/ranking/internet-services.ts +++ b/src/resources/radar/ranking/internet-services.ts @@ -103,17 +103,88 @@ export namespace InternetServiceCategoriesResponse { } export interface InternetServiceTimeseriesGroupsResponse { + /** + * Metadata for the results. + */ meta: InternetServiceTimeseriesGroupsResponse.Meta; serie_0: InternetServiceTimeseriesGroupsResponse.Serie0; } export namespace InternetServiceTimeseriesGroupsResponse { + /** + * Metadata for the results. + */ export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + export interface DateRange { /** * Adjusted end of date range. @@ -125,6 +196,12 @@ export namespace InternetServiceTimeseriesGroupsResponse { */ startTime: string; } + + export interface Unit { + name: string; + + value: string; + } } export interface Serie0 { @@ -142,14 +219,84 @@ export interface InternetServiceTopResponse { export namespace InternetServiceTopResponse { export interface Meta { - top_0: Meta.Top0; + confidenceInfo: Meta.ConfidenceInfo | null; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface Top0 { - date: string; + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; - serviceCategory: string; + value: string; } } diff --git a/src/resources/radar/ranking/ranking.ts b/src/resources/radar/ranking/ranking.ts index 7e8b337033..47832a4a29 100644 --- a/src/resources/radar/ranking/ranking.ts +++ b/src/resources/radar/ranking/ranking.ts @@ -79,17 +79,88 @@ export class Ranking extends APIResource { } export interface RankingTimeseriesGroupsResponse { + /** + * Metadata for the results. + */ meta: RankingTimeseriesGroupsResponse.Meta; serie_0: RankingTimeseriesGroupsResponse.Serie0; } export namespace RankingTimeseriesGroupsResponse { + /** + * Metadata for the results. + */ export interface Meta { + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + export interface DateRange { /** * Adjusted end of date range. @@ -101,6 +172,12 @@ export namespace RankingTimeseriesGroupsResponse { */ startTime: string; } + + export interface Unit { + name: string; + + value: string; + } } export interface Serie0 { @@ -118,12 +195,84 @@ export interface RankingTopResponse { export namespace RankingTopResponse { export interface Meta { - top_0: Meta.Top0; + confidenceInfo: Meta.ConfidenceInfo | null; + + dateRange: Array; + + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface Top0 { - date: string; + export interface ConfidenceInfo { + annotations: Array; + + /** + * Provides an indication of how much confidence Cloudflare has in the data. + */ + level: number; + } + + export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ + export interface Annotation { + dataSource: string; + + description: string; + + endTime: string; + + eventType: string; + + /** + * Whether event is a single point in time or a time range. + */ + isInstantaneous: boolean; + + linkedUrl: string; + + startTime: string; + } + } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; } } diff --git a/src/resources/radar/robots-txt/top/top.ts b/src/resources/radar/robots-txt/top/top.ts index 66e93ab719..81bdb7759d 100644 --- a/src/resources/radar/robots-txt/top/top.ts +++ b/src/resources/radar/robots-txt/top/top.ts @@ -39,61 +39,93 @@ export class Top extends APIResource { } export interface TopDomainCategoriesResponse { + /** + * Metadata for the results. + */ meta: TopDomainCategoriesResponse.Meta; top_0: Array; } export namespace TopDomainCategoriesResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; - - units?: Array; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + 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 033e2af8e4..9481248fb0 100644 --- a/src/resources/radar/robots-txt/top/user-agents.ts +++ b/src/resources/radar/robots-txt/top/user-agents.ts @@ -36,61 +36,93 @@ export class UserAgents extends APIResource { } export interface UserAgentDirectiveResponse { + /** + * Metadata for the results. + */ meta: UserAgentDirectiveResponse.Meta; top_0: Array; } export namespace UserAgentDirectiveResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - normalization: string; - - confidenceInfo?: Meta.ConfidenceInfo; - - units?: Array; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + 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 0b57cbdfb6..b3bf18f362 100644 --- a/src/resources/radar/tcp-resets-timeouts.ts +++ b/src/resources/radar/tcp-resets-timeouts.ts @@ -66,54 +66,98 @@ export class TCPResetsTimeouts extends APIResource { } export interface TCPResetsTimeoutSummaryResponse { + /** + * Metadata for the results. + */ meta: TCPResetsTimeoutSummaryResponse.Meta; summary_0: TCPResetsTimeoutSummaryResponse.Summary0; } export namespace TCPResetsTimeoutSummaryResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Summary0 { @@ -149,58 +193,105 @@ export namespace TCPResetsTimeoutSummaryResponse { } export interface TCPResetsTimeoutTimeseriesGroupsResponse { + /** + * Metadata for the results. + */ meta: TCPResetsTimeoutTimeseriesGroupsResponse.Meta; serie_0: TCPResetsTimeoutTimeseriesGroupsResponse.Serie0; } export namespace TCPResetsTimeoutTimeseriesGroupsResponse { + /** + * Metadata for the results. + */ export interface Meta { - aggInterval: string; + /** + * Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). + * Refer to + * [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). + */ + aggInterval: 'FIFTEEN_MINUTES' | 'ONE_HOUR' | 'ONE_DAY' | 'ONE_WEEK' | 'ONE_MONTH'; + + confidenceInfo: Meta.ConfidenceInfo; dateRange: Array; + /** + * Timestamp of the last dataset update. + */ lastUpdated: string; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; + linkedUrl: string; - linkedUrl?: string; - - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Serie0 { diff --git a/src/resources/radar/traffic-anomalies/locations.ts b/src/resources/radar/traffic-anomalies/locations.ts index ffbdf3dafa..4c6b93dd0b 100644 --- a/src/resources/radar/traffic-anomalies/locations.ts +++ b/src/resources/radar/traffic-anomalies/locations.ts @@ -43,6 +43,9 @@ export namespace LocationGetResponse { clientCountryName: string; + /** + * A numeric string. + */ value: string; } } diff --git a/src/resources/radar/verified-bots/top.ts b/src/resources/radar/verified-bots/top.ts index d7a59063a4..87074e6b19 100644 --- a/src/resources/radar/verified-bots/top.ts +++ b/src/resources/radar/verified-bots/top.ts @@ -60,54 +60,98 @@ export class Top extends APIResource { } export interface TopBotsResponse { + /** + * Metadata for the results. + */ meta: TopBotsResponse.Meta; top_0: Array; } export namespace TopBotsResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { @@ -117,64 +161,114 @@ export namespace TopBotsResponse { botOwner: string; + /** + * A numeric string. + */ value: string; } } export interface TopCategoriesResponse { + /** + * Metadata for the results. + */ meta: TopCategoriesResponse.Meta; top_0: Array; } export namespace TopCategoriesResponse { + /** + * Metadata for the results. + */ export interface Meta { + confidenceInfo: Meta.ConfidenceInfo | null; + dateRange: Array; - confidenceInfo?: Meta.ConfidenceInfo; + /** + * Timestamp of the last dataset update. + */ + lastUpdated: string; + + /** + * Normalization method applied to the results. Refer to + * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + */ + normalization: + | 'PERCENTAGE' + | 'MIN0_MAX' + | 'MIN_MAX' + | 'RAW_VALUES' + | 'PERCENTAGE_CHANGE' + | 'ROLLING_AVERAGE' + | 'OVERLAPPED_PERCENTAGE'; + + /** + * Measurement units for the results. + */ + units: Array; } export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; + export interface ConfidenceInfo { + annotations: Array; /** - * Adjusted start of date range. + * Provides an indication of how much confidence Cloudflare has in the data. */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; + level: number; } export namespace ConfidenceInfo { + /** + * Annotation associated with the result (e.g. outage or other type of event). + */ export interface Annotation { dataSource: string; description: string; + endTime: string; + eventType: string; + /** + * Whether event is a single point in time or a time range. + */ isInstantaneous: boolean; - endTime?: string; - - linkedUrl?: string; + linkedUrl: string; - startTime?: string; + startTime: string; } } + + export interface DateRange { + /** + * Adjusted end of date range. + */ + endTime: string; + + /** + * Adjusted start of date range. + */ + startTime: string; + } + + export interface Unit { + name: string; + + value: string; + } } export interface Top0 { botCategory: string; + /** + * A numeric string. + */ value: string; } } From 75da28480f7f09ab71cda425c9da2f11708ab91b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 11:53:43 +0000 Subject: [PATCH 068/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index bf526f4a17..a4d5aa2820 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-67f1e6a1c9002584a0b224367460a0322a4a0591334123eb4630caf4c278e4b4.yml -openapi_spec_hash: 2f45d30f8bbb348c3105378c8ba3e96c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-886de1ba2a78a8fd9a42ae4ca6f3bfed907b3abbafeedf25fe272cb8377cd61a.yml +openapi_spec_hash: ba6ea25b587bd4e93b5527cd207ebd9c config_hash: f6c4a93139a93cfd16a678e54b5fb249 From d433515c4d4a5a3fec1ce2d6b522bee5c000f28a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 13:54:34 +0000 Subject: [PATCH 069/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a4d5aa2820..9b73ecf528 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-886de1ba2a78a8fd9a42ae4ca6f3bfed907b3abbafeedf25fe272cb8377cd61a.yml -openapi_spec_hash: ba6ea25b587bd4e93b5527cd207ebd9c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-053be92c0b364f83e26f99afdc45ec5cd0b8c0c4e497241475707183abc61d20.yml +openapi_spec_hash: d4112c72ead09ac26b1c60c822ac468e config_hash: f6c4a93139a93cfd16a678e54b5fb249 From 1f7b5d402aa4dc0af54eb9321c5bbdd89f232b9e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 15:07:01 +0000 Subject: [PATCH 070/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9b73ecf528..2c806b8cb6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-053be92c0b364f83e26f99afdc45ec5cd0b8c0c4e497241475707183abc61d20.yml -openapi_spec_hash: d4112c72ead09ac26b1c60c822ac468e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d07a6328d3fe8a48535ca11d064a75745a79c7968c3d059284a6ea3b8f1f534b.yml +openapi_spec_hash: d98f2b07676b8cb98628776e65bf9f91 config_hash: f6c4a93139a93cfd16a678e54b5fb249 From 2bbd93ce7ab1a0ca7bb7119bc0e1b0945ec6147d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 15:25:12 +0000 Subject: [PATCH 071/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2c806b8cb6..1378e53fe7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d07a6328d3fe8a48535ca11d064a75745a79c7968c3d059284a6ea3b8f1f534b.yml -openapi_spec_hash: d98f2b07676b8cb98628776e65bf9f91 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1f49df4d8a7f775cdca0044a946f1d28f8d276e82e443b856a430ddaad809d20.yml +openapi_spec_hash: 6b84a57ef92b8257081b32a496821094 config_hash: f6c4a93139a93cfd16a678e54b5fb249 From cccb606007e5fb4d982c92a1c6d6c89a5e73398b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 04:38:07 +0000 Subject: [PATCH 072/366] feat(infrastructure_targets): swap DELETE handler to new endpoint --- .stats.yml | 4 +- api.md | 32 ++- .../cloudforce-one/threat-events/datasets.ts | 235 +---------------- .../threat-events/datasets/datasets.ts | 248 ++++++++++++++++++ .../threat-events/datasets/health.ts | 53 ++++ .../threat-events/datasets/index.ts | 16 ++ .../cloudforce-one/threat-events/index.ts | 2 +- .../threat-events/threat-events.ts | 28 +- .../access/infrastructure/targets.ts | 17 +- .../{ => datasets}/datasets.test.ts | 0 .../threat-events/datasets/health.test.ts | 31 +++ .../access/infrastructure/targets.test.ts | 2 - 12 files changed, 391 insertions(+), 277 deletions(-) create mode 100644 src/resources/cloudforce-one/threat-events/datasets/datasets.ts create mode 100644 src/resources/cloudforce-one/threat-events/datasets/health.ts create mode 100644 src/resources/cloudforce-one/threat-events/datasets/index.ts rename tests/api-resources/cloudforce-one/threat-events/{ => datasets}/datasets.test.ts (100%) create mode 100644 tests/api-resources/cloudforce-one/threat-events/datasets/health.test.ts diff --git a/.stats.yml b/.stats.yml index 1378e53fe7..d196fcda94 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 1741 +configured_endpoints: 1742 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1f49df4d8a7f775cdca0044a946f1d28f8d276e82e443b856a430ddaad809d20.yml openapi_spec_hash: 6b84a57ef92b8257081b32a496821094 -config_hash: f6c4a93139a93cfd16a678e54b5fb249 +config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 diff --git a/api.md b/api.md index de14550376..3cd6e90bf6 100644 --- a/api.md +++ b/api.md @@ -4935,7 +4935,7 @@ Methods: - client.zeroTrust.access.infrastructure.targets.update(targetId, { ...params }) -> TargetUpdateResponse - client.zeroTrust.access.infrastructure.targets.list({ ...params }) -> TargetListResponsesV4PagePaginationArray - client.zeroTrust.access.infrastructure.targets.delete(targetId, { ...params }) -> void -- client.zeroTrust.access.infrastructure.targets.bulkDelete({ ...params }) -> void +- client.zeroTrust.access.infrastructure.targets.bulkDelete({ ...params }) -> void - client.zeroTrust.access.infrastructure.targets.bulkUpdate([ ...body ]) -> TargetBulkUpdateResponsesSinglePage - client.zeroTrust.access.infrastructure.targets.get(targetId, { ...params }) -> TargetGetResponse @@ -7795,19 +7795,29 @@ Methods: Types: -- DatasetCreateResponse -- DatasetListResponse -- DatasetEditResponse -- DatasetGetResponse -- DatasetRawResponse +- DatasetCreateResponse +- DatasetListResponse +- DatasetEditResponse +- DatasetGetResponse +- DatasetRawResponse Methods: -- client.cloudforceOne.threatEvents.datasets.create({ ...params }) -> DatasetCreateResponse -- client.cloudforceOne.threatEvents.datasets.list({ ...params }) -> DatasetListResponse -- client.cloudforceOne.threatEvents.datasets.edit(datasetId, { ...params }) -> DatasetEditResponse -- client.cloudforceOne.threatEvents.datasets.get(datasetId, { ...params }) -> DatasetGetResponse -- client.cloudforceOne.threatEvents.datasets.raw(datasetId, eventId, { ...params }) -> DatasetRawResponse +- client.cloudforceOne.threatEvents.datasets.create({ ...params }) -> DatasetCreateResponse +- client.cloudforceOne.threatEvents.datasets.list({ ...params }) -> DatasetListResponse +- client.cloudforceOne.threatEvents.datasets.edit(datasetId, { ...params }) -> DatasetEditResponse +- client.cloudforceOne.threatEvents.datasets.get(datasetId, { ...params }) -> DatasetGetResponse +- client.cloudforceOne.threatEvents.datasets.raw(datasetId, eventId, { ...params }) -> DatasetRawResponse + +#### Health + +Types: + +- HealthGetResponse + +Methods: + +- client.cloudforceOne.threatEvents.datasets.health.get(datasetId, { ...params }) -> HealthGetResponse ### IndicatorTypes diff --git a/src/resources/cloudforce-one/threat-events/datasets.ts b/src/resources/cloudforce-one/threat-events/datasets.ts index c907a0be97..4b86aa001e 100644 --- a/src/resources/cloudforce-one/threat-events/datasets.ts +++ b/src/resources/cloudforce-one/threat-events/datasets.ts @@ -1,236 +1,3 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import { APIResource } from '../../../resource'; -import * as Core from '../../../core'; - -export class Datasets extends APIResource { - /** - * Creates a dataset - * - * @example - * ```ts - * const dataset = - * await client.cloudforceOne.threatEvents.datasets.create({ - * account_id: 0, - * isPublic: true, - * name: 'x', - * }); - * ``` - */ - create(params: DatasetCreateParams, options?: Core.RequestOptions): Core.APIPromise { - const { account_id, ...body } = params; - return this._client.post(`/accounts/${account_id}/cloudforce-one/events/dataset/create`, { - body, - ...options, - }); - } - - /** - * Lists all datasets in an account - * - * @example - * ```ts - * const datasets = - * await client.cloudforceOne.threatEvents.datasets.list({ - * account_id: 0, - * }); - * ``` - */ - list(params: DatasetListParams, options?: Core.RequestOptions): Core.APIPromise { - const { account_id } = params; - return this._client.get(`/accounts/${account_id}/cloudforce-one/events/dataset`, options); - } - - /** - * Updates an existing dataset - * - * @example - * ```ts - * const response = - * await client.cloudforceOne.threatEvents.datasets.edit( - * 'dataset_id', - * { account_id: 0, isPublic: true, name: 'x' }, - * ); - * ``` - */ - edit( - datasetId: string, - params: DatasetEditParams, - options?: Core.RequestOptions, - ): Core.APIPromise { - const { account_id, ...body } = params; - return this._client.patch(`/accounts/${account_id}/cloudforce-one/events/dataset/${datasetId}`, { - body, - ...options, - }); - } - - /** - * Reads a dataset - * - * @example - * ```ts - * const dataset = - * await client.cloudforceOne.threatEvents.datasets.get( - * 'dataset_id', - * { account_id: 0 }, - * ); - * ``` - */ - get( - datasetId: string, - params: DatasetGetParams, - options?: Core.RequestOptions, - ): Core.APIPromise { - const { account_id } = params; - return this._client.get(`/accounts/${account_id}/cloudforce-one/events/dataset/${datasetId}`, options); - } - - /** - * Reads data for a raw event - * - * @example - * ```ts - * const response = - * await client.cloudforceOne.threatEvents.datasets.raw( - * 'dataset_id', - * 'event_id', - * { account_id: 0 }, - * ); - * ``` - */ - raw( - datasetId: string, - eventId: string, - params: DatasetRawParams, - options?: Core.RequestOptions, - ): Core.APIPromise { - const { account_id } = params; - return this._client.get( - `/accounts/${account_id}/cloudforce-one/events/raw/${datasetId}/${eventId}`, - options, - ); - } -} - -export interface DatasetCreateResponse { - isPublic: boolean; - - name: string; - - uuid: string; -} - -export type DatasetListResponse = Array; - -export namespace DatasetListResponse { - export interface DatasetListResponseItem { - isPublic: boolean; - - name: string; - - uuid: string; - } -} - -export interface DatasetEditResponse { - isPublic: boolean; - - name: string; - - uuid: string; -} - -export interface DatasetGetResponse { - isPublic: boolean; - - name: string; - - uuid: string; -} - -export interface DatasetRawResponse { - id: string; - - accountId: number; - - created: string; - - data: unknown; - - source: string; - - tlp: string; -} - -export interface DatasetCreateParams { - /** - * Path param: Account ID. - */ - account_id: number; - - /** - * Body param: If true, then anyone can search the dataset. If false, then its - * limited to the account. - */ - isPublic: boolean; - - /** - * Body param: Used to describe the dataset within the account context. - */ - name: string; -} - -export interface DatasetListParams { - /** - * Account ID. - */ - account_id: number; -} - -export interface DatasetEditParams { - /** - * Path param: Account ID. - */ - account_id: number; - - /** - * Body param: If true, then anyone can search the dataset. If false, then its - * limited to the account. - */ - isPublic: boolean; - - /** - * Body param: Used to describe the dataset within the account context. - */ - name: string; -} - -export interface DatasetGetParams { - /** - * Account ID. - */ - account_id: number; -} - -export interface DatasetRawParams { - /** - * Account ID. - */ - account_id: number; -} - -export declare namespace Datasets { - export { - type DatasetCreateResponse as DatasetCreateResponse, - type DatasetListResponse as DatasetListResponse, - type DatasetEditResponse as DatasetEditResponse, - type DatasetGetResponse as DatasetGetResponse, - type DatasetRawResponse as DatasetRawResponse, - type DatasetCreateParams as DatasetCreateParams, - type DatasetListParams as DatasetListParams, - type DatasetEditParams as DatasetEditParams, - type DatasetGetParams as DatasetGetParams, - type DatasetRawParams as DatasetRawParams, - }; -} +export * from './datasets/index'; diff --git a/src/resources/cloudforce-one/threat-events/datasets/datasets.ts b/src/resources/cloudforce-one/threat-events/datasets/datasets.ts new file mode 100644 index 0000000000..a65aa34666 --- /dev/null +++ b/src/resources/cloudforce-one/threat-events/datasets/datasets.ts @@ -0,0 +1,248 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../../../resource'; +import * as Core from '../../../../core'; +import * as HealthAPI from './health'; +import { Health, HealthGetParams, HealthGetResponse } from './health'; + +export class Datasets extends APIResource { + health: HealthAPI.Health = new HealthAPI.Health(this._client); + + /** + * Creates a dataset + * + * @example + * ```ts + * const dataset = + * await client.cloudforceOne.threatEvents.datasets.create({ + * account_id: 0, + * isPublic: true, + * name: 'x', + * }); + * ``` + */ + create(params: DatasetCreateParams, options?: Core.RequestOptions): Core.APIPromise { + const { account_id, ...body } = params; + return this._client.post(`/accounts/${account_id}/cloudforce-one/events/dataset/create`, { + body, + ...options, + }); + } + + /** + * Lists all datasets in an account + * + * @example + * ```ts + * const datasets = + * await client.cloudforceOne.threatEvents.datasets.list({ + * account_id: 0, + * }); + * ``` + */ + list(params: DatasetListParams, options?: Core.RequestOptions): Core.APIPromise { + const { account_id } = params; + return this._client.get(`/accounts/${account_id}/cloudforce-one/events/dataset`, options); + } + + /** + * Updates an existing dataset + * + * @example + * ```ts + * const response = + * await client.cloudforceOne.threatEvents.datasets.edit( + * 'dataset_id', + * { account_id: 0, isPublic: true, name: 'x' }, + * ); + * ``` + */ + edit( + datasetId: string, + params: DatasetEditParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, ...body } = params; + return this._client.patch(`/accounts/${account_id}/cloudforce-one/events/dataset/${datasetId}`, { + body, + ...options, + }); + } + + /** + * Reads a dataset + * + * @example + * ```ts + * const dataset = + * await client.cloudforceOne.threatEvents.datasets.get( + * 'dataset_id', + * { account_id: 0 }, + * ); + * ``` + */ + get( + datasetId: string, + params: DatasetGetParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id } = params; + return this._client.get(`/accounts/${account_id}/cloudforce-one/events/dataset/${datasetId}`, options); + } + + /** + * Reads data for a raw event + * + * @example + * ```ts + * const response = + * await client.cloudforceOne.threatEvents.datasets.raw( + * 'dataset_id', + * 'event_id', + * { account_id: 0 }, + * ); + * ``` + */ + raw( + datasetId: string, + eventId: string, + params: DatasetRawParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id } = params; + return this._client.get( + `/accounts/${account_id}/cloudforce-one/events/raw/${datasetId}/${eventId}`, + options, + ); + } +} + +export interface DatasetCreateResponse { + isPublic: boolean; + + name: string; + + uuid: string; +} + +export type DatasetListResponse = Array; + +export namespace DatasetListResponse { + export interface DatasetListResponseItem { + isPublic: boolean; + + name: string; + + uuid: string; + } +} + +export interface DatasetEditResponse { + isPublic: boolean; + + name: string; + + uuid: string; +} + +export interface DatasetGetResponse { + isPublic: boolean; + + name: string; + + uuid: string; +} + +export interface DatasetRawResponse { + id: string; + + accountId: number; + + created: string; + + data: unknown; + + source: string; + + tlp: string; +} + +export interface DatasetCreateParams { + /** + * Path param: Account ID. + */ + account_id: number; + + /** + * Body param: If true, then anyone can search the dataset. If false, then its + * limited to the account. + */ + isPublic: boolean; + + /** + * Body param: Used to describe the dataset within the account context. + */ + name: string; +} + +export interface DatasetListParams { + /** + * Account ID. + */ + account_id: number; +} + +export interface DatasetEditParams { + /** + * Path param: Account ID. + */ + account_id: number; + + /** + * Body param: If true, then anyone can search the dataset. If false, then its + * limited to the account. + */ + isPublic: boolean; + + /** + * Body param: Used to describe the dataset within the account context. + */ + name: string; +} + +export interface DatasetGetParams { + /** + * Account ID. + */ + account_id: number; +} + +export interface DatasetRawParams { + /** + * Account ID. + */ + account_id: number; +} + +Datasets.Health = Health; + +export declare namespace Datasets { + export { + type DatasetCreateResponse as DatasetCreateResponse, + type DatasetListResponse as DatasetListResponse, + type DatasetEditResponse as DatasetEditResponse, + type DatasetGetResponse as DatasetGetResponse, + type DatasetRawResponse as DatasetRawResponse, + type DatasetCreateParams as DatasetCreateParams, + type DatasetListParams as DatasetListParams, + type DatasetEditParams as DatasetEditParams, + type DatasetGetParams as DatasetGetParams, + type DatasetRawParams as DatasetRawParams, + }; + + export { + Health as Health, + type HealthGetResponse as HealthGetResponse, + type HealthGetParams as HealthGetParams, + }; +} diff --git a/src/resources/cloudforce-one/threat-events/datasets/health.ts b/src/resources/cloudforce-one/threat-events/datasets/health.ts new file mode 100644 index 0000000000..b2c4aa5ca4 --- /dev/null +++ b/src/resources/cloudforce-one/threat-events/datasets/health.ts @@ -0,0 +1,53 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../../../resource'; +import * as Core from '../../../../core'; + +export class Health extends APIResource { + /** + * Benchmark Durable Object warmup + * + * @example + * ```ts + * const health = + * await client.cloudforceOne.threatEvents.datasets.health.get( + * 'dataset_id', + * { account_id: 0 }, + * ); + * ``` + */ + get( + datasetId: string, + params: HealthGetParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id } = params; + return this._client.get( + `/accounts/${account_id}/cloudforce-one/events/dataset/${datasetId}/health`, + options, + ); + } +} + +export interface HealthGetResponse { + items: HealthGetResponse.Items; + + type: string; +} + +export namespace HealthGetResponse { + export interface Items { + type: string; + } +} + +export interface HealthGetParams { + /** + * Account ID. + */ + account_id: number; +} + +export declare namespace Health { + export { type HealthGetResponse as HealthGetResponse, type HealthGetParams as HealthGetParams }; +} diff --git a/src/resources/cloudforce-one/threat-events/datasets/index.ts b/src/resources/cloudforce-one/threat-events/datasets/index.ts new file mode 100644 index 0000000000..d340ba91d3 --- /dev/null +++ b/src/resources/cloudforce-one/threat-events/datasets/index.ts @@ -0,0 +1,16 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +export { + Datasets, + type DatasetCreateResponse, + type DatasetListResponse, + type DatasetEditResponse, + type DatasetGetResponse, + type DatasetRawResponse, + type DatasetCreateParams, + type DatasetListParams, + type DatasetEditParams, + type DatasetGetParams, + type DatasetRawParams, +} from './datasets'; +export { Health, type HealthGetResponse, type HealthGetParams } from './health'; diff --git a/src/resources/cloudforce-one/threat-events/index.ts b/src/resources/cloudforce-one/threat-events/index.ts index 5bf3cebf41..146beb3bcc 100644 --- a/src/resources/cloudforce-one/threat-events/index.ts +++ b/src/resources/cloudforce-one/threat-events/index.ts @@ -34,7 +34,7 @@ export { type DatasetEditParams, type DatasetGetParams, type DatasetRawParams, -} from './datasets'; +} from './datasets/index'; export { EventTags, type EventTagCreateResponse, diff --git a/src/resources/cloudforce-one/threat-events/threat-events.ts b/src/resources/cloudforce-one/threat-events/threat-events.ts index d12a4ffada..3df87d8230 100644 --- a/src/resources/cloudforce-one/threat-events/threat-events.ts +++ b/src/resources/cloudforce-one/threat-events/threat-events.ts @@ -22,20 +22,6 @@ import * as CountriesAPI from './countries'; import { Countries, CountryListParams, CountryListResponse } from './countries'; import * as CronsAPI from './crons'; import { CronEditParams, CronEditResponse, CronListParams, CronListResponse, Crons } from './crons'; -import * as DatasetsAPI from './datasets'; -import { - DatasetCreateParams, - DatasetCreateResponse, - DatasetEditParams, - DatasetEditResponse, - DatasetGetParams, - DatasetGetResponse, - DatasetListParams, - DatasetListResponse, - DatasetRawParams, - DatasetRawResponse, - Datasets, -} from './datasets'; import * as EventTagsAPI from './event-tags'; import { EventTagCreateParams, @@ -66,6 +52,20 @@ import * as TagsAPI from './tags'; import { TagCreateParams, TagCreateResponse, Tags } from './tags'; import * as TargetIndustriesAPI from './target-industries'; import { TargetIndustries, TargetIndustryListParams, TargetIndustryListResponse } from './target-industries'; +import * as DatasetsAPI from './datasets/datasets'; +import { + DatasetCreateParams, + DatasetCreateResponse, + DatasetEditParams, + DatasetEditResponse, + DatasetGetParams, + DatasetGetResponse, + DatasetListParams, + DatasetListResponse, + DatasetRawParams, + DatasetRawResponse, + Datasets, +} from './datasets/datasets'; export class ThreatEvents extends APIResource { attackers: AttackersAPI.Attackers = new AttackersAPI.Attackers(this._client); diff --git a/src/resources/zero-trust/access/infrastructure/targets.ts b/src/resources/zero-trust/access/infrastructure/targets.ts index 574488e351..0c131221bf 100644 --- a/src/resources/zero-trust/access/infrastructure/targets.ts +++ b/src/resources/zero-trust/access/infrastructure/targets.ts @@ -111,17 +111,13 @@ export class Targets extends APIResource { * @example * ```ts * await client.zeroTrust.access.infrastructure.targets.bulkDelete( - * { - * account_id: '023e105f4ecef8ad9ca31a8372d0c353', - * target_ids: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], - * }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ bulkDelete(params: TargetBulkDeleteParams, options?: Core.RequestOptions): Core.APIPromise { - const { account_id, ...body } = params; - return this._client.post(`/accounts/${account_id}/infrastructure/targets/batch_delete`, { - body, + const { account_id } = params; + return this._client.delete(`/accounts/${account_id}/infrastructure/targets/batch`, { ...options, headers: { Accept: '*/*', ...options?.headers }, }); @@ -831,14 +827,9 @@ export interface TargetDeleteParams { export interface TargetBulkDeleteParams { /** - * Path param: Account identifier + * Account identifier */ account_id: string; - - /** - * Body param: List of target IDs to bulk delete - */ - target_ids: Array; } export interface TargetBulkUpdateParams { diff --git a/tests/api-resources/cloudforce-one/threat-events/datasets.test.ts b/tests/api-resources/cloudforce-one/threat-events/datasets/datasets.test.ts similarity index 100% rename from tests/api-resources/cloudforce-one/threat-events/datasets.test.ts rename to tests/api-resources/cloudforce-one/threat-events/datasets/datasets.test.ts diff --git a/tests/api-resources/cloudforce-one/threat-events/datasets/health.test.ts b/tests/api-resources/cloudforce-one/threat-events/datasets/health.test.ts new file mode 100644 index 0000000000..5ae7c12890 --- /dev/null +++ b/tests/api-resources/cloudforce-one/threat-events/datasets/health.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 health', () => { + test('get: only required params', async () => { + const responsePromise = client.cloudforceOne.threatEvents.datasets.health.get('dataset_id', { + account_id: 0, + }); + 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.cloudforceOne.threatEvents.datasets.health.get('dataset_id', { + account_id: 0, + }); + }); +}); diff --git a/tests/api-resources/zero-trust/access/infrastructure/targets.test.ts b/tests/api-resources/zero-trust/access/infrastructure/targets.test.ts index 4e614a9dd4..928a90120e 100644 --- a/tests/api-resources/zero-trust/access/infrastructure/targets.test.ts +++ b/tests/api-resources/zero-trust/access/infrastructure/targets.test.ts @@ -133,7 +133,6 @@ describe('resource targets', () => { test('bulkDelete: only required params', async () => { const responsePromise = client.zeroTrust.access.infrastructure.targets.bulkDelete({ account_id: '023e105f4ecef8ad9ca31a8372d0c353', - target_ids: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -147,7 +146,6 @@ describe('resource targets', () => { test('bulkDelete: required and optional params', async () => { const response = await client.zeroTrust.access.infrastructure.targets.bulkDelete({ account_id: '023e105f4ecef8ad9ca31a8372d0c353', - target_ids: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], }); }); From f73ba6be9ab778cd7a206588fb0ea989aabb4e43 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 06:11:35 +0000 Subject: [PATCH 073/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d196fcda94..fc418e0dd5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1f49df4d8a7f775cdca0044a946f1d28f8d276e82e443b856a430ddaad809d20.yml -openapi_spec_hash: 6b84a57ef92b8257081b32a496821094 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c1fc686af48902a8161303b6d38e2cd6113ef7016fcdc37ec2e942858c777aa2.yml +openapi_spec_hash: 480e6d9a74eae91baef63dc57e034a3a config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From 3cfe5e2f4eff4075e5f9326def78bde1835b19fd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 11:10:50 +0000 Subject: [PATCH 074/366] feat(api): api update --- .stats.yml | 4 +-- .../cloudflared/configurations.test.ts | 32 +++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.stats.yml b/.stats.yml index fc418e0dd5..8ab6ad8da2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c1fc686af48902a8161303b6d38e2cd6113ef7016fcdc37ec2e942858c777aa2.yml -openapi_spec_hash: 480e6d9a74eae91baef63dc57e034a3a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dd0dbbc48af4e6afae18884ee3481dfc5a2b15bc7e010f84122f4f89aead97a5.yml +openapi_spec_hash: b6387f7b9716ff59772012c98c55a0a7 config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 diff --git a/tests/api-resources/zero-trust/tunnels/cloudflared/configurations.test.ts b/tests/api-resources/zero-trust/tunnels/cloudflared/configurations.test.ts index 83c8ae3b70..8ab2aae85b 100644 --- a/tests/api-resources/zero-trust/tunnels/cloudflared/configurations.test.ts +++ b/tests/api-resources/zero-trust/tunnels/cloudflared/configurations.test.ts @@ -35,39 +35,39 @@ describe('resource configurations', () => { hostname: 'tunnel.example.com', service: 'https://localhost:8001', originRequest: { - access: { audTag: ['string'], teamName: 'teamName', required: true }, + access: { audTag: ['string'], teamName: 'zero-trust-organization-name', required: false }, caPool: 'caPool', - connectTimeout: 0, + connectTimeout: 10, disableChunkedEncoding: true, http2Origin: true, httpHostHeader: 'httpHostHeader', - keepAliveConnections: 0, - keepAliveTimeout: 0, - noHappyEyeballs: true, - noTLSVerify: true, + keepAliveConnections: 100, + keepAliveTimeout: 90, + noHappyEyeballs: false, + noTLSVerify: false, originServerName: 'originServerName', proxyType: 'proxyType', - tcpKeepAlive: 0, - tlsTimeout: 0, + tcpKeepAlive: 30, + tlsTimeout: 10, }, path: 'subpath', }, ], originRequest: { - access: { audTag: ['string'], teamName: 'teamName', required: true }, + access: { audTag: ['string'], teamName: 'zero-trust-organization-name', required: false }, caPool: 'caPool', - connectTimeout: 0, + connectTimeout: 10, disableChunkedEncoding: true, http2Origin: true, httpHostHeader: 'httpHostHeader', - keepAliveConnections: 0, - keepAliveTimeout: 0, - noHappyEyeballs: true, - noTLSVerify: true, + keepAliveConnections: 100, + keepAliveTimeout: 90, + noHappyEyeballs: false, + noTLSVerify: false, originServerName: 'originServerName', proxyType: 'proxyType', - tcpKeepAlive: 0, - tlsTimeout: 0, + tcpKeepAlive: 30, + tlsTimeout: 10, }, }, }, From 7f5fc87b44ac806bdfc6e2304e5884e5c331aa3e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 13:40:44 +0000 Subject: [PATCH 075/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8ab6ad8da2..60b4c3350b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dd0dbbc48af4e6afae18884ee3481dfc5a2b15bc7e010f84122f4f89aead97a5.yml -openapi_spec_hash: b6387f7b9716ff59772012c98c55a0a7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6d1e7c2b42f52be967959e802b667fa076ffb5f233c92c3f4823dccea57aca7.yml +openapi_spec_hash: 9c7de7064e19ee4401bf693b129a7f8f config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From 54b06ab7e55bfbac631638b933548f152e2d61aa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 13:43:32 +0000 Subject: [PATCH 076/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 60b4c3350b..14215edca9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6d1e7c2b42f52be967959e802b667fa076ffb5f233c92c3f4823dccea57aca7.yml -openapi_spec_hash: 9c7de7064e19ee4401bf693b129a7f8f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-12e59b8123588c124ad1aee46c7e8608e13845ff47a5a37d0901e0a61dbb2e5d.yml +openapi_spec_hash: 5c898da8efbd8079ec765234552bb126 config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From e3f6b4634db1ba2751d07395ffe60c4e1f2e7901 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 14:15:02 +0000 Subject: [PATCH 077/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 14215edca9..6a5e528ed9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-12e59b8123588c124ad1aee46c7e8608e13845ff47a5a37d0901e0a61dbb2e5d.yml -openapi_spec_hash: 5c898da8efbd8079ec765234552bb126 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c13e6e25c58fe4104a4b62c3d728755264f4767d979eeaa272d17b759edbbc6a.yml +openapi_spec_hash: aa98c9a9160133427065573736115ebe config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From 911920e9c9ddba9ab89c3106659562d1934ebb20 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 15:08:01 +0000 Subject: [PATCH 078/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6a5e528ed9..f727d27692 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c13e6e25c58fe4104a4b62c3d728755264f4767d979eeaa272d17b759edbbc6a.yml -openapi_spec_hash: aa98c9a9160133427065573736115ebe +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-10ff3e126a0ee233f5ded93545b016b986f825a9bfccccee94552af04bbbd053.yml +openapi_spec_hash: efad45b893d36708ae152e8aecc9257e config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From 3b8566988d9509d01b061c9c4b5d3557bd15085b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 15:41:44 +0000 Subject: [PATCH 079/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f727d27692..caaceea9a6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-10ff3e126a0ee233f5ded93545b016b986f825a9bfccccee94552af04bbbd053.yml -openapi_spec_hash: efad45b893d36708ae152e8aecc9257e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-eaba423c51bad00863885a8d86eacca5393d0582d06ddeede7e8432310f5db2d.yml +openapi_spec_hash: c1670c0b32d6be10c4e4cfae36ada3aa config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From c6bbb31df0ef04fe9b42622b06a7597353394a03 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 15:51:15 +0000 Subject: [PATCH 080/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index caaceea9a6..1c643a5c18 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-eaba423c51bad00863885a8d86eacca5393d0582d06ddeede7e8432310f5db2d.yml -openapi_spec_hash: c1670c0b32d6be10c4e4cfae36ada3aa +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c0c688f494d77bd874b49ee71124690d195a35b5520259f4e0d5636a51ceea5f.yml +openapi_spec_hash: 1ae4b46fc58fda86e191ace905165c0c config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From 615bc2935c7705e6e75b592c6ee8284a1bf67f41 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 15:54:41 +0000 Subject: [PATCH 081/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1c643a5c18..9431cc362b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c0c688f494d77bd874b49ee71124690d195a35b5520259f4e0d5636a51ceea5f.yml -openapi_spec_hash: 1ae4b46fc58fda86e191ace905165c0c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-be4b8181f8ea6cffb8f231b5fc3698b5d0e1daef18c1726279543f25772c05b2.yml +openapi_spec_hash: 29d54c3446e1b138d1b196af7ffef722 config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From b716341ad30f84fac428f5bde52af14bd472a6fd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 16:25:10 +0000 Subject: [PATCH 082/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9431cc362b..49e8043100 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-be4b8181f8ea6cffb8f231b5fc3698b5d0e1daef18c1726279543f25772c05b2.yml -openapi_spec_hash: 29d54c3446e1b138d1b196af7ffef722 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1d53f12c82b4926fe0c636e5df47be1131df24bcae744d46465063c89daaf56d.yml +openapi_spec_hash: f3314b5d83f2211fca178a77ae05ac05 config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From 9381535d9fa237cc5a05f24a8392849fa676dbae Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 16:29:37 +0000 Subject: [PATCH 083/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 49e8043100..25d6bc93ea 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1d53f12c82b4926fe0c636e5df47be1131df24bcae744d46465063c89daaf56d.yml -openapi_spec_hash: f3314b5d83f2211fca178a77ae05ac05 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c8a4b70d46222c68fd79c0e56ff25c73c7699d623d39e52278177703d4d20f1c.yml +openapi_spec_hash: 7e63e44b11e599fa37a0768d2dbfda6a config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From a41f4ab8847e6f90b464912fc0004084a550ad53 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 16:56:25 +0000 Subject: [PATCH 084/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 25d6bc93ea..c2bb9120b3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c8a4b70d46222c68fd79c0e56ff25c73c7699d623d39e52278177703d4d20f1c.yml -openapi_spec_hash: 7e63e44b11e599fa37a0768d2dbfda6a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-735927d81783b62ee3658456fb4a3756baf3b4bb794e3714c71e63f088caf952.yml +openapi_spec_hash: 67375303243b25bfc43de7594080dd9b config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From 981a7f7720e562828b7817a6a0e5397cc3f9ddd3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 17:02:32 +0000 Subject: [PATCH 085/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c2bb9120b3..36db135928 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-735927d81783b62ee3658456fb4a3756baf3b4bb794e3714c71e63f088caf952.yml -openapi_spec_hash: 67375303243b25bfc43de7594080dd9b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5f8f9111ba193e9232a940b4ef45ecd67888629d6d3e3ead90e88cf989b8b9cf.yml +openapi_spec_hash: cc09e1345b057900981d89d30fbca841 config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From 31bb3f33b9dee71d6263d1f807bcea6b342d193e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 17:17:14 +0000 Subject: [PATCH 086/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 36db135928..9833f20939 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5f8f9111ba193e9232a940b4ef45ecd67888629d6d3e3ead90e88cf989b8b9cf.yml -openapi_spec_hash: cc09e1345b057900981d89d30fbca841 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60d489b99dfad167e5a3ca73172431583df1c0375b4a9b4eb753282843c433fd.yml +openapi_spec_hash: 8b771be258911af75a5970543d75da6c config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From 25352fe96be771ae585d16bb10edd16d51d826b3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 17:21:27 +0000 Subject: [PATCH 087/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9833f20939..a56eceb445 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60d489b99dfad167e5a3ca73172431583df1c0375b4a9b4eb753282843c433fd.yml -openapi_spec_hash: 8b771be258911af75a5970543d75da6c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-99fc33d5ec38dc2385c27676170429d0f66afca98e0c0735e540e4717d846143.yml +openapi_spec_hash: 07c825b184ae88961d31cb0abf78caee config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From 5991a29891f57249fa89a69cb4822eadb8ace44b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 17:45:33 +0000 Subject: [PATCH 088/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a56eceb445..9833f20939 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-99fc33d5ec38dc2385c27676170429d0f66afca98e0c0735e540e4717d846143.yml -openapi_spec_hash: 07c825b184ae88961d31cb0abf78caee +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60d489b99dfad167e5a3ca73172431583df1c0375b4a9b4eb753282843c433fd.yml +openapi_spec_hash: 8b771be258911af75a5970543d75da6c config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From aebfe860f66bfb109516db69ef8324707ac73a3e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 17:48:12 +0000 Subject: [PATCH 089/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9833f20939..fdcf9dead8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60d489b99dfad167e5a3ca73172431583df1c0375b4a9b4eb753282843c433fd.yml -openapi_spec_hash: 8b771be258911af75a5970543d75da6c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3d8323fef5d79d50c31bce8dc1a14dbf42f95ce0f19a14c56e59a01dae02c196.yml +openapi_spec_hash: 0ddd48af3b28ebb42f960345d5a3ec03 config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From d0b368925ed362a44d0ace94966c3da2e83a75df Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 18:46:01 +0000 Subject: [PATCH 090/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index fdcf9dead8..202b2da4d4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3d8323fef5d79d50c31bce8dc1a14dbf42f95ce0f19a14c56e59a01dae02c196.yml -openapi_spec_hash: 0ddd48af3b28ebb42f960345d5a3ec03 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3b51a8438b19d990825fc00ef8ed9f6cc863b2579179bc0601f299768e302f2f.yml +openapi_spec_hash: daa336247981d3f53458f78895c2a857 config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From eb3c9e26f677992aecd01a2cd91592cb1d011bb3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 19:15:44 +0000 Subject: [PATCH 091/366] feat(api): api update --- .stats.yml | 4 +- .../threat-events/categories.ts | 6 +-- .../threat-events/datasets/datasets.ts | 4 +- .../threat-events/datasets/health.ts | 2 +- .../threat-events/categories.test.ts | 44 ++++++++++--------- .../threat-events/datasets/datasets.test.ts | 28 +++++++----- .../threat-events/datasets/health.test.ts | 14 +++--- 7 files changed, 56 insertions(+), 46 deletions(-) diff --git a/.stats.yml b/.stats.yml index 202b2da4d4..fe760be664 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3b51a8438b19d990825fc00ef8ed9f6cc863b2579179bc0601f299768e302f2f.yml -openapi_spec_hash: daa336247981d3f53458f78895c2a857 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e8969caf4e9f8a99d0ec6d14c2b8a1190bb328b6ab1c30087e547ab1261a36e.yml +openapi_spec_hash: 1b84773b57a1458614db701e30e7fca8 config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 diff --git a/src/resources/cloudforce-one/threat-events/categories.ts b/src/resources/cloudforce-one/threat-events/categories.ts index 181891dadf..d4639481f4 100644 --- a/src/resources/cloudforce-one/threat-events/categories.ts +++ b/src/resources/cloudforce-one/threat-events/categories.ts @@ -49,7 +49,7 @@ export class Categories extends APIResource { * ```ts * const category = * await client.cloudforceOne.threatEvents.categories.delete( - * 'category_id', + * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: 0 }, * ); * ``` @@ -73,7 +73,7 @@ export class Categories extends APIResource { * ```ts * const response = * await client.cloudforceOne.threatEvents.categories.edit( - * 'category_id', + * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: 0 }, * ); * ``` @@ -97,7 +97,7 @@ export class Categories extends APIResource { * ```ts * const category = * await client.cloudforceOne.threatEvents.categories.get( - * 'category_id', + * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: 0 }, * ); * ``` diff --git a/src/resources/cloudforce-one/threat-events/datasets/datasets.ts b/src/resources/cloudforce-one/threat-events/datasets/datasets.ts index a65aa34666..9be7ba1111 100644 --- a/src/resources/cloudforce-one/threat-events/datasets/datasets.ts +++ b/src/resources/cloudforce-one/threat-events/datasets/datasets.ts @@ -52,7 +52,7 @@ export class Datasets extends APIResource { * ```ts * const response = * await client.cloudforceOne.threatEvents.datasets.edit( - * 'dataset_id', + * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: 0, isPublic: true, name: 'x' }, * ); * ``` @@ -76,7 +76,7 @@ export class Datasets extends APIResource { * ```ts * const dataset = * await client.cloudforceOne.threatEvents.datasets.get( - * 'dataset_id', + * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: 0 }, * ); * ``` diff --git a/src/resources/cloudforce-one/threat-events/datasets/health.ts b/src/resources/cloudforce-one/threat-events/datasets/health.ts index b2c4aa5ca4..b6b8d5e817 100644 --- a/src/resources/cloudforce-one/threat-events/datasets/health.ts +++ b/src/resources/cloudforce-one/threat-events/datasets/health.ts @@ -11,7 +11,7 @@ export class Health extends APIResource { * ```ts * const health = * await client.cloudforceOne.threatEvents.datasets.health.get( - * 'dataset_id', + * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: 0 }, * ); * ``` diff --git a/tests/api-resources/cloudforce-one/threat-events/categories.test.ts b/tests/api-resources/cloudforce-one/threat-events/categories.test.ts index b8d4a4047c..91f5841839 100644 --- a/tests/api-resources/cloudforce-one/threat-events/categories.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/categories.test.ts @@ -56,9 +56,10 @@ describe('resource categories', () => { // TODO: HTTP 401 from prism test.skip('delete: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.categories.delete('category_id', { - account_id: 0, - }); + const responsePromise = client.cloudforceOne.threatEvents.categories.delete( + '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + { account_id: 0 }, + ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -70,16 +71,18 @@ describe('resource categories', () => { // TODO: HTTP 401 from prism test.skip('delete: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.categories.delete('category_id', { - account_id: 0, - }); + const response = await client.cloudforceOne.threatEvents.categories.delete( + '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + { account_id: 0 }, + ); }); // TODO: HTTP 401 from prism test.skip('edit: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.categories.edit('category_id', { - account_id: 0, - }); + const responsePromise = client.cloudforceOne.threatEvents.categories.edit( + '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + { account_id: 0 }, + ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -91,20 +94,18 @@ describe('resource categories', () => { // TODO: HTTP 401 from prism test.skip('edit: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.categories.edit('category_id', { - account_id: 0, - killChain: 0, - mitreAttack: ['T1234'], - name: 'name', - shortname: 'shortname', - }); + const response = await client.cloudforceOne.threatEvents.categories.edit( + '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + { account_id: 0, killChain: 0, mitreAttack: ['T1234'], name: 'name', shortname: 'shortname' }, + ); }); // TODO: HTTP 401 from prism test.skip('get: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.categories.get('category_id', { - account_id: 0, - }); + const responsePromise = client.cloudforceOne.threatEvents.categories.get( + '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + { account_id: 0 }, + ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -116,6 +117,9 @@ describe('resource categories', () => { // TODO: HTTP 401 from prism test.skip('get: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.categories.get('category_id', { account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.categories.get( + '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + { account_id: 0 }, + ); }); }); diff --git a/tests/api-resources/cloudforce-one/threat-events/datasets/datasets.test.ts b/tests/api-resources/cloudforce-one/threat-events/datasets/datasets.test.ts index 364ae0e313..121d7d2f9a 100644 --- a/tests/api-resources/cloudforce-one/threat-events/datasets/datasets.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/datasets/datasets.test.ts @@ -54,11 +54,10 @@ describe('resource datasets', () => { // TODO: HTTP 401 from prism test.skip('edit: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.datasets.edit('dataset_id', { - account_id: 0, - isPublic: true, - name: 'x', - }); + const responsePromise = client.cloudforceOne.threatEvents.datasets.edit( + '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + { account_id: 0, isPublic: true, name: 'x' }, + ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -70,16 +69,18 @@ describe('resource datasets', () => { // TODO: HTTP 401 from prism test.skip('edit: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.datasets.edit('dataset_id', { - account_id: 0, - isPublic: true, - name: 'x', - }); + const response = await client.cloudforceOne.threatEvents.datasets.edit( + '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + { account_id: 0, isPublic: true, name: 'x' }, + ); }); // TODO: HTTP 401 from prism test.skip('get: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.datasets.get('dataset_id', { account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.datasets.get( + '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + { account_id: 0 }, + ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -91,7 +92,10 @@ describe('resource datasets', () => { // TODO: HTTP 401 from prism test.skip('get: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.datasets.get('dataset_id', { account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.datasets.get( + '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + { account_id: 0 }, + ); }); // TODO: HTTP 401 from prism diff --git a/tests/api-resources/cloudforce-one/threat-events/datasets/health.test.ts b/tests/api-resources/cloudforce-one/threat-events/datasets/health.test.ts index 5ae7c12890..33c75b556a 100644 --- a/tests/api-resources/cloudforce-one/threat-events/datasets/health.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/datasets/health.test.ts @@ -11,9 +11,10 @@ const client = new Cloudflare({ describe('resource health', () => { test('get: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.datasets.health.get('dataset_id', { - account_id: 0, - }); + const responsePromise = client.cloudforceOne.threatEvents.datasets.health.get( + '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + { account_id: 0 }, + ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,8 +25,9 @@ describe('resource health', () => { }); test('get: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.datasets.health.get('dataset_id', { - account_id: 0, - }); + const response = await client.cloudforceOne.threatEvents.datasets.health.get( + '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', + { account_id: 0 }, + ); }); }); From 438a2ee6cf7563a53d7ef998f2c6df5a34039ae8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 22:23:42 +0000 Subject: [PATCH 092/366] chore: improve publish-npm script --latest tag logic --- bin/publish-npm | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/bin/publish-npm b/bin/publish-npm index 4c21181bb9..2505decac3 100644 --- a/bin/publish-npm +++ b/bin/publish-npm @@ -4,19 +4,35 @@ set -eux npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN" -# Build the project yarn build - -# Navigate to the dist directory cd dist -# Get the version from package.json +# Get latest version from npm +# +# If the package doesn't exist, yarn will return +# {"type":"error","data":"Received invalid response from npm."} +# where .data.version doesn't exist so LAST_VERSION will be an empty string. +LAST_VERSION="$(yarn info --json 2> /dev/null | jq -r '.data.version')" + +# Get current version from package.json VERSION="$(node -p "require('./package.json').version")" -# Extract the pre-release tag if it exists +# Check if current version is pre-release (e.g. alpha / beta / rc) +CURRENT_IS_PRERELEASE=false if [[ "$VERSION" =~ -([a-zA-Z]+) ]]; then - # Extract the part before any dot in the pre-release identifier - TAG="${BASH_REMATCH[1]}" + CURRENT_IS_PRERELEASE=true + CURRENT_TAG="${BASH_REMATCH[1]}" +fi + +# Check if last version is a stable release +LAST_IS_STABLE_RELEASE=true +if [[ -z "$LAST_VERSION" || "$LAST_VERSION" =~ -([a-zA-Z]+) ]]; then + LAST_IS_STABLE_RELEASE=false +fi + +# Use a corresponding alpha/beta tag if there already is a stable release and we're publishing a prerelease. +if $CURRENT_IS_PRERELEASE && $LAST_IS_STABLE_RELEASE; then + TAG="$CURRENT_TAG" else TAG="latest" fi From 258a0defce896b3d248e179ff4337360ef0b0801 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 23:56:49 +0000 Subject: [PATCH 093/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index fe760be664..5e843f54e6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e8969caf4e9f8a99d0ec6d14c2b8a1190bb328b6ab1c30087e547ab1261a36e.yml -openapi_spec_hash: 1b84773b57a1458614db701e30e7fca8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5a0452fa0db1e9184183a2015ad6c9288ccf4ad29f8642ca1cc93ae9da80691d.yml +openapi_spec_hash: 7a1212ca7ce6408fe906ddc9478793fe config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From a6d82c5d651e68d63b6d588b06c698586d67d16e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 00:06:47 +0000 Subject: [PATCH 094/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5e843f54e6..b6a36607f5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5a0452fa0db1e9184183a2015ad6c9288ccf4ad29f8642ca1cc93ae9da80691d.yml -openapi_spec_hash: 7a1212ca7ce6408fe906ddc9478793fe +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-74c49d4a2765205eb07cda1c4feeace5333309a00cf68a93b0c75a4c83b6d8e3.yml +openapi_spec_hash: 09cd66839136d4cc967618f230f61bdb config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From a9060513e9a6d166424e39fdd4499905b9368b9b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 00:29:29 +0000 Subject: [PATCH 095/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b6a36607f5..d2de673c74 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-74c49d4a2765205eb07cda1c4feeace5333309a00cf68a93b0c75a4c83b6d8e3.yml -openapi_spec_hash: 09cd66839136d4cc967618f230f61bdb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-56804cf064d9a5ef09d4e3d21582d73e497548aa5e53fc242432b665b4bc1443.yml +openapi_spec_hash: aa796b1ddda8c4e285661b0c4efd7d45 config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 From 075a60098b819c21b80370480257807a6d4c7d17 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 01:38:26 +0000 Subject: [PATCH 096/366] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index d2de673c74..6674d505bc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-56804cf064d9a5ef09d4e3d21582d73e497548aa5e53fc242432b665b4bc1443.yml openapi_spec_hash: aa796b1ddda8c4e285661b0c4efd7d45 -config_hash: 85703bb37ad4f7b8bfeea6f128f351a0 +config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 5baf73025dbb30053ce2d805f125315d6f9504cc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 06:07:28 +0000 Subject: [PATCH 097/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6674d505bc..3c69eff921 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-56804cf064d9a5ef09d4e3d21582d73e497548aa5e53fc242432b665b4bc1443.yml -openapi_spec_hash: aa796b1ddda8c4e285661b0c4efd7d45 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-49613f206cf38cc843ee3593f1a1f325e8c932d01bf0f60ab7685871b191bf99.yml +openapi_spec_hash: 1948b0ecef73afe17b77f7488f99cfe3 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 22d459151a1ab2747380590d94ceff52d624fcb8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 11:54:55 +0000 Subject: [PATCH 098/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3c69eff921..405f85dd0d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-49613f206cf38cc843ee3593f1a1f325e8c932d01bf0f60ab7685871b191bf99.yml -openapi_spec_hash: 1948b0ecef73afe17b77f7488f99cfe3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-18c40ddec33743e33a16108235259cd60e4b8ef9482bfdd211ddb55e3677fe8a.yml +openapi_spec_hash: 7a8b0334d88cacd91bff65b98960f5ed config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 92af12a0b0d808006a13ef0c9e53bb3039714ab6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 13:23:32 +0000 Subject: [PATCH 099/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 405f85dd0d..17e939d5ff 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-18c40ddec33743e33a16108235259cd60e4b8ef9482bfdd211ddb55e3677fe8a.yml -openapi_spec_hash: 7a8b0334d88cacd91bff65b98960f5ed +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-92b980759cf1cbdc998e129dc30a4cae818bf48f0b417ad0068b0a61b4d64f63.yml +openapi_spec_hash: d1867c6c581ee3c3fb24632a88c42053 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 205c034422f85d3d08efa1ca78cee4039b5b7fed Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 14:34:26 +0000 Subject: [PATCH 100/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 17e939d5ff..9b0787e462 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-92b980759cf1cbdc998e129dc30a4cae818bf48f0b417ad0068b0a61b4d64f63.yml -openapi_spec_hash: d1867c6c581ee3c3fb24632a88c42053 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5385666e78fb913051137e2c418bb85bd399243b71465531d4ff1f92d4426a52.yml +openapi_spec_hash: 17ff00c4fa5d6486de11dcaa96111dd8 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 9766b08ecce67466041be1da6befe6376e1578bb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 14:43:34 +0000 Subject: [PATCH 101/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9b0787e462..e2d88b9494 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5385666e78fb913051137e2c418bb85bd399243b71465531d4ff1f92d4426a52.yml -openapi_spec_hash: 17ff00c4fa5d6486de11dcaa96111dd8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b123894a94f2b433caf1c1d172481b7de979416b0384fd69404d78e94c383893.yml +openapi_spec_hash: 242f75e357c890d334f08379c9c63cb3 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From ed86b7ad2fe9393f506d1f4d464c96579b9d7d2c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 15:04:59 +0000 Subject: [PATCH 102/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e2d88b9494..60757a9467 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b123894a94f2b433caf1c1d172481b7de979416b0384fd69404d78e94c383893.yml -openapi_spec_hash: 242f75e357c890d334f08379c9c63cb3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ccd1383582d236c751ac3a942a298ec049f014e44faefa11b262d9d9f558e3bb.yml +openapi_spec_hash: ef3e76327974a57367f63142fb8f757a config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From bf1effa75abe78ecd2f87c5811e1d4e23f804940 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 15:08:29 +0000 Subject: [PATCH 103/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 60757a9467..94ca83f0ac 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ccd1383582d236c751ac3a942a298ec049f014e44faefa11b262d9d9f558e3bb.yml -openapi_spec_hash: ef3e76327974a57367f63142fb8f757a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-663da5fd189d5bc4383b97c69794a0f28338f3f992a7beaadbd1ee62f2e5bd3e.yml +openapi_spec_hash: 817295c55a5db442dfa2bff0953714c9 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 81814122fbf61a7671c7b199a94491c26a2a816b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 15:44:49 +0000 Subject: [PATCH 104/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 94ca83f0ac..c62eb28d99 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-663da5fd189d5bc4383b97c69794a0f28338f3f992a7beaadbd1ee62f2e5bd3e.yml -openapi_spec_hash: 817295c55a5db442dfa2bff0953714c9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dd4df8089d35319b65fbd86283997a89d48974b04fda22b51825eab4e3bedfc4.yml +openapi_spec_hash: c234d928201b1cfee566844de1cdb4c4 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From e4c0745e4472c3711cdc49d3f69f8980feade2b6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 15:56:47 +0000 Subject: [PATCH 105/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c62eb28d99..afc6039ef8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dd4df8089d35319b65fbd86283997a89d48974b04fda22b51825eab4e3bedfc4.yml -openapi_spec_hash: c234d928201b1cfee566844de1cdb4c4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36627eda0c0c4785d2eb3c7da30f4304ee5cc3310adaba85e8f1f984255aede1.yml +openapi_spec_hash: fd968188a7de9d5c5a2941b8cd1b4635 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 4feae6b74fa993581e4eddd739db47295b3a7608 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 17:38:08 +0000 Subject: [PATCH 106/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index afc6039ef8..cb60592f75 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-36627eda0c0c4785d2eb3c7da30f4304ee5cc3310adaba85e8f1f984255aede1.yml -openapi_spec_hash: fd968188a7de9d5c5a2941b8cd1b4635 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-47144a92c6634917fa4131e251c745fb8eaf865e9bcc52ef6bd98a521ecf4977.yml +openapi_spec_hash: deefa794090532e4e337bfd2714f6c09 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 5c94fc04b173f58647654e8a212a11f0e0e41a61 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 18:06:29 +0000 Subject: [PATCH 107/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index cb60592f75..7cb0c95b2e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-47144a92c6634917fa4131e251c745fb8eaf865e9bcc52ef6bd98a521ecf4977.yml -openapi_spec_hash: deefa794090532e4e337bfd2714f6c09 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-57c426b02afb040d9e86a91d52e48c0f14dca0b3027cf9a82ea1788042ee7ee4.yml +openapi_spec_hash: a0190a7742ddcd1fde6e401f245b45fe config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From c45c88ef21dd35c5ae7b017c08d8f04a358b2e30 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 18:57:47 +0000 Subject: [PATCH 108/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7cb0c95b2e..9b0787e462 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-57c426b02afb040d9e86a91d52e48c0f14dca0b3027cf9a82ea1788042ee7ee4.yml -openapi_spec_hash: a0190a7742ddcd1fde6e401f245b45fe +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5385666e78fb913051137e2c418bb85bd399243b71465531d4ff1f92d4426a52.yml +openapi_spec_hash: 17ff00c4fa5d6486de11dcaa96111dd8 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 2d6f3bce3e7ba9e722f0f4fc9dd8831c6d58a16c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 19:01:25 +0000 Subject: [PATCH 109/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9b0787e462..4e78af0a44 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5385666e78fb913051137e2c418bb85bd399243b71465531d4ff1f92d4426a52.yml -openapi_spec_hash: 17ff00c4fa5d6486de11dcaa96111dd8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cddeafa23cb63af86ff222d668959ef491a86c1949aef005a8944dfdc03bba8c.yml +openapi_spec_hash: dae159216911ffbda38548d21607f138 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 3a6106df0ea211e2000fd82f3058ff46746622a9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 19:09:04 +0000 Subject: [PATCH 110/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4e78af0a44..aadb70a3ba 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cddeafa23cb63af86ff222d668959ef491a86c1949aef005a8944dfdc03bba8c.yml -openapi_spec_hash: dae159216911ffbda38548d21607f138 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-021d54f295e7a738353353d1d65bd906fe3627f4f965a87f0f6ee7f4c0966efe.yml +openapi_spec_hash: b85bcc6a1f559e72831ded53ef810d91 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 8e8267d4abe86e776308dd4326f164fcf19517b4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 20:14:07 +0000 Subject: [PATCH 111/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/network-interconnects/cnis.ts | 6 ++++++ tests/api-resources/network-interconnects/cnis.test.ts | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index aadb70a3ba..04b7ef4a37 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-021d54f295e7a738353353d1d65bd906fe3627f4f965a87f0f6ee7f4c0966efe.yml -openapi_spec_hash: b85bcc6a1f559e72831ded53ef810d91 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-88ef04465786d370aa23f356861ae7be6fa003b366887b73dc53e559831de0b8.yml +openapi_spec_hash: bef5fe96cf1b7b2dca7081954de0b4cd config_hash: cb36b26a5fcc81fa60c65016b1e74f0a diff --git a/src/resources/network-interconnects/cnis.ts b/src/resources/network-interconnects/cnis.ts index 4eeca25fe6..80177ff6f8 100644 --- a/src/resources/network-interconnects/cnis.ts +++ b/src/resources/network-interconnects/cnis.ts @@ -592,6 +592,12 @@ export interface CNIListParams { * Query param: If specified, only show CNIs associated with the specified slot */ slot?: string | null; + + /** + * Query param: If specified, only show cnis associated with the specified tunnel + * id + */ + tunnel_id?: string | null; } export interface CNIDeleteParams { diff --git a/tests/api-resources/network-interconnects/cnis.test.ts b/tests/api-resources/network-interconnects/cnis.test.ts index 5d4f92441d..6c374ea251 100644 --- a/tests/api-resources/network-interconnects/cnis.test.ts +++ b/tests/api-resources/network-interconnects/cnis.test.ts @@ -85,6 +85,7 @@ describe('resource cnis', () => { cursor: 0, limit: 0, slot: 'slot', + tunnel_id: 'tunnel_id', }); }); From d9a9e718cf519c944d0242b54c2aa0502538bec1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 20:20:06 +0000 Subject: [PATCH 112/366] chore(api): mark some methods as deprecated --- .../prefixes/advertisement-status.ts | 21 +------- src/resources/billing/profiles.ts | 2 + src/resources/email-routing/email-routing.ts | 16 +----- src/resources/firewall/waf/overrides.ts | 50 ++---------------- src/resources/firewall/waf/packages/groups.ts | 30 ++--------- .../firewall/waf/packages/packages.ts | 18 +------ src/resources/firewall/waf/packages/rules.ts | 30 ++--------- src/resources/images/v1/v1.ts | 10 +--- .../intel/attack-surface-report/issues.ts | 43 ++------------- src/resources/radar/attacks/layer3/top/top.ts | 12 +---- src/resources/radar/attacks/layer7/top/top.ts | 12 +---- src/resources/user/billing/history.ts | 8 +-- src/resources/user/billing/profile.ts | 5 +- src/resources/user/organizations.ts | 22 ++------ src/resources/zero-trust/access/bookmarks.ts | 52 ++----------------- .../access/infrastructure/targets.ts | 7 +-- src/resources/zero-trust/devices/devices.ts | 18 +------ .../zero-trust/devices/override-codes.ts | 11 +--- src/resources/zero-trust/devices/revoke.ts | 10 +--- src/resources/zero-trust/devices/unrevoke.ts | 9 +--- .../configurations/custom-certificate.ts | 8 +-- .../zero-trust/networks/routes/networks.ts | 30 ++--------- 22 files changed, 49 insertions(+), 375 deletions(-) diff --git a/src/resources/addressing/prefixes/advertisement-status.ts b/src/resources/addressing/prefixes/advertisement-status.ts index 65d52cbd5f..b4c4e80c3d 100644 --- a/src/resources/addressing/prefixes/advertisement-status.ts +++ b/src/resources/addressing/prefixes/advertisement-status.ts @@ -10,17 +10,7 @@ export class AdvertisementStatus extends APIResource { * **Deprecated:** Prefer the BGP Prefixes endpoints, which additionally allow for * advertising and withdrawing subnets of an IP prefix. * - * @example - * ```ts - * const response = - * await client.addressing.prefixes.advertisementStatus.edit( - * '2af39739cc4e3b5910c918468bb89828', - * { - * account_id: '258def64c72dae45f3e4c8516e2111f2', - * advertised: true, - * }, - * ); - * ``` + * @deprecated */ edit( prefixId: string, @@ -42,14 +32,7 @@ export class AdvertisementStatus extends APIResource { * **Deprecated:** Prefer the BGP Prefixes endpoints, which additionally allow for * advertising and withdrawing subnets of an IP prefix. * - * @example - * ```ts - * const advertisementStatus = - * await client.addressing.prefixes.advertisementStatus.get( - * '2af39739cc4e3b5910c918468bb89828', - * { account_id: '258def64c72dae45f3e4c8516e2111f2' }, - * ); - * ``` + * @deprecated */ get( prefixId: string, diff --git a/src/resources/billing/profiles.ts b/src/resources/billing/profiles.ts index 6638bb6e3c..d3d6d969be 100644 --- a/src/resources/billing/profiles.ts +++ b/src/resources/billing/profiles.ts @@ -6,6 +6,8 @@ import * as Core from '../../core'; export class Profiles extends APIResource { /** * Gets the current billing profile for the account. + * + * @deprecated */ get(params: ProfileGetParams, options?: Core.RequestOptions): Core.APIPromise { const { account_id } = params; diff --git a/src/resources/email-routing/email-routing.ts b/src/resources/email-routing/email-routing.ts index 762335f503..bf68594b09 100644 --- a/src/resources/email-routing/email-routing.ts +++ b/src/resources/email-routing/email-routing.ts @@ -46,13 +46,7 @@ export class EmailRouting extends APIResource { * Disable your Email Routing zone. Also removes additional MX records previously * required for Email Routing to work. * - * @example - * ```ts - * const settings = await client.emailRouting.disable({ - * zone_id: '023e105f4ecef8ad9ca31a8372d0c353', - * body: {}, - * }); - * ``` + * @deprecated */ disable(params: EmailRoutingDisableParams, options?: Core.RequestOptions): Core.APIPromise { const { zone_id, body } = params; @@ -67,13 +61,7 @@ export class EmailRouting extends APIResource { /** * Enable you Email Routing zone. Add and lock the necessary MX and SPF records. * - * @example - * ```ts - * const settings = await client.emailRouting.enable({ - * zone_id: '023e105f4ecef8ad9ca31a8372d0c353', - * body: {}, - * }); - * ``` + * @deprecated */ enable(params: EmailRoutingEnableParams, options?: Core.RequestOptions): Core.APIPromise { const { zone_id, body } = params; diff --git a/src/resources/firewall/waf/overrides.ts b/src/resources/firewall/waf/overrides.ts index 7d8824c8fb..b6d57fefae 100644 --- a/src/resources/firewall/waf/overrides.ts +++ b/src/resources/firewall/waf/overrides.ts @@ -11,15 +11,7 @@ export class Overrides extends APIResource { * **Note:** Applies only to the * [previous version of WAF managed rules](https://developers.cloudflare.com/support/firewall/managed-rules-web-application-firewall-waf/understanding-waf-managed-rules-web-application-firewall/). * - * @example - * ```ts - * const override = await client.firewall.waf.overrides.create( - * { - * zone_id: '023e105f4ecef8ad9ca31a8372d0c353', - * urls: ['shop.example.com/*'], - * }, - * ); - * ``` + * @deprecated */ create(params: OverrideCreateParams, options?: Core.RequestOptions): Core.APIPromise { const { zone_id, ...body } = params; @@ -36,19 +28,7 @@ export class Overrides extends APIResource { * **Note:** Applies only to the * [previous version of WAF managed rules](https://developers.cloudflare.com/support/firewall/managed-rules-web-application-firewall-waf/understanding-waf-managed-rules-web-application-firewall/). * - * @example - * ```ts - * const override = await client.firewall.waf.overrides.update( - * 'de677e5818985db1285d0e80225f06e5', - * { - * zone_id: '023e105f4ecef8ad9ca31a8372d0c353', - * id: '023e105f4ecef8ad9ca31a8372d0c353', - * rewrite_action: {}, - * rules: { '100015': 'disable' }, - * urls: ['shop.example.com/*'], - * }, - * ); - * ``` + * @deprecated */ update( overridesId: string, @@ -70,15 +50,7 @@ export class Overrides extends APIResource { * **Note:** Applies only to the * [previous version of WAF managed rules](https://developers.cloudflare.com/support/firewall/managed-rules-web-application-firewall-waf/understanding-waf-managed-rules-web-application-firewall/). * - * @example - * ```ts - * // Automatically fetches more pages as needed. - * for await (const override of client.firewall.waf.overrides.list( - * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * )) { - * // ... - * } - * ``` + * @deprecated */ list( params: OverrideListParams, @@ -98,13 +70,7 @@ export class Overrides extends APIResource { * **Note:** Applies only to the * [previous version of WAF managed rules](https://developers.cloudflare.com/support/firewall/managed-rules-web-application-firewall-waf/understanding-waf-managed-rules-web-application-firewall/). * - * @example - * ```ts - * const override = await client.firewall.waf.overrides.delete( - * 'de677e5818985db1285d0e80225f06e5', - * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * ); - * ``` + * @deprecated */ delete( overridesId: string, @@ -126,13 +92,7 @@ export class Overrides extends APIResource { * **Note:** Applies only to the * [previous version of WAF managed rules](https://developers.cloudflare.com/support/firewall/managed-rules-web-application-firewall-waf/understanding-waf-managed-rules-web-application-firewall/). * - * @example - * ```ts - * const override = await client.firewall.waf.overrides.get( - * 'de677e5818985db1285d0e80225f06e5', - * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * ); - * ``` + * @deprecated */ get( overridesId: string, diff --git a/src/resources/firewall/waf/packages/groups.ts b/src/resources/firewall/waf/packages/groups.ts index c7bf38df71..23641bed1b 100644 --- a/src/resources/firewall/waf/packages/groups.ts +++ b/src/resources/firewall/waf/packages/groups.ts @@ -11,16 +11,7 @@ export class Groups extends APIResource { * **Note:** Applies only to the * [previous version of WAF managed rules](https://developers.cloudflare.com/support/firewall/managed-rules-web-application-firewall-waf/understanding-waf-managed-rules-web-application-firewall/). * - * @example - * ```ts - * // Automatically fetches more pages as needed. - * for await (const group of client.firewall.waf.packages.groups.list( - * 'a25a9a7e9c00afc1fb2e0245519d725b', - * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * )) { - * // ... - * } - * ``` + * @deprecated */ list( packageId: string, @@ -42,15 +33,7 @@ export class Groups extends APIResource { * **Note:** Applies only to the * [previous version of WAF managed rules](https://developers.cloudflare.com/support/firewall/managed-rules-web-application-firewall-waf/understanding-waf-managed-rules-web-application-firewall/). * - * @example - * ```ts - * const response = - * await client.firewall.waf.packages.groups.edit( - * 'a25a9a7e9c00afc1fb2e0245519d725b', - * 'a25a9a7e9c00afc1fb2e0245519d725b', - * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * ); - * ``` + * @deprecated */ edit( packageId: string, @@ -73,14 +56,7 @@ export class Groups extends APIResource { * **Note:** Applies only to the * [previous version of WAF managed rules](https://developers.cloudflare.com/support/firewall/managed-rules-web-application-firewall-waf/understanding-waf-managed-rules-web-application-firewall/). * - * @example - * ```ts - * const group = await client.firewall.waf.packages.groups.get( - * 'a25a9a7e9c00afc1fb2e0245519d725b', - * 'a25a9a7e9c00afc1fb2e0245519d725b', - * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * ); - * ``` + * @deprecated */ get( packageId: string, diff --git a/src/resources/firewall/waf/packages/packages.ts b/src/resources/firewall/waf/packages/packages.ts index 111efc8b97..4adfcbe43b 100644 --- a/src/resources/firewall/waf/packages/packages.ts +++ b/src/resources/firewall/waf/packages/packages.ts @@ -39,15 +39,7 @@ export class Packages extends APIResource { * **Note:** Applies only to the * [previous version of WAF managed rules](https://developers.cloudflare.com/support/firewall/managed-rules-web-application-firewall-waf/understanding-waf-managed-rules-web-application-firewall/). * - * @example - * ```ts - * // Automatically fetches more pages as needed. - * for await (const packageListResponse of client.firewall.waf.packages.list( - * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * )) { - * // ... - * } - * ``` + * @deprecated */ list( params: PackageListParams, @@ -67,13 +59,7 @@ export class Packages extends APIResource { * **Note:** Applies only to the * [previous version of WAF managed rules](https://developers.cloudflare.com/support/firewall/managed-rules-web-application-firewall-waf/understanding-waf-managed-rules-web-application-firewall/). * - * @example - * ```ts - * const _package = await client.firewall.waf.packages.get( - * '023e105f4ecef8ad9ca31a8372d0c353', - * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * ); - * ``` + * @deprecated */ get( packageId: string, diff --git a/src/resources/firewall/waf/packages/rules.ts b/src/resources/firewall/waf/packages/rules.ts index 38443d86ea..0f1bcc21ee 100644 --- a/src/resources/firewall/waf/packages/rules.ts +++ b/src/resources/firewall/waf/packages/rules.ts @@ -12,16 +12,7 @@ export class Rules extends APIResource { * **Note:** Applies only to the * [previous version of WAF managed rules](https://developers.cloudflare.com/support/firewall/managed-rules-web-application-firewall-waf/understanding-waf-managed-rules-web-application-firewall/). * - * @example - * ```ts - * // Automatically fetches more pages as needed. - * for await (const ruleListResponse of client.firewall.waf.packages.rules.list( - * 'a25a9a7e9c00afc1fb2e0245519d725b', - * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * )) { - * // ... - * } - * ``` + * @deprecated */ list( packageId: string, @@ -42,15 +33,7 @@ export class Rules extends APIResource { * **Note:** Applies only to the * [previous version of WAF managed rules](https://developers.cloudflare.com/support/firewall/managed-rules-web-application-firewall-waf/understanding-waf-managed-rules-web-application-firewall/). * - * @example - * ```ts - * const response = - * await client.firewall.waf.packages.rules.edit( - * 'a25a9a7e9c00afc1fb2e0245519d725b', - * 'a25a9a7e9c00afc1fb2e0245519d725b', - * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * ); - * ``` + * @deprecated */ edit( packageId: string, @@ -73,14 +56,7 @@ export class Rules extends APIResource { * **Note:** Applies only to the * [previous version of WAF managed rules](https://developers.cloudflare.com/support/firewall/managed-rules-web-application-firewall-waf/understanding-waf-managed-rules-web-application-firewall/). * - * @example - * ```ts - * const rule = await client.firewall.waf.packages.rules.get( - * 'a25a9a7e9c00afc1fb2e0245519d725b', - * 'a25a9a7e9c00afc1fb2e0245519d725b', - * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * ); - * ``` + * @deprecated */ get( packageId: string, diff --git a/src/resources/images/v1/v1.ts b/src/resources/images/v1/v1.ts index 1f17dbbab4..de26ea6cc8 100644 --- a/src/resources/images/v1/v1.ts +++ b/src/resources/images/v1/v1.ts @@ -65,15 +65,7 @@ export class V1 extends APIResource { * List up to 100 images with one request. Use the optional parameters below to get * a specific range of images. * - * @example - * ```ts - * // Automatically fetches more pages as needed. - * for await (const v1ListResponse of client.images.v1.list({ - * account_id: '023e105f4ecef8ad9ca31a8372d0c353', - * })) { - * // ... - * } - * ``` + * @deprecated */ list( params: V1ListParams, diff --git a/src/resources/intel/attack-surface-report/issues.ts b/src/resources/intel/attack-surface-report/issues.ts index d2830597cd..3e41e46003 100644 --- a/src/resources/intel/attack-surface-report/issues.ts +++ b/src/resources/intel/attack-surface-report/issues.ts @@ -9,15 +9,7 @@ export class Issues extends APIResource { /** * Get Security Center Issues * - * @example - * ```ts - * // Automatically fetches more pages as needed. - * for await (const issueListResponse of client.intel.attackSurfaceReport.issues.list( - * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * )) { - * // ... - * } - * ``` + * @deprecated */ list( params: IssueListParams, @@ -34,13 +26,7 @@ export class Issues extends APIResource { /** * Get Security Center Issue Counts by Class * - * @example - * ```ts - * const response = - * await client.intel.attackSurfaceReport.issues.class({ - * account_id: '023e105f4ecef8ad9ca31a8372d0c353', - * }); - * ``` + * @deprecated */ class(params: IssueClassParams, options?: Core.RequestOptions): Core.APIPromise { const { account_id, ...query } = params; @@ -55,14 +41,7 @@ export class Issues extends APIResource { /** * Archive Security Center Insight * - * @example - * ```ts - * const response = - * await client.intel.attackSurfaceReport.issues.dismiss( - * 'issue_id', - * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * ); - * ``` + * @deprecated */ dismiss( issueId: string, @@ -79,13 +58,7 @@ export class Issues extends APIResource { /** * Get Security Center Issue Counts by Severity * - * @example - * ```ts - * const response = - * await client.intel.attackSurfaceReport.issues.severity({ - * account_id: '023e105f4ecef8ad9ca31a8372d0c353', - * }); - * ``` + * @deprecated */ severity( params: IssueSeverityParams, @@ -103,13 +76,7 @@ export class Issues extends APIResource { /** * Get Security Center Issue Counts by Type * - * @example - * ```ts - * const response = - * await client.intel.attackSurfaceReport.issues.type({ - * account_id: '023e105f4ecef8ad9ca31a8372d0c353', - * }); - * ``` + * @deprecated */ type(params: IssueTypeParams, options?: Core.RequestOptions): Core.APIPromise { const { account_id, ...query } = params; diff --git a/src/resources/radar/attacks/layer3/top/top.ts b/src/resources/radar/attacks/layer3/top/top.ts index 4078be87e4..938065fa03 100644 --- a/src/resources/radar/attacks/layer3/top/top.ts +++ b/src/resources/radar/attacks/layer3/top/top.ts @@ -47,11 +47,7 @@ export class Top extends APIResource { * This endpoint is deprecated. To continue getting this data, switch to the * summary by industry endpoint. * - * @example - * ```ts - * const response = - * await client.radar.attacks.layer3.top.industry(); - * ``` + * @deprecated */ industry(query?: TopIndustryParams, options?: Core.RequestOptions): Core.APIPromise; industry(options?: Core.RequestOptions): Core.APIPromise; @@ -73,11 +69,7 @@ export class Top extends APIResource { * This endpoint is deprecated. To continue getting this data, switch to the * summary by vertical endpoint. * - * @example - * ```ts - * const response = - * await client.radar.attacks.layer3.top.vertical(); - * ``` + * @deprecated */ 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 864c188b03..73baa937c3 100644 --- a/src/resources/radar/attacks/layer7/top/top.ts +++ b/src/resources/radar/attacks/layer7/top/top.ts @@ -51,11 +51,7 @@ export class Top extends APIResource { * This endpoint is deprecated. To continue getting this data, switch to the * summary by industry endpoint. * - * @example - * ```ts - * const response = - * await client.radar.attacks.layer7.top.industry(); - * ``` + * @deprecated */ industry(query?: TopIndustryParams, options?: Core.RequestOptions): Core.APIPromise; industry(options?: Core.RequestOptions): Core.APIPromise; @@ -77,11 +73,7 @@ export class Top extends APIResource { * This endpoint is deprecated. To continue getting this data, switch to the * summary by vertical endpoint. * - * @example - * ```ts - * const response = - * await client.radar.attacks.layer7.top.vertical(); - * ``` + * @deprecated */ vertical(query?: TopVerticalParams, options?: Core.RequestOptions): Core.APIPromise; vertical(options?: Core.RequestOptions): Core.APIPromise; diff --git a/src/resources/user/billing/history.ts b/src/resources/user/billing/history.ts index 29252e8da5..fdc6d8e6f6 100644 --- a/src/resources/user/billing/history.ts +++ b/src/resources/user/billing/history.ts @@ -9,13 +9,7 @@ export class History extends APIResource { /** * Accesses your billing history object. * - * @example - * ```ts - * // Automatically fetches more pages as needed. - * for await (const billingHistory of client.user.billing.history.list()) { - * // ... - * } - * ``` + * @deprecated */ list( query?: HistoryListParams, diff --git a/src/resources/user/billing/profile.ts b/src/resources/user/billing/profile.ts index 60488ba2a0..59448168fe 100644 --- a/src/resources/user/billing/profile.ts +++ b/src/resources/user/billing/profile.ts @@ -7,10 +7,7 @@ export class Profile extends APIResource { /** * Accesses your billing profile object. * - * @example - * ```ts - * const profile = await client.user.billing.profile.get(); - * ``` + * @deprecated */ get(options?: Core.RequestOptions): Core.APIPromise { return ( diff --git a/src/resources/user/organizations.ts b/src/resources/user/organizations.ts index 848e863b98..f6f067db3e 100644 --- a/src/resources/user/organizations.ts +++ b/src/resources/user/organizations.ts @@ -11,13 +11,7 @@ export class Organizations extends APIResource { /** * Lists organizations the user is associated with. * - * @example - * ```ts - * // Automatically fetches more pages as needed. - * for await (const organization of client.user.organizations.list()) { - * // ... - * } - * ``` + * @deprecated */ list( query?: OrganizationListParams, @@ -40,12 +34,7 @@ export class Organizations extends APIResource { /** * Removes association to an organization. * - * @example - * ```ts - * const organization = await client.user.organizations.delete( - * '023e105f4ecef8ad9ca31a8372d0c353', - * ); - * ``` + * @deprecated */ delete(organizationId: string, options?: Core.RequestOptions): Core.APIPromise { return this._client.delete(`/user/organizations/${organizationId}`, options); @@ -54,12 +43,7 @@ export class Organizations extends APIResource { /** * Gets a specific organization the user is associated with. * - * @example - * ```ts - * const organization = await client.user.organizations.get( - * '023e105f4ecef8ad9ca31a8372d0c353', - * ); - * ``` + * @deprecated */ get(organizationId: string, options?: Core.RequestOptions): Core.APIPromise { return ( diff --git a/src/resources/zero-trust/access/bookmarks.ts b/src/resources/zero-trust/access/bookmarks.ts index 0544478dbb..4f6ce8bf3e 100644 --- a/src/resources/zero-trust/access/bookmarks.ts +++ b/src/resources/zero-trust/access/bookmarks.ts @@ -8,17 +8,7 @@ export class Bookmarks extends APIResource { /** * Create a new Bookmark application. * - * @example - * ```ts - * const bookmark = - * await client.zeroTrust.access.bookmarks.create( - * 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', - * { - * account_id: '699d98642c564d2e855e9661899b7252', - * body: {}, - * }, - * ); - * ``` + * @deprecated */ create( bookmarkId: string, @@ -37,17 +27,7 @@ export class Bookmarks extends APIResource { /** * Updates a configured Bookmark application. * - * @example - * ```ts - * const bookmark = - * await client.zeroTrust.access.bookmarks.update( - * 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', - * { - * account_id: '699d98642c564d2e855e9661899b7252', - * body: {}, - * }, - * ); - * ``` + * @deprecated */ update( bookmarkId: string, @@ -66,15 +46,7 @@ export class Bookmarks extends APIResource { /** * Lists Bookmark applications. * - * @example - * ```ts - * // Automatically fetches more pages as needed. - * for await (const bookmark of client.zeroTrust.access.bookmarks.list( - * { account_id: '699d98642c564d2e855e9661899b7252' }, - * )) { - * // ... - * } - * ``` + * @deprecated */ list( params: BookmarkListParams, @@ -87,14 +59,7 @@ export class Bookmarks extends APIResource { /** * Deletes a Bookmark application. * - * @example - * ```ts - * const bookmark = - * await client.zeroTrust.access.bookmarks.delete( - * 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', - * { account_id: '699d98642c564d2e855e9661899b7252' }, - * ); - * ``` + * @deprecated */ delete( bookmarkId: string, @@ -113,14 +78,7 @@ export class Bookmarks extends APIResource { /** * Fetches a single Bookmark application. * - * @example - * ```ts - * const bookmark = - * await client.zeroTrust.access.bookmarks.get( - * 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', - * { account_id: '699d98642c564d2e855e9661899b7252' }, - * ); - * ``` + * @deprecated */ get( bookmarkId: string, diff --git a/src/resources/zero-trust/access/infrastructure/targets.ts b/src/resources/zero-trust/access/infrastructure/targets.ts index 0c131221bf..721ece7405 100644 --- a/src/resources/zero-trust/access/infrastructure/targets.ts +++ b/src/resources/zero-trust/access/infrastructure/targets.ts @@ -108,12 +108,7 @@ export class Targets extends APIResource { /** * Removes one or more targets. * - * @example - * ```ts - * await client.zeroTrust.access.infrastructure.targets.bulkDelete( - * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, - * ); - * ``` + * @deprecated */ bulkDelete(params: TargetBulkDeleteParams, options?: Core.RequestOptions): Core.APIPromise { const { account_id } = params; diff --git a/src/resources/zero-trust/devices/devices.ts b/src/resources/zero-trust/devices/devices.ts index b85a53c4bd..04e193a510 100644 --- a/src/resources/zero-trust/devices/devices.ts +++ b/src/resources/zero-trust/devices/devices.ts @@ -146,15 +146,7 @@ export class Devices extends APIResource { * - GET /accounts/{account_id}/devices/physical-devices * - GET /accounts/{account_id}/devices/registrations * - * @example - * ```ts - * // Automatically fetches more pages as needed. - * for await (const device of client.zeroTrust.devices.list({ - * account_id: '699d98642c564d2e855e9661899b7252', - * })) { - * // ... - * } - * ``` + * @deprecated */ list(params: DeviceListParams, options?: Core.RequestOptions): Core.PagePromise { const { account_id } = params; @@ -169,13 +161,7 @@ export class Devices extends APIResource { * - GET /accounts/{account_id}/devices/physical-devices/{device_id} * - GET /accounts/{account_id}/devices/registrations/{registration_id} * - * @example - * ```ts - * const device = await client.zeroTrust.devices.get( - * 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', - * { account_id: '699d98642c564d2e855e9661899b7252' }, - * ); - * ``` + * @deprecated */ get( deviceId: string, diff --git a/src/resources/zero-trust/devices/override-codes.ts b/src/resources/zero-trust/devices/override-codes.ts index 5d879a7e14..512962ca46 100644 --- a/src/resources/zero-trust/devices/override-codes.ts +++ b/src/resources/zero-trust/devices/override-codes.ts @@ -13,16 +13,7 @@ export class OverrideCodes extends APIResource { * /accounts/{account_id}/devices/registrations/{registration_id}/override_codes * instead. * - * @example - * ```ts - * // Automatically fetches more pages as needed. - * for await (const overrideCodeListResponse of client.zeroTrust.devices.overrideCodes.list( - * 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', - * { account_id: '699d98642c564d2e855e9661899b7252' }, - * )) { - * // ... - * } - * ``` + * @deprecated */ list( deviceId: string, diff --git a/src/resources/zero-trust/devices/revoke.ts b/src/resources/zero-trust/devices/revoke.ts index f2583e1e72..8de2da70c3 100644 --- a/src/resources/zero-trust/devices/revoke.ts +++ b/src/resources/zero-trust/devices/revoke.ts @@ -10,15 +10,7 @@ export class Revoke extends APIResource { * **Deprecated**: please use POST * /accounts/{account_id}/devices/registrations/revoke instead. * - * @example - * ```ts - * const revoke = await client.zeroTrust.devices.revoke.create( - * { - * account_id: '699d98642c564d2e855e9661899b7252', - * body: ['f174e90a-fafe-4643-bbbc-4a0ed4fc8415'], - * }, - * ); - * ``` + * @deprecated */ create( params: RevokeCreateParams, diff --git a/src/resources/zero-trust/devices/unrevoke.ts b/src/resources/zero-trust/devices/unrevoke.ts index 3eab8c9204..7ee6606fd2 100644 --- a/src/resources/zero-trust/devices/unrevoke.ts +++ b/src/resources/zero-trust/devices/unrevoke.ts @@ -10,14 +10,7 @@ export class Unrevoke extends APIResource { * **Deprecated**: please use POST * /accounts/{account_id}/devices/registrations/unrevoke instead. * - * @example - * ```ts - * const unrevoke = - * await client.zeroTrust.devices.unrevoke.create({ - * account_id: '699d98642c564d2e855e9661899b7252', - * body: ['f174e90a-fafe-4643-bbbc-4a0ed4fc8415'], - * }); - * ``` + * @deprecated */ create( params: UnrevokeCreateParams, diff --git a/src/resources/zero-trust/gateway/configurations/custom-certificate.ts b/src/resources/zero-trust/gateway/configurations/custom-certificate.ts index 7bb4303098..90ee64d6bc 100755 --- a/src/resources/zero-trust/gateway/configurations/custom-certificate.ts +++ b/src/resources/zero-trust/gateway/configurations/custom-certificate.ts @@ -8,13 +8,7 @@ export class CustomCertificate extends APIResource { /** * Fetches the current Zero Trust certificate configuration. * - * @example - * ```ts - * const customCertificateSettings = - * await client.zeroTrust.gateway.configurations.customCertificate.get( - * { account_id: '699d98642c564d2e855e9661899b7252' }, - * ); - * ``` + * @deprecated */ get( params: CustomCertificateGetParams, diff --git a/src/resources/zero-trust/networks/routes/networks.ts b/src/resources/zero-trust/networks/routes/networks.ts index 69aad93848..febbf24c58 100644 --- a/src/resources/zero-trust/networks/routes/networks.ts +++ b/src/resources/zero-trust/networks/routes/networks.ts @@ -9,17 +9,7 @@ export class Networks extends APIResource { * Routes a private network through a Cloudflare Tunnel. The CIDR in * `ip_network_encoded` must be written in URL-encoded format. * - * @example - * ```ts - * const route = - * await client.zeroTrust.networks.routes.networks.create( - * '172.16.0.0%2F16', - * { - * account_id: '699d98642c564d2e855e9661899b7252', - * tunnel_id: 'f70ff985-a4ef-4643-bbbc-4a0ed4fc8415', - * }, - * ); - * ``` + * @deprecated This endpoint and its related APIs are deprecated in favor of the equivalent Tunnel Route (without CIDR) APIs. */ create( ipNetworkEncoded: string, @@ -44,14 +34,7 @@ export class Networks extends APIResource { * it will delete the route from that tunnel, otherwise it will delete the route * based on the vnet and tun_type. * - * @example - * ```ts - * const route = - * await client.zeroTrust.networks.routes.networks.delete( - * '172.16.0.0%2F16', - * { account_id: '699d98642c564d2e855e9661899b7252' }, - * ); - * ``` + * @deprecated This endpoint and its related APIs are deprecated in favor of the equivalent Tunnel Route (without CIDR) APIs. */ delete( ipNetworkEncoded: string, @@ -71,14 +54,7 @@ export class Networks extends APIResource { * Updates an existing private network route in an account. The CIDR in * `ip_network_encoded` must be written in URL-encoded format. * - * @example - * ```ts - * const route = - * await client.zeroTrust.networks.routes.networks.edit( - * '172.16.0.0%2F16', - * { account_id: '699d98642c564d2e855e9661899b7252' }, - * ); - * ``` + * @deprecated This endpoint and its related APIs are deprecated in favor of the equivalent Tunnel Route (without CIDR) APIs. */ edit( ipNetworkEncoded: string, From dd9edbdd04b13fe0a5420532b9fb9fc3edf63992 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 21:22:59 +0000 Subject: [PATCH 113/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 04b7ef4a37..72d4844dd4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-88ef04465786d370aa23f356861ae7be6fa003b366887b73dc53e559831de0b8.yml -openapi_spec_hash: bef5fe96cf1b7b2dca7081954de0b4cd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0af756ee9c23299c9338e332383c33e0256af5e2a598b4dae01310e706e12e5e.yml +openapi_spec_hash: db666d1d0bebc47ca9e4c430aaad3608 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 970161fb92e2db4822a0776d1442b2bc8e49b087 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 06:07:18 +0000 Subject: [PATCH 114/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 72d4844dd4..f1aa6e0e3a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0af756ee9c23299c9338e332383c33e0256af5e2a598b4dae01310e706e12e5e.yml -openapi_spec_hash: db666d1d0bebc47ca9e4c430aaad3608 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5d682f33926a73726354b9321bbf000936e22de25e093395d9c6cdebebf3b698.yml +openapi_spec_hash: 3e70f79498720d18f3ec95e4a2575c54 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From feaacff96f3a15b1423f36404dde70c3bfd5f640 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 08:46:48 +0000 Subject: [PATCH 115/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/url-scanner/scans.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index f1aa6e0e3a..69bc2d1a53 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5d682f33926a73726354b9321bbf000936e22de25e093395d9c6cdebebf3b698.yml -openapi_spec_hash: 3e70f79498720d18f3ec95e4a2575c54 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-343ecadb21bd1ea763c365c913600b3674d82225706eb2ce678423dd9c97a121.yml +openapi_spec_hash: a2a81e92d824c28f93996ab69d9fa4f6 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a diff --git a/src/resources/url-scanner/scans.ts b/src/resources/url-scanner/scans.ts index eadb5f5302..ada69ee42c 100644 --- a/src/resources/url-scanner/scans.ts +++ b/src/resources/url-scanner/scans.ts @@ -164,7 +164,7 @@ export interface ScanCreateResponse { message: string; /** - * URL to report. + * Public URL to report. */ result: string; @@ -181,7 +181,7 @@ export interface ScanCreateResponse { /** * Submitted visibility status. */ - visibility: string; + visibility: 'public' | 'unlisted'; options?: ScanCreateResponse.Options; } @@ -275,7 +275,7 @@ export namespace ScanBulkCreateResponse { /** * Submitted visibility status. */ - visibility: string; + visibility: 'public' | 'unlisted'; options?: ScanBulkCreateResponseItem.Options; } @@ -1331,7 +1331,7 @@ export interface ScanCreateParams { url: string; /** - * Body param: + * Body param: Country to geo egress from */ country?: | 'AF' From 21ac3ecd41b9cc0779cee69f46f799b8653850f6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 09:07:16 +0000 Subject: [PATCH 116/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 69bc2d1a53..4d8ce041c6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-343ecadb21bd1ea763c365c913600b3674d82225706eb2ce678423dd9c97a121.yml -openapi_spec_hash: a2a81e92d824c28f93996ab69d9fa4f6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f816cc7267b7e25aee7eb08329feb65390011cf89d66cfc51f652daafa5fad8d.yml +openapi_spec_hash: ce0feef0af38c54d96773a83fa9396de config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From c235f75609d2bf6abdeb0431ea4b645ae1ccbf57 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 09:10:38 +0000 Subject: [PATCH 117/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4d8ce041c6..4f5f470559 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f816cc7267b7e25aee7eb08329feb65390011cf89d66cfc51f652daafa5fad8d.yml -openapi_spec_hash: ce0feef0af38c54d96773a83fa9396de +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fa49a5d47502f12868578eb74b865ecc77adf3ad9b38537a6b28df8ede63c764.yml +openapi_spec_hash: 97306b073ee682d81f94f6e749fac88b config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 274613629644cb6d4be93184db79e92627041e00 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 12:01:36 +0000 Subject: [PATCH 118/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4f5f470559..12949441d1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fa49a5d47502f12868578eb74b865ecc77adf3ad9b38537a6b28df8ede63c764.yml -openapi_spec_hash: 97306b073ee682d81f94f6e749fac88b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e7a8ad848ba4d4c303cde7fcc8a19e06ffe34eeb64a15e39645cc3b4e13f1e11.yml +openapi_spec_hash: 6183650a664d7c1804d193c23d5dc4d4 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From b79435bef9724ddfc67b31669ab663a010e7faab Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 13:26:11 +0000 Subject: [PATCH 119/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 12949441d1..983824603d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e7a8ad848ba4d4c303cde7fcc8a19e06ffe34eeb64a15e39645cc3b4e13f1e11.yml -openapi_spec_hash: 6183650a664d7c1804d193c23d5dc4d4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0d6ebdd9d207fe01b8b775b1147ddf34fdfb69145347eaec846b2733e5fe1edf.yml +openapi_spec_hash: 1ab9029937ec8b02eb01042e551b51e1 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 205ef38870d2254fa8e0604acadb329e600182b4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 13:58:42 +0000 Subject: [PATCH 120/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 983824603d..221600f35a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0d6ebdd9d207fe01b8b775b1147ddf34fdfb69145347eaec846b2733e5fe1edf.yml -openapi_spec_hash: 1ab9029937ec8b02eb01042e551b51e1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7d4e9bca750e2ca3ef9ae2fc65a969dd84f547d35a3d2e005cbe195315c45ca3.yml +openapi_spec_hash: f269fd12e48895a52a77ea665f17fe6f config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From efcd1d4e74bc3b9a89583e1e6dfd966e7bae2a9f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 14:00:55 +0000 Subject: [PATCH 121/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 221600f35a..e9b94b4326 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7d4e9bca750e2ca3ef9ae2fc65a969dd84f547d35a3d2e005cbe195315c45ca3.yml -openapi_spec_hash: f269fd12e48895a52a77ea665f17fe6f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7ceaa19fb0d23adca84a8104f00abd838760bef2d1848c696443e9942f046bc2.yml +openapi_spec_hash: 478df7d16d2bc0c906d2478b6b0d6bbb config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 6561bd3e0e968987c8cd177a6d551e596db38b83 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 15:38:36 +0000 Subject: [PATCH 122/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e9b94b4326..9ca0dfb081 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7ceaa19fb0d23adca84a8104f00abd838760bef2d1848c696443e9942f046bc2.yml -openapi_spec_hash: 478df7d16d2bc0c906d2478b6b0d6bbb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f31010d8c554a8c0c93f0f7d75a7ba06c043204910e4910250a21bc43588ce7b.yml +openapi_spec_hash: f8be98de7d0da3e0e5987a6c25a2ffed config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 19014e2482ee5f79550fca42fc2886134f6d9511 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 16:20:23 +0000 Subject: [PATCH 123/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9ca0dfb081..e1ba2eda14 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f31010d8c554a8c0c93f0f7d75a7ba06c043204910e4910250a21bc43588ce7b.yml -openapi_spec_hash: f8be98de7d0da3e0e5987a6c25a2ffed +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ff1cc38f9e4592033aeac3934ebb6d3e77dcc3db4b2a53adb24094e7e0b02d9f.yml +openapi_spec_hash: 82255d9b050f9b9ed02578dc11283377 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From d3e013c156b701f562133aa1bd7e97c18eac353a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 16:33:17 +0000 Subject: [PATCH 124/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e1ba2eda14..de5a4ce92a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ff1cc38f9e4592033aeac3934ebb6d3e77dcc3db4b2a53adb24094e7e0b02d9f.yml -openapi_spec_hash: 82255d9b050f9b9ed02578dc11283377 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d5fa7f5b5644345c929c8854acbd3f6752c6d27c635dfe5c2ebd72cac67a3c6d.yml +openapi_spec_hash: f1fdd60b2ffffc39c390e16d5ab8b98f config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From f51f6f7ae6e0607a869568ec5a30be9140660dbd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 17:21:57 +0000 Subject: [PATCH 125/366] feat(api): api update --- .stats.yml | 4 +- src/resources/workers/scripts/versions.ts | 1118 ++++++++++++++++++++- 2 files changed, 1110 insertions(+), 12 deletions(-) diff --git a/.stats.yml b/.stats.yml index de5a4ce92a..d24820cab7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d5fa7f5b5644345c929c8854acbd3f6752c6d27c635dfe5c2ebd72cac67a3c6d.yml -openapi_spec_hash: f1fdd60b2ffffc39c390e16d5ab8b98f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-385d33e3c4293330da3f98a81530c73bf201e48d2d8fa2e3a5f270814bb4ec8b.yml +openapi_spec_hash: ea2e54be2a1de27cf28aadcda03e2271 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a diff --git a/src/resources/workers/scripts/versions.ts b/src/resources/workers/scripts/versions.ts index 5df3e84ba9..70e60e8e4c 100644 --- a/src/resources/workers/scripts/versions.ts +++ b/src/resources/workers/scripts/versions.ts @@ -94,33 +94,1131 @@ export class Versions extends APIResource { export class VersionListResponsesV4PagePagination extends V4PagePagination {} export interface VersionCreateResponse { - resources: unknown; + resources: VersionCreateResponse.Resources; id?: string; - metadata?: unknown; + metadata?: VersionCreateResponse.Metadata; number?: number; startup_time_ms?: number; } +export namespace VersionCreateResponse { + export interface Resources { + bindings?: Resources.Bindings; + + script?: Resources.Script; + + script_runtime?: Resources.ScriptRuntime; + } + + export namespace Resources { + export interface Bindings { + /** + * List of bindings attached to a Worker. You can find more about bindings on our + * docs: + * https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings. + */ + result?: Array< + | Bindings.WorkersBindingKindAI + | Bindings.WorkersBindingKindAnalyticsEngine + | Bindings.WorkersBindingKindAssets + | Bindings.WorkersBindingKindBrowser + | Bindings.WorkersBindingKindD1 + | Bindings.WorkersBindingKindDispatchNamespace + | Bindings.WorkersBindingKindDurableObjectNamespace + | Bindings.WorkersBindingKindHyperdrive + | Bindings.WorkersBindingKindJson + | Bindings.WorkersBindingKindKVNamespace + | Bindings.WorkersBindingKindMTLSCertificate + | Bindings.WorkersBindingKindPlainText + | Bindings.WorkersBindingKindPipelines + | Bindings.WorkersBindingKindQueue + | Bindings.WorkersBindingKindR2Bucket + | Bindings.WorkersBindingKindSecretText + | Bindings.WorkersBindingKindService + | Bindings.WorkersBindingKindTailConsumer + | Bindings.WorkersBindingKindVectorize + | Bindings.WorkersBindingKindVersionMetadata + | Bindings.WorkersBindingKindSecretsStoreSecret + | Bindings.WorkersBindingKindSecretKey + >; + } + + export namespace Bindings { + export interface WorkersBindingKindAI { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'ai'; + } + + export interface WorkersBindingKindAnalyticsEngine { + /** + * The name of the dataset to bind to. + */ + dataset: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'analytics_engine'; + } + + export interface WorkersBindingKindAssets { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'assets'; + } + + export interface WorkersBindingKindBrowser { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'browser'; + } + + export interface WorkersBindingKindD1 { + /** + * Identifier of the D1 database to bind to. + */ + id: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'd1'; + } + + export interface WorkersBindingKindDispatchNamespace { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * Namespace to bind to. + */ + namespace: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'dispatch_namespace'; + + /** + * Outbound worker. + */ + outbound?: WorkersBindingKindDispatchNamespace.Outbound; + } + + export namespace WorkersBindingKindDispatchNamespace { + /** + * Outbound worker. + */ + export interface Outbound { + /** + * Pass information from the Dispatch Worker to the Outbound Worker through the + * parameters. + */ + params?: Array; + + /** + * Outbound worker. + */ + worker?: Outbound.Worker; + } + + export namespace Outbound { + /** + * Outbound worker. + */ + export interface Worker { + /** + * Environment of the outbound worker. + */ + environment?: string; + + /** + * Name of the outbound worker. + */ + service?: string; + } + } + } + + export interface WorkersBindingKindDurableObjectNamespace { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'durable_object_namespace'; + + /** + * The exported class name of the Durable Object. + */ + class_name?: string; + + /** + * The environment of the script_name to bind to. + */ + environment?: string; + + /** + * Namespace identifier tag. + */ + namespace_id?: string; + + /** + * The script where the Durable Object is defined, if it is external to this + * Worker. + */ + script_name?: string; + } + + export interface WorkersBindingKindHyperdrive { + /** + * Identifier of the Hyperdrive connection to bind to. + */ + id: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'hyperdrive'; + } + + export interface WorkersBindingKindJson { + /** + * JSON data to use. + */ + json: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'json'; + } + + export interface WorkersBindingKindKVNamespace { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * Namespace identifier tag. + */ + namespace_id: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'kv_namespace'; + } + + export interface WorkersBindingKindMTLSCertificate { + /** + * Identifier of the certificate to bind to. + */ + certificate_id: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'mtls_certificate'; + } + + export interface WorkersBindingKindPlainText { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The text value to use. + */ + text: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'plain_text'; + } + + export interface WorkersBindingKindPipelines { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * Name of the Pipeline to bind to. + */ + pipeline: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'pipelines'; + } + + export interface WorkersBindingKindQueue { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * Name of the Queue to bind to. + */ + queue_name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'queue'; + } + + export interface WorkersBindingKindR2Bucket { + /** + * R2 bucket to bind to. + */ + bucket_name: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'r2_bucket'; + } + + export interface WorkersBindingKindSecretText { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'secret_text'; + } + + export interface WorkersBindingKindService { + /** + * Optional environment if the Worker utilizes one. + */ + environment: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * Name of Worker to bind to. + */ + service: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'service'; + } + + export interface WorkersBindingKindTailConsumer { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * Name of Tail Worker to bind to. + */ + service: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'tail_consumer'; + } + + export interface WorkersBindingKindVectorize { + /** + * Name of the Vectorize index to bind to. + */ + index_name: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'vectorize'; + } + + export interface WorkersBindingKindVersionMetadata { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'version_metadata'; + } + + export interface WorkersBindingKindSecretsStoreSecret { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * Name of the secret in the store. + */ + secret_name: string; + + /** + * ID of the store containing the secret. + */ + store_id: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'secrets_store_secret'; + } + + export interface WorkersBindingKindSecretKey { + /** + * Algorithm-specific key parameters. + * [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm). + */ + algorithm: unknown; + + /** + * Data format of the key. + * [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format). + */ + format: 'raw' | 'pkcs8' | 'spki' | 'jwk'; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'secret_key'; + + /** + * Allowed operations with the key. + * [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages). + */ + usages: Array< + 'encrypt' | 'decrypt' | 'sign' | 'verify' | 'deriveKey' | 'deriveBits' | 'wrapKey' | 'unwrapKey' + >; + } + } + + export interface Script { + etag?: string; + + handlers?: Array; + + last_deployed_from?: string; + + named_handlers?: Array; + } + + export namespace Script { + export interface NamedHandler { + handlers?: Array; + + name?: string; + } + } + + export interface ScriptRuntime { + compatibility_date?: string; + + compatibility_flags?: Array; + + limits?: ScriptRuntime.Limits; + + migration_tag?: string; + + usage_model?: 'bundled' | 'unbound' | 'standard'; + } + + export namespace ScriptRuntime { + export interface Limits { + cpu_ms?: number; + } + } + } + + export interface Metadata { + author_email?: string; + + author_id?: string; + + created_on?: string; + + hasPreview?: boolean; + + modified_on?: string; + + source?: + | 'unknown' + | 'api' + | 'wrangler' + | 'terraform' + | 'dash' + | 'dash_template' + | 'integration' + | 'quick_editor' + | 'playground' + | 'workersci'; + } +} + export interface VersionListResponse { id?: string; - metadata?: unknown; + metadata?: VersionListResponse.Metadata; + + number?: number; +} + +export namespace VersionListResponse { + export interface Metadata { + author_email?: string; + + author_id?: string; + + created_on?: string; + + hasPreview?: boolean; + + modified_on?: string; + + source?: + | 'unknown' + | 'api' + | 'wrangler' + | 'terraform' + | 'dash' + | 'dash_template' + | 'integration' + | 'quick_editor' + | 'playground' + | 'workersci'; + } +} + +export interface VersionGetResponse { + resources: VersionGetResponse.Resources; + + id?: string; + + metadata?: VersionGetResponse.Metadata; + + number?: number; +} + +export namespace VersionGetResponse { + export interface Resources { + bindings?: Resources.Bindings; + + script?: Resources.Script; + + script_runtime?: Resources.ScriptRuntime; + } + + export namespace Resources { + export interface Bindings { + /** + * List of bindings attached to a Worker. You can find more about bindings on our + * docs: + * https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings. + */ + result?: Array< + | Bindings.WorkersBindingKindAI + | Bindings.WorkersBindingKindAnalyticsEngine + | Bindings.WorkersBindingKindAssets + | Bindings.WorkersBindingKindBrowser + | Bindings.WorkersBindingKindD1 + | Bindings.WorkersBindingKindDispatchNamespace + | Bindings.WorkersBindingKindDurableObjectNamespace + | Bindings.WorkersBindingKindHyperdrive + | Bindings.WorkersBindingKindJson + | Bindings.WorkersBindingKindKVNamespace + | Bindings.WorkersBindingKindMTLSCertificate + | Bindings.WorkersBindingKindPlainText + | Bindings.WorkersBindingKindPipelines + | Bindings.WorkersBindingKindQueue + | Bindings.WorkersBindingKindR2Bucket + | Bindings.WorkersBindingKindSecretText + | Bindings.WorkersBindingKindService + | Bindings.WorkersBindingKindTailConsumer + | Bindings.WorkersBindingKindVectorize + | Bindings.WorkersBindingKindVersionMetadata + | Bindings.WorkersBindingKindSecretsStoreSecret + | Bindings.WorkersBindingKindSecretKey + >; + } + + export namespace Bindings { + export interface WorkersBindingKindAI { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'ai'; + } + + export interface WorkersBindingKindAnalyticsEngine { + /** + * The name of the dataset to bind to. + */ + dataset: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'analytics_engine'; + } + + export interface WorkersBindingKindAssets { + /** + * A JavaScript variable name for the binding. + */ + name: string; - number?: number; -} + /** + * The kind of resource that the binding provides. + */ + type: 'assets'; + } -export interface VersionGetResponse { - resources: unknown; + export interface WorkersBindingKindBrowser { + /** + * A JavaScript variable name for the binding. + */ + name: string; - id?: string; + /** + * The kind of resource that the binding provides. + */ + type: 'browser'; + } + + export interface WorkersBindingKindD1 { + /** + * Identifier of the D1 database to bind to. + */ + id: string; - metadata?: unknown; + /** + * A JavaScript variable name for the binding. + */ + name: string; - number?: number; + /** + * The kind of resource that the binding provides. + */ + type: 'd1'; + } + + export interface WorkersBindingKindDispatchNamespace { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * Namespace to bind to. + */ + namespace: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'dispatch_namespace'; + + /** + * Outbound worker. + */ + outbound?: WorkersBindingKindDispatchNamespace.Outbound; + } + + export namespace WorkersBindingKindDispatchNamespace { + /** + * Outbound worker. + */ + export interface Outbound { + /** + * Pass information from the Dispatch Worker to the Outbound Worker through the + * parameters. + */ + params?: Array; + + /** + * Outbound worker. + */ + worker?: Outbound.Worker; + } + + export namespace Outbound { + /** + * Outbound worker. + */ + export interface Worker { + /** + * Environment of the outbound worker. + */ + environment?: string; + + /** + * Name of the outbound worker. + */ + service?: string; + } + } + } + + export interface WorkersBindingKindDurableObjectNamespace { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'durable_object_namespace'; + + /** + * The exported class name of the Durable Object. + */ + class_name?: string; + + /** + * The environment of the script_name to bind to. + */ + environment?: string; + + /** + * Namespace identifier tag. + */ + namespace_id?: string; + + /** + * The script where the Durable Object is defined, if it is external to this + * Worker. + */ + script_name?: string; + } + + export interface WorkersBindingKindHyperdrive { + /** + * Identifier of the Hyperdrive connection to bind to. + */ + id: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'hyperdrive'; + } + + export interface WorkersBindingKindJson { + /** + * JSON data to use. + */ + json: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'json'; + } + + export interface WorkersBindingKindKVNamespace { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * Namespace identifier tag. + */ + namespace_id: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'kv_namespace'; + } + + export interface WorkersBindingKindMTLSCertificate { + /** + * Identifier of the certificate to bind to. + */ + certificate_id: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'mtls_certificate'; + } + + export interface WorkersBindingKindPlainText { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The text value to use. + */ + text: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'plain_text'; + } + + export interface WorkersBindingKindPipelines { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * Name of the Pipeline to bind to. + */ + pipeline: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'pipelines'; + } + + export interface WorkersBindingKindQueue { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * Name of the Queue to bind to. + */ + queue_name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'queue'; + } + + export interface WorkersBindingKindR2Bucket { + /** + * R2 bucket to bind to. + */ + bucket_name: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'r2_bucket'; + } + + export interface WorkersBindingKindSecretText { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'secret_text'; + } + + export interface WorkersBindingKindService { + /** + * Optional environment if the Worker utilizes one. + */ + environment: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * Name of Worker to bind to. + */ + service: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'service'; + } + + export interface WorkersBindingKindTailConsumer { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * Name of Tail Worker to bind to. + */ + service: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'tail_consumer'; + } + + export interface WorkersBindingKindVectorize { + /** + * Name of the Vectorize index to bind to. + */ + index_name: string; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'vectorize'; + } + + export interface WorkersBindingKindVersionMetadata { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'version_metadata'; + } + + export interface WorkersBindingKindSecretsStoreSecret { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * Name of the secret in the store. + */ + secret_name: string; + + /** + * ID of the store containing the secret. + */ + store_id: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'secrets_store_secret'; + } + + export interface WorkersBindingKindSecretKey { + /** + * Algorithm-specific key parameters. + * [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm). + */ + algorithm: unknown; + + /** + * Data format of the key. + * [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format). + */ + format: 'raw' | 'pkcs8' | 'spki' | 'jwk'; + + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'secret_key'; + + /** + * Allowed operations with the key. + * [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages). + */ + usages: Array< + 'encrypt' | 'decrypt' | 'sign' | 'verify' | 'deriveKey' | 'deriveBits' | 'wrapKey' | 'unwrapKey' + >; + } + } + + export interface Script { + etag?: string; + + handlers?: Array; + + last_deployed_from?: string; + + named_handlers?: Array; + } + + export namespace Script { + export interface NamedHandler { + handlers?: Array; + + name?: string; + } + } + + export interface ScriptRuntime { + compatibility_date?: string; + + compatibility_flags?: Array; + + limits?: ScriptRuntime.Limits; + + migration_tag?: string; + + usage_model?: 'bundled' | 'unbound' | 'standard'; + } + + export namespace ScriptRuntime { + export interface Limits { + cpu_ms?: number; + } + } + } + + export interface Metadata { + author_email?: string; + + author_id?: string; + + created_on?: string; + + hasPreview?: boolean; + + modified_on?: string; + + source?: + | 'unknown' + | 'api' + | 'wrangler' + | 'terraform' + | 'dash' + | 'dash_template' + | 'integration' + | 'quick_editor' + | 'playground' + | 'workersci'; + } } export interface VersionCreateParams { From ed32f0a23df4b6e68c1e4857fa2ce4a3dec1de87 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 17:32:40 +0000 Subject: [PATCH 126/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d24820cab7..bf058e66de 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-385d33e3c4293330da3f98a81530c73bf201e48d2d8fa2e3a5f270814bb4ec8b.yml -openapi_spec_hash: ea2e54be2a1de27cf28aadcda03e2271 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-786daa4fa3adb45197f828e7021ff83e5fdad7f46ea547e3c0229abf5e6fc2ee.yml +openapi_spec_hash: 2013a53e325fbd952df69d230be05c38 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From aafd6898f924ee4963a0448820cc19ffc2b66e33 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 17:45:11 +0000 Subject: [PATCH 127/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index bf058e66de..e6129a945d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-786daa4fa3adb45197f828e7021ff83e5fdad7f46ea547e3c0229abf5e6fc2ee.yml -openapi_spec_hash: 2013a53e325fbd952df69d230be05c38 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0fb961d11bd285cf2881f5386aba09c21c17fe517941e6e0ed7d3e5afa7e286c.yml +openapi_spec_hash: efdd226868a4f9a714f94221c32f92e7 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From a56e7dc97af2a5d5386848e1dc244a3a92ceb393 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 18:11:36 +0000 Subject: [PATCH 128/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e6129a945d..2c54af6366 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0fb961d11bd285cf2881f5386aba09c21c17fe517941e6e0ed7d3e5afa7e286c.yml -openapi_spec_hash: efdd226868a4f9a714f94221c32f92e7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-21eb6663edb9e8ab5d888ae3e2e5e917b4d6d9b41c3b03e41d8e2b94447deecc.yml +openapi_spec_hash: f1b824465e6e96e2e1b214a46ed67394 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From e8d938be610f263b851509deafa3ab8389f51a12 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 20:18:56 +0000 Subject: [PATCH 129/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2c54af6366..7cb8098039 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-21eb6663edb9e8ab5d888ae3e2e5e917b4d6d9b41c3b03e41d8e2b94447deecc.yml -openapi_spec_hash: f1b824465e6e96e2e1b214a46ed67394 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8bad204a2787908305ee1d47b0f8abecf804aa054e4b793be7d52020602894e8.yml +openapi_spec_hash: aed018f4873de52cb24324607c61ceab config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 59a6cfc7c7f3a8cc96e3e637d4a37722c290be4c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 20:59:39 +0000 Subject: [PATCH 130/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7cb8098039..d3b4fed1a1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8bad204a2787908305ee1d47b0f8abecf804aa054e4b793be7d52020602894e8.yml -openapi_spec_hash: aed018f4873de52cb24324607c61ceab +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a5b60dfd004696944dc47829633080f9fec655b8bf6b4e58116c805f61cb1eb5.yml +openapi_spec_hash: 79852ca600d2e2bc8731d7cb637d6ead config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From f8669fcdc1cec8f32d38459a58ef91e2530ba248 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 21:03:24 +0000 Subject: [PATCH 131/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d3b4fed1a1..32cb8e9231 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a5b60dfd004696944dc47829633080f9fec655b8bf6b4e58116c805f61cb1eb5.yml -openapi_spec_hash: 79852ca600d2e2bc8731d7cb637d6ead +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a9f02cd519e50a3dc8f57b3dc47b8bc44ac3991394c7a8dec62fe7007c452653.yml +openapi_spec_hash: d6d72a4acea09bc4a5fd1bde59bf7ff1 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From ae029d400ba45f805cef9bdf9961b4f4d3f88733 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 06:13:14 +0000 Subject: [PATCH 132/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 32cb8e9231..eb606b9074 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a9f02cd519e50a3dc8f57b3dc47b8bc44ac3991394c7a8dec62fe7007c452653.yml -openapi_spec_hash: d6d72a4acea09bc4a5fd1bde59bf7ff1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8affab513450f40371d029dcdced02843335ba155ddf2e77a13921e3b71148b9.yml +openapi_spec_hash: 8b83a04c4dbf6489b7c57bbbe4a4decf config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 6e5e5ca216d950ed2919a568b3eeb14dea4d5a19 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 06:17:39 +0000 Subject: [PATCH 133/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index eb606b9074..e6129a945d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8affab513450f40371d029dcdced02843335ba155ddf2e77a13921e3b71148b9.yml -openapi_spec_hash: 8b83a04c4dbf6489b7c57bbbe4a4decf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0fb961d11bd285cf2881f5386aba09c21c17fe517941e6e0ed7d3e5afa7e286c.yml +openapi_spec_hash: efdd226868a4f9a714f94221c32f92e7 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From afea6bd7d43092b983316ef2432a4b207c7048de Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 08:56:48 +0000 Subject: [PATCH 134/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e6129a945d..b722a7f785 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0fb961d11bd285cf2881f5386aba09c21c17fe517941e6e0ed7d3e5afa7e286c.yml -openapi_spec_hash: efdd226868a4f9a714f94221c32f92e7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e49ed7d1fe186c7a30728f661c1576cd8abac298d1e2c2e9a54db32501a0011b.yml +openapi_spec_hash: 16929221c7a362c3f47331310119cd6a config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 639010e1c9bce08922ad8cd2d6cb9c086a171834 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 09:00:30 +0000 Subject: [PATCH 135/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b722a7f785..8c20cd4823 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e49ed7d1fe186c7a30728f661c1576cd8abac298d1e2c2e9a54db32501a0011b.yml -openapi_spec_hash: 16929221c7a362c3f47331310119cd6a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f2419bf55089756d40e11f34634bca196aee06ef175c811006639626968ee64d.yml +openapi_spec_hash: f106aded23a1fb2992b64a92f18198a8 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From f39cf0988a0e3025f1b6263efa4859fc8cda2030 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 10:27:51 +0000 Subject: [PATCH 136/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/workflows/instances/instances.ts | 4 ++-- src/resources/workflows/instances/status.ts | 4 ++-- src/resources/workflows/workflows.ts | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8c20cd4823..b19c472017 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f2419bf55089756d40e11f34634bca196aee06ef175c811006639626968ee64d.yml -openapi_spec_hash: f106aded23a1fb2992b64a92f18198a8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5ad399170cb0b132651bbd1c714eb1b2a88ddbb9bfd1d4eb931c97c1a69ac27f.yml +openapi_spec_hash: da07b2caa9c0ead591c4a6859b48beb1 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a diff --git a/src/resources/workflows/instances/instances.ts b/src/resources/workflows/instances/instances.ts index f011106e56..e334dd2e3f 100644 --- a/src/resources/workflows/instances/instances.ts +++ b/src/resources/workflows/instances/instances.ts @@ -331,12 +331,12 @@ export interface InstanceListParams extends V4PagePaginationArrayParams { account_id: string; /** - * Query param: In ISO 8601 with no timezone offsets and in UTC. + * Query param: Accepts ISO 8601 with no timezone offsets and in UTC. */ date_end?: string; /** - * Query param: In ISO 8601 with no timezone offsets and in UTC. + * Query param: Accepts ISO 8601 with no timezone offsets and in UTC. */ date_start?: string; diff --git a/src/resources/workflows/instances/status.ts b/src/resources/workflows/instances/status.ts index 346c667b01..54b3ce3cc9 100644 --- a/src/resources/workflows/instances/status.ts +++ b/src/resources/workflows/instances/status.ts @@ -35,7 +35,7 @@ export interface StatusEditResponse { | 'waiting'; /** - * In ISO 8601 with no timezone offsets and in UTC. + * Accepts ISO 8601 with no timezone offsets and in UTC. */ timestamp: string; } @@ -47,7 +47,7 @@ export interface StatusEditParams { account_id: string; /** - * Body param: Possible actions to apply to instance. + * Body param: Apply action to instance. */ status: 'resume' | 'pause' | 'terminate'; } diff --git a/src/resources/workflows/workflows.ts b/src/resources/workflows/workflows.ts index af9ba3f17f..d7f69588d8 100644 --- a/src/resources/workflows/workflows.ts +++ b/src/resources/workflows/workflows.ts @@ -227,7 +227,7 @@ export interface WorkflowListParams extends V4PagePaginationArrayParams { account_id: string; /** - * Query param: Filter workflows by name. + * Query param: Allows filtering workflows` name. */ search?: string; } From 9a1e9a6d90f75dc7396b38224e0c8b79b82279c7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 10:31:16 +0000 Subject: [PATCH 137/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b19c472017..0cdcc60f46 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5ad399170cb0b132651bbd1c714eb1b2a88ddbb9bfd1d4eb931c97c1a69ac27f.yml -openapi_spec_hash: da07b2caa9c0ead591c4a6859b48beb1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cac580b7ab786fd3bd0aeaac64719cbfd0485087046230aacab02dab783c2221.yml +openapi_spec_hash: 3054a3488a35bb04eec0782660bd4ba1 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 790079c1d58b50eb1d8f276b6e2b1e2362f7df3c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 12:39:09 +0000 Subject: [PATCH 138/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0cdcc60f46..9983b314ec 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cac580b7ab786fd3bd0aeaac64719cbfd0485087046230aacab02dab783c2221.yml -openapi_spec_hash: 3054a3488a35bb04eec0782660bd4ba1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a59595743978c00534463073c59eb426e70c58e5b1b0ef6ac6a9f7c8b2df0ab0.yml +openapi_spec_hash: fbc77131de36b29993cfeda3b4086a25 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From bd5d3c9168a50c831feb011403292e133d340651 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 12:55:31 +0000 Subject: [PATCH 139/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9983b314ec..b19c472017 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a59595743978c00534463073c59eb426e70c58e5b1b0ef6ac6a9f7c8b2df0ab0.yml -openapi_spec_hash: fbc77131de36b29993cfeda3b4086a25 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5ad399170cb0b132651bbd1c714eb1b2a88ddbb9bfd1d4eb931c97c1a69ac27f.yml +openapi_spec_hash: da07b2caa9c0ead591c4a6859b48beb1 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 10e624031dea8402b5e1d9ccf7ecf759d78e8af1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 13:51:12 +0000 Subject: [PATCH 140/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b19c472017..0bbc904aa8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5ad399170cb0b132651bbd1c714eb1b2a88ddbb9bfd1d4eb931c97c1a69ac27f.yml -openapi_spec_hash: da07b2caa9c0ead591c4a6859b48beb1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0af5664bb0c48e1eb834cb89d1101a42c71916c780c7652a0931f288ee1c373e.yml +openapi_spec_hash: 5edd43d221da5d269c9806f0c93fbe48 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From bbbf0927c7b3c9f6638a6b40df1740c85012da2b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 14:07:55 +0000 Subject: [PATCH 141/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0bbc904aa8..59d4a2e365 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0af5664bb0c48e1eb834cb89d1101a42c71916c780c7652a0931f288ee1c373e.yml -openapi_spec_hash: 5edd43d221da5d269c9806f0c93fbe48 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4b5a42f58bb0b090b4bf18e3aaff2a46c66eb38b8dee76b9d3016f5cabfae0df.yml +openapi_spec_hash: 3f8ce0efae622a8cc539dbf1fa963d3e config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 8acd9a22941cab3239de1e64600ef459c8ab9be2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 14:11:22 +0000 Subject: [PATCH 142/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 59d4a2e365..6a4165b034 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4b5a42f58bb0b090b4bf18e3aaff2a46c66eb38b8dee76b9d3016f5cabfae0df.yml -openapi_spec_hash: 3f8ce0efae622a8cc539dbf1fa963d3e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-57e58962857820c846dd4044ee2d5c653fd528e8207eefe899b1950996b2a9b2.yml +openapi_spec_hash: f6fc806902a82665e6b970f6213cba15 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From aec45b9941a7303191bd17e36fe6e5ffee81eef4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 14:16:37 +0000 Subject: [PATCH 143/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6a4165b034..b19c472017 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-57e58962857820c846dd4044ee2d5c653fd528e8207eefe899b1950996b2a9b2.yml -openapi_spec_hash: f6fc806902a82665e6b970f6213cba15 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5ad399170cb0b132651bbd1c714eb1b2a88ddbb9bfd1d4eb931c97c1a69ac27f.yml +openapi_spec_hash: da07b2caa9c0ead591c4a6859b48beb1 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From a7b6a19fcf7dd82f401e25dc129239f3f8418e64 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 14:40:33 +0000 Subject: [PATCH 144/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b19c472017..c60a998869 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5ad399170cb0b132651bbd1c714eb1b2a88ddbb9bfd1d4eb931c97c1a69ac27f.yml -openapi_spec_hash: da07b2caa9c0ead591c4a6859b48beb1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-adb58a17de135767e292ccdcbfd95514b3824545d74517d5c64fd2af89523069.yml +openapi_spec_hash: 8fb4f1fc870e01d21c27c22f32a304f7 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From d98c843366cb5bf43801923af3622348c6c1f5dd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 14:52:57 +0000 Subject: [PATCH 145/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c60a998869..a586256e4c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-adb58a17de135767e292ccdcbfd95514b3824545d74517d5c64fd2af89523069.yml -openapi_spec_hash: 8fb4f1fc870e01d21c27c22f32a304f7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c71f36464c1ade4bc7cdc23cff88aa83ef0357509197a11c0753247c09121c29.yml +openapi_spec_hash: cd38e4e7f0b8df95dc6a5ef4ac2c0ba4 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From f8e0730f258218757807b151e7f0a981ffe3c28b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 15:44:21 +0000 Subject: [PATCH 146/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a586256e4c..6d4bf1d427 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c71f36464c1ade4bc7cdc23cff88aa83ef0357509197a11c0753247c09121c29.yml -openapi_spec_hash: cd38e4e7f0b8df95dc6a5ef4ac2c0ba4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-93d1e10bebdfc708da6ffcb3268771c8252595bab6cac401ecdeb79d6fbc4bf8.yml +openapi_spec_hash: 71f462085c64a8d70a36366e18310c74 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 02e64ff03cd122435705e5e2b39abe03386c0a5f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 15:58:45 +0000 Subject: [PATCH 147/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6d4bf1d427..770d98bf61 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-93d1e10bebdfc708da6ffcb3268771c8252595bab6cac401ecdeb79d6fbc4bf8.yml -openapi_spec_hash: 71f462085c64a8d70a36366e18310c74 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d729eef275579f2fb7cf6b5656dadd54facdc9eab7b900d8fc953685a70d1c39.yml +openapi_spec_hash: 06ce90e237a99f9ef1adf8f522de484f config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 0bfb90fd84cdcc24febdec33b2627de92d1d8f04 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 16:02:39 +0000 Subject: [PATCH 148/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 770d98bf61..ef7001bf34 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d729eef275579f2fb7cf6b5656dadd54facdc9eab7b900d8fc953685a70d1c39.yml -openapi_spec_hash: 06ce90e237a99f9ef1adf8f522de484f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-100fc29dddb438582b1a3ce72042d66e28a146687830aee7a8518c56f39b69d1.yml +openapi_spec_hash: 67c4fd63cccc8700f839266bded1d94e config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 00f671559992924732ae39e30b9b36d56f50f831 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 16:14:10 +0000 Subject: [PATCH 149/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ef7001bf34..0154420c4d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-100fc29dddb438582b1a3ce72042d66e28a146687830aee7a8518c56f39b69d1.yml -openapi_spec_hash: 67c4fd63cccc8700f839266bded1d94e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3d322138287e446753ef90fb81697a9006b56a60e6fb8a4ad31faa62e750472b.yml +openapi_spec_hash: 827901230fa8246dd7d657de41155fba config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 0e7bf46c925b659e273305a6b806c4485e28af94 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 17:00:28 +0000 Subject: [PATCH 150/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0154420c4d..ef7001bf34 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3d322138287e446753ef90fb81697a9006b56a60e6fb8a4ad31faa62e750472b.yml -openapi_spec_hash: 827901230fa8246dd7d657de41155fba +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-100fc29dddb438582b1a3ce72042d66e28a146687830aee7a8518c56f39b69d1.yml +openapi_spec_hash: 67c4fd63cccc8700f839266bded1d94e config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 73887bc5a0a216bd879a1fd26ce1c997557fb8e2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 17:06:52 +0000 Subject: [PATCH 151/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ef7001bf34..119b899227 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-100fc29dddb438582b1a3ce72042d66e28a146687830aee7a8518c56f39b69d1.yml -openapi_spec_hash: 67c4fd63cccc8700f839266bded1d94e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2b96d29b2a5b50731756b6b453cd77b851e8d4a04a224613b5585b06ffdf57d7.yml +openapi_spec_hash: 3b94788e25272aa13ae260bed993bd23 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 869226bd0f01dbd37c6c0ddc5dcc51a928ce849f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 17:41:22 +0000 Subject: [PATCH 152/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 119b899227..a60623110f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2b96d29b2a5b50731756b6b453cd77b851e8d4a04a224613b5585b06ffdf57d7.yml -openapi_spec_hash: 3b94788e25272aa13ae260bed993bd23 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2b1d4ca710d2a88e6cb6e266e0db6e051eee95f5ec156a148667933d8aa96570.yml +openapi_spec_hash: a4408bb494651f2efd9b4d6b4bc0f06b config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 8b2f71a8c78dae6b8038a98f905ef253229f35b0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 17:49:27 +0000 Subject: [PATCH 153/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a60623110f..f4d6eb6309 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2b1d4ca710d2a88e6cb6e266e0db6e051eee95f5ec156a148667933d8aa96570.yml -openapi_spec_hash: a4408bb494651f2efd9b4d6b4bc0f06b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7bc54ffd5dacdc5e7acae5244f31ef0a23b8a4eb8d6d5c3e19750563428741d0.yml +openapi_spec_hash: 30567e884ac1ae8bcb1c678862942a82 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 31bc9f701eab7093794171e283c388ea9d7306b2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 18:04:03 +0000 Subject: [PATCH 154/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/logs/control/cmb/config.ts | 10 ++++++++++ tests/api-resources/logs/control/cmb/config.test.ts | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f4d6eb6309..d5b0ceb147 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7bc54ffd5dacdc5e7acae5244f31ef0a23b8a4eb8d6d5c3e19750563428741d0.yml -openapi_spec_hash: 30567e884ac1ae8bcb1c678862942a82 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fa61c97ef67a21a2338842ec442f82956fbdaf3d063095d626af30ddbabd7914.yml +openapi_spec_hash: c54f526437f6ef1a8a9a3b3e74ce93fb config_hash: cb36b26a5fcc81fa60c65016b1e74f0a diff --git a/src/resources/logs/control/cmb/config.ts b/src/resources/logs/control/cmb/config.ts index b0dd036eb5..63af7fdb83 100644 --- a/src/resources/logs/control/cmb/config.ts +++ b/src/resources/logs/control/cmb/config.ts @@ -68,6 +68,11 @@ export class Config extends APIResource { } export interface CmbConfig { + /** + * Allow out of region access + */ + allow_out_of_region_access?: boolean; + /** * Name of the region. */ @@ -82,6 +87,11 @@ export interface ConfigCreateParams { */ account_id: string; + /** + * Body param: Allow out of region access + */ + allow_out_of_region_access?: boolean; + /** * Body param: Name of the region. */ diff --git a/tests/api-resources/logs/control/cmb/config.test.ts b/tests/api-resources/logs/control/cmb/config.test.ts index 2acb5dc49c..f90f8827a0 100644 --- a/tests/api-resources/logs/control/cmb/config.test.ts +++ b/tests/api-resources/logs/control/cmb/config.test.ts @@ -26,6 +26,7 @@ describe('resource config', () => { test('create: required and optional params', async () => { const response = await client.logs.control.cmb.config.create({ account_id: '023e105f4ecef8ad9ca31a8372d0c353', + allow_out_of_region_access: false, regions: 'eu', }); }); From 5a65fda266c2fb5e6f04790623ac4251a32afbea Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 18:55:55 +0000 Subject: [PATCH 155/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d5b0ceb147..61f0e53d6d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fa61c97ef67a21a2338842ec442f82956fbdaf3d063095d626af30ddbabd7914.yml -openapi_spec_hash: c54f526437f6ef1a8a9a3b3e74ce93fb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-768fe18bc587e07d19f7d510a5e70e150ba0a898cb50e849f1b77bdfd70d64c6.yml +openapi_spec_hash: 842cedef06a3d499cdbaf068d88c29ed config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From d68f212c640a8cdf4df83063cfc7abef73e04613 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 20:33:01 +0000 Subject: [PATCH 156/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 61f0e53d6d..7fdc83a070 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-768fe18bc587e07d19f7d510a5e70e150ba0a898cb50e849f1b77bdfd70d64c6.yml -openapi_spec_hash: 842cedef06a3d499cdbaf068d88c29ed +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0bf42f89b0b2951108c08331a0d2395fa21c5e7fc8fd0b1b736deed6a5fc1ed4.yml +openapi_spec_hash: be9e77a932567e5e8af051aeed9faa55 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 3e9c09b893e70c6e9432875a4e5a0cace9996e53 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 21:14:23 +0000 Subject: [PATCH 157/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7fdc83a070..66fc6d117f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0bf42f89b0b2951108c08331a0d2395fa21c5e7fc8fd0b1b736deed6a5fc1ed4.yml -openapi_spec_hash: be9e77a932567e5e8af051aeed9faa55 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-eb2c0e7d18952ad05f39dd40719f342be0ffbef9cad1a7a378b8b9b3ed2d7edd.yml +openapi_spec_hash: 618d871754e316f3941bec18a5e1deb4 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 5cdfecef646b1754e9c81e63accec08b0b71a3c0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 30 May 2025 22:43:02 +0000 Subject: [PATCH 158/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 66fc6d117f..493c949cd4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-eb2c0e7d18952ad05f39dd40719f342be0ffbef9cad1a7a378b8b9b3ed2d7edd.yml -openapi_spec_hash: 618d871754e316f3941bec18a5e1deb4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-02a61bbe0f8ba89faa5459cf7df3095ff44560c4a6bd5612584956b43a62b132.yml +openapi_spec_hash: a90218c8fdd23ff08465ff8379b06a80 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 43cb1e7e6dbd5ced994683277dd705a035841a22 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 31 May 2025 00:18:47 +0000 Subject: [PATCH 159/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 493c949cd4..2c55c39c65 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-02a61bbe0f8ba89faa5459cf7df3095ff44560c4a6bd5612584956b43a62b132.yml -openapi_spec_hash: a90218c8fdd23ff08465ff8379b06a80 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bab55ca423a7140f57b0c778e6fee358b3507036ff12b98be68d7a9ac9724015.yml +openapi_spec_hash: 71c2dfeb8a5e5b527ca04b500b18217c config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From a56c6e93b5ce57cb73404415485b38f8ea0c8db4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 31 May 2025 06:07:11 +0000 Subject: [PATCH 160/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2c55c39c65..88a04a60d8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bab55ca423a7140f57b0c778e6fee358b3507036ff12b98be68d7a9ac9724015.yml -openapi_spec_hash: 71c2dfeb8a5e5b527ca04b500b18217c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4ddf63af3f75b970c002f449877fb03a017a0656080766f01cba0dc8f14448e1.yml +openapi_spec_hash: 48a737e956d5b5b9887dd170074d627b config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From da94544c5c73b09071859f67241310ed8ae891e6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 1 Jun 2025 06:05:56 +0000 Subject: [PATCH 161/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 88a04a60d8..ca6dcd492e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4ddf63af3f75b970c002f449877fb03a017a0656080766f01cba0dc8f14448e1.yml -openapi_spec_hash: 48a737e956d5b5b9887dd170074d627b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6fc9c11b411dceabf2962aef070062f73c76f6fa4f99416a57f40c115d682060.yml +openapi_spec_hash: 76d60ab3f1254dc583be420048c47090 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 21244bd76b947db067befd10f1ede72b2d54dbcf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 06:05:40 +0000 Subject: [PATCH 162/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ca6dcd492e..e432193b1e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6fc9c11b411dceabf2962aef070062f73c76f6fa4f99416a57f40c115d682060.yml -openapi_spec_hash: 76d60ab3f1254dc583be420048c47090 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-babe0d060817f6b0b5be1c3cb585e4e56cae6202c4569b3e5681b856fa38a98a.yml +openapi_spec_hash: 5799886c97f4447ddbfce4c6fccf3fe1 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From fdff2476b64d0b7007bc0f940e78f2b6f341ad12 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 06:47:42 +0000 Subject: [PATCH 163/366] feat(api): api update --- .stats.yml | 4 +- src/resources/accounts/logs/audit.ts | 255 ++++++++++++++---- .../api-resources/accounts/logs/audit.test.ts | 42 +-- 3 files changed, 226 insertions(+), 75 deletions(-) diff --git a/.stats.yml b/.stats.yml index e432193b1e..6222cb38bf 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-babe0d060817f6b0b5be1c3cb585e4e56cae6202c4569b3e5681b856fa38a98a.yml -openapi_spec_hash: 5799886c97f4447ddbfce4c6fccf3fe1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-210311486e08edcaebbdb9f768581abcf93a533da2ba5a0dbdae8571a0dd47cd.yml +openapi_spec_hash: 89af9166237af6fcdc5d0b138ab9e73a config_hash: cb36b26a5fcc81fa60c65016b1e74f0a diff --git a/src/resources/accounts/logs/audit.ts b/src/resources/accounts/logs/audit.ts index 78f9845be8..2f13ef1655 100644 --- a/src/resources/accounts/logs/audit.ts +++ b/src/resources/accounts/logs/audit.ts @@ -239,74 +239,73 @@ export interface AuditListParams extends CursorLimitPaginationParams { account_id: string; /** - * Query param: Filters actions based on a given timestamp in the format - * yyyy-mm-dd, returning only logs that occurred on and before the specified date. + * Query param: Limits the returned results to logs older than the specified date. + * This can be a date string 2019-04-30 (interpreted in UTC) or an absolute + * timestamp that conforms to RFC3339. */ before: string; /** - * Query param: Filters actions based on a given timestamp in the format - * yyyy-mm-dd, returning only logs that occurred on and after the specified date. + * Query param: Limits the returned results to logs newer than the specified date. + * This can be a date string 2019-04-30 (interpreted in UTC) or an absolute + * timestamp that conforms to RFC3339. */ since: string; /** - * Query param: Filters by the account name. + * Query param: */ - account_name?: string; + account_name?: AuditListParams.AccountName; /** - * Query param: Whether the action was successful or not. + * Query param: */ - action_result?: 'success' | 'failure'; + action_result?: AuditListParams.ActionResult; /** - * Query param: Filters by the action type. + * Query param: */ - action_type?: 'create' | 'delete' | 'view' | 'update'; + action_type?: AuditListParams.ActionType; /** - * Query param: Filters by the actor context. + * Query param: */ - actor_context?: 'api_key' | 'api_token' | 'dash' | 'oauth' | 'origin_ca_key'; + actor_context?: AuditListParams.ActorContext; /** - * Query param: Filters by the actor's email address. + * Query param: */ - actor_email?: string; + actor_email?: AuditListParams.ActorEmail; /** - * Query param: Filters by the actor ID. This can be either the Account ID or User - * ID. + * Query param: */ - actor_id?: string; + actor_id?: AuditListParams.ActorID; /** - * Query param: The IP address where the action was initiated. + * Query param: */ - actor_ip_address?: string; + actor_ip_address?: AuditListParams.ActorIPAddress; /** - * Query param: Filters by the API token ID when the actor context is an api_token - * or oauth. + * Query param: */ - actor_token_id?: string; + actor_token_id?: AuditListParams.ActorTokenID; /** - * Query param: Filters by the API token name when the actor context is an - * api_token or oauth. + * Query param: */ - actor_token_name?: string; + actor_token_name?: AuditListParams.ActorTokenName; /** - * Query param: Filters by the actor type. + * Query param: */ - actor_type?: 'cloudflare_admin' | 'account' | 'user'; + actor_type?: AuditListParams.ActorType; /** - * Query param: Finds a specific log by its ID. + * Query param: */ - audit_log_id?: string; + audit_log_id?: AuditListParams.AuditLogID; /** * Query param: Sets sorting order. @@ -314,57 +313,209 @@ export interface AuditListParams extends CursorLimitPaginationParams { direction?: 'desc' | 'asc'; /** - * Query param: Filters by the response CF Ray ID. + * Query param: */ - raw_cf_ray_id?: string; + raw_cf_ray_id?: AuditListParams.RawCfRayID; /** - * Query param: The HTTP method for the API call. + * Query param: */ - raw_method?: string; + raw_method?: AuditListParams.RawMethod; /** - * Query param: The response status code that was returned. + * Query param: */ - raw_status_code?: number; + raw_status_code?: AuditListParams.RawStatusCode; /** - * Query param: Filters by the request URI. + * Query param: */ - raw_uri?: string; + raw_uri?: AuditListParams.RawURI; /** - * Query param: Filters by the resource ID. + * Query param: */ - resource_id?: string; + resource_id?: AuditListParams.ResourceID; /** - * Query param: Filters audit logs by the Cloudflare product associated with the - * changed resource. + * Query param: */ - resource_product?: string; + resource_product?: AuditListParams.ResourceProduct; /** - * Query param: Filters by the resource scope, specifying whether the resource is - * associated with an user, an account, or a zone. + * Query param: */ - resource_scope?: 'accounts' | 'user' | 'zones'; + resource_scope?: AuditListParams.ResourceScope; /** - * Query param: Filters audit logs based on the unique type of resource changed by - * the action. + * Query param: */ - resource_type?: string; + resource_type?: AuditListParams.ResourceType; /** - * Query param: Filters by the zone ID. + * Query param: */ - zone_id?: string; + zone_id?: AuditListParams.ZoneID; /** - * Query param: Filters by the zone name associated with the change. + * Query param: */ - zone_name?: string; + zone_name?: AuditListParams.ZoneName; +} + +export namespace AuditListParams { + export interface AccountName { + /** + * Filters out audit logs by the account name. + */ + not?: Array; + } + + export interface ActionResult { + /** + * Filters out audit logs by whether the action was successful or not. + */ + not?: Array<'success' | 'failure'>; + } + + export interface ActionType { + /** + * Filters out audit logs by the action type. + */ + not?: Array<'create' | 'delete' | 'view' | 'update'>; + } + + export interface ActorContext { + /** + * Filters out audit logs by the actor context. + */ + not?: Array<'api_key' | 'api_token' | 'dash' | 'oauth' | 'origin_ca_key'>; + } + + export interface ActorEmail { + /** + * Filters out audit logs by the actor's email address. + */ + not?: Array; + } + + export interface ActorID { + /** + * Filters out audit logs by the actor ID. This can be either the Account ID or + * User ID. + */ + not?: Array; + } + + export interface ActorIPAddress { + /** + * Filters out audit logs IP address where the action was initiated. + */ + not?: Array; + } + + export interface ActorTokenID { + /** + * Filters out audit logs by the API token ID when the actor context is an + * api_token or oauth. + */ + not?: Array; + } + + export interface ActorTokenName { + /** + * Filters out audit logs by the API token name when the actor context is an + * api_token or oauth. + */ + not?: Array; + } + + export interface ActorType { + /** + * Filters out audit logs by the actor type. + */ + not?: Array<'cloudflare_admin' | 'account' | 'user'>; + } + + export interface AuditLogID { + /** + * Filters out audit logs by their IDs. + */ + not?: Array; + } + + export interface RawCfRayID { + /** + * Filters out audit logs by the response CF Ray ID. + */ + not?: Array; + } + + export interface RawMethod { + /** + * Filters out audit logs by the HTTP method for the API call. + */ + not?: Array; + } + + export interface RawStatusCode { + /** + * Filters out audit logs by the response status code that was returned. + */ + not?: Array; + } + + export interface RawURI { + /** + * Filters out audit logs by the request URI. + */ + not?: Array; + } + + export interface ResourceID { + /** + * Filters out audit logs by the resource ID. + */ + not?: Array; + } + + export interface ResourceProduct { + /** + * Filters out audit logs by the Cloudflare product associated with the changed + * resource. + */ + not?: Array; + } + + export interface ResourceScope { + /** + * Filters out audit logs by the resource scope, specifying whether the resource is + * associated with an user, an account, or a zone. + */ + not?: Array<'accounts' | 'user' | 'zones'>; + } + + export interface ResourceType { + /** + * Filters out audit logs based on the unique type of resource changed by the + * action. + */ + not?: Array; + } + + export interface ZoneID { + /** + * Filters out audit logs by the zone ID. + */ + not?: Array; + } + + export interface ZoneName { + /** + * Filters out audit logs by the zone name associated with the change. + */ + not?: Array; + } } Audit.AuditListResponsesCursorLimitPagination = AuditListResponsesCursorLimitPagination; diff --git a/tests/api-resources/accounts/logs/audit.test.ts b/tests/api-resources/accounts/logs/audit.test.ts index f87b0f2baf..02a2addf6b 100644 --- a/tests/api-resources/accounts/logs/audit.test.ts +++ b/tests/api-resources/accounts/logs/audit.test.ts @@ -32,30 +32,30 @@ describe('resource audit', () => { account_id: 'a67e14daa5f8dceeb91fe5449ba496ef', before: '2024-10-31', since: '2024-10-30', - account_name: 'account_name', - action_result: 'success', - action_type: 'create', - actor_context: 'api_key', - actor_email: 'alice@example.com', - actor_id: '1d20c3afe174f18b642710cec6298a9d', - actor_ip_address: '17.168.228.63', - actor_token_id: '144cdb2e39c55e203cf225d8d8208647', - actor_token_name: 'Test Token', - actor_type: 'account', - audit_log_id: 'f174be97-19b1-40d6-954d-70cd5fbd52db', + account_name: { not: ['string'] }, + action_result: { not: ['success'] }, + action_type: { not: ['create'] }, + actor_context: { not: ['api_key'] }, + actor_email: { not: ['alice@example.com'] }, + actor_id: { not: ['1d20c3afe174f18b642710cec6298a9d'] }, + actor_ip_address: { not: ['17.168.228.63'] }, + actor_token_id: { not: ['144cdb2e39c55e203cf225d8d8208647'] }, + actor_token_name: { not: ['Test Token'] }, + actor_type: { not: ['account'] }, + audit_log_id: { not: ['f174be97-19b1-40d6-954d-70cd5fbd52db'] }, cursor: 'Q1buH-__DQqqig7SVYXT-SsMOTGY2Z3Y80W-fGgva7yaDdmPKveucH5ddOcHsJRhNb-xUK8agZQqkJSMAENGO8NU6g==', direction: 'desc', limit: 25, - raw_cf_ray_id: '8e8dd2156ef28414', - raw_method: 'GET', - raw_status_code: 200, - raw_uri: 'raw_uri', - resource_id: 'resource_id', - resource_product: 'Stream', - resource_scope: 'accounts', - resource_type: 'Video', - zone_id: 'zone_id', - zone_name: 'example.com', + raw_cf_ray_id: { not: ['8e8dd2156ef28414'] }, + raw_method: { not: ['GET'] }, + raw_status_code: { not: [200] }, + raw_uri: { not: ['string'] }, + resource_id: { not: ['string'] }, + resource_product: { not: ['Stream'] }, + resource_scope: { not: ['accounts'] }, + resource_type: { not: ['Video'] }, + zone_id: { not: ['string'] }, + zone_name: { not: ['example.com'] }, }); }); }); From c11500818d5243b96001c75e7779f0b136bf8a38 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 09:51:53 +0000 Subject: [PATCH 164/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6222cb38bf..4d36e64b4c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-210311486e08edcaebbdb9f768581abcf93a533da2ba5a0dbdae8571a0dd47cd.yml -openapi_spec_hash: 89af9166237af6fcdc5d0b138ab9e73a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-086c3c2dc81fa54b6e0de31a619aa75bbdd2d28f45d0c043da4adb0f5cf08e05.yml +openapi_spec_hash: e0677d3daa7812fdd88b87cf450543f3 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 202c9a6e5f2aef4e1a92017ecd79dd08b6e9845d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 09:59:20 +0000 Subject: [PATCH 165/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4d36e64b4c..e784bf4303 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-086c3c2dc81fa54b6e0de31a619aa75bbdd2d28f45d0c043da4adb0f5cf08e05.yml -openapi_spec_hash: e0677d3daa7812fdd88b87cf450543f3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-63c78c759165154acb288d4c055180902c51fb4ad90f0a4518201024b979c598.yml +openapi_spec_hash: 56be7e2ed79f350e5b467038b353d780 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 5e9e49f3fed814139c2125730fe96185c95f6d6a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 10:23:50 +0000 Subject: [PATCH 166/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e784bf4303..d05b44a359 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-63c78c759165154acb288d4c055180902c51fb4ad90f0a4518201024b979c598.yml -openapi_spec_hash: 56be7e2ed79f350e5b467038b353d780 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-735e4a63c51aafc2fff80e5279dea51478b5b938c2046dca216424cd062077df.yml +openapi_spec_hash: e6d31e82afbad00bbba2163ffbbd0554 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From c43a10e3c5127c7f06e34c5c866c9d27beca3fb1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 10:50:59 +0000 Subject: [PATCH 167/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d05b44a359..a766d6895b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-735e4a63c51aafc2fff80e5279dea51478b5b938c2046dca216424cd062077df.yml -openapi_spec_hash: e6d31e82afbad00bbba2163ffbbd0554 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e09d1f8be9d1e309e6b5bd63987afca335841ab9a19cbf3155b578bbdff15cb9.yml +openapi_spec_hash: 1ca4be29feccc2f75a290237bea7b271 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 56d49a6419e44505e16c78f58001e87c1f8566b9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 13:26:45 +0000 Subject: [PATCH 168/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a766d6895b..9f8cb50c24 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e09d1f8be9d1e309e6b5bd63987afca335841ab9a19cbf3155b578bbdff15cb9.yml -openapi_spec_hash: 1ca4be29feccc2f75a290237bea7b271 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9764fcabfa0b75ab4952b7f68a5eb792fa441d5bb576b002a4ca65e073bd11ef.yml +openapi_spec_hash: 812b6b6d51b29fffa8109cacc53ba4ad config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From a23184673e9cddd6629bf605e320579cfea7a4ac Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 13:30:48 +0000 Subject: [PATCH 169/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9f8cb50c24..d05b44a359 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9764fcabfa0b75ab4952b7f68a5eb792fa441d5bb576b002a4ca65e073bd11ef.yml -openapi_spec_hash: 812b6b6d51b29fffa8109cacc53ba4ad +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-735e4a63c51aafc2fff80e5279dea51478b5b938c2046dca216424cd062077df.yml +openapi_spec_hash: e6d31e82afbad00bbba2163ffbbd0554 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From ae796d26119f704f9478d36d5f9cfeed3b13b64d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 15:01:15 +0000 Subject: [PATCH 170/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d05b44a359..7e4efa74aa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-735e4a63c51aafc2fff80e5279dea51478b5b938c2046dca216424cd062077df.yml -openapi_spec_hash: e6d31e82afbad00bbba2163ffbbd0554 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-260a54a3dd7114826ffb7f5ee321423bc8bade1ce209169fbf08aad2f9dc882c.yml +openapi_spec_hash: 1da6f96aa564c2e2221c7a0c623001d8 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 122fe2f85f347635cbe557353807f21b97fe3074 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 15:35:43 +0000 Subject: [PATCH 171/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7e4efa74aa..d8c9e8c481 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-260a54a3dd7114826ffb7f5ee321423bc8bade1ce209169fbf08aad2f9dc882c.yml -openapi_spec_hash: 1da6f96aa564c2e2221c7a0c623001d8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f5a36864671784113d551265c248410cd42c5e5e9372fecb47c89caa781b575b.yml +openapi_spec_hash: c1baf403b2be9007bbdbaae6ac4fe404 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 00e2f80cc8423cba139b950407de894950517ce2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 15:40:02 +0000 Subject: [PATCH 172/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d8c9e8c481..c5a0976e38 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f5a36864671784113d551265c248410cd42c5e5e9372fecb47c89caa781b575b.yml -openapi_spec_hash: c1baf403b2be9007bbdbaae6ac4fe404 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-55c0f93e53d10ad7539a6bbb489e65fddc8500b049d45935ed0b124d8cead521.yml +openapi_spec_hash: b90c5dee68f9b556c158ea324856b4b0 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From d14a6cc50d0b04089bb0a006732f9b837ce6eacd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 15:49:42 +0000 Subject: [PATCH 173/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c5a0976e38..76679cda9a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-55c0f93e53d10ad7539a6bbb489e65fddc8500b049d45935ed0b124d8cead521.yml -openapi_spec_hash: b90c5dee68f9b556c158ea324856b4b0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0cefbb92002219fa1f709c4d4ddea728cc0fe0be51051a086ed83323b179fab2.yml +openapi_spec_hash: 77dc0e1aff9d6fff22ed3ffbe360ebb6 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From fcba001169cdff5b3a5a9184b848df7bb0852621 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 16:32:39 +0000 Subject: [PATCH 174/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 76679cda9a..57cb0e0fe7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0cefbb92002219fa1f709c4d4ddea728cc0fe0be51051a086ed83323b179fab2.yml -openapi_spec_hash: 77dc0e1aff9d6fff22ed3ffbe360ebb6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1a70cc6fe7c1ec1d793133a672d1e0bdd4dfcdf23f28246fa833d76140869e29.yml +openapi_spec_hash: 4e7a4ba089bee2e706981ed398bc5b9e config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 33060199368d7a1063738e8dea35ae58c3268f1e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 17:16:48 +0000 Subject: [PATCH 175/366] feat(api): api update --- .stats.yml | 6 +- api.md | 6 -- .../addressing/address-maps/address-maps.ts | 27 ++---- src/resources/ips.ts | 87 +++---------------- tests/api-resources/ips.test.ts | 37 -------- 5 files changed, 22 insertions(+), 141 deletions(-) delete mode 100644 tests/api-resources/ips.test.ts diff --git a/.stats.yml b/.stats.yml index 57cb0e0fe7..9e7f9a64c2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1a70cc6fe7c1ec1d793133a672d1e0bdd4dfcdf23f28246fa833d76140869e29.yml -openapi_spec_hash: 4e7a4ba089bee2e706981ed398bc5b9e +configured_endpoints: 1741 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b4dbefdb8c8221e020b1c2337feceddd7e944a9247767f75dd8b976265cb66a3.yml +openapi_spec_hash: 4e17b0e1f919eb7951a91307b790c576 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a diff --git a/api.md b/api.md index 3cd6e90bf6..1a63d0cc39 100644 --- a/api.md +++ b/api.md @@ -145,12 +145,6 @@ Methods: Types: - IPs -- JDCloudIPs -- IPListResponse - -Methods: - -- client.ips.list({ ...params }) -> IPListResponse # Memberships diff --git a/src/resources/addressing/address-maps/address-maps.ts b/src/resources/addressing/address-maps/address-maps.ts index cbee434db5..5a6bc772c1 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 IPsAPI from '../../ips'; import * as AccountsAPI from './accounts'; import { AccountDeleteParams, @@ -11,7 +12,7 @@ import { AccountUpdateResponse, Accounts, } from './accounts'; -import * as IPsAPI from './ips'; +import * as AddressMapsIPsAPI from './ips'; import { IPDeleteParams, IPDeleteResponse, IPUpdateParams, IPUpdateResponse, IPs } from './ips'; import * as ZonesAPI from './zones'; import { ZoneDeleteParams, ZoneDeleteResponse, ZoneUpdateParams, ZoneUpdateResponse, Zones } from './zones'; @@ -19,7 +20,7 @@ import { SinglePage } from '../../../pagination'; export class AddressMaps extends APIResource { accounts: AccountsAPI.Accounts = new AccountsAPI.Accounts(this._client); - ips: IPsAPI.IPs = new IPsAPI.IPs(this._client); + ips: AddressMapsIPsAPI.IPs = new AddressMapsIPsAPI.IPs(this._client); zones: ZonesAPI.Zones = new ZonesAPI.Zones(this._client); /** @@ -244,7 +245,7 @@ export interface AddressMapCreateResponse { /** * The set of IPs on the Address Map. */ - ips?: Array; + ips?: IPsAPI.IPs; /** * Zones and Accounts which will be assigned IPs on this Address Map. A zone @@ -256,15 +257,6 @@ export interface AddressMapCreateResponse { } export namespace AddressMapCreateResponse { - export interface IP { - created_at?: string; - - /** - * An IPv4 or IPv6 address. - */ - ip?: string; - } - export interface Membership { /** * Controls whether the membership can be deleted via the API or not. @@ -398,7 +390,7 @@ export interface AddressMapGetResponse { /** * The set of IPs on the Address Map. */ - ips?: Array; + ips?: IPsAPI.IPs; /** * Zones and Accounts which will be assigned IPs on this Address Map. A zone @@ -410,15 +402,6 @@ export interface AddressMapGetResponse { } export namespace AddressMapGetResponse { - export interface IP { - created_at?: string; - - /** - * An IPv4 or IPv6 address. - */ - ip?: string; - } - export interface Membership { /** * Controls whether the membership can be deleted via the API or not. diff --git a/src/resources/ips.ts b/src/resources/ips.ts index 612925079e..809316f7a1 100644 --- a/src/resources/ips.ts +++ b/src/resources/ips.ts @@ -1,84 +1,25 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../resource'; -import { isRequestOptions } from '../core'; -import * as Core from '../core'; -export class IPs extends APIResource { - /** - * Get IPs used on the Cloudflare/JD Cloud network, see - * https://www.cloudflare.com/ips for Cloudflare IPs or - * https://developers.cloudflare.com/china-network/reference/infrastructure/ for JD - * Cloud IPs. - */ - list(query?: IPListParams, options?: Core.RequestOptions): Core.APIPromise; - list(options?: Core.RequestOptions): Core.APIPromise; - list( - query: IPListParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.list({}, query); - } - return ( - this._client.get('/ips', { query, ...options }) as Core.APIPromise<{ result: IPListResponse }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface IPs { - /** - * A digest of the IP data. Useful for determining if the data has changed. - */ - etag?: string; - - /** - * List of Cloudflare IPv4 CIDR addresses. - */ - ipv4_cidrs?: Array; - - /** - * List of Cloudflare IPv6 CIDR addresses. - */ - ipv6_cidrs?: Array; -} +export class IPs extends APIResource {} -export interface JDCloudIPs { - /** - * A digest of the IP data. Useful for determining if the data has changed. - */ - etag?: string; +/** + * The set of IPs on the Address Map. + */ +export type IPs = Array; - /** - * List of Cloudflare IPv4 CIDR addresses. - */ - ipv4_cidrs?: Array; +export namespace IPs { + export interface IPItem { + created_at?: string; - /** - * List of Cloudflare IPv6 CIDR addresses. - */ - ipv6_cidrs?: Array; - - /** - * List IPv4 and IPv6 CIDRs, only populated if `?networks=jdcloud` is used. - */ - jdcloud_cidrs?: Array; -} - -export type IPListResponse = IPs | JDCloudIPs; - -export interface IPListParams { - /** - * Specified as `jdcloud` to list IPs used by JD Cloud data centers. - */ - networks?: string; + /** + * An IPv4 or IPv6 address. + */ + ip?: string; + } } export declare namespace IPs { - export { - type IPs as IPs, - type JDCloudIPs as JDCloudIPs, - type IPListResponse as IPListResponse, - type IPListParams as IPListParams, - }; + export { type IPs as IPs }; } diff --git a/tests/api-resources/ips.test.ts b/tests/api-resources/ips.test.ts deleted file mode 100644 index 56ac99c687..0000000000 --- a/tests/api-resources/ips.test.ts +++ /dev/null @@ -1,37 +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 ips', () => { - test('list', async () => { - const responsePromise = client.ips.list(); - 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: 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.ips.list({ path: '/_stainless_unknown_path' })).rejects.toThrow( - Cloudflare.NotFoundError, - ); - }); - - test('list: 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.ips.list({ networks: 'networks' }, { path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); From a38ca5b29880a3d0f9533b85762759e349bd5cee Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 17:26:13 +0000 Subject: [PATCH 176/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9e7f9a64c2..91e600cca3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b4dbefdb8c8221e020b1c2337feceddd7e944a9247767f75dd8b976265cb66a3.yml -openapi_spec_hash: 4e17b0e1f919eb7951a91307b790c576 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ce7aab0154abe4708e080f4402bb0c80e5e96bde5ba6955cd1d62b7b9e58cbb6.yml +openapi_spec_hash: 88032a0217bc158cd2d7f340f2379442 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From b8a2b4b15be94ac5370a6e6dd631a1341aab8d6e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 17:53:45 +0000 Subject: [PATCH 177/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 91e600cca3..0223250fb4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ce7aab0154abe4708e080f4402bb0c80e5e96bde5ba6955cd1d62b7b9e58cbb6.yml -openapi_spec_hash: 88032a0217bc158cd2d7f340f2379442 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ca8f0b700631732a60c7c3b17a7e95f33fb0e06951bb35c4bae56ee2cf8fe233.yml +openapi_spec_hash: 63c3fe1fc28926a790141398042ae94a config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 1e91d99150f987c95915c2f523faec1797a4c90c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 17:59:44 +0000 Subject: [PATCH 178/366] feat(api): api update --- .stats.yml | 4 +- .../dispatch/namespaces/scripts/bindings.ts | 20 ++++++- .../dispatch/namespaces/scripts/scripts.ts | 18 +++++++ .../dispatch/namespaces/scripts/settings.ts | 54 +++++++++++++++++++ .../scripts/script-and-version-settings.ts | 54 +++++++++++++++++++ src/resources/workers/scripts/scripts.ts | 18 +++++++ src/resources/workers/scripts/versions.ts | 54 +++++++++++++++++++ 7 files changed, 219 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0223250fb4..e11ed77c16 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ca8f0b700631732a60c7c3b17a7e95f33fb0e06951bb35c4bae56ee2cf8fe233.yml -openapi_spec_hash: 63c3fe1fc28926a790141398042ae94a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5dfd0a2b4beb1d5ef1a96c46dc8050e69667693f427cf0111864cbff8ca307e8.yml +openapi_spec_hash: 511cf722768066572627c9fc4c637002 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts index 8368f5f08a..f30dc788e0 100644 --- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts +++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts @@ -63,7 +63,8 @@ export type BindingGetResponse = | BindingGetResponse.WorkersBindingKindVectorize | BindingGetResponse.WorkersBindingKindVersionMetadata | BindingGetResponse.WorkersBindingKindSecretsStoreSecret - | BindingGetResponse.WorkersBindingKindSecretKey; + | BindingGetResponse.WorkersBindingKindSecretKey + | BindingGetResponse.WorkersBindingKindWorkflow; export namespace BindingGetResponse { export interface WorkersBindingKindAI { @@ -495,6 +496,23 @@ export namespace BindingGetResponse { 'encrypt' | 'decrypt' | 'sign' | 'verify' | 'deriveKey' | 'deriveBits' | 'wrapKey' | 'unwrapKey' >; } + + export interface WorkersBindingKindWorkflow { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'workflow'; + + /** + * Name of the Workflow to bind to. + */ + workflow_name: string; + } } export interface BindingGetParams { 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 7d1ee11cf9..4c47631c40 100644 --- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts +++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts @@ -316,6 +316,7 @@ export namespace ScriptUpdateParams { | Metadata.WorkersBindingKindVersionMetadata | Metadata.WorkersBindingKindSecretsStoreSecret | Metadata.WorkersBindingKindSecretKey + | Metadata.WorkersBindingKindWorkflow >; /** @@ -898,6 +899,23 @@ export namespace ScriptUpdateParams { key_jwk?: unknown; } + export interface WorkersBindingKindWorkflow { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'workflow'; + + /** + * Name of the Workflow to bind to. + */ + workflow_name: string; + } + export interface WorkersMultipleStepMigrations { /** * Tag to set as the latest migration tag. diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts index fc71ab1193..81153b2156 100644 --- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts +++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts @@ -92,6 +92,7 @@ export interface SettingEditResponse { | SettingEditResponse.WorkersBindingKindVersionMetadata | SettingEditResponse.WorkersBindingKindSecretsStoreSecret | SettingEditResponse.WorkersBindingKindSecretKey + | SettingEditResponse.WorkersBindingKindWorkflow >; /** @@ -580,6 +581,23 @@ export namespace SettingEditResponse { >; } + export interface WorkersBindingKindWorkflow { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'workflow'; + + /** + * Name of the Workflow to bind to. + */ + workflow_name: string; + } + /** * Limits to apply for this Worker. */ @@ -695,6 +713,7 @@ export interface SettingGetResponse { | SettingGetResponse.WorkersBindingKindVersionMetadata | SettingGetResponse.WorkersBindingKindSecretsStoreSecret | SettingGetResponse.WorkersBindingKindSecretKey + | SettingGetResponse.WorkersBindingKindWorkflow >; /** @@ -1183,6 +1202,23 @@ export namespace SettingGetResponse { >; } + export interface WorkersBindingKindWorkflow { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'workflow'; + + /** + * Name of the Workflow to bind to. + */ + workflow_name: string; + } + /** * Limits to apply for this Worker. */ @@ -1311,6 +1347,7 @@ export namespace SettingEditParams { | Settings.WorkersBindingKindVersionMetadata | Settings.WorkersBindingKindSecretsStoreSecret | Settings.WorkersBindingKindSecretKey + | Settings.WorkersBindingKindWorkflow >; /** @@ -1816,6 +1853,23 @@ export namespace SettingEditParams { key_jwk?: unknown; } + export interface WorkersBindingKindWorkflow { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'workflow'; + + /** + * Name of the Workflow to bind to. + */ + workflow_name: string; + } + /** * Limits to apply for this Worker. */ diff --git a/src/resources/workers/scripts/script-and-version-settings.ts b/src/resources/workers/scripts/script-and-version-settings.ts index 414270ff05..3fbf553ae3 100644 --- a/src/resources/workers/scripts/script-and-version-settings.ts +++ b/src/resources/workers/scripts/script-and-version-settings.ts @@ -88,6 +88,7 @@ export interface ScriptAndVersionSettingEditResponse { | ScriptAndVersionSettingEditResponse.WorkersBindingKindVersionMetadata | ScriptAndVersionSettingEditResponse.WorkersBindingKindSecretsStoreSecret | ScriptAndVersionSettingEditResponse.WorkersBindingKindSecretKey + | ScriptAndVersionSettingEditResponse.WorkersBindingKindWorkflow >; /** @@ -578,6 +579,23 @@ export namespace ScriptAndVersionSettingEditResponse { >; } + export interface WorkersBindingKindWorkflow { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'workflow'; + + /** + * Name of the Workflow to bind to. + */ + workflow_name: string; + } + /** * Limits to apply for this Worker. */ @@ -693,6 +711,7 @@ export interface ScriptAndVersionSettingGetResponse { | ScriptAndVersionSettingGetResponse.WorkersBindingKindVersionMetadata | ScriptAndVersionSettingGetResponse.WorkersBindingKindSecretsStoreSecret | ScriptAndVersionSettingGetResponse.WorkersBindingKindSecretKey + | ScriptAndVersionSettingGetResponse.WorkersBindingKindWorkflow >; /** @@ -1183,6 +1202,23 @@ export namespace ScriptAndVersionSettingGetResponse { >; } + export interface WorkersBindingKindWorkflow { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'workflow'; + + /** + * Name of the Workflow to bind to. + */ + workflow_name: string; + } + /** * Limits to apply for this Worker. */ @@ -1311,6 +1347,7 @@ export namespace ScriptAndVersionSettingEditParams { | Settings.WorkersBindingKindVersionMetadata | Settings.WorkersBindingKindSecretsStoreSecret | Settings.WorkersBindingKindSecretKey + | Settings.WorkersBindingKindWorkflow >; /** @@ -1816,6 +1853,23 @@ export namespace ScriptAndVersionSettingEditParams { key_jwk?: unknown; } + export interface WorkersBindingKindWorkflow { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'workflow'; + + /** + * Name of the Workflow to bind to. + */ + workflow_name: string; + } + /** * Limits to apply for this Worker. */ diff --git a/src/resources/workers/scripts/scripts.ts b/src/resources/workers/scripts/scripts.ts index eb11024fec..7988400d29 100644 --- a/src/resources/workers/scripts/scripts.ts +++ b/src/resources/workers/scripts/scripts.ts @@ -497,6 +497,7 @@ export namespace ScriptUpdateParams { | Metadata.WorkersBindingKindVersionMetadata | Metadata.WorkersBindingKindSecretsStoreSecret | Metadata.WorkersBindingKindSecretKey + | Metadata.WorkersBindingKindWorkflow >; /** @@ -1079,6 +1080,23 @@ export namespace ScriptUpdateParams { key_jwk?: unknown; } + export interface WorkersBindingKindWorkflow { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'workflow'; + + /** + * Name of the Workflow to bind to. + */ + workflow_name: string; + } + export interface WorkersMultipleStepMigrations { /** * Tag to set as the latest migration tag. diff --git a/src/resources/workers/scripts/versions.ts b/src/resources/workers/scripts/versions.ts index 70e60e8e4c..cce21c33d4 100644 --- a/src/resources/workers/scripts/versions.ts +++ b/src/resources/workers/scripts/versions.ts @@ -144,6 +144,7 @@ export namespace VersionCreateResponse { | Bindings.WorkersBindingKindVersionMetadata | Bindings.WorkersBindingKindSecretsStoreSecret | Bindings.WorkersBindingKindSecretKey + | Bindings.WorkersBindingKindWorkflow >; } @@ -577,6 +578,23 @@ export namespace VersionCreateResponse { 'encrypt' | 'decrypt' | 'sign' | 'verify' | 'deriveKey' | 'deriveBits' | 'wrapKey' | 'unwrapKey' >; } + + export interface WorkersBindingKindWorkflow { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'workflow'; + + /** + * Name of the Workflow to bind to. + */ + workflow_name: string; + } } export interface Script { @@ -724,6 +742,7 @@ export namespace VersionGetResponse { | Bindings.WorkersBindingKindVersionMetadata | Bindings.WorkersBindingKindSecretsStoreSecret | Bindings.WorkersBindingKindSecretKey + | Bindings.WorkersBindingKindWorkflow >; } @@ -1157,6 +1176,23 @@ export namespace VersionGetResponse { 'encrypt' | 'decrypt' | 'sign' | 'verify' | 'deriveKey' | 'deriveBits' | 'wrapKey' | 'unwrapKey' >; } + + export interface WorkersBindingKindWorkflow { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'workflow'; + + /** + * Name of the Workflow to bind to. + */ + workflow_name: string; + } } export interface Script { @@ -1278,6 +1314,7 @@ export namespace VersionCreateParams { | Metadata.WorkersBindingKindVersionMetadata | Metadata.WorkersBindingKindSecretsStoreSecret | Metadata.WorkersBindingKindSecretKey + | Metadata.WorkersBindingKindWorkflow >; /** @@ -1763,6 +1800,23 @@ export namespace VersionCreateParams { */ key_jwk?: unknown; } + + export interface WorkersBindingKindWorkflow { + /** + * A JavaScript variable name for the binding. + */ + name: string; + + /** + * The kind of resource that the binding provides. + */ + type: 'workflow'; + + /** + * Name of the Workflow to bind to. + */ + workflow_name: string; + } } } From d6ffe16c1af6156a20d82d458c453402d8c8dc57 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 18:02:52 +0000 Subject: [PATCH 179/366] feat(api): api update --- .stats.yml | 4 +- src/resources/accounts/accounts.ts | 10 +- src/resources/accounts/members.ts | 10 +- src/resources/accounts/roles.ts | 4 +- .../accounts/tokens/permission-groups.ts | 4 +- src/resources/accounts/tokens/tokens.ts | 12 +- src/resources/accounts/tokens/value.ts | 2 +- src/resources/iam/permission-groups.ts | 14 +- src/resources/iam/resource-groups.ts | 22 +-- src/resources/memberships.ts | 12 +- src/resources/shared.ts | 12 +- src/resources/user/user.ts | 142 +++++++++++++++++- tests/api-resources/accounts/accounts.test.ts | 10 +- tests/api-resources/accounts/members.test.ts | 20 +-- tests/api-resources/accounts/roles.test.ts | 8 +- .../accounts/tokens/permission-groups.test.ts | 8 +- .../accounts/tokens/tokens.test.ts | 24 +-- .../accounts/tokens/value.test.ts | 4 +- .../iam/permission-groups.test.ts | 12 +- .../api-resources/iam/resource-groups.test.ts | 34 ++--- 20 files changed, 257 insertions(+), 111 deletions(-) diff --git a/.stats.yml b/.stats.yml index e11ed77c16..35d669fb03 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5dfd0a2b4beb1d5ef1a96c46dc8050e69667693f427cf0111864cbff8ca307e8.yml -openapi_spec_hash: 511cf722768066572627c9fc4c637002 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b0d7a6597a0eb6b034f863cd1d6a0cede8066e49ba71c3a99ca073383792ab8f.yml +openapi_spec_hash: 8c2fc678ec978dbdff7fd1de9b255aec config_hash: cb36b26a5fcc81fa60c65016b1e74f0a diff --git a/src/resources/accounts/accounts.ts b/src/resources/accounts/accounts.ts index 6c647407f3..4a92f66f1e 100644 --- a/src/resources/accounts/accounts.ts +++ b/src/resources/accounts/accounts.ts @@ -74,7 +74,8 @@ export class Accounts extends APIResource { * @example * ```ts * const account = await client.accounts.update({ - * account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', + * id: '023e105f4ecef8ad9ca31a8372d0c353', * name: 'Demo Account', * }); * ``` @@ -144,7 +145,7 @@ export class Accounts extends APIResource { * @example * ```ts * const account = await client.accounts.get({ - * account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * }); * ``` */ @@ -245,6 +246,11 @@ export interface AccountUpdateParams { */ account_id: string; + /** + * Body param: Identifier + */ + id: string; + /** * Body param: Account name */ diff --git a/src/resources/accounts/members.ts b/src/resources/accounts/members.ts index a69c6d42de..d8e62fa448 100644 --- a/src/resources/accounts/members.ts +++ b/src/resources/accounts/members.ts @@ -13,7 +13,7 @@ export class Members extends APIResource { * @example * ```ts * const member = await client.accounts.members.create({ - * account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * email: 'user@example.com', * roles: ['3536bcfad5faccb999b47003c79917fb'], * }); @@ -35,7 +35,7 @@ export class Members extends APIResource { * ```ts * const member = await client.accounts.members.update( * '4536bcfad5faccb111b47003c79917fa', - * { account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ @@ -60,7 +60,7 @@ export class Members extends APIResource { * ```ts * // Automatically fetches more pages as needed. * for await (const member of client.accounts.members.list({ - * account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * })) { * // ... * } @@ -84,7 +84,7 @@ export class Members extends APIResource { * ```ts * const member = await client.accounts.members.delete( * '4536bcfad5faccb111b47003c79917fa', - * { account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ @@ -108,7 +108,7 @@ export class Members extends APIResource { * ```ts * const member = await client.accounts.members.get( * '4536bcfad5faccb111b47003c79917fa', - * { account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ diff --git a/src/resources/accounts/roles.ts b/src/resources/accounts/roles.ts index 509e0381e6..c69d81fdd6 100644 --- a/src/resources/accounts/roles.ts +++ b/src/resources/accounts/roles.ts @@ -14,7 +14,7 @@ export class Roles extends APIResource { * ```ts * // Automatically fetches more pages as needed. * for await (const role of client.accounts.roles.list({ - * account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * })) { * // ... * } @@ -38,7 +38,7 @@ export class Roles extends APIResource { * ```ts * const role = await client.accounts.roles.get( * '3536bcfad5faccb999b47003c79917fb', - * { account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ diff --git a/src/resources/accounts/tokens/permission-groups.ts b/src/resources/accounts/tokens/permission-groups.ts index 37c6d2d52c..6981b15a7c 100644 --- a/src/resources/accounts/tokens/permission-groups.ts +++ b/src/resources/accounts/tokens/permission-groups.ts @@ -12,7 +12,7 @@ export class PermissionGroups extends APIResource { * ```ts * // Automatically fetches more pages as needed. * for await (const permissionGroupListResponse of client.accounts.tokens.permissionGroups.list( - * { account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * )) { * // ... * } @@ -37,7 +37,7 @@ export class PermissionGroups extends APIResource { * ```ts * // Automatically fetches more pages as needed. * for await (const permissionGroupGetResponse of client.accounts.tokens.permissionGroups.get( - * { account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * )) { * // ... * } diff --git a/src/resources/accounts/tokens/tokens.ts b/src/resources/accounts/tokens/tokens.ts index ff9f4a126e..0d10db01ff 100644 --- a/src/resources/accounts/tokens/tokens.ts +++ b/src/resources/accounts/tokens/tokens.ts @@ -30,7 +30,7 @@ export class Tokens extends APIResource { * @example * ```ts * const token = await client.accounts.tokens.create({ - * account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * name: 'readonly token', * policies: [ * { @@ -67,7 +67,7 @@ export class Tokens extends APIResource { * const token = await client.accounts.tokens.update( * 'ed17574386854bf78a67040be0a770b0', * { - * account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * name: 'readonly token', * policies: [ * { @@ -109,7 +109,7 @@ export class Tokens extends APIResource { * ```ts * // Automatically fetches more pages as needed. * for await (const token of client.accounts.tokens.list({ - * account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * })) { * // ... * } @@ -133,7 +133,7 @@ export class Tokens extends APIResource { * ```ts * const token = await client.accounts.tokens.delete( * 'ed17574386854bf78a67040be0a770b0', - * { account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ @@ -157,7 +157,7 @@ export class Tokens extends APIResource { * ```ts * const token = await client.accounts.tokens.get( * 'ed17574386854bf78a67040be0a770b0', - * { account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ @@ -176,7 +176,7 @@ export class Tokens extends APIResource { * @example * ```ts * const response = await client.accounts.tokens.verify({ - * account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * }); * ``` */ diff --git a/src/resources/accounts/tokens/value.ts b/src/resources/accounts/tokens/value.ts index 235c07f52b..26a17684f0 100644 --- a/src/resources/accounts/tokens/value.ts +++ b/src/resources/accounts/tokens/value.ts @@ -14,7 +14,7 @@ export class Value extends APIResource { * await client.accounts.tokens.value.update( * 'ed17574386854bf78a67040be0a770b0', * { - * account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * body: {}, * }, * ); diff --git a/src/resources/iam/permission-groups.ts b/src/resources/iam/permission-groups.ts index fde85c6647..7408bd79cb 100644 --- a/src/resources/iam/permission-groups.ts +++ b/src/resources/iam/permission-groups.ts @@ -12,7 +12,7 @@ export class PermissionGroups extends APIResource { * ```ts * // Automatically fetches more pages as needed. * for await (const permissionGroupListResponse of client.iam.permissionGroups.list( - * { account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * )) { * // ... * } @@ -37,8 +37,8 @@ export class PermissionGroups extends APIResource { * ```ts * const permissionGroup = * await client.iam.permissionGroups.get( - * '6d7f2f5f5b1d4a0e9081fdc98d432fd1', - * { account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }, + * '023e105f4ecef8ad9ca31a8372d0c353', + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ @@ -60,7 +60,7 @@ export class PermissionGroupListResponsesV4PagePaginationArray extends V4PagePag */ export interface PermissionGroupListResponse { /** - * Identifier of the group. + * Identifier of the permission group. */ id: string; @@ -70,7 +70,7 @@ export interface PermissionGroupListResponse { meta?: PermissionGroupListResponse.Meta; /** - * Name of the group. + * Name of the permission group. */ name?: string; } @@ -92,7 +92,7 @@ export namespace PermissionGroupListResponse { */ export interface PermissionGroupGetResponse { /** - * Identifier of the group. + * Identifier of the permission group. */ id: string; @@ -102,7 +102,7 @@ export interface PermissionGroupGetResponse { meta?: PermissionGroupGetResponse.Meta; /** - * Name of the group. + * Name of the permission group. */ name?: string; } diff --git a/src/resources/iam/resource-groups.ts b/src/resources/iam/resource-groups.ts index 754fb3baeb..f7e6573eea 100644 --- a/src/resources/iam/resource-groups.ts +++ b/src/resources/iam/resource-groups.ts @@ -12,7 +12,7 @@ export class ResourceGroups extends APIResource { * ```ts * const resourceGroup = * await client.iam.resourceGroups.create({ - * account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * name: 'NewResourceGroup', * scope: { * key: 'com.cloudflare.api.account.eb78d65290b24279ba6f44721b3ea3c4', @@ -40,8 +40,8 @@ export class ResourceGroups extends APIResource { * ```ts * const resourceGroup = * await client.iam.resourceGroups.update( - * '6d7f2f5f5b1d4a0e9081fdc98d432fd1', - * { account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }, + * '023e105f4ecef8ad9ca31a8372d0c353', + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ @@ -64,7 +64,7 @@ export class ResourceGroups extends APIResource { * ```ts * // Automatically fetches more pages as needed. * for await (const resourceGroupListResponse of client.iam.resourceGroups.list( - * { account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * )) { * // ... * } @@ -89,8 +89,8 @@ export class ResourceGroups extends APIResource { * ```ts * const resourceGroup = * await client.iam.resourceGroups.delete( - * '6d7f2f5f5b1d4a0e9081fdc98d432fd1', - * { account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }, + * '023e105f4ecef8ad9ca31a8372d0c353', + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ @@ -114,8 +114,8 @@ export class ResourceGroups extends APIResource { * @example * ```ts * const resourceGroup = await client.iam.resourceGroups.get( - * '6d7f2f5f5b1d4a0e9081fdc98d432fd1', - * { account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }, + * '023e105f4ecef8ad9ca31a8372d0c353', + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ @@ -189,7 +189,7 @@ export namespace ResourceGroupCreateResponse { */ export interface ResourceGroupUpdateResponse { /** - * Identifier of the group. + * Identifier of the resource group. */ id: string; @@ -255,7 +255,7 @@ export namespace ResourceGroupUpdateResponse { */ export interface ResourceGroupListResponse { /** - * Identifier of the group. + * Identifier of the resource group. */ id: string; @@ -328,7 +328,7 @@ export interface ResourceGroupDeleteResponse { */ export interface ResourceGroupGetResponse { /** - * Identifier of the group. + * Identifier of the resource group. */ id: string; diff --git a/src/resources/memberships.ts b/src/resources/memberships.ts index de02c6bf2c..80dc96c4f9 100644 --- a/src/resources/memberships.ts +++ b/src/resources/memberships.ts @@ -251,7 +251,7 @@ export namespace MembershipUpdateResponse { */ export interface PermissionGroup { /** - * Identifier of the group. + * Identifier of the permission group. */ id: string; @@ -261,7 +261,7 @@ export namespace MembershipUpdateResponse { meta?: PermissionGroup.Meta; /** - * Name of the group. + * Name of the permission group. */ name?: string; } @@ -282,7 +282,7 @@ export namespace MembershipUpdateResponse { */ export interface ResourceGroup { /** - * Identifier of the group. + * Identifier of the resource group. */ id: string; @@ -446,7 +446,7 @@ export namespace MembershipGetResponse { */ export interface PermissionGroup { /** - * Identifier of the group. + * Identifier of the permission group. */ id: string; @@ -456,7 +456,7 @@ export namespace MembershipGetResponse { meta?: PermissionGroup.Meta; /** - * Name of the group. + * Name of the permission group. */ name?: string; } @@ -477,7 +477,7 @@ export namespace MembershipGetResponse { */ export interface ResourceGroup { /** - * Identifier of the group. + * Identifier of the resource group. */ id: string; diff --git a/src/resources/shared.ts b/src/resources/shared.ts index cac72a27dd..a72aeaf21d 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -334,7 +334,7 @@ export namespace Member { */ export interface PermissionGroup { /** - * Identifier of the group. + * Identifier of the permission group. */ id: string; @@ -344,7 +344,7 @@ export namespace Member { meta?: PermissionGroup.Meta; /** - * Name of the group. + * Name of the permission group. */ name?: string; } @@ -365,7 +365,7 @@ export namespace Member { */ export interface ResourceGroup { /** - * Identifier of the group. + * Identifier of the resource group. */ id: string; @@ -898,7 +898,7 @@ export namespace TokenPolicy { */ export interface PermissionGroup { /** - * Identifier of the group. + * Identifier of the permission group. */ id: string; @@ -908,7 +908,7 @@ export namespace TokenPolicy { meta?: PermissionGroup.Meta; /** - * Name of the group. + * Name of the permission group. */ name?: string; } @@ -949,7 +949,7 @@ export namespace TokenPolicyParam { */ export interface PermissionGroup { /** - * Identifier of the group. + * Identifier of the permission group. */ id: string; diff --git a/src/resources/user/user.ts b/src/resources/user/user.ts index 02933ccac0..836bf78b22 100644 --- a/src/resources/user/user.ts +++ b/src/resources/user/user.ts @@ -72,9 +72,147 @@ export class User extends APIResource { } } -export type UserEditResponse = unknown; +export interface UserEditResponse { + /** + * Identifier of the user. + */ + id?: string; + + /** + * Lists the betas that the user is participating in. + */ + betas?: Array; + + /** + * The country in which the user lives. + */ + country?: string | null; + + /** + * User's first name + */ + first_name?: string | null; + + /** + * Indicates whether user has any business zones + */ + has_business_zones?: boolean; + + /** + * Indicates whether user has any enterprise zones + */ + has_enterprise_zones?: boolean; + + /** + * Indicates whether user has any pro zones + */ + has_pro_zones?: boolean; + + /** + * User's last name + */ + last_name?: string | null; + + organizations?: Array; + + /** + * Indicates whether user has been suspended + */ + suspended?: boolean; + + /** + * User's telephone number + */ + telephone?: string | null; + + /** + * Indicates whether two-factor authentication is enabled for the user account. + * Does not apply to API authentication. + */ + two_factor_authentication_enabled?: boolean; + + /** + * Indicates whether two-factor authentication is required by one of the accounts + * that the user is a member of. + */ + two_factor_authentication_locked?: boolean; + + /** + * The zipcode or postal code where the user lives. + */ + zipcode?: string | null; +} -export type UserGetResponse = unknown; +export interface UserGetResponse { + /** + * Identifier of the user. + */ + id?: string; + + /** + * Lists the betas that the user is participating in. + */ + betas?: Array; + + /** + * The country in which the user lives. + */ + country?: string | null; + + /** + * User's first name + */ + first_name?: string | null; + + /** + * Indicates whether user has any business zones + */ + has_business_zones?: boolean; + + /** + * Indicates whether user has any enterprise zones + */ + has_enterprise_zones?: boolean; + + /** + * Indicates whether user has any pro zones + */ + has_pro_zones?: boolean; + + /** + * User's last name + */ + last_name?: string | null; + + organizations?: Array; + + /** + * Indicates whether user has been suspended + */ + suspended?: boolean; + + /** + * User's telephone number + */ + telephone?: string | null; + + /** + * Indicates whether two-factor authentication is enabled for the user account. + * Does not apply to API authentication. + */ + two_factor_authentication_enabled?: boolean; + + /** + * Indicates whether two-factor authentication is required by one of the accounts + * that the user is a member of. + */ + two_factor_authentication_locked?: boolean; + + /** + * The zipcode or postal code where the user lives. + */ + zipcode?: string | null; +} export interface UserEditParams { /** diff --git a/tests/api-resources/accounts/accounts.test.ts b/tests/api-resources/accounts/accounts.test.ts index 0e5ddd8af7..249bf24eed 100644 --- a/tests/api-resources/accounts/accounts.test.ts +++ b/tests/api-resources/accounts/accounts.test.ts @@ -31,7 +31,8 @@ describe('resource accounts', () => { test('update: only required params', async () => { const responsePromise = client.accounts.update({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + id: '023e105f4ecef8ad9ca31a8372d0c353', name: 'Demo Account', }); const rawResponse = await responsePromise.asResponse(); @@ -45,7 +46,8 @@ describe('resource accounts', () => { test('update: required and optional params', async () => { const response = await client.accounts.update({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + id: '023e105f4ecef8ad9ca31a8372d0c353', name: 'Demo Account', settings: { abuse_contact_email: 'abuse_contact_email', enforce_twofactor: true }, }); @@ -95,7 +97,7 @@ describe('resource accounts', () => { }); test('get: only required params', async () => { - const responsePromise = client.accounts.get({ account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }); + const responsePromise = client.accounts.get({ account_id: '023e105f4ecef8ad9ca31a8372d0c353' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -106,6 +108,6 @@ describe('resource accounts', () => { }); test('get: required and optional params', async () => { - const response = await client.accounts.get({ account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }); + const response = await client.accounts.get({ account_id: '023e105f4ecef8ad9ca31a8372d0c353' }); }); }); diff --git a/tests/api-resources/accounts/members.test.ts b/tests/api-resources/accounts/members.test.ts index b0b1f88f9c..c1acbbcbbb 100644 --- a/tests/api-resources/accounts/members.test.ts +++ b/tests/api-resources/accounts/members.test.ts @@ -13,7 +13,7 @@ describe('resource members', () => { // HTTP 422 error from prism test.skip('create: only required params', async () => { const responsePromise = client.accounts.members.create({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', email: 'user@example.com', roles: ['3536bcfad5faccb999b47003c79917fb'], }); @@ -29,7 +29,7 @@ describe('resource members', () => { // HTTP 422 error from prism test.skip('create: required and optional params', async () => { const response = await client.accounts.members.create({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', email: 'user@example.com', roles: ['3536bcfad5faccb999b47003c79917fb'], status: 'accepted', @@ -39,7 +39,7 @@ describe('resource members', () => { // TODO: investigate broken test test.skip('update: only required params', async () => { const responsePromise = client.accounts.members.update('4536bcfad5faccb111b47003c79917fa', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -53,13 +53,13 @@ describe('resource members', () => { // TODO: investigate broken test test.skip('update: required and optional params', async () => { const response = await client.accounts.members.update('4536bcfad5faccb111b47003c79917fa', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', roles: [{ id: '3536bcfad5faccb999b47003c79917fb' }], }); }); test('list: only required params', async () => { - const responsePromise = client.accounts.members.list({ account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }); + const responsePromise = client.accounts.members.list({ account_id: '023e105f4ecef8ad9ca31a8372d0c353' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -71,7 +71,7 @@ describe('resource members', () => { test('list: required and optional params', async () => { const response = await client.accounts.members.list({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', direction: 'desc', order: 'status', page: 1, @@ -83,7 +83,7 @@ describe('resource members', () => { // HTTP 422 error from prism test.skip('delete: only required params', async () => { const responsePromise = client.accounts.members.delete('4536bcfad5faccb111b47003c79917fa', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -97,14 +97,14 @@ describe('resource members', () => { // HTTP 422 error from prism test.skip('delete: required and optional params', async () => { const response = await client.accounts.members.delete('4536bcfad5faccb111b47003c79917fa', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); // HTTP 422 error from prism test.skip('get: only required params', async () => { const responsePromise = client.accounts.members.get('4536bcfad5faccb111b47003c79917fa', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -118,7 +118,7 @@ describe('resource members', () => { // HTTP 422 error from prism test.skip('get: required and optional params', async () => { const response = await client.accounts.members.get('4536bcfad5faccb111b47003c79917fa', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); }); diff --git a/tests/api-resources/accounts/roles.test.ts b/tests/api-resources/accounts/roles.test.ts index 9c99aaa4e6..24c513b274 100644 --- a/tests/api-resources/accounts/roles.test.ts +++ b/tests/api-resources/accounts/roles.test.ts @@ -11,7 +11,7 @@ const client = new Cloudflare({ describe('resource roles', () => { test('list: only required params', async () => { - const responsePromise = client.accounts.roles.list({ account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }); + const responsePromise = client.accounts.roles.list({ account_id: '023e105f4ecef8ad9ca31a8372d0c353' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -23,7 +23,7 @@ describe('resource roles', () => { test('list: required and optional params', async () => { const response = await client.accounts.roles.list({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', page: 1, per_page: 5, }); @@ -31,7 +31,7 @@ describe('resource roles', () => { test('get: only required params', async () => { const responsePromise = client.accounts.roles.get('3536bcfad5faccb999b47003c79917fb', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -44,7 +44,7 @@ describe('resource roles', () => { test('get: required and optional params', async () => { const response = await client.accounts.roles.get('3536bcfad5faccb999b47003c79917fb', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); }); diff --git a/tests/api-resources/accounts/tokens/permission-groups.test.ts b/tests/api-resources/accounts/tokens/permission-groups.test.ts index 1aa534ebd5..ea607899a9 100644 --- a/tests/api-resources/accounts/tokens/permission-groups.test.ts +++ b/tests/api-resources/accounts/tokens/permission-groups.test.ts @@ -13,7 +13,7 @@ describe('resource permissionGroups', () => { // TODO: investigate broken test test.skip('list: only required params', async () => { const responsePromise = client.accounts.tokens.permissionGroups.list({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -27,14 +27,14 @@ describe('resource permissionGroups', () => { // TODO: investigate broken test test.skip('list: required and optional params', async () => { const response = await client.accounts.tokens.permissionGroups.list({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); // TODO: investigate broken test test.skip('get: only required params', async () => { const responsePromise = client.accounts.tokens.permissionGroups.get({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -48,7 +48,7 @@ describe('resource permissionGroups', () => { // TODO: investigate broken test test.skip('get: required and optional params', async () => { const response = await client.accounts.tokens.permissionGroups.get({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); }); diff --git a/tests/api-resources/accounts/tokens/tokens.test.ts b/tests/api-resources/accounts/tokens/tokens.test.ts index ccde6464d6..061838067e 100644 --- a/tests/api-resources/accounts/tokens/tokens.test.ts +++ b/tests/api-resources/accounts/tokens/tokens.test.ts @@ -13,7 +13,7 @@ describe('resource tokens', () => { // TODO: investigate broken test test.skip('create: only required params', async () => { const responsePromise = client.accounts.tokens.create({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', name: 'readonly token', policies: [ { @@ -41,7 +41,7 @@ describe('resource tokens', () => { // TODO: investigate broken test test.skip('create: required and optional params', async () => { const response = await client.accounts.tokens.create({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', name: 'readonly token', policies: [ { @@ -70,7 +70,7 @@ describe('resource tokens', () => { // TODO: investigate broken test test.skip('update: only required params', async () => { const responsePromise = client.accounts.tokens.update('ed17574386854bf78a67040be0a770b0', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', name: 'readonly token', policies: [ { @@ -99,7 +99,7 @@ describe('resource tokens', () => { // TODO: investigate broken test test.skip('update: required and optional params', async () => { const response = await client.accounts.tokens.update('ed17574386854bf78a67040be0a770b0', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', name: 'readonly token', policies: [ { @@ -128,7 +128,7 @@ describe('resource tokens', () => { // TODO: investigate broken test test.skip('list: only required params', async () => { - const responsePromise = client.accounts.tokens.list({ account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }); + const responsePromise = client.accounts.tokens.list({ account_id: '023e105f4ecef8ad9ca31a8372d0c353' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -141,7 +141,7 @@ describe('resource tokens', () => { // TODO: investigate broken test test.skip('list: required and optional params', async () => { const response = await client.accounts.tokens.list({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', direction: 'desc', page: 1, per_page: 5, @@ -151,7 +151,7 @@ describe('resource tokens', () => { // TODO: investigate broken test test.skip('delete: only required params', async () => { const responsePromise = client.accounts.tokens.delete('ed17574386854bf78a67040be0a770b0', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -165,14 +165,14 @@ describe('resource tokens', () => { // TODO: investigate broken test test.skip('delete: required and optional params', async () => { const response = await client.accounts.tokens.delete('ed17574386854bf78a67040be0a770b0', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); // TODO: investigate broken test test.skip('get: only required params', async () => { const responsePromise = client.accounts.tokens.get('ed17574386854bf78a67040be0a770b0', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -186,13 +186,13 @@ describe('resource tokens', () => { // TODO: investigate broken test test.skip('get: required and optional params', async () => { const response = await client.accounts.tokens.get('ed17574386854bf78a67040be0a770b0', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); // TODO: investigate broken test test.skip('verify: only required params', async () => { - const responsePromise = client.accounts.tokens.verify({ account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }); + const responsePromise = client.accounts.tokens.verify({ account_id: '023e105f4ecef8ad9ca31a8372d0c353' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -204,6 +204,6 @@ describe('resource tokens', () => { // TODO: investigate broken test test.skip('verify: required and optional params', async () => { - const response = await client.accounts.tokens.verify({ account_id: 'eb78d65290b24279ba6f44721b3ea3c4' }); + const response = await client.accounts.tokens.verify({ account_id: '023e105f4ecef8ad9ca31a8372d0c353' }); }); }); diff --git a/tests/api-resources/accounts/tokens/value.test.ts b/tests/api-resources/accounts/tokens/value.test.ts index f745d1302d..fe8a07eb9b 100644 --- a/tests/api-resources/accounts/tokens/value.test.ts +++ b/tests/api-resources/accounts/tokens/value.test.ts @@ -13,7 +13,7 @@ describe('resource value', () => { // TODO: investigate broken test test.skip('update: only required params', async () => { const responsePromise = client.accounts.tokens.value.update('ed17574386854bf78a67040be0a770b0', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', body: {}, }); const rawResponse = await responsePromise.asResponse(); @@ -28,7 +28,7 @@ describe('resource value', () => { // TODO: investigate broken test test.skip('update: required and optional params', async () => { const response = await client.accounts.tokens.value.update('ed17574386854bf78a67040be0a770b0', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', body: {}, }); }); diff --git a/tests/api-resources/iam/permission-groups.test.ts b/tests/api-resources/iam/permission-groups.test.ts index a9b82dfc3f..4966721610 100644 --- a/tests/api-resources/iam/permission-groups.test.ts +++ b/tests/api-resources/iam/permission-groups.test.ts @@ -12,7 +12,7 @@ const client = new Cloudflare({ describe('resource permissionGroups', () => { test('list: only required params', async () => { const responsePromise = client.iam.permissionGroups.list({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -25,7 +25,7 @@ describe('resource permissionGroups', () => { test('list: required and optional params', async () => { const response = await client.iam.permissionGroups.list({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', id: '6d7f2f5f5b1d4a0e9081fdc98d432fd1', label: 'labelOfThePermissionGroup', name: 'NameOfThePermissionGroup', @@ -35,8 +35,8 @@ describe('resource permissionGroups', () => { }); test('get: only required params', async () => { - const responsePromise = client.iam.permissionGroups.get('6d7f2f5f5b1d4a0e9081fdc98d432fd1', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + const responsePromise = client.iam.permissionGroups.get('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -48,8 +48,8 @@ describe('resource permissionGroups', () => { }); test('get: required and optional params', async () => { - const response = await client.iam.permissionGroups.get('6d7f2f5f5b1d4a0e9081fdc98d432fd1', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + const response = await client.iam.permissionGroups.get('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); }); diff --git a/tests/api-resources/iam/resource-groups.test.ts b/tests/api-resources/iam/resource-groups.test.ts index 81080b731c..1182829e46 100644 --- a/tests/api-resources/iam/resource-groups.test.ts +++ b/tests/api-resources/iam/resource-groups.test.ts @@ -12,7 +12,7 @@ const client = new Cloudflare({ describe('resource resourceGroups', () => { test('create: only required params', async () => { const responsePromise = client.iam.resourceGroups.create({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', name: 'NewResourceGroup', scope: { key: 'com.cloudflare.api.account.eb78d65290b24279ba6f44721b3ea3c4', @@ -30,7 +30,7 @@ describe('resource resourceGroups', () => { test('create: required and optional params', async () => { const response = await client.iam.resourceGroups.create({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', name: 'NewResourceGroup', scope: { key: 'com.cloudflare.api.account.eb78d65290b24279ba6f44721b3ea3c4', @@ -40,8 +40,8 @@ describe('resource resourceGroups', () => { }); test('update: only required params', async () => { - const responsePromise = client.iam.resourceGroups.update('6d7f2f5f5b1d4a0e9081fdc98d432fd1', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + const responsePromise = client.iam.resourceGroups.update('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -53,8 +53,8 @@ describe('resource resourceGroups', () => { }); test('update: required and optional params', async () => { - const response = await client.iam.resourceGroups.update('6d7f2f5f5b1d4a0e9081fdc98d432fd1', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + const response = await client.iam.resourceGroups.update('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', name: 'UpdatedResourceGroup', scope: { key: 'com.cloudflare.api.account.eb78d65290b24279ba6f44721b3ea3c4', @@ -65,7 +65,7 @@ describe('resource resourceGroups', () => { test('list: only required params', async () => { const responsePromise = client.iam.resourceGroups.list({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -78,8 +78,8 @@ describe('resource resourceGroups', () => { test('list: required and optional params', async () => { const response = await client.iam.resourceGroups.list({ - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', - id: '6d7f2f5f5b1d4a0e9081fdc98d432fd1', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + id: '023e105f4ecef8ad9ca31a8372d0c353', name: 'NameOfTheResourceGroup', page: 1, per_page: 5, @@ -87,8 +87,8 @@ describe('resource resourceGroups', () => { }); test('delete: only required params', async () => { - const responsePromise = client.iam.resourceGroups.delete('6d7f2f5f5b1d4a0e9081fdc98d432fd1', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + const responsePromise = client.iam.resourceGroups.delete('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -100,14 +100,14 @@ describe('resource resourceGroups', () => { }); test('delete: required and optional params', async () => { - const response = await client.iam.resourceGroups.delete('6d7f2f5f5b1d4a0e9081fdc98d432fd1', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + const response = await client.iam.resourceGroups.delete('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); test('get: only required params', async () => { - const responsePromise = client.iam.resourceGroups.get('6d7f2f5f5b1d4a0e9081fdc98d432fd1', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + const responsePromise = client.iam.resourceGroups.get('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -119,8 +119,8 @@ describe('resource resourceGroups', () => { }); test('get: required and optional params', async () => { - const response = await client.iam.resourceGroups.get('6d7f2f5f5b1d4a0e9081fdc98d432fd1', { - account_id: 'eb78d65290b24279ba6f44721b3ea3c4', + const response = await client.iam.resourceGroups.get('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); }); From 3a96a061c5d99210778b3f89989e0c7d0b570a66 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 18:05:46 +0000 Subject: [PATCH 180/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 35d669fb03..1457d6f924 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b0d7a6597a0eb6b034f863cd1d6a0cede8066e49ba71c3a99ca073383792ab8f.yml -openapi_spec_hash: 8c2fc678ec978dbdff7fd1de9b255aec +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6773492e97af018fae5cac5460979be509a3bb6c4d14ce80d805cb9e1328aa4f.yml +openapi_spec_hash: de4f43cb837ae9de82f97c42520bd63d config_hash: cb36b26a5fcc81fa60c65016b1e74f0a From 354969e0a67d500c488aecd7354090c6192ecab4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 18:14:20 +0000 Subject: [PATCH 181/366] feat(api): api update --- .stats.yml | 6 +-- api.md | 5 +++ src/resources/ips.ts | 76 ++++++++++++++++++++++++++++++++- tests/api-resources/ips.test.ts | 37 ++++++++++++++++ 4 files changed, 119 insertions(+), 5 deletions(-) create mode 100644 tests/api-resources/ips.test.ts diff --git a/.stats.yml b/.stats.yml index 1457d6f924..1c09b9ffa3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 1741 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6773492e97af018fae5cac5460979be509a3bb6c4d14ce80d805cb9e1328aa4f.yml -openapi_spec_hash: de4f43cb837ae9de82f97c42520bd63d +configured_endpoints: 1742 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-efc58a88a6028fef3d08457bbffc331b54e2b8153dd5e3f4c693517d0c3d073e.yml +openapi_spec_hash: bfc60ab47d6b393226b7c5c2014fed18 config_hash: cb36b26a5fcc81fa60c65016b1e74f0a diff --git a/api.md b/api.md index 1a63d0cc39..9a3ac7ecfd 100644 --- a/api.md +++ b/api.md @@ -145,6 +145,11 @@ Methods: Types: - IPs +- IPListResponse + +Methods: + +- client.ips.list({ ...params }) -> IPListResponse # Memberships diff --git a/src/resources/ips.ts b/src/resources/ips.ts index 809316f7a1..b413c5d462 100644 --- a/src/resources/ips.ts +++ b/src/resources/ips.ts @@ -1,8 +1,30 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../resource'; +import { isRequestOptions } from '../core'; +import * as Core from '../core'; -export class IPs extends APIResource {} +export class IPs extends APIResource { + /** + * Get IPs used on the Cloudflare/JD Cloud network, see + * https://www.cloudflare.com/ips for Cloudflare IPs or + * https://developers.cloudflare.com/china-network/reference/infrastructure/ for JD + * Cloud IPs. + */ + list(query?: IPListParams, options?: Core.RequestOptions): Core.APIPromise; + list(options?: Core.RequestOptions): Core.APIPromise; + list( + query: IPListParams | Core.RequestOptions = {}, + options?: Core.RequestOptions, + ): Core.APIPromise { + if (isRequestOptions(query)) { + return this.list({}, query); + } + return ( + this._client.get('/ips', { query, ...options }) as Core.APIPromise<{ result: IPListResponse }> + )._thenUnwrap((obj) => obj.result); + } +} /** * The set of IPs on the Address Map. @@ -20,6 +42,56 @@ export namespace IPs { } } +export type IPListResponse = IPListResponse.PublicIPIPs | IPListResponse.PublicIPIPsJDCloud; + +export namespace IPListResponse { + export interface PublicIPIPs { + /** + * A digest of the IP data. Useful for determining if the data has changed. + */ + etag?: string; + + /** + * List of Cloudflare IPv4 CIDR addresses. + */ + ipv4_cidrs?: Array; + + /** + * List of Cloudflare IPv6 CIDR addresses. + */ + ipv6_cidrs?: Array; + } + + export interface PublicIPIPsJDCloud { + /** + * A digest of the IP data. Useful for determining if the data has changed. + */ + etag?: string; + + /** + * List of Cloudflare IPv4 CIDR addresses. + */ + ipv4_cidrs?: Array; + + /** + * List of Cloudflare IPv6 CIDR addresses. + */ + ipv6_cidrs?: Array; + + /** + * List IPv4 and IPv6 CIDRs, only populated if `?networks=jdcloud` is used. + */ + jdcloud_cidrs?: Array; + } +} + +export interface IPListParams { + /** + * Specified as `jdcloud` to list IPs used by JD Cloud data centers. + */ + networks?: string; +} + export declare namespace IPs { - export { type IPs as IPs }; + export { type IPs as IPs, type IPListResponse as IPListResponse, type IPListParams as IPListParams }; } diff --git a/tests/api-resources/ips.test.ts b/tests/api-resources/ips.test.ts new file mode 100644 index 0000000000..56ac99c687 --- /dev/null +++ b/tests/api-resources/ips.test.ts @@ -0,0 +1,37 @@ +// 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 ips', () => { + test('list', async () => { + const responsePromise = client.ips.list(); + 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: 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.ips.list({ path: '/_stainless_unknown_path' })).rejects.toThrow( + Cloudflare.NotFoundError, + ); + }); + + test('list: 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.ips.list({ networks: 'networks' }, { path: '/_stainless_unknown_path' }), + ).rejects.toThrow(Cloudflare.NotFoundError); + }); +}); From ddaa2cfc78cc02d7afdba6c3d6f3a88281a2d14f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 18:28:23 +0000 Subject: [PATCH 182/366] feat(api): Add IAM User Groups and AutoRAG --- .stats.yml | 8 +- api.md | 39 +- src/resources/iam/iam.ts | 33 + src/resources/iam/index.ts | 14 + src/resources/iam/user-groups.ts | 3 + src/resources/iam/user-groups/index.ts | 29 + src/resources/iam/user-groups/members.ts | 277 +++++ src/resources/iam/user-groups/user-groups.ts | 995 ++++++++++++++++++ src/resources/ips.ts | 76 +- .../iam/user-groups/members.test.ts | 98 ++ .../iam/user-groups/user-groups.test.ts | 145 +++ tests/api-resources/ips.test.ts | 37 - 12 files changed, 1634 insertions(+), 120 deletions(-) create mode 100644 src/resources/iam/user-groups.ts create mode 100644 src/resources/iam/user-groups/index.ts create mode 100644 src/resources/iam/user-groups/members.ts create mode 100644 src/resources/iam/user-groups/user-groups.ts create mode 100644 tests/api-resources/iam/user-groups/members.test.ts create mode 100644 tests/api-resources/iam/user-groups/user-groups.test.ts delete mode 100644 tests/api-resources/ips.test.ts diff --git a/.stats.yml b/.stats.yml index 1c09b9ffa3..01b5cad2f5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 1742 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-efc58a88a6028fef3d08457bbffc331b54e2b8153dd5e3f4c693517d0c3d073e.yml -openapi_spec_hash: bfc60ab47d6b393226b7c5c2014fed18 -config_hash: cb36b26a5fcc81fa60c65016b1e74f0a +configured_endpoints: 1750 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6773492e97af018fae5cac5460979be509a3bb6c4d14ce80d805cb9e1328aa4f.yml +openapi_spec_hash: de4f43cb837ae9de82f97c42520bd63d +config_hash: 34d27311917dcf9fa18b91afc137e504 diff --git a/api.md b/api.md index 9a3ac7ecfd..191bb5dd79 100644 --- a/api.md +++ b/api.md @@ -145,11 +145,6 @@ Methods: Types: - IPs -- IPListResponse - -Methods: - -- client.ips.list({ ...params }) -> IPListResponse # Memberships @@ -8022,6 +8017,40 @@ Methods: - client.iam.resourceGroups.delete(resourceGroupId, { ...params }) -> ResourceGroupDeleteResponse | null - client.iam.resourceGroups.get(resourceGroupId, { ...params }) -> ResourceGroupGetResponse +## UserGroups + +Types: + +- UserGroupCreateResponse +- UserGroupUpdateResponse +- UserGroupListResponse +- UserGroupDeleteResponse +- UserGroupGetResponse + +Methods: + +- client.iam.userGroups.create({ ...params }) -> UserGroupCreateResponse +- client.iam.userGroups.update(userGroupId, { ...params }) -> UserGroupUpdateResponse +- client.iam.userGroups.list({ ...params }) -> UserGroupListResponsesV4PagePaginationArray +- client.iam.userGroups.delete(userGroupId, { ...params }) -> UserGroupDeleteResponse | null +- client.iam.userGroups.get(userGroupId, { ...params }) -> UserGroupGetResponse + +### Members + +Types: + +- MemberCreateResponse +- MemberUpdateResponse +- MemberListResponse +- MemberDeleteResponse + +Methods: + +- client.iam.userGroups.members.create(userGroupId, [ ...body ]) -> MemberCreateResponse +- client.iam.userGroups.members.update(userGroupId, [ ...body ]) -> MemberUpdateResponsesSinglePage +- client.iam.userGroups.members.list(userGroupId, { ...params }) -> MemberListResponsesV4PagePaginationArray +- client.iam.userGroups.members.delete(userGroupId, memberId, { ...params }) -> MemberDeleteResponse + # CloudConnector ## Rules diff --git a/src/resources/iam/iam.ts b/src/resources/iam/iam.ts index 7133ae36e2..effb3c43f8 100644 --- a/src/resources/iam/iam.ts +++ b/src/resources/iam/iam.ts @@ -25,18 +25,36 @@ import { ResourceGroupUpdateResponse, ResourceGroups, } from './resource-groups'; +import * as UserGroupsAPI from './user-groups/user-groups'; +import { + UserGroupCreateParams, + UserGroupCreateResponse, + UserGroupDeleteParams, + UserGroupDeleteResponse, + UserGroupGetParams, + UserGroupGetResponse, + UserGroupListParams, + UserGroupListResponse, + UserGroupListResponsesV4PagePaginationArray, + UserGroupUpdateParams, + UserGroupUpdateResponse, + UserGroups, +} from './user-groups/user-groups'; export class IAM extends APIResource { permissionGroups: PermissionGroupsAPI.PermissionGroups = new PermissionGroupsAPI.PermissionGroups( this._client, ); resourceGroups: ResourceGroupsAPI.ResourceGroups = new ResourceGroupsAPI.ResourceGroups(this._client); + userGroups: UserGroupsAPI.UserGroups = new UserGroupsAPI.UserGroups(this._client); } IAM.PermissionGroups = PermissionGroups; IAM.PermissionGroupListResponsesV4PagePaginationArray = PermissionGroupListResponsesV4PagePaginationArray; IAM.ResourceGroups = ResourceGroups; IAM.ResourceGroupListResponsesV4PagePaginationArray = ResourceGroupListResponsesV4PagePaginationArray; +IAM.UserGroups = UserGroups; +IAM.UserGroupListResponsesV4PagePaginationArray = UserGroupListResponsesV4PagePaginationArray; export declare namespace IAM { export { @@ -62,4 +80,19 @@ export declare namespace IAM { type ResourceGroupDeleteParams as ResourceGroupDeleteParams, type ResourceGroupGetParams as ResourceGroupGetParams, }; + + export { + UserGroups as UserGroups, + type UserGroupCreateResponse as UserGroupCreateResponse, + type UserGroupUpdateResponse as UserGroupUpdateResponse, + type UserGroupListResponse as UserGroupListResponse, + type UserGroupDeleteResponse as UserGroupDeleteResponse, + type UserGroupGetResponse as UserGroupGetResponse, + UserGroupListResponsesV4PagePaginationArray as UserGroupListResponsesV4PagePaginationArray, + type UserGroupCreateParams as UserGroupCreateParams, + type UserGroupUpdateParams as UserGroupUpdateParams, + type UserGroupListParams as UserGroupListParams, + type UserGroupDeleteParams as UserGroupDeleteParams, + type UserGroupGetParams as UserGroupGetParams, + }; } diff --git a/src/resources/iam/index.ts b/src/resources/iam/index.ts index 233e440ab0..315458fbea 100644 --- a/src/resources/iam/index.ts +++ b/src/resources/iam/index.ts @@ -23,3 +23,17 @@ export { type ResourceGroupDeleteParams, type ResourceGroupGetParams, } from './resource-groups'; +export { + UserGroupListResponsesV4PagePaginationArray, + UserGroups, + type UserGroupCreateResponse, + type UserGroupUpdateResponse, + type UserGroupListResponse, + type UserGroupDeleteResponse, + type UserGroupGetResponse, + type UserGroupCreateParams, + type UserGroupUpdateParams, + type UserGroupListParams, + type UserGroupDeleteParams, + type UserGroupGetParams, +} from './user-groups/index'; diff --git a/src/resources/iam/user-groups.ts b/src/resources/iam/user-groups.ts new file mode 100644 index 0000000000..9f71417624 --- /dev/null +++ b/src/resources/iam/user-groups.ts @@ -0,0 +1,3 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +export * from './user-groups/index'; diff --git a/src/resources/iam/user-groups/index.ts b/src/resources/iam/user-groups/index.ts new file mode 100644 index 0000000000..ba2bd27af0 --- /dev/null +++ b/src/resources/iam/user-groups/index.ts @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +export { + MemberUpdateResponsesSinglePage, + MemberListResponsesV4PagePaginationArray, + Members, + type MemberCreateResponse, + type MemberUpdateResponse, + type MemberListResponse, + type MemberDeleteResponse, + type MemberCreateParams, + type MemberUpdateParams, + type MemberListParams, + type MemberDeleteParams, +} from './members'; +export { + UserGroupListResponsesV4PagePaginationArray, + UserGroups, + type UserGroupCreateResponse, + type UserGroupUpdateResponse, + type UserGroupListResponse, + type UserGroupDeleteResponse, + type UserGroupGetResponse, + type UserGroupCreateParams, + type UserGroupUpdateParams, + type UserGroupListParams, + type UserGroupDeleteParams, + type UserGroupGetParams, +} from './user-groups'; diff --git a/src/resources/iam/user-groups/members.ts b/src/resources/iam/user-groups/members.ts new file mode 100644 index 0000000000..d234c6099d --- /dev/null +++ b/src/resources/iam/user-groups/members.ts @@ -0,0 +1,277 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../../resource'; +import * as Core from '../../../core'; +import { SinglePage, V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../../pagination'; + +export class Members extends APIResource { + /** + * Add members to a User Group. + * + * @example + * ```ts + * const member = await client.iam.userGroups.members.create( + * '023e105f4ecef8ad9ca31a8372d0c353', + * { + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', + * body: [{ id: '023e105f4ecef8ad9ca31a8372d0c353' }], + * }, + * ); + * ``` + */ + create( + userGroupId: string, + params: MemberCreateParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, body } = params; + return ( + this._client.post(`/accounts/${account_id}/iam/user_groups/${userGroupId}/members`, { + body: body, + ...options, + }) as Core.APIPromise<{ result: MemberCreateResponse }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Replace the set of members attached to a User Group. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const memberUpdateResponse of client.iam.userGroups.members.update( + * '023e105f4ecef8ad9ca31a8372d0c353', + * { + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', + * body: [{ id: '023e105f4ecef8ad9ca31a8372d0c353' }], + * }, + * )) { + * // ... + * } + * ``` + */ + update( + userGroupId: string, + params: MemberUpdateParams, + options?: Core.RequestOptions, + ): Core.PagePromise { + const { account_id, body } = params; + return this._client.getAPIList( + `/accounts/${account_id}/iam/user_groups/${userGroupId}/members`, + MemberUpdateResponsesSinglePage, + { body: body, method: 'put', ...options }, + ); + } + + /** + * List all the members attached to a user group. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const memberListResponse of client.iam.userGroups.members.list( + * '023e105f4ecef8ad9ca31a8372d0c353', + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, + * )) { + * // ... + * } + * ``` + */ + list( + userGroupId: string, + params: MemberListParams, + options?: Core.RequestOptions, + ): Core.PagePromise { + const { account_id, ...query } = params; + return this._client.getAPIList( + `/accounts/${account_id}/iam/user_groups/${userGroupId}/members`, + MemberListResponsesV4PagePaginationArray, + { query, ...options }, + ); + } + + /** + * Remove a member from User Group + * + * @example + * ```ts + * const member = await client.iam.userGroups.members.delete( + * '023e105f4ecef8ad9ca31a8372d0c353', + * '023e105f4ecef8ad9ca31a8372d0c353', + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, + * ); + * ``` + */ + delete( + userGroupId: string, + memberId: string, + params: MemberDeleteParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id } = params; + return ( + this._client.delete( + `/accounts/${account_id}/iam/user_groups/${userGroupId}/members/${memberId}`, + options, + ) as Core.APIPromise<{ result: MemberDeleteResponse }> + )._thenUnwrap((obj) => obj.result); + } +} + +export class MemberUpdateResponsesSinglePage extends SinglePage {} + +export class MemberListResponsesV4PagePaginationArray extends V4PagePaginationArray {} + +/** + * Member attached to a User Group. + */ +export interface MemberCreateResponse { + /** + * Account member identifier. + */ + id: string; + + /** + * The contact email address of the user. + */ + email?: string; + + /** + * The member's status in the account. + */ + status?: 'accepted' | 'pending'; +} + +/** + * Member attached to a User Group. + */ +export interface MemberUpdateResponse { + /** + * Account member identifier. + */ + id: string; + + /** + * The contact email address of the user. + */ + email?: string; + + /** + * The member's status in the account. + */ + status?: 'accepted' | 'pending'; +} + +/** + * Member attached to a User Group. + */ +export interface MemberListResponse { + /** + * Account member identifier. + */ + id: string; + + /** + * The contact email address of the user. + */ + email?: string; + + /** + * The member's status in the account. + */ + status?: 'accepted' | 'pending'; +} + +/** + * Member attached to a User Group. + */ +export interface MemberDeleteResponse { + /** + * Account member identifier. + */ + id: string; + + /** + * The contact email address of the user. + */ + email?: string; + + /** + * The member's status in the account. + */ + status?: 'accepted' | 'pending'; +} + +export interface MemberCreateParams { + /** + * Path param: Account identifier tag. + */ + account_id: string; + + /** + * Body param: + */ + body: Array; +} + +export namespace MemberCreateParams { + export interface Body { + /** + * The identifier of an existing account Member. + */ + id: string; + } +} + +export interface MemberUpdateParams { + /** + * Path param: Account identifier tag. + */ + account_id: string; + + /** + * Body param: Set/Replace members to a user group. + */ + body: Array; +} + +export namespace MemberUpdateParams { + export interface Body { + /** + * The identifier of an existing account Member. + */ + id: string; + } +} + +export interface MemberListParams extends V4PagePaginationArrayParams { + /** + * Path param: Account identifier tag. + */ + account_id: string; +} + +export interface MemberDeleteParams { + /** + * Account identifier tag. + */ + account_id: string; +} + +Members.MemberUpdateResponsesSinglePage = MemberUpdateResponsesSinglePage; +Members.MemberListResponsesV4PagePaginationArray = MemberListResponsesV4PagePaginationArray; + +export declare namespace Members { + export { + type MemberCreateResponse as MemberCreateResponse, + type MemberUpdateResponse as MemberUpdateResponse, + type MemberListResponse as MemberListResponse, + type MemberDeleteResponse as MemberDeleteResponse, + MemberUpdateResponsesSinglePage as MemberUpdateResponsesSinglePage, + MemberListResponsesV4PagePaginationArray as MemberListResponsesV4PagePaginationArray, + type MemberCreateParams as MemberCreateParams, + type MemberUpdateParams as MemberUpdateParams, + type MemberListParams as MemberListParams, + type MemberDeleteParams as MemberDeleteParams, + }; +} diff --git a/src/resources/iam/user-groups/user-groups.ts b/src/resources/iam/user-groups/user-groups.ts new file mode 100644 index 0000000000..8943732895 --- /dev/null +++ b/src/resources/iam/user-groups/user-groups.ts @@ -0,0 +1,995 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../../resource'; +import * as Core from '../../../core'; +import * as MembersAPI from './members'; +import { + MemberCreateParams, + MemberCreateResponse, + MemberDeleteParams, + MemberDeleteResponse, + MemberListParams, + MemberListResponse, + MemberListResponsesV4PagePaginationArray, + MemberUpdateParams, + MemberUpdateResponse, + MemberUpdateResponsesSinglePage, + Members, +} from './members'; +import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../../pagination'; + +export class UserGroups extends APIResource { + members: MembersAPI.Members = new MembersAPI.Members(this._client); + + /** + * Create a new user group under the specified account. + * + * @example + * ```ts + * const userGroup = await client.iam.userGroups.create({ + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', + * name: 'My New User Group', + * policies: [ + * { + * access: 'allow', + * permission_groups: [ + * { id: 'c8fed203ed3043cba015a93ad1616f1f' }, + * { id: '82e64a83756745bbbb1c9c2701bf816b' }, + * ], + * resource_groups: [ + * { id: '6d7f2f5f5b1d4a0e9081fdc98d432fd1' }, + * ], + * }, + * ], + * }); + * ``` + */ + create( + params: UserGroupCreateParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, ...body } = params; + return ( + this._client.post(`/accounts/${account_id}/iam/user_groups`, { body, ...options }) as Core.APIPromise<{ + result: UserGroupCreateResponse; + }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Modify an existing user group. + * + * @example + * ```ts + * const userGroup = await client.iam.userGroups.update( + * '023e105f4ecef8ad9ca31a8372d0c353', + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, + * ); + * ``` + */ + update( + userGroupId: string, + params: UserGroupUpdateParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, ...body } = params; + return ( + this._client.put(`/accounts/${account_id}/iam/user_groups/${userGroupId}`, { + body, + ...options, + }) as Core.APIPromise<{ result: UserGroupUpdateResponse }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * List all the user groups for an account. + * + * @example + * ```ts + * // Automatically fetches more pages as needed. + * for await (const userGroupListResponse of client.iam.userGroups.list( + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, + * )) { + * // ... + * } + * ``` + */ + list( + params: UserGroupListParams, + options?: Core.RequestOptions, + ): Core.PagePromise { + const { account_id, ...query } = params; + return this._client.getAPIList( + `/accounts/${account_id}/iam/user_groups`, + UserGroupListResponsesV4PagePaginationArray, + { query, ...options }, + ); + } + + /** + * Remove a user group from an account. + * + * @example + * ```ts + * const userGroup = await client.iam.userGroups.delete( + * '023e105f4ecef8ad9ca31a8372d0c353', + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, + * ); + * ``` + */ + delete( + userGroupId: string, + params: UserGroupDeleteParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id } = params; + return ( + this._client.delete( + `/accounts/${account_id}/iam/user_groups/${userGroupId}`, + options, + ) as Core.APIPromise<{ result: UserGroupDeleteResponse | null }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Get information about a specific user group in an account. + * + * @example + * ```ts + * const userGroup = await client.iam.userGroups.get( + * '023e105f4ecef8ad9ca31a8372d0c353', + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, + * ); + * ``` + */ + get( + userGroupId: string, + params: UserGroupGetParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id } = params; + return ( + this._client.get(`/accounts/${account_id}/iam/user_groups/${userGroupId}`, options) as Core.APIPromise<{ + result: UserGroupGetResponse; + }> + )._thenUnwrap((obj) => obj.result); + } +} + +export class UserGroupListResponsesV4PagePaginationArray extends V4PagePaginationArray {} + +/** + * A group of policies resources. + */ +export interface UserGroupCreateResponse { + /** + * User Group identifier tag. + */ + id: string; + + /** + * Timestamp for the creation of the user group + */ + created_on: string; + + /** + * Last time the user group was modified. + */ + modified_on: string; + + /** + * Name of the user group. + */ + name: string; + + /** + * Policies attached to the User group + */ + policies?: Array; +} + +export namespace UserGroupCreateResponse { + /** + * Policy + */ + export interface Policy { + /** + * Policy identifier. + */ + id?: string; + + /** + * Allow or deny operations against the resources. + */ + access?: 'allow' | 'deny'; + + /** + * A set of permission groups that are specified to the policy. + */ + permission_groups?: Array; + + /** + * A list of resource groups that the policy applies to. + */ + resource_groups?: Array; + } + + export namespace Policy { + /** + * A named group of permissions that map to a group of operations against + * resources. + */ + export interface PermissionGroup { + /** + * Identifier of the permission group. + */ + id: string; + + /** + * Attributes associated to the permission group. + */ + meta?: PermissionGroup.Meta; + + /** + * Name of the permission group. + */ + name?: string; + } + + export namespace PermissionGroup { + /** + * Attributes associated to the permission group. + */ + export interface Meta { + key?: string; + + value?: string; + } + } + + /** + * A group of scoped resources. + */ + export interface ResourceGroup { + /** + * Identifier of the resource group. + */ + id: string; + + /** + * The scope associated to the resource group + */ + scope: Array; + + /** + * Attributes associated to the resource group. + */ + meta?: ResourceGroup.Meta; + + /** + * Name of the resource group. + */ + name?: string; + } + + export namespace ResourceGroup { + /** + * A scope is a combination of scope objects which provides additional context. + */ + export interface Scope { + /** + * This is a combination of pre-defined resource name and identifier (like Account + * ID etc.) + */ + key: string; + + /** + * A list of scope objects for additional context. + */ + objects: Array; + } + + export namespace Scope { + /** + * A scope object represents any resource that can have actions applied against + * invite. + */ + export interface Object { + /** + * This is a combination of pre-defined resource name and identifier (like Zone ID + * etc.) + */ + key: string; + } + } + + /** + * Attributes associated to the resource group. + */ + export interface Meta { + key?: string; + + value?: string; + } + } + } +} + +/** + * A group of policies resources. + */ +export interface UserGroupUpdateResponse { + /** + * User Group identifier tag. + */ + id: string; + + /** + * Timestamp for the creation of the user group + */ + created_on: string; + + /** + * Last time the user group was modified. + */ + modified_on: string; + + /** + * Name of the user group. + */ + name: string; + + /** + * Policies attached to the User group + */ + policies?: Array; +} + +export namespace UserGroupUpdateResponse { + /** + * Policy + */ + export interface Policy { + /** + * Policy identifier. + */ + id?: string; + + /** + * Allow or deny operations against the resources. + */ + access?: 'allow' | 'deny'; + + /** + * A set of permission groups that are specified to the policy. + */ + permission_groups?: Array; + + /** + * A list of resource groups that the policy applies to. + */ + resource_groups?: Array; + } + + export namespace Policy { + /** + * A named group of permissions that map to a group of operations against + * resources. + */ + export interface PermissionGroup { + /** + * Identifier of the permission group. + */ + id: string; + + /** + * Attributes associated to the permission group. + */ + meta?: PermissionGroup.Meta; + + /** + * Name of the permission group. + */ + name?: string; + } + + export namespace PermissionGroup { + /** + * Attributes associated to the permission group. + */ + export interface Meta { + key?: string; + + value?: string; + } + } + + /** + * A group of scoped resources. + */ + export interface ResourceGroup { + /** + * Identifier of the resource group. + */ + id: string; + + /** + * The scope associated to the resource group + */ + scope: Array; + + /** + * Attributes associated to the resource group. + */ + meta?: ResourceGroup.Meta; + + /** + * Name of the resource group. + */ + name?: string; + } + + export namespace ResourceGroup { + /** + * A scope is a combination of scope objects which provides additional context. + */ + export interface Scope { + /** + * This is a combination of pre-defined resource name and identifier (like Account + * ID etc.) + */ + key: string; + + /** + * A list of scope objects for additional context. + */ + objects: Array; + } + + export namespace Scope { + /** + * A scope object represents any resource that can have actions applied against + * invite. + */ + export interface Object { + /** + * This is a combination of pre-defined resource name and identifier (like Zone ID + * etc.) + */ + key: string; + } + } + + /** + * Attributes associated to the resource group. + */ + export interface Meta { + key?: string; + + value?: string; + } + } + } +} + +/** + * A group of policies resources. + */ +export interface UserGroupListResponse { + /** + * User Group identifier tag. + */ + id: string; + + /** + * Timestamp for the creation of the user group + */ + created_on: string; + + /** + * Last time the user group was modified. + */ + modified_on: string; + + /** + * Name of the user group. + */ + name: string; + + /** + * Policies attached to the User group + */ + policies?: Array; +} + +export namespace UserGroupListResponse { + /** + * Policy + */ + export interface Policy { + /** + * Policy identifier. + */ + id?: string; + + /** + * Allow or deny operations against the resources. + */ + access?: 'allow' | 'deny'; + + /** + * A set of permission groups that are specified to the policy. + */ + permission_groups?: Array; + + /** + * A list of resource groups that the policy applies to. + */ + resource_groups?: Array; + } + + export namespace Policy { + /** + * A named group of permissions that map to a group of operations against + * resources. + */ + export interface PermissionGroup { + /** + * Identifier of the permission group. + */ + id: string; + + /** + * Attributes associated to the permission group. + */ + meta?: PermissionGroup.Meta; + + /** + * Name of the permission group. + */ + name?: string; + } + + export namespace PermissionGroup { + /** + * Attributes associated to the permission group. + */ + export interface Meta { + key?: string; + + value?: string; + } + } + + /** + * A group of scoped resources. + */ + export interface ResourceGroup { + /** + * Identifier of the resource group. + */ + id: string; + + /** + * The scope associated to the resource group + */ + scope: Array; + + /** + * Attributes associated to the resource group. + */ + meta?: ResourceGroup.Meta; + + /** + * Name of the resource group. + */ + name?: string; + } + + export namespace ResourceGroup { + /** + * A scope is a combination of scope objects which provides additional context. + */ + export interface Scope { + /** + * This is a combination of pre-defined resource name and identifier (like Account + * ID etc.) + */ + key: string; + + /** + * A list of scope objects for additional context. + */ + objects: Array; + } + + export namespace Scope { + /** + * A scope object represents any resource that can have actions applied against + * invite. + */ + export interface Object { + /** + * This is a combination of pre-defined resource name and identifier (like Zone ID + * etc.) + */ + key: string; + } + } + + /** + * Attributes associated to the resource group. + */ + export interface Meta { + key?: string; + + value?: string; + } + } + } +} + +export interface UserGroupDeleteResponse { + /** + * Identifier + */ + id: string; +} + +/** + * A group of policies resources. + */ +export interface UserGroupGetResponse { + /** + * User Group identifier tag. + */ + id: string; + + /** + * Timestamp for the creation of the user group + */ + created_on: string; + + /** + * Last time the user group was modified. + */ + modified_on: string; + + /** + * Name of the user group. + */ + name: string; + + /** + * Policies attached to the User group + */ + policies?: Array; +} + +export namespace UserGroupGetResponse { + /** + * Policy + */ + export interface Policy { + /** + * Policy identifier. + */ + id?: string; + + /** + * Allow or deny operations against the resources. + */ + access?: 'allow' | 'deny'; + + /** + * A set of permission groups that are specified to the policy. + */ + permission_groups?: Array; + + /** + * A list of resource groups that the policy applies to. + */ + resource_groups?: Array; + } + + export namespace Policy { + /** + * A named group of permissions that map to a group of operations against + * resources. + */ + export interface PermissionGroup { + /** + * Identifier of the permission group. + */ + id: string; + + /** + * Attributes associated to the permission group. + */ + meta?: PermissionGroup.Meta; + + /** + * Name of the permission group. + */ + name?: string; + } + + export namespace PermissionGroup { + /** + * Attributes associated to the permission group. + */ + export interface Meta { + key?: string; + + value?: string; + } + } + + /** + * A group of scoped resources. + */ + export interface ResourceGroup { + /** + * Identifier of the resource group. + */ + id: string; + + /** + * The scope associated to the resource group + */ + scope: Array; + + /** + * Attributes associated to the resource group. + */ + meta?: ResourceGroup.Meta; + + /** + * Name of the resource group. + */ + name?: string; + } + + export namespace ResourceGroup { + /** + * A scope is a combination of scope objects which provides additional context. + */ + export interface Scope { + /** + * This is a combination of pre-defined resource name and identifier (like Account + * ID etc.) + */ + key: string; + + /** + * A list of scope objects for additional context. + */ + objects: Array; + } + + export namespace Scope { + /** + * A scope object represents any resource that can have actions applied against + * invite. + */ + export interface Object { + /** + * This is a combination of pre-defined resource name and identifier (like Zone ID + * etc.) + */ + key: string; + } + } + + /** + * Attributes associated to the resource group. + */ + export interface Meta { + key?: string; + + value?: string; + } + } + } +} + +export interface UserGroupCreateParams { + /** + * Path param: Account identifier tag. + */ + account_id: string; + + /** + * Body param: Name of the User group. + */ + name: string; + + /** + * Body param: Policies attached to the User group + */ + policies: Array; +} + +export namespace UserGroupCreateParams { + export interface Policy { + /** + * Allow or deny operations against the resources. + */ + access: 'allow' | 'deny'; + + /** + * A set of permission groups that are specified to the policy. + */ + permission_groups: Array; + + /** + * A set of resource groups that are specified to the policy. + */ + resource_groups: Array; + } + + export namespace Policy { + /** + * A named group of permissions that map to a group of operations against + * resources. + */ + export interface PermissionGroup { + /** + * Permission Group identifier tag. + */ + id: string; + } + + /** + * A group of scoped resources. + */ + export interface ResourceGroup { + /** + * Resource Group identifier tag. + */ + id: string; + } + } +} + +export interface UserGroupUpdateParams { + /** + * Path param: Account identifier tag. + */ + account_id: string; + + /** + * Body param: Name of the User group. + */ + name?: string; + + /** + * Body param: Policies attached to the User group + */ + policies?: Array; +} + +export namespace UserGroupUpdateParams { + export interface Policy { + /** + * Policy identifier. + */ + id: string; + + /** + * Allow or deny operations against the resources. + */ + access: 'allow' | 'deny'; + + /** + * A set of permission groups that are specified to the policy. + */ + permission_groups: Array; + + /** + * A set of resource groups that are specified to the policy. + */ + resource_groups: Array; + } + + export namespace Policy { + /** + * A named group of permissions that map to a group of operations against + * resources. + */ + export interface PermissionGroup { + /** + * Permission Group identifier tag. + */ + id: string; + } + + /** + * A group of scoped resources. + */ + export interface ResourceGroup { + /** + * Resource Group identifier tag. + */ + id: string; + } + } +} + +export interface UserGroupListParams extends V4PagePaginationArrayParams { + /** + * Path param: Account identifier tag. + */ + account_id: string; + + /** + * Query param: ID of the user group to be fetched. + */ + id?: string; + + /** + * Query param: The sort order of returned user groups by name. Default sort order + * is ascending. To switch to descending, set this parameter to "desc" + */ + direction?: string; + + /** + * Query param: A string used for searching for user groups containing that + * substring. + */ + fuzzyName?: string; + + /** + * Query param: Name of the user group to be fetched. + */ + name?: string; +} + +export interface UserGroupDeleteParams { + /** + * Account identifier tag. + */ + account_id: string; +} + +export interface UserGroupGetParams { + /** + * Account identifier tag. + */ + account_id: string; +} + +UserGroups.UserGroupListResponsesV4PagePaginationArray = UserGroupListResponsesV4PagePaginationArray; +UserGroups.Members = Members; +UserGroups.MemberUpdateResponsesSinglePage = MemberUpdateResponsesSinglePage; +UserGroups.MemberListResponsesV4PagePaginationArray = MemberListResponsesV4PagePaginationArray; + +export declare namespace UserGroups { + export { + type UserGroupCreateResponse as UserGroupCreateResponse, + type UserGroupUpdateResponse as UserGroupUpdateResponse, + type UserGroupListResponse as UserGroupListResponse, + type UserGroupDeleteResponse as UserGroupDeleteResponse, + type UserGroupGetResponse as UserGroupGetResponse, + UserGroupListResponsesV4PagePaginationArray as UserGroupListResponsesV4PagePaginationArray, + type UserGroupCreateParams as UserGroupCreateParams, + type UserGroupUpdateParams as UserGroupUpdateParams, + type UserGroupListParams as UserGroupListParams, + type UserGroupDeleteParams as UserGroupDeleteParams, + type UserGroupGetParams as UserGroupGetParams, + }; + + export { + Members as Members, + type MemberCreateResponse as MemberCreateResponse, + type MemberUpdateResponse as MemberUpdateResponse, + type MemberListResponse as MemberListResponse, + type MemberDeleteResponse as MemberDeleteResponse, + MemberUpdateResponsesSinglePage as MemberUpdateResponsesSinglePage, + MemberListResponsesV4PagePaginationArray as MemberListResponsesV4PagePaginationArray, + type MemberCreateParams as MemberCreateParams, + type MemberUpdateParams as MemberUpdateParams, + type MemberListParams as MemberListParams, + type MemberDeleteParams as MemberDeleteParams, + }; +} diff --git a/src/resources/ips.ts b/src/resources/ips.ts index b413c5d462..809316f7a1 100644 --- a/src/resources/ips.ts +++ b/src/resources/ips.ts @@ -1,30 +1,8 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../resource'; -import { isRequestOptions } from '../core'; -import * as Core from '../core'; -export class IPs extends APIResource { - /** - * Get IPs used on the Cloudflare/JD Cloud network, see - * https://www.cloudflare.com/ips for Cloudflare IPs or - * https://developers.cloudflare.com/china-network/reference/infrastructure/ for JD - * Cloud IPs. - */ - list(query?: IPListParams, options?: Core.RequestOptions): Core.APIPromise; - list(options?: Core.RequestOptions): Core.APIPromise; - list( - query: IPListParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.list({}, query); - } - return ( - this._client.get('/ips', { query, ...options }) as Core.APIPromise<{ result: IPListResponse }> - )._thenUnwrap((obj) => obj.result); - } -} +export class IPs extends APIResource {} /** * The set of IPs on the Address Map. @@ -42,56 +20,6 @@ export namespace IPs { } } -export type IPListResponse = IPListResponse.PublicIPIPs | IPListResponse.PublicIPIPsJDCloud; - -export namespace IPListResponse { - export interface PublicIPIPs { - /** - * A digest of the IP data. Useful for determining if the data has changed. - */ - etag?: string; - - /** - * List of Cloudflare IPv4 CIDR addresses. - */ - ipv4_cidrs?: Array; - - /** - * List of Cloudflare IPv6 CIDR addresses. - */ - ipv6_cidrs?: Array; - } - - export interface PublicIPIPsJDCloud { - /** - * A digest of the IP data. Useful for determining if the data has changed. - */ - etag?: string; - - /** - * List of Cloudflare IPv4 CIDR addresses. - */ - ipv4_cidrs?: Array; - - /** - * List of Cloudflare IPv6 CIDR addresses. - */ - ipv6_cidrs?: Array; - - /** - * List IPv4 and IPv6 CIDRs, only populated if `?networks=jdcloud` is used. - */ - jdcloud_cidrs?: Array; - } -} - -export interface IPListParams { - /** - * Specified as `jdcloud` to list IPs used by JD Cloud data centers. - */ - networks?: string; -} - export declare namespace IPs { - export { type IPs as IPs, type IPListResponse as IPListResponse, type IPListParams as IPListParams }; + export { type IPs as IPs }; } diff --git a/tests/api-resources/iam/user-groups/members.test.ts b/tests/api-resources/iam/user-groups/members.test.ts new file mode 100644 index 0000000000..95fa38bc3b --- /dev/null +++ b/tests/api-resources/iam/user-groups/members.test.ts @@ -0,0 +1,98 @@ +// 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 members', () => { + test('create: only required params', async () => { + const responsePromise = client.iam.userGroups.members.create('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + body: [{ 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.iam.userGroups.members.create('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + body: [{ id: '023e105f4ecef8ad9ca31a8372d0c353' }], + }); + }); + + test('update: only required params', async () => { + const responsePromise = client.iam.userGroups.members.update('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + body: [{ 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('update: required and optional params', async () => { + const response = await client.iam.userGroups.members.update('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + body: [{ id: '023e105f4ecef8ad9ca31a8372d0c353' }], + }); + }); + + test('list: only required params', async () => { + const responsePromise = client.iam.userGroups.members.list('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('list: required and optional params', async () => { + const response = await client.iam.userGroups.members.list('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + page: 1, + per_page: 1, + }); + }); + + test('delete: only required params', async () => { + const responsePromise = client.iam.userGroups.members.delete( + '023e105f4ecef8ad9ca31a8372d0c353', + '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('delete: required and optional params', async () => { + const response = await client.iam.userGroups.members.delete( + '023e105f4ecef8ad9ca31a8372d0c353', + '023e105f4ecef8ad9ca31a8372d0c353', + { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, + ); + }); +}); diff --git a/tests/api-resources/iam/user-groups/user-groups.test.ts b/tests/api-resources/iam/user-groups/user-groups.test.ts new file mode 100644 index 0000000000..6b13080d51 --- /dev/null +++ b/tests/api-resources/iam/user-groups/user-groups.test.ts @@ -0,0 +1,145 @@ +// 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 userGroups', () => { + test('create: only required params', async () => { + const responsePromise = client.iam.userGroups.create({ + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + name: 'My New User Group', + policies: [ + { + access: 'allow', + permission_groups: [ + { id: 'c8fed203ed3043cba015a93ad1616f1f' }, + { id: '82e64a83756745bbbb1c9c2701bf816b' }, + ], + resource_groups: [{ id: '6d7f2f5f5b1d4a0e9081fdc98d432fd1' }], + }, + ], + }); + 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.iam.userGroups.create({ + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + name: 'My New User Group', + policies: [ + { + access: 'allow', + permission_groups: [ + { id: 'c8fed203ed3043cba015a93ad1616f1f' }, + { id: '82e64a83756745bbbb1c9c2701bf816b' }, + ], + resource_groups: [{ id: '6d7f2f5f5b1d4a0e9081fdc98d432fd1' }], + }, + ], + }); + }); + + test('update: only required params', async () => { + const responsePromise = client.iam.userGroups.update('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('update: required and optional params', async () => { + const response = await client.iam.userGroups.update('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + name: 'My New User Group', + policies: [ + { + id: 'f267e341f3dd4697bd3b9f71dd96247f', + access: 'allow', + permission_groups: [ + { id: 'c8fed203ed3043cba015a93ad1616f1f' }, + { id: '82e64a83756745bbbb1c9c2701bf816b' }, + ], + resource_groups: [{ id: '6d7f2f5f5b1d4a0e9081fdc98d432fd1' }], + }, + ], + }); + }); + + test('list: only required params', async () => { + const responsePromise = client.iam.userGroups.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.iam.userGroups.list({ + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + id: '023e105f4ecef8ad9ca31a8372d0c353', + direction: 'desc', + fuzzyName: 'Foo', + name: 'NameOfTheUserGroup', + page: 1, + per_page: 5, + }); + }); + + test('delete: only required params', async () => { + const responsePromise = client.iam.userGroups.delete('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('delete: required and optional params', async () => { + const response = await client.iam.userGroups.delete('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + }); + }); + + test('get: only required params', async () => { + const responsePromise = client.iam.userGroups.get('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('get: required and optional params', async () => { + const response = await client.iam.userGroups.get('023e105f4ecef8ad9ca31a8372d0c353', { + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + }); + }); +}); diff --git a/tests/api-resources/ips.test.ts b/tests/api-resources/ips.test.ts deleted file mode 100644 index 56ac99c687..0000000000 --- a/tests/api-resources/ips.test.ts +++ /dev/null @@ -1,37 +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 ips', () => { - test('list', async () => { - const responsePromise = client.ips.list(); - 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: 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.ips.list({ path: '/_stainless_unknown_path' })).rejects.toThrow( - Cloudflare.NotFoundError, - ); - }); - - test('list: 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.ips.list({ networks: 'networks' }, { path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); From 1b474529e2697b665de6f6c8188071708e17a1d5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 19:04:41 +0000 Subject: [PATCH 183/366] feat(api): api update --- .stats.yml | 6 +-- api.md | 5 +++ src/resources/ips.ts | 76 ++++++++++++++++++++++++++++++++- tests/api-resources/ips.test.ts | 37 ++++++++++++++++ 4 files changed, 119 insertions(+), 5 deletions(-) create mode 100644 tests/api-resources/ips.test.ts diff --git a/.stats.yml b/.stats.yml index 01b5cad2f5..c594a49ed6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 1750 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6773492e97af018fae5cac5460979be509a3bb6c4d14ce80d805cb9e1328aa4f.yml -openapi_spec_hash: de4f43cb837ae9de82f97c42520bd63d +configured_endpoints: 1751 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-efc58a88a6028fef3d08457bbffc331b54e2b8153dd5e3f4c693517d0c3d073e.yml +openapi_spec_hash: bfc60ab47d6b393226b7c5c2014fed18 config_hash: 34d27311917dcf9fa18b91afc137e504 diff --git a/api.md b/api.md index 191bb5dd79..36d262e900 100644 --- a/api.md +++ b/api.md @@ -145,6 +145,11 @@ Methods: Types: - IPs +- IPListResponse + +Methods: + +- client.ips.list({ ...params }) -> IPListResponse # Memberships diff --git a/src/resources/ips.ts b/src/resources/ips.ts index 809316f7a1..b413c5d462 100644 --- a/src/resources/ips.ts +++ b/src/resources/ips.ts @@ -1,8 +1,30 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../resource'; +import { isRequestOptions } from '../core'; +import * as Core from '../core'; -export class IPs extends APIResource {} +export class IPs extends APIResource { + /** + * Get IPs used on the Cloudflare/JD Cloud network, see + * https://www.cloudflare.com/ips for Cloudflare IPs or + * https://developers.cloudflare.com/china-network/reference/infrastructure/ for JD + * Cloud IPs. + */ + list(query?: IPListParams, options?: Core.RequestOptions): Core.APIPromise; + list(options?: Core.RequestOptions): Core.APIPromise; + list( + query: IPListParams | Core.RequestOptions = {}, + options?: Core.RequestOptions, + ): Core.APIPromise { + if (isRequestOptions(query)) { + return this.list({}, query); + } + return ( + this._client.get('/ips', { query, ...options }) as Core.APIPromise<{ result: IPListResponse }> + )._thenUnwrap((obj) => obj.result); + } +} /** * The set of IPs on the Address Map. @@ -20,6 +42,56 @@ export namespace IPs { } } +export type IPListResponse = IPListResponse.PublicIPIPs | IPListResponse.PublicIPIPsJDCloud; + +export namespace IPListResponse { + export interface PublicIPIPs { + /** + * A digest of the IP data. Useful for determining if the data has changed. + */ + etag?: string; + + /** + * List of Cloudflare IPv4 CIDR addresses. + */ + ipv4_cidrs?: Array; + + /** + * List of Cloudflare IPv6 CIDR addresses. + */ + ipv6_cidrs?: Array; + } + + export interface PublicIPIPsJDCloud { + /** + * A digest of the IP data. Useful for determining if the data has changed. + */ + etag?: string; + + /** + * List of Cloudflare IPv4 CIDR addresses. + */ + ipv4_cidrs?: Array; + + /** + * List of Cloudflare IPv6 CIDR addresses. + */ + ipv6_cidrs?: Array; + + /** + * List IPv4 and IPv6 CIDRs, only populated if `?networks=jdcloud` is used. + */ + jdcloud_cidrs?: Array; + } +} + +export interface IPListParams { + /** + * Specified as `jdcloud` to list IPs used by JD Cloud data centers. + */ + networks?: string; +} + export declare namespace IPs { - export { type IPs as IPs }; + export { type IPs as IPs, type IPListResponse as IPListResponse, type IPListParams as IPListParams }; } diff --git a/tests/api-resources/ips.test.ts b/tests/api-resources/ips.test.ts new file mode 100644 index 0000000000..56ac99c687 --- /dev/null +++ b/tests/api-resources/ips.test.ts @@ -0,0 +1,37 @@ +// 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 ips', () => { + test('list', async () => { + const responsePromise = client.ips.list(); + 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: 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.ips.list({ path: '/_stainless_unknown_path' })).rejects.toThrow( + Cloudflare.NotFoundError, + ); + }); + + test('list: 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.ips.list({ networks: 'networks' }, { path: '/_stainless_unknown_path' }), + ).rejects.toThrow(Cloudflare.NotFoundError); + }); +}); From a2ee8aeaec56dc520a2456e1cf2592244cdfeb24 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 19:07:02 +0000 Subject: [PATCH 184/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c594a49ed6..a6b5810655 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-efc58a88a6028fef3d08457bbffc331b54e2b8153dd5e3f4c693517d0c3d073e.yml -openapi_spec_hash: bfc60ab47d6b393226b7c5c2014fed18 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cb33cd0f34753b46aa3ae087e4303670f896b4002a7a25e9d81ea9bea5ff7930.yml +openapi_spec_hash: 02df27e0266a238241501797e20d6b1c config_hash: 34d27311917dcf9fa18b91afc137e504 From aada5a73f8fabf4389e84e68b4c5deb303fdf46a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 19:55:47 +0000 Subject: [PATCH 185/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a6b5810655..ae60e6a703 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cb33cd0f34753b46aa3ae087e4303670f896b4002a7a25e9d81ea9bea5ff7930.yml -openapi_spec_hash: 02df27e0266a238241501797e20d6b1c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fbee43ef3ab73abfb4a6136958fc90212bc8ac4c33394595ddd0da538f48ce09.yml +openapi_spec_hash: 3a510b95746b3dc663a53d9d2f8a3a1b config_hash: 34d27311917dcf9fa18b91afc137e504 From 697b12ee0c2a92707efe3f71e74a1325c5f7b8d1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 22:26:55 +0000 Subject: [PATCH 186/366] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index ae60e6a703..afdcf06064 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fbee43ef3ab73abfb4a6136958fc90212bc8ac4c33394595ddd0da538f48ce09.yml openapi_spec_hash: 3a510b95746b3dc663a53d9d2f8a3a1b -config_hash: 34d27311917dcf9fa18b91afc137e504 +config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From 8bcc3fa2f257c4bb13c1846f3e0f15dd2dd09d7a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 23:03:29 +0000 Subject: [PATCH 187/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index afdcf06064..543cf17ca1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fbee43ef3ab73abfb4a6136958fc90212bc8ac4c33394595ddd0da538f48ce09.yml -openapi_spec_hash: 3a510b95746b3dc663a53d9d2f8a3a1b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-08b42b2fba8c936eeff218235578cece21d4d45d1c4dcc336165f4301f2062cb.yml +openapi_spec_hash: 068b4d2310ea2c7988a90db9348ad014 config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From f231fc1f2a1f7eba57edc4ae1ac880999eb92009 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 23:24:28 +0000 Subject: [PATCH 188/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 543cf17ca1..52d991fa0c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-08b42b2fba8c936eeff218235578cece21d4d45d1c4dcc336165f4301f2062cb.yml -openapi_spec_hash: 068b4d2310ea2c7988a90db9348ad014 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-99c2afe8e5eb921a6fc454f67373d3a2371c6ab8ac8d17935cda97b68060180f.yml +openapi_spec_hash: d71c86327afcf1f7f90ac2f85967a94e config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From 52ed31b79fb2aabc7bf3ff3a0f7db9203fa71589 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 00:07:26 +0000 Subject: [PATCH 189/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 52d991fa0c..ed762eedcf 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-99c2afe8e5eb921a6fc454f67373d3a2371c6ab8ac8d17935cda97b68060180f.yml -openapi_spec_hash: d71c86327afcf1f7f90ac2f85967a94e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cb41d5a532ca3e8758e45c907f5cb4872f3da984c25ce40f8b609d6e9a39a860.yml +openapi_spec_hash: bf3792be9ae8829af742129d57c1d20d config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From c3ddc3e84d30317f0e09ef086fd3dc013e38d763 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 06:08:34 +0000 Subject: [PATCH 190/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ed762eedcf..dc7417095d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cb41d5a532ca3e8758e45c907f5cb4872f3da984c25ce40f8b609d6e9a39a860.yml -openapi_spec_hash: bf3792be9ae8829af742129d57c1d20d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c142e17f4119b2b765fe80c020602d21bf166f9a6ff748ae8f964cd69bb3adac.yml +openapi_spec_hash: e6b51d78ebffc777f9a1d1ac60c428f0 config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From 990a98bd954d823ad9ae2363f49c5610e449bb3b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 08:41:31 +0000 Subject: [PATCH 191/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index dc7417095d..8a08736246 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c142e17f4119b2b765fe80c020602d21bf166f9a6ff748ae8f964cd69bb3adac.yml -openapi_spec_hash: e6b51d78ebffc777f9a1d1ac60c428f0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4a44bd63db3331c084b8e8785928e0ddc2e44efa7a6a1a4caee6be0442110ce1.yml +openapi_spec_hash: d235fdb973c639ea2c95cd27ed66e155 config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From a7c6940899a16221658961eb65d4aaba723743e7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 10:02:34 +0000 Subject: [PATCH 192/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8a08736246..71e593141f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4a44bd63db3331c084b8e8785928e0ddc2e44efa7a6a1a4caee6be0442110ce1.yml -openapi_spec_hash: d235fdb973c639ea2c95cd27ed66e155 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-22ed5b651f540028bfa9d233c61e61738d53faf23a8fdb9451bb1833694dc78a.yml +openapi_spec_hash: 0427df8d13b8412ca501a9ada880378a config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From 35de352c5064984e5ffef64e35796075b348b5f0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 11:30:47 +0000 Subject: [PATCH 193/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 71e593141f..9c76e09a0f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-22ed5b651f540028bfa9d233c61e61738d53faf23a8fdb9451bb1833694dc78a.yml -openapi_spec_hash: 0427df8d13b8412ca501a9ada880378a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3a6486fbeb06c11f3d2e4942f84344627cb3d934b25ab107610d6e4253aa61f3.yml +openapi_spec_hash: 78c994007dd556a5bfec596868d3b725 config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From 727f203da976bd82b0574963439d86e5b73912ae Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 11:38:44 +0000 Subject: [PATCH 194/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9c76e09a0f..696e8c0c56 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3a6486fbeb06c11f3d2e4942f84344627cb3d934b25ab107610d6e4253aa61f3.yml -openapi_spec_hash: 78c994007dd556a5bfec596868d3b725 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-69b760148e24a28b30c8ca38b430da406f1cabd75fdb425d4109fdcb203d9f5f.yml +openapi_spec_hash: c5c93fdaaf63faaa968150dbd1c46141 config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From ff15691c980b1fed389b61e98c3483ecb2acda4e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 12:23:38 +0000 Subject: [PATCH 195/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 696e8c0c56..1f12690982 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-69b760148e24a28b30c8ca38b430da406f1cabd75fdb425d4109fdcb203d9f5f.yml -openapi_spec_hash: c5c93fdaaf63faaa968150dbd1c46141 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4c5a338832d46c88ae34d08c700695832d2abd56816ff169e7515e90ca313507.yml +openapi_spec_hash: c72e1cf97edc189577becff4781bde78 config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From 308a2008d40c798a2768cac6a27e4b051873edca Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 13:12:59 +0000 Subject: [PATCH 196/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1f12690982..696e8c0c56 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4c5a338832d46c88ae34d08c700695832d2abd56816ff169e7515e90ca313507.yml -openapi_spec_hash: c72e1cf97edc189577becff4781bde78 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-69b760148e24a28b30c8ca38b430da406f1cabd75fdb425d4109fdcb203d9f5f.yml +openapi_spec_hash: c5c93fdaaf63faaa968150dbd1c46141 config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From f7a7be5a3cec8c63625cb613eaf09dc4c0a1696c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 14:35:19 +0000 Subject: [PATCH 197/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 696e8c0c56..86219bbaba 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-69b760148e24a28b30c8ca38b430da406f1cabd75fdb425d4109fdcb203d9f5f.yml -openapi_spec_hash: c5c93fdaaf63faaa968150dbd1c46141 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fc94c8560bf9576ce8649ad8abc75147b71d1465c7030bf2688320e528b777df.yml +openapi_spec_hash: 134add1df3ac2f0d36d1e02f9c16af4b config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From 99d555d43afdb39a87eb4e87731e52b6ad69a076 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 15:15:10 +0000 Subject: [PATCH 198/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 86219bbaba..b707f7cb66 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fc94c8560bf9576ce8649ad8abc75147b71d1465c7030bf2688320e528b777df.yml -openapi_spec_hash: 134add1df3ac2f0d36d1e02f9c16af4b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1192eb4ba9f8de8e031e4d7f831c64dd91cbfa0993634d84c72e07bead40ef13.yml +openapi_spec_hash: 3f43aa5d30f8b36516e241c7c3be3ab0 config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From 22dae8ea28cd5bdbe44f298360717f2dcb66dad1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 15:47:19 +0000 Subject: [PATCH 199/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b707f7cb66..f49d83951b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1192eb4ba9f8de8e031e4d7f831c64dd91cbfa0993634d84c72e07bead40ef13.yml -openapi_spec_hash: 3f43aa5d30f8b36516e241c7c3be3ab0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-deece44e4e4bb4d9730ec8b8ceb827280008ce30fd5c34cc49da0a8112cc0951.yml +openapi_spec_hash: a18c11652d55ac4a0342d0a69852a406 config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From 59a86c892764325e1a5db6bf3504cd93edc619ab Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 16:05:28 +0000 Subject: [PATCH 200/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f49d83951b..2cb4246b96 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-deece44e4e4bb4d9730ec8b8ceb827280008ce30fd5c34cc49da0a8112cc0951.yml -openapi_spec_hash: a18c11652d55ac4a0342d0a69852a406 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1f1616434cda15ba9011b518c6bdf713f5ed321198ae9f5e2ab10861a71e1ed0.yml +openapi_spec_hash: a76e1cc615164d4a4ccd18e5950fb0c3 config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From 2b3775b0478b755b8c2e41108bff52cc4cbbae42 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 16:08:08 +0000 Subject: [PATCH 201/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2cb4246b96..f9cba7ec19 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1f1616434cda15ba9011b518c6bdf713f5ed321198ae9f5e2ab10861a71e1ed0.yml -openapi_spec_hash: a76e1cc615164d4a4ccd18e5950fb0c3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-abb6283b49a4adf412329919689070936a9dbc51585b4bd50aed74230868c94a.yml +openapi_spec_hash: d81a4f988732487d62dc4ac0823f72eb config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From 5cb351f582daa35f6466bf47753b2c288f8a47a8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 16:40:56 +0000 Subject: [PATCH 202/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f9cba7ec19..1569003b61 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-abb6283b49a4adf412329919689070936a9dbc51585b4bd50aed74230868c94a.yml -openapi_spec_hash: d81a4f988732487d62dc4ac0823f72eb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2ca1a234aa004070ccdacc48a896ca7a04ba531cde6fa503d45deebe7d216136.yml +openapi_spec_hash: 95195f0f79347c705bee7ec484ebdf6e config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From 0da7cb3d3ff451a921a62400569699671e1fb451 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 18:16:51 +0000 Subject: [PATCH 203/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1569003b61..6ea958780b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2ca1a234aa004070ccdacc48a896ca7a04ba531cde6fa503d45deebe7d216136.yml -openapi_spec_hash: 95195f0f79347c705bee7ec484ebdf6e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a08dd59d2db1aefe445928fcc720cdac367f722246a52616ca2d5570b20d6b29.yml +openapi_spec_hash: 8ff91390488dda356999352316dfefcf config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From 94504a41a64d3961ea9aa4cdcfe135ff004d5ce6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 18:29:00 +0000 Subject: [PATCH 204/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6ea958780b..0b272e5742 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a08dd59d2db1aefe445928fcc720cdac367f722246a52616ca2d5570b20d6b29.yml -openapi_spec_hash: 8ff91390488dda356999352316dfefcf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3bd543b328cb473e4f0c322908f705b8ee5d55017997e4749eef56387dada048.yml +openapi_spec_hash: d6d640f9b378c3a6e1d5fb3dfd1b85bc config_hash: 277dacbbf8ea6a9eb690669a006cfa72 From 8d5e0dedda995485d641b485d03237f28c6879d4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 18:44:31 +0000 Subject: [PATCH 205/366] codegen metadata --- .stats.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0b272e5742..a2331dd64a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3bd543b328cb473e4f0c322908f705b8ee5d55017997e4749eef56387dada048.yml -openapi_spec_hash: d6d640f9b378c3a6e1d5fb3dfd1b85bc -config_hash: 277dacbbf8ea6a9eb690669a006cfa72 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a08dd59d2db1aefe445928fcc720cdac367f722246a52616ca2d5570b20d6b29.yml +openapi_spec_hash: 8ff91390488dda356999352316dfefcf +config_hash: 259b5eeae0358ea7d7756b294847f140 From faf2d8e953f148fd7f9ea749b1b869cd88f8b0cc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 20:06:52 +0000 Subject: [PATCH 206/366] chore(docs): use top-level-await in example snippets --- README.md | 54 +++++++++++++++++++++--------------------------------- 1 file changed, 21 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 02f9f6b842..111b5c15e5 100644 --- a/README.md +++ b/README.md @@ -25,17 +25,13 @@ const client = new Cloudflare({ apiKey: process.env['CLOUDFLARE_API_KEY'], // This is the default and can be omitted }); -async function main() { - const zone = await client.zones.create({ - account: { id: '023e105f4ecef8ad9ca31a8372d0c353' }, - name: 'example.com', - type: 'full', - }); - - console.log(zone.id); -} +const zone = await client.zones.create({ + account: { id: '023e105f4ecef8ad9ca31a8372d0c353' }, + name: 'example.com', + type: 'full', +}); -main(); +console.log(zone.id); ``` ### Request & Response types @@ -51,16 +47,12 @@ const client = new Cloudflare({ apiKey: process.env['CLOUDFLARE_API_KEY'], // This is the default and can be omitted }); -async function main() { - const params: Cloudflare.ZoneCreateParams = { - account: { id: '023e105f4ecef8ad9ca31a8372d0c353' }, - name: 'example.com', - type: 'full', - }; - const zone: Cloudflare.Zone = await client.zones.create(params); -} - -main(); +const params: Cloudflare.ZoneCreateParams = { + account: { id: '023e105f4ecef8ad9ca31a8372d0c353' }, + name: 'example.com', + type: 'full', +}; +const zone: Cloudflare.Zone = await client.zones.create(params); ``` Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors. @@ -123,19 +115,15 @@ a subclass of `APIError` will be thrown: ```ts -async function main() { - const zone = await client.zones.get({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }).catch(async (err) => { - if (err instanceof Cloudflare.APIError) { - console.log(err.status); // 400 - console.log(err.name); // BadRequestError - console.log(err.headers); // {server: 'nginx', ...} - } else { - throw err; - } - }); -} - -main(); +const zone = await client.zones.get({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }).catch(async (err) => { + if (err instanceof Cloudflare.APIError) { + console.log(err.status); // 400 + console.log(err.name); // BadRequestError + console.log(err.headers); // {server: 'nginx', ...} + } else { + throw err; + } +}); ``` Error codes are as follows: From 7f2b64df4181c96e008aedefc5f71ebb9a13505f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 20:37:08 +0000 Subject: [PATCH 207/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a2331dd64a..890565488a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a08dd59d2db1aefe445928fcc720cdac367f722246a52616ca2d5570b20d6b29.yml -openapi_spec_hash: 8ff91390488dda356999352316dfefcf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3bd543b328cb473e4f0c322908f705b8ee5d55017997e4749eef56387dada048.yml +openapi_spec_hash: d6d640f9b378c3a6e1d5fb3dfd1b85bc config_hash: 259b5eeae0358ea7d7756b294847f140 From deca9f0d179c16b4f022912a21d023d466b05a8b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 20:39:49 +0000 Subject: [PATCH 208/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 890565488a..7db788c773 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3bd543b328cb473e4f0c322908f705b8ee5d55017997e4749eef56387dada048.yml -openapi_spec_hash: d6d640f9b378c3a6e1d5fb3dfd1b85bc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fc63a97ecca4019f0327c7775a31644091d16f990ed592b1513b6a7ddcfb45c9.yml +openapi_spec_hash: 4ee3e27392248c5290c1c6982beb313d config_hash: 259b5eeae0358ea7d7756b294847f140 From 6e67cdf4b0edf9523197d8d1cad4db30b0a8e3cb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 21:07:58 +0000 Subject: [PATCH 209/366] feat(api): api update --- .stats.yml | 4 +- api.md | 3 +- .../zero-trust/dlp/profiles/custom.ts | 714 ++---------------- .../zero-trust/dlp/profiles/index.ts | 1 - .../zero-trust/dlp/profiles/predefined.ts | 20 +- .../zero-trust/dlp/profiles/profiles.ts | 2 - .../zero-trust/dlp/profiles/custom.test.ts | 27 +- .../dlp/profiles/predefined.test.ts | 4 +- 8 files changed, 104 insertions(+), 671 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7db788c773..e3e130785f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fc63a97ecca4019f0327c7775a31644091d16f990ed592b1513b6a7ddcfb45c9.yml -openapi_spec_hash: 4ee3e27392248c5290c1c6982beb313d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4855b99071a5844a4d1eb379451bbc298ed3c281444874e66769828d859cb7ff.yml +openapi_spec_hash: ae06975ac0540aed98db451b9d336a67 config_hash: 259b5eeae0358ea7d7756b294847f140 diff --git a/api.md b/api.md index 36d262e900..455a58375a 100644 --- a/api.md +++ b/api.md @@ -5688,12 +5688,11 @@ Types: - CustomProfile - Pattern -- CustomCreateResponse - CustomDeleteResponse Methods: -- client.zeroTrust.dlp.profiles.custom.create({ ...params }) -> CustomCreateResponse +- client.zeroTrust.dlp.profiles.custom.create({ ...params }) -> Profile - client.zeroTrust.dlp.profiles.custom.update(profileId, { ...params }) -> Profile - client.zeroTrust.dlp.profiles.custom.delete(profileId, { ...params }) -> CustomDeleteResponse | null - client.zeroTrust.dlp.profiles.custom.get(profileId, { ...params }) -> Profile diff --git a/src/resources/zero-trust/dlp/profiles/custom.ts b/src/resources/zero-trust/dlp/profiles/custom.ts index 4b8ae28ee6..e1e41ddbdb 100644 --- a/src/resources/zero-trust/dlp/profiles/custom.ts +++ b/src/resources/zero-trust/dlp/profiles/custom.ts @@ -11,31 +11,27 @@ export class Custom extends APIResource { * * @example * ```ts - * const custom = + * const profile = * await client.zeroTrust.dlp.profiles.custom.create({ * account_id: 'account_id', - * profiles: [ + * entries: [ * { - * entries: [ - * { - * enabled: true, - * name: 'name', - * pattern: { regex: 'regex' }, - * }, - * ], + * enabled: true, * name: 'name', + * pattern: { regex: 'regex' }, * }, * ], + * name: 'name', * }); * ``` */ - create(params: CustomCreateParams, options?: Core.RequestOptions): Core.APIPromise { + create(params: CustomCreateParams, options?: Core.RequestOptions): Core.APIPromise { const { account_id, ...body } = params; return ( this._client.post(`/accounts/${account_id}/dlp/profiles/custom`, { body, ...options, - }) as Core.APIPromise<{ result: CustomCreateResponse }> + }) as Core.APIPromise<{ result: ProfilesAPI.Profile }> )._thenUnwrap((obj) => obj.result); } @@ -293,662 +289,115 @@ export interface PatternParam { validation?: 'luhn'; } -export type CustomCreateResponse = - | CustomCreateResponse.CustomProfile - | CustomCreateResponse.PredefinedProfile - | CustomCreateResponse.IntegrationProfile - | Array; - -export namespace CustomCreateResponse { - export interface CustomProfile { - /** - * The id of the profile (uuid). - */ - id: string; - - /** - * Related DLP policies will trigger when the match count exceeds the number set. - */ - allowed_match_count: number; - - /** - * Scan the context of predefined entries to only return matches surrounded by - * keywords. - */ - context_awareness: ProfilesAPI.ContextAwareness; - - /** - * When the profile was created. - */ - created_at: string; - - entries: Array< - | CustomProfile.CustomEntry - | CustomProfile.PredefinedEntry - | CustomProfile.IntegrationEntry - | CustomProfile.ExactDataEntry - | CustomProfile.WordListEntry - >; - - /** - * The name of the profile. - */ - name: string; - - ocr_enabled: boolean; - - type: 'custom'; - - /** - * When the profile was lasted updated. - */ - updated_at: string; - - ai_context_enabled?: boolean; - - confidence_threshold?: 'low' | 'medium' | 'high' | 'very_high'; - - /** - * The description of the profile. - */ - description?: string | null; - } - - export namespace CustomProfile { - export interface CustomEntry { - id: string; - - created_at: string; - - enabled: boolean; - - name: string; - - pattern: CustomAPI.Pattern; - - type: 'custom'; - - updated_at: string; - - profile_id?: string | null; - } - - export interface PredefinedEntry { - id: string; - - confidence: PredefinedEntry.Confidence; - - enabled: boolean; - - name: string; - - type: 'predefined'; - - profile_id?: string | null; - } - - export namespace PredefinedEntry { - export interface Confidence { - /** - * Indicates whether this entry has AI remote service validation. - */ - ai_context_available: boolean; - - /** - * Indicates whether this entry has any form of validation that is not an AI remote - * service. - */ - available: boolean; - } - } - - export interface IntegrationEntry { - id: string; - - created_at: string; - - enabled: boolean; - - name: string; - - type: 'integration'; - - updated_at: string; - - profile_id?: string | null; - } - - export interface ExactDataEntry { - id: string; - - /** - * Only applies to custom word lists. Determines if the words should be matched in - * a case-sensitive manner Cannot be set to false if secret is true - */ - case_sensitive: boolean; - - created_at: string; - - enabled: boolean; - - name: string; - - secret: boolean; - - type: 'exact_data'; - - updated_at: string; - } +export type CustomDeleteResponse = unknown; - export interface WordListEntry { - id: string; +export interface CustomCreateParams { + /** + * Path param: + */ + account_id: string; - created_at: string; + /** + * Body param: + */ + entries: Array; - enabled: boolean; + /** + * Body param: + */ + name: string; - name: string; + /** + * Body param: + */ + ai_context_enabled?: boolean; - type: 'word_list'; + /** + * Body param: Related DLP policies will trigger when the match count exceeds the + * number set. + */ + allowed_match_count?: number; - updated_at: string; + /** + * Body param: + */ + confidence_threshold?: string | null; - word_list: unknown; + /** + * Body param: Scan the context of predefined entries to only return matches + * surrounded by keywords. + */ + context_awareness?: ProfilesAPI.ContextAwarenessParam; - profile_id?: string | null; - } - } + /** + * Body param: The description of the profile. + */ + description?: string | null; - export interface PredefinedProfile { - /** - * The id of the predefined profile (uuid). - */ - id: string; + /** + * Body param: + */ + ocr_enabled?: boolean; - allowed_match_count: number; + /** + * Body param: Entries from other profiles (e.g. pre-defined Cloudflare profiles, + * or your Microsoft Information Protection profiles). + */ + shared_entries?: Array< + | CustomCreateParams.UnionMember0 + | CustomCreateParams.UnionMember1 + | CustomCreateParams.UnionMember2 + | CustomCreateParams.UnionMember3 + >; +} - entries: Array< - | PredefinedProfile.CustomEntry - | PredefinedProfile.PredefinedEntry - | PredefinedProfile.IntegrationEntry - | PredefinedProfile.ExactDataEntry - | PredefinedProfile.WordListEntry - >; +export namespace CustomCreateParams { + export interface DLPNewCustomEntry { + enabled: boolean; - /** - * The name of the predefined profile. - */ name: string; - type: 'predefined'; - - ai_context_enabled?: boolean; - - confidence_threshold?: 'low' | 'medium' | 'high' | 'very_high'; - - /** - * Scan the context of predefined entries to only return matches surrounded by - * keywords. - */ - context_awareness?: ProfilesAPI.ContextAwareness; - - ocr_enabled?: boolean; - - /** - * Whether this profile can be accessed by anyone. - */ - open_access?: boolean; - } - - export namespace PredefinedProfile { - export interface CustomEntry { - id: string; - - created_at: string; - - enabled: boolean; - - name: string; - - pattern: CustomAPI.Pattern; - - type: 'custom'; - - updated_at: string; - - profile_id?: string | null; - } - - export interface PredefinedEntry { - id: string; - - confidence: PredefinedEntry.Confidence; - - enabled: boolean; - - name: string; - - type: 'predefined'; - - profile_id?: string | null; - } - - export namespace PredefinedEntry { - export interface Confidence { - /** - * Indicates whether this entry has AI remote service validation. - */ - ai_context_available: boolean; - - /** - * Indicates whether this entry has any form of validation that is not an AI remote - * service. - */ - available: boolean; - } - } - - export interface IntegrationEntry { - id: string; - - created_at: string; - - enabled: boolean; - - name: string; - - type: 'integration'; - - updated_at: string; - - profile_id?: string | null; - } - - export interface ExactDataEntry { - id: string; - - /** - * Only applies to custom word lists. Determines if the words should be matched in - * a case-sensitive manner Cannot be set to false if secret is true - */ - case_sensitive: boolean; - - created_at: string; - - enabled: boolean; - - name: string; - - secret: boolean; - - type: 'exact_data'; - - updated_at: string; - } - - export interface WordListEntry { - id: string; - - created_at: string; - - enabled: boolean; - - name: string; - - type: 'word_list'; - - updated_at: string; - - word_list: unknown; - - profile_id?: string | null; - } + pattern: CustomAPI.PatternParam; } - export interface IntegrationProfile { - id: string; - - created_at: string; - - entries: Array< - | IntegrationProfile.CustomEntry - | IntegrationProfile.PredefinedEntry - | IntegrationProfile.IntegrationEntry - | IntegrationProfile.ExactDataEntry - | IntegrationProfile.WordListEntry - >; + export interface DLPNewWordListEntry { + enabled: boolean; name: string; - type: 'integration'; - - updated_at: string; - - /** - * The description of the profile. - */ - description?: string | null; + words: Array; } - export namespace IntegrationProfile { - export interface CustomEntry { - id: string; - - created_at: string; - - enabled: boolean; - - name: string; - - pattern: CustomAPI.Pattern; - - type: 'custom'; - - updated_at: string; - - profile_id?: string | null; - } - - export interface PredefinedEntry { - id: string; - - confidence: PredefinedEntry.Confidence; - - enabled: boolean; - - name: string; - - type: 'predefined'; - - profile_id?: string | null; - } - - export namespace PredefinedEntry { - export interface Confidence { - /** - * Indicates whether this entry has AI remote service validation. - */ - ai_context_available: boolean; - - /** - * Indicates whether this entry has any form of validation that is not an AI remote - * service. - */ - available: boolean; - } - } - - export interface IntegrationEntry { - id: string; - - created_at: string; - - enabled: boolean; - - name: string; - - type: 'integration'; - - updated_at: string; - - profile_id?: string | null; - } - - export interface ExactDataEntry { - id: string; - - /** - * Only applies to custom word lists. Determines if the words should be matched in - * a case-sensitive manner Cannot be set to false if secret is true - */ - case_sensitive: boolean; - - created_at: string; - - enabled: boolean; - - name: string; - - secret: boolean; - - type: 'exact_data'; - - updated_at: string; - } - - export interface WordListEntry { - id: string; - - created_at: string; - - enabled: boolean; - - name: string; - - type: 'word_list'; - - updated_at: string; - - word_list: unknown; - - profile_id?: string | null; - } - } -} - -export type CustomDeleteResponse = unknown; - -export type CustomCreateParams = CustomCreateParams.Variant0 | CustomCreateParams.DLPNewCustomProfile; + export interface UnionMember0 { + enabled: boolean; -export declare namespace CustomCreateParams { - export interface Variant0 { - /** - * Path param: - */ - account_id: string; + entry_id: string; - /** - * Body param: - */ - profiles: Array; + entry_type: 'custom'; } - export namespace Variant0 { - export interface Profile { - entries: Array; - - name: string; - - ai_context_enabled?: boolean; - - /** - * Related DLP policies will trigger when the match count exceeds the number set. - */ - allowed_match_count?: number; - - confidence_threshold?: string | null; - - /** - * Scan the context of predefined entries to only return matches surrounded by - * keywords. - */ - context_awareness?: ProfilesAPI.ContextAwarenessParam; - - /** - * The description of the profile. - */ - description?: string | null; - - ocr_enabled?: boolean; - - /** - * Entries from other profiles (e.g. pre-defined Cloudflare profiles, or your - * Microsoft Information Protection profiles). - */ - shared_entries?: Array< - Profile.UnionMember0 | Profile.UnionMember1 | Profile.UnionMember2 | Profile.UnionMember3 - >; - } - - export namespace Profile { - export interface DLPNewCustomEntry { - enabled: boolean; - - name: string; - - pattern: CustomAPI.PatternParam; - } - - export interface DLPNewWordListEntry { - enabled: boolean; - - name: string; - - words: Array; - } - - export interface UnionMember0 { - enabled: boolean; - - entry_id: string; - - entry_type: 'custom'; - } - - export interface UnionMember1 { - enabled: boolean; - - entry_id: string; - - entry_type: 'predefined'; - } - - export interface UnionMember2 { - enabled: boolean; - - entry_id: string; - - entry_type: 'integration'; - } - - export interface UnionMember3 { - enabled: boolean; + export interface UnionMember1 { + enabled: boolean; - entry_id: string; + entry_id: string; - entry_type: 'exact_data'; - } - } + entry_type: 'predefined'; } - export interface DLPNewCustomProfile { - /** - * Path param: - */ - account_id: string; - - /** - * Body param: - */ - entries: Array; - - /** - * Body param: - */ - name: string; - - /** - * Body param: - */ - ai_context_enabled?: boolean; - - /** - * Body param: Related DLP policies will trigger when the match count exceeds the - * number set. - */ - allowed_match_count?: number; - - /** - * Body param: - */ - confidence_threshold?: string | null; - - /** - * Body param: Scan the context of predefined entries to only return matches - * surrounded by keywords. - */ - context_awareness?: ProfilesAPI.ContextAwarenessParam; - - /** - * Body param: The description of the profile. - */ - description?: string | null; + export interface UnionMember2 { + enabled: boolean; - /** - * Body param: - */ - ocr_enabled?: boolean; + entry_id: string; - /** - * Body param: Entries from other profiles (e.g. pre-defined Cloudflare profiles, - * or your Microsoft Information Protection profiles). - */ - shared_entries?: Array< - | DLPNewCustomProfile.UnionMember0 - | DLPNewCustomProfile.UnionMember1 - | DLPNewCustomProfile.UnionMember2 - | DLPNewCustomProfile.UnionMember3 - >; + entry_type: 'integration'; } - export namespace DLPNewCustomProfile { - export interface DLPNewCustomEntry { - enabled: boolean; - - name: string; - - pattern: CustomAPI.PatternParam; - } - - export interface DLPNewWordListEntry { - enabled: boolean; - - name: string; - - words: Array; - } - - export interface UnionMember0 { - enabled: boolean; - - entry_id: string; - - entry_type: 'custom'; - } - - export interface UnionMember1 { - enabled: boolean; - - entry_id: string; - - entry_type: 'predefined'; - } - - export interface UnionMember2 { - enabled: boolean; - - entry_id: string; - - entry_type: 'integration'; - } - - export interface UnionMember3 { - enabled: boolean; + export interface UnionMember3 { + enabled: boolean; - entry_id: string; + entry_id: string; - entry_type: 'exact_data'; - } + entry_type: 'exact_data'; } } @@ -1064,7 +513,6 @@ export declare namespace Custom { export { type CustomProfile as CustomProfile, type Pattern as Pattern, - type CustomCreateResponse as CustomCreateResponse, type CustomDeleteResponse as CustomDeleteResponse, type CustomCreateParams as CustomCreateParams, type CustomUpdateParams as CustomUpdateParams, diff --git a/src/resources/zero-trust/dlp/profiles/index.ts b/src/resources/zero-trust/dlp/profiles/index.ts index 711fb9ee49..ba0f2eb23c 100644 --- a/src/resources/zero-trust/dlp/profiles/index.ts +++ b/src/resources/zero-trust/dlp/profiles/index.ts @@ -4,7 +4,6 @@ export { Custom, type CustomProfile, type Pattern, - type CustomCreateResponse, type CustomDeleteResponse, type CustomCreateParams, type CustomUpdateParams, diff --git a/src/resources/zero-trust/dlp/profiles/predefined.ts b/src/resources/zero-trust/dlp/profiles/predefined.ts index 5c17ec1ef8..616d45eecf 100644 --- a/src/resources/zero-trust/dlp/profiles/predefined.ts +++ b/src/resources/zero-trust/dlp/profiles/predefined.ts @@ -14,15 +14,7 @@ export class Predefined extends APIResource { * const profile = * await client.zeroTrust.dlp.profiles.predefined.update( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - * { - * account_id: 'account_id', - * entries: [ - * { - * id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - * enabled: true, - * }, - * ], - * }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -217,11 +209,6 @@ export interface PredefinedUpdateParams { */ account_id: string; - /** - * Body param: - */ - entries: Array; - /** * Body param: */ @@ -243,6 +230,11 @@ export interface PredefinedUpdateParams { */ context_awareness?: ProfilesAPI.ContextAwarenessParam; + /** + * @deprecated Body param: + */ + entries?: Array; + /** * Body param: */ diff --git a/src/resources/zero-trust/dlp/profiles/profiles.ts b/src/resources/zero-trust/dlp/profiles/profiles.ts index 879c5a7a04..199064ae15 100644 --- a/src/resources/zero-trust/dlp/profiles/profiles.ts +++ b/src/resources/zero-trust/dlp/profiles/profiles.ts @@ -7,7 +7,6 @@ import * as CustomAPI from './custom'; import { Custom, CustomCreateParams, - CustomCreateResponse, CustomDeleteParams, CustomDeleteResponse, CustomGetParams, @@ -603,7 +602,6 @@ export declare namespace Profiles { Custom as Custom, type CustomAPICustomProfile as CustomProfile, type Pattern as Pattern, - type CustomCreateResponse as CustomCreateResponse, type CustomDeleteResponse as CustomDeleteResponse, type CustomCreateParams as CustomCreateParams, type CustomUpdateParams as CustomUpdateParams, diff --git a/tests/api-resources/zero-trust/dlp/profiles/custom.test.ts b/tests/api-resources/zero-trust/dlp/profiles/custom.test.ts index a02028c500..4e75296302 100644 --- a/tests/api-resources/zero-trust/dlp/profiles/custom.test.ts +++ b/tests/api-resources/zero-trust/dlp/profiles/custom.test.ts @@ -13,7 +13,8 @@ describe('resource custom', () => { test('create: only required params', async () => { const responsePromise = client.zeroTrust.dlp.profiles.custom.create({ account_id: 'account_id', - profiles: [{ entries: [{ enabled: true, name: 'name', pattern: { regex: 'regex' } }], name: 'name' }], + entries: [{ enabled: true, name: 'name', pattern: { regex: 'regex' } }], + name: 'name', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -27,20 +28,16 @@ describe('resource custom', () => { test('create: required and optional params', async () => { const response = await client.zeroTrust.dlp.profiles.custom.create({ account_id: 'account_id', - profiles: [ - { - entries: [{ enabled: true, name: 'name', pattern: { regex: 'regex', validation: 'luhn' } }], - name: 'name', - ai_context_enabled: true, - allowed_match_count: 5, - confidence_threshold: 'confidence_threshold', - context_awareness: { enabled: true, skip: { files: true } }, - description: 'description', - ocr_enabled: true, - shared_entries: [ - { enabled: true, entry_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', entry_type: 'custom' }, - ], - }, + entries: [{ enabled: true, name: 'name', pattern: { regex: 'regex', validation: 'luhn' } }], + name: 'name', + ai_context_enabled: true, + allowed_match_count: 5, + confidence_threshold: 'confidence_threshold', + context_awareness: { enabled: true, skip: { files: true } }, + description: 'description', + ocr_enabled: true, + shared_entries: [ + { enabled: true, entry_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', entry_type: 'custom' }, ], }); }); diff --git a/tests/api-resources/zero-trust/dlp/profiles/predefined.test.ts b/tests/api-resources/zero-trust/dlp/profiles/predefined.test.ts index 2d327f2b7c..a489eb135f 100644 --- a/tests/api-resources/zero-trust/dlp/profiles/predefined.test.ts +++ b/tests/api-resources/zero-trust/dlp/profiles/predefined.test.ts @@ -13,7 +13,7 @@ describe('resource predefined', () => { test('update: only required params', async () => { const responsePromise = client.zeroTrust.dlp.profiles.predefined.update( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { account_id: 'account_id', entries: [{ id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', enabled: true }] }, + { account_id: 'account_id' }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -29,11 +29,11 @@ describe('resource predefined', () => { '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { account_id: 'account_id', - entries: [{ id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', enabled: true }], ai_context_enabled: true, allowed_match_count: 0, confidence_threshold: 'confidence_threshold', context_awareness: { enabled: true, skip: { files: true } }, + entries: [{ id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', enabled: true }], ocr_enabled: true, }, ); From 3ad4d14adea099e676d0d52f61659fba6bbbfbce Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 21:17:41 +0000 Subject: [PATCH 210/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e3e130785f..d8112f24ae 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4855b99071a5844a4d1eb379451bbc298ed3c281444874e66769828d859cb7ff.yml -openapi_spec_hash: ae06975ac0540aed98db451b9d336a67 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c1ee6897ce9cd7fbfd7cbd2572888fec877beee84ef0eda8c5eb3f8f1a231b.yml +openapi_spec_hash: 46a18435331bb54c1c078efbd89801fd config_hash: 259b5eeae0358ea7d7756b294847f140 From 98d028838bd4cf401911c1793666e8d56061532b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 21:23:35 +0000 Subject: [PATCH 211/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d8112f24ae..83a708efca 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c1ee6897ce9cd7fbfd7cbd2572888fec877beee84ef0eda8c5eb3f8f1a231b.yml -openapi_spec_hash: 46a18435331bb54c1c078efbd89801fd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-733bdc97f83a4e3536df61c6a49058c4ddac4d5fcd0c94c2d345a12b166fffda.yml +openapi_spec_hash: 49fe02cc3ef095bfea7b27ff0595ec9e config_hash: 259b5eeae0358ea7d7756b294847f140 From 81f436f327358e380dbc5a4d757637d33c5b2d69 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 21:45:31 +0000 Subject: [PATCH 212/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 83a708efca..d8112f24ae 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-733bdc97f83a4e3536df61c6a49058c4ddac4d5fcd0c94c2d345a12b166fffda.yml -openapi_spec_hash: 49fe02cc3ef095bfea7b27ff0595ec9e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c1ee6897ce9cd7fbfd7cbd2572888fec877beee84ef0eda8c5eb3f8f1a231b.yml +openapi_spec_hash: 46a18435331bb54c1c078efbd89801fd config_hash: 259b5eeae0358ea7d7756b294847f140 From 4f0adefe38446c4dae72912efe43bc11672f0f12 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 21:55:09 +0000 Subject: [PATCH 213/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d8112f24ae..48205c3def 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-07c1ee6897ce9cd7fbfd7cbd2572888fec877beee84ef0eda8c5eb3f8f1a231b.yml -openapi_spec_hash: 46a18435331bb54c1c078efbd89801fd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7cc05e835aabf6b92eabd6d07f71ae13572c2c52d89206e39ea71af3a931e464.yml +openapi_spec_hash: b8c95d96726d5832a5cf165fc33381e5 config_hash: 259b5eeae0358ea7d7756b294847f140 From 3fccd425904549f4b290d661ee5cf474c894a59e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 00:08:48 +0000 Subject: [PATCH 214/366] feat(api): api update --- .stats.yml | 4 +-- .../dispatch/namespaces/scripts/bindings.ts | 12 +++++++ .../dispatch/namespaces/scripts/scripts.ts | 27 ++++++++------ .../dispatch/namespaces/scripts/settings.ts | 36 +++++++++++++++++++ .../scripts/script-and-version-settings.ts | 36 +++++++++++++++++++ src/resources/workers/scripts/scripts.ts | 27 ++++++++------ src/resources/workers/scripts/versions.ts | 36 +++++++++++++++++++ .../namespaces/scripts/scripts.test.ts | 3 +- .../workers/scripts/scripts.test.ts | 3 +- 9 files changed, 158 insertions(+), 26 deletions(-) diff --git a/.stats.yml b/.stats.yml index 48205c3def..541313916a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7cc05e835aabf6b92eabd6d07f71ae13572c2c52d89206e39ea71af3a931e464.yml -openapi_spec_hash: b8c95d96726d5832a5cf165fc33381e5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2454197d26e8e823f53db986e1a984db69dc0df5a58af12b024ffa2b15021256.yml +openapi_spec_hash: 5b71eae8e9f732f5604284120cf1996a config_hash: 259b5eeae0358ea7d7756b294847f140 diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts index f30dc788e0..3d777a700c 100644 --- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts +++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts @@ -512,6 +512,18 @@ export namespace BindingGetResponse { * Name of the Workflow to bind to. */ workflow_name: string; + + /** + * Class name of the Workflow. Should only be provided if the Workflow belongs to + * this script. + */ + class_name?: string; + + /** + * Script name that contains the Workflow. If not provided, defaults to this script + * name. + */ + script_name?: 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 4c47631c40..6b2bbcece8 100644 --- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts +++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts @@ -438,17 +438,12 @@ export namespace ScriptUpdateParams { not_found_handling?: 'none' | '404-page' | 'single-page-application'; /** - * When true, requests will always invoke the Worker script. Otherwise, attempt to - * serve an asset matching the request, falling back to the Worker script. + * Contains a list path rules to control routing to either the Worker or assets. + * Glob (\*) and negative (!) rules are supported. Rules must start with either '/' + * or '!/'. At least one non-negative rule must be provided, and negative rules + * have higher precedence than non-negative rules. */ - run_worker_first?: boolean; - - /** - * @deprecated When true and the incoming request matches an asset, that will be - * served instead of invoking the Worker script. When false, requests will always - * invoke the Worker script. - */ - serve_directly?: boolean; + run_worker_first?: Array; } } @@ -914,6 +909,18 @@ export namespace ScriptUpdateParams { * Name of the Workflow to bind to. */ workflow_name: string; + + /** + * Class name of the Workflow. Should only be provided if the Workflow belongs to + * this script. + */ + class_name?: string; + + /** + * Script name that contains the Workflow. If not provided, defaults to this script + * name. + */ + script_name?: string; } export interface WorkersMultipleStepMigrations { diff --git a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts index 81153b2156..7bfd4eecba 100644 --- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts +++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts @@ -596,6 +596,18 @@ export namespace SettingEditResponse { * Name of the Workflow to bind to. */ workflow_name: string; + + /** + * Class name of the Workflow. Should only be provided if the Workflow belongs to + * this script. + */ + class_name?: string; + + /** + * Script name that contains the Workflow. If not provided, defaults to this script + * name. + */ + script_name?: string; } /** @@ -1217,6 +1229,18 @@ export namespace SettingGetResponse { * Name of the Workflow to bind to. */ workflow_name: string; + + /** + * Class name of the Workflow. Should only be provided if the Workflow belongs to + * this script. + */ + class_name?: string; + + /** + * Script name that contains the Workflow. If not provided, defaults to this script + * name. + */ + script_name?: string; } /** @@ -1868,6 +1892,18 @@ export namespace SettingEditParams { * Name of the Workflow to bind to. */ workflow_name: string; + + /** + * Class name of the Workflow. Should only be provided if the Workflow belongs to + * this script. + */ + class_name?: string; + + /** + * Script name that contains the Workflow. If not provided, defaults to this script + * name. + */ + script_name?: string; } /** diff --git a/src/resources/workers/scripts/script-and-version-settings.ts b/src/resources/workers/scripts/script-and-version-settings.ts index 3fbf553ae3..407d9c43e5 100644 --- a/src/resources/workers/scripts/script-and-version-settings.ts +++ b/src/resources/workers/scripts/script-and-version-settings.ts @@ -594,6 +594,18 @@ export namespace ScriptAndVersionSettingEditResponse { * Name of the Workflow to bind to. */ workflow_name: string; + + /** + * Class name of the Workflow. Should only be provided if the Workflow belongs to + * this script. + */ + class_name?: string; + + /** + * Script name that contains the Workflow. If not provided, defaults to this script + * name. + */ + script_name?: string; } /** @@ -1217,6 +1229,18 @@ export namespace ScriptAndVersionSettingGetResponse { * Name of the Workflow to bind to. */ workflow_name: string; + + /** + * Class name of the Workflow. Should only be provided if the Workflow belongs to + * this script. + */ + class_name?: string; + + /** + * Script name that contains the Workflow. If not provided, defaults to this script + * name. + */ + script_name?: string; } /** @@ -1868,6 +1892,18 @@ export namespace ScriptAndVersionSettingEditParams { * Name of the Workflow to bind to. */ workflow_name: string; + + /** + * Class name of the Workflow. Should only be provided if the Workflow belongs to + * this script. + */ + class_name?: string; + + /** + * Script name that contains the Workflow. If not provided, defaults to this script + * name. + */ + script_name?: string; } /** diff --git a/src/resources/workers/scripts/scripts.ts b/src/resources/workers/scripts/scripts.ts index 7988400d29..11fcdfd9a9 100644 --- a/src/resources/workers/scripts/scripts.ts +++ b/src/resources/workers/scripts/scripts.ts @@ -619,17 +619,12 @@ export namespace ScriptUpdateParams { not_found_handling?: 'none' | '404-page' | 'single-page-application'; /** - * When true, requests will always invoke the Worker script. Otherwise, attempt to - * serve an asset matching the request, falling back to the Worker script. + * Contains a list path rules to control routing to either the Worker or assets. + * Glob (\*) and negative (!) rules are supported. Rules must start with either '/' + * or '!/'. At least one non-negative rule must be provided, and negative rules + * have higher precedence than non-negative rules. */ - run_worker_first?: boolean; - - /** - * @deprecated When true and the incoming request matches an asset, that will be - * served instead of invoking the Worker script. When false, requests will always - * invoke the Worker script. - */ - serve_directly?: boolean; + run_worker_first?: Array; } } @@ -1095,6 +1090,18 @@ export namespace ScriptUpdateParams { * Name of the Workflow to bind to. */ workflow_name: string; + + /** + * Class name of the Workflow. Should only be provided if the Workflow belongs to + * this script. + */ + class_name?: string; + + /** + * Script name that contains the Workflow. If not provided, defaults to this script + * name. + */ + script_name?: string; } export interface WorkersMultipleStepMigrations { diff --git a/src/resources/workers/scripts/versions.ts b/src/resources/workers/scripts/versions.ts index cce21c33d4..c6269a0421 100644 --- a/src/resources/workers/scripts/versions.ts +++ b/src/resources/workers/scripts/versions.ts @@ -594,6 +594,18 @@ export namespace VersionCreateResponse { * Name of the Workflow to bind to. */ workflow_name: string; + + /** + * Class name of the Workflow. Should only be provided if the Workflow belongs to + * this script. + */ + class_name?: string; + + /** + * Script name that contains the Workflow. If not provided, defaults to this script + * name. + */ + script_name?: string; } } @@ -1192,6 +1204,18 @@ export namespace VersionGetResponse { * Name of the Workflow to bind to. */ workflow_name: string; + + /** + * Class name of the Workflow. Should only be provided if the Workflow belongs to + * this script. + */ + class_name?: string; + + /** + * Script name that contains the Workflow. If not provided, defaults to this script + * name. + */ + script_name?: string; } } @@ -1816,6 +1840,18 @@ export namespace VersionCreateParams { * Name of the Workflow to bind to. */ workflow_name: string; + + /** + * Class name of the Workflow. Should only be provided if the Workflow belongs to + * this script. + */ + class_name?: string; + + /** + * Script name that contains the Workflow. If not provided, defaults to this script + * name. + */ + script_name?: string; } } } 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 2c97c20017..e3654af1fb 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 @@ -40,8 +40,7 @@ describe('resource scripts', () => { _redirects: '/foo /bar 301\n/news/* /blog/:splat', html_handling: 'auto-trailing-slash', not_found_handling: '404-page', - run_worker_first: false, - serve_directly: true, + run_worker_first: ['string'], }, jwt: 'jwt', }, diff --git a/tests/api-resources/workers/scripts/scripts.test.ts b/tests/api-resources/workers/scripts/scripts.test.ts index 6be0d897d7..833126a026 100644 --- a/tests/api-resources/workers/scripts/scripts.test.ts +++ b/tests/api-resources/workers/scripts/scripts.test.ts @@ -36,8 +36,7 @@ describe('resource scripts', () => { _redirects: '/foo /bar 301\n/news/* /blog/:splat', html_handling: 'auto-trailing-slash', not_found_handling: '404-page', - run_worker_first: false, - serve_directly: true, + run_worker_first: ['string'], }, jwt: 'jwt', }, From c6fb7dcd2a73940f9880f5738daf339dc86cae95 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 00:11:50 +0000 Subject: [PATCH 215/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 541313916a..15bb36278c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2454197d26e8e823f53db986e1a984db69dc0df5a58af12b024ffa2b15021256.yml -openapi_spec_hash: 5b71eae8e9f732f5604284120cf1996a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f908ce94a7017a1e6b34f013795afea224441a6acff49e1c597c133c2f3acec6.yml +openapi_spec_hash: 25b8271a76dc250d983966d996cd4fdf config_hash: 259b5eeae0358ea7d7756b294847f140 From 8083aef476012ade55c6a846923c0ea2fa05df31 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 06:08:50 +0000 Subject: [PATCH 216/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 15bb36278c..2f5ca4610b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f908ce94a7017a1e6b34f013795afea224441a6acff49e1c597c133c2f3acec6.yml -openapi_spec_hash: 25b8271a76dc250d983966d996cd4fdf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-63760c63aeb9dbcaf0686adb07004d36539f97efaf4b3d367bbadd0949c3767c.yml +openapi_spec_hash: 6ad586ac100ed5f4905f2674e22b4a08 config_hash: 259b5eeae0358ea7d7756b294847f140 From 3674f782c3b1c61e4aab839d619a5d7baa31c494 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 09:22:36 +0000 Subject: [PATCH 217/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2f5ca4610b..15bb36278c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-63760c63aeb9dbcaf0686adb07004d36539f97efaf4b3d367bbadd0949c3767c.yml -openapi_spec_hash: 6ad586ac100ed5f4905f2674e22b4a08 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f908ce94a7017a1e6b34f013795afea224441a6acff49e1c597c133c2f3acec6.yml +openapi_spec_hash: 25b8271a76dc250d983966d996cd4fdf config_hash: 259b5eeae0358ea7d7756b294847f140 From 5e215f79760b00b05d68284571a23632505e61bb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 11:24:49 +0000 Subject: [PATCH 218/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/schema-validation/schemas.ts | 3 ++- tests/api-resources/schema-validation/schemas.test.ts | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 15bb36278c..0496f3ef7c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f908ce94a7017a1e6b34f013795afea224441a6acff49e1c597c133c2f3acec6.yml -openapi_spec_hash: 25b8271a76dc250d983966d996cd4fdf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5a43fe09becab8ea24790c571c5fc48d9c38cf96bcaa3d1330ff3d03e20dcd2c.yml +openapi_spec_hash: 68b51401e1419eb348353f46c83149e1 config_hash: 259b5eeae0358ea7d7756b294847f140 diff --git a/src/resources/schema-validation/schemas.ts b/src/resources/schema-validation/schemas.ts index c75dcfaa5b..6db2534007 100644 --- a/src/resources/schema-validation/schemas.ts +++ b/src/resources/schema-validation/schemas.ts @@ -16,6 +16,7 @@ export class Schemas extends APIResource { * kind: 'openapi_v3', * name: 'petstore schema', * source: '', + * validation_enabled: true, * }, * ); * ``` @@ -292,7 +293,7 @@ export interface SchemaCreateParams { /** * Body param: An indicator if this schema is enabled */ - validation_enabled?: boolean; + validation_enabled: boolean; } export interface SchemaListParams extends V4PagePaginationArrayParams { diff --git a/tests/api-resources/schema-validation/schemas.test.ts b/tests/api-resources/schema-validation/schemas.test.ts index 0f0cb14ded..0b9b3536ba 100644 --- a/tests/api-resources/schema-validation/schemas.test.ts +++ b/tests/api-resources/schema-validation/schemas.test.ts @@ -16,6 +16,7 @@ describe('resource schemas', () => { kind: 'openapi_v3', name: 'petstore schema', source: '', + validation_enabled: true, }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); From 7a7ee8f1dfa0b8847b1f9a877e5bbc3297b72078 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 12:22:30 +0000 Subject: [PATCH 219/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0496f3ef7c..e7b02a399e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5a43fe09becab8ea24790c571c5fc48d9c38cf96bcaa3d1330ff3d03e20dcd2c.yml -openapi_spec_hash: 68b51401e1419eb348353f46c83149e1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-63a77579bb1748ebd49ada80aa078322b72de56d2d38aa2fa746d4d9bc75b217.yml +openapi_spec_hash: f8e253ed024276cf00ae435861653674 config_hash: 259b5eeae0358ea7d7756b294847f140 From cbd4978406ea71c28d54572fd59a6c4d9f2ffd7d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 13:33:13 +0000 Subject: [PATCH 220/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e7b02a399e..aebd5a883d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-63a77579bb1748ebd49ada80aa078322b72de56d2d38aa2fa746d4d9bc75b217.yml -openapi_spec_hash: f8e253ed024276cf00ae435861653674 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-31d2587aad2ece8c37614e10fb3df2c69ccea0150fc2678bdabe42ba1dbe706e.yml +openapi_spec_hash: 96dd7c1a02c115967e1c6a2386c9cb00 config_hash: 259b5eeae0358ea7d7756b294847f140 From 0614a859e12bd4a5c84cbb05e0f3de1c8a475b69 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 13:39:19 +0000 Subject: [PATCH 221/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index aebd5a883d..583b9fc7d2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-31d2587aad2ece8c37614e10fb3df2c69ccea0150fc2678bdabe42ba1dbe706e.yml -openapi_spec_hash: 96dd7c1a02c115967e1c6a2386c9cb00 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-37793ea0affb7c20693224555f407c8bf2acd5347ec09bcfde81b99eb516e30d.yml +openapi_spec_hash: 8001963097c104db68370a69266bc160 config_hash: 259b5eeae0358ea7d7756b294847f140 From e51ec4c7be26a3e2ea3f4e5ca842ea8f6db09aeb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 15:01:48 +0000 Subject: [PATCH 222/366] feat(api): api update --- .stats.yml | 4 +- api.md | 1 - src/resources/dns/dns.ts | 2 - src/resources/dns/index.ts | 1 - src/resources/dns/records.ts | 4461 ++++++++--------------- tests/api-resources/dns/records.test.ts | 2 - 6 files changed, 1506 insertions(+), 2965 deletions(-) diff --git a/.stats.yml b/.stats.yml index 583b9fc7d2..d0ca9735d1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-37793ea0affb7c20693224555f407c8bf2acd5347ec09bcfde81b99eb516e30d.yml -openapi_spec_hash: 8001963097c104db68370a69266bc160 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1fe23c2b96b28c275d9fa9aa84c80204d1c133b05d8bd06576490b744717bebd.yml +openapi_spec_hash: f1f25f232107e95c1df69870abfc0cc9 config_hash: 259b5eeae0358ea7d7756b294847f140 diff --git a/api.md b/api.md index 455a58375a..7f2d10935d 100644 --- a/api.md +++ b/api.md @@ -960,7 +960,6 @@ Types: - NAPTRRecord - NSRecord - PTRRecord -- Record - RecordResponse - RecordTags - SMIMEARecord diff --git a/src/resources/dns/dns.ts b/src/resources/dns/dns.ts index 49d6d2b48e..58e8e105c1 100644 --- a/src/resources/dns/dns.ts +++ b/src/resources/dns/dns.ts @@ -27,7 +27,6 @@ import { NAPTRRecord, NSRecord, PTRRecord, - Record, RecordBatchParams, RecordBatchResponse, RecordCreateParams, @@ -168,7 +167,6 @@ export declare namespace DNS { type NAPTRRecord as NAPTRRecord, type NSRecord as NSRecord, type PTRRecord as PTRRecord, - type Record as Record, type RecordResponse as RecordResponse, type RecordTags as RecordTags, type SMIMEARecord as SMIMEARecord, diff --git a/src/resources/dns/index.ts b/src/resources/dns/index.ts index 2f757b2315..d92732f317 100644 --- a/src/resources/dns/index.ts +++ b/src/resources/dns/index.ts @@ -28,7 +28,6 @@ export { type NAPTRRecord, type NSRecord, type PTRRecord, - type Record, type RecordResponse, type RecordTags, type SMIMEARecord, diff --git a/src/resources/dns/records.ts b/src/resources/dns/records.ts index 25af6352ee..fcc751966c 100644 --- a/src/resources/dns/records.ts +++ b/src/resources/dns/records.ts @@ -557,119 +557,30 @@ export namespace AAAARecordParam { } export type BatchPatch = - | BatchPatch.A - | BatchPatch.AAAA - | BatchPatch.CAA - | BatchPatch.CERT - | BatchPatch.CNAME - | BatchPatch.DNSKEY - | BatchPatch.DS - | BatchPatch.HTTPS - | BatchPatch.LOC - | BatchPatch.MX - | BatchPatch.NAPTR - | BatchPatch.NS - | BatchPatch.Openpgpkey - | BatchPatch.PTR - | BatchPatch.SMIMEA - | BatchPatch.SRV - | BatchPatch.SSHFP - | BatchPatch.SVCB - | BatchPatch.TLSA - | BatchPatch.TXT - | BatchPatch.URI; + | ARecord + | AAAARecord + | CNAMERecord + | MXRecord + | NSRecord + | BatchPatch.DNSRecordsOpenpgpkeyRecord + | PTRRecord + | TXTRecord + | CAARecord + | CERTRecord + | DNSKEYRecord + | DSRecord + | HTTPSRecord + | LOCRecord + | NAPTRRecord + | SMIMEARecord + | SRVRecord + | SSHFPRecord + | SVCBRecord + | TLSARecord + | URIRecord; export namespace BatchPatch { - export interface A extends RecordsAPI.ARecord { - /** - * Identifier. - */ - id: string; - } - - export interface AAAA extends RecordsAPI.AAAARecord { - /** - * Identifier. - */ - id: string; - } - - export interface CAA extends RecordsAPI.CAARecord { - /** - * Identifier. - */ - id: string; - } - - export interface CERT extends RecordsAPI.CERTRecord { - /** - * Identifier. - */ - id: string; - } - - export interface CNAME extends RecordsAPI.CNAMERecord { - /** - * Identifier. - */ - id: string; - } - - export interface DNSKEY extends RecordsAPI.DNSKEYRecord { - /** - * Identifier. - */ - id: string; - } - - export interface DS extends RecordsAPI.DSRecord { - /** - * Identifier. - */ - id: string; - } - - export interface HTTPS extends RecordsAPI.HTTPSRecord { - /** - * Identifier. - */ - id: string; - } - - export interface LOC extends RecordsAPI.LOCRecord { - /** - * Identifier. - */ - id: string; - } - - export interface MX extends RecordsAPI.MXRecord { - /** - * Identifier. - */ - id: string; - } - - export interface NAPTR extends RecordsAPI.NAPTRRecord { - /** - * Identifier. - */ - id: string; - } - - export interface NS extends RecordsAPI.NSRecord { - /** - * Identifier. - */ - id: string; - } - - export interface Openpgpkey { - /** - * Identifier. - */ - id: string; - + export interface DNSRecordsOpenpgpkeyRecord { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -695,7 +606,7 @@ export namespace BatchPatch { /** * Settings for the DNS record. */ - settings?: Openpgpkey.Settings; + settings?: DNSRecordsOpenpgpkeyRecord.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -715,7 +626,7 @@ export namespace BatchPatch { type?: 'OPENPGPKEY'; } - export namespace Openpgpkey { + export namespace DNSRecordsOpenpgpkeyRecord { /** * Settings for the DNS record. */ @@ -737,178 +648,33 @@ export namespace BatchPatch { ipv6_only?: boolean; } } - - export interface PTR extends RecordsAPI.PTRRecord { - /** - * Identifier. - */ - id: string; - } - - export interface SMIMEA extends RecordsAPI.SMIMEARecord { - /** - * Identifier. - */ - id: string; - } - - export interface SRV extends RecordsAPI.SRVRecord { - /** - * Identifier. - */ - id: string; - } - - export interface SSHFP extends RecordsAPI.SSHFPRecord { - /** - * Identifier. - */ - id: string; - } - - export interface SVCB extends RecordsAPI.SVCBRecord { - /** - * Identifier. - */ - id: string; - } - - export interface TLSA extends RecordsAPI.TLSARecord { - /** - * Identifier. - */ - id: string; - } - - export interface TXT extends RecordsAPI.TXTRecord { - /** - * Identifier. - */ - id: string; - } - - export interface URI extends RecordsAPI.URIRecord { - /** - * Identifier. - */ - id: string; - } } export type BatchPatchParam = - | BatchPatchParam.A - | BatchPatchParam.AAAA - | BatchPatchParam.CAA - | BatchPatchParam.CERT - | BatchPatchParam.CNAME - | BatchPatchParam.DNSKEY - | BatchPatchParam.DS - | BatchPatchParam.HTTPS - | BatchPatchParam.LOC - | BatchPatchParam.MX - | BatchPatchParam.NAPTR - | BatchPatchParam.NS - | BatchPatchParam.Openpgpkey - | BatchPatchParam.PTR - | BatchPatchParam.SMIMEA - | BatchPatchParam.SRV - | BatchPatchParam.SSHFP - | BatchPatchParam.SVCB - | BatchPatchParam.TLSA - | BatchPatchParam.TXT - | BatchPatchParam.URI; + | ARecordParam + | AAAARecordParam + | CNAMERecordParam + | MXRecordParam + | NSRecordParam + | BatchPatchParam.DNSRecordsOpenpgpkeyRecord + | PTRRecordParam + | TXTRecordParam + | CAARecordParam + | CERTRecordParam + | DNSKEYRecordParam + | DSRecordParam + | HTTPSRecordParam + | LOCRecordParam + | NAPTRRecordParam + | SMIMEARecordParam + | SRVRecordParam + | SSHFPRecordParam + | SVCBRecordParam + | TLSARecordParam + | URIRecordParam; export namespace BatchPatchParam { - export interface A extends RecordsAPI.ARecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface AAAA extends RecordsAPI.AAAARecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface CAA extends RecordsAPI.CAARecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface CERT extends RecordsAPI.CERTRecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface CNAME extends RecordsAPI.CNAMERecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface DNSKEY extends RecordsAPI.DNSKEYRecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface DS extends RecordsAPI.DSRecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface HTTPS extends RecordsAPI.HTTPSRecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface LOC extends RecordsAPI.LOCRecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface MX extends RecordsAPI.MXRecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface NAPTR extends RecordsAPI.NAPTRRecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface NS extends RecordsAPI.NSRecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface Openpgpkey { - /** - * Identifier. - */ - id: string; - + export interface DNSRecordsOpenpgpkeyRecord { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -934,7 +700,7 @@ export namespace BatchPatchParam { /** * Settings for the DNS record. */ - settings?: Openpgpkey.Settings; + settings?: DNSRecordsOpenpgpkeyRecord.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -954,7 +720,7 @@ export namespace BatchPatchParam { type?: 'OPENPGPKEY'; } - export namespace Openpgpkey { + export namespace DNSRecordsOpenpgpkeyRecord { /** * Settings for the DNS record. */ @@ -976,198 +742,142 @@ export namespace BatchPatchParam { ipv6_only?: boolean; } } - - export interface PTR extends RecordsAPI.PTRRecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface SMIMEA extends RecordsAPI.SMIMEARecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface SRV extends RecordsAPI.SRVRecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface SSHFP extends RecordsAPI.SSHFPRecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface SVCB extends RecordsAPI.SVCBRecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface TLSA extends RecordsAPI.TLSARecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface TXT extends RecordsAPI.TXTRecordParam { - /** - * Identifier. - */ - id: string; - } - - export interface URI extends RecordsAPI.URIRecordParam { - /** - * Identifier. - */ - id: string; - } -} +} export type BatchPut = - | BatchPut.A - | BatchPut.AAAA - | BatchPut.CAA - | BatchPut.CERT - | BatchPut.CNAME - | BatchPut.DNSKEY - | BatchPut.DS - | BatchPut.HTTPS - | BatchPut.LOC - | BatchPut.MX - | BatchPut.NAPTR - | BatchPut.NS - | BatchPut.Openpgpkey - | BatchPut.PTR - | BatchPut.SMIMEA - | BatchPut.SRV - | BatchPut.SSHFP - | BatchPut.SVCB - | BatchPut.TLSA - | BatchPut.TXT - | BatchPut.URI; + | ARecord + | AAAARecord + | CNAMERecord + | MXRecord + | NSRecord + | BatchPut.DNSRecordsOpenpgpkeyRecord + | PTRRecord + | TXTRecord + | CAARecord + | CERTRecord + | DNSKEYRecord + | DSRecord + | HTTPSRecord + | LOCRecord + | NAPTRRecord + | SMIMEARecord + | SRVRecord + | SSHFPRecord + | SVCBRecord + | TLSARecord + | URIRecord; export namespace BatchPut { - export interface A extends RecordsAPI.ARecord { + export interface DNSRecordsOpenpgpkeyRecord { /** - * Identifier. + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. */ - id?: string; - } + comment?: string; - export interface AAAA extends RecordsAPI.AAAARecord { /** - * Identifier. + * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) */ - id?: string; - } + content?: string; - export interface CAA extends RecordsAPI.CAARecord { /** - * Identifier. + * DNS record name (or @ for the zone apex) in Punycode. */ - id?: string; - } + name?: string; - export interface CERT extends RecordsAPI.CERTRecord { /** - * Identifier. + * Whether the record is receiving the performance and security benefits of + * Cloudflare. */ - id?: string; - } + proxied?: boolean; - export interface CNAME extends RecordsAPI.CNAMERecord { /** - * Identifier. + * Settings for the DNS record. */ - id?: string; - } + settings?: DNSRecordsOpenpgpkeyRecord.Settings; - export interface DNSKEY extends RecordsAPI.DNSKEYRecord { /** - * Identifier. + * Custom tags for the DNS record. This field has no effect on DNS responses. */ - id?: string; - } + tags?: Array; - export interface DS extends RecordsAPI.DSRecord { /** - * Identifier. + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. */ - id?: string; - } + ttl?: RecordsAPI.TTL; - export interface HTTPS extends RecordsAPI.HTTPSRecord { /** - * Identifier. + * Record type. */ - id?: string; + type?: 'OPENPGPKEY'; } - export interface LOC extends RecordsAPI.LOCRecord { + export namespace DNSRecordsOpenpgpkeyRecord { /** - * Identifier. + * Settings for the DNS record. */ - id?: string; - } + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; - export interface MX extends RecordsAPI.MXRecord { - /** - * Identifier. - */ - id?: string; + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } } +} - export interface NAPTR extends RecordsAPI.NAPTRRecord { - /** - * Identifier. - */ - id?: string; - } +export type BatchPutParam = + | ARecordParam + | AAAARecordParam + | CNAMERecordParam + | MXRecordParam + | NSRecordParam + | BatchPutParam.DNSRecordsOpenpgpkeyRecord + | PTRRecordParam + | TXTRecordParam + | CAARecordParam + | CERTRecordParam + | DNSKEYRecordParam + | DSRecordParam + | HTTPSRecordParam + | LOCRecordParam + | NAPTRRecordParam + | SMIMEARecordParam + | SRVRecordParam + | SSHFPRecordParam + | SVCBRecordParam + | TLSARecordParam + | URIRecordParam; - export interface NS extends RecordsAPI.NSRecord { +export namespace BatchPutParam { + export interface DNSRecordsOpenpgpkeyRecord { /** - * Identifier. + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. */ - id?: string; - } + comment?: string; - export interface Openpgpkey { /** * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) */ - content: string; + content?: string; /** * DNS record name (or @ for the zone apex) in Punycode. */ - name: string; - - /** - * Record type. - */ - type: 'OPENPGPKEY'; - - /** - * Identifier. - */ - id?: string; - - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; + name?: string; /** * Whether the record is receiving the performance and security benefits of @@ -1178,22 +888,27 @@ export namespace BatchPut { /** * Settings for the DNS record. */ - settings?: Openpgpkey.Settings; + settings?: DNSRecordsOpenpgpkeyRecord.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. */ - tags?: Array; + tags?: Array; /** * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. * Value must be between 60 and 86400, with the minimum reduced to 30 for * Enterprise zones. */ - ttl?: RecordsAPI.TTL; + ttl?: RecordsAPI.TTLParam; + + /** + * Record type. + */ + type?: 'OPENPGPKEY'; } - export namespace Openpgpkey { + export namespace DNSRecordsOpenpgpkeyRecord { /** * Settings for the DNS record. */ @@ -1215,319 +930,113 @@ export namespace BatchPut { ipv6_only?: boolean; } } +} - export interface PTR extends RecordsAPI.PTRRecord { - /** - * Identifier. - */ - id?: string; - } +export interface CAARecord { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; - export interface SMIMEA extends RecordsAPI.SMIMEARecord { - /** - * Identifier. - */ - id?: string; - } + /** + * Formatted CAA content. See 'data' to set CAA properties. + */ + content?: string; + + /** + * Components of a CAA record. + */ + data?: CAARecord.Data; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: CAARecord.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: TTL; + + /** + * Record type. + */ + type?: 'CAA'; +} - export interface SRV extends RecordsAPI.SRVRecord { +export namespace CAARecord { + /** + * Components of a CAA record. + */ + export interface Data { /** - * Identifier. + * Flags for the CAA record. */ - id?: string; - } + flags?: number; - export interface SSHFP extends RecordsAPI.SSHFPRecord { /** - * Identifier. + * Name of the property controlled by this record (e.g.: issue, issuewild, iodef). */ - id?: string; - } + tag?: string; - export interface SVCB extends RecordsAPI.SVCBRecord { /** - * Identifier. + * Value of the record. This field's semantics depend on the chosen tag. */ - id?: string; + value?: string; } - export interface TLSA extends RecordsAPI.TLSARecord { - /** - * Identifier. - */ - id?: string; - } - - export interface TXT extends RecordsAPI.TXTRecord { - /** - * Identifier. - */ - id?: string; - } - - export interface URI extends RecordsAPI.URIRecord { - /** - * Identifier. - */ - id?: string; - } -} - -export type BatchPutParam = - | BatchPutParam.A - | BatchPutParam.AAAA - | BatchPutParam.CAA - | BatchPutParam.CERT - | BatchPutParam.CNAME - | BatchPutParam.DNSKEY - | BatchPutParam.DS - | BatchPutParam.HTTPS - | BatchPutParam.LOC - | BatchPutParam.MX - | BatchPutParam.NAPTR - | BatchPutParam.NS - | BatchPutParam.Openpgpkey - | BatchPutParam.PTR - | BatchPutParam.SMIMEA - | BatchPutParam.SRV - | BatchPutParam.SSHFP - | BatchPutParam.SVCB - | BatchPutParam.TLSA - | BatchPutParam.TXT - | BatchPutParam.URI; - -export namespace BatchPutParam { - export interface A extends RecordsAPI.ARecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface AAAA extends RecordsAPI.AAAARecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface CAA extends RecordsAPI.CAARecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface CERT extends RecordsAPI.CERTRecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface CNAME extends RecordsAPI.CNAMERecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface DNSKEY extends RecordsAPI.DNSKEYRecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface DS extends RecordsAPI.DSRecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface HTTPS extends RecordsAPI.HTTPSRecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface LOC extends RecordsAPI.LOCRecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface MX extends RecordsAPI.MXRecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface NAPTR extends RecordsAPI.NAPTRRecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface NS extends RecordsAPI.NSRecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface Openpgpkey { - /** - * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) - */ - content: string; - - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name: string; - - /** - * Record type. - */ - type: 'OPENPGPKEY'; - - /** - * Identifier. - */ - id?: string; - - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; - - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied?: boolean; - - /** - * Settings for the DNS record. - */ - settings?: Openpgpkey.Settings; - - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags?: Array; - - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl?: RecordsAPI.TTLParam; - } - - export namespace Openpgpkey { - /** - * Settings for the DNS record. - */ - export interface Settings { - /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv4_only?: boolean; - - /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv6_only?: boolean; - } - } - - export interface PTR extends RecordsAPI.PTRRecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface SMIMEA extends RecordsAPI.SMIMEARecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface SRV extends RecordsAPI.SRVRecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface SSHFP extends RecordsAPI.SSHFPRecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface SVCB extends RecordsAPI.SVCBRecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface TLSA extends RecordsAPI.TLSARecordParam { - /** - * Identifier. - */ - id?: string; - } - - export interface TXT extends RecordsAPI.TXTRecordParam { + /** + * Settings for the DNS record. + */ + export interface Settings { /** - * Identifier. + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. */ - id?: string; - } + ipv4_only?: boolean; - export interface URI extends RecordsAPI.URIRecordParam { /** - * Identifier. + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. */ - id?: string; + ipv6_only?: boolean; } } -export interface CAARecord { +export interface CAARecordParam { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. */ comment?: string; - /** - * Formatted CAA content. See 'data' to set CAA properties. - */ - content?: string; - /** * Components of a CAA record. */ - data?: CAARecord.Data; + data?: CAARecordParam.Data; /** * DNS record name (or @ for the zone apex) in Punycode. @@ -1543,19 +1052,19 @@ export interface CAARecord { /** * Settings for the DNS record. */ - settings?: CAARecord.Settings; + settings?: CAARecordParam.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. */ - tags?: Array; + tags?: Array; /** * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. * Value must be between 60 and 86400, with the minimum reduced to 30 for * Enterprise zones. */ - ttl?: TTL; + ttl?: TTLParam; /** * Record type. @@ -1563,7 +1072,7 @@ export interface CAARecord { type?: 'CAA'; } -export namespace CAARecord { +export namespace CAARecordParam { /** * Components of a CAA record. */ @@ -1606,7 +1115,7 @@ export namespace CAARecord { } } -export interface CAARecordParam { +export interface CERTRecord { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1614,9 +1123,14 @@ export interface CAARecordParam { comment?: string; /** - * Components of a CAA record. + * Formatted CERT content. See 'data' to set CERT properties. */ - data?: CAARecordParam.Data; + content?: string; + + /** + * Components of a CERT record. + */ + data?: CERTRecord.Data; /** * DNS record name (or @ for the zone apex) in Punycode. @@ -1632,45 +1146,50 @@ export interface CAARecordParam { /** * Settings for the DNS record. */ - settings?: CAARecordParam.Settings; + settings?: CERTRecord.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. */ - tags?: Array; + tags?: Array; /** * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. * Value must be between 60 and 86400, with the minimum reduced to 30 for * Enterprise zones. */ - ttl?: TTLParam; + ttl?: TTL; /** * Record type. */ - type?: 'CAA'; + type?: 'CERT'; } -export namespace CAARecordParam { +export namespace CERTRecord { /** - * Components of a CAA record. + * Components of a CERT record. */ export interface Data { /** - * Flags for the CAA record. + * Algorithm. */ - flags?: number; + algorithm?: number; /** - * Name of the property controlled by this record (e.g.: issue, issuewild, iodef). + * Certificate. */ - tag?: string; + certificate?: string; /** - * Value of the record. This field's semantics depend on the chosen tag. + * Key Tag. */ - value?: string; + key_tag?: number; + + /** + * Type. + */ + type?: number; } /** @@ -1695,7 +1214,7 @@ export namespace CAARecordParam { } } -export interface CERTRecord { +export interface CERTRecordParam { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1703,108 +1222,9 @@ export interface CERTRecord { comment?: string; /** - * Formatted CERT content. See 'data' to set CERT properties. + * Components of a CERT record. */ - content?: string; - - /** - * Components of a CERT record. - */ - data?: CERTRecord.Data; - - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied?: boolean; - - /** - * Settings for the DNS record. - */ - settings?: CERTRecord.Settings; - - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags?: Array; - - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl?: TTL; - - /** - * Record type. - */ - type?: 'CERT'; -} - -export namespace CERTRecord { - /** - * Components of a CERT record. - */ - export interface Data { - /** - * Algorithm. - */ - algorithm?: number; - - /** - * Certificate. - */ - certificate?: string; - - /** - * Key Tag. - */ - key_tag?: number; - - /** - * Type. - */ - type?: number; - } - - /** - * Settings for the DNS record. - */ - export interface Settings { - /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv4_only?: boolean; - - /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv6_only?: boolean; - } -} - -export interface CERTRecordParam { - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; - - /** - * Components of a CERT record. - */ - data?: CERTRecordParam.Data; + data?: CERTRecordParam.Data; /** * DNS record name (or @ for the zone apex) in Punycode. @@ -3498,1085 +2918,122 @@ export interface PTRRecordParam { * Record type. */ type?: 'PTR'; -} - -export namespace PTRRecordParam { - /** - * Settings for the DNS record. - */ - export interface Settings { - /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv4_only?: boolean; - - /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv6_only?: boolean; - } -} - -export type Record = - | ARecord - | AAAARecord - | CAARecord - | CERTRecord - | CNAMERecord - | DNSKEYRecord - | DSRecord - | HTTPSRecord - | LOCRecord - | MXRecord - | NAPTRRecord - | NSRecord - | Record.Openpgpkey - | PTRRecord - | SMIMEARecord - | SRVRecord - | SSHFPRecord - | SVCBRecord - | TLSARecord - | TXTRecord - | URIRecord; - -export namespace Record { - export interface Openpgpkey { - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; - - /** - * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) - */ - content?: string; - - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied?: boolean; - - /** - * Settings for the DNS record. - */ - settings?: Openpgpkey.Settings; - - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags?: Array; - - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl?: RecordsAPI.TTL; - - /** - * Record type. - */ - type?: 'OPENPGPKEY'; - } - - export namespace Openpgpkey { - /** - * Settings for the DNS record. - */ - export interface Settings { - /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv4_only?: boolean; - - /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv6_only?: boolean; - } - } -} - -export type RecordParam = - | ARecordParam - | AAAARecordParam - | CAARecordParam - | CERTRecordParam - | CNAMERecordParam - | DNSKEYRecordParam - | DSRecordParam - | HTTPSRecordParam - | LOCRecordParam - | MXRecordParam - | NAPTRRecordParam - | NSRecordParam - | RecordParam.Openpgpkey - | PTRRecordParam - | SMIMEARecordParam - | SRVRecordParam - | SSHFPRecordParam - | SVCBRecordParam - | TLSARecordParam - | TXTRecordParam - | URIRecordParam; - -export namespace RecordParam { - export interface Openpgpkey { - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; - - /** - * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) - */ - content?: string; - - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied?: boolean; - - /** - * Settings for the DNS record. - */ - settings?: Openpgpkey.Settings; - - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags?: Array; - - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl?: RecordsAPI.TTLParam; - - /** - * Record type. - */ - type?: 'OPENPGPKEY'; - } - - export namespace Openpgpkey { - /** - * Settings for the DNS record. - */ - export interface Settings { - /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv4_only?: boolean; - - /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv6_only?: boolean; - } - } -} - -export type RecordResponse = - | RecordResponse.A - | RecordResponse.AAAA - | RecordResponse.CAA - | RecordResponse.CERT - | RecordResponse.CNAME - | RecordResponse.DNSKEY - | RecordResponse.DS - | RecordResponse.HTTPS - | RecordResponse.LOC - | RecordResponse.MX - | RecordResponse.NAPTR - | RecordResponse.NS - | RecordResponse.Openpgpkey - | RecordResponse.PTR - | RecordResponse.SMIMEA - | RecordResponse.SRV - | RecordResponse.SSHFP - | RecordResponse.SVCB - | RecordResponse.TLSA - | RecordResponse.TXT - | RecordResponse.URI; - -export namespace RecordResponse { - export interface A extends RecordsAPI.ARecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface AAAA extends RecordsAPI.AAAARecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface CAA extends RecordsAPI.CAARecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface CERT extends RecordsAPI.CERTRecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface CNAME extends RecordsAPI.CNAMERecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface DNSKEY extends RecordsAPI.DNSKEYRecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface DS extends RecordsAPI.DSRecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface HTTPS extends RecordsAPI.HTTPSRecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface LOC extends RecordsAPI.LOCRecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface MX extends RecordsAPI.MXRecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface NAPTR extends RecordsAPI.NAPTRRecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface NS extends RecordsAPI.NSRecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface Openpgpkey { - /** - * Identifier. - */ - id: string; - - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment: string; - - /** - * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) - */ - content: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied: boolean; - - /** - * Settings for the DNS record. - */ - settings: Openpgpkey.Settings; - - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags: Array; - - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl: RecordsAPI.TTL; - - /** - * Record type. - */ - type: 'OPENPGPKEY'; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export namespace Openpgpkey { - /** - * Settings for the DNS record. - */ - export interface Settings { - /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv4_only?: boolean; - - /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv6_only?: boolean; - } - } - - export interface PTR extends RecordsAPI.PTRRecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface SMIMEA extends RecordsAPI.SMIMEARecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface SRV extends RecordsAPI.SRVRecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface SSHFP extends RecordsAPI.SSHFPRecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface SVCB extends RecordsAPI.SVCBRecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface TLSA extends RecordsAPI.TLSARecord { - /** - * Identifier. - */ - id: string; - - /** - * When the record was created. - */ - created_on: string; - - /** - * Extra Cloudflare-specific information about the record. - */ - meta: unknown; - - /** - * When the record was last modified. - */ - modified_on: string; - - /** - * Whether the record can be proxied by Cloudflare or not. - */ - proxiable: boolean; - - /** - * When the record comment was last modified. Omitted if there is no comment. - */ - comment_modified_on?: string; - - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; - } - - export interface TXT extends RecordsAPI.TXTRecord { - /** - * Identifier. - */ - id: string; +} +export namespace PTRRecordParam { + /** + * Settings for the DNS record. + */ + export interface Settings { /** - * When the record was created. + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. */ - created_on: string; + ipv4_only?: boolean; /** - * Extra Cloudflare-specific information about the record. + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. */ - meta: unknown; + ipv6_only?: boolean; + } +} - /** - * When the record was last modified. - */ - modified_on: string; +export type RecordResponse = + | ARecord + | AAAARecord + | CNAMERecord + | MXRecord + | NSRecord + | RecordResponse.DNSRecordsOpenpgpkeyRecord + | PTRRecord + | TXTRecord + | CAARecord + | CERTRecord + | DNSKEYRecord + | DSRecord + | HTTPSRecord + | LOCRecord + | NAPTRRecord + | SMIMEARecord + | SRVRecord + | SSHFPRecord + | SVCBRecord + | TLSARecord + | URIRecord; +export namespace RecordResponse { + export interface DNSRecordsOpenpgpkeyRecord { /** - * Whether the record can be proxied by Cloudflare or not. + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. */ - proxiable: boolean; + comment?: string; /** - * When the record comment was last modified. Omitted if there is no comment. + * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) */ - comment_modified_on?: string; + content?: string; /** - * When the record tags were last modified. Omitted if there are no tags. + * DNS record name (or @ for the zone apex) in Punycode. */ - tags_modified_on?: string; - } + name?: string; - export interface URI extends RecordsAPI.URIRecord { /** - * Identifier. + * Whether the record is receiving the performance and security benefits of + * Cloudflare. */ - id: string; + proxied?: boolean; /** - * When the record was created. + * Settings for the DNS record. */ - created_on: string; + settings?: DNSRecordsOpenpgpkeyRecord.Settings; /** - * Extra Cloudflare-specific information about the record. + * Custom tags for the DNS record. This field has no effect on DNS responses. */ - meta: unknown; + tags?: Array; /** - * When the record was last modified. + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. */ - modified_on: string; + ttl?: RecordsAPI.TTL; /** - * Whether the record can be proxied by Cloudflare or not. + * Record type. */ - proxiable: boolean; + type?: 'OPENPGPKEY'; + } + export namespace DNSRecordsOpenpgpkeyRecord { /** - * When the record comment was last modified. Omitted if there is no comment. + * Settings for the DNS record. */ - comment_modified_on?: string; + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; - /** - * When the record tags were last modified. Omitted if there are no tags. - */ - tags_modified_on?: string; + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } } } @@ -5936,24 +4393,24 @@ export interface RecordScanResponse { export type RecordCreateParams = | RecordCreateParams.ARecord | RecordCreateParams.AAAARecord + | RecordCreateParams.CNAMERecord + | RecordCreateParams.MXRecord + | RecordCreateParams.NSRecord + | RecordCreateParams.DNSRecordsOpenpgpkeyRecord + | RecordCreateParams.PTRRecord + | RecordCreateParams.TXTRecord | RecordCreateParams.CAARecord | RecordCreateParams.CERTRecord - | RecordCreateParams.CNAMERecord | RecordCreateParams.DNSKEYRecord | RecordCreateParams.DSRecord | RecordCreateParams.HTTPSRecord | RecordCreateParams.LOCRecord - | RecordCreateParams.MXRecord | RecordCreateParams.NAPTRRecord - | RecordCreateParams.NSRecord - | RecordCreateParams.DNSRecordsOpenpgpkeyRecord - | RecordCreateParams.PTRRecord | RecordCreateParams.SMIMEARecord | RecordCreateParams.SRVRecord | RecordCreateParams.SSHFPRecord | RecordCreateParams.SVCBRecord | RecordCreateParams.TLSARecord - | RecordCreateParams.TXTRecord | RecordCreateParams.URIRecord; export declare namespace RecordCreateParams { @@ -6107,7 +4564,7 @@ export declare namespace RecordCreateParams { } } - export interface CAARecord { + export interface CNAMERecord { /** * Path param: Identifier. */ @@ -6120,9 +4577,9 @@ export declare namespace RecordCreateParams { comment?: string; /** - * Body param: Components of a CAA record. + * Body param: A valid hostname. Must not match the record's name. */ - data?: CAARecord.Data; + content?: string; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -6138,7 +4595,7 @@ export declare namespace RecordCreateParams { /** * Body param: Settings for the DNS record. */ - settings?: CAARecord.Settings; + settings?: CNAMERecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -6156,30 +4613,99 @@ export declare namespace RecordCreateParams { /** * Body param: Record type. */ - type?: 'CAA'; + type?: 'CNAME'; } - export namespace CAARecord { + export namespace CNAMERecord { /** - * Components of a CAA record. + * Settings for the DNS record. */ - export interface Data { + export interface Settings { /** - * Flags for the CAA record. + * If enabled, causes the CNAME record to be resolved externally and the resulting + * address records (e.g., A and AAAA) to be returned instead of the CNAME record + * itself. This setting is unavailable for proxied records, since they are always + * flattened. */ - flags?: number; + flatten_cname?: boolean; /** - * Name of the property controlled by this record (e.g.: issue, issuewild, iodef). + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. */ - tag?: string; + ipv4_only?: boolean; /** - * Value of the record. This field's semantics depend on the chosen tag. + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. */ - value?: string; + ipv6_only?: boolean; } + } + + export interface MXRecord { + /** + * Path param: Identifier. + */ + zone_id: string; + + /** + * Body param: Comments or notes about the DNS record. This field has no effect on + * DNS responses. + */ + comment?: string; + + /** + * Body param: A valid mail server hostname. + */ + content?: string; + + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Body param: Required for MX, SRV and URI records; unused by other record types. + * Records with lower priorities are preferred. + */ + priority?: number; + + /** + * Body param: Whether the record is receiving the performance and security + * benefits of Cloudflare. + */ + proxied?: boolean; + + /** + * Body param: Settings for the DNS record. + */ + settings?: MXRecord.Settings; + + /** + * Body param: Custom tags for the DNS record. This field has no effect on DNS + * responses. + */ + tags?: Array; + + /** + * Body param: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means + * 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 + * for Enterprise zones. + */ + ttl?: TTLParam; + + /** + * Body param: Record type. + */ + type?: 'MX'; + } + export namespace MXRecord { /** * Settings for the DNS record. */ @@ -6202,7 +4728,7 @@ export declare namespace RecordCreateParams { } } - export interface CERTRecord { + export interface NSRecord { /** * Path param: Identifier. */ @@ -6215,9 +4741,9 @@ export declare namespace RecordCreateParams { comment?: string; /** - * Body param: Components of a CERT record. + * Body param: A valid name server host name. */ - data?: CERTRecord.Data; + content?: string; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -6233,7 +4759,7 @@ export declare namespace RecordCreateParams { /** * Body param: Settings for the DNS record. */ - settings?: CERTRecord.Settings; + settings?: NSRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -6251,35 +4777,10 @@ export declare namespace RecordCreateParams { /** * Body param: Record type. */ - type?: 'CERT'; + type?: 'NS'; } - export namespace CERTRecord { - /** - * Components of a CERT record. - */ - export interface Data { - /** - * Algorithm. - */ - algorithm?: number; - - /** - * Certificate. - */ - certificate?: string; - - /** - * Key Tag. - */ - key_tag?: number; - - /** - * Type. - */ - type?: number; - } - + export namespace NSRecord { /** * Settings for the DNS record. */ @@ -6302,7 +4803,7 @@ export declare namespace RecordCreateParams { } } - export interface CNAMERecord { + export interface DNSRecordsOpenpgpkeyRecord { /** * Path param: Identifier. */ @@ -6315,7 +4816,8 @@ export declare namespace RecordCreateParams { comment?: string; /** - * Body param: A valid hostname. Must not match the record's name. + * Body param: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 + * Section 11.1) */ content?: string; @@ -6333,7 +4835,7 @@ export declare namespace RecordCreateParams { /** * Body param: Settings for the DNS record. */ - settings?: CNAMERecord.Settings; + settings?: DNSRecordsOpenpgpkeyRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -6351,22 +4853,14 @@ export declare namespace RecordCreateParams { /** * Body param: Record type. */ - type?: 'CNAME'; + type?: 'OPENPGPKEY'; } - export namespace CNAMERecord { - /** - * Settings for the DNS record. - */ - export interface Settings { - /** - * If enabled, causes the CNAME record to be resolved externally and the resulting - * address records (e.g., A and AAAA) to be returned instead of the CNAME record - * itself. This setting is unavailable for proxied records, since they are always - * flattened. - */ - flatten_cname?: boolean; - + export namespace DNSRecordsOpenpgpkeyRecord { + /** + * Settings for the DNS record. + */ + export interface Settings { /** * When enabled, only A records will be generated, and AAAA records will not be * created. This setting is intended for exceptional cases. Note that this option @@ -6385,7 +4879,7 @@ export declare namespace RecordCreateParams { } } - export interface DNSKEYRecord { + export interface PTRRecord { /** * Path param: Identifier. */ @@ -6398,9 +4892,9 @@ export declare namespace RecordCreateParams { comment?: string; /** - * Body param: Components of a DNSKEY record. + * Body param: Domain name pointing to the address. */ - data?: DNSKEYRecord.Data; + content?: string; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -6416,7 +4910,7 @@ export declare namespace RecordCreateParams { /** * Body param: Settings for the DNS record. */ - settings?: DNSKEYRecord.Settings; + settings?: PTRRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -6434,35 +4928,10 @@ export declare namespace RecordCreateParams { /** * Body param: Record type. */ - type?: 'DNSKEY'; + type?: 'PTR'; } - export namespace DNSKEYRecord { - /** - * Components of a DNSKEY record. - */ - export interface Data { - /** - * Algorithm. - */ - algorithm?: number; - - /** - * Flags. - */ - flags?: number; - - /** - * Protocol. - */ - protocol?: number; - - /** - * Public Key. - */ - public_key?: string; - } - + export namespace PTRRecord { /** * Settings for the DNS record. */ @@ -6485,7 +4954,7 @@ export declare namespace RecordCreateParams { } } - export interface DSRecord { + export interface TXTRecord { /** * Path param: Identifier. */ @@ -6498,9 +4967,14 @@ export declare namespace RecordCreateParams { comment?: string; /** - * Body param: Components of a DS record. + * Body param: Text content for the record. The content must consist of quoted + * "character strings" (RFC 1035), each with a length of up to 255 bytes. Strings + * exceeding this allowed maximum length are automatically split. + * + * Learn more at + * . */ - data?: DSRecord.Data; + content?: string; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -6516,7 +4990,7 @@ export declare namespace RecordCreateParams { /** * Body param: Settings for the DNS record. */ - settings?: DSRecord.Settings; + settings?: TXTRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -6534,35 +5008,10 @@ export declare namespace RecordCreateParams { /** * Body param: Record type. */ - type?: 'DS'; + type?: 'TXT'; } - export namespace DSRecord { - /** - * Components of a DS record. - */ - export interface Data { - /** - * Algorithm. - */ - algorithm?: number; - - /** - * Digest. - */ - digest?: string; - - /** - * Digest Type. - */ - digest_type?: number; - - /** - * Key Tag. - */ - key_tag?: number; - } - + export namespace TXTRecord { /** * Settings for the DNS record. */ @@ -6585,7 +5034,7 @@ export declare namespace RecordCreateParams { } } - export interface HTTPSRecord { + export interface CAARecord { /** * Path param: Identifier. */ @@ -6598,9 +5047,9 @@ export declare namespace RecordCreateParams { comment?: string; /** - * Body param: Components of a HTTPS record. + * Body param: Components of a CAA record. */ - data?: HTTPSRecord.Data; + data?: CAARecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -6616,7 +5065,7 @@ export declare namespace RecordCreateParams { /** * Body param: Settings for the DNS record. */ - settings?: HTTPSRecord.Settings; + settings?: CAARecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -6634,26 +5083,26 @@ export declare namespace RecordCreateParams { /** * Body param: Record type. */ - type?: 'HTTPS'; + type?: 'CAA'; } - export namespace HTTPSRecord { + export namespace CAARecord { /** - * Components of a HTTPS record. + * Components of a CAA record. */ export interface Data { /** - * priority. + * Flags for the CAA record. */ - priority?: number; + flags?: number; /** - * target. + * Name of the property controlled by this record (e.g.: issue, issuewild, iodef). */ - target?: string; + tag?: string; /** - * value. + * Value of the record. This field's semantics depend on the chosen tag. */ value?: string; } @@ -6680,7 +5129,7 @@ export declare namespace RecordCreateParams { } } - export interface LOCRecord { + export interface CERTRecord { /** * Path param: Identifier. */ @@ -6693,9 +5142,9 @@ export declare namespace RecordCreateParams { comment?: string; /** - * Body param: Components of a LOC record. + * Body param: Components of a CERT record. */ - data?: LOCRecord.Data; + data?: CERTRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -6711,7 +5160,7 @@ export declare namespace RecordCreateParams { /** * Body param: Settings for the DNS record. */ - settings?: LOCRecord.Settings; + settings?: CERTRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -6729,73 +5178,33 @@ export declare namespace RecordCreateParams { /** * Body param: Record type. */ - type?: 'LOC'; + type?: 'CERT'; } - export namespace LOCRecord { + export namespace CERTRecord { /** - * Components of a LOC record. + * Components of a CERT record. */ export interface Data { /** - * Altitude of location in meters. - */ - altitude?: number; - - /** - * Degrees of latitude. - */ - lat_degrees?: number; - - /** - * Latitude direction. - */ - lat_direction?: 'N' | 'S'; - - /** - * Minutes of latitude. - */ - lat_minutes?: number; - - /** - * Seconds of latitude. - */ - lat_seconds?: number; - - /** - * Degrees of longitude. - */ - long_degrees?: number; - - /** - * Longitude direction. - */ - long_direction?: 'E' | 'W'; - - /** - * Minutes of longitude. - */ - long_minutes?: number; - - /** - * Seconds of longitude. + * Algorithm. */ - long_seconds?: number; + algorithm?: number; /** - * Horizontal precision of location. + * Certificate. */ - precision_horz?: number; + certificate?: string; /** - * Vertical precision of location. + * Key Tag. */ - precision_vert?: number; + key_tag?: number; /** - * Size of location in meters. + * Type. */ - size?: number; + type?: number; } /** @@ -6820,7 +5229,7 @@ export declare namespace RecordCreateParams { } } - export interface MXRecord { + export interface DNSKEYRecord { /** * Path param: Identifier. */ @@ -6833,21 +5242,15 @@ export declare namespace RecordCreateParams { comment?: string; /** - * Body param: A valid mail server hostname. + * Body param: Components of a DNSKEY record. */ - content?: string; + data?: DNSKEYRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. */ name?: string; - /** - * Body param: Required for MX, SRV and URI records; unused by other record types. - * Records with lower priorities are preferred. - */ - priority?: number; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -6857,7 +5260,7 @@ export declare namespace RecordCreateParams { /** * Body param: Settings for the DNS record. */ - settings?: MXRecord.Settings; + settings?: DNSKEYRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -6875,10 +5278,35 @@ export declare namespace RecordCreateParams { /** * Body param: Record type. */ - type?: 'MX'; + type?: 'DNSKEY'; } - export namespace MXRecord { + export namespace DNSKEYRecord { + /** + * Components of a DNSKEY record. + */ + export interface Data { + /** + * Algorithm. + */ + algorithm?: number; + + /** + * Flags. + */ + flags?: number; + + /** + * Protocol. + */ + protocol?: number; + + /** + * Public Key. + */ + public_key?: string; + } + /** * Settings for the DNS record. */ @@ -6901,7 +5329,7 @@ export declare namespace RecordCreateParams { } } - export interface NAPTRRecord { + export interface DSRecord { /** * Path param: Identifier. */ @@ -6914,9 +5342,9 @@ export declare namespace RecordCreateParams { comment?: string; /** - * Body param: Components of a NAPTR record. + * Body param: Components of a DS record. */ - data?: NAPTRRecord.Data; + data?: DSRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -6932,7 +5360,7 @@ export declare namespace RecordCreateParams { /** * Body param: Settings for the DNS record. */ - settings?: NAPTRRecord.Settings; + settings?: DSRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -6950,43 +5378,33 @@ export declare namespace RecordCreateParams { /** * Body param: Record type. */ - type?: 'NAPTR'; + type?: 'DS'; } - export namespace NAPTRRecord { + export namespace DSRecord { /** - * Components of a NAPTR record. + * Components of a DS record. */ export interface Data { /** - * Flags. - */ - flags?: string; - - /** - * Order. - */ - order?: number; - - /** - * Preference. + * Algorithm. */ - preference?: number; + algorithm?: number; /** - * Regex. + * Digest. */ - regex?: string; + digest?: string; /** - * Replacement. + * Digest Type. */ - replacement?: string; + digest_type?: number; /** - * Service. + * Key Tag. */ - service?: string; + key_tag?: number; } /** @@ -7011,7 +5429,7 @@ export declare namespace RecordCreateParams { } } - export interface NSRecord { + export interface HTTPSRecord { /** * Path param: Identifier. */ @@ -7024,9 +5442,9 @@ export declare namespace RecordCreateParams { comment?: string; /** - * Body param: A valid name server host name. + * Body param: Components of a HTTPS record. */ - content?: string; + data?: HTTPSRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -7042,7 +5460,7 @@ export declare namespace RecordCreateParams { /** * Body param: Settings for the DNS record. */ - settings?: NSRecord.Settings; + settings?: HTTPSRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -7060,10 +5478,30 @@ export declare namespace RecordCreateParams { /** * Body param: Record type. */ - type?: 'NS'; + type?: 'HTTPS'; } - export namespace NSRecord { + export namespace HTTPSRecord { + /** + * Components of a HTTPS record. + */ + export interface Data { + /** + * priority. + */ + priority?: number; + + /** + * target. + */ + target?: string; + + /** + * value. + */ + value?: string; + } + /** * Settings for the DNS record. */ @@ -7086,7 +5524,7 @@ export declare namespace RecordCreateParams { } } - export interface DNSRecordsOpenpgpkeyRecord { + export interface LOCRecord { /** * Path param: Identifier. */ @@ -7099,10 +5537,9 @@ export declare namespace RecordCreateParams { comment?: string; /** - * Body param: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 - * Section 11.1) + * Body param: Components of a LOC record. */ - content?: string; + data?: LOCRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -7118,7 +5555,7 @@ export declare namespace RecordCreateParams { /** * Body param: Settings for the DNS record. */ - settings?: DNSRecordsOpenpgpkeyRecord.Settings; + settings?: LOCRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -7136,10 +5573,75 @@ export declare namespace RecordCreateParams { /** * Body param: Record type. */ - type?: 'OPENPGPKEY'; + type?: 'LOC'; } - export namespace DNSRecordsOpenpgpkeyRecord { + export namespace LOCRecord { + /** + * Components of a LOC record. + */ + export interface Data { + /** + * Altitude of location in meters. + */ + altitude?: number; + + /** + * Degrees of latitude. + */ + lat_degrees?: number; + + /** + * Latitude direction. + */ + lat_direction?: 'N' | 'S'; + + /** + * Minutes of latitude. + */ + lat_minutes?: number; + + /** + * Seconds of latitude. + */ + lat_seconds?: number; + + /** + * Degrees of longitude. + */ + long_degrees?: number; + + /** + * Longitude direction. + */ + long_direction?: 'E' | 'W'; + + /** + * Minutes of longitude. + */ + long_minutes?: number; + + /** + * Seconds of longitude. + */ + long_seconds?: number; + + /** + * Horizontal precision of location. + */ + precision_horz?: number; + + /** + * Vertical precision of location. + */ + precision_vert?: number; + + /** + * Size of location in meters. + */ + size?: number; + } + /** * Settings for the DNS record. */ @@ -7162,7 +5664,7 @@ export declare namespace RecordCreateParams { } } - export interface PTRRecord { + export interface NAPTRRecord { /** * Path param: Identifier. */ @@ -7175,9 +5677,9 @@ export declare namespace RecordCreateParams { comment?: string; /** - * Body param: Domain name pointing to the address. + * Body param: Components of a NAPTR record. */ - content?: string; + data?: NAPTRRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -7193,7 +5695,7 @@ export declare namespace RecordCreateParams { /** * Body param: Settings for the DNS record. */ - settings?: PTRRecord.Settings; + settings?: NAPTRRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -7211,10 +5713,45 @@ export declare namespace RecordCreateParams { /** * Body param: Record type. */ - type?: 'PTR'; + type?: 'NAPTR'; } - export namespace PTRRecord { + export namespace NAPTRRecord { + /** + * Components of a NAPTR record. + */ + export interface Data { + /** + * Flags. + */ + flags?: string; + + /** + * Order. + */ + order?: number; + + /** + * Preference. + */ + preference?: number; + + /** + * Regex. + */ + regex?: string; + + /** + * Replacement. + */ + replacement?: string; + + /** + * Service. + */ + service?: string; + } + /** * Settings for the DNS record. */ @@ -7508,102 +6045,7 @@ export declare namespace RecordCreateParams { /** * type. */ - type?: number; - } - - /** - * Settings for the DNS record. - */ - export interface Settings { - /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv4_only?: boolean; - - /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv6_only?: boolean; - } - } - - export interface SVCBRecord { - /** - * Path param: Identifier. - */ - zone_id: string; - - /** - * Body param: Comments or notes about the DNS record. This field has no effect on - * DNS responses. - */ - comment?: string; - - /** - * Body param: Components of a SVCB record. - */ - data?: SVCBRecord.Data; - - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - - /** - * Body param: Whether the record is receiving the performance and security - * benefits of Cloudflare. - */ - proxied?: boolean; - - /** - * Body param: Settings for the DNS record. - */ - settings?: SVCBRecord.Settings; - - /** - * Body param: Custom tags for the DNS record. This field has no effect on DNS - * responses. - */ - tags?: Array; - - /** - * Body param: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means - * 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 - * for Enterprise zones. - */ - ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'SVCB'; - } - - export namespace SVCBRecord { - /** - * Components of a SVCB record. - */ - export interface Data { - /** - * priority. - */ - priority?: number; - - /** - * target. - */ - target?: string; - - /** - * value. - */ - value?: string; + type?: number; } /** @@ -7628,7 +6070,7 @@ export declare namespace RecordCreateParams { } } - export interface TLSARecord { + export interface SVCBRecord { /** * Path param: Identifier. */ @@ -7641,9 +6083,9 @@ export declare namespace RecordCreateParams { comment?: string; /** - * Body param: Components of a TLSA record. + * Body param: Components of a SVCB record. */ - data?: TLSARecord.Data; + data?: SVCBRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -7659,7 +6101,7 @@ export declare namespace RecordCreateParams { /** * Body param: Settings for the DNS record. */ - settings?: TLSARecord.Settings; + settings?: SVCBRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -7677,33 +6119,28 @@ export declare namespace RecordCreateParams { /** * Body param: Record type. */ - type?: 'TLSA'; + type?: 'SVCB'; } - export namespace TLSARecord { + export namespace SVCBRecord { /** - * Components of a TLSA record. + * Components of a SVCB record. */ export interface Data { /** - * certificate. - */ - certificate?: string; - - /** - * Matching Type. + * priority. */ - matching_type?: number; + priority?: number; /** - * Selector. + * target. */ - selector?: number; + target?: string; /** - * Usage. + * value. */ - usage?: number; + value?: string; } /** @@ -7728,7 +6165,7 @@ export declare namespace RecordCreateParams { } } - export interface TXTRecord { + export interface TLSARecord { /** * Path param: Identifier. */ @@ -7741,14 +6178,9 @@ export declare namespace RecordCreateParams { comment?: string; /** - * Body param: Text content for the record. The content must consist of quoted - * "character strings" (RFC 1035), each with a length of up to 255 bytes. Strings - * exceeding this allowed maximum length are automatically split. - * - * Learn more at - * . + * Body param: Components of a TLSA record. */ - content?: string; + data?: TLSARecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -7764,7 +6196,7 @@ export declare namespace RecordCreateParams { /** * Body param: Settings for the DNS record. */ - settings?: TXTRecord.Settings; + settings?: TLSARecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -7782,10 +6214,35 @@ export declare namespace RecordCreateParams { /** * Body param: Record type. */ - type?: 'TXT'; + type?: 'TLSA'; } - export namespace TXTRecord { + export namespace TLSARecord { + /** + * Components of a TLSA record. + */ + export interface Data { + /** + * certificate. + */ + certificate?: string; + + /** + * Matching Type. + */ + matching_type?: number; + + /** + * Selector. + */ + selector?: number; + + /** + * Usage. + */ + usage?: number; + } + /** * Settings for the DNS record. */ @@ -7908,24 +6365,24 @@ export declare namespace RecordCreateParams { export type RecordUpdateParams = | RecordUpdateParams.ARecord | RecordUpdateParams.AAAARecord + | RecordUpdateParams.CNAMERecord + | RecordUpdateParams.MXRecord + | RecordUpdateParams.NSRecord + | RecordUpdateParams.DNSRecordsOpenpgpkeyRecord + | RecordUpdateParams.PTRRecord + | RecordUpdateParams.TXTRecord | RecordUpdateParams.CAARecord | RecordUpdateParams.CERTRecord - | RecordUpdateParams.CNAMERecord | RecordUpdateParams.DNSKEYRecord | RecordUpdateParams.DSRecord | RecordUpdateParams.HTTPSRecord | RecordUpdateParams.LOCRecord - | RecordUpdateParams.MXRecord | RecordUpdateParams.NAPTRRecord - | RecordUpdateParams.NSRecord - | RecordUpdateParams.DNSRecordsOpenpgpkeyRecord - | RecordUpdateParams.PTRRecord | RecordUpdateParams.SMIMEARecord | RecordUpdateParams.SRVRecord | RecordUpdateParams.SSHFPRecord | RecordUpdateParams.SVCBRecord | RecordUpdateParams.TLSARecord - | RecordUpdateParams.TXTRecord | RecordUpdateParams.URIRecord; export declare namespace RecordUpdateParams { @@ -8079,7 +6536,7 @@ export declare namespace RecordUpdateParams { } } - export interface CAARecord { + export interface CNAMERecord { /** * Path param: Identifier. */ @@ -8092,9 +6549,9 @@ export declare namespace RecordUpdateParams { comment?: string; /** - * Body param: Components of a CAA record. + * Body param: A valid hostname. Must not match the record's name. */ - data?: CAARecord.Data; + content?: string; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -8110,7 +6567,7 @@ export declare namespace RecordUpdateParams { /** * Body param: Settings for the DNS record. */ - settings?: CAARecord.Settings; + settings?: CNAMERecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -8128,34 +6585,22 @@ export declare namespace RecordUpdateParams { /** * Body param: Record type. */ - type?: 'CAA'; + type?: 'CNAME'; } - export namespace CAARecord { + export namespace CNAMERecord { /** - * Components of a CAA record. + * Settings for the DNS record. */ - export interface Data { - /** - * Flags for the CAA record. - */ - flags?: number; - - /** - * Name of the property controlled by this record (e.g.: issue, issuewild, iodef). - */ - tag?: string; - + export interface Settings { /** - * Value of the record. This field's semantics depend on the chosen tag. + * If enabled, causes the CNAME record to be resolved externally and the resulting + * address records (e.g., A and AAAA) to be returned instead of the CNAME record + * itself. This setting is unavailable for proxied records, since they are always + * flattened. */ - value?: string; - } + flatten_cname?: boolean; - /** - * Settings for the DNS record. - */ - export interface Settings { /** * When enabled, only A records will be generated, and AAAA records will not be * created. This setting is intended for exceptional cases. Note that this option @@ -8174,7 +6619,7 @@ export declare namespace RecordUpdateParams { } } - export interface CERTRecord { + export interface MXRecord { /** * Path param: Identifier. */ @@ -8187,15 +6632,21 @@ export declare namespace RecordUpdateParams { comment?: string; /** - * Body param: Components of a CERT record. + * Body param: A valid mail server hostname. */ - data?: CERTRecord.Data; + content?: string; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. */ name?: string; + /** + * Body param: Required for MX, SRV and URI records; unused by other record types. + * Records with lower priorities are preferred. + */ + priority?: number; + /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -8205,7 +6656,7 @@ export declare namespace RecordUpdateParams { /** * Body param: Settings for the DNS record. */ - settings?: CERTRecord.Settings; + settings?: MXRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -8223,35 +6674,10 @@ export declare namespace RecordUpdateParams { /** * Body param: Record type. */ - type?: 'CERT'; + type?: 'MX'; } - export namespace CERTRecord { - /** - * Components of a CERT record. - */ - export interface Data { - /** - * Algorithm. - */ - algorithm?: number; - - /** - * Certificate. - */ - certificate?: string; - - /** - * Key Tag. - */ - key_tag?: number; - - /** - * Type. - */ - type?: number; - } - + export namespace MXRecord { /** * Settings for the DNS record. */ @@ -8274,7 +6700,7 @@ export declare namespace RecordUpdateParams { } } - export interface CNAMERecord { + export interface NSRecord { /** * Path param: Identifier. */ @@ -8287,7 +6713,7 @@ export declare namespace RecordUpdateParams { comment?: string; /** - * Body param: A valid hostname. Must not match the record's name. + * Body param: A valid name server host name. */ content?: string; @@ -8305,7 +6731,7 @@ export declare namespace RecordUpdateParams { /** * Body param: Settings for the DNS record. */ - settings?: CNAMERecord.Settings; + settings?: NSRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -8323,22 +6749,14 @@ export declare namespace RecordUpdateParams { /** * Body param: Record type. */ - type?: 'CNAME'; + type?: 'NS'; } - export namespace CNAMERecord { + export namespace NSRecord { /** * Settings for the DNS record. */ export interface Settings { - /** - * If enabled, causes the CNAME record to be resolved externally and the resulting - * address records (e.g., A and AAAA) to be returned instead of the CNAME record - * itself. This setting is unavailable for proxied records, since they are always - * flattened. - */ - flatten_cname?: boolean; - /** * When enabled, only A records will be generated, and AAAA records will not be * created. This setting is intended for exceptional cases. Note that this option @@ -8357,7 +6775,7 @@ export declare namespace RecordUpdateParams { } } - export interface DNSKEYRecord { + export interface DNSRecordsOpenpgpkeyRecord { /** * Path param: Identifier. */ @@ -8370,9 +6788,10 @@ export declare namespace RecordUpdateParams { comment?: string; /** - * Body param: Components of a DNSKEY record. + * Body param: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 + * Section 11.1) */ - data?: DNSKEYRecord.Data; + content?: string; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -8388,7 +6807,7 @@ export declare namespace RecordUpdateParams { /** * Body param: Settings for the DNS record. */ - settings?: DNSKEYRecord.Settings; + settings?: DNSRecordsOpenpgpkeyRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -8406,35 +6825,85 @@ export declare namespace RecordUpdateParams { /** * Body param: Record type. */ - type?: 'DNSKEY'; + type?: 'OPENPGPKEY'; } - export namespace DNSKEYRecord { + export namespace DNSRecordsOpenpgpkeyRecord { /** - * Components of a DNSKEY record. + * Settings for the DNS record. */ - export interface Data { + export interface Settings { /** - * Algorithm. + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. */ - algorithm?: number; + ipv4_only?: boolean; /** - * Flags. + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. */ - flags?: number; + ipv6_only?: boolean; + } + } + + export interface PTRRecord { + /** + * Path param: Identifier. + */ + zone_id: string; + + /** + * Body param: Comments or notes about the DNS record. This field has no effect on + * DNS responses. + */ + comment?: string; + + /** + * Body param: Domain name pointing to the address. + */ + content?: string; + + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Body param: Whether the record is receiving the performance and security + * benefits of Cloudflare. + */ + proxied?: boolean; + + /** + * Body param: Settings for the DNS record. + */ + settings?: PTRRecord.Settings; + + /** + * Body param: Custom tags for the DNS record. This field has no effect on DNS + * responses. + */ + tags?: Array; - /** - * Protocol. - */ - protocol?: number; + /** + * Body param: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means + * 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 + * for Enterprise zones. + */ + ttl?: TTLParam; - /** - * Public Key. - */ - public_key?: string; - } + /** + * Body param: Record type. + */ + type?: 'PTR'; + } + export namespace PTRRecord { /** * Settings for the DNS record. */ @@ -8457,7 +6926,7 @@ export declare namespace RecordUpdateParams { } } - export interface DSRecord { + export interface TXTRecord { /** * Path param: Identifier. */ @@ -8470,9 +6939,14 @@ export declare namespace RecordUpdateParams { comment?: string; /** - * Body param: Components of a DS record. + * Body param: Text content for the record. The content must consist of quoted + * "character strings" (RFC 1035), each with a length of up to 255 bytes. Strings + * exceeding this allowed maximum length are automatically split. + * + * Learn more at + * . */ - data?: DSRecord.Data; + content?: string; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -8488,7 +6962,7 @@ export declare namespace RecordUpdateParams { /** * Body param: Settings for the DNS record. */ - settings?: DSRecord.Settings; + settings?: TXTRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -8506,35 +6980,10 @@ export declare namespace RecordUpdateParams { /** * Body param: Record type. */ - type?: 'DS'; + type?: 'TXT'; } - export namespace DSRecord { - /** - * Components of a DS record. - */ - export interface Data { - /** - * Algorithm. - */ - algorithm?: number; - - /** - * Digest. - */ - digest?: string; - - /** - * Digest Type. - */ - digest_type?: number; - - /** - * Key Tag. - */ - key_tag?: number; - } - + export namespace TXTRecord { /** * Settings for the DNS record. */ @@ -8557,7 +7006,7 @@ export declare namespace RecordUpdateParams { } } - export interface HTTPSRecord { + export interface CAARecord { /** * Path param: Identifier. */ @@ -8570,9 +7019,9 @@ export declare namespace RecordUpdateParams { comment?: string; /** - * Body param: Components of a HTTPS record. + * Body param: Components of a CAA record. */ - data?: HTTPSRecord.Data; + data?: CAARecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -8588,7 +7037,7 @@ export declare namespace RecordUpdateParams { /** * Body param: Settings for the DNS record. */ - settings?: HTTPSRecord.Settings; + settings?: CAARecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -8606,26 +7055,26 @@ export declare namespace RecordUpdateParams { /** * Body param: Record type. */ - type?: 'HTTPS'; + type?: 'CAA'; } - export namespace HTTPSRecord { + export namespace CAARecord { /** - * Components of a HTTPS record. + * Components of a CAA record. */ export interface Data { /** - * priority. + * Flags for the CAA record. */ - priority?: number; + flags?: number; /** - * target. + * Name of the property controlled by this record (e.g.: issue, issuewild, iodef). */ - target?: string; + tag?: string; /** - * value. + * Value of the record. This field's semantics depend on the chosen tag. */ value?: string; } @@ -8652,7 +7101,7 @@ export declare namespace RecordUpdateParams { } } - export interface LOCRecord { + export interface CERTRecord { /** * Path param: Identifier. */ @@ -8665,9 +7114,9 @@ export declare namespace RecordUpdateParams { comment?: string; /** - * Body param: Components of a LOC record. + * Body param: Components of a CERT record. */ - data?: LOCRecord.Data; + data?: CERTRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -8683,7 +7132,7 @@ export declare namespace RecordUpdateParams { /** * Body param: Settings for the DNS record. */ - settings?: LOCRecord.Settings; + settings?: CERTRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -8701,73 +7150,33 @@ export declare namespace RecordUpdateParams { /** * Body param: Record type. */ - type?: 'LOC'; + type?: 'CERT'; } - export namespace LOCRecord { + export namespace CERTRecord { /** - * Components of a LOC record. + * Components of a CERT record. */ export interface Data { /** - * Altitude of location in meters. - */ - altitude?: number; - - /** - * Degrees of latitude. - */ - lat_degrees?: number; - - /** - * Latitude direction. - */ - lat_direction?: 'N' | 'S'; - - /** - * Minutes of latitude. - */ - lat_minutes?: number; - - /** - * Seconds of latitude. - */ - lat_seconds?: number; - - /** - * Degrees of longitude. - */ - long_degrees?: number; - - /** - * Longitude direction. - */ - long_direction?: 'E' | 'W'; - - /** - * Minutes of longitude. - */ - long_minutes?: number; - - /** - * Seconds of longitude. + * Algorithm. */ - long_seconds?: number; + algorithm?: number; /** - * Horizontal precision of location. + * Certificate. */ - precision_horz?: number; + certificate?: string; /** - * Vertical precision of location. + * Key Tag. */ - precision_vert?: number; + key_tag?: number; /** - * Size of location in meters. + * Type. */ - size?: number; + type?: number; } /** @@ -8792,7 +7201,7 @@ export declare namespace RecordUpdateParams { } } - export interface MXRecord { + export interface DNSKEYRecord { /** * Path param: Identifier. */ @@ -8805,21 +7214,15 @@ export declare namespace RecordUpdateParams { comment?: string; /** - * Body param: A valid mail server hostname. + * Body param: Components of a DNSKEY record. */ - content?: string; + data?: DNSKEYRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. */ name?: string; - /** - * Body param: Required for MX, SRV and URI records; unused by other record types. - * Records with lower priorities are preferred. - */ - priority?: number; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -8829,7 +7232,7 @@ export declare namespace RecordUpdateParams { /** * Body param: Settings for the DNS record. */ - settings?: MXRecord.Settings; + settings?: DNSKEYRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -8847,10 +7250,35 @@ export declare namespace RecordUpdateParams { /** * Body param: Record type. */ - type?: 'MX'; + type?: 'DNSKEY'; } - export namespace MXRecord { + export namespace DNSKEYRecord { + /** + * Components of a DNSKEY record. + */ + export interface Data { + /** + * Algorithm. + */ + algorithm?: number; + + /** + * Flags. + */ + flags?: number; + + /** + * Protocol. + */ + protocol?: number; + + /** + * Public Key. + */ + public_key?: string; + } + /** * Settings for the DNS record. */ @@ -8873,7 +7301,7 @@ export declare namespace RecordUpdateParams { } } - export interface NAPTRRecord { + export interface DSRecord { /** * Path param: Identifier. */ @@ -8886,9 +7314,9 @@ export declare namespace RecordUpdateParams { comment?: string; /** - * Body param: Components of a NAPTR record. + * Body param: Components of a DS record. */ - data?: NAPTRRecord.Data; + data?: DSRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -8904,7 +7332,7 @@ export declare namespace RecordUpdateParams { /** * Body param: Settings for the DNS record. */ - settings?: NAPTRRecord.Settings; + settings?: DSRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -8922,43 +7350,33 @@ export declare namespace RecordUpdateParams { /** * Body param: Record type. */ - type?: 'NAPTR'; + type?: 'DS'; } - export namespace NAPTRRecord { + export namespace DSRecord { /** - * Components of a NAPTR record. + * Components of a DS record. */ export interface Data { /** - * Flags. - */ - flags?: string; - - /** - * Order. - */ - order?: number; - - /** - * Preference. + * Algorithm. */ - preference?: number; + algorithm?: number; /** - * Regex. + * Digest. */ - regex?: string; + digest?: string; /** - * Replacement. + * Digest Type. */ - replacement?: string; + digest_type?: number; /** - * Service. + * Key Tag. */ - service?: string; + key_tag?: number; } /** @@ -8983,7 +7401,7 @@ export declare namespace RecordUpdateParams { } } - export interface NSRecord { + export interface HTTPSRecord { /** * Path param: Identifier. */ @@ -8996,9 +7414,9 @@ export declare namespace RecordUpdateParams { comment?: string; /** - * Body param: A valid name server host name. + * Body param: Components of a HTTPS record. */ - content?: string; + data?: HTTPSRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -9014,7 +7432,7 @@ export declare namespace RecordUpdateParams { /** * Body param: Settings for the DNS record. */ - settings?: NSRecord.Settings; + settings?: HTTPSRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -9030,12 +7448,32 @@ export declare namespace RecordUpdateParams { ttl?: TTLParam; /** - * Body param: Record type. + * Body param: Record type. + */ + type?: 'HTTPS'; + } + + export namespace HTTPSRecord { + /** + * Components of a HTTPS record. */ - type?: 'NS'; - } + export interface Data { + /** + * priority. + */ + priority?: number; + + /** + * target. + */ + target?: string; + + /** + * value. + */ + value?: string; + } - export namespace NSRecord { /** * Settings for the DNS record. */ @@ -9058,7 +7496,7 @@ export declare namespace RecordUpdateParams { } } - export interface DNSRecordsOpenpgpkeyRecord { + export interface LOCRecord { /** * Path param: Identifier. */ @@ -9071,10 +7509,9 @@ export declare namespace RecordUpdateParams { comment?: string; /** - * Body param: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 - * Section 11.1) + * Body param: Components of a LOC record. */ - content?: string; + data?: LOCRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -9090,7 +7527,7 @@ export declare namespace RecordUpdateParams { /** * Body param: Settings for the DNS record. */ - settings?: DNSRecordsOpenpgpkeyRecord.Settings; + settings?: LOCRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -9108,10 +7545,75 @@ export declare namespace RecordUpdateParams { /** * Body param: Record type. */ - type?: 'OPENPGPKEY'; + type?: 'LOC'; } - export namespace DNSRecordsOpenpgpkeyRecord { + export namespace LOCRecord { + /** + * Components of a LOC record. + */ + export interface Data { + /** + * Altitude of location in meters. + */ + altitude?: number; + + /** + * Degrees of latitude. + */ + lat_degrees?: number; + + /** + * Latitude direction. + */ + lat_direction?: 'N' | 'S'; + + /** + * Minutes of latitude. + */ + lat_minutes?: number; + + /** + * Seconds of latitude. + */ + lat_seconds?: number; + + /** + * Degrees of longitude. + */ + long_degrees?: number; + + /** + * Longitude direction. + */ + long_direction?: 'E' | 'W'; + + /** + * Minutes of longitude. + */ + long_minutes?: number; + + /** + * Seconds of longitude. + */ + long_seconds?: number; + + /** + * Horizontal precision of location. + */ + precision_horz?: number; + + /** + * Vertical precision of location. + */ + precision_vert?: number; + + /** + * Size of location in meters. + */ + size?: number; + } + /** * Settings for the DNS record. */ @@ -9134,7 +7636,7 @@ export declare namespace RecordUpdateParams { } } - export interface PTRRecord { + export interface NAPTRRecord { /** * Path param: Identifier. */ @@ -9147,9 +7649,9 @@ export declare namespace RecordUpdateParams { comment?: string; /** - * Body param: Domain name pointing to the address. + * Body param: Components of a NAPTR record. */ - content?: string; + data?: NAPTRRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -9165,7 +7667,7 @@ export declare namespace RecordUpdateParams { /** * Body param: Settings for the DNS record. */ - settings?: PTRRecord.Settings; + settings?: NAPTRRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -9183,10 +7685,45 @@ export declare namespace RecordUpdateParams { /** * Body param: Record type. */ - type?: 'PTR'; + type?: 'NAPTR'; } - export namespace PTRRecord { + export namespace NAPTRRecord { + /** + * Components of a NAPTR record. + */ + export interface Data { + /** + * Flags. + */ + flags?: string; + + /** + * Order. + */ + order?: number; + + /** + * Preference. + */ + preference?: number; + + /** + * Regex. + */ + regex?: string; + + /** + * Replacement. + */ + replacement?: string; + + /** + * Service. + */ + service?: string; + } + /** * Settings for the DNS record. */ @@ -9610,117 +8147,12 @@ export declare namespace RecordUpdateParams { * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. */ - comment?: string; - - /** - * Body param: Components of a TLSA record. - */ - data?: TLSARecord.Data; - - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - - /** - * Body param: Whether the record is receiving the performance and security - * benefits of Cloudflare. - */ - proxied?: boolean; - - /** - * Body param: Settings for the DNS record. - */ - settings?: TLSARecord.Settings; - - /** - * Body param: Custom tags for the DNS record. This field has no effect on DNS - * responses. - */ - tags?: Array; - - /** - * Body param: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means - * 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 - * for Enterprise zones. - */ - ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'TLSA'; - } - - export namespace TLSARecord { - /** - * Components of a TLSA record. - */ - export interface Data { - /** - * certificate. - */ - certificate?: string; - - /** - * Matching Type. - */ - matching_type?: number; - - /** - * Selector. - */ - selector?: number; - - /** - * Usage. - */ - usage?: number; - } - - /** - * Settings for the DNS record. - */ - export interface Settings { - /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv4_only?: boolean; - - /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv6_only?: boolean; - } - } - - export interface TXTRecord { - /** - * Path param: Identifier. - */ - zone_id: string; - - /** - * Body param: Comments or notes about the DNS record. This field has no effect on - * DNS responses. - */ - comment?: string; - - /** - * Body param: Text content for the record. The content must consist of quoted - * "character strings" (RFC 1035), each with a length of up to 255 bytes. Strings - * exceeding this allowed maximum length are automatically split. - * - * Learn more at - * . + comment?: string; + + /** + * Body param: Components of a TLSA record. */ - content?: string; + data?: TLSARecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -9736,7 +8168,7 @@ export declare namespace RecordUpdateParams { /** * Body param: Settings for the DNS record. */ - settings?: TXTRecord.Settings; + settings?: TLSARecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -9754,10 +8186,35 @@ export declare namespace RecordUpdateParams { /** * Body param: Record type. */ - type?: 'TXT'; + type?: 'TLSA'; } - export namespace TXTRecord { + export namespace TLSARecord { + /** + * Components of a TLSA record. + */ + export interface Data { + /** + * certificate. + */ + certificate?: string; + + /** + * Matching Type. + */ + matching_type?: number; + + /** + * Selector. + */ + selector?: number; + + /** + * Usage. + */ + usage?: number; + } + /** * Settings for the DNS record. */ @@ -10118,7 +8575,29 @@ export interface RecordBatchParams { /** * Body param: */ - posts?: Array; + posts?: Array< + | ARecordParam + | AAAARecordParam + | CNAMERecordParam + | MXRecordParam + | NSRecordParam + | RecordBatchParams.DNSRecordsOpenpgpkeyRecord + | PTRRecordParam + | TXTRecordParam + | CAARecordParam + | CERTRecordParam + | DNSKEYRecordParam + | DSRecordParam + | HTTPSRecordParam + | LOCRecordParam + | NAPTRRecordParam + | SMIMEARecordParam + | SRVRecordParam + | SSHFPRecordParam + | SVCBRecordParam + | TLSARecordParam + | URIRecordParam + >; /** * Body param: @@ -10133,29 +8612,98 @@ export namespace RecordBatchParams { */ id: string; } + + export interface DNSRecordsOpenpgpkeyRecord { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) + */ + content?: string; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: DNSRecordsOpenpgpkeyRecord.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: RecordsAPI.TTLParam; + + /** + * Record type. + */ + type?: 'OPENPGPKEY'; + } + + export namespace DNSRecordsOpenpgpkeyRecord { + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; + + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } + } } export type RecordEditParams = | RecordEditParams.ARecord | RecordEditParams.AAAARecord + | RecordEditParams.CNAMERecord + | RecordEditParams.MXRecord + | RecordEditParams.NSRecord + | RecordEditParams.DNSRecordsOpenpgpkeyRecord + | RecordEditParams.PTRRecord + | RecordEditParams.TXTRecord | RecordEditParams.CAARecord | RecordEditParams.CERTRecord - | RecordEditParams.CNAMERecord | RecordEditParams.DNSKEYRecord | RecordEditParams.DSRecord | RecordEditParams.HTTPSRecord | RecordEditParams.LOCRecord - | RecordEditParams.MXRecord | RecordEditParams.NAPTRRecord - | RecordEditParams.NSRecord - | RecordEditParams.DNSRecordsOpenpgpkeyRecord - | RecordEditParams.PTRRecord | RecordEditParams.SMIMEARecord | RecordEditParams.SRVRecord | RecordEditParams.SSHFPRecord | RecordEditParams.SVCBRecord | RecordEditParams.TLSARecord - | RecordEditParams.TXTRecord | RecordEditParams.URIRecord; export declare namespace RecordEditParams { @@ -10309,7 +8857,7 @@ export declare namespace RecordEditParams { } } - export interface CAARecord { + export interface CNAMERecord { /** * Path param: Identifier. */ @@ -10322,9 +8870,9 @@ export declare namespace RecordEditParams { comment?: string; /** - * Body param: Components of a CAA record. + * Body param: A valid hostname. Must not match the record's name. */ - data?: CAARecord.Data; + content?: string; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -10340,7 +8888,7 @@ export declare namespace RecordEditParams { /** * Body param: Settings for the DNS record. */ - settings?: CAARecord.Settings; + settings?: CNAMERecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -10358,30 +8906,99 @@ export declare namespace RecordEditParams { /** * Body param: Record type. */ - type?: 'CAA'; + type?: 'CNAME'; } - export namespace CAARecord { + export namespace CNAMERecord { /** - * Components of a CAA record. + * Settings for the DNS record. */ - export interface Data { + export interface Settings { /** - * Flags for the CAA record. + * If enabled, causes the CNAME record to be resolved externally and the resulting + * address records (e.g., A and AAAA) to be returned instead of the CNAME record + * itself. This setting is unavailable for proxied records, since they are always + * flattened. */ - flags?: number; + flatten_cname?: boolean; /** - * Name of the property controlled by this record (e.g.: issue, issuewild, iodef). + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. */ - tag?: string; + ipv4_only?: boolean; /** - * Value of the record. This field's semantics depend on the chosen tag. + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. */ - value?: string; + ipv6_only?: boolean; } + } + + export interface MXRecord { + /** + * Path param: Identifier. + */ + zone_id: string; + + /** + * Body param: Comments or notes about the DNS record. This field has no effect on + * DNS responses. + */ + comment?: string; + + /** + * Body param: A valid mail server hostname. + */ + content?: string; + + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Body param: Required for MX, SRV and URI records; unused by other record types. + * Records with lower priorities are preferred. + */ + priority?: number; + + /** + * Body param: Whether the record is receiving the performance and security + * benefits of Cloudflare. + */ + proxied?: boolean; + + /** + * Body param: Settings for the DNS record. + */ + settings?: MXRecord.Settings; + + /** + * Body param: Custom tags for the DNS record. This field has no effect on DNS + * responses. + */ + tags?: Array; + + /** + * Body param: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means + * 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 + * for Enterprise zones. + */ + ttl?: TTLParam; + /** + * Body param: Record type. + */ + type?: 'MX'; + } + + export namespace MXRecord { /** * Settings for the DNS record. */ @@ -10404,7 +9021,7 @@ export declare namespace RecordEditParams { } } - export interface CERTRecord { + export interface NSRecord { /** * Path param: Identifier. */ @@ -10417,9 +9034,9 @@ export declare namespace RecordEditParams { comment?: string; /** - * Body param: Components of a CERT record. + * Body param: A valid name server host name. */ - data?: CERTRecord.Data; + content?: string; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -10435,7 +9052,7 @@ export declare namespace RecordEditParams { /** * Body param: Settings for the DNS record. */ - settings?: CERTRecord.Settings; + settings?: NSRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -10453,35 +9070,10 @@ export declare namespace RecordEditParams { /** * Body param: Record type. */ - type?: 'CERT'; + type?: 'NS'; } - export namespace CERTRecord { - /** - * Components of a CERT record. - */ - export interface Data { - /** - * Algorithm. - */ - algorithm?: number; - - /** - * Certificate. - */ - certificate?: string; - - /** - * Key Tag. - */ - key_tag?: number; - - /** - * Type. - */ - type?: number; - } - + export namespace NSRecord { /** * Settings for the DNS record. */ @@ -10504,7 +9096,7 @@ export declare namespace RecordEditParams { } } - export interface CNAMERecord { + export interface DNSRecordsOpenpgpkeyRecord { /** * Path param: Identifier. */ @@ -10517,7 +9109,8 @@ export declare namespace RecordEditParams { comment?: string; /** - * Body param: A valid hostname. Must not match the record's name. + * Body param: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 + * Section 11.1) */ content?: string; @@ -10535,7 +9128,7 @@ export declare namespace RecordEditParams { /** * Body param: Settings for the DNS record. */ - settings?: CNAMERecord.Settings; + settings?: DNSRecordsOpenpgpkeyRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -10553,22 +9146,14 @@ export declare namespace RecordEditParams { /** * Body param: Record type. */ - type?: 'CNAME'; + type?: 'OPENPGPKEY'; } - export namespace CNAMERecord { + export namespace DNSRecordsOpenpgpkeyRecord { /** * Settings for the DNS record. */ export interface Settings { - /** - * If enabled, causes the CNAME record to be resolved externally and the resulting - * address records (e.g., A and AAAA) to be returned instead of the CNAME record - * itself. This setting is unavailable for proxied records, since they are always - * flattened. - */ - flatten_cname?: boolean; - /** * When enabled, only A records will be generated, and AAAA records will not be * created. This setting is intended for exceptional cases. Note that this option @@ -10587,7 +9172,7 @@ export declare namespace RecordEditParams { } } - export interface DNSKEYRecord { + export interface PTRRecord { /** * Path param: Identifier. */ @@ -10600,9 +9185,9 @@ export declare namespace RecordEditParams { comment?: string; /** - * Body param: Components of a DNSKEY record. + * Body param: Domain name pointing to the address. */ - data?: DNSKEYRecord.Data; + content?: string; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -10618,7 +9203,7 @@ export declare namespace RecordEditParams { /** * Body param: Settings for the DNS record. */ - settings?: DNSKEYRecord.Settings; + settings?: PTRRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -10636,35 +9221,10 @@ export declare namespace RecordEditParams { /** * Body param: Record type. */ - type?: 'DNSKEY'; + type?: 'PTR'; } - export namespace DNSKEYRecord { - /** - * Components of a DNSKEY record. - */ - export interface Data { - /** - * Algorithm. - */ - algorithm?: number; - - /** - * Flags. - */ - flags?: number; - - /** - * Protocol. - */ - protocol?: number; - - /** - * Public Key. - */ - public_key?: string; - } - + export namespace PTRRecord { /** * Settings for the DNS record. */ @@ -10687,7 +9247,7 @@ export declare namespace RecordEditParams { } } - export interface DSRecord { + export interface TXTRecord { /** * Path param: Identifier. */ @@ -10700,9 +9260,14 @@ export declare namespace RecordEditParams { comment?: string; /** - * Body param: Components of a DS record. + * Body param: Text content for the record. The content must consist of quoted + * "character strings" (RFC 1035), each with a length of up to 255 bytes. Strings + * exceeding this allowed maximum length are automatically split. + * + * Learn more at + * . */ - data?: DSRecord.Data; + content?: string; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -10718,7 +9283,7 @@ export declare namespace RecordEditParams { /** * Body param: Settings for the DNS record. */ - settings?: DSRecord.Settings; + settings?: TXTRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -10736,35 +9301,10 @@ export declare namespace RecordEditParams { /** * Body param: Record type. */ - type?: 'DS'; + type?: 'TXT'; } - export namespace DSRecord { - /** - * Components of a DS record. - */ - export interface Data { - /** - * Algorithm. - */ - algorithm?: number; - - /** - * Digest. - */ - digest?: string; - - /** - * Digest Type. - */ - digest_type?: number; - - /** - * Key Tag. - */ - key_tag?: number; - } - + export namespace TXTRecord { /** * Settings for the DNS record. */ @@ -10787,7 +9327,7 @@ export declare namespace RecordEditParams { } } - export interface HTTPSRecord { + export interface CAARecord { /** * Path param: Identifier. */ @@ -10800,9 +9340,9 @@ export declare namespace RecordEditParams { comment?: string; /** - * Body param: Components of a HTTPS record. + * Body param: Components of a CAA record. */ - data?: HTTPSRecord.Data; + data?: CAARecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -10818,7 +9358,7 @@ export declare namespace RecordEditParams { /** * Body param: Settings for the DNS record. */ - settings?: HTTPSRecord.Settings; + settings?: CAARecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -10836,26 +9376,26 @@ export declare namespace RecordEditParams { /** * Body param: Record type. */ - type?: 'HTTPS'; + type?: 'CAA'; } - export namespace HTTPSRecord { + export namespace CAARecord { /** - * Components of a HTTPS record. + * Components of a CAA record. */ export interface Data { /** - * priority. + * Flags for the CAA record. */ - priority?: number; + flags?: number; /** - * target. + * Name of the property controlled by this record (e.g.: issue, issuewild, iodef). */ - target?: string; + tag?: string; /** - * value. + * Value of the record. This field's semantics depend on the chosen tag. */ value?: string; } @@ -10882,7 +9422,7 @@ export declare namespace RecordEditParams { } } - export interface LOCRecord { + export interface CERTRecord { /** * Path param: Identifier. */ @@ -10895,9 +9435,9 @@ export declare namespace RecordEditParams { comment?: string; /** - * Body param: Components of a LOC record. + * Body param: Components of a CERT record. */ - data?: LOCRecord.Data; + data?: CERTRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -10913,7 +9453,7 @@ export declare namespace RecordEditParams { /** * Body param: Settings for the DNS record. */ - settings?: LOCRecord.Settings; + settings?: CERTRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -10931,73 +9471,33 @@ export declare namespace RecordEditParams { /** * Body param: Record type. */ - type?: 'LOC'; + type?: 'CERT'; } - export namespace LOCRecord { + export namespace CERTRecord { /** - * Components of a LOC record. + * Components of a CERT record. */ export interface Data { /** - * Altitude of location in meters. - */ - altitude?: number; - - /** - * Degrees of latitude. - */ - lat_degrees?: number; - - /** - * Latitude direction. - */ - lat_direction?: 'N' | 'S'; - - /** - * Minutes of latitude. - */ - lat_minutes?: number; - - /** - * Seconds of latitude. - */ - lat_seconds?: number; - - /** - * Degrees of longitude. - */ - long_degrees?: number; - - /** - * Longitude direction. - */ - long_direction?: 'E' | 'W'; - - /** - * Minutes of longitude. - */ - long_minutes?: number; - - /** - * Seconds of longitude. + * Algorithm. */ - long_seconds?: number; + algorithm?: number; /** - * Horizontal precision of location. + * Certificate. */ - precision_horz?: number; + certificate?: string; /** - * Vertical precision of location. + * Key Tag. */ - precision_vert?: number; + key_tag?: number; /** - * Size of location in meters. + * Type. */ - size?: number; + type?: number; } /** @@ -11022,7 +9522,7 @@ export declare namespace RecordEditParams { } } - export interface MXRecord { + export interface DNSKEYRecord { /** * Path param: Identifier. */ @@ -11035,21 +9535,15 @@ export declare namespace RecordEditParams { comment?: string; /** - * Body param: A valid mail server hostname. + * Body param: Components of a DNSKEY record. */ - content?: string; + data?: DNSKEYRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. */ name?: string; - /** - * Body param: Required for MX, SRV and URI records; unused by other record types. - * Records with lower priorities are preferred. - */ - priority?: number; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -11059,7 +9553,7 @@ export declare namespace RecordEditParams { /** * Body param: Settings for the DNS record. */ - settings?: MXRecord.Settings; + settings?: DNSKEYRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -11077,10 +9571,35 @@ export declare namespace RecordEditParams { /** * Body param: Record type. */ - type?: 'MX'; + type?: 'DNSKEY'; } - export namespace MXRecord { + export namespace DNSKEYRecord { + /** + * Components of a DNSKEY record. + */ + export interface Data { + /** + * Algorithm. + */ + algorithm?: number; + + /** + * Flags. + */ + flags?: number; + + /** + * Protocol. + */ + protocol?: number; + + /** + * Public Key. + */ + public_key?: string; + } + /** * Settings for the DNS record. */ @@ -11103,7 +9622,7 @@ export declare namespace RecordEditParams { } } - export interface NAPTRRecord { + export interface DSRecord { /** * Path param: Identifier. */ @@ -11116,9 +9635,9 @@ export declare namespace RecordEditParams { comment?: string; /** - * Body param: Components of a NAPTR record. + * Body param: Components of a DS record. */ - data?: NAPTRRecord.Data; + data?: DSRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -11134,7 +9653,7 @@ export declare namespace RecordEditParams { /** * Body param: Settings for the DNS record. */ - settings?: NAPTRRecord.Settings; + settings?: DSRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -11152,43 +9671,33 @@ export declare namespace RecordEditParams { /** * Body param: Record type. */ - type?: 'NAPTR'; + type?: 'DS'; } - export namespace NAPTRRecord { + export namespace DSRecord { /** - * Components of a NAPTR record. - */ - export interface Data { - /** - * Flags. - */ - flags?: string; - - /** - * Order. - */ - order?: number; - + * Components of a DS record. + */ + export interface Data { /** - * Preference. + * Algorithm. */ - preference?: number; + algorithm?: number; /** - * Regex. + * Digest. */ - regex?: string; + digest?: string; /** - * Replacement. + * Digest Type. */ - replacement?: string; + digest_type?: number; /** - * Service. + * Key Tag. */ - service?: string; + key_tag?: number; } /** @@ -11213,7 +9722,7 @@ export declare namespace RecordEditParams { } } - export interface NSRecord { + export interface HTTPSRecord { /** * Path param: Identifier. */ @@ -11226,9 +9735,9 @@ export declare namespace RecordEditParams { comment?: string; /** - * Body param: A valid name server host name. + * Body param: Components of a HTTPS record. */ - content?: string; + data?: HTTPSRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -11244,7 +9753,7 @@ export declare namespace RecordEditParams { /** * Body param: Settings for the DNS record. */ - settings?: NSRecord.Settings; + settings?: HTTPSRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -11262,10 +9771,30 @@ export declare namespace RecordEditParams { /** * Body param: Record type. */ - type?: 'NS'; + type?: 'HTTPS'; } - export namespace NSRecord { + export namespace HTTPSRecord { + /** + * Components of a HTTPS record. + */ + export interface Data { + /** + * priority. + */ + priority?: number; + + /** + * target. + */ + target?: string; + + /** + * value. + */ + value?: string; + } + /** * Settings for the DNS record. */ @@ -11288,7 +9817,7 @@ export declare namespace RecordEditParams { } } - export interface DNSRecordsOpenpgpkeyRecord { + export interface LOCRecord { /** * Path param: Identifier. */ @@ -11301,10 +9830,9 @@ export declare namespace RecordEditParams { comment?: string; /** - * Body param: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 - * Section 11.1) + * Body param: Components of a LOC record. */ - content?: string; + data?: LOCRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -11320,7 +9848,7 @@ export declare namespace RecordEditParams { /** * Body param: Settings for the DNS record. */ - settings?: DNSRecordsOpenpgpkeyRecord.Settings; + settings?: LOCRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -11338,10 +9866,75 @@ export declare namespace RecordEditParams { /** * Body param: Record type. */ - type?: 'OPENPGPKEY'; + type?: 'LOC'; } - export namespace DNSRecordsOpenpgpkeyRecord { + export namespace LOCRecord { + /** + * Components of a LOC record. + */ + export interface Data { + /** + * Altitude of location in meters. + */ + altitude?: number; + + /** + * Degrees of latitude. + */ + lat_degrees?: number; + + /** + * Latitude direction. + */ + lat_direction?: 'N' | 'S'; + + /** + * Minutes of latitude. + */ + lat_minutes?: number; + + /** + * Seconds of latitude. + */ + lat_seconds?: number; + + /** + * Degrees of longitude. + */ + long_degrees?: number; + + /** + * Longitude direction. + */ + long_direction?: 'E' | 'W'; + + /** + * Minutes of longitude. + */ + long_minutes?: number; + + /** + * Seconds of longitude. + */ + long_seconds?: number; + + /** + * Horizontal precision of location. + */ + precision_horz?: number; + + /** + * Vertical precision of location. + */ + precision_vert?: number; + + /** + * Size of location in meters. + */ + size?: number; + } + /** * Settings for the DNS record. */ @@ -11364,7 +9957,7 @@ export declare namespace RecordEditParams { } } - export interface PTRRecord { + export interface NAPTRRecord { /** * Path param: Identifier. */ @@ -11377,9 +9970,9 @@ export declare namespace RecordEditParams { comment?: string; /** - * Body param: Domain name pointing to the address. + * Body param: Components of a NAPTR record. */ - content?: string; + data?: NAPTRRecord.Data; /** * Body param: DNS record name (or @ for the zone apex) in Punycode. @@ -11395,7 +9988,7 @@ export declare namespace RecordEditParams { /** * Body param: Settings for the DNS record. */ - settings?: PTRRecord.Settings; + settings?: NAPTRRecord.Settings; /** * Body param: Custom tags for the DNS record. This field has no effect on DNS @@ -11413,10 +10006,45 @@ export declare namespace RecordEditParams { /** * Body param: Record type. */ - type?: 'PTR'; + type?: 'NAPTR'; } - export namespace PTRRecord { + export namespace NAPTRRecord { + /** + * Components of a NAPTR record. + */ + export interface Data { + /** + * Flags. + */ + flags?: string; + + /** + * Order. + */ + order?: number; + + /** + * Preference. + */ + preference?: number; + + /** + * Regex. + */ + regex?: string; + + /** + * Replacement. + */ + replacement?: string; + + /** + * Service. + */ + service?: string; + } + /** * Settings for the DNS record. */ @@ -11930,86 +10558,6 @@ export declare namespace RecordEditParams { } } - export interface TXTRecord { - /** - * Path param: Identifier. - */ - zone_id: string; - - /** - * Body param: Comments or notes about the DNS record. This field has no effect on - * DNS responses. - */ - comment?: string; - - /** - * Body param: Text content for the record. The content must consist of quoted - * "character strings" (RFC 1035), each with a length of up to 255 bytes. Strings - * exceeding this allowed maximum length are automatically split. - * - * Learn more at - * . - */ - content?: string; - - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - - /** - * Body param: Whether the record is receiving the performance and security - * benefits of Cloudflare. - */ - proxied?: boolean; - - /** - * Body param: Settings for the DNS record. - */ - settings?: TXTRecord.Settings; - - /** - * Body param: Custom tags for the DNS record. This field has no effect on DNS - * responses. - */ - tags?: Array; - - /** - * Body param: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means - * 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 - * for Enterprise zones. - */ - ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'TXT'; - } - - export namespace TXTRecord { - /** - * Settings for the DNS record. - */ - export interface Settings { - /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv4_only?: boolean; - - /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv6_only?: boolean; - } - } - export interface URIRecord { /** * Path param: Identifier. @@ -12175,7 +10723,6 @@ export declare namespace Records { type NAPTRRecord as NAPTRRecord, type NSRecord as NSRecord, type PTRRecord as PTRRecord, - type Record as Record, type RecordResponse as RecordResponse, type RecordTags as RecordTags, type SMIMEARecord as SMIMEARecord, diff --git a/tests/api-resources/dns/records.test.ts b/tests/api-resources/dns/records.test.ts index 3fb585e3c1..b6aa92d222 100644 --- a/tests/api-resources/dns/records.test.ts +++ b/tests/api-resources/dns/records.test.ts @@ -163,7 +163,6 @@ describe('resource records', () => { tags: ['owner:dns-team'], ttl: 3600, type: 'A', - id: '023e105f4ecef8ad9ca31a8372d0c353', }, ], posts: [ @@ -188,7 +187,6 @@ describe('resource records', () => { tags: ['owner:dns-team'], ttl: 3600, type: 'A', - id: '023e105f4ecef8ad9ca31a8372d0c353', }, ], }); From 5ef3f17a5e8dbb1e3ae229dafbb8c15b17c3d852 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 16:03:55 +0000 Subject: [PATCH 223/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d0ca9735d1..b6f826ec2a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1fe23c2b96b28c275d9fa9aa84c80204d1c133b05d8bd06576490b744717bebd.yml -openapi_spec_hash: f1f25f232107e95c1df69870abfc0cc9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2cb51b1e41020e160153c43ae45fa52dee1cb2efd0bb5a9077da3e38e050669c.yml +openapi_spec_hash: d682891fa540f297aec4cead642d222f config_hash: 259b5eeae0358ea7d7756b294847f140 From 32ecca25fc0d891bde08e0e6fec8082a0292b014 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 16:42:11 +0000 Subject: [PATCH 224/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b6f826ec2a..c1376052ae 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2cb51b1e41020e160153c43ae45fa52dee1cb2efd0bb5a9077da3e38e050669c.yml -openapi_spec_hash: d682891fa540f297aec4cead642d222f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a02aaf04c62e65f3feaacd482bcd951cbcd0bbbe11e0fab9abaa5fa683bb6dd0.yml +openapi_spec_hash: 5637ab0e22b757b99c814c842058df70 config_hash: 259b5eeae0358ea7d7756b294847f140 From 1db8ab87a1bb4cce55102a49b19278fcaf905fcd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 16:45:10 +0000 Subject: [PATCH 225/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c1376052ae..d09a54dcf3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a02aaf04c62e65f3feaacd482bcd951cbcd0bbbe11e0fab9abaa5fa683bb6dd0.yml -openapi_spec_hash: 5637ab0e22b757b99c814c842058df70 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8511e8b503ecf0f91a028804df5b41a1fa306e8ab32d4452a681376031bb9780.yml +openapi_spec_hash: d2ede9544eab0205252d823eb29ff3ad config_hash: 259b5eeae0358ea7d7756b294847f140 From 3ea4e723a5af87626b92e196e21d26513ea04b09 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 16:53:20 +0000 Subject: [PATCH 226/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d09a54dcf3..e92d939e51 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8511e8b503ecf0f91a028804df5b41a1fa306e8ab32d4452a681376031bb9780.yml -openapi_spec_hash: d2ede9544eab0205252d823eb29ff3ad +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ae50bf28631d5c34300db1d57d3aa8044d612fc595be1af0ce040a8ddb58a016.yml +openapi_spec_hash: ae2764e369d0abb6c093c193f13c3351 config_hash: 259b5eeae0358ea7d7756b294847f140 From 1b1367d39a826cd7ea0eeef8c88817b717ef843a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 17:02:59 +0000 Subject: [PATCH 227/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e92d939e51..ced585fb22 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ae50bf28631d5c34300db1d57d3aa8044d612fc595be1af0ce040a8ddb58a016.yml -openapi_spec_hash: ae2764e369d0abb6c093c193f13c3351 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e5e91f67a707573de78ed19809a76d438eda07bd7535056170b5146455838bf.yml +openapi_spec_hash: 1ad818f371a491c5e8173e1aa5a48e5f config_hash: 259b5eeae0358ea7d7756b294847f140 From e11179e79ddfd63a8162b33bb132ea86e151298f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 17:13:02 +0000 Subject: [PATCH 228/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ced585fb22..35160a9aaa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e5e91f67a707573de78ed19809a76d438eda07bd7535056170b5146455838bf.yml -openapi_spec_hash: 1ad818f371a491c5e8173e1aa5a48e5f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cca2414c437122ddb39cc4aaf79bf46bd64bf6b4d54bf9aadfa97d716faff774.yml +openapi_spec_hash: a39c0bd121326b21c3f556eaf7bae0dc config_hash: 259b5eeae0358ea7d7756b294847f140 From ba4cc1e5378e87cc17be78c823607018fd7c8f97 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 17:25:07 +0000 Subject: [PATCH 229/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 35160a9aaa..e7eea11cd7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cca2414c437122ddb39cc4aaf79bf46bd64bf6b4d54bf9aadfa97d716faff774.yml -openapi_spec_hash: a39c0bd121326b21c3f556eaf7bae0dc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b48b7f5622a2e14f128e999284bbc982f1d6f11bb6cb3477db32565201a4fa7c.yml +openapi_spec_hash: fe3b03b865587dde7e38683ea5c0344f config_hash: 259b5eeae0358ea7d7756b294847f140 From dee9c3bfc6dbc4fd11e1785f43cb8195d6587a13 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 17:30:29 +0000 Subject: [PATCH 230/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e7eea11cd7..01a9a4b51c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b48b7f5622a2e14f128e999284bbc982f1d6f11bb6cb3477db32565201a4fa7c.yml -openapi_spec_hash: fe3b03b865587dde7e38683ea5c0344f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-08c21235063eaa8e97346b04903bccfbd5bb629428dbf38abd6ebdbc88ece736.yml +openapi_spec_hash: 77086831bc296e997f4a3abe44f57032 config_hash: 259b5eeae0358ea7d7756b294847f140 From 19389d706f2d9230b81992211546462a860b54e5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 17:52:07 +0000 Subject: [PATCH 231/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 01a9a4b51c..5af06acf2a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-08c21235063eaa8e97346b04903bccfbd5bb629428dbf38abd6ebdbc88ece736.yml -openapi_spec_hash: 77086831bc296e997f4a3abe44f57032 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3e5b92d4db537eef4f185da99bbb02372987a17a7889cd7bbb0ae0717c017a7d.yml +openapi_spec_hash: 2bd6d7c453b2a5d3578bbe5010b4f319 config_hash: 259b5eeae0358ea7d7756b294847f140 From 1562d2ed564c1242c8af94f23c54d650bd983262 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 17:54:27 +0000 Subject: [PATCH 232/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5af06acf2a..309fdd8581 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3e5b92d4db537eef4f185da99bbb02372987a17a7889cd7bbb0ae0717c017a7d.yml -openapi_spec_hash: 2bd6d7c453b2a5d3578bbe5010b4f319 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3426fc7360182489265ebe0773cd501aed3bcf6554d214986501f02eaad37272.yml +openapi_spec_hash: c62f486e7cbb672b636d615b0cd563c8 config_hash: 259b5eeae0358ea7d7756b294847f140 From 665ef5a64c8c346b400eadc6174f85702ae1dc15 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 18:07:55 +0000 Subject: [PATCH 233/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 309fdd8581..45cca6aea6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3426fc7360182489265ebe0773cd501aed3bcf6554d214986501f02eaad37272.yml -openapi_spec_hash: c62f486e7cbb672b636d615b0cd563c8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-38137fd04b869e5f6af7111acbdaf6ed1258cd912a6bcc3bde6b331831de6ef4.yml +openapi_spec_hash: 5adbd62afe541f4fb3f91ddc4c6f1797 config_hash: 259b5eeae0358ea7d7756b294847f140 From 7066108f8ef1dcef666e568095f0ee3ad3bfbf7b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 18:10:25 +0000 Subject: [PATCH 234/366] feat(api): api update --- .stats.yml | 4 ++-- .../email-security/investigate/investigate.ts | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 45cca6aea6..341b798349 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-38137fd04b869e5f6af7111acbdaf6ed1258cd912a6bcc3bde6b331831de6ef4.yml -openapi_spec_hash: 5adbd62afe541f4fb3f91ddc4c6f1797 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4b9c795ad1778404bcdd647198e7e43e952299ab167c30b9913c100209392f31.yml +openapi_spec_hash: d06e58f4d8dcc7879fa4bf5f760fb773 config_hash: 259b5eeae0358ea7d7756b294847f140 diff --git a/src/resources/email-security/investigate/investigate.ts b/src/resources/email-security/investigate/investigate.ts index d75c45dac0..e25e01d2d3 100644 --- a/src/resources/email-security/investigate/investigate.ts +++ b/src/resources/email-security/investigate/investigate.ts @@ -113,6 +113,8 @@ export interface InvestigateListResponse { */ postfix_id: string; + properties: InvestigateListResponse.Properties; + ts: string; alert_id?: string | null; @@ -166,6 +168,10 @@ export interface InvestigateListResponse { } export namespace InvestigateListResponse { + export interface Properties { + whitelisted_pattern_type?: string; + } + export interface Validation { comment?: string | null; @@ -195,6 +201,8 @@ export interface InvestigateGetResponse { */ postfix_id: string; + properties: InvestigateGetResponse.Properties; + ts: string; alert_id?: string | null; @@ -248,6 +256,10 @@ export interface InvestigateGetResponse { } export namespace InvestigateGetResponse { + export interface Properties { + whitelisted_pattern_type?: string; + } + export interface Validation { comment?: string | null; From 494c5d1f8b950874309c0118f464e646bddf0ed0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 18:42:05 +0000 Subject: [PATCH 235/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 341b798349..4d4f24c244 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4b9c795ad1778404bcdd647198e7e43e952299ab167c30b9913c100209392f31.yml -openapi_spec_hash: d06e58f4d8dcc7879fa4bf5f760fb773 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-eb54f284368aca48fe94b9ccf6d603dad1edb5b10e7090d4f81d6b3b5e77153e.yml +openapi_spec_hash: e5a432563f8c896292a909d25d9f5df5 config_hash: 259b5eeae0358ea7d7756b294847f140 From d83870b46cbced76503b1d61f549f4562022e3e8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 18:44:43 +0000 Subject: [PATCH 236/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4d4f24c244..d42ad00cbb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-eb54f284368aca48fe94b9ccf6d603dad1edb5b10e7090d4f81d6b3b5e77153e.yml -openapi_spec_hash: e5a432563f8c896292a909d25d9f5df5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6ffb5d14b12a6f49bc4fb06b47f7aa68686068b9a92f358040980b5da35e31bf.yml +openapi_spec_hash: 09e16e9f58c52882b75b6cca8baf1bde config_hash: 259b5eeae0358ea7d7756b294847f140 From 5e19ba487c86a07d7b09092ad3bc191f86dd299e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 19:24:03 +0000 Subject: [PATCH 237/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/dns-firewall/analytics/reports/bytimes.ts | 2 +- src/resources/dns-firewall/analytics/reports/reports.ts | 2 +- src/resources/dns/analytics/reports/bytimes.ts | 2 +- src/resources/dns/analytics/reports/reports.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index d42ad00cbb..c0cac2c6c3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6ffb5d14b12a6f49bc4fb06b47f7aa68686068b9a92f358040980b5da35e31bf.yml -openapi_spec_hash: 09e16e9f58c52882b75b6cca8baf1bde +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2d0464c247cb2636e21a787513caea6eed748b52287d2c9a93b4d8b54d1c62f6.yml +openapi_spec_hash: cedbc7c7169bbf86a6bc4ce48cd8f193 config_hash: 259b5eeae0358ea7d7756b294847f140 diff --git a/src/resources/dns-firewall/analytics/reports/bytimes.ts b/src/resources/dns-firewall/analytics/reports/bytimes.ts index 4ebc532985..6ea816171e 100644 --- a/src/resources/dns-firewall/analytics/reports/bytimes.ts +++ b/src/resources/dns-firewall/analytics/reports/bytimes.ts @@ -38,7 +38,7 @@ export class Bytimes extends APIResource { export interface BytimeGetParams { /** - * Path param: Identifier + * Path param: Identifier. */ account_id: string; diff --git a/src/resources/dns-firewall/analytics/reports/reports.ts b/src/resources/dns-firewall/analytics/reports/reports.ts index 808399f14b..712c41aa9e 100644 --- a/src/resources/dns-firewall/analytics/reports/reports.ts +++ b/src/resources/dns-firewall/analytics/reports/reports.ts @@ -42,7 +42,7 @@ export class Reports extends APIResource { export interface ReportGetParams { /** - * Path param: Identifier + * Path param: Identifier. */ account_id: string; diff --git a/src/resources/dns/analytics/reports/bytimes.ts b/src/resources/dns/analytics/reports/bytimes.ts index a648674e01..4a237f3331 100644 --- a/src/resources/dns/analytics/reports/bytimes.ts +++ b/src/resources/dns/analytics/reports/bytimes.ts @@ -93,7 +93,7 @@ export namespace ByTime { export interface BytimeGetParams { /** - * Path param: Identifier + * Path param: Identifier. */ zone_id: string; diff --git a/src/resources/dns/analytics/reports/reports.ts b/src/resources/dns/analytics/reports/reports.ts index 619e017a60..332ffd318d 100644 --- a/src/resources/dns/analytics/reports/reports.ts +++ b/src/resources/dns/analytics/reports/reports.ts @@ -125,7 +125,7 @@ export namespace Report { export interface ReportGetParams { /** - * Path param: Identifier + * Path param: Identifier. */ zone_id: string; From 7ba14f7b264dc6182215c3ef9c370518af9840de Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 20:14:46 +0000 Subject: [PATCH 238/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c0cac2c6c3..4979cca14d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2d0464c247cb2636e21a787513caea6eed748b52287d2c9a93b4d8b54d1c62f6.yml -openapi_spec_hash: cedbc7c7169bbf86a6bc4ce48cd8f193 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b1009a904e4a06f2018c3a755515c0ba01374cfe2858b0cb01d25b4993639af8.yml +openapi_spec_hash: 045fd07c6c970676ffd07cd70dbe1b86 config_hash: 259b5eeae0358ea7d7756b294847f140 From 5488f7e3ce45ea87b4b74917a1bde636ec5daf7d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 21:21:27 +0000 Subject: [PATCH 239/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4979cca14d..969b66711d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b1009a904e4a06f2018c3a755515c0ba01374cfe2858b0cb01d25b4993639af8.yml -openapi_spec_hash: 045fd07c6c970676ffd07cd70dbe1b86 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-059677ceb205cc57e3231f697c80937bcbeeea79e7218ae0fc46151ab2e8b355.yml +openapi_spec_hash: 971371fea05f6f08d212feb63d19f221 config_hash: 259b5eeae0358ea7d7756b294847f140 From cd91a2914e9619d9f3fa12989565918cc43d437a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 22:11:02 +0000 Subject: [PATCH 240/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 969b66711d..9d2dd18973 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-059677ceb205cc57e3231f697c80937bcbeeea79e7218ae0fc46151ab2e8b355.yml -openapi_spec_hash: 971371fea05f6f08d212feb63d19f221 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db9ca91aaae4875317bb59cba7aca88e923bbff284a4471f649c50adbe66379d.yml +openapi_spec_hash: 8f87af81b4c2aa0b559e3bdb178ac212 config_hash: 259b5eeae0358ea7d7756b294847f140 From f62a9d531e33de4b5e41610e4055d5e66bf4fe7b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 23:27:17 +0000 Subject: [PATCH 241/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9d2dd18973..ab84e3a902 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db9ca91aaae4875317bb59cba7aca88e923bbff284a4471f649c50adbe66379d.yml -openapi_spec_hash: 8f87af81b4c2aa0b559e3bdb178ac212 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dde2840f6d13222db547dc2e2922f5468757f95ee7801ba69a741d43cf498276.yml +openapi_spec_hash: 0471d045c41f591da82b96d7f6de12ba config_hash: 259b5eeae0358ea7d7756b294847f140 From 80874c17541e7bece80fa6536ffdf89d2b6e228c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 23:32:08 +0000 Subject: [PATCH 242/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ab84e3a902..1e334062f4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dde2840f6d13222db547dc2e2922f5468757f95ee7801ba69a741d43cf498276.yml -openapi_spec_hash: 0471d045c41f591da82b96d7f6de12ba +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-15cf77564d434ccbed4db2a5b6d3f76de5eb82599325289224ce9f899ed1cdbc.yml +openapi_spec_hash: 4b4547786eb231feae60e7aedaf4a709 config_hash: 259b5eeae0358ea7d7756b294847f140 From 695ac3957e44a8aaa74e6b98750a634678254218 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 06:10:57 +0000 Subject: [PATCH 243/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1e334062f4..f459d34e15 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-15cf77564d434ccbed4db2a5b6d3f76de5eb82599325289224ce9f899ed1cdbc.yml -openapi_spec_hash: 4b4547786eb231feae60e7aedaf4a709 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c3ba0ecfa170bd960374ff207c82bf6df1897e48c8ac4294f8509bdf91d96322.yml +openapi_spec_hash: 5a3859023b31ae01ab5d5ceb4b8f6274 config_hash: 259b5eeae0358ea7d7756b294847f140 From 7e6a67ffc4bc5826673e5b8a42f666f87beb0de5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 11:19:25 +0000 Subject: [PATCH 244/366] fix(types): generate missing types --- src/resources/radar/as112/as112.ts | 6 ++++++ src/resources/radar/attacks/layer3/layer3.ts | 6 ++++++ src/resources/radar/dns/dns.ts | 6 ++++++ src/resources/radar/http/http.ts | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/src/resources/radar/as112/as112.ts b/src/resources/radar/as112/as112.ts index 0361290e55..b0a4928c2c 100644 --- a/src/resources/radar/as112/as112.ts +++ b/src/resources/radar/as112/as112.ts @@ -187,6 +187,12 @@ export namespace AS112TimeseriesResponse { value: string; } } + + export interface unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb { + timestamps: Array; + + values: Array; + } } export interface AS112TimeseriesParams { diff --git a/src/resources/radar/attacks/layer3/layer3.ts b/src/resources/radar/attacks/layer3/layer3.ts index 0e5e8e1c4e..37ee7e7c5e 100644 --- a/src/resources/radar/attacks/layer3/layer3.ts +++ b/src/resources/radar/attacks/layer3/layer3.ts @@ -190,6 +190,12 @@ export namespace Layer3TimeseriesResponse { value: string; } } + + export interface unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb { + timestamps: Array; + + values: Array; + } } export interface Layer3TimeseriesParams { diff --git a/src/resources/radar/dns/dns.ts b/src/resources/radar/dns/dns.ts index e0aada6e45..3da7ea2798 100644 --- a/src/resources/radar/dns/dns.ts +++ b/src/resources/radar/dns/dns.ts @@ -193,6 +193,12 @@ export namespace DNSTimeseriesResponse { value: string; } } + + export interface unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb { + timestamps: Array; + + values: Array; + } } export interface DNSTimeseriesParams { diff --git a/src/resources/radar/http/http.ts b/src/resources/radar/http/http.ts index 1c0d8ba0cb..f330a508ca 100644 --- a/src/resources/radar/http/http.ts +++ b/src/resources/radar/http/http.ts @@ -201,6 +201,12 @@ export namespace HTTPTimeseriesResponse { value: string; } } + + export interface unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb { + timestamps: Array; + + values: Array; + } } export interface HTTPTimeseriesParams { From 1947504ead6d566ef5313e98184750474237efed Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 11:33:00 +0000 Subject: [PATCH 245/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f459d34e15..7731dcea01 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c3ba0ecfa170bd960374ff207c82bf6df1897e48c8ac4294f8509bdf91d96322.yml -openapi_spec_hash: 5a3859023b31ae01ab5d5ceb4b8f6274 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3398b9d53c2a9467cc078120c9f7ed6e59ad11b70adc0fc1ade25539f5e9a34c.yml +openapi_spec_hash: 44244303dc928b36f2b888a0a639fb3b config_hash: 259b5eeae0358ea7d7756b294847f140 From 8f794aecab3761d0334a21440bab6b165e6987b0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 12:24:46 +0000 Subject: [PATCH 246/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7731dcea01..ad3180af84 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3398b9d53c2a9467cc078120c9f7ed6e59ad11b70adc0fc1ade25539f5e9a34c.yml -openapi_spec_hash: 44244303dc928b36f2b888a0a639fb3b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-943a26dd7785c7ff4e585491922f4554524dcbc5355c45ba4f8803932abed160.yml +openapi_spec_hash: f04b31a141dccedf7c31d820a9796f60 config_hash: 259b5eeae0358ea7d7756b294847f140 From 34b4d54d8b3ac1647feeb09ea6e6b1a768053007 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 14:37:03 +0000 Subject: [PATCH 247/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ad3180af84..88e07d60eb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-943a26dd7785c7ff4e585491922f4554524dcbc5355c45ba4f8803932abed160.yml -openapi_spec_hash: f04b31a141dccedf7c31d820a9796f60 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-04b342c36a688b217bf2ba2682d38dc90efaff9b2a8241739f0a9f70f539ea7b.yml +openapi_spec_hash: 008f28d4650263363206e097c5a1968a config_hash: 259b5eeae0358ea7d7756b294847f140 From 4711c0c1c9ba6da8929d644794603e5c34563965 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 15:03:16 +0000 Subject: [PATCH 248/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 88e07d60eb..ca46b27f9c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-04b342c36a688b217bf2ba2682d38dc90efaff9b2a8241739f0a9f70f539ea7b.yml -openapi_spec_hash: 008f28d4650263363206e097c5a1968a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-12f96a67d464fd1dc7433c39fe61d343b9fd9e0633dc7228309977a63191e852.yml +openapi_spec_hash: a9ea3ffe27240a1bc9c01cbf74a97521 config_hash: 259b5eeae0358ea7d7756b294847f140 From 68f854c1561bef2dbdf7ca478f7819b140882614 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 15:27:40 +0000 Subject: [PATCH 249/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ca46b27f9c..e92802bddc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-12f96a67d464fd1dc7433c39fe61d343b9fd9e0633dc7228309977a63191e852.yml -openapi_spec_hash: a9ea3ffe27240a1bc9c01cbf74a97521 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8af681407f6a8347fb5b5bb6cf6276123fd59a3930c0d41f0e0969a2460dbd72.yml +openapi_spec_hash: 27a07fe056598eaa2505f33b35c23616 config_hash: 259b5eeae0358ea7d7756b294847f140 From 23b7d715eac6abaaf8f591c553317e2d86d17b95 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 16:15:23 +0000 Subject: [PATCH 250/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e92802bddc..56135075e5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8af681407f6a8347fb5b5bb6cf6276123fd59a3930c0d41f0e0969a2460dbd72.yml -openapi_spec_hash: 27a07fe056598eaa2505f33b35c23616 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f5105331b2f9171eb6ba1c8fd2a616a5f34b382484da299d9322dde3f1541173.yml +openapi_spec_hash: 99e4f780a5c7d0d67485a18dd44fdc9d config_hash: 259b5eeae0358ea7d7756b294847f140 From b88ab0f8baf3a3f84a51e24735358e39612d8f81 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 16:24:41 +0000 Subject: [PATCH 251/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/zero-trust/devices/devices.ts | 8 ++++++-- src/resources/zero-trust/devices/devices_.ts | 10 +++++----- src/resources/zero-trust/devices/override-codes.ts | 9 +++++---- src/resources/zero-trust/devices/registrations.ts | 4 ++-- src/resources/zero-trust/devices/revoke.ts | 4 +++- src/resources/zero-trust/devices/unrevoke.ts | 4 +++- 7 files changed, 26 insertions(+), 17 deletions(-) diff --git a/.stats.yml b/.stats.yml index 56135075e5..a89eb53b83 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f5105331b2f9171eb6ba1c8fd2a616a5f34b382484da299d9322dde3f1541173.yml -openapi_spec_hash: 99e4f780a5c7d0d67485a18dd44fdc9d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1d0c071db47608108020cc81ce54a4b642973c7835ef2beeaaa1c8d741fc6d07.yml +openapi_spec_hash: 21cbc6a253005dd893cd947ebce791f3 config_hash: 259b5eeae0358ea7d7756b294847f140 diff --git a/src/resources/zero-trust/devices/devices.ts b/src/resources/zero-trust/devices/devices.ts index 04e193a510..a1c978c4d4 100644 --- a/src/resources/zero-trust/devices/devices.ts +++ b/src/resources/zero-trust/devices/devices.ts @@ -139,7 +139,9 @@ export class Devices extends APIResource { overrideCodes: OverrideCodesAPI.OverrideCodes = new OverrideCodesAPI.OverrideCodes(this._client); /** - * List WARP registrations. + * List WARP devices. Not supported when + * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) + * is enabled for the account. * * **Deprecated**: please use one of the following endpoints instead: * @@ -154,7 +156,9 @@ export class Devices extends APIResource { } /** - * Fetches a single WARP registration. + * Fetches a single WARP device. Not supported when + * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) + * is enabled for the account. * * **Deprecated**: please use one of the following endpoints instead: * diff --git a/src/resources/zero-trust/devices/devices_.ts b/src/resources/zero-trust/devices/devices_.ts index d266967444..68612470ea 100644 --- a/src/resources/zero-trust/devices/devices_.ts +++ b/src/resources/zero-trust/devices/devices_.ts @@ -82,7 +82,7 @@ export class Devices extends APIResource { } /** - * Revokes all registrations associated with the specified device. + * Revokes all WARP registrations associated with the specified device. * * @example * ```ts @@ -166,7 +166,7 @@ export interface DeviceListResponse { hardware_id?: string | null; /** - * The last Access user to use the WARP device. + * The last user to use the WARP device. */ last_seen_user?: DeviceListResponse.LastSeenUser | null; @@ -209,7 +209,7 @@ export interface DeviceListResponse { export namespace DeviceListResponse { /** - * The last Access user to use the WARP device. + * The last user to use the WARP device. */ export interface LastSeenUser { /** @@ -287,7 +287,7 @@ export interface DeviceGetResponse { hardware_id?: string | null; /** - * The last Access user to use the WARP device. + * The last user to use the WARP device. */ last_seen_user?: DeviceGetResponse.LastSeenUser | null; @@ -330,7 +330,7 @@ export interface DeviceGetResponse { export namespace DeviceGetResponse { /** - * The last Access user to use the WARP device. + * The last user to use the WARP device. */ export interface LastSeenUser { /** diff --git a/src/resources/zero-trust/devices/override-codes.ts b/src/resources/zero-trust/devices/override-codes.ts index 512962ca46..a30490d509 100644 --- a/src/resources/zero-trust/devices/override-codes.ts +++ b/src/resources/zero-trust/devices/override-codes.ts @@ -6,10 +6,11 @@ import { SinglePage } from '../../../pagination'; export class OverrideCodes extends APIResource { /** - * Fetches a one-time use admin override code for a registration. This relies on - * the **Admin Override** setting being enabled in your device configuration. - * - * **Deprecated:** please use GET + * Fetches a one-time use admin override code for a device. This relies on the + * **Admin Override** setting being enabled in your device configuration. Not + * supported when + * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) + * is enabled for the account. **Deprecated:** please use GET * /accounts/{account_id}/devices/registrations/{registration_id}/override_codes * instead. * diff --git a/src/resources/zero-trust/devices/registrations.ts b/src/resources/zero-trust/devices/registrations.ts index 31e8b2c2e3..fc98d6f28c 100644 --- a/src/resources/zero-trust/devices/registrations.ts +++ b/src/resources/zero-trust/devices/registrations.ts @@ -6,7 +6,7 @@ import { CursorPagination, type CursorPaginationParams } from '../../../paginati export class Registrations extends APIResource { /** - * List WARP registrations. + * Lists WARP registrations. * * @example * ```ts @@ -433,7 +433,7 @@ export namespace RegistrationListParams { export interface User { /** - * Filter by Access user ID. + * Filter by user ID. */ id?: Array; } diff --git a/src/resources/zero-trust/devices/revoke.ts b/src/resources/zero-trust/devices/revoke.ts index 8de2da70c3..9cd83a9305 100644 --- a/src/resources/zero-trust/devices/revoke.ts +++ b/src/resources/zero-trust/devices/revoke.ts @@ -5,7 +5,9 @@ import * as Core from '../../../core'; export class Revoke extends APIResource { /** - * Revokes a list of registrations. + * Revokes a list of devices. Not supported when + * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) + * is enabled. * * **Deprecated**: please use POST * /accounts/{account_id}/devices/registrations/revoke instead. diff --git a/src/resources/zero-trust/devices/unrevoke.ts b/src/resources/zero-trust/devices/unrevoke.ts index 7ee6606fd2..87c2048019 100644 --- a/src/resources/zero-trust/devices/unrevoke.ts +++ b/src/resources/zero-trust/devices/unrevoke.ts @@ -5,7 +5,9 @@ import * as Core from '../../../core'; export class Unrevoke extends APIResource { /** - * Unrevokes a list of registrations. + * Unrevokes a list of devices. Not supported when + * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) + * is enabled. * * **Deprecated**: please use POST * /accounts/{account_id}/devices/registrations/unrevoke instead. From 6825428818ec5591539fd893a27a7b1b1f097743 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 16:29:44 +0000 Subject: [PATCH 252/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a89eb53b83..e29251a036 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1d0c071db47608108020cc81ce54a4b642973c7835ef2beeaaa1c8d741fc6d07.yml -openapi_spec_hash: 21cbc6a253005dd893cd947ebce791f3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-411828654ba9f71c06be10985d2328b174497e826108c74e4537f9fc36538690.yml +openapi_spec_hash: 696058d2e96a27a14330444b1975cde9 config_hash: 259b5eeae0358ea7d7756b294847f140 From 9f1c3d4b59370f75d441fe4166f67a54479d517f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 16:44:38 +0000 Subject: [PATCH 253/366] feat(api): Add new bulk deletion endpoint for ZT infra targets --- .stats.yml | 8 ++--- api.md | 1 + .../zero-trust/access/infrastructure/index.ts | 1 + .../access/infrastructure/infrastructure.ts | 2 ++ .../access/infrastructure/targets.ts | 35 +++++++++++++++++++ src/resources/zero-trust/devices/devices.ts | 8 ++--- src/resources/zero-trust/devices/devices_.ts | 10 +++--- .../zero-trust/devices/override-codes.ts | 9 +++-- .../zero-trust/devices/registrations.ts | 4 +-- src/resources/zero-trust/devices/revoke.ts | 4 +-- src/resources/zero-trust/devices/unrevoke.ts | 4 +-- .../access/infrastructure/targets.test.ts | 21 +++++++++++ 12 files changed, 79 insertions(+), 28 deletions(-) diff --git a/.stats.yml b/.stats.yml index e29251a036..2b0c8e3b69 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 1751 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-411828654ba9f71c06be10985d2328b174497e826108c74e4537f9fc36538690.yml -openapi_spec_hash: 696058d2e96a27a14330444b1975cde9 -config_hash: 259b5eeae0358ea7d7756b294847f140 +configured_endpoints: 1752 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8af681407f6a8347fb5b5bb6cf6276123fd59a3930c0d41f0e0969a2460dbd72.yml +openapi_spec_hash: 27a07fe056598eaa2505f33b35c23616 +config_hash: 135c41c52147f104907327e028f831e2 diff --git a/api.md b/api.md index 7f2d10935d..d97995d839 100644 --- a/api.md +++ b/api.md @@ -4934,6 +4934,7 @@ Methods: - client.zeroTrust.access.infrastructure.targets.list({ ...params }) -> TargetListResponsesV4PagePaginationArray - client.zeroTrust.access.infrastructure.targets.delete(targetId, { ...params }) -> void - client.zeroTrust.access.infrastructure.targets.bulkDelete({ ...params }) -> void +- client.zeroTrust.access.infrastructure.targets.bulkDeleteV2({ ...params }) -> void - client.zeroTrust.access.infrastructure.targets.bulkUpdate([ ...body ]) -> TargetBulkUpdateResponsesSinglePage - client.zeroTrust.access.infrastructure.targets.get(targetId, { ...params }) -> TargetGetResponse diff --git a/src/resources/zero-trust/access/infrastructure/index.ts b/src/resources/zero-trust/access/infrastructure/index.ts index e1897a12e5..0b3c5bb3d6 100644 --- a/src/resources/zero-trust/access/infrastructure/index.ts +++ b/src/resources/zero-trust/access/infrastructure/index.ts @@ -15,6 +15,7 @@ export { type TargetListParams, type TargetDeleteParams, type TargetBulkDeleteParams, + type TargetBulkDeleteV2Params, type TargetBulkUpdateParams, type TargetGetParams, } from './targets'; diff --git a/src/resources/zero-trust/access/infrastructure/infrastructure.ts b/src/resources/zero-trust/access/infrastructure/infrastructure.ts index 52233caa1f..b23db9cc12 100644 --- a/src/resources/zero-trust/access/infrastructure/infrastructure.ts +++ b/src/resources/zero-trust/access/infrastructure/infrastructure.ts @@ -4,6 +4,7 @@ import { APIResource } from '../../../../resource'; import * as TargetsAPI from './targets'; import { TargetBulkDeleteParams, + TargetBulkDeleteV2Params, TargetBulkUpdateParams, TargetBulkUpdateResponse, TargetBulkUpdateResponsesSinglePage, @@ -43,6 +44,7 @@ export declare namespace Infrastructure { type TargetListParams as TargetListParams, type TargetDeleteParams as TargetDeleteParams, type TargetBulkDeleteParams as TargetBulkDeleteParams, + type TargetBulkDeleteV2Params as TargetBulkDeleteV2Params, type TargetBulkUpdateParams as TargetBulkUpdateParams, type TargetGetParams as TargetGetParams, }; diff --git a/src/resources/zero-trust/access/infrastructure/targets.ts b/src/resources/zero-trust/access/infrastructure/targets.ts index 721ece7405..9e1c6adb3f 100644 --- a/src/resources/zero-trust/access/infrastructure/targets.ts +++ b/src/resources/zero-trust/access/infrastructure/targets.ts @@ -118,6 +118,28 @@ export class Targets extends APIResource { }); } + /** + * Removes one or more targets. + * + * @example + * ```ts + * await client.zeroTrust.access.infrastructure.targets.bulkDeleteV2( + * { + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', + * target_ids: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], + * }, + * ); + * ``` + */ + bulkDeleteV2(params: TargetBulkDeleteV2Params, options?: Core.RequestOptions): Core.APIPromise { + const { account_id, ...body } = params; + return this._client.post(`/accounts/${account_id}/infrastructure/targets/batch_delete`, { + body, + ...options, + headers: { Accept: '*/*', ...options?.headers }, + }); + } + /** * Adds one or more targets. * @@ -827,6 +849,18 @@ export interface TargetBulkDeleteParams { account_id: string; } +export interface TargetBulkDeleteV2Params { + /** + * Path param: Account identifier + */ + account_id: string; + + /** + * Body param: List of target IDs to bulk delete + */ + target_ids: Array; +} + export interface TargetBulkUpdateParams { /** * Path param: Account identifier @@ -930,6 +964,7 @@ export declare namespace Targets { type TargetListParams as TargetListParams, type TargetDeleteParams as TargetDeleteParams, type TargetBulkDeleteParams as TargetBulkDeleteParams, + type TargetBulkDeleteV2Params as TargetBulkDeleteV2Params, type TargetBulkUpdateParams as TargetBulkUpdateParams, type TargetGetParams as TargetGetParams, }; diff --git a/src/resources/zero-trust/devices/devices.ts b/src/resources/zero-trust/devices/devices.ts index a1c978c4d4..04e193a510 100644 --- a/src/resources/zero-trust/devices/devices.ts +++ b/src/resources/zero-trust/devices/devices.ts @@ -139,9 +139,7 @@ export class Devices extends APIResource { overrideCodes: OverrideCodesAPI.OverrideCodes = new OverrideCodesAPI.OverrideCodes(this._client); /** - * List WARP devices. Not supported when - * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) - * is enabled for the account. + * List WARP registrations. * * **Deprecated**: please use one of the following endpoints instead: * @@ -156,9 +154,7 @@ export class Devices extends APIResource { } /** - * Fetches a single WARP device. Not supported when - * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) - * is enabled for the account. + * Fetches a single WARP registration. * * **Deprecated**: please use one of the following endpoints instead: * diff --git a/src/resources/zero-trust/devices/devices_.ts b/src/resources/zero-trust/devices/devices_.ts index 68612470ea..d266967444 100644 --- a/src/resources/zero-trust/devices/devices_.ts +++ b/src/resources/zero-trust/devices/devices_.ts @@ -82,7 +82,7 @@ export class Devices extends APIResource { } /** - * Revokes all WARP registrations associated with the specified device. + * Revokes all registrations associated with the specified device. * * @example * ```ts @@ -166,7 +166,7 @@ export interface DeviceListResponse { hardware_id?: string | null; /** - * The last user to use the WARP device. + * The last Access user to use the WARP device. */ last_seen_user?: DeviceListResponse.LastSeenUser | null; @@ -209,7 +209,7 @@ export interface DeviceListResponse { export namespace DeviceListResponse { /** - * The last user to use the WARP device. + * The last Access user to use the WARP device. */ export interface LastSeenUser { /** @@ -287,7 +287,7 @@ export interface DeviceGetResponse { hardware_id?: string | null; /** - * The last user to use the WARP device. + * The last Access user to use the WARP device. */ last_seen_user?: DeviceGetResponse.LastSeenUser | null; @@ -330,7 +330,7 @@ export interface DeviceGetResponse { export namespace DeviceGetResponse { /** - * The last user to use the WARP device. + * The last Access user to use the WARP device. */ export interface LastSeenUser { /** diff --git a/src/resources/zero-trust/devices/override-codes.ts b/src/resources/zero-trust/devices/override-codes.ts index a30490d509..512962ca46 100644 --- a/src/resources/zero-trust/devices/override-codes.ts +++ b/src/resources/zero-trust/devices/override-codes.ts @@ -6,11 +6,10 @@ import { SinglePage } from '../../../pagination'; export class OverrideCodes extends APIResource { /** - * Fetches a one-time use admin override code for a device. This relies on the - * **Admin Override** setting being enabled in your device configuration. Not - * supported when - * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) - * is enabled for the account. **Deprecated:** please use GET + * Fetches a one-time use admin override code for a registration. This relies on + * the **Admin Override** setting being enabled in your device configuration. + * + * **Deprecated:** please use GET * /accounts/{account_id}/devices/registrations/{registration_id}/override_codes * instead. * diff --git a/src/resources/zero-trust/devices/registrations.ts b/src/resources/zero-trust/devices/registrations.ts index fc98d6f28c..31e8b2c2e3 100644 --- a/src/resources/zero-trust/devices/registrations.ts +++ b/src/resources/zero-trust/devices/registrations.ts @@ -6,7 +6,7 @@ import { CursorPagination, type CursorPaginationParams } from '../../../paginati export class Registrations extends APIResource { /** - * Lists WARP registrations. + * List WARP registrations. * * @example * ```ts @@ -433,7 +433,7 @@ export namespace RegistrationListParams { export interface User { /** - * Filter by user ID. + * Filter by Access user ID. */ id?: Array; } diff --git a/src/resources/zero-trust/devices/revoke.ts b/src/resources/zero-trust/devices/revoke.ts index 9cd83a9305..8de2da70c3 100644 --- a/src/resources/zero-trust/devices/revoke.ts +++ b/src/resources/zero-trust/devices/revoke.ts @@ -5,9 +5,7 @@ import * as Core from '../../../core'; export class Revoke extends APIResource { /** - * Revokes a list of devices. Not supported when - * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) - * is enabled. + * Revokes a list of registrations. * * **Deprecated**: please use POST * /accounts/{account_id}/devices/registrations/revoke instead. diff --git a/src/resources/zero-trust/devices/unrevoke.ts b/src/resources/zero-trust/devices/unrevoke.ts index 87c2048019..7ee6606fd2 100644 --- a/src/resources/zero-trust/devices/unrevoke.ts +++ b/src/resources/zero-trust/devices/unrevoke.ts @@ -5,9 +5,7 @@ import * as Core from '../../../core'; export class Unrevoke extends APIResource { /** - * Unrevokes a list of devices. Not supported when - * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) - * is enabled. + * Unrevokes a list of registrations. * * **Deprecated**: please use POST * /accounts/{account_id}/devices/registrations/unrevoke instead. diff --git a/tests/api-resources/zero-trust/access/infrastructure/targets.test.ts b/tests/api-resources/zero-trust/access/infrastructure/targets.test.ts index 928a90120e..553fe580e2 100644 --- a/tests/api-resources/zero-trust/access/infrastructure/targets.test.ts +++ b/tests/api-resources/zero-trust/access/infrastructure/targets.test.ts @@ -149,6 +149,27 @@ describe('resource targets', () => { }); }); + test('bulkDeleteV2: only required params', async () => { + const responsePromise = client.zeroTrust.access.infrastructure.targets.bulkDeleteV2({ + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + target_ids: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], + }); + 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('bulkDeleteV2: required and optional params', async () => { + const response = await client.zeroTrust.access.infrastructure.targets.bulkDeleteV2({ + account_id: '023e105f4ecef8ad9ca31a8372d0c353', + target_ids: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], + }); + }); + test('bulkUpdate: only required params', async () => { const responsePromise = client.zeroTrust.access.infrastructure.targets.bulkUpdate({ account_id: '023e105f4ecef8ad9ca31a8372d0c353', From 2d6d5cc98daeb7a9c298cbb93987ae36fe5ed96f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 16:48:01 +0000 Subject: [PATCH 254/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/zero-trust/devices/devices.ts | 8 ++++++-- src/resources/zero-trust/devices/devices_.ts | 10 +++++----- src/resources/zero-trust/devices/override-codes.ts | 9 +++++---- src/resources/zero-trust/devices/registrations.ts | 4 ++-- src/resources/zero-trust/devices/revoke.ts | 4 +++- src/resources/zero-trust/devices/unrevoke.ts | 4 +++- 7 files changed, 26 insertions(+), 17 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2b0c8e3b69..8360239fe3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8af681407f6a8347fb5b5bb6cf6276123fd59a3930c0d41f0e0969a2460dbd72.yml -openapi_spec_hash: 27a07fe056598eaa2505f33b35c23616 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-411828654ba9f71c06be10985d2328b174497e826108c74e4537f9fc36538690.yml +openapi_spec_hash: 696058d2e96a27a14330444b1975cde9 config_hash: 135c41c52147f104907327e028f831e2 diff --git a/src/resources/zero-trust/devices/devices.ts b/src/resources/zero-trust/devices/devices.ts index 04e193a510..a1c978c4d4 100644 --- a/src/resources/zero-trust/devices/devices.ts +++ b/src/resources/zero-trust/devices/devices.ts @@ -139,7 +139,9 @@ export class Devices extends APIResource { overrideCodes: OverrideCodesAPI.OverrideCodes = new OverrideCodesAPI.OverrideCodes(this._client); /** - * List WARP registrations. + * List WARP devices. Not supported when + * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) + * is enabled for the account. * * **Deprecated**: please use one of the following endpoints instead: * @@ -154,7 +156,9 @@ export class Devices extends APIResource { } /** - * Fetches a single WARP registration. + * Fetches a single WARP device. Not supported when + * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) + * is enabled for the account. * * **Deprecated**: please use one of the following endpoints instead: * diff --git a/src/resources/zero-trust/devices/devices_.ts b/src/resources/zero-trust/devices/devices_.ts index d266967444..68612470ea 100644 --- a/src/resources/zero-trust/devices/devices_.ts +++ b/src/resources/zero-trust/devices/devices_.ts @@ -82,7 +82,7 @@ export class Devices extends APIResource { } /** - * Revokes all registrations associated with the specified device. + * Revokes all WARP registrations associated with the specified device. * * @example * ```ts @@ -166,7 +166,7 @@ export interface DeviceListResponse { hardware_id?: string | null; /** - * The last Access user to use the WARP device. + * The last user to use the WARP device. */ last_seen_user?: DeviceListResponse.LastSeenUser | null; @@ -209,7 +209,7 @@ export interface DeviceListResponse { export namespace DeviceListResponse { /** - * The last Access user to use the WARP device. + * The last user to use the WARP device. */ export interface LastSeenUser { /** @@ -287,7 +287,7 @@ export interface DeviceGetResponse { hardware_id?: string | null; /** - * The last Access user to use the WARP device. + * The last user to use the WARP device. */ last_seen_user?: DeviceGetResponse.LastSeenUser | null; @@ -330,7 +330,7 @@ export interface DeviceGetResponse { export namespace DeviceGetResponse { /** - * The last Access user to use the WARP device. + * The last user to use the WARP device. */ export interface LastSeenUser { /** diff --git a/src/resources/zero-trust/devices/override-codes.ts b/src/resources/zero-trust/devices/override-codes.ts index 512962ca46..a30490d509 100644 --- a/src/resources/zero-trust/devices/override-codes.ts +++ b/src/resources/zero-trust/devices/override-codes.ts @@ -6,10 +6,11 @@ import { SinglePage } from '../../../pagination'; export class OverrideCodes extends APIResource { /** - * Fetches a one-time use admin override code for a registration. This relies on - * the **Admin Override** setting being enabled in your device configuration. - * - * **Deprecated:** please use GET + * Fetches a one-time use admin override code for a device. This relies on the + * **Admin Override** setting being enabled in your device configuration. Not + * supported when + * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) + * is enabled for the account. **Deprecated:** please use GET * /accounts/{account_id}/devices/registrations/{registration_id}/override_codes * instead. * diff --git a/src/resources/zero-trust/devices/registrations.ts b/src/resources/zero-trust/devices/registrations.ts index 31e8b2c2e3..fc98d6f28c 100644 --- a/src/resources/zero-trust/devices/registrations.ts +++ b/src/resources/zero-trust/devices/registrations.ts @@ -6,7 +6,7 @@ import { CursorPagination, type CursorPaginationParams } from '../../../paginati export class Registrations extends APIResource { /** - * List WARP registrations. + * Lists WARP registrations. * * @example * ```ts @@ -433,7 +433,7 @@ export namespace RegistrationListParams { export interface User { /** - * Filter by Access user ID. + * Filter by user ID. */ id?: Array; } diff --git a/src/resources/zero-trust/devices/revoke.ts b/src/resources/zero-trust/devices/revoke.ts index 8de2da70c3..9cd83a9305 100644 --- a/src/resources/zero-trust/devices/revoke.ts +++ b/src/resources/zero-trust/devices/revoke.ts @@ -5,7 +5,9 @@ import * as Core from '../../../core'; export class Revoke extends APIResource { /** - * Revokes a list of registrations. + * Revokes a list of devices. Not supported when + * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) + * is enabled. * * **Deprecated**: please use POST * /accounts/{account_id}/devices/registrations/revoke instead. diff --git a/src/resources/zero-trust/devices/unrevoke.ts b/src/resources/zero-trust/devices/unrevoke.ts index 7ee6606fd2..87c2048019 100644 --- a/src/resources/zero-trust/devices/unrevoke.ts +++ b/src/resources/zero-trust/devices/unrevoke.ts @@ -5,7 +5,9 @@ import * as Core from '../../../core'; export class Unrevoke extends APIResource { /** - * Unrevokes a list of registrations. + * Unrevokes a list of devices. Not supported when + * [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/) + * is enabled. * * **Deprecated**: please use POST * /accounts/{account_id}/devices/registrations/unrevoke instead. From 0f2a592214e0235668f333eef1b00b5846275067 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 16:50:37 +0000 Subject: [PATCH 255/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8360239fe3..9449752598 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-411828654ba9f71c06be10985d2328b174497e826108c74e4537f9fc36538690.yml -openapi_spec_hash: 696058d2e96a27a14330444b1975cde9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2eb1db2cd7c71c9058c6b934fcab2ae822a8939979ecd35c087132ffb6bd6921.yml +openapi_spec_hash: 403617b6076466ef89d5246c80709d96 config_hash: 135c41c52147f104907327e028f831e2 From 1b5beebb048ca675835ed984ca710e0f1228df99 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 17:09:36 +0000 Subject: [PATCH 256/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9449752598..97c4179aab 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2eb1db2cd7c71c9058c6b934fcab2ae822a8939979ecd35c087132ffb6bd6921.yml -openapi_spec_hash: 403617b6076466ef89d5246c80709d96 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0265a0e9a05185e9e6f3e4e8123e737b531ea99101a9e71bd5b7f84f0b7c3634.yml +openapi_spec_hash: e5d2ab14d74cc1b795bf6c46cdc638d9 config_hash: 135c41c52147f104907327e028f831e2 From eab9f0a08314326ad0ee8b87d8ac206b913e2c64 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 17:12:22 +0000 Subject: [PATCH 257/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 97c4179aab..aacef03dc9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0265a0e9a05185e9e6f3e4e8123e737b531ea99101a9e71bd5b7f84f0b7c3634.yml -openapi_spec_hash: e5d2ab14d74cc1b795bf6c46cdc638d9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1a9277064c11c81f578fb47e6f64ba849d884d4bd96e9496d159c0d6d59dd445.yml +openapi_spec_hash: 32f7b15a754648ef8075e0d6e1107bd4 config_hash: 135c41c52147f104907327e028f831e2 From a7879979ffd5584c3ec6bd0f491962f510a53601 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 17:15:06 +0000 Subject: [PATCH 258/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index aacef03dc9..9449752598 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1a9277064c11c81f578fb47e6f64ba849d884d4bd96e9496d159c0d6d59dd445.yml -openapi_spec_hash: 32f7b15a754648ef8075e0d6e1107bd4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2eb1db2cd7c71c9058c6b934fcab2ae822a8939979ecd35c087132ffb6bd6921.yml +openapi_spec_hash: 403617b6076466ef89d5246c80709d96 config_hash: 135c41c52147f104907327e028f831e2 From 9f7cb355d46d09a1e0099ee280cf42d525c1c809 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 17:17:54 +0000 Subject: [PATCH 259/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9449752598..06a2f22c68 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2eb1db2cd7c71c9058c6b934fcab2ae822a8939979ecd35c087132ffb6bd6921.yml -openapi_spec_hash: 403617b6076466ef89d5246c80709d96 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7c99c85eb4db2122349e8b54519c177b4c0c9d9c7cccbbe42c9022078c32afea.yml +openapi_spec_hash: a683cf91fa1fa3b78403ebb1ee148373 config_hash: 135c41c52147f104907327e028f831e2 From c1b1e00ea4afb8abaf783ce55ca6d4b9e53cdbab Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 17:21:06 +0000 Subject: [PATCH 260/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 06a2f22c68..8a0a5077cc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7c99c85eb4db2122349e8b54519c177b4c0c9d9c7cccbbe42c9022078c32afea.yml -openapi_spec_hash: a683cf91fa1fa3b78403ebb1ee148373 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c4cf359a64cb8e47ca31ea02ba2589f535662999bdf1aee348aba2c7448f46b5.yml +openapi_spec_hash: 41b14e228d5ef99f8e1e09732ce2679c config_hash: 135c41c52147f104907327e028f831e2 From 8338e2370d0f35d9db3256b3f7a1392edbe4b3fa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 17:58:03 +0000 Subject: [PATCH 261/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8a0a5077cc..2f77313e30 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c4cf359a64cb8e47ca31ea02ba2589f535662999bdf1aee348aba2c7448f46b5.yml -openapi_spec_hash: 41b14e228d5ef99f8e1e09732ce2679c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-630f05355fbbcf8b9ce657a1a5635aab2423b8387a5ffa7534173ffcdf57a305.yml +openapi_spec_hash: ca3793864d354c1d505730523406f865 config_hash: 135c41c52147f104907327e028f831e2 From e18e7f0bf62b971683564989cf071c8cf1a98c12 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 18:08:20 +0000 Subject: [PATCH 262/366] feat(api): fix account ID types Change type of account_id path parameter from 'number' to 'string' for Cloudforce threat event and Magic Transit connector endpoints --- .stats.yml | 6 ++--- .../cloudforce-one/threat-events/attackers.ts | 4 +-- .../threat-events/categories.ts | 24 ++++++++++------- .../cloudforce-one/threat-events/countries.ts | 4 +-- .../cloudforce-one/threat-events/crons.ts | 8 +++--- .../threat-events/datasets/datasets.ts | 20 +++++++------- .../threat-events/datasets/health.ts | 4 +-- .../threat-events/event-tags.ts | 8 +++--- .../threat-events/indicator-types.ts | 4 +-- .../cloudforce-one/threat-events/insights.ts | 16 ++++++------ .../cloudforce-one/threat-events/raw.ts | 8 +++--- .../cloudforce-one/threat-events/relate.ts | 4 +-- .../cloudforce-one/threat-events/tags.ts | 4 +-- .../threat-events/target-industries.ts | 4 +-- .../threat-events/threat-events.ts | 24 ++++++++--------- .../magic-transit/connectors/events/events.ts | 8 +++--- .../magic-transit/connectors/events/latest.ts | 4 +-- .../connectors/snapshots/latest.ts | 4 +-- .../connectors/snapshots/snapshots.ts | 8 +++--- .../threat-events/attackers.test.ts | 4 +-- .../threat-events/categories.test.ts | 26 ++++++++++++------- .../threat-events/countries.test.ts | 4 +-- .../threat-events/crons.test.ts | 8 +++--- .../threat-events/datasets/datasets.test.ts | 20 +++++++------- .../threat-events/datasets/health.test.ts | 4 +-- .../threat-events/event-tags.test.ts | 12 ++++++--- .../threat-events/indicator-types.test.ts | 8 ++++-- .../threat-events/insights.test.ts | 16 ++++++------ .../cloudforce-one/threat-events/raw.test.ts | 10 ++++--- .../threat-events/relate.test.ts | 8 ++++-- .../cloudforce-one/threat-events/tags.test.ts | 10 +++++-- .../threat-events/target-industries.test.ts | 8 ++++-- .../threat-events/threat-events.test.ts | 26 ++++++++++--------- .../connectors/events/events.test.ts | 10 ++++--- .../connectors/events/latest.test.ts | 4 +-- .../connectors/snapshots/latest.test.ts | 4 +-- .../connectors/snapshots/snapshots.test.ts | 10 ++++--- 37 files changed, 199 insertions(+), 159 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2f77313e30..fb95d2b43f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-630f05355fbbcf8b9ce657a1a5635aab2423b8387a5ffa7534173ffcdf57a305.yml -openapi_spec_hash: ca3793864d354c1d505730523406f865 -config_hash: 135c41c52147f104907327e028f831e2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dc675acbdcab1131f3681a184a8515deca17471c93595473e2474c4b5fafc7e2.yml +openapi_spec_hash: 41b14e228d5ef99f8e1e09732ce2679c +config_hash: 22b6cc50203041358f4b2b4e832b009d diff --git a/src/resources/cloudforce-one/threat-events/attackers.ts b/src/resources/cloudforce-one/threat-events/attackers.ts index b391d797a4..8e7254e8cf 100644 --- a/src/resources/cloudforce-one/threat-events/attackers.ts +++ b/src/resources/cloudforce-one/threat-events/attackers.ts @@ -11,7 +11,7 @@ export class Attackers extends APIResource { * ```ts * const attackers = * await client.cloudforceOne.threatEvents.attackers.list({ - * account_id: 0, + * account_id: 'account_id', * }); * ``` */ @@ -37,7 +37,7 @@ export interface AttackerListParams { /** * Account ID. */ - account_id: number; + account_id: string; } export declare namespace Attackers { diff --git a/src/resources/cloudforce-one/threat-events/categories.ts b/src/resources/cloudforce-one/threat-events/categories.ts index d4639481f4..9b19bc008e 100644 --- a/src/resources/cloudforce-one/threat-events/categories.ts +++ b/src/resources/cloudforce-one/threat-events/categories.ts @@ -11,7 +11,11 @@ export class Categories extends APIResource { * ```ts * const category = * await client.cloudforceOne.threatEvents.categories.create( - * { account_id: 0, killChain: 0, name: 'name' }, + * { + * account_id: 'account_id', + * killChain: 0, + * name: 'name', + * }, * ); * ``` */ @@ -33,7 +37,7 @@ export class Categories extends APIResource { * ```ts * const categories = * await client.cloudforceOne.threatEvents.categories.list({ - * account_id: 0, + * account_id: 'account_id', * }); * ``` */ @@ -50,7 +54,7 @@ export class Categories extends APIResource { * const category = * await client.cloudforceOne.threatEvents.categories.delete( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -74,7 +78,7 @@ export class Categories extends APIResource { * const response = * await client.cloudforceOne.threatEvents.categories.edit( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -98,7 +102,7 @@ export class Categories extends APIResource { * const category = * await client.cloudforceOne.threatEvents.categories.get( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -175,7 +179,7 @@ export interface CategoryCreateParams { /** * Path param: Account ID. */ - account_id: number; + account_id: string; /** * Body param: @@ -202,21 +206,21 @@ export interface CategoryListParams { /** * Account ID. */ - account_id: number; + account_id: string; } export interface CategoryDeleteParams { /** * Account ID. */ - account_id: number; + account_id: string; } export interface CategoryEditParams { /** * Path param: Account ID. */ - account_id: number; + account_id: string; /** * Body param: @@ -243,7 +247,7 @@ export interface CategoryGetParams { /** * Account ID. */ - account_id: number; + account_id: string; } export declare namespace Categories { diff --git a/src/resources/cloudforce-one/threat-events/countries.ts b/src/resources/cloudforce-one/threat-events/countries.ts index e70093b154..3177e14904 100644 --- a/src/resources/cloudforce-one/threat-events/countries.ts +++ b/src/resources/cloudforce-one/threat-events/countries.ts @@ -11,7 +11,7 @@ export class Countries extends APIResource { * ```ts * const countries = * await client.cloudforceOne.threatEvents.countries.list({ - * account_id: 0, + * account_id: 'account_id', * }); * ``` */ @@ -43,7 +43,7 @@ export interface CountryListParams { /** * Account ID. */ - account_id: number; + account_id: string; } export declare namespace Countries { diff --git a/src/resources/cloudforce-one/threat-events/crons.ts b/src/resources/cloudforce-one/threat-events/crons.ts index e4716e6ba4..a936094f30 100644 --- a/src/resources/cloudforce-one/threat-events/crons.ts +++ b/src/resources/cloudforce-one/threat-events/crons.ts @@ -11,7 +11,7 @@ export class Crons extends APIResource { * ```ts * const crons = * await client.cloudforceOne.threatEvents.crons.list({ - * account_id: 0, + * account_id: 'account_id', * }); * ``` */ @@ -27,7 +27,7 @@ export class Crons extends APIResource { * ```ts * const response = * await client.cloudforceOne.threatEvents.crons.edit({ - * account_id: 0, + * account_id: 'account_id', * }); * ``` */ @@ -51,14 +51,14 @@ export interface CronListParams { /** * Account ID. */ - account_id: number; + account_id: string; } export interface CronEditParams { /** * Account ID. */ - account_id: number; + account_id: string; } export declare namespace Crons { diff --git a/src/resources/cloudforce-one/threat-events/datasets/datasets.ts b/src/resources/cloudforce-one/threat-events/datasets/datasets.ts index 9be7ba1111..2a67c89304 100644 --- a/src/resources/cloudforce-one/threat-events/datasets/datasets.ts +++ b/src/resources/cloudforce-one/threat-events/datasets/datasets.ts @@ -15,7 +15,7 @@ export class Datasets extends APIResource { * ```ts * const dataset = * await client.cloudforceOne.threatEvents.datasets.create({ - * account_id: 0, + * account_id: 'account_id', * isPublic: true, * name: 'x', * }); @@ -36,7 +36,7 @@ export class Datasets extends APIResource { * ```ts * const datasets = * await client.cloudforceOne.threatEvents.datasets.list({ - * account_id: 0, + * account_id: 'account_id', * }); * ``` */ @@ -53,7 +53,7 @@ export class Datasets extends APIResource { * const response = * await client.cloudforceOne.threatEvents.datasets.edit( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - * { account_id: 0, isPublic: true, name: 'x' }, + * { account_id: 'account_id', isPublic: true, name: 'x' }, * ); * ``` */ @@ -77,7 +77,7 @@ export class Datasets extends APIResource { * const dataset = * await client.cloudforceOne.threatEvents.datasets.get( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -99,7 +99,7 @@ export class Datasets extends APIResource { * await client.cloudforceOne.threatEvents.datasets.raw( * 'dataset_id', * 'event_id', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -171,7 +171,7 @@ export interface DatasetCreateParams { /** * Path param: Account ID. */ - account_id: number; + account_id: string; /** * Body param: If true, then anyone can search the dataset. If false, then its @@ -189,14 +189,14 @@ export interface DatasetListParams { /** * Account ID. */ - account_id: number; + account_id: string; } export interface DatasetEditParams { /** * Path param: Account ID. */ - account_id: number; + account_id: string; /** * Body param: If true, then anyone can search the dataset. If false, then its @@ -214,14 +214,14 @@ export interface DatasetGetParams { /** * Account ID. */ - account_id: number; + account_id: string; } export interface DatasetRawParams { /** * Account ID. */ - account_id: number; + account_id: string; } Datasets.Health = Health; diff --git a/src/resources/cloudforce-one/threat-events/datasets/health.ts b/src/resources/cloudforce-one/threat-events/datasets/health.ts index b6b8d5e817..9fb9d9804f 100644 --- a/src/resources/cloudforce-one/threat-events/datasets/health.ts +++ b/src/resources/cloudforce-one/threat-events/datasets/health.ts @@ -12,7 +12,7 @@ export class Health extends APIResource { * const health = * await client.cloudforceOne.threatEvents.datasets.health.get( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -45,7 +45,7 @@ export interface HealthGetParams { /** * Account ID. */ - account_id: number; + account_id: string; } export declare namespace Health { diff --git a/src/resources/cloudforce-one/threat-events/event-tags.ts b/src/resources/cloudforce-one/threat-events/event-tags.ts index a9d13fc11a..67e2e277e5 100644 --- a/src/resources/cloudforce-one/threat-events/event-tags.ts +++ b/src/resources/cloudforce-one/threat-events/event-tags.ts @@ -12,7 +12,7 @@ export class EventTags extends APIResource { * const eventTag = * await client.cloudforceOne.threatEvents.eventTags.create( * 'event_id', - * { account_id: 0, tags: ['botnet'] }, + * { account_id: 'account_id', tags: ['botnet'] }, * ); * ``` */ @@ -38,7 +38,7 @@ export class EventTags extends APIResource { * const eventTag = * await client.cloudforceOne.threatEvents.eventTags.delete( * 'event_id', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -69,7 +69,7 @@ export interface EventTagCreateParams { /** * Path param: Account ID. */ - account_id: number; + account_id: string; /** * Body param: @@ -81,7 +81,7 @@ export interface EventTagDeleteParams { /** * Account ID. */ - account_id: number; + account_id: string; } export declare namespace EventTags { diff --git a/src/resources/cloudforce-one/threat-events/indicator-types.ts b/src/resources/cloudforce-one/threat-events/indicator-types.ts index 29ec907342..7fa1b77a16 100644 --- a/src/resources/cloudforce-one/threat-events/indicator-types.ts +++ b/src/resources/cloudforce-one/threat-events/indicator-types.ts @@ -11,7 +11,7 @@ export class IndicatorTypes extends APIResource { * ```ts * const indicatorTypes = * await client.cloudforceOne.threatEvents.indicatorTypes.list( - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -40,7 +40,7 @@ export interface IndicatorTypeListParams { /** * Account ID. */ - account_id: number; + account_id: string; } export declare namespace IndicatorTypes { diff --git a/src/resources/cloudforce-one/threat-events/insights.ts b/src/resources/cloudforce-one/threat-events/insights.ts index 869d42b6d0..b20b1bc870 100644 --- a/src/resources/cloudforce-one/threat-events/insights.ts +++ b/src/resources/cloudforce-one/threat-events/insights.ts @@ -13,7 +13,7 @@ export class Insights extends APIResource { * await client.cloudforceOne.threatEvents.insights.create( * 'event_id', * { - * account_id: 0, + * account_id: 'account_id', * content: * 'Here is some additional context _in markdown_', * }, @@ -43,7 +43,7 @@ export class Insights extends APIResource { * await client.cloudforceOne.threatEvents.insights.delete( * 'event_id', * 'insight_id', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -72,7 +72,7 @@ export class Insights extends APIResource { * 'event_id', * 'insight_id', * { - * account_id: 0, + * account_id: 'account_id', * content: * 'Updated: Here is some additional context _in markdown_', * }, @@ -103,7 +103,7 @@ export class Insights extends APIResource { * await client.cloudforceOne.threatEvents.insights.get( * 'event_id', * 'insight_id', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -149,7 +149,7 @@ export interface InsightCreateParams { /** * Path param: Account ID. */ - account_id: number; + account_id: string; /** * Body param: @@ -161,14 +161,14 @@ export interface InsightDeleteParams { /** * Account ID. */ - account_id: number; + account_id: string; } export interface InsightEditParams { /** * Path param: Account ID. */ - account_id: number; + account_id: string; /** * Body param: @@ -180,7 +180,7 @@ export interface InsightGetParams { /** * Account ID. */ - account_id: number; + account_id: string; } export declare namespace Insights { diff --git a/src/resources/cloudforce-one/threat-events/raw.ts b/src/resources/cloudforce-one/threat-events/raw.ts index 612d03e527..d2069e55fb 100644 --- a/src/resources/cloudforce-one/threat-events/raw.ts +++ b/src/resources/cloudforce-one/threat-events/raw.ts @@ -13,7 +13,7 @@ export class Raw extends APIResource { * await client.cloudforceOne.threatEvents.raw.edit( * 'event_id', * 'raw_id', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -38,7 +38,7 @@ export class Raw extends APIResource { * const raw = await client.cloudforceOne.threatEvents.raw.get( * 'event_id', * 'raw_id', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -77,7 +77,7 @@ export interface RawEditParams { /** * Path param: Account ID. */ - account_id: number; + account_id: string; /** * Body param: @@ -99,7 +99,7 @@ export interface RawGetParams { /** * Account ID. */ - account_id: number; + account_id: string; } export declare namespace Raw { diff --git a/src/resources/cloudforce-one/threat-events/relate.ts b/src/resources/cloudforce-one/threat-events/relate.ts index 217a4c79d1..798ccc50be 100644 --- a/src/resources/cloudforce-one/threat-events/relate.ts +++ b/src/resources/cloudforce-one/threat-events/relate.ts @@ -12,7 +12,7 @@ export class Relate extends APIResource { * const relate = * await client.cloudforceOne.threatEvents.relate.delete( * 'event_id', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -39,7 +39,7 @@ export interface RelateDeleteParams { /** * Account ID. */ - account_id: number; + account_id: string; } export declare namespace Relate { diff --git a/src/resources/cloudforce-one/threat-events/tags.ts b/src/resources/cloudforce-one/threat-events/tags.ts index 8b3df0a28c..f014fd5f61 100644 --- a/src/resources/cloudforce-one/threat-events/tags.ts +++ b/src/resources/cloudforce-one/threat-events/tags.ts @@ -11,7 +11,7 @@ export class Tags extends APIResource { * ```ts * const tag = * await client.cloudforceOne.threatEvents.tags.create({ - * account_id: 0, + * account_id: 'account_id', * name: 'name', * }); * ``` @@ -35,7 +35,7 @@ export interface TagCreateParams { /** * Path param: Account ID. */ - account_id: number; + account_id: string; /** * Body param: diff --git a/src/resources/cloudforce-one/threat-events/target-industries.ts b/src/resources/cloudforce-one/threat-events/target-industries.ts index 6d6531e560..06a6f38e30 100644 --- a/src/resources/cloudforce-one/threat-events/target-industries.ts +++ b/src/resources/cloudforce-one/threat-events/target-industries.ts @@ -11,7 +11,7 @@ export class TargetIndustries extends APIResource { * ```ts * const targetIndustries = * await client.cloudforceOne.threatEvents.targetIndustries.list( - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -40,7 +40,7 @@ export interface TargetIndustryListParams { /** * Account ID. */ - account_id: number; + account_id: string; } export declare namespace TargetIndustries { diff --git a/src/resources/cloudforce-one/threat-events/threat-events.ts b/src/resources/cloudforce-one/threat-events/threat-events.ts index 3df87d8230..d21cb6e62d 100644 --- a/src/resources/cloudforce-one/threat-events/threat-events.ts +++ b/src/resources/cloudforce-one/threat-events/threat-events.ts @@ -93,7 +93,7 @@ export class ThreatEvents extends APIResource { * ```ts * const threatEvent = * await client.cloudforceOne.threatEvents.create({ - * account_id: 0, + * account_id: 'account_id', * attacker: 'Flying Yeti', * attackerCountry: 'CN', * category: 'Domain Resolution', @@ -123,7 +123,7 @@ export class ThreatEvents extends APIResource { * ```ts * const threatEvents = * await client.cloudforceOne.threatEvents.list({ - * account_id: 0, + * account_id: 'account_id', * }); * ``` */ @@ -146,7 +146,7 @@ export class ThreatEvents extends APIResource { * const threatEvent = * await client.cloudforceOne.threatEvents.delete( * 'event_id', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -169,7 +169,7 @@ export class ThreatEvents extends APIResource { * ```ts * const response = * await client.cloudforceOne.threatEvents.bulkCreate({ - * account_id: 0, + * account_id: 'account_id', * data: [ * { * attacker: 'Flying Yeti', @@ -205,7 +205,7 @@ export class ThreatEvents extends APIResource { * ```ts * const response = * await client.cloudforceOne.threatEvents.edit('event_id', { - * account_id: 0, + * account_id: 'account_id', * }); * ``` */ @@ -228,7 +228,7 @@ export class ThreatEvents extends APIResource { * ```ts * const threatEvent = * await client.cloudforceOne.threatEvents.get('event_id', { - * account_id: 0, + * account_id: 'account_id', * }); * ``` */ @@ -539,7 +539,7 @@ export interface ThreatEventCreateParams { /** * Path param: Account ID. */ - account_id: number; + account_id: string; /** * Body param: @@ -626,7 +626,7 @@ export interface ThreatEventListParams { /** * Path param: Account ID. */ - account_id: number; + account_id: string; /** * Query param: @@ -690,14 +690,14 @@ export interface ThreatEventDeleteParams { /** * Account ID. */ - account_id: number; + account_id: string; } export interface ThreatEventBulkCreateParams { /** * Path param: Account ID. */ - account_id: number; + account_id: string; /** * Body param: @@ -756,7 +756,7 @@ export interface ThreatEventEditParams { /** * Path param: Account ID. */ - account_id: number; + account_id: string; /** * Body param: @@ -813,7 +813,7 @@ export interface ThreatEventGetParams { /** * Account ID. */ - account_id: number; + account_id: string; } ThreatEvents.Attackers = Attackers; diff --git a/src/resources/magic-transit/connectors/events/events.ts b/src/resources/magic-transit/connectors/events/events.ts index de78b2b073..c3d8e75cbc 100644 --- a/src/resources/magic-transit/connectors/events/events.ts +++ b/src/resources/magic-transit/connectors/events/events.ts @@ -16,7 +16,7 @@ export class Events extends APIResource { * const events = * await client.magicTransit.connectors.events.list( * 'connector_id', - * { account_id: 0, from: 0, to: 0 }, + * { account_id: 'account_id', from: 0, to: 0 }, * ); * ``` */ @@ -44,7 +44,7 @@ export class Events extends APIResource { * 'connector_id', * 0, * 0, - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -253,7 +253,7 @@ export interface EventListParams { /** * Path param: */ - account_id: number; + account_id: string; /** * Query param: @@ -277,7 +277,7 @@ export interface EventListParams { } export interface EventGetParams { - account_id: number; + account_id: string; } Events.Latest = Latest; diff --git a/src/resources/magic-transit/connectors/events/latest.ts b/src/resources/magic-transit/connectors/events/latest.ts index 60da28dfa0..961d7eba87 100644 --- a/src/resources/magic-transit/connectors/events/latest.ts +++ b/src/resources/magic-transit/connectors/events/latest.ts @@ -12,7 +12,7 @@ export class Latest extends APIResource { * const latests = * await client.magicTransit.connectors.events.latest.list( * 'connector_id', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -192,7 +192,7 @@ export namespace LatestListResponse { } export interface LatestListParams { - account_id: number; + account_id: string; } export declare namespace Latest { diff --git a/src/resources/magic-transit/connectors/snapshots/latest.ts b/src/resources/magic-transit/connectors/snapshots/latest.ts index 0b5a66b982..3316136604 100644 --- a/src/resources/magic-transit/connectors/snapshots/latest.ts +++ b/src/resources/magic-transit/connectors/snapshots/latest.ts @@ -12,7 +12,7 @@ export class Latest extends APIResource { * const latests = * await client.magicTransit.connectors.snapshots.latest.list( * 'connector_id', - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -1284,7 +1284,7 @@ export namespace LatestListResponse { } export interface LatestListParams { - account_id: number; + account_id: string; } export declare namespace Latest { diff --git a/src/resources/magic-transit/connectors/snapshots/snapshots.ts b/src/resources/magic-transit/connectors/snapshots/snapshots.ts index ee1a54b66a..9152ee8c9e 100644 --- a/src/resources/magic-transit/connectors/snapshots/snapshots.ts +++ b/src/resources/magic-transit/connectors/snapshots/snapshots.ts @@ -16,7 +16,7 @@ export class Snapshots extends APIResource { * const snapshots = * await client.magicTransit.connectors.snapshots.list( * 'connector_id', - * { account_id: 0, from: 0, to: 0 }, + * { account_id: 'account_id', from: 0, to: 0 }, * ); * ``` */ @@ -43,7 +43,7 @@ export class Snapshots extends APIResource { * await client.magicTransit.connectors.snapshots.get( * 'connector_id', * 0, - * { account_id: 0 }, + * { account_id: 'account_id' }, * ); * ``` */ @@ -1333,7 +1333,7 @@ export interface SnapshotListParams { /** * Path param: */ - account_id: number; + account_id: string; /** * Query param: @@ -1357,7 +1357,7 @@ export interface SnapshotListParams { } export interface SnapshotGetParams { - account_id: number; + account_id: string; } Snapshots.Latest = Latest; diff --git a/tests/api-resources/cloudforce-one/threat-events/attackers.test.ts b/tests/api-resources/cloudforce-one/threat-events/attackers.test.ts index f5b35086c8..3d861102d4 100644 --- a/tests/api-resources/cloudforce-one/threat-events/attackers.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/attackers.test.ts @@ -12,7 +12,7 @@ const client = new Cloudflare({ describe('resource attackers', () => { // TODO: HTTP 401 from prism test.skip('list: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.attackers.list({ account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.attackers.list({ account_id: 'account_id' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,6 +24,6 @@ describe('resource attackers', () => { // TODO: HTTP 401 from prism test.skip('list: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.attackers.list({ account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.attackers.list({ account_id: 'account_id' }); }); }); diff --git a/tests/api-resources/cloudforce-one/threat-events/categories.test.ts b/tests/api-resources/cloudforce-one/threat-events/categories.test.ts index 91f5841839..3d633e568a 100644 --- a/tests/api-resources/cloudforce-one/threat-events/categories.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/categories.test.ts @@ -13,7 +13,7 @@ describe('resource categories', () => { // TODO: HTTP 401 from prism test.skip('create: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.categories.create({ - account_id: 0, + account_id: 'account_id', killChain: 0, name: 'name', }); @@ -29,7 +29,7 @@ describe('resource categories', () => { // TODO: HTTP 401 from prism test.skip('create: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.categories.create({ - account_id: 0, + account_id: 'account_id', killChain: 0, name: 'name', mitreAttack: ['T1234'], @@ -39,7 +39,7 @@ describe('resource categories', () => { // TODO: HTTP 401 from prism test.skip('list: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.categories.list({ account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.categories.list({ account_id: 'account_id' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -51,14 +51,14 @@ describe('resource categories', () => { // TODO: HTTP 401 from prism test.skip('list: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.categories.list({ account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.categories.list({ account_id: 'account_id' }); }); // TODO: HTTP 401 from prism test.skip('delete: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.categories.delete( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { account_id: 0 }, + { account_id: 'account_id' }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -73,7 +73,7 @@ describe('resource categories', () => { test.skip('delete: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.categories.delete( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { account_id: 0 }, + { account_id: 'account_id' }, ); }); @@ -81,7 +81,7 @@ describe('resource categories', () => { test.skip('edit: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.categories.edit( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { account_id: 0 }, + { account_id: 'account_id' }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -96,7 +96,13 @@ describe('resource categories', () => { test.skip('edit: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.categories.edit( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { account_id: 0, killChain: 0, mitreAttack: ['T1234'], name: 'name', shortname: 'shortname' }, + { + account_id: 'account_id', + killChain: 0, + mitreAttack: ['T1234'], + name: 'name', + shortname: 'shortname', + }, ); }); @@ -104,7 +110,7 @@ describe('resource categories', () => { test.skip('get: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.categories.get( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { account_id: 0 }, + { account_id: 'account_id' }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -119,7 +125,7 @@ describe('resource categories', () => { test.skip('get: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.categories.get( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { account_id: 0 }, + { account_id: 'account_id' }, ); }); }); diff --git a/tests/api-resources/cloudforce-one/threat-events/countries.test.ts b/tests/api-resources/cloudforce-one/threat-events/countries.test.ts index e0ae6b5302..766659e393 100644 --- a/tests/api-resources/cloudforce-one/threat-events/countries.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/countries.test.ts @@ -12,7 +12,7 @@ const client = new Cloudflare({ describe('resource countries', () => { // TODO: HTTP 401 from prism test.skip('list: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.countries.list({ account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.countries.list({ account_id: 'account_id' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,6 +24,6 @@ describe('resource countries', () => { // TODO: HTTP 401 from prism test.skip('list: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.countries.list({ account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.countries.list({ account_id: 'account_id' }); }); }); diff --git a/tests/api-resources/cloudforce-one/threat-events/crons.test.ts b/tests/api-resources/cloudforce-one/threat-events/crons.test.ts index cafeed3f39..23bbd23224 100644 --- a/tests/api-resources/cloudforce-one/threat-events/crons.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/crons.test.ts @@ -12,7 +12,7 @@ const client = new Cloudflare({ describe('resource crons', () => { // TODO: HTTP 401 from prism test.skip('list: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.crons.list({ account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.crons.list({ account_id: 'account_id' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,12 +24,12 @@ describe('resource crons', () => { // TODO: HTTP 401 from prism test.skip('list: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.crons.list({ account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.crons.list({ account_id: 'account_id' }); }); // TODO: HTTP 401 from prism test.skip('edit: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.crons.edit({ account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.crons.edit({ account_id: 'account_id' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -41,6 +41,6 @@ describe('resource crons', () => { // TODO: HTTP 401 from prism test.skip('edit: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.crons.edit({ account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.crons.edit({ account_id: 'account_id' }); }); }); diff --git a/tests/api-resources/cloudforce-one/threat-events/datasets/datasets.test.ts b/tests/api-resources/cloudforce-one/threat-events/datasets/datasets.test.ts index 121d7d2f9a..450fb9c3e6 100644 --- a/tests/api-resources/cloudforce-one/threat-events/datasets/datasets.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/datasets/datasets.test.ts @@ -13,7 +13,7 @@ describe('resource datasets', () => { // TODO: HTTP 401 from prism test.skip('create: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.datasets.create({ - account_id: 0, + account_id: 'account_id', isPublic: true, name: 'x', }); @@ -29,7 +29,7 @@ describe('resource datasets', () => { // TODO: HTTP 401 from prism test.skip('create: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.datasets.create({ - account_id: 0, + account_id: 'account_id', isPublic: true, name: 'x', }); @@ -37,7 +37,7 @@ describe('resource datasets', () => { // TODO: HTTP 401 from prism test.skip('list: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.datasets.list({ account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.datasets.list({ account_id: 'account_id' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,14 +49,14 @@ describe('resource datasets', () => { // TODO: HTTP 401 from prism test.skip('list: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.datasets.list({ account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.datasets.list({ account_id: 'account_id' }); }); // TODO: HTTP 401 from prism test.skip('edit: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.datasets.edit( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { account_id: 0, isPublic: true, name: 'x' }, + { account_id: 'account_id', isPublic: true, name: 'x' }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -71,7 +71,7 @@ describe('resource datasets', () => { test.skip('edit: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.datasets.edit( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { account_id: 0, isPublic: true, name: 'x' }, + { account_id: 'account_id', isPublic: true, name: 'x' }, ); }); @@ -79,7 +79,7 @@ describe('resource datasets', () => { test.skip('get: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.datasets.get( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { account_id: 0 }, + { account_id: 'account_id' }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -94,14 +94,14 @@ describe('resource datasets', () => { test.skip('get: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.datasets.get( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { account_id: 0 }, + { account_id: 'account_id' }, ); }); // TODO: HTTP 401 from prism test.skip('raw: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.datasets.raw('dataset_id', 'event_id', { - account_id: 0, + account_id: 'account_id', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -115,7 +115,7 @@ describe('resource datasets', () => { // TODO: HTTP 401 from prism test.skip('raw: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.datasets.raw('dataset_id', 'event_id', { - account_id: 0, + account_id: 'account_id', }); }); }); diff --git a/tests/api-resources/cloudforce-one/threat-events/datasets/health.test.ts b/tests/api-resources/cloudforce-one/threat-events/datasets/health.test.ts index 33c75b556a..c214a9d823 100644 --- a/tests/api-resources/cloudforce-one/threat-events/datasets/health.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/datasets/health.test.ts @@ -13,7 +13,7 @@ describe('resource health', () => { test('get: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.datasets.health.get( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { account_id: 0 }, + { account_id: 'account_id' }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -27,7 +27,7 @@ describe('resource health', () => { test('get: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.datasets.health.get( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - { account_id: 0 }, + { account_id: 'account_id' }, ); }); }); diff --git a/tests/api-resources/cloudforce-one/threat-events/event-tags.test.ts b/tests/api-resources/cloudforce-one/threat-events/event-tags.test.ts index 0b0a87ffc2..45f2d474fd 100644 --- a/tests/api-resources/cloudforce-one/threat-events/event-tags.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/event-tags.test.ts @@ -13,7 +13,7 @@ describe('resource eventTags', () => { // TODO: HTTP 401 from prism test.skip('create: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.eventTags.create('event_id', { - account_id: 0, + account_id: 'account_id', tags: ['botnet'], }); const rawResponse = await responsePromise.asResponse(); @@ -28,14 +28,16 @@ describe('resource eventTags', () => { // TODO: HTTP 401 from prism test.skip('create: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.eventTags.create('event_id', { - account_id: 0, + account_id: 'account_id', tags: ['botnet'], }); }); // TODO: HTTP 401 from prism test.skip('delete: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.eventTags.delete('event_id', { account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.eventTags.delete('event_id', { + account_id: 'account_id', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,6 +49,8 @@ describe('resource eventTags', () => { // TODO: HTTP 401 from prism test.skip('delete: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.eventTags.delete('event_id', { account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.eventTags.delete('event_id', { + account_id: 'account_id', + }); }); }); diff --git a/tests/api-resources/cloudforce-one/threat-events/indicator-types.test.ts b/tests/api-resources/cloudforce-one/threat-events/indicator-types.test.ts index 8dc944d1a7..9bd29bee68 100644 --- a/tests/api-resources/cloudforce-one/threat-events/indicator-types.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/indicator-types.test.ts @@ -12,7 +12,9 @@ const client = new Cloudflare({ describe('resource indicatorTypes', () => { // TODO: HTTP 401 from prism test.skip('list: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.indicatorTypes.list({ account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.indicatorTypes.list({ + account_id: 'account_id', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,6 +26,8 @@ describe('resource indicatorTypes', () => { // TODO: HTTP 401 from prism test.skip('list: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.indicatorTypes.list({ account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.indicatorTypes.list({ + account_id: 'account_id', + }); }); }); diff --git a/tests/api-resources/cloudforce-one/threat-events/insights.test.ts b/tests/api-resources/cloudforce-one/threat-events/insights.test.ts index fb4ad00ead..1b503085e8 100644 --- a/tests/api-resources/cloudforce-one/threat-events/insights.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/insights.test.ts @@ -13,7 +13,7 @@ describe('resource insights', () => { // TODO: HTTP 401 from prism test.skip('create: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.insights.create('event_id', { - account_id: 0, + account_id: 'account_id', content: 'Here is some additional context _in markdown_', }); const rawResponse = await responsePromise.asResponse(); @@ -28,7 +28,7 @@ describe('resource insights', () => { // TODO: HTTP 401 from prism test.skip('create: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.insights.create('event_id', { - account_id: 0, + account_id: 'account_id', content: 'Here is some additional context _in markdown_', }); }); @@ -36,7 +36,7 @@ describe('resource insights', () => { // TODO: HTTP 401 from prism test.skip('delete: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.insights.delete('event_id', 'insight_id', { - account_id: 0, + account_id: 'account_id', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -50,14 +50,14 @@ describe('resource insights', () => { // TODO: HTTP 401 from prism test.skip('delete: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.insights.delete('event_id', 'insight_id', { - account_id: 0, + account_id: 'account_id', }); }); // TODO: HTTP 401 from prism test.skip('edit: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.insights.edit('event_id', 'insight_id', { - account_id: 0, + account_id: 'account_id', content: 'Updated: Here is some additional context _in markdown_', }); const rawResponse = await responsePromise.asResponse(); @@ -72,7 +72,7 @@ describe('resource insights', () => { // TODO: HTTP 401 from prism test.skip('edit: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.insights.edit('event_id', 'insight_id', { - account_id: 0, + account_id: 'account_id', content: 'Updated: Here is some additional context _in markdown_', }); }); @@ -80,7 +80,7 @@ describe('resource insights', () => { // TODO: HTTP 401 from prism test.skip('get: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.insights.get('event_id', 'insight_id', { - account_id: 0, + account_id: 'account_id', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -94,7 +94,7 @@ describe('resource insights', () => { // TODO: HTTP 401 from prism test.skip('get: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.insights.get('event_id', 'insight_id', { - account_id: 0, + account_id: 'account_id', }); }); }); diff --git a/tests/api-resources/cloudforce-one/threat-events/raw.test.ts b/tests/api-resources/cloudforce-one/threat-events/raw.test.ts index 4c8721bc49..cb2667689e 100644 --- a/tests/api-resources/cloudforce-one/threat-events/raw.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/raw.test.ts @@ -13,7 +13,7 @@ describe('resource raw', () => { // TODO: HTTP 401 from prism test.skip('edit: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.raw.edit('event_id', 'raw_id', { - account_id: 0, + account_id: 'account_id', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -27,7 +27,7 @@ describe('resource raw', () => { // TODO: HTTP 401 from prism test.skip('edit: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.raw.edit('event_id', 'raw_id', { - account_id: 0, + account_id: 'account_id', data: {}, source: 'example.com', tlp: 'amber', @@ -37,7 +37,7 @@ describe('resource raw', () => { // TODO: HTTP 401 from prism test.skip('get: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.raw.get('event_id', 'raw_id', { - account_id: 0, + account_id: 'account_id', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -50,6 +50,8 @@ describe('resource raw', () => { // TODO: HTTP 401 from prism test.skip('get: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.raw.get('event_id', 'raw_id', { account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.raw.get('event_id', 'raw_id', { + account_id: 'account_id', + }); }); }); diff --git a/tests/api-resources/cloudforce-one/threat-events/relate.test.ts b/tests/api-resources/cloudforce-one/threat-events/relate.test.ts index f182388fdd..9b3d0d001b 100644 --- a/tests/api-resources/cloudforce-one/threat-events/relate.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/relate.test.ts @@ -12,7 +12,9 @@ const client = new Cloudflare({ describe('resource relate', () => { // TODO: HTTP 401 from prism test.skip('delete: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.relate.delete('event_id', { account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.relate.delete('event_id', { + account_id: 'account_id', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,6 +26,8 @@ describe('resource relate', () => { // TODO: HTTP 401 from prism test.skip('delete: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.relate.delete('event_id', { account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.relate.delete('event_id', { + account_id: 'account_id', + }); }); }); diff --git a/tests/api-resources/cloudforce-one/threat-events/tags.test.ts b/tests/api-resources/cloudforce-one/threat-events/tags.test.ts index dc47ca9fcc..28a26784e5 100644 --- a/tests/api-resources/cloudforce-one/threat-events/tags.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/tags.test.ts @@ -12,7 +12,10 @@ const client = new Cloudflare({ describe('resource tags', () => { // TODO: HTTP 401 from prism test.skip('create: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.tags.create({ account_id: 0, name: 'name' }); + const responsePromise = client.cloudforceOne.threatEvents.tags.create({ + account_id: 'account_id', + name: 'name', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,6 +27,9 @@ describe('resource tags', () => { // TODO: HTTP 401 from prism test.skip('create: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.tags.create({ account_id: 0, name: 'name' }); + const response = await client.cloudforceOne.threatEvents.tags.create({ + account_id: 'account_id', + name: 'name', + }); }); }); diff --git a/tests/api-resources/cloudforce-one/threat-events/target-industries.test.ts b/tests/api-resources/cloudforce-one/threat-events/target-industries.test.ts index 1edbc015cb..49a7540c90 100644 --- a/tests/api-resources/cloudforce-one/threat-events/target-industries.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/target-industries.test.ts @@ -12,7 +12,9 @@ const client = new Cloudflare({ describe('resource targetIndustries', () => { // TODO: HTTP 401 from prism test.skip('list: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.targetIndustries.list({ account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.targetIndustries.list({ + account_id: 'account_id', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,6 +26,8 @@ describe('resource targetIndustries', () => { // TODO: HTTP 401 from prism test.skip('list: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.targetIndustries.list({ account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.targetIndustries.list({ + account_id: 'account_id', + }); }); }); diff --git a/tests/api-resources/cloudforce-one/threat-events/threat-events.test.ts b/tests/api-resources/cloudforce-one/threat-events/threat-events.test.ts index 687745632e..9b4ab47939 100644 --- a/tests/api-resources/cloudforce-one/threat-events/threat-events.test.ts +++ b/tests/api-resources/cloudforce-one/threat-events/threat-events.test.ts @@ -13,7 +13,7 @@ describe('resource threatEvents', () => { // TODO: HTTP 401 from prism test.skip('create: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.create({ - account_id: 0, + account_id: 'account_id', attacker: 'Flying Yeti', attackerCountry: 'CN', category: 'Domain Resolution', @@ -35,7 +35,7 @@ describe('resource threatEvents', () => { // TODO: HTTP 401 from prism test.skip('create: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.create({ - account_id: 0, + account_id: 'account_id', attacker: 'Flying Yeti', attackerCountry: 'CN', category: 'Domain Resolution', @@ -55,7 +55,7 @@ describe('resource threatEvents', () => { // TODO: HTTP 401 from prism test.skip('list: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.list({ account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.list({ account_id: 'account_id' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -68,7 +68,7 @@ describe('resource threatEvents', () => { // TODO: HTTP 401 from prism test.skip('list: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.list({ - account_id: 0, + account_id: 'account_id', datasetId: ['string'], forceRefresh: true, order: 'asc', @@ -81,7 +81,9 @@ describe('resource threatEvents', () => { // TODO: HTTP 401 from prism test.skip('delete: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.delete('event_id', { account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.delete('event_id', { + account_id: 'account_id', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -93,13 +95,13 @@ describe('resource threatEvents', () => { // TODO: HTTP 401 from prism test.skip('delete: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.delete('event_id', { account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.delete('event_id', { account_id: 'account_id' }); }); // TODO: HTTP 401 from prism test.skip('bulkCreate: only required params', async () => { const responsePromise = client.cloudforceOne.threatEvents.bulkCreate({ - account_id: 0, + account_id: 'account_id', data: [ { attacker: 'Flying Yeti', @@ -126,7 +128,7 @@ describe('resource threatEvents', () => { // TODO: HTTP 401 from prism test.skip('bulkCreate: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.bulkCreate({ - account_id: 0, + account_id: 'account_id', data: [ { attacker: 'Flying Yeti', @@ -151,7 +153,7 @@ describe('resource threatEvents', () => { // TODO: HTTP 401 from prism test.skip('edit: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.edit('event_id', { account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.edit('event_id', { account_id: 'account_id' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -164,7 +166,7 @@ describe('resource threatEvents', () => { // TODO: HTTP 401 from prism test.skip('edit: required and optional params', async () => { const response = await client.cloudforceOne.threatEvents.edit('event_id', { - account_id: 0, + account_id: 'account_id', attacker: 'Flying Yeti', attackerCountry: 'CN', category: 'Domain Resolution', @@ -180,7 +182,7 @@ describe('resource threatEvents', () => { // TODO: HTTP 401 from prism test.skip('get: only required params', async () => { - const responsePromise = client.cloudforceOne.threatEvents.get('event_id', { account_id: 0 }); + const responsePromise = client.cloudforceOne.threatEvents.get('event_id', { account_id: 'account_id' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -192,6 +194,6 @@ describe('resource threatEvents', () => { // TODO: HTTP 401 from prism test.skip('get: required and optional params', async () => { - const response = await client.cloudforceOne.threatEvents.get('event_id', { account_id: 0 }); + const response = await client.cloudforceOne.threatEvents.get('event_id', { account_id: 'account_id' }); }); }); diff --git a/tests/api-resources/magic-transit/connectors/events/events.test.ts b/tests/api-resources/magic-transit/connectors/events/events.test.ts index c5a4f89199..ee5e3c2c8b 100644 --- a/tests/api-resources/magic-transit/connectors/events/events.test.ts +++ b/tests/api-resources/magic-transit/connectors/events/events.test.ts @@ -12,7 +12,7 @@ const client = new Cloudflare({ describe('resource events', () => { test('list: only required params', async () => { const responsePromise = client.magicTransit.connectors.events.list('connector_id', { - account_id: 0, + account_id: 'account_id', from: 0, to: 0, }); @@ -27,7 +27,7 @@ describe('resource events', () => { test('list: required and optional params', async () => { const response = await client.magicTransit.connectors.events.list('connector_id', { - account_id: 0, + account_id: 'account_id', from: 0, to: 0, cursor: 'cursor', @@ -37,7 +37,7 @@ describe('resource events', () => { test('get: only required params', async () => { const responsePromise = client.magicTransit.connectors.events.get('connector_id', 0, 0, { - account_id: 0, + account_id: 'account_id', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -49,6 +49,8 @@ describe('resource events', () => { }); test('get: required and optional params', async () => { - const response = await client.magicTransit.connectors.events.get('connector_id', 0, 0, { account_id: 0 }); + const response = await client.magicTransit.connectors.events.get('connector_id', 0, 0, { + account_id: 'account_id', + }); }); }); diff --git a/tests/api-resources/magic-transit/connectors/events/latest.test.ts b/tests/api-resources/magic-transit/connectors/events/latest.test.ts index b86d61cc00..7fb27c4e7b 100644 --- a/tests/api-resources/magic-transit/connectors/events/latest.test.ts +++ b/tests/api-resources/magic-transit/connectors/events/latest.test.ts @@ -12,7 +12,7 @@ const client = new Cloudflare({ describe('resource latest', () => { test('list: only required params', async () => { const responsePromise = client.magicTransit.connectors.events.latest.list('connector_id', { - account_id: 0, + account_id: 'account_id', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -25,7 +25,7 @@ describe('resource latest', () => { test('list: required and optional params', async () => { const response = await client.magicTransit.connectors.events.latest.list('connector_id', { - account_id: 0, + account_id: 'account_id', }); }); }); diff --git a/tests/api-resources/magic-transit/connectors/snapshots/latest.test.ts b/tests/api-resources/magic-transit/connectors/snapshots/latest.test.ts index 96b80934cd..03f22184e3 100644 --- a/tests/api-resources/magic-transit/connectors/snapshots/latest.test.ts +++ b/tests/api-resources/magic-transit/connectors/snapshots/latest.test.ts @@ -12,7 +12,7 @@ const client = new Cloudflare({ describe('resource latest', () => { test('list: only required params', async () => { const responsePromise = client.magicTransit.connectors.snapshots.latest.list('connector_id', { - account_id: 0, + account_id: 'account_id', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -25,7 +25,7 @@ describe('resource latest', () => { test('list: required and optional params', async () => { const response = await client.magicTransit.connectors.snapshots.latest.list('connector_id', { - account_id: 0, + account_id: 'account_id', }); }); }); diff --git a/tests/api-resources/magic-transit/connectors/snapshots/snapshots.test.ts b/tests/api-resources/magic-transit/connectors/snapshots/snapshots.test.ts index 4717483a1d..f3d03136f5 100644 --- a/tests/api-resources/magic-transit/connectors/snapshots/snapshots.test.ts +++ b/tests/api-resources/magic-transit/connectors/snapshots/snapshots.test.ts @@ -12,7 +12,7 @@ const client = new Cloudflare({ describe('resource snapshots', () => { test('list: only required params', async () => { const responsePromise = client.magicTransit.connectors.snapshots.list('connector_id', { - account_id: 0, + account_id: 'account_id', from: 0, to: 0, }); @@ -27,7 +27,7 @@ describe('resource snapshots', () => { test('list: required and optional params', async () => { const response = await client.magicTransit.connectors.snapshots.list('connector_id', { - account_id: 0, + account_id: 'account_id', from: 0, to: 0, cursor: 'cursor', @@ -37,7 +37,7 @@ describe('resource snapshots', () => { test('get: only required params', async () => { const responsePromise = client.magicTransit.connectors.snapshots.get('connector_id', 0, { - account_id: 0, + account_id: 'account_id', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -49,6 +49,8 @@ describe('resource snapshots', () => { }); test('get: required and optional params', async () => { - const response = await client.magicTransit.connectors.snapshots.get('connector_id', 0, { account_id: 0 }); + const response = await client.magicTransit.connectors.snapshots.get('connector_id', 0, { + account_id: 'account_id', + }); }); }); From c1c13ac4cebb7920c33337dc0c1f6ac80a319de7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 18:26:31 +0000 Subject: [PATCH 263/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index fb95d2b43f..85aad57244 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dc675acbdcab1131f3681a184a8515deca17471c93595473e2474c4b5fafc7e2.yml -openapi_spec_hash: 41b14e228d5ef99f8e1e09732ce2679c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4d16174aea43a533ff1220a9071a7a980e106c1ebe3451655e9462946ea2ad2a.yml +openapi_spec_hash: ca3793864d354c1d505730523406f865 config_hash: 22b6cc50203041358f4b2b4e832b009d From 282d935b3dfe4100ba91b2d5918e6e1513771ede Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 18:55:14 +0000 Subject: [PATCH 264/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 85aad57244..0dff35918c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4d16174aea43a533ff1220a9071a7a980e106c1ebe3451655e9462946ea2ad2a.yml -openapi_spec_hash: ca3793864d354c1d505730523406f865 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-02323b4f0ade9b6ff0b23bf3057d036e799c33b719dc4d2eb0ada0b1ea78e0c7.yml +openapi_spec_hash: c73d74c8db83c3f575abea84fa119826 config_hash: 22b6cc50203041358f4b2b4e832b009d From 6c5c06ab90aa489e45ae3a26587ce0bd17458453 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 18:59:59 +0000 Subject: [PATCH 265/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0dff35918c..42390bd632 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-02323b4f0ade9b6ff0b23bf3057d036e799c33b719dc4d2eb0ada0b1ea78e0c7.yml -openapi_spec_hash: c73d74c8db83c3f575abea84fa119826 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b4f6a182afe170fbb2b5949fe7e6da469bf216afeceba441059de902771e7073.yml +openapi_spec_hash: c4fa1268c2992fa8db1dd4754bf24af3 config_hash: 22b6cc50203041358f4b2b4e832b009d From 529c9314b8fad9412466c05f6c580fb7a1191957 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 19:09:50 +0000 Subject: [PATCH 266/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 42390bd632..2ef1130c45 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b4f6a182afe170fbb2b5949fe7e6da469bf216afeceba441059de902771e7073.yml -openapi_spec_hash: c4fa1268c2992fa8db1dd4754bf24af3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e462bd84eea287407e309574d88e2b491afabdafe31fadfc98650d0e5526c051.yml +openapi_spec_hash: 7a3b8b121c33ae4ebb2b879a03f139bd config_hash: 22b6cc50203041358f4b2b4e832b009d From 24f9496375c14ae03dbf199fce9905232ef95d41 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 19:12:29 +0000 Subject: [PATCH 267/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2ef1130c45..c32e3024b9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e462bd84eea287407e309574d88e2b491afabdafe31fadfc98650d0e5526c051.yml -openapi_spec_hash: 7a3b8b121c33ae4ebb2b879a03f139bd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8b0f63c7e69b84337efd86101beeae0aee5f42758ab9fe450e18827440de153c.yml +openapi_spec_hash: 5d21a8be18a353386f2586918df3abc4 config_hash: 22b6cc50203041358f4b2b4e832b009d From a003b88437ed495eefa0379ca14a65a55a842588 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 19:14:52 +0000 Subject: [PATCH 268/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c32e3024b9..9d0994b8b5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8b0f63c7e69b84337efd86101beeae0aee5f42758ab9fe450e18827440de153c.yml -openapi_spec_hash: 5d21a8be18a353386f2586918df3abc4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-53ed1c3c953e7aed42001b21b41c084cb940b18d38e5c77500d20c5866ae2729.yml +openapi_spec_hash: a2be125f75cd9bfa8eee1e327ecacba8 config_hash: 22b6cc50203041358f4b2b4e832b009d From 6e3bfb27baf4250a600f942146629c8c17ddc632 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 19:17:59 +0000 Subject: [PATCH 269/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9d0994b8b5..5df9183252 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-53ed1c3c953e7aed42001b21b41c084cb940b18d38e5c77500d20c5866ae2729.yml -openapi_spec_hash: a2be125f75cd9bfa8eee1e327ecacba8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a04d0fda762153839158433b5b874b1e13c8dbcc692c17541fbeac8ba39a76d6.yml +openapi_spec_hash: a683cf91fa1fa3b78403ebb1ee148373 config_hash: 22b6cc50203041358f4b2b4e832b009d From d79d43a6e584c5cedb00e16246cf0e27ec958d97 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 19:47:35 +0000 Subject: [PATCH 270/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5df9183252..9508d6314b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a04d0fda762153839158433b5b874b1e13c8dbcc692c17541fbeac8ba39a76d6.yml -openapi_spec_hash: a683cf91fa1fa3b78403ebb1ee148373 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a4df28d6c7fd24a63d0f5604dd66792458e4c233ed794643fa0c86c14a3035d3.yml +openapi_spec_hash: 5d8aa29e0696dfd71cc1e27c3d520f2e config_hash: 22b6cc50203041358f4b2b4e832b009d From 693467948d83898e264e4fa6650b4df6b53acd56 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 17:56:50 +0000 Subject: [PATCH 271/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9508d6314b..503d0b9b90 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a4df28d6c7fd24a63d0f5604dd66792458e4c233ed794643fa0c86c14a3035d3.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-87cffcb2b7a8c40e24da5ed6c357445c8eb7acdb63152243fd2f1a3f4dba688c.yml openapi_spec_hash: 5d8aa29e0696dfd71cc1e27c3d520f2e -config_hash: 22b6cc50203041358f4b2b4e832b009d +config_hash: 0dd114a2b2b62bbf7e5613e0a5a14dc9 From 27be8af7f8811283a75d0438e7f94b2dcbae355e Mon Sep 17 00:00:00 2001 From: Robert Craigie Date: Mon, 7 Apr 2025 16:58:14 +0100 Subject: [PATCH 272/366] fix(workers): send multipart as json --- src/core.ts | 4 ++ .../dispatch/namespaces/scripts/scripts.ts | 1 + src/resources/workers/scripts/scripts.ts | 1 + src/uploads.ts | 52 ++++++++++++++++--- 4 files changed, 51 insertions(+), 7 deletions(-) diff --git a/src/core.ts b/src/core.ts index 31543a68af..c0dc76418c 100644 --- a/src/core.ts +++ b/src/core.ts @@ -809,6 +809,8 @@ export type RequestOptions< signal?: AbortSignal | undefined | null; idempotencyKey?: string; + __multipartSyntax?: 'json' | 'nested'; + __binaryRequest?: boolean | undefined; __binaryResponse?: boolean | undefined; }; @@ -830,6 +832,8 @@ const requestOptionsKeys: KeysEnum = { signal: true, idempotencyKey: true, + __multipartSyntax: true, + __binaryRequest: true, __binaryResponse: true, }; 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 6b2bbcece8..b23416fe83 100644 --- a/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts +++ b/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts @@ -84,6 +84,7 @@ export class Scripts extends APIResource { Core.maybeMultipartFormRequestOptions({ body: { ...body, ...files }, ...options, + __multipartSyntax: 'json', headers: { 'Content-Type': 'application/javascript', ...options?.headers }, }), ) as Core.APIPromise<{ result: ScriptUpdateResponse }> diff --git a/src/resources/workers/scripts/scripts.ts b/src/resources/workers/scripts/scripts.ts index 11fcdfd9a9..6df2209ef0 100644 --- a/src/resources/workers/scripts/scripts.ts +++ b/src/resources/workers/scripts/scripts.ts @@ -122,6 +122,7 @@ export class Scripts extends APIResource { Core.maybeMultipartFormRequestOptions({ body: { ...body, ...files }, ...options, + __multipartSyntax: 'json', headers: { 'Content-Type': 'application/javascript', ...options?.headers }, }), ) as Core.APIPromise<{ result: ScriptUpdateResponse }> diff --git a/src/uploads.ts b/src/uploads.ts index 8fd2154d4b..f4bbf3626b 100644 --- a/src/uploads.ts +++ b/src/uploads.ts @@ -199,20 +199,23 @@ export const maybeMultipartFormRequestOptions = async > => { if (!hasUploadableValue(opts.body)) return opts; - const form = await createForm(opts.body); + const form = await createForm(opts.body, opts); return getMultipartRequestOptions(form, opts); }; export const multipartFormRequestOptions = async >( opts: RequestOptions, ): Promise> => { - const form = await createForm(opts.body); + const form = await createForm(opts.body, opts); return getMultipartRequestOptions(form, opts); }; -export const createForm = async >(body: T | undefined): Promise => { +export const createForm = async >( + body: T | undefined, + opts?: RequestOptions, +): Promise => { const form = new FormData(); - await Promise.all(Object.entries(body || {}).map(([key, value]) => addFormValue(form, key, value))); + await Promise.all(Object.entries(body || {}).map(([key, value]) => addFormValue(form, key, value, opts))); return form; }; @@ -227,7 +230,16 @@ const hasUploadableValue = (value: unknown): boolean => { return false; }; -const addFormValue = async (form: FormData, key: string, value: unknown): Promise => { +const addFormValue = async ( + form: FormData, + key: string, + value: unknown, + opts?: RequestOptions, +): Promise => { + if (opts?.__multipartSyntax === 'json') { + return await addFormValueJson(form, key, value); + } + if (value === undefined) return; if (value == null) { throw new TypeError( @@ -247,9 +259,35 @@ const addFormValue = async (form: FormData, key: string, value: unknown): Promis await Promise.all( Object.entries(value).map(([name, prop]) => addFormValue(form, `${key}[${name}]`, prop)), ); - } else { + } +}; + +const addFormValueJson = async (form: FormData, key: string, value: unknown): Promise => { + if (value === undefined) return; + if (value == null) { throw new TypeError( - `Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${value} instead`, + `Received null for "${key}"; to pass null in FormData, you must use the string 'null'`, ); } + + // TODO: make nested formats configurable + if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') { + form.append(key, String(value)); + return; + } + + if (isUploadable(value)) { + const file = await toFile(value); + form.append(key, file as File); + return; + } + + if (Array.isArray(value) || typeof value === 'object') { + form.append(key, new File([JSON.stringify(value)], key, { type: 'application/json' })); + return; + } + + throw new TypeError( + `Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${value} instead`, + ); }; From d9218c88c04916fadf473d618a272b6e39042e3d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 19:24:49 +0000 Subject: [PATCH 273/366] fix: add back kv.namespaces bulk methods They have been moved to kv.namespaces.keys by mistake. --- .stats.yml | 2 +- api.md | 6 + src/resources/kv/index.ts | 6 + src/resources/kv/kv.ts | 12 + src/resources/kv/namespaces/index.ts | 6 + src/resources/kv/namespaces/keys.ts | 33 +-- src/resources/kv/namespaces/namespaces.ts | 254 +++++++++++++++++- .../kv/namespaces/namespaces.test.ts | 74 +++++ 8 files changed, 359 insertions(+), 34 deletions(-) diff --git a/.stats.yml b/.stats.yml index 503d0b9b90..bf10504981 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-87cffcb2b7a8c40e24da5ed6c357445c8eb7acdb63152243fd2f1a3f4dba688c.yml openapi_spec_hash: 5d8aa29e0696dfd71cc1e27c3d520f2e -config_hash: 0dd114a2b2b62bbf7e5613e0a5a14dc9 +config_hash: a1b7c5aaad1e2019b29cef1b1da689fc diff --git a/api.md b/api.md index d97995d839..44c172b01b 100644 --- a/api.md +++ b/api.md @@ -2237,6 +2237,9 @@ Types: - Namespace - NamespaceDeleteResponse +- NamespaceBulkDeleteResponse +- NamespaceBulkGetResponse +- NamespaceBulkUpdateResponse Methods: @@ -2244,6 +2247,9 @@ Methods: - client.kv.namespaces.update(namespaceId, { ...params }) -> Namespace - 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 diff --git a/src/resources/kv/index.ts b/src/resources/kv/index.ts index 5fbeebccd7..6b8512b78a 100644 --- a/src/resources/kv/index.ts +++ b/src/resources/kv/index.ts @@ -6,9 +6,15 @@ export { Namespaces, type Namespace, 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 24a0afe934..6edb9e18af 100644 --- a/src/resources/kv/kv.ts +++ b/src/resources/kv/kv.ts @@ -4,6 +4,12 @@ import { APIResource } from '../../resource'; import * as NamespacesAPI from './namespaces/namespaces'; import { Namespace, + NamespaceBulkDeleteParams, + NamespaceBulkDeleteResponse, + NamespaceBulkGetParams, + NamespaceBulkGetResponse, + NamespaceBulkUpdateParams, + NamespaceBulkUpdateResponse, NamespaceCreateParams, NamespaceDeleteParams, NamespaceDeleteResponse, @@ -26,11 +32,17 @@ export declare namespace KV { Namespaces as Namespaces, type Namespace as Namespace, 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 7e10e6dd90..e2cf87739d 100644 --- a/src/resources/kv/namespaces/index.ts +++ b/src/resources/kv/namespaces/index.ts @@ -18,10 +18,16 @@ export { Namespaces, type Namespace, 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 d3be2f2492..dafd863fea 100644 --- a/src/resources/kv/namespaces/keys.ts +++ b/src/resources/kv/namespaces/keys.ts @@ -36,16 +36,7 @@ export class Keys extends APIResource { * Remove multiple KV pairs from the namespace. Body should be an array of up to * 10,000 keys to be removed. * - * @example - * ```ts - * const response = await client.kv.namespaces.keys.bulkDelete( - * '0f2ac74b498b48028cb68387c421e279', - * { - * account_id: '023e105f4ecef8ad9ca31a8372d0c353', - * body: ['My-Key'], - * }, - * ); - * ``` + * @deprecated Please use kv.namespaces.bulk_delete instead */ bulkDelete( namespaceId: string, @@ -67,16 +58,7 @@ export class Keys extends APIResource { * requested to return in JSON, instead of string. Metadata can be return if * withMetadata is true. * - * @example - * ```ts - * const response = await client.kv.namespaces.keys.bulkGet( - * '0f2ac74b498b48028cb68387c421e279', - * { - * account_id: '023e105f4ecef8ad9ca31a8372d0c353', - * keys: ['My-Key'], - * }, - * ); - * ``` + * @deprecated Please use kv.namespaces.bulk_get instead */ bulkGet( namespaceId: string, @@ -100,16 +82,7 @@ export class Keys extends APIResource { * set, `expiration_ttl` is used and `expiration` is ignored. The entire request * size must be 100 megabytes or less. * - * @example - * ```ts - * const response = await client.kv.namespaces.keys.bulkUpdate( - * '0f2ac74b498b48028cb68387c421e279', - * { - * account_id: '023e105f4ecef8ad9ca31a8372d0c353', - * body: [{}], - * }, - * ); - * ``` + * @deprecated Please use kv.namespaces.bulk_update instead */ bulkUpdate( namespaceId: string, diff --git a/src/resources/kv/namespaces/namespaces.ts b/src/resources/kv/namespaces/namespaces.ts index 5094e88251..6fc79c5e77 100644 --- a/src/resources/kv/namespaces/namespaces.ts +++ b/src/resources/kv/namespaces/namespaces.ts @@ -24,7 +24,7 @@ import { ValueGetParams, ValueUpdateParams, ValueUpdateResponse, - Values, + Values as ValuesAPIValues, } from './values'; import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../../pagination'; @@ -134,6 +134,99 @@ 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. + * + * @example + * ```ts + * const response = await client.kv.namespaces.bulkDelete( + * '0f2ac74b498b48028cb68387c421e279', + * { + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', + * body: ['My-Key'], + * }, + * ); + * ``` + */ + 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. + * + * @example + * ```ts + * const response = await client.kv.namespaces.bulkGet( + * '0f2ac74b498b48028cb68387c421e279', + * { + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', + * keys: ['My-Key'], + * }, + * ); + * ``` + */ + bulkGet( + namespaceId: string, + params: NamespaceBulkGetParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + const { account_id, ...body } = params; + return ( + this._client.post(`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/bulk/get`, { + body, + ...options, + }) as Core.APIPromise<{ result: NamespaceBulkGetResponse | null }> + )._thenUnwrap((obj) => obj.result); + } + + /** + * Write multiple keys and values at once. Body should be an array of up to 10,000 + * key-value pairs to be stored, along with optional expiration information. + * 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. + * + * @example + * ```ts + * const response = await client.kv.namespaces.bulkUpdate( + * '0f2ac74b498b48028cb68387c421e279', + * { + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', + * body: [{}], + * }, + * ); + * ``` + */ + 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. * @@ -187,6 +280,70 @@ export interface Namespace { 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 @@ -235,6 +392,91 @@ 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 @@ -246,17 +488,23 @@ Namespaces.NamespacesV4PagePaginationArray = NamespacesV4PagePaginationArray; Namespaces.Keys = Keys; Namespaces.KeysCursorLimitPagination = KeysCursorLimitPagination; Namespaces.Metadata = Metadata; -Namespaces.Values = Values; +Namespaces.Values = ValuesAPIValues; export declare namespace Namespaces { export { type Namespace as Namespace, 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, }; @@ -280,7 +528,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 d09df9c336..c3aa98e19b 100644 --- a/tests/api-resources/kv/namespaces/namespaces.test.ts +++ b/tests/api-resources/kv/namespaces/namespaces.test.ts @@ -92,6 +92,80 @@ 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 383f29e10a2baeb84fc849a93d1275bb377d04dc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 19:45:02 +0000 Subject: [PATCH 274/366] fix(config): Diagnostic errors --- .stats.yml | 4 +- api.md | 1 + src/resources/d1/database.ts | 12 ++--- src/resources/dns/dns.ts | 2 + src/resources/dns/index.ts | 1 + src/resources/dns/records.ts | 95 ++++++++++++++++++++++++++++++++++++ 6 files changed, 107 insertions(+), 8 deletions(-) diff --git a/.stats.yml b/.stats.yml index bf10504981..004283c03d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-87cffcb2b7a8c40e24da5ed6c357445c8eb7acdb63152243fd2f1a3f4dba688c.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-628b27476dcb24be6d178f13e44068933c1e4cf67895b708a62fc182ae35a83a.yml openapi_spec_hash: 5d8aa29e0696dfd71cc1e27c3d520f2e -config_hash: a1b7c5aaad1e2019b29cef1b1da689fc +config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 diff --git a/api.md b/api.md index 44c172b01b..29401ffe7d 100644 --- a/api.md +++ b/api.md @@ -960,6 +960,7 @@ Types: - NAPTRRecord - NSRecord - PTRRecord +- Record - RecordResponse - RecordTags - SMIMEARecord diff --git a/src/resources/d1/database.ts b/src/resources/d1/database.ts index 591c9efa80..905848c187 100644 --- a/src/resources/d1/database.ts +++ b/src/resources/d1/database.ts @@ -789,12 +789,12 @@ export interface DatabaseGetParams { } export type DatabaseImportParams = - | DatabaseImportParams.Variant0 - | DatabaseImportParams.Variant1 - | DatabaseImportParams.Variant2; + | DatabaseImportParams.Init + | DatabaseImportParams.Ingest + | DatabaseImportParams.Poll; export declare namespace DatabaseImportParams { - export interface Variant0 { + export interface Init { /** * Path param: Account identifier tag. */ @@ -813,7 +813,7 @@ export declare namespace DatabaseImportParams { etag: string; } - export interface Variant1 { + export interface Ingest { /** * Path param: Account identifier tag. */ @@ -837,7 +837,7 @@ export declare namespace DatabaseImportParams { filename: string; } - export interface Variant2 { + export interface Poll { /** * Path param: Account identifier tag. */ diff --git a/src/resources/dns/dns.ts b/src/resources/dns/dns.ts index 58e8e105c1..49d6d2b48e 100644 --- a/src/resources/dns/dns.ts +++ b/src/resources/dns/dns.ts @@ -27,6 +27,7 @@ import { NAPTRRecord, NSRecord, PTRRecord, + Record, RecordBatchParams, RecordBatchResponse, RecordCreateParams, @@ -167,6 +168,7 @@ export declare namespace DNS { type NAPTRRecord as NAPTRRecord, type NSRecord as NSRecord, type PTRRecord as PTRRecord, + type Record as Record, type RecordResponse as RecordResponse, type RecordTags as RecordTags, type SMIMEARecord as SMIMEARecord, diff --git a/src/resources/dns/index.ts b/src/resources/dns/index.ts index d92732f317..2f757b2315 100644 --- a/src/resources/dns/index.ts +++ b/src/resources/dns/index.ts @@ -28,6 +28,7 @@ export { type NAPTRRecord, type NSRecord, type PTRRecord, + type Record, type RecordResponse, type RecordTags, type SMIMEARecord, diff --git a/src/resources/dns/records.ts b/src/resources/dns/records.ts index fcc751966c..cef4d639c1 100644 --- a/src/resources/dns/records.ts +++ b/src/resources/dns/records.ts @@ -2943,6 +2943,100 @@ export namespace PTRRecordParam { } } +export type Record = + | ARecord + | AAAARecord + | CNAMERecord + | MXRecord + | NSRecord + | Record.Openpgpkey + | PTRRecord + | TXTRecord + | CAARecord + | CERTRecord + | DNSKEYRecord + | DSRecord + | HTTPSRecord + | LOCRecord + | NAPTRRecord + | SMIMEARecord + | SRVRecord + | SSHFPRecord + | SVCBRecord + | TLSARecord + | URIRecord; + +export namespace Record { + export interface Openpgpkey { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) + */ + content?: string; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: Openpgpkey.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: RecordsAPI.TTL; + + /** + * Record type. + */ + type?: 'OPENPGPKEY'; + } + + export namespace Openpgpkey { + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; + + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } + } +} + export type RecordResponse = | ARecord | AAAARecord @@ -10723,6 +10817,7 @@ export declare namespace Records { type NAPTRRecord as NAPTRRecord, type NSRecord as NSRecord, type PTRRecord as PTRRecord, + type Record as Record, type RecordResponse as RecordResponse, type RecordTags as RecordTags, type SMIMEARecord as SMIMEARecord, From 62cde779962b9692ffa04a486b69cfacd4a9d84f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 17:20:39 +0000 Subject: [PATCH 275/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/cloud-connector/rules.ts | 6 +++--- src/resources/shared.ts | 4 +++- .../zero-trust/gateway/lists/lists.ts | 18 +++++++++++++++-- src/resources/zero-trust/gateway/locations.ts | 2 +- .../tunnels/cloudflared/cloudflared.ts | 20 ++++++++++++++----- src/resources/zero-trust/tunnels/tunnels.ts | 4 +++- .../tunnels/warp-connector/warp-connector.ts | 20 ++++++++++++++----- 8 files changed, 58 insertions(+), 20 deletions(-) diff --git a/.stats.yml b/.stats.yml index 004283c03d..4553261e22 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-628b27476dcb24be6d178f13e44068933c1e4cf67895b708a62fc182ae35a83a.yml -openapi_spec_hash: 5d8aa29e0696dfd71cc1e27c3d520f2e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e5d1a969742a91c1dcd3abbe0f2f84986d5613047fe6591258ec0daa3dbaf0b.yml +openapi_spec_hash: 4dc3b9781cc2519d5ae2e9b35a4005c8 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 diff --git a/src/resources/cloud-connector/rules.ts b/src/resources/cloud-connector/rules.ts index 1290cfee5b..1e2a9e6381 100644 --- a/src/resources/cloud-connector/rules.ts +++ b/src/resources/cloud-connector/rules.ts @@ -57,7 +57,7 @@ export interface RuleUpdateResponse { /** * Cloud Provider type */ - provider?: 'aws_s3' | 'r2' | 'gcp_storage' | 'azure_storage'; + provider?: 'aws_s3' | 'cloudflare_r2' | 'gcp_storage' | 'azure_storage'; } export namespace RuleUpdateResponse { @@ -89,7 +89,7 @@ export interface RuleListResponse { /** * Cloud Provider type */ - provider?: 'aws_s3' | 'r2' | 'gcp_storage' | 'azure_storage'; + provider?: 'aws_s3' | 'cloudflare_r2' | 'gcp_storage' | 'azure_storage'; } export namespace RuleListResponse { @@ -134,7 +134,7 @@ export namespace RuleUpdateParams { /** * Cloud Provider type */ - provider?: 'aws_s3' | 'r2' | 'gcp_storage' | 'azure_storage'; + provider?: 'aws_s3' | 'cloudflare_r2' | 'gcp_storage' | 'azure_storage'; } export namespace Rule { diff --git a/src/resources/shared.ts b/src/resources/shared.ts index a72aeaf21d..f5263b5536 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -141,7 +141,9 @@ export interface CloudflareTunnel { account_tag?: string; /** - * The Cloudflare Tunnel connections between your origin and Cloudflare's edge. + * @deprecated This field will start returning an empty array. To fetch the + * connections of a given tunnel, please use the dedicated endpoint + * `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections` */ connections?: Array; diff --git a/src/resources/zero-trust/gateway/lists/lists.ts b/src/resources/zero-trust/gateway/lists/lists.ts index 557ddaaa18..1a194de9ac 100644 --- a/src/resources/zero-trust/gateway/lists/lists.ts +++ b/src/resources/zero-trust/gateway/lists/lists.ts @@ -321,9 +321,9 @@ export interface ListEditParams { account_id: string; /** - * Body param: The items in the list. + * Body param: items to add to the list. */ - append?: Array; + append?: Array; /** * Body param: A list of the item values you want to remove. @@ -331,6 +331,20 @@ export interface ListEditParams { remove?: Array; } +export namespace ListEditParams { + export interface Append { + /** + * The description of the list item, if present + */ + description?: string; + + /** + * The value of the item in a list. + */ + value?: string; + } +} + export interface ListGetParams { account_id: string; } diff --git a/src/resources/zero-trust/gateway/locations.ts b/src/resources/zero-trust/gateway/locations.ts index 5319d30566..ba5328529e 100644 --- a/src/resources/zero-trust/gateway/locations.ts +++ b/src/resources/zero-trust/gateway/locations.ts @@ -322,7 +322,7 @@ export interface Location { * location's IPv6 address is allocated from the Bring Your Own Ipv6(BYOIPv6) block * and not from the standard CloudFlare IPv6 block. */ - dns_destination_ipv6_block_id?: string; + dns_destination_ipv6_block_id?: string | null; /** * The DNS over HTTPS domain to send DNS requests to. This field is auto-generated diff --git a/src/resources/zero-trust/tunnels/cloudflared/cloudflared.ts b/src/resources/zero-trust/tunnels/cloudflared/cloudflared.ts index 142222112d..5c761048ae 100644 --- a/src/resources/zero-trust/tunnels/cloudflared/cloudflared.ts +++ b/src/resources/zero-trust/tunnels/cloudflared/cloudflared.ts @@ -186,7 +186,9 @@ export namespace CloudflaredCreateResponse { account_tag?: string; /** - * The Cloudflare Tunnel connections between your origin and Cloudflare's edge. + * @deprecated This field will start returning an empty array. To fetch the + * connections of a given tunnel, please use the dedicated endpoint + * `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections` */ connections?: Array; @@ -308,7 +310,9 @@ export namespace CloudflaredListResponse { account_tag?: string; /** - * The Cloudflare Tunnel connections between your origin and Cloudflare's edge. + * @deprecated This field will start returning an empty array. To fetch the + * connections of a given tunnel, please use the dedicated endpoint + * `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections` */ connections?: Array; @@ -430,7 +434,9 @@ export namespace CloudflaredDeleteResponse { account_tag?: string; /** - * The Cloudflare Tunnel connections between your origin and Cloudflare's edge. + * @deprecated This field will start returning an empty array. To fetch the + * connections of a given tunnel, please use the dedicated endpoint + * `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections` */ connections?: Array; @@ -552,7 +558,9 @@ export namespace CloudflaredEditResponse { account_tag?: string; /** - * The Cloudflare Tunnel connections between your origin and Cloudflare's edge. + * @deprecated This field will start returning an empty array. To fetch the + * connections of a given tunnel, please use the dedicated endpoint + * `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections` */ connections?: Array; @@ -674,7 +682,9 @@ export namespace CloudflaredGetResponse { account_tag?: string; /** - * The Cloudflare Tunnel connections between your origin and Cloudflare's edge. + * @deprecated This field will start returning an empty array. To fetch the + * connections of a given tunnel, please use the dedicated endpoint + * `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections` */ connections?: Array; diff --git a/src/resources/zero-trust/tunnels/tunnels.ts b/src/resources/zero-trust/tunnels/tunnels.ts index dbe722242f..98ea3870d7 100644 --- a/src/resources/zero-trust/tunnels/tunnels.ts +++ b/src/resources/zero-trust/tunnels/tunnels.ts @@ -108,7 +108,9 @@ export namespace TunnelListResponse { account_tag?: string; /** - * The Cloudflare Tunnel connections between your origin and Cloudflare's edge. + * @deprecated This field will start returning an empty array. To fetch the + * connections of a given tunnel, please use the dedicated endpoint + * `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections` */ connections?: Array; diff --git a/src/resources/zero-trust/tunnels/warp-connector/warp-connector.ts b/src/resources/zero-trust/tunnels/warp-connector/warp-connector.ts index 0a59641cc9..a777acc6c4 100644 --- a/src/resources/zero-trust/tunnels/warp-connector/warp-connector.ts +++ b/src/resources/zero-trust/tunnels/warp-connector/warp-connector.ts @@ -161,7 +161,9 @@ export namespace WARPConnectorCreateResponse { account_tag?: string; /** - * The Cloudflare Tunnel connections between your origin and Cloudflare's edge. + * @deprecated This field will start returning an empty array. To fetch the + * connections of a given tunnel, please use the dedicated endpoint + * `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections` */ connections?: Array; @@ -283,7 +285,9 @@ export namespace WARPConnectorListResponse { account_tag?: string; /** - * The Cloudflare Tunnel connections between your origin and Cloudflare's edge. + * @deprecated This field will start returning an empty array. To fetch the + * connections of a given tunnel, please use the dedicated endpoint + * `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections` */ connections?: Array; @@ -405,7 +409,9 @@ export namespace WARPConnectorDeleteResponse { account_tag?: string; /** - * The Cloudflare Tunnel connections between your origin and Cloudflare's edge. + * @deprecated This field will start returning an empty array. To fetch the + * connections of a given tunnel, please use the dedicated endpoint + * `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections` */ connections?: Array; @@ -527,7 +533,9 @@ export namespace WARPConnectorEditResponse { account_tag?: string; /** - * The Cloudflare Tunnel connections between your origin and Cloudflare's edge. + * @deprecated This field will start returning an empty array. To fetch the + * connections of a given tunnel, please use the dedicated endpoint + * `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections` */ connections?: Array; @@ -649,7 +657,9 @@ export namespace WARPConnectorGetResponse { account_tag?: string; /** - * The Cloudflare Tunnel connections between your origin and Cloudflare's edge. + * @deprecated This field will start returning an empty array. To fetch the + * connections of a given tunnel, please use the dedicated endpoint + * `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections` */ connections?: Array; From bf3eb3f4c533d02e7fc07c5f188ad939ca479508 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 18:25:25 +0000 Subject: [PATCH 276/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4553261e22..930d5d6ae7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e5d1a969742a91c1dcd3abbe0f2f84986d5613047fe6591258ec0daa3dbaf0b.yml -openapi_spec_hash: 4dc3b9781cc2519d5ae2e9b35a4005c8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1de0ccc45e93c2dd82d376e03548f58609db495cb51cb693862185b19ac60562.yml +openapi_spec_hash: e6ea039fbfd5ee894a34e608ef94daf2 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 417d024d9f3bf8ba8fd07bb3a2a8616f08d8d119 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 18:40:02 +0000 Subject: [PATCH 277/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 930d5d6ae7..0f38be0d16 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1de0ccc45e93c2dd82d376e03548f58609db495cb51cb693862185b19ac60562.yml -openapi_spec_hash: e6ea039fbfd5ee894a34e608ef94daf2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fbc4e1b631ef5af8c95bf63842c71f5d9af5d8340f1263bff3722dde3a5bd2be.yml +openapi_spec_hash: e377e19a599d818fc00d7c451dcbff4e config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 9f1d3d587870ed7eacf1836b11c3b5b87d08f455 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 21:06:56 +0000 Subject: [PATCH 278/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0f38be0d16..1f2335653b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fbc4e1b631ef5af8c95bf63842c71f5d9af5d8340f1263bff3722dde3a5bd2be.yml -openapi_spec_hash: e377e19a599d818fc00d7c451dcbff4e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8df6833ab37a209d63bed0a78b65718793f3e28cfd24f7b7dad10ba896b660f1.yml +openapi_spec_hash: 635dd5764f353bec8bd28a18ecce885c config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 06ed55f0edd5760a9793cf3ec198738da52a9bba Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 21:17:57 +0000 Subject: [PATCH 279/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1f2335653b..f2fcbc31b8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8df6833ab37a209d63bed0a78b65718793f3e28cfd24f7b7dad10ba896b660f1.yml -openapi_spec_hash: 635dd5764f353bec8bd28a18ecce885c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-24327778c664101d747414cc18ab6b8139d3566a5513578f7ae9fd00d6a8bf53.yml +openapi_spec_hash: e3b1e9770a7c8f35b500167159aa70df config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From fbabe72cb163fb6d859a82c07836e027abc931ef Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 22:18:54 +0000 Subject: [PATCH 280/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f2fcbc31b8..4553261e22 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-24327778c664101d747414cc18ab6b8139d3566a5513578f7ae9fd00d6a8bf53.yml -openapi_spec_hash: e3b1e9770a7c8f35b500167159aa70df +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e5d1a969742a91c1dcd3abbe0f2f84986d5613047fe6591258ec0daa3dbaf0b.yml +openapi_spec_hash: 4dc3b9781cc2519d5ae2e9b35a4005c8 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 61051a22595cb9694f15751217451cf60fa02feb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 00:00:45 +0000 Subject: [PATCH 281/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4553261e22..cfcb0d0710 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e5d1a969742a91c1dcd3abbe0f2f84986d5613047fe6591258ec0daa3dbaf0b.yml -openapi_spec_hash: 4dc3b9781cc2519d5ae2e9b35a4005c8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-39200d2759fdd3e59deada7011769b9cd3f20dd717bcbc16e643b46c6ec0544a.yml +openapi_spec_hash: 4ed83b3e093e3d194667499c6647bef4 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 8a9b48ebd99d1dc8f33ee4e7a1bee5e7c125cbad Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 06:07:40 +0000 Subject: [PATCH 282/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index cfcb0d0710..26e2ec8c3e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-39200d2759fdd3e59deada7011769b9cd3f20dd717bcbc16e643b46c6ec0544a.yml -openapi_spec_hash: 4ed83b3e093e3d194667499c6647bef4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-93525dcb6a7f53033a825f2976d44f9a9a6d945f02dc9e89440d52410a182d1e.yml +openapi_spec_hash: 79e2cdf8de74233df9abf9901ccd37d0 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 3add427ed67960aeabac47c43dea39425cd21a1f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 06:10:06 +0000 Subject: [PATCH 283/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 26e2ec8c3e..8288715779 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-93525dcb6a7f53033a825f2976d44f9a9a6d945f02dc9e89440d52410a182d1e.yml -openapi_spec_hash: 79e2cdf8de74233df9abf9901ccd37d0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b0a61e2d43277c871490fcb1e0a166c6e8d7713fce8b67bc3dcf223d00d9fac6.yml +openapi_spec_hash: e3d0699285445f48ce59b2327f29738c config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From fb4a7c0a989125f635b97f81ab02e1c87c25b626 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 09:37:39 +0000 Subject: [PATCH 284/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8288715779..135b922cf9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b0a61e2d43277c871490fcb1e0a166c6e8d7713fce8b67bc3dcf223d00d9fac6.yml -openapi_spec_hash: e3d0699285445f48ce59b2327f29738c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d58fd4525ce65804da5940138a2c22daa5018552d07a8996f8d448c5802cd20f.yml +openapi_spec_hash: 07fff3b5bb15c8828394e438fb196f71 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From f36e9c23f8c2355f64bb10700ea800f0ea13bd77 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 11:24:49 +0000 Subject: [PATCH 285/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 135b922cf9..2a1cbd4dea 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d58fd4525ce65804da5940138a2c22daa5018552d07a8996f8d448c5802cd20f.yml -openapi_spec_hash: 07fff3b5bb15c8828394e438fb196f71 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-804fc0d86290c20077a43f3431fe416d4598e41fa50a451d332c7e9715630a23.yml +openapi_spec_hash: bab1e779a469c296c467c90c38c5d302 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 94723ee103d3378fb8071735a2a68fcb0b68dbce Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 12:24:17 +0000 Subject: [PATCH 286/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2a1cbd4dea..8199ee5442 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-804fc0d86290c20077a43f3431fe416d4598e41fa50a451d332c7e9715630a23.yml -openapi_spec_hash: bab1e779a469c296c467c90c38c5d302 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4437ddd6f78afc134ce2b610ca8e48867edfc75b71fda57b76b31a57a1418d43.yml +openapi_spec_hash: 4d08ab4df814a7d840f32f6d20331010 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From bddd0eb6bacaf3403d3386fc073e5b3004bbe07a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 12:33:57 +0000 Subject: [PATCH 287/366] feat(api): api update --- .stats.yml | 4 +- src/resources/zero-trust/dlp/entries.ts | 45 +++++++++++++++++++ .../zero-trust/dlp/profiles/custom.ts | 15 +++++++ .../zero-trust/dlp/profiles/predefined.ts | 15 +++++++ .../zero-trust/dlp/profiles/profiles.ts | 45 +++++++++++++++++++ 5 files changed, 122 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8199ee5442..0353f7dabb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4437ddd6f78afc134ce2b610ca8e48867edfc75b71fda57b76b31a57a1418d43.yml -openapi_spec_hash: 4d08ab4df814a7d840f32f6d20331010 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0a52d7cff6d266f24d2b4edc1d5eb8d6657b11ada0d34458086967b53a41c239.yml +openapi_spec_hash: cc94c988c0df2f81eedb812aa2d9d199 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 diff --git a/src/resources/zero-trust/dlp/entries.ts b/src/resources/zero-trust/dlp/entries.ts index 4bf3fa23f7..f696d7d2d0 100644 --- a/src/resources/zero-trust/dlp/entries.ts +++ b/src/resources/zero-trust/dlp/entries.ts @@ -156,6 +156,7 @@ export type EntryUpdateResponse = | EntryUpdateResponse.PredefinedEntry | EntryUpdateResponse.IntegrationEntry | EntryUpdateResponse.ExactDataEntry + | EntryUpdateResponse.DocumentTemplateEntry | EntryUpdateResponse.WordListEntry; export namespace EntryUpdateResponse { @@ -244,6 +245,20 @@ export namespace EntryUpdateResponse { updated_at: string; } + export interface DocumentTemplateEntry { + id: string; + + created_at: string; + + enabled: boolean; + + name: string; + + type: 'document_template'; + + updated_at: string; + } + export interface WordListEntry { id: string; @@ -268,6 +283,7 @@ export type EntryListResponse = | EntryListResponse.PredefinedEntry | EntryListResponse.IntegrationEntry | EntryListResponse.ExactDataEntry + | EntryListResponse.DocumentTemplateEntry | EntryListResponse.WordListEntry; export namespace EntryListResponse { @@ -356,6 +372,20 @@ export namespace EntryListResponse { updated_at: string; } + export interface DocumentTemplateEntry { + id: string; + + created_at: string; + + enabled: boolean; + + name: string; + + type: 'document_template'; + + updated_at: string; + } + export interface WordListEntry { id: string; @@ -382,6 +412,7 @@ export type EntryGetResponse = | EntryGetResponse.PredefinedEntry | EntryGetResponse.IntegrationEntry | EntryGetResponse.ExactDataEntry + | EntryGetResponse.DocumentTemplateEntry | EntryGetResponse.WordListEntry; export namespace EntryGetResponse { @@ -470,6 +501,20 @@ export namespace EntryGetResponse { updated_at: string; } + export interface DocumentTemplateEntry { + id: string; + + created_at: string; + + enabled: boolean; + + name: string; + + type: 'document_template'; + + updated_at: string; + } + export interface WordListEntry { id: string; diff --git a/src/resources/zero-trust/dlp/profiles/custom.ts b/src/resources/zero-trust/dlp/profiles/custom.ts index e1e41ddbdb..8ce4bc0c21 100644 --- a/src/resources/zero-trust/dlp/profiles/custom.ts +++ b/src/resources/zero-trust/dlp/profiles/custom.ts @@ -141,6 +141,7 @@ export interface CustomProfile { | CustomProfile.PredefinedEntry | CustomProfile.IntegrationEntry | CustomProfile.ExactDataEntry + | CustomProfile.DocumentTemplateEntry | CustomProfile.WordListEntry >; @@ -252,6 +253,20 @@ export namespace CustomProfile { updated_at: string; } + export interface DocumentTemplateEntry { + id: string; + + created_at: string; + + enabled: boolean; + + name: string; + + type: 'document_template'; + + updated_at: string; + } + export interface WordListEntry { id: string; diff --git a/src/resources/zero-trust/dlp/profiles/predefined.ts b/src/resources/zero-trust/dlp/profiles/predefined.ts index 616d45eecf..a491eb9b2d 100644 --- a/src/resources/zero-trust/dlp/profiles/predefined.ts +++ b/src/resources/zero-trust/dlp/profiles/predefined.ts @@ -72,6 +72,7 @@ export interface PredefinedProfile { | PredefinedProfile.PredefinedEntry | PredefinedProfile.IntegrationEntry | PredefinedProfile.ExactDataEntry + | PredefinedProfile.DocumentTemplateEntry | PredefinedProfile.WordListEntry >; @@ -184,6 +185,20 @@ export namespace PredefinedProfile { updated_at: string; } + export interface DocumentTemplateEntry { + id: string; + + created_at: string; + + enabled: boolean; + + name: string; + + type: 'document_template'; + + updated_at: string; + } + export interface WordListEntry { id: string; diff --git a/src/resources/zero-trust/dlp/profiles/profiles.ts b/src/resources/zero-trust/dlp/profiles/profiles.ts index 199064ae15..c6ab216ea2 100644 --- a/src/resources/zero-trust/dlp/profiles/profiles.ts +++ b/src/resources/zero-trust/dlp/profiles/profiles.ts @@ -138,6 +138,7 @@ export namespace Profile { | CustomProfile.PredefinedEntry | CustomProfile.IntegrationEntry | CustomProfile.ExactDataEntry + | CustomProfile.DocumentTemplateEntry | CustomProfile.WordListEntry >; @@ -251,6 +252,20 @@ export namespace Profile { updated_at: string; } + export interface DocumentTemplateEntry { + id: string; + + created_at: string; + + enabled: boolean; + + name: string; + + type: 'document_template'; + + updated_at: string; + } + export interface WordListEntry { id: string; @@ -283,6 +298,7 @@ export namespace Profile { | PredefinedProfile.PredefinedEntry | PredefinedProfile.IntegrationEntry | PredefinedProfile.ExactDataEntry + | PredefinedProfile.DocumentTemplateEntry | PredefinedProfile.WordListEntry >; @@ -397,6 +413,20 @@ export namespace Profile { updated_at: string; } + export interface DocumentTemplateEntry { + id: string; + + created_at: string; + + enabled: boolean; + + name: string; + + type: 'document_template'; + + updated_at: string; + } + export interface WordListEntry { id: string; @@ -426,6 +456,7 @@ export namespace Profile { | IntegrationProfile.PredefinedEntry | IntegrationProfile.IntegrationEntry | IntegrationProfile.ExactDataEntry + | IntegrationProfile.DocumentTemplateEntry | IntegrationProfile.WordListEntry >; @@ -527,6 +558,20 @@ export namespace Profile { updated_at: string; } + export interface DocumentTemplateEntry { + id: string; + + created_at: string; + + enabled: boolean; + + name: string; + + type: 'document_template'; + + updated_at: string; + } + export interface WordListEntry { id: string; From 908b5a14c66fd028509edadccb2f935da9db4685 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 13:03:20 +0000 Subject: [PATCH 288/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0353f7dabb..0bd3f31d9e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0a52d7cff6d266f24d2b4edc1d5eb8d6657b11ada0d34458086967b53a41c239.yml -openapi_spec_hash: cc94c988c0df2f81eedb812aa2d9d199 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fcef12bbdc3c6d1dc8413b605ab62afab8fb116cc486861e269f93b8c57efe62.yml +openapi_spec_hash: f305b192630faedd5dc6e9d3044fdb2c config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 0d5aa680f71f0378d8ff1311692f08ebfec5b86b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 15:25:26 +0000 Subject: [PATCH 289/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0bd3f31d9e..31d22ec764 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fcef12bbdc3c6d1dc8413b605ab62afab8fb116cc486861e269f93b8c57efe62.yml -openapi_spec_hash: f305b192630faedd5dc6e9d3044fdb2c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bffd5cc83532f51efaf787e11cf27252f87f8d35c530e73ce5e0c63d4f3a9ef0.yml +openapi_spec_hash: d19a934136d74dafa990f35533f32272 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From eb932015b3360aad81a8ff2cadf2ea91488dd714 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 17:04:23 +0000 Subject: [PATCH 290/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 31d22ec764..8aeb12da42 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bffd5cc83532f51efaf787e11cf27252f87f8d35c530e73ce5e0c63d4f3a9ef0.yml -openapi_spec_hash: d19a934136d74dafa990f35533f32272 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-195fb6e00353508c0ab3ff9d808c6a21161a8f4917e298ba255dfb975472fb8e.yml +openapi_spec_hash: 196fc2ee5e9cda2757278e7045205c4b config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From fd8c58741305a69e4d0d2b52a554722fffab98c8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 17:10:51 +0000 Subject: [PATCH 291/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8aeb12da42..dcb80598ca 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-195fb6e00353508c0ab3ff9d808c6a21161a8f4917e298ba255dfb975472fb8e.yml -openapi_spec_hash: 196fc2ee5e9cda2757278e7045205c4b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d4a52ca913d45dd50da51a40fe77ef64ecaa4e737e315d0823510432014aa326.yml +openapi_spec_hash: 8140a742ba28b4cb1a378bd5b4a19c53 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 289d3daabe1c5888872ffb17bd8b5cb64ed35f77 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 17:30:00 +0000 Subject: [PATCH 292/366] fix: add missing properties --- src/resources/dns/records.ts | 3773 +++++++++++++++-------- tests/api-resources/dns/records.test.ts | 2 + 2 files changed, 2566 insertions(+), 1209 deletions(-) diff --git a/src/resources/dns/records.ts b/src/resources/dns/records.ts index cef4d639c1..d14a565878 100644 --- a/src/resources/dns/records.ts +++ b/src/resources/dns/records.ts @@ -557,30 +557,70 @@ export namespace AAAARecordParam { } export type BatchPatch = - | ARecord - | AAAARecord - | CNAMERecord - | MXRecord - | NSRecord - | BatchPatch.DNSRecordsOpenpgpkeyRecord - | PTRRecord - | TXTRecord - | CAARecord - | CERTRecord - | DNSKEYRecord - | DSRecord - | HTTPSRecord - | LOCRecord - | NAPTRRecord - | SMIMEARecord - | SRVRecord - | SSHFPRecord - | SVCBRecord - | TLSARecord - | URIRecord; + | BatchPatch.ARecord + | BatchPatch.AAAARecord + | BatchPatch.CNAMERecord + | BatchPatch.MXRecord + | BatchPatch.NSRecord + | BatchPatch.OpenpgpkeyRecord + | BatchPatch.PTRRecord + | BatchPatch.TXTRecord + | BatchPatch.CAARecord + | BatchPatch.CERTRecord + | BatchPatch.DNSKEYRecord + | BatchPatch.DSRecord + | BatchPatch.HTTPSRecord + | BatchPatch.LOCRecord + | BatchPatch.NAPTRRecord + | BatchPatch.SMIMEARecord + | BatchPatch.SRVRecord + | BatchPatch.SSHFPRecord + | BatchPatch.SVCBRecord + | BatchPatch.TLSARecord + | BatchPatch.URIRecord; export namespace BatchPatch { - export interface DNSRecordsOpenpgpkeyRecord { + export interface ARecord extends RecordsAPI.ARecord { + /** + * Identifier. + */ + id: string; + } + + export interface AAAARecord extends RecordsAPI.AAAARecord { + /** + * Identifier. + */ + id: string; + } + + export interface CNAMERecord extends RecordsAPI.CNAMERecord { + /** + * Identifier. + */ + id: string; + } + + export interface MXRecord extends RecordsAPI.MXRecord { + /** + * Identifier. + */ + id: string; + } + + export interface NSRecord extends RecordsAPI.NSRecord { + /** + * Identifier. + */ + id: string; + } + + export interface OpenpgpkeyRecord { + /** + * Identifier. + */ + id: string; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -606,7 +646,7 @@ export namespace BatchPatch { /** * Settings for the DNS record. */ - settings?: DNSRecordsOpenpgpkeyRecord.Settings; + settings?: OpenpgpkeyRecord.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -626,7 +666,7 @@ export namespace BatchPatch { type?: 'OPENPGPKEY'; } - export namespace DNSRecordsOpenpgpkeyRecord { + export namespace OpenpgpkeyRecord { /** * Settings for the DNS record. */ @@ -648,221 +688,178 @@ export namespace BatchPatch { ipv6_only?: boolean; } } -} - -export type BatchPatchParam = - | ARecordParam - | AAAARecordParam - | CNAMERecordParam - | MXRecordParam - | NSRecordParam - | BatchPatchParam.DNSRecordsOpenpgpkeyRecord - | PTRRecordParam - | TXTRecordParam - | CAARecordParam - | CERTRecordParam - | DNSKEYRecordParam - | DSRecordParam - | HTTPSRecordParam - | LOCRecordParam - | NAPTRRecordParam - | SMIMEARecordParam - | SRVRecordParam - | SSHFPRecordParam - | SVCBRecordParam - | TLSARecordParam - | URIRecordParam; -export namespace BatchPatchParam { - export interface DNSRecordsOpenpgpkeyRecord { + export interface PTRRecord extends RecordsAPI.PTRRecord { /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. + * Identifier. */ - comment?: string; + id: string; + } + export interface TXTRecord extends RecordsAPI.TXTRecord { /** - * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) + * Identifier. */ - content?: string; + id: string; + } + export interface CAARecord extends RecordsAPI.CAARecord { /** - * DNS record name (or @ for the zone apex) in Punycode. + * Identifier. */ - name?: string; + id: string; + } + export interface CERTRecord extends RecordsAPI.CERTRecord { /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. + * Identifier. */ - proxied?: boolean; + id: string; + } + export interface DNSKEYRecord extends RecordsAPI.DNSKEYRecord { /** - * Settings for the DNS record. + * Identifier. */ - settings?: DNSRecordsOpenpgpkeyRecord.Settings; + id: string; + } + export interface DSRecord extends RecordsAPI.DSRecord { /** - * Custom tags for the DNS record. This field has no effect on DNS responses. + * Identifier. */ - tags?: Array; + id: string; + } + export interface HTTPSRecord extends RecordsAPI.HTTPSRecord { /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. + * Identifier. */ - ttl?: RecordsAPI.TTLParam; + id: string; + } + export interface LOCRecord extends RecordsAPI.LOCRecord { /** - * Record type. + * Identifier. */ - type?: 'OPENPGPKEY'; + id: string; } - export namespace DNSRecordsOpenpgpkeyRecord { + export interface NAPTRRecord extends RecordsAPI.NAPTRRecord { /** - * Settings for the DNS record. + * Identifier. */ - export interface Settings { - /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv4_only?: boolean; - - /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv6_only?: boolean; - } + id: string; } -} -export type BatchPut = - | ARecord - | AAAARecord - | CNAMERecord - | MXRecord - | NSRecord - | BatchPut.DNSRecordsOpenpgpkeyRecord - | PTRRecord - | TXTRecord - | CAARecord - | CERTRecord - | DNSKEYRecord - | DSRecord - | HTTPSRecord - | LOCRecord - | NAPTRRecord - | SMIMEARecord - | SRVRecord - | SSHFPRecord - | SVCBRecord - | TLSARecord - | URIRecord; + export interface SMIMEARecord extends RecordsAPI.SMIMEARecord { + /** + * Identifier. + */ + id: string; + } -export namespace BatchPut { - export interface DNSRecordsOpenpgpkeyRecord { + export interface SRVRecord extends RecordsAPI.SRVRecord { /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. + * Identifier. */ - comment?: string; + id: string; + } + export interface SSHFPRecord extends RecordsAPI.SSHFPRecord { /** - * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) + * Identifier. */ - content?: string; + id: string; + } + export interface SVCBRecord extends RecordsAPI.SVCBRecord { /** - * DNS record name (or @ for the zone apex) in Punycode. + * Identifier. */ - name?: string; + id: string; + } + export interface TLSARecord extends RecordsAPI.TLSARecord { /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. + * Identifier. */ - proxied?: boolean; + id: string; + } + export interface URIRecord extends RecordsAPI.URIRecord { /** - * Settings for the DNS record. + * Identifier. */ - settings?: DNSRecordsOpenpgpkeyRecord.Settings; + id: string; + } +} +export type BatchPatchParam = + | BatchPatchParam.ARecord + | BatchPatchParam.AAAARecord + | BatchPatchParam.CNAMERecord + | BatchPatchParam.MXRecord + | BatchPatchParam.NSRecord + | BatchPatchParam.OpenpgpkeyRecord + | BatchPatchParam.PTRRecord + | BatchPatchParam.TXTRecord + | BatchPatchParam.CAARecord + | BatchPatchParam.CERTRecord + | BatchPatchParam.DNSKEYRecord + | BatchPatchParam.DSRecord + | BatchPatchParam.HTTPSRecord + | BatchPatchParam.LOCRecord + | BatchPatchParam.NAPTRRecord + | BatchPatchParam.SMIMEARecord + | BatchPatchParam.SRVRecord + | BatchPatchParam.SSHFPRecord + | BatchPatchParam.SVCBRecord + | BatchPatchParam.TLSARecord + | BatchPatchParam.URIRecord; + +export namespace BatchPatchParam { + export interface ARecord extends RecordsAPI.ARecordParam { /** - * Custom tags for the DNS record. This field has no effect on DNS responses. + * Identifier. */ - tags?: Array; + id: string; + } + export interface AAAARecord extends RecordsAPI.AAAARecordParam { /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. + * Identifier. */ - ttl?: RecordsAPI.TTL; + id: string; + } + export interface CNAMERecord extends RecordsAPI.CNAMERecordParam { /** - * Record type. + * Identifier. */ - type?: 'OPENPGPKEY'; + id: string; } - export namespace DNSRecordsOpenpgpkeyRecord { + export interface MXRecord extends RecordsAPI.MXRecordParam { /** - * Settings for the DNS record. + * Identifier. */ - export interface Settings { - /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv4_only?: boolean; + id: string; + } - /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv6_only?: boolean; - } + export interface NSRecord extends RecordsAPI.NSRecordParam { + /** + * Identifier. + */ + id: string; } -} -export type BatchPutParam = - | ARecordParam - | AAAARecordParam - | CNAMERecordParam - | MXRecordParam - | NSRecordParam - | BatchPutParam.DNSRecordsOpenpgpkeyRecord - | PTRRecordParam - | TXTRecordParam - | CAARecordParam - | CERTRecordParam - | DNSKEYRecordParam - | DSRecordParam - | HTTPSRecordParam - | LOCRecordParam - | NAPTRRecordParam - | SMIMEARecordParam - | SRVRecordParam - | SSHFPRecordParam - | SVCBRecordParam - | TLSARecordParam - | URIRecordParam; + export interface OpenpgpkeyRecord { + /** + * Identifier. + */ + id: string; -export namespace BatchPutParam { - export interface DNSRecordsOpenpgpkeyRecord { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -888,7 +885,7 @@ export namespace BatchPutParam { /** * Settings for the DNS record. */ - settings?: DNSRecordsOpenpgpkeyRecord.Settings; + settings?: OpenpgpkeyRecord.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -908,7 +905,7 @@ export namespace BatchPutParam { type?: 'OPENPGPKEY'; } - export namespace DNSRecordsOpenpgpkeyRecord { + export namespace OpenpgpkeyRecord { /** * Settings for the DNS record. */ @@ -930,24 +927,1330 @@ export namespace BatchPutParam { ipv6_only?: boolean; } } -} - -export interface CAARecord { - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; - /** - * Formatted CAA content. See 'data' to set CAA properties. - */ - content?: string; + export interface PTRRecord extends RecordsAPI.PTRRecordParam { + /** + * Identifier. + */ + id: string; + } - /** + export interface TXTRecord extends RecordsAPI.TXTRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface CAARecord extends RecordsAPI.CAARecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface CERTRecord extends RecordsAPI.CERTRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface DNSKEYRecord extends RecordsAPI.DNSKEYRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface DSRecord extends RecordsAPI.DSRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface HTTPSRecord extends RecordsAPI.HTTPSRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface LOCRecord extends RecordsAPI.LOCRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface NAPTRRecord extends RecordsAPI.NAPTRRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface SMIMEARecord extends RecordsAPI.SMIMEARecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface SRVRecord extends RecordsAPI.SRVRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface SSHFPRecord extends RecordsAPI.SSHFPRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface SVCBRecord extends RecordsAPI.SVCBRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface TLSARecord extends RecordsAPI.TLSARecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface URIRecord extends RecordsAPI.URIRecordParam { + /** + * Identifier. + */ + id: string; + } +} + +export type BatchPut = + | BatchPut.ARecord + | BatchPut.AAAARecord + | BatchPut.CNAMERecord + | BatchPut.MXRecord + | BatchPut.NSRecord + | BatchPut.OpenpgpkeyRecord + | BatchPut.PTRRecord + | BatchPut.TXTRecord + | BatchPut.CAARecord + | BatchPut.CERTRecord + | BatchPut.DNSKEYRecord + | BatchPut.DSRecord + | BatchPut.HTTPSRecord + | BatchPut.LOCRecord + | BatchPut.NAPTRRecord + | BatchPut.SMIMEARecord + | BatchPut.SRVRecord + | BatchPut.SSHFPRecord + | BatchPut.SVCBRecord + | BatchPut.TLSARecord + | BatchPut.URIRecord; + +export namespace BatchPut { + export interface ARecord extends RecordsAPI.ARecord { + /** + * Identifier. + */ + id: string; + } + + export interface AAAARecord extends RecordsAPI.AAAARecord { + /** + * Identifier. + */ + id: string; + } + + export interface CNAMERecord extends RecordsAPI.CNAMERecord { + /** + * Identifier. + */ + id: string; + } + + export interface MXRecord extends RecordsAPI.MXRecord { + /** + * Identifier. + */ + id: string; + } + + export interface NSRecord extends RecordsAPI.NSRecord { + /** + * Identifier. + */ + id: string; + } + + export interface OpenpgpkeyRecord { + /** + * Identifier. + */ + id: string; + + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) + */ + content?: string; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: OpenpgpkeyRecord.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: RecordsAPI.TTL; + + /** + * Record type. + */ + type?: 'OPENPGPKEY'; + } + + export namespace OpenpgpkeyRecord { + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; + + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } + } + + export interface PTRRecord extends RecordsAPI.PTRRecord { + /** + * Identifier. + */ + id: string; + } + + export interface TXTRecord extends RecordsAPI.TXTRecord { + /** + * Identifier. + */ + id: string; + } + + export interface CAARecord extends RecordsAPI.CAARecord { + /** + * Identifier. + */ + id: string; + } + + export interface CERTRecord extends RecordsAPI.CERTRecord { + /** + * Identifier. + */ + id: string; + } + + export interface DNSKEYRecord extends RecordsAPI.DNSKEYRecord { + /** + * Identifier. + */ + id: string; + } + + export interface DSRecord extends RecordsAPI.DSRecord { + /** + * Identifier. + */ + id: string; + } + + export interface HTTPSRecord extends RecordsAPI.HTTPSRecord { + /** + * Identifier. + */ + id: string; + } + + export interface LOCRecord extends RecordsAPI.LOCRecord { + /** + * Identifier. + */ + id: string; + } + + export interface NAPTRRecord extends RecordsAPI.NAPTRRecord { + /** + * Identifier. + */ + id: string; + } + + export interface SMIMEARecord extends RecordsAPI.SMIMEARecord { + /** + * Identifier. + */ + id: string; + } + + export interface SRVRecord extends RecordsAPI.SRVRecord { + /** + * Identifier. + */ + id: string; + } + + export interface SSHFPRecord extends RecordsAPI.SSHFPRecord { + /** + * Identifier. + */ + id: string; + } + + export interface SVCBRecord extends RecordsAPI.SVCBRecord { + /** + * Identifier. + */ + id: string; + } + + export interface TLSARecord extends RecordsAPI.TLSARecord { + /** + * Identifier. + */ + id: string; + } + + export interface URIRecord extends RecordsAPI.URIRecord { + /** + * Identifier. + */ + id: string; + } +} + +export type BatchPutParam = + | BatchPutParam.ARecord + | BatchPutParam.AAAARecord + | BatchPutParam.CNAMERecord + | BatchPutParam.MXRecord + | BatchPutParam.NSRecord + | BatchPutParam.OpenpgpkeyRecord + | BatchPutParam.PTRRecord + | BatchPutParam.TXTRecord + | BatchPutParam.CAARecord + | BatchPutParam.CERTRecord + | BatchPutParam.DNSKEYRecord + | BatchPutParam.DSRecord + | BatchPutParam.HTTPSRecord + | BatchPutParam.LOCRecord + | BatchPutParam.NAPTRRecord + | BatchPutParam.SMIMEARecord + | BatchPutParam.SRVRecord + | BatchPutParam.SSHFPRecord + | BatchPutParam.SVCBRecord + | BatchPutParam.TLSARecord + | BatchPutParam.URIRecord; + +export namespace BatchPutParam { + export interface ARecord extends RecordsAPI.ARecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface AAAARecord extends RecordsAPI.AAAARecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface CNAMERecord extends RecordsAPI.CNAMERecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface MXRecord extends RecordsAPI.MXRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface NSRecord extends RecordsAPI.NSRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface OpenpgpkeyRecord { + /** + * Identifier. + */ + id: string; + + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) + */ + content?: string; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: OpenpgpkeyRecord.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: RecordsAPI.TTLParam; + + /** + * Record type. + */ + type?: 'OPENPGPKEY'; + } + + export namespace OpenpgpkeyRecord { + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; + + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } + } + + export interface PTRRecord extends RecordsAPI.PTRRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface TXTRecord extends RecordsAPI.TXTRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface CAARecord extends RecordsAPI.CAARecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface CERTRecord extends RecordsAPI.CERTRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface DNSKEYRecord extends RecordsAPI.DNSKEYRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface DSRecord extends RecordsAPI.DSRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface HTTPSRecord extends RecordsAPI.HTTPSRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface LOCRecord extends RecordsAPI.LOCRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface NAPTRRecord extends RecordsAPI.NAPTRRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface SMIMEARecord extends RecordsAPI.SMIMEARecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface SRVRecord extends RecordsAPI.SRVRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface SSHFPRecord extends RecordsAPI.SSHFPRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface SVCBRecord extends RecordsAPI.SVCBRecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface TLSARecord extends RecordsAPI.TLSARecordParam { + /** + * Identifier. + */ + id: string; + } + + export interface URIRecord extends RecordsAPI.URIRecordParam { + /** + * Identifier. + */ + id: string; + } +} + +export interface CAARecord { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * Formatted CAA content. See 'data' to set CAA properties. + */ + content?: string; + + /** + * Components of a CAA record. + */ + data?: CAARecord.Data; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: CAARecord.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: TTL; + + /** + * Record type. + */ + type?: 'CAA'; +} + +export namespace CAARecord { + /** + * Components of a CAA record. + */ + export interface Data { + /** + * Flags for the CAA record. + */ + flags?: number; + + /** + * Name of the property controlled by this record (e.g.: issue, issuewild, iodef). + */ + tag?: string; + + /** + * Value of the record. This field's semantics depend on the chosen tag. + */ + value?: string; + } + + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; + + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } +} + +export interface CAARecordParam { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * Components of a CAA record. + */ + data?: CAARecordParam.Data; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: CAARecordParam.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: TTLParam; + + /** + * Record type. + */ + type?: 'CAA'; +} + +export namespace CAARecordParam { + /** * Components of a CAA record. */ - data?: CAARecord.Data; + export interface Data { + /** + * Flags for the CAA record. + */ + flags?: number; + + /** + * Name of the property controlled by this record (e.g.: issue, issuewild, iodef). + */ + tag?: string; + + /** + * Value of the record. This field's semantics depend on the chosen tag. + */ + value?: string; + } + + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; + + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } +} + +export interface CERTRecord { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * Formatted CERT content. See 'data' to set CERT properties. + */ + content?: string; + + /** + * Components of a CERT record. + */ + data?: CERTRecord.Data; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: CERTRecord.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: TTL; + + /** + * Record type. + */ + type?: 'CERT'; +} + +export namespace CERTRecord { + /** + * Components of a CERT record. + */ + export interface Data { + /** + * Algorithm. + */ + algorithm?: number; + + /** + * Certificate. + */ + certificate?: string; + + /** + * Key Tag. + */ + key_tag?: number; + + /** + * Type. + */ + type?: number; + } + + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; + + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } +} + +export interface CERTRecordParam { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * Components of a CERT record. + */ + data?: CERTRecordParam.Data; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: CERTRecordParam.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: TTLParam; + + /** + * Record type. + */ + type?: 'CERT'; +} + +export namespace CERTRecordParam { + /** + * Components of a CERT record. + */ + export interface Data { + /** + * Algorithm. + */ + algorithm?: number; + + /** + * Certificate. + */ + certificate?: string; + + /** + * Key Tag. + */ + key_tag?: number; + + /** + * Type. + */ + type?: number; + } + + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; + + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } +} + +export interface CNAMERecord { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * A valid hostname. Must not match the record's name. + */ + content?: string; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: CNAMERecord.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: TTL; + + /** + * Record type. + */ + type?: 'CNAME'; +} + +export namespace CNAMERecord { + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * If enabled, causes the CNAME record to be resolved externally and the resulting + * address records (e.g., A and AAAA) to be returned instead of the CNAME record + * itself. This setting is unavailable for proxied records, since they are always + * flattened. + */ + flatten_cname?: boolean; + + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; + + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } +} + +export interface CNAMERecordParam { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * A valid hostname. Must not match the record's name. + */ + content?: string; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: CNAMERecordParam.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: TTLParam; + + /** + * Record type. + */ + type?: 'CNAME'; +} + +export namespace CNAMERecordParam { + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * If enabled, causes the CNAME record to be resolved externally and the resulting + * address records (e.g., A and AAAA) to be returned instead of the CNAME record + * itself. This setting is unavailable for proxied records, since they are always + * flattened. + */ + flatten_cname?: boolean; + + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; + + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } +} + +export interface DNSKEYRecord { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * Formatted DNSKEY content. See 'data' to set DNSKEY properties. + */ + content?: string; + + /** + * Components of a DNSKEY record. + */ + data?: DNSKEYRecord.Data; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: DNSKEYRecord.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: TTL; + + /** + * Record type. + */ + type?: 'DNSKEY'; +} + +export namespace DNSKEYRecord { + /** + * Components of a DNSKEY record. + */ + export interface Data { + /** + * Algorithm. + */ + algorithm?: number; + + /** + * Flags. + */ + flags?: number; + + /** + * Protocol. + */ + protocol?: number; + + /** + * Public Key. + */ + public_key?: string; + } + + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; + + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } +} + +export interface DNSKEYRecordParam { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * Components of a DNSKEY record. + */ + data?: DNSKEYRecordParam.Data; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: DNSKEYRecordParam.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: TTLParam; + + /** + * Record type. + */ + type?: 'DNSKEY'; +} + +export namespace DNSKEYRecordParam { + /** + * Components of a DNSKEY record. + */ + export interface Data { + /** + * Algorithm. + */ + algorithm?: number; + + /** + * Flags. + */ + flags?: number; + + /** + * Protocol. + */ + protocol?: number; + + /** + * Public Key. + */ + public_key?: string; + } + + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; + + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } +} + +export interface DSRecord { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * Formatted DS content. See 'data' to set DS properties. + */ + content?: string; + + /** + * Components of a DS record. + */ + data?: DSRecord.Data; /** * DNS record name (or @ for the zone apex) in Punycode. @@ -963,7 +2266,7 @@ export interface CAARecord { /** * Settings for the DNS record. */ - settings?: CAARecord.Settings; + settings?: DSRecord.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -980,26 +2283,219 @@ export interface CAARecord { /** * Record type. */ - type?: 'CAA'; + type?: 'DS'; } -export namespace CAARecord { +export namespace DSRecord { /** - * Components of a CAA record. + * Components of a DS record. */ export interface Data { /** - * Flags for the CAA record. + * Algorithm. */ - flags?: number; + algorithm?: number; /** - * Name of the property controlled by this record (e.g.: issue, issuewild, iodef). + * Digest. */ - tag?: string; + digest?: string; /** - * Value of the record. This field's semantics depend on the chosen tag. + * Digest Type. + */ + digest_type?: number; + + /** + * Key Tag. + */ + key_tag?: number; + } + + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; + + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } +} + +export interface DSRecordParam { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * Components of a DS record. + */ + data?: DSRecordParam.Data; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: DSRecordParam.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: TTLParam; + + /** + * Record type. + */ + type?: 'DS'; +} + +export namespace DSRecordParam { + /** + * Components of a DS record. + */ + export interface Data { + /** + * Algorithm. + */ + algorithm?: number; + + /** + * Digest. + */ + digest?: string; + + /** + * Digest Type. + */ + digest_type?: number; + + /** + * Key Tag. + */ + key_tag?: number; + } + + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; + + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } +} + +export interface HTTPSRecord { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * Formatted HTTPS content. See 'data' to set HTTPS properties. + */ + content?: string; + + /** + * Components of a HTTPS record. + */ + data?: HTTPSRecord.Data; + + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; + + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; + + /** + * Settings for the DNS record. + */ + settings?: HTTPSRecord.Settings; + + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; + + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: TTL; + + /** + * Record type. + */ + type?: 'HTTPS'; +} + +export namespace HTTPSRecord { + /** + * Components of a HTTPS record. + */ + export interface Data { + /** + * priority. + */ + priority?: number; + + /** + * target. + */ + target?: string; + + /** + * value. */ value?: string; } @@ -1026,7 +2522,7 @@ export namespace CAARecord { } } -export interface CAARecordParam { +export interface HTTPSRecordParam { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1034,9 +2530,9 @@ export interface CAARecordParam { comment?: string; /** - * Components of a CAA record. + * Components of a HTTPS record. */ - data?: CAARecordParam.Data; + data?: HTTPSRecordParam.Data; /** * DNS record name (or @ for the zone apex) in Punycode. @@ -1052,7 +2548,7 @@ export interface CAARecordParam { /** * Settings for the DNS record. */ - settings?: CAARecordParam.Settings; + settings?: HTTPSRecordParam.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -1069,26 +2565,26 @@ export interface CAARecordParam { /** * Record type. */ - type?: 'CAA'; + type?: 'HTTPS'; } -export namespace CAARecordParam { +export namespace HTTPSRecordParam { /** - * Components of a CAA record. + * Components of a HTTPS record. */ export interface Data { /** - * Flags for the CAA record. + * priority. */ - flags?: number; + priority?: number; /** - * Name of the property controlled by this record (e.g.: issue, issuewild, iodef). + * target. */ - tag?: string; + target?: string; /** - * Value of the record. This field's semantics depend on the chosen tag. + * value. */ value?: string; } @@ -1115,7 +2611,7 @@ export namespace CAARecordParam { } } -export interface CERTRecord { +export interface LOCRecord { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1123,14 +2619,14 @@ export interface CERTRecord { comment?: string; /** - * Formatted CERT content. See 'data' to set CERT properties. + * Formatted LOC content. See 'data' to set LOC properties. */ content?: string; /** - * Components of a CERT record. + * Components of a LOC record. */ - data?: CERTRecord.Data; + data?: LOCRecord.Data; /** * DNS record name (or @ for the zone apex) in Punycode. @@ -1146,7 +2642,7 @@ export interface CERTRecord { /** * Settings for the DNS record. */ - settings?: CERTRecord.Settings; + settings?: LOCRecord.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -1163,33 +2659,73 @@ export interface CERTRecord { /** * Record type. */ - type?: 'CERT'; + type?: 'LOC'; } -export namespace CERTRecord { +export namespace LOCRecord { /** - * Components of a CERT record. + * Components of a LOC record. */ export interface Data { /** - * Algorithm. + * Altitude of location in meters. */ - algorithm?: number; + altitude?: number; /** - * Certificate. + * Degrees of latitude. */ - certificate?: string; + lat_degrees?: number; /** - * Key Tag. + * Latitude direction. */ - key_tag?: number; + lat_direction?: 'N' | 'S'; /** - * Type. + * Minutes of latitude. */ - type?: number; + lat_minutes?: number; + + /** + * Seconds of latitude. + */ + lat_seconds?: number; + + /** + * Degrees of longitude. + */ + long_degrees?: number; + + /** + * Longitude direction. + */ + long_direction?: 'E' | 'W'; + + /** + * Minutes of longitude. + */ + long_minutes?: number; + + /** + * Seconds of longitude. + */ + long_seconds?: number; + + /** + * Horizontal precision of location. + */ + precision_horz?: number; + + /** + * Vertical precision of location. + */ + precision_vert?: number; + + /** + * Size of location in meters. + */ + size?: number; } /** @@ -1214,7 +2750,7 @@ export namespace CERTRecord { } } -export interface CERTRecordParam { +export interface LOCRecordParam { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1222,9 +2758,9 @@ export interface CERTRecordParam { comment?: string; /** - * Components of a CERT record. + * Components of a LOC record. */ - data?: CERTRecordParam.Data; + data?: LOCRecordParam.Data; /** * DNS record name (or @ for the zone apex) in Punycode. @@ -1240,7 +2776,7 @@ export interface CERTRecordParam { /** * Settings for the DNS record. */ - settings?: CERTRecordParam.Settings; + settings?: LOCRecordParam.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -1257,33 +2793,73 @@ export interface CERTRecordParam { /** * Record type. */ - type?: 'CERT'; + type?: 'LOC'; } -export namespace CERTRecordParam { +export namespace LOCRecordParam { /** - * Components of a CERT record. + * Components of a LOC record. */ export interface Data { /** - * Algorithm. + * Altitude of location in meters. */ - algorithm?: number; + altitude?: number; /** - * Certificate. + * Degrees of latitude. */ - certificate?: string; + lat_degrees?: number; /** - * Key Tag. + * Latitude direction. */ - key_tag?: number; + lat_direction?: 'N' | 'S'; /** - * Type. + * Minutes of latitude. */ - type?: number; + lat_minutes?: number; + + /** + * Seconds of latitude. + */ + lat_seconds?: number; + + /** + * Degrees of longitude. + */ + long_degrees?: number; + + /** + * Longitude direction. + */ + long_direction?: 'E' | 'W'; + + /** + * Minutes of longitude. + */ + long_minutes?: number; + + /** + * Seconds of longitude. + */ + long_seconds?: number; + + /** + * Horizontal precision of location. + */ + precision_horz?: number; + + /** + * Vertical precision of location. + */ + precision_vert?: number; + + /** + * Size of location in meters. + */ + size?: number; } /** @@ -1308,7 +2884,7 @@ export namespace CERTRecordParam { } } -export interface CNAMERecord { +export interface MXRecord { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1316,7 +2892,7 @@ export interface CNAMERecord { comment?: string; /** - * A valid hostname. Must not match the record's name. + * A valid mail server hostname. */ content?: string; @@ -1325,6 +2901,12 @@ export interface CNAMERecord { */ name?: string; + /** + * Required for MX, SRV and URI records; unused by other record types. Records with + * lower priorities are preferred. + */ + priority?: number; + /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -1334,7 +2916,7 @@ export interface CNAMERecord { /** * Settings for the DNS record. */ - settings?: CNAMERecord.Settings; + settings?: MXRecord.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -1351,22 +2933,14 @@ export interface CNAMERecord { /** * Record type. */ - type?: 'CNAME'; + type?: 'MX'; } -export namespace CNAMERecord { +export namespace MXRecord { /** * Settings for the DNS record. */ export interface Settings { - /** - * If enabled, causes the CNAME record to be resolved externally and the resulting - * address records (e.g., A and AAAA) to be returned instead of the CNAME record - * itself. This setting is unavailable for proxied records, since they are always - * flattened. - */ - flatten_cname?: boolean; - /** * When enabled, only A records will be generated, and AAAA records will not be * created. This setting is intended for exceptional cases. Note that this option @@ -1385,7 +2959,7 @@ export namespace CNAMERecord { } } -export interface CNAMERecordParam { +export interface MXRecordParam { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1393,7 +2967,7 @@ export interface CNAMERecordParam { comment?: string; /** - * A valid hostname. Must not match the record's name. + * A valid mail server hostname. */ content?: string; @@ -1402,6 +2976,12 @@ export interface CNAMERecordParam { */ name?: string; + /** + * Required for MX, SRV and URI records; unused by other record types. Records with + * lower priorities are preferred. + */ + priority?: number; + /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -1411,7 +2991,7 @@ export interface CNAMERecordParam { /** * Settings for the DNS record. */ - settings?: CNAMERecordParam.Settings; + settings?: MXRecordParam.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -1428,22 +3008,14 @@ export interface CNAMERecordParam { /** * Record type. */ - type?: 'CNAME'; + type?: 'MX'; } -export namespace CNAMERecordParam { +export namespace MXRecordParam { /** * Settings for the DNS record. */ export interface Settings { - /** - * If enabled, causes the CNAME record to be resolved externally and the resulting - * address records (e.g., A and AAAA) to be returned instead of the CNAME record - * itself. This setting is unavailable for proxied records, since they are always - * flattened. - */ - flatten_cname?: boolean; - /** * When enabled, only A records will be generated, and AAAA records will not be * created. This setting is intended for exceptional cases. Note that this option @@ -1462,7 +3034,7 @@ export namespace CNAMERecordParam { } } -export interface DNSKEYRecord { +export interface NAPTRRecord { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1470,14 +3042,14 @@ export interface DNSKEYRecord { comment?: string; /** - * Formatted DNSKEY content. See 'data' to set DNSKEY properties. + * Formatted NAPTR content. See 'data' to set NAPTR properties. */ content?: string; /** - * Components of a DNSKEY record. + * Components of a NAPTR record. */ - data?: DNSKEYRecord.Data; + data?: NAPTRRecord.Data; /** * DNS record name (or @ for the zone apex) in Punycode. @@ -1493,7 +3065,7 @@ export interface DNSKEYRecord { /** * Settings for the DNS record. */ - settings?: DNSKEYRecord.Settings; + settings?: NAPTRRecord.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -1510,33 +3082,43 @@ export interface DNSKEYRecord { /** * Record type. */ - type?: 'DNSKEY'; + type?: 'NAPTR'; } -export namespace DNSKEYRecord { +export namespace NAPTRRecord { /** - * Components of a DNSKEY record. + * Components of a NAPTR record. */ export interface Data { /** - * Algorithm. + * Flags. */ - algorithm?: number; + flags?: string; /** - * Flags. + * Order. */ - flags?: number; + order?: number; /** - * Protocol. + * Preference. */ - protocol?: number; + preference?: number; /** - * Public Key. + * Regex. */ - public_key?: string; + regex?: string; + + /** + * Replacement. + */ + replacement?: string; + + /** + * Service. + */ + service?: string; } /** @@ -1561,7 +3143,7 @@ export namespace DNSKEYRecord { } } -export interface DNSKEYRecordParam { +export interface NAPTRRecordParam { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1569,9 +3151,9 @@ export interface DNSKEYRecordParam { comment?: string; /** - * Components of a DNSKEY record. + * Components of a NAPTR record. */ - data?: DNSKEYRecordParam.Data; + data?: NAPTRRecordParam.Data; /** * DNS record name (or @ for the zone apex) in Punycode. @@ -1587,7 +3169,7 @@ export interface DNSKEYRecordParam { /** * Settings for the DNS record. */ - settings?: DNSKEYRecordParam.Settings; + settings?: NAPTRRecordParam.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -1604,33 +3186,43 @@ export interface DNSKEYRecordParam { /** * Record type. */ - type?: 'DNSKEY'; + type?: 'NAPTR'; } -export namespace DNSKEYRecordParam { +export namespace NAPTRRecordParam { /** - * Components of a DNSKEY record. + * Components of a NAPTR record. */ export interface Data { /** - * Algorithm. + * Flags. */ - algorithm?: number; + flags?: string; /** - * Flags. + * Order. */ - flags?: number; + order?: number; /** - * Protocol. + * Preference. + */ + preference?: number; + + /** + * Regex. + */ + regex?: string; + + /** + * Replacement. */ - protocol?: number; + replacement?: string; /** - * Public Key. + * Service. */ - public_key?: string; + service?: string; } /** @@ -1655,7 +3247,7 @@ export namespace DNSKEYRecordParam { } } -export interface DSRecord { +export interface NSRecord { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1663,15 +3255,10 @@ export interface DSRecord { comment?: string; /** - * Formatted DS content. See 'data' to set DS properties. + * A valid name server host name. */ content?: string; - /** - * Components of a DS record. - */ - data?: DSRecord.Data; - /** * DNS record name (or @ for the zone apex) in Punycode. */ @@ -1686,7 +3273,7 @@ export interface DSRecord { /** * Settings for the DNS record. */ - settings?: DSRecord.Settings; + settings?: NSRecord.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -1703,35 +3290,10 @@ export interface DSRecord { /** * Record type. */ - type?: 'DS'; + type?: 'NS'; } -export namespace DSRecord { - /** - * Components of a DS record. - */ - export interface Data { - /** - * Algorithm. - */ - algorithm?: number; - - /** - * Digest. - */ - digest?: string; - - /** - * Digest Type. - */ - digest_type?: number; - - /** - * Key Tag. - */ - key_tag?: number; - } - +export namespace NSRecord { /** * Settings for the DNS record. */ @@ -1754,7 +3316,7 @@ export namespace DSRecord { } } -export interface DSRecordParam { +export interface NSRecordParam { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1762,9 +3324,9 @@ export interface DSRecordParam { comment?: string; /** - * Components of a DS record. + * A valid name server host name. */ - data?: DSRecordParam.Data; + content?: string; /** * DNS record name (or @ for the zone apex) in Punycode. @@ -1780,7 +3342,7 @@ export interface DSRecordParam { /** * Settings for the DNS record. */ - settings?: DSRecordParam.Settings; + settings?: NSRecordParam.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -1797,35 +3359,10 @@ export interface DSRecordParam { /** * Record type. */ - type?: 'DS'; + type?: 'NS'; } -export namespace DSRecordParam { - /** - * Components of a DS record. - */ - export interface Data { - /** - * Algorithm. - */ - algorithm?: number; - - /** - * Digest. - */ - digest?: string; - - /** - * Digest Type. - */ - digest_type?: number; - - /** - * Key Tag. - */ - key_tag?: number; - } - +export namespace NSRecordParam { /** * Settings for the DNS record. */ @@ -1848,7 +3385,7 @@ export namespace DSRecordParam { } } -export interface HTTPSRecord { +export interface PTRRecord { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1856,15 +3393,10 @@ export interface HTTPSRecord { comment?: string; /** - * Formatted HTTPS content. See 'data' to set HTTPS properties. + * Domain name pointing to the address. */ content?: string; - /** - * Components of a HTTPS record. - */ - data?: HTTPSRecord.Data; - /** * DNS record name (or @ for the zone apex) in Punycode. */ @@ -1879,7 +3411,7 @@ export interface HTTPSRecord { /** * Settings for the DNS record. */ - settings?: HTTPSRecord.Settings; + settings?: PTRRecord.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -1896,30 +3428,10 @@ export interface HTTPSRecord { /** * Record type. */ - type?: 'HTTPS'; + type?: 'PTR'; } -export namespace HTTPSRecord { - /** - * Components of a HTTPS record. - */ - export interface Data { - /** - * priority. - */ - priority?: number; - - /** - * target. - */ - target?: string; - - /** - * value. - */ - value?: string; - } - +export namespace PTRRecord { /** * Settings for the DNS record. */ @@ -1942,7 +3454,7 @@ export namespace HTTPSRecord { } } -export interface HTTPSRecordParam { +export interface PTRRecordParam { /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1950,9 +3462,9 @@ export interface HTTPSRecordParam { comment?: string; /** - * Components of a HTTPS record. + * Domain name pointing to the address. */ - data?: HTTPSRecordParam.Data; + content?: string; /** * DNS record name (or @ for the zone apex) in Punycode. @@ -1968,7 +3480,7 @@ export interface HTTPSRecordParam { /** * Settings for the DNS record. */ - settings?: HTTPSRecordParam.Settings; + settings?: PTRRecordParam.Settings; /** * Custom tags for the DNS record. This field has no effect on DNS responses. @@ -1985,30 +3497,10 @@ export interface HTTPSRecordParam { /** * Record type. */ - type?: 'HTTPS'; + type?: 'PTR'; } -export namespace HTTPSRecordParam { - /** - * Components of a HTTPS record. - */ - export interface Data { - /** - * priority. - */ - priority?: number; - - /** - * target. - */ - target?: string; - - /** - * value. - */ - value?: string; - } - +export namespace PTRRecordParam { /** * Settings for the DNS record. */ @@ -2031,1103 +3523,966 @@ export namespace HTTPSRecordParam { } } -export interface LOCRecord { - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; +export type Record = + | ARecord + | AAAARecord + | CNAMERecord + | MXRecord + | NSRecord + | Record.Openpgpkey + | PTRRecord + | TXTRecord + | CAARecord + | CERTRecord + | DNSKEYRecord + | DSRecord + | HTTPSRecord + | LOCRecord + | NAPTRRecord + | SMIMEARecord + | SRVRecord + | SSHFPRecord + | SVCBRecord + | TLSARecord + | URIRecord; - /** - * Formatted LOC content. See 'data' to set LOC properties. - */ - content?: string; +export namespace Record { + export interface Openpgpkey { + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; - /** - * Components of a LOC record. - */ - data?: LOCRecord.Data; + /** + * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) + */ + content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name?: string; - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied?: boolean; + /** + * Whether the record is receiving the performance and security benefits of + * Cloudflare. + */ + proxied?: boolean; - /** - * Settings for the DNS record. - */ - settings?: LOCRecord.Settings; + /** + * Settings for the DNS record. + */ + settings?: Openpgpkey.Settings; - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags?: Array; + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags?: Array; - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl?: TTL; + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl?: RecordsAPI.TTL; + + /** + * Record type. + */ + type?: 'OPENPGPKEY'; + } + + export namespace Openpgpkey { + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; - /** - * Record type. - */ - type?: 'LOC'; + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } + } } -export namespace LOCRecord { - /** - * Components of a LOC record. - */ - export interface Data { +export type RecordResponse = + | RecordResponse.ARecord + | RecordResponse.AAAARecord + | RecordResponse.CNAMERecord + | RecordResponse.MXRecord + | RecordResponse.NSRecord + | RecordResponse.OpenpgpkeyRecord + | RecordResponse.PTRRecord + | RecordResponse.TXTRecord + | RecordResponse.CAARecord + | RecordResponse.CERTRecord + | RecordResponse.DNSKEYRecord + | RecordResponse.DSRecord + | RecordResponse.HTTPSRecord + | RecordResponse.LOCRecord + | RecordResponse.NAPTRRecord + | RecordResponse.SMIMEARecord + | RecordResponse.SRVRecord + | RecordResponse.SSHFPRecord + | RecordResponse.SVCBRecord + | RecordResponse.TLSARecord + | RecordResponse.URIRecord; + +export namespace RecordResponse { + export interface ARecord extends RecordsAPI.ARecord { /** - * Altitude of location in meters. + * Identifier. */ - altitude?: number; + id: string; /** - * Degrees of latitude. + * When the record was created. */ - lat_degrees?: number; + created_on: string; /** - * Latitude direction. + * Extra Cloudflare-specific information about the record. */ - lat_direction?: 'N' | 'S'; + meta: unknown; /** - * Minutes of latitude. + * When the record was last modified. */ - lat_minutes?: number; + modified_on: string; /** - * Seconds of latitude. + * Whether the record can be proxied by Cloudflare or not. */ - lat_seconds?: number; + proxiable: boolean; /** - * Degrees of longitude. + * When the record comment was last modified. Omitted if there is no comment. */ - long_degrees?: number; + comment_modified_on?: string; /** - * Longitude direction. + * When the record tags were last modified. Omitted if there are no tags. */ - long_direction?: 'E' | 'W'; + tags_modified_on?: string; + } + export interface AAAARecord extends RecordsAPI.AAAARecord { /** - * Minutes of longitude. + * Identifier. */ - long_minutes?: number; + id: string; /** - * Seconds of longitude. + * When the record was created. */ - long_seconds?: number; + created_on: string; /** - * Horizontal precision of location. + * Extra Cloudflare-specific information about the record. */ - precision_horz?: number; + meta: unknown; /** - * Vertical precision of location. + * When the record was last modified. */ - precision_vert?: number; + modified_on: string; /** - * Size of location in meters. + * Whether the record can be proxied by Cloudflare or not. */ - size?: number; - } + proxiable: boolean; - /** - * Settings for the DNS record. - */ - export interface Settings { /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * When the record comment was last modified. Omitted if there is no comment. */ - ipv4_only?: boolean; + comment_modified_on?: string; /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * When the record tags were last modified. Omitted if there are no tags. */ - ipv6_only?: boolean; + tags_modified_on?: string; } -} - -export interface LOCRecordParam { - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; - /** - * Components of a LOC record. - */ - data?: LOCRecordParam.Data; + export interface CNAMERecord extends RecordsAPI.CNAMERecord { + /** + * Identifier. + */ + id: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; + /** + * When the record was created. + */ + created_on: string; - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied?: boolean; + /** + * Extra Cloudflare-specific information about the record. + */ + meta: unknown; - /** - * Settings for the DNS record. - */ - settings?: LOCRecordParam.Settings; + /** + * When the record was last modified. + */ + modified_on: string; - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags?: Array; + /** + * Whether the record can be proxied by Cloudflare or not. + */ + proxiable: boolean; - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl?: TTLParam; + /** + * When the record comment was last modified. Omitted if there is no comment. + */ + comment_modified_on?: string; - /** - * Record type. - */ - type?: 'LOC'; -} + /** + * When the record tags were last modified. Omitted if there are no tags. + */ + tags_modified_on?: string; + } -export namespace LOCRecordParam { - /** - * Components of a LOC record. - */ - export interface Data { + export interface MXRecord extends RecordsAPI.MXRecord { /** - * Altitude of location in meters. + * Identifier. */ - altitude?: number; + id: string; /** - * Degrees of latitude. + * When the record was created. */ - lat_degrees?: number; + created_on: string; /** - * Latitude direction. + * Extra Cloudflare-specific information about the record. */ - lat_direction?: 'N' | 'S'; + meta: unknown; /** - * Minutes of latitude. + * When the record was last modified. */ - lat_minutes?: number; + modified_on: string; /** - * Seconds of latitude. + * Whether the record can be proxied by Cloudflare or not. */ - lat_seconds?: number; + proxiable: boolean; /** - * Degrees of longitude. + * When the record comment was last modified. Omitted if there is no comment. */ - long_degrees?: number; + comment_modified_on?: string; /** - * Longitude direction. + * When the record tags were last modified. Omitted if there are no tags. */ - long_direction?: 'E' | 'W'; + tags_modified_on?: string; + } + export interface NSRecord extends RecordsAPI.NSRecord { /** - * Minutes of longitude. + * Identifier. */ - long_minutes?: number; + id: string; /** - * Seconds of longitude. + * When the record was created. */ - long_seconds?: number; + created_on: string; /** - * Horizontal precision of location. + * Extra Cloudflare-specific information about the record. */ - precision_horz?: number; + meta: unknown; /** - * Vertical precision of location. + * When the record was last modified. */ - precision_vert?: number; + modified_on: string; /** - * Size of location in meters. + * Whether the record can be proxied by Cloudflare or not. */ - size?: number; - } + proxiable: boolean; - /** - * Settings for the DNS record. - */ - export interface Settings { /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * When the record comment was last modified. Omitted if there is no comment. */ - ipv4_only?: boolean; + comment_modified_on?: string; /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * When the record tags were last modified. Omitted if there are no tags. */ - ipv6_only?: boolean; + tags_modified_on?: string; } -} - -export interface MXRecord { - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; - /** - * A valid mail server hostname. - */ - content?: string; + export interface OpenpgpkeyRecord { + /** + * Identifier. + */ + id: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; + /** + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment: string; - /** - * Required for MX, SRV and URI records; unused by other record types. Records with - * lower priorities are preferred. - */ - priority?: number; + /** + * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) + */ + content: string; - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied?: boolean; + /** + * When the record was created. + */ + created_on: string; - /** - * Settings for the DNS record. - */ - settings?: MXRecord.Settings; + /** + * Extra Cloudflare-specific information about the record. + */ + meta: unknown; - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags?: Array; + /** + * When the record was last modified. + */ + modified_on: string; - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl?: TTL; + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; - /** - * Record type. - */ - type?: 'MX'; -} + /** + * Whether the record can be proxied by Cloudflare or not. + */ + proxiable: boolean; -export namespace MXRecord { - /** - * Settings for the DNS record. - */ - export interface Settings { /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * Whether the record is receiving the performance and security benefits of + * Cloudflare. */ - ipv4_only?: boolean; + proxied: boolean; /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * Settings for the DNS record. */ - ipv6_only?: boolean; - } -} + settings: OpenpgpkeyRecord.Settings; -export interface MXRecordParam { - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; + /** + * Custom tags for the DNS record. This field has no effect on DNS responses. + */ + tags: Array; - /** - * A valid mail server hostname. - */ - content?: string; + /** + * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. + * Value must be between 60 and 86400, with the minimum reduced to 30 for + * Enterprise zones. + */ + ttl: RecordsAPI.TTL; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; + /** + * Record type. + */ + type: 'OPENPGPKEY'; - /** - * Required for MX, SRV and URI records; unused by other record types. Records with - * lower priorities are preferred. - */ - priority?: number; + /** + * When the record comment was last modified. Omitted if there is no comment. + */ + comment_modified_on?: string; - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied?: boolean; + /** + * When the record tags were last modified. Omitted if there are no tags. + */ + tags_modified_on?: string; + } - /** - * Settings for the DNS record. - */ - settings?: MXRecordParam.Settings; + export namespace OpenpgpkeyRecord { + /** + * Settings for the DNS record. + */ + export interface Settings { + /** + * When enabled, only A records will be generated, and AAAA records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv4_only?: boolean; - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags?: Array; + /** + * When enabled, only AAAA records will be generated, and A records will not be + * created. This setting is intended for exceptional cases. Note that this option + * only applies to proxied records and it has no effect on whether Cloudflare + * communicates with the origin using IPv4 or IPv6. + */ + ipv6_only?: boolean; + } + } - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl?: TTLParam; + export interface PTRRecord extends RecordsAPI.PTRRecord { + /** + * Identifier. + */ + id: string; - /** - * Record type. - */ - type?: 'MX'; -} + /** + * When the record was created. + */ + created_on: string; -export namespace MXRecordParam { - /** - * Settings for the DNS record. - */ - export interface Settings { /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * Extra Cloudflare-specific information about the record. */ - ipv4_only?: boolean; + meta: unknown; /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * When the record was last modified. */ - ipv6_only?: boolean; - } -} + modified_on: string; -export interface NAPTRRecord { - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; + /** + * Whether the record can be proxied by Cloudflare or not. + */ + proxiable: boolean; - /** - * Formatted NAPTR content. See 'data' to set NAPTR properties. - */ - content?: string; + /** + * When the record comment was last modified. Omitted if there is no comment. + */ + comment_modified_on?: string; - /** - * Components of a NAPTR record. - */ - data?: NAPTRRecord.Data; + /** + * When the record tags were last modified. Omitted if there are no tags. + */ + tags_modified_on?: string; + } - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; + export interface TXTRecord extends RecordsAPI.TXTRecord { + /** + * Identifier. + */ + id: string; - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied?: boolean; + /** + * When the record was created. + */ + created_on: string; - /** - * Settings for the DNS record. - */ - settings?: NAPTRRecord.Settings; + /** + * Extra Cloudflare-specific information about the record. + */ + meta: unknown; - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags?: Array; + /** + * When the record was last modified. + */ + modified_on: string; - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl?: TTL; + /** + * Whether the record can be proxied by Cloudflare or not. + */ + proxiable: boolean; - /** - * Record type. - */ - type?: 'NAPTR'; -} + /** + * When the record comment was last modified. Omitted if there is no comment. + */ + comment_modified_on?: string; -export namespace NAPTRRecord { - /** - * Components of a NAPTR record. - */ - export interface Data { /** - * Flags. + * When the record tags were last modified. Omitted if there are no tags. */ - flags?: string; + tags_modified_on?: string; + } + export interface CAARecord extends RecordsAPI.CAARecord { /** - * Order. + * Identifier. */ - order?: number; + id: string; /** - * Preference. + * When the record was created. */ - preference?: number; + created_on: string; /** - * Regex. + * Extra Cloudflare-specific information about the record. */ - regex?: string; + meta: unknown; /** - * Replacement. + * When the record was last modified. */ - replacement?: string; + modified_on: string; /** - * Service. + * Whether the record can be proxied by Cloudflare or not. */ - service?: string; - } + proxiable: boolean; - /** - * Settings for the DNS record. - */ - export interface Settings { /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * When the record comment was last modified. Omitted if there is no comment. */ - ipv4_only?: boolean; + comment_modified_on?: string; /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * When the record tags were last modified. Omitted if there are no tags. */ - ipv6_only?: boolean; + tags_modified_on?: string; } -} - -export interface NAPTRRecordParam { - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; - - /** - * Components of a NAPTR record. - */ - data?: NAPTRRecordParam.Data; - - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied?: boolean; + export interface CERTRecord extends RecordsAPI.CERTRecord { + /** + * Identifier. + */ + id: string; - /** - * Settings for the DNS record. - */ - settings?: NAPTRRecordParam.Settings; + /** + * When the record was created. + */ + created_on: string; - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags?: Array; + /** + * Extra Cloudflare-specific information about the record. + */ + meta: unknown; - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl?: TTLParam; + /** + * When the record was last modified. + */ + modified_on: string; - /** - * Record type. - */ - type?: 'NAPTR'; -} + /** + * Whether the record can be proxied by Cloudflare or not. + */ + proxiable: boolean; -export namespace NAPTRRecordParam { - /** - * Components of a NAPTR record. - */ - export interface Data { /** - * Flags. + * When the record comment was last modified. Omitted if there is no comment. */ - flags?: string; + comment_modified_on?: string; /** - * Order. + * When the record tags were last modified. Omitted if there are no tags. */ - order?: number; + tags_modified_on?: string; + } + export interface DNSKEYRecord extends RecordsAPI.DNSKEYRecord { /** - * Preference. + * Identifier. */ - preference?: number; + id: string; /** - * Regex. + * When the record was created. */ - regex?: string; + created_on: string; /** - * Replacement. + * Extra Cloudflare-specific information about the record. */ - replacement?: string; + meta: unknown; /** - * Service. + * When the record was last modified. */ - service?: string; - } + modified_on: string; - /** - * Settings for the DNS record. - */ - export interface Settings { /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * Whether the record can be proxied by Cloudflare or not. */ - ipv4_only?: boolean; + proxiable: boolean; /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * When the record comment was last modified. Omitted if there is no comment. */ - ipv6_only?: boolean; + comment_modified_on?: string; + + /** + * When the record tags were last modified. Omitted if there are no tags. + */ + tags_modified_on?: string; } -} -export interface NSRecord { - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; + export interface DSRecord extends RecordsAPI.DSRecord { + /** + * Identifier. + */ + id: string; - /** - * A valid name server host name. - */ - content?: string; + /** + * When the record was created. + */ + created_on: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; + /** + * Extra Cloudflare-specific information about the record. + */ + meta: unknown; - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied?: boolean; + /** + * When the record was last modified. + */ + modified_on: string; - /** - * Settings for the DNS record. - */ - settings?: NSRecord.Settings; + /** + * Whether the record can be proxied by Cloudflare or not. + */ + proxiable: boolean; - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags?: Array; + /** + * When the record comment was last modified. Omitted if there is no comment. + */ + comment_modified_on?: string; - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl?: TTL; + /** + * When the record tags were last modified. Omitted if there are no tags. + */ + tags_modified_on?: string; + } - /** - * Record type. - */ - type?: 'NS'; -} + export interface HTTPSRecord extends RecordsAPI.HTTPSRecord { + /** + * Identifier. + */ + id: string; -export namespace NSRecord { - /** - * Settings for the DNS record. - */ - export interface Settings { /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * When the record was created. */ - ipv4_only?: boolean; + created_on: string; /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * Extra Cloudflare-specific information about the record. */ - ipv6_only?: boolean; - } -} + meta: unknown; -export interface NSRecordParam { - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; + /** + * When the record was last modified. + */ + modified_on: string; - /** - * A valid name server host name. - */ - content?: string; + /** + * Whether the record can be proxied by Cloudflare or not. + */ + proxiable: boolean; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; + /** + * When the record comment was last modified. Omitted if there is no comment. + */ + comment_modified_on?: string; - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied?: boolean; + /** + * When the record tags were last modified. Omitted if there are no tags. + */ + tags_modified_on?: string; + } - /** - * Settings for the DNS record. - */ - settings?: NSRecordParam.Settings; + export interface LOCRecord extends RecordsAPI.LOCRecord { + /** + * Identifier. + */ + id: string; - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags?: Array; + /** + * When the record was created. + */ + created_on: string; - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl?: TTLParam; + /** + * Extra Cloudflare-specific information about the record. + */ + meta: unknown; - /** - * Record type. - */ - type?: 'NS'; -} + /** + * When the record was last modified. + */ + modified_on: string; -export namespace NSRecordParam { - /** - * Settings for the DNS record. - */ - export interface Settings { /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * Whether the record can be proxied by Cloudflare or not. */ - ipv4_only?: boolean; + proxiable: boolean; /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * When the record comment was last modified. Omitted if there is no comment. */ - ipv6_only?: boolean; + comment_modified_on?: string; + + /** + * When the record tags were last modified. Omitted if there are no tags. + */ + tags_modified_on?: string; } -} -export interface PTRRecord { - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; + export interface NAPTRRecord extends RecordsAPI.NAPTRRecord { + /** + * Identifier. + */ + id: string; - /** - * Domain name pointing to the address. - */ - content?: string; + /** + * When the record was created. + */ + created_on: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; + /** + * Extra Cloudflare-specific information about the record. + */ + meta: unknown; - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied?: boolean; + /** + * When the record was last modified. + */ + modified_on: string; - /** - * Settings for the DNS record. - */ - settings?: PTRRecord.Settings; + /** + * Whether the record can be proxied by Cloudflare or not. + */ + proxiable: boolean; - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags?: Array; + /** + * When the record comment was last modified. Omitted if there is no comment. + */ + comment_modified_on?: string; - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl?: TTL; + /** + * When the record tags were last modified. Omitted if there are no tags. + */ + tags_modified_on?: string; + } + + export interface SMIMEARecord extends RecordsAPI.SMIMEARecord { + /** + * Identifier. + */ + id: string; + + /** + * When the record was created. + */ + created_on: string; - /** - * Record type. - */ - type?: 'PTR'; -} + /** + * Extra Cloudflare-specific information about the record. + */ + meta: unknown; -export namespace PTRRecord { - /** - * Settings for the DNS record. - */ - export interface Settings { /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * When the record was last modified. */ - ipv4_only?: boolean; + modified_on: string; /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * Whether the record can be proxied by Cloudflare or not. */ - ipv6_only?: boolean; + proxiable: boolean; + + /** + * When the record comment was last modified. Omitted if there is no comment. + */ + comment_modified_on?: string; + + /** + * When the record tags were last modified. Omitted if there are no tags. + */ + tags_modified_on?: string; } -} -export interface PTRRecordParam { - /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. - */ - comment?: string; + export interface SRVRecord extends RecordsAPI.SRVRecord { + /** + * Identifier. + */ + id: string; - /** - * Domain name pointing to the address. - */ - content?: string; + /** + * When the record was created. + */ + created_on: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; + /** + * Extra Cloudflare-specific information about the record. + */ + meta: unknown; - /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. - */ - proxied?: boolean; + /** + * When the record was last modified. + */ + modified_on: string; - /** - * Settings for the DNS record. - */ - settings?: PTRRecordParam.Settings; + /** + * Whether the record can be proxied by Cloudflare or not. + */ + proxiable: boolean; - /** - * Custom tags for the DNS record. This field has no effect on DNS responses. - */ - tags?: Array; + /** + * When the record comment was last modified. Omitted if there is no comment. + */ + comment_modified_on?: string; - /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. - */ - ttl?: TTLParam; + /** + * When the record tags were last modified. Omitted if there are no tags. + */ + tags_modified_on?: string; + } - /** - * Record type. - */ - type?: 'PTR'; -} + export interface SSHFPRecord extends RecordsAPI.SSHFPRecord { + /** + * Identifier. + */ + id: string; -export namespace PTRRecordParam { - /** - * Settings for the DNS record. - */ - export interface Settings { /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * When the record was created. */ - ipv4_only?: boolean; + created_on: string; /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. + * Extra Cloudflare-specific information about the record. */ - ipv6_only?: boolean; - } -} + meta: unknown; -export type Record = - | ARecord - | AAAARecord - | CNAMERecord - | MXRecord - | NSRecord - | Record.Openpgpkey - | PTRRecord - | TXTRecord - | CAARecord - | CERTRecord - | DNSKEYRecord - | DSRecord - | HTTPSRecord - | LOCRecord - | NAPTRRecord - | SMIMEARecord - | SRVRecord - | SSHFPRecord - | SVCBRecord - | TLSARecord - | URIRecord; + /** + * When the record was last modified. + */ + modified_on: string; -export namespace Record { - export interface Openpgpkey { /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. + * Whether the record can be proxied by Cloudflare or not. */ - comment?: string; + proxiable: boolean; /** - * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) + * When the record comment was last modified. Omitted if there is no comment. */ - content?: string; + comment_modified_on?: string; /** - * DNS record name (or @ for the zone apex) in Punycode. + * When the record tags were last modified. Omitted if there are no tags. */ - name?: string; + tags_modified_on?: string; + } + export interface SVCBRecord extends RecordsAPI.SVCBRecord { /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. + * Identifier. */ - proxied?: boolean; + id: string; /** - * Settings for the DNS record. + * When the record was created. */ - settings?: Openpgpkey.Settings; + created_on: string; /** - * Custom tags for the DNS record. This field has no effect on DNS responses. + * Extra Cloudflare-specific information about the record. */ - tags?: Array; + meta: unknown; /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. + * When the record was last modified. */ - ttl?: RecordsAPI.TTL; + modified_on: string; /** - * Record type. + * Whether the record can be proxied by Cloudflare or not. */ - type?: 'OPENPGPKEY'; - } + proxiable: boolean; - export namespace Openpgpkey { /** - * Settings for the DNS record. + * When the record comment was last modified. Omitted if there is no comment. */ - export interface Settings { - /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv4_only?: boolean; + comment_modified_on?: string; - /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv6_only?: boolean; - } + /** + * When the record tags were last modified. Omitted if there are no tags. + */ + tags_modified_on?: string; } -} -export type RecordResponse = - | ARecord - | AAAARecord - | CNAMERecord - | MXRecord - | NSRecord - | RecordResponse.DNSRecordsOpenpgpkeyRecord - | PTRRecord - | TXTRecord - | CAARecord - | CERTRecord - | DNSKEYRecord - | DSRecord - | HTTPSRecord - | LOCRecord - | NAPTRRecord - | SMIMEARecord - | SRVRecord - | SSHFPRecord - | SVCBRecord - | TLSARecord - | URIRecord; + export interface TLSARecord extends RecordsAPI.TLSARecord { + /** + * Identifier. + */ + id: string; -export namespace RecordResponse { - export interface DNSRecordsOpenpgpkeyRecord { /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. + * When the record was created. */ - comment?: string; + created_on: string; /** - * A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) + * Extra Cloudflare-specific information about the record. */ - content?: string; + meta: unknown; /** - * DNS record name (or @ for the zone apex) in Punycode. + * When the record was last modified. */ - name?: string; + modified_on: string; /** - * Whether the record is receiving the performance and security benefits of - * Cloudflare. + * Whether the record can be proxied by Cloudflare or not. */ - proxied?: boolean; + proxiable: boolean; /** - * Settings for the DNS record. + * When the record comment was last modified. Omitted if there is no comment. */ - settings?: DNSRecordsOpenpgpkeyRecord.Settings; + comment_modified_on?: string; /** - * Custom tags for the DNS record. This field has no effect on DNS responses. + * When the record tags were last modified. Omitted if there are no tags. */ - tags?: Array; + tags_modified_on?: string; + } + export interface URIRecord extends RecordsAPI.URIRecord { /** - * Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - * Value must be between 60 and 86400, with the minimum reduced to 30 for - * Enterprise zones. + * Identifier. */ - ttl?: RecordsAPI.TTL; + id: string; /** - * Record type. + * When the record was created. */ - type?: 'OPENPGPKEY'; - } + created_on: string; - export namespace DNSRecordsOpenpgpkeyRecord { /** - * Settings for the DNS record. + * Extra Cloudflare-specific information about the record. */ - export interface Settings { - /** - * When enabled, only A records will be generated, and AAAA records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv4_only?: boolean; + meta: unknown; - /** - * When enabled, only AAAA records will be generated, and A records will not be - * created. This setting is intended for exceptional cases. Note that this option - * only applies to proxied records and it has no effect on whether Cloudflare - * communicates with the origin using IPv4 or IPv6. - */ - ipv6_only?: boolean; - } + /** + * When the record was last modified. + */ + modified_on: string; + + /** + * Whether the record can be proxied by Cloudflare or not. + */ + proxiable: boolean; + + /** + * When the record comment was last modified. Omitted if there is no comment. + */ + comment_modified_on?: string; + + /** + * When the record tags were last modified. Omitted if there are no tags. + */ + tags_modified_on?: string; } } diff --git a/tests/api-resources/dns/records.test.ts b/tests/api-resources/dns/records.test.ts index b6aa92d222..3fb585e3c1 100644 --- a/tests/api-resources/dns/records.test.ts +++ b/tests/api-resources/dns/records.test.ts @@ -163,6 +163,7 @@ describe('resource records', () => { tags: ['owner:dns-team'], ttl: 3600, type: 'A', + id: '023e105f4ecef8ad9ca31a8372d0c353', }, ], posts: [ @@ -187,6 +188,7 @@ describe('resource records', () => { tags: ['owner:dns-team'], ttl: 3600, type: 'A', + id: '023e105f4ecef8ad9ca31a8372d0c353', }, ], }); From 76f60d461041322c275da37eaf5b47f2c5a3a3c5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 17:54:36 +0000 Subject: [PATCH 293/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index dcb80598ca..0bd3f31d9e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d4a52ca913d45dd50da51a40fe77ef64ecaa4e737e315d0823510432014aa326.yml -openapi_spec_hash: 8140a742ba28b4cb1a378bd5b4a19c53 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fcef12bbdc3c6d1dc8413b605ab62afab8fb116cc486861e269f93b8c57efe62.yml +openapi_spec_hash: f305b192630faedd5dc6e9d3044fdb2c config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 42938e9e2544fff42a9a36b15c3a278f1ca978d8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 17:57:13 +0000 Subject: [PATCH 294/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0bd3f31d9e..cb72edac07 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fcef12bbdc3c6d1dc8413b605ab62afab8fb116cc486861e269f93b8c57efe62.yml -openapi_spec_hash: f305b192630faedd5dc6e9d3044fdb2c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-31106c96501fb8a468de24fd909807f18f0feae165e4eaac95edfca2a876efb8.yml +openapi_spec_hash: bd2467079d7096c83d90f3c0f5060c6c config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From bc7c3accfc3e54cee5bbce52f4255fafe7826228 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 17:59:47 +0000 Subject: [PATCH 295/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index cb72edac07..0bd3f31d9e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-31106c96501fb8a468de24fd909807f18f0feae165e4eaac95edfca2a876efb8.yml -openapi_spec_hash: bd2467079d7096c83d90f3c0f5060c6c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fcef12bbdc3c6d1dc8413b605ab62afab8fb116cc486861e269f93b8c57efe62.yml +openapi_spec_hash: f305b192630faedd5dc6e9d3044fdb2c config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From ca4d1b18f437368288986e0a24e044fe7fb7beb0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 18:02:35 +0000 Subject: [PATCH 296/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0bd3f31d9e..6e8d818362 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fcef12bbdc3c6d1dc8413b605ab62afab8fb116cc486861e269f93b8c57efe62.yml -openapi_spec_hash: f305b192630faedd5dc6e9d3044fdb2c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a1192c6f96cd06ded833c15d18ae2a908b276c8c8959c99a3f7233a9d5665a38.yml +openapi_spec_hash: dbabaa2c63eda62ec50acd9001ab00f5 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From ba0bcf6d96e9005fdfb48751399e36a5b268d624 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 19:12:15 +0000 Subject: [PATCH 297/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6e8d818362..cb72edac07 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a1192c6f96cd06ded833c15d18ae2a908b276c8c8959c99a3f7233a9d5665a38.yml -openapi_spec_hash: dbabaa2c63eda62ec50acd9001ab00f5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-31106c96501fb8a468de24fd909807f18f0feae165e4eaac95edfca2a876efb8.yml +openapi_spec_hash: bd2467079d7096c83d90f3c0f5060c6c config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 1ce93297babe69e26fab40567b15537c970c93f7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 19:21:31 +0000 Subject: [PATCH 298/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index cb72edac07..0bd3f31d9e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-31106c96501fb8a468de24fd909807f18f0feae165e4eaac95edfca2a876efb8.yml -openapi_spec_hash: bd2467079d7096c83d90f3c0f5060c6c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fcef12bbdc3c6d1dc8413b605ab62afab8fb116cc486861e269f93b8c57efe62.yml +openapi_spec_hash: f305b192630faedd5dc6e9d3044fdb2c config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 24d26a683df63582baa4a8bb62013c308f3a9639 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 20:32:09 +0000 Subject: [PATCH 299/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0bd3f31d9e..f47c779840 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fcef12bbdc3c6d1dc8413b605ab62afab8fb116cc486861e269f93b8c57efe62.yml -openapi_spec_hash: f305b192630faedd5dc6e9d3044fdb2c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d4c85e43b0b1d627b22cd647db68651f6bd7995c6cdb80c1b031918e13177987.yml +openapi_spec_hash: 97cbb7c62ad195b8542aa92d8560e8c5 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 05c7938704872409c474379d16390bb96dd92e7f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 20:34:49 +0000 Subject: [PATCH 300/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f47c779840..a07dd42b2b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d4c85e43b0b1d627b22cd647db68651f6bd7995c6cdb80c1b031918e13177987.yml -openapi_spec_hash: 97cbb7c62ad195b8542aa92d8560e8c5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f49952becf903d91cf289eba71d8531af8cbfa7c460cd4540e7daa6c0524a4c6.yml +openapi_spec_hash: f2a6f856ccd87e6f1e55ec18941b9076 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 4c62b8e997c264c108f15483ddcd063cb2988b0e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 21:03:43 +0000 Subject: [PATCH 301/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a07dd42b2b..9dec29571f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f49952becf903d91cf289eba71d8531af8cbfa7c460cd4540e7daa6c0524a4c6.yml -openapi_spec_hash: f2a6f856ccd87e6f1e55ec18941b9076 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-648244fd379701da460c64594a401db9925d4c65b1af79367f41dfdfc80222d2.yml +openapi_spec_hash: f3d30d74ead466775fa211ae773a577e config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 9dfb8fc6c4930028ff1b62bb9cfea54c12756cfb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 06:12:04 +0000 Subject: [PATCH 302/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9dec29571f..a6f04de624 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-648244fd379701da460c64594a401db9925d4c65b1af79367f41dfdfc80222d2.yml -openapi_spec_hash: f3d30d74ead466775fa211ae773a577e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-35ee20408f8ef8d86d4b7721eaec5522bb399d0cdc36060485669778546f8943.yml +openapi_spec_hash: 492ad6e336a4e1700fca5bee1a22d27e config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From ed6dbd8843321f442092afc3e536a0ed32291473 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 09:24:24 +0000 Subject: [PATCH 303/366] feat(api): api update --- .stats.yml | 4 +- src/resources/rulesets/rules.ts | 96 +++++++++++++++--------------- src/resources/url-scanner/scans.ts | 2 +- 3 files changed, 51 insertions(+), 51 deletions(-) diff --git a/.stats.yml b/.stats.yml index a6f04de624..096c130d91 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-35ee20408f8ef8d86d4b7721eaec5522bb399d0cdc36060485669778546f8943.yml -openapi_spec_hash: 492ad6e336a4e1700fca5bee1a22d27e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c9d03f7778e08946851b892774b4e4ae7e5850d6bf9aa46a2f2987ae36654c11.yml +openapi_spec_hash: ea5aedea123848557686e3f613fd02b7 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 diff --git a/src/resources/rulesets/rules.ts b/src/resources/rulesets/rules.ts index d58790897a..d321812928 100644 --- a/src/resources/rulesets/rules.ts +++ b/src/resources/rulesets/rules.ts @@ -1159,7 +1159,7 @@ export namespace ExecuteRule { export namespace Overrides { /** - * A category-level override + * A category-level override. */ export interface Category { /** @@ -1184,7 +1184,7 @@ export namespace ExecuteRule { } /** - * A rule-level override + * A rule-level override. */ export interface Rule { /** @@ -1402,7 +1402,7 @@ export namespace ExecuteRuleParam { export namespace Overrides { /** - * A category-level override + * A category-level override. */ export interface Category { /** @@ -1427,7 +1427,7 @@ export namespace ExecuteRuleParam { } /** - * A rule-level override + * A rule-level override. */ export interface Rule { /** @@ -4791,7 +4791,7 @@ export namespace SetCacheSettingsRule { /** * Generate Cloudflare error pages from issues sent from the origin server. When - * on, error pages will trigger for issues from the origin + * on, error pages will trigger for issues from the origin. */ origin_error_page_passthru?: boolean; @@ -4842,13 +4842,13 @@ export namespace SetCacheSettingsRule { */ export interface CacheKey { /** - * Separate cached content based on the visitor’s device type + * Separate cached content based on the visitor’s device type. */ cache_by_device_type?: boolean; /** * Protect from web cache deception attacks while allowing static assets to be - * cached + * cached. */ cache_deception_armor?: boolean; @@ -5072,12 +5072,12 @@ export namespace SetCacheSettingsRule { default: number; /** - * edge ttl options + * Edge TTL options. */ mode: 'respect_origin' | 'bypass_by_default' | 'override_origin'; /** - * List of single status codes, or status code ranges to apply the selected mode + * List of single status codes, or status code ranges to apply the selected mode. */ status_code_ttl: Array; } @@ -5085,7 +5085,7 @@ export namespace SetCacheSettingsRule { export namespace EdgeTTL { /** * Specify how long Cloudflare should cache the response based on the status code - * from the origin. Can be a single status code or a range or status codes + * from the origin. Can be a single status code or a range or status codes. */ export interface StatusCodeTTL { /** @@ -5101,7 +5101,7 @@ export namespace SetCacheSettingsRule { status_code_range?: StatusCodeTTL.StatusCodeRange; /** - * Set the ttl for responses with this specific status code + * Set the TTL for responses with this specific status code. */ status_code_value?: number; } @@ -5112,12 +5112,12 @@ export namespace SetCacheSettingsRule { */ export interface StatusCodeRange { /** - * response status code lower bound + * Response status code lower bound. */ from: number; /** - * response status code upper bound + * Response status code upper bound. */ to: number; } @@ -5307,7 +5307,7 @@ export namespace SetCacheSettingsRuleParam { /** * Generate Cloudflare error pages from issues sent from the origin server. When - * on, error pages will trigger for issues from the origin + * on, error pages will trigger for issues from the origin. */ origin_error_page_passthru?: boolean; @@ -5358,13 +5358,13 @@ export namespace SetCacheSettingsRuleParam { */ export interface CacheKey { /** - * Separate cached content based on the visitor’s device type + * Separate cached content based on the visitor’s device type. */ cache_by_device_type?: boolean; /** * Protect from web cache deception attacks while allowing static assets to be - * cached + * cached. */ cache_deception_armor?: boolean; @@ -5588,12 +5588,12 @@ export namespace SetCacheSettingsRuleParam { default: number; /** - * edge ttl options + * Edge TTL options. */ mode: 'respect_origin' | 'bypass_by_default' | 'override_origin'; /** - * List of single status codes, or status code ranges to apply the selected mode + * List of single status codes, or status code ranges to apply the selected mode. */ status_code_ttl: Array; } @@ -5601,7 +5601,7 @@ export namespace SetCacheSettingsRuleParam { export namespace EdgeTTL { /** * Specify how long Cloudflare should cache the response based on the status code - * from the origin. Can be a single status code or a range or status codes + * from the origin. Can be a single status code or a range or status codes. */ export interface StatusCodeTTL { /** @@ -5617,7 +5617,7 @@ export namespace SetCacheSettingsRuleParam { status_code_range?: StatusCodeTTL.StatusCodeRange; /** - * Set the ttl for responses with this specific status code + * Set the TTL for responses with this specific status code. */ status_code_value?: number; } @@ -5628,12 +5628,12 @@ export namespace SetCacheSettingsRuleParam { */ export interface StatusCodeRange { /** - * response status code lower bound + * Response status code lower bound. */ from: number; /** - * response status code upper bound + * Response status code upper bound. */ to: number; } @@ -5855,7 +5855,7 @@ export namespace SetConfigRule { polish?: 'off' | 'lossless' | 'lossy' | 'webp'; /** - * Turn on or off Rocket Loader + * Turn on or off Rocket Loader. */ rocket_loader?: boolean; @@ -6087,7 +6087,7 @@ export namespace SetConfigRuleParam { polish?: 'off' | 'lossless' | 'lossy' | 'webp'; /** - * Turn on or off Rocket Loader + * Turn on or off Rocket Loader. */ rocket_loader?: boolean; @@ -8251,7 +8251,7 @@ export declare namespace RuleCreateParams { export namespace Overrides { /** - * A category-level override + * A category-level override. */ export interface Category { /** @@ -8276,7 +8276,7 @@ export declare namespace RuleCreateParams { } /** - * A rule-level override + * A rule-level override. */ export interface Rule { /** @@ -10139,7 +10139,7 @@ export declare namespace RuleCreateParams { polish?: 'off' | 'lossless' | 'lossy' | 'webp'; /** - * Turn on or off Rocket Loader + * Turn on or off Rocket Loader. */ rocket_loader?: boolean; @@ -10609,7 +10609,7 @@ export declare namespace RuleCreateParams { /** * Generate Cloudflare error pages from issues sent from the origin server. When - * on, error pages will trigger for issues from the origin + * on, error pages will trigger for issues from the origin. */ origin_error_page_passthru?: boolean; @@ -10660,13 +10660,13 @@ export declare namespace RuleCreateParams { */ export interface CacheKey { /** - * Separate cached content based on the visitor’s device type + * Separate cached content based on the visitor’s device type. */ cache_by_device_type?: boolean; /** * Protect from web cache deception attacks while allowing static assets to be - * cached + * cached. */ cache_deception_armor?: boolean; @@ -10890,12 +10890,12 @@ export declare namespace RuleCreateParams { default: number; /** - * edge ttl options + * Edge TTL options. */ mode: 'respect_origin' | 'bypass_by_default' | 'override_origin'; /** - * List of single status codes, or status code ranges to apply the selected mode + * List of single status codes, or status code ranges to apply the selected mode. */ status_code_ttl: Array; } @@ -10903,7 +10903,7 @@ export declare namespace RuleCreateParams { export namespace EdgeTTL { /** * Specify how long Cloudflare should cache the response based on the status code - * from the origin. Can be a single status code or a range or status codes + * from the origin. Can be a single status code or a range or status codes. */ export interface StatusCodeTTL { /** @@ -10919,7 +10919,7 @@ export declare namespace RuleCreateParams { status_code_range?: StatusCodeTTL.StatusCodeRange; /** - * Set the ttl for responses with this specific status code + * Set the TTL for responses with this specific status code. */ status_code_value?: number; } @@ -10930,12 +10930,12 @@ export declare namespace RuleCreateParams { */ export interface StatusCodeRange { /** - * response status code lower bound + * Response status code lower bound. */ from: number; /** - * response status code upper bound + * Response status code upper bound. */ to: number; } @@ -12393,7 +12393,7 @@ export declare namespace RuleEditParams { export namespace Overrides { /** - * A category-level override + * A category-level override. */ export interface Category { /** @@ -12418,7 +12418,7 @@ export declare namespace RuleEditParams { } /** - * A rule-level override + * A rule-level override. */ export interface Rule { /** @@ -14281,7 +14281,7 @@ export declare namespace RuleEditParams { polish?: 'off' | 'lossless' | 'lossy' | 'webp'; /** - * Turn on or off Rocket Loader + * Turn on or off Rocket Loader. */ rocket_loader?: boolean; @@ -14751,7 +14751,7 @@ export declare namespace RuleEditParams { /** * Generate Cloudflare error pages from issues sent from the origin server. When - * on, error pages will trigger for issues from the origin + * on, error pages will trigger for issues from the origin. */ origin_error_page_passthru?: boolean; @@ -14802,13 +14802,13 @@ export declare namespace RuleEditParams { */ export interface CacheKey { /** - * Separate cached content based on the visitor’s device type + * Separate cached content based on the visitor’s device type. */ cache_by_device_type?: boolean; /** * Protect from web cache deception attacks while allowing static assets to be - * cached + * cached. */ cache_deception_armor?: boolean; @@ -15032,12 +15032,12 @@ export declare namespace RuleEditParams { default: number; /** - * edge ttl options + * Edge TTL options. */ mode: 'respect_origin' | 'bypass_by_default' | 'override_origin'; /** - * List of single status codes, or status code ranges to apply the selected mode + * List of single status codes, or status code ranges to apply the selected mode. */ status_code_ttl: Array; } @@ -15045,7 +15045,7 @@ export declare namespace RuleEditParams { export namespace EdgeTTL { /** * Specify how long Cloudflare should cache the response based on the status code - * from the origin. Can be a single status code or a range or status codes + * from the origin. Can be a single status code or a range or status codes. */ export interface StatusCodeTTL { /** @@ -15061,7 +15061,7 @@ export declare namespace RuleEditParams { status_code_range?: StatusCodeTTL.StatusCodeRange; /** - * Set the ttl for responses with this specific status code + * Set the TTL for responses with this specific status code. */ status_code_value?: number; } @@ -15072,12 +15072,12 @@ export declare namespace RuleEditParams { */ export interface StatusCodeRange { /** - * response status code lower bound + * Response status code lower bound. */ from: number; /** - * response status code upper bound + * Response status code upper bound. */ to: number; } diff --git a/src/resources/url-scanner/scans.ts b/src/resources/url-scanner/scans.ts index ada69ee42c..1d30d058a0 100644 --- a/src/resources/url-scanner/scans.ts +++ b/src/resources/url-scanner/scans.ts @@ -533,7 +533,7 @@ export namespace ScanGetResponse { geonameId: string; - ll: Array; + ll: Array; region: string; } From 482bb06c7c8017fa95380c1f0bbee4cf37c03a11 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 09:27:28 +0000 Subject: [PATCH 304/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 096c130d91..dd149e39cb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c9d03f7778e08946851b892774b4e4ae7e5850d6bf9aa46a2f2987ae36654c11.yml -openapi_spec_hash: ea5aedea123848557686e3f613fd02b7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f801f95f633b797f0b67cbf842b5bf4ccc62c59d990ef48cafa5a4598bf3bbe4.yml +openapi_spec_hash: 7eaafea439b3d08227ce856926020268 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 27a3eeabb4535e6980efd8bd4f5ab083959abdfb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 09:51:14 +0000 Subject: [PATCH 305/366] feat(api): api update --- .stats.yml | 4 ++-- src/resources/zaraz/config.ts | 4 ++-- src/resources/zaraz/default.ts | 2 +- src/resources/zaraz/export.ts | 2 +- src/resources/zaraz/history/configs.ts | 2 +- src/resources/zaraz/history/history.ts | 4 ++-- src/resources/zaraz/publish.ts | 2 +- src/resources/zaraz/workflow.ts | 2 +- src/resources/zaraz/zaraz.ts | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.stats.yml b/.stats.yml index dd149e39cb..6fc152773c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f801f95f633b797f0b67cbf842b5bf4ccc62c59d990ef48cafa5a4598bf3bbe4.yml -openapi_spec_hash: 7eaafea439b3d08227ce856926020268 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3ec6a50514bd47671aa3d5f9999af51a1dd5eedf5cf179e004f280e9e817f0ec.yml +openapi_spec_hash: f6c29452ed5232054bfb2689ad4b88be config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 diff --git a/src/resources/zaraz/config.ts b/src/resources/zaraz/config.ts index df359f2491..8ff5e10b78 100644 --- a/src/resources/zaraz/config.ts +++ b/src/resources/zaraz/config.ts @@ -749,7 +749,7 @@ export namespace Configuration { export interface ConfigUpdateParams { /** - * Path param: Identifier + * Path param: Identifier. */ zone_id: string; @@ -1441,7 +1441,7 @@ export namespace ConfigUpdateParams { export interface ConfigGetParams { /** - * Identifier + * Identifier. */ zone_id: string; } diff --git a/src/resources/zaraz/default.ts b/src/resources/zaraz/default.ts index 21c62c596b..45f58324e4 100644 --- a/src/resources/zaraz/default.ts +++ b/src/resources/zaraz/default.ts @@ -27,7 +27,7 @@ export class Default extends APIResource { export interface DefaultGetParams { /** - * Identifier + * Identifier. */ zone_id: string; } diff --git a/src/resources/zaraz/export.ts b/src/resources/zaraz/export.ts index fee71d1125..4482dcb9c6 100644 --- a/src/resources/zaraz/export.ts +++ b/src/resources/zaraz/export.ts @@ -24,7 +24,7 @@ export class Export extends APIResource { export interface ExportGetParams { /** - * Identifier + * Identifier. */ zone_id: string; } diff --git a/src/resources/zaraz/history/configs.ts b/src/resources/zaraz/history/configs.ts index 9af8196638..96f26e2e29 100644 --- a/src/resources/zaraz/history/configs.ts +++ b/src/resources/zaraz/history/configs.ts @@ -63,7 +63,7 @@ export namespace ConfigGetResponse { export interface ConfigGetParams { /** - * Path param: Identifier + * Path param: Identifier. */ zone_id: string; diff --git a/src/resources/zaraz/history/history.ts b/src/resources/zaraz/history/history.ts index 19336d57fe..7c2748e27e 100644 --- a/src/resources/zaraz/history/history.ts +++ b/src/resources/zaraz/history/history.ts @@ -91,7 +91,7 @@ export interface HistoryListResponse { export interface HistoryUpdateParams { /** - * Path param: Identifier + * Path param: Identifier. */ zone_id: string; @@ -103,7 +103,7 @@ export interface HistoryUpdateParams { export interface HistoryListParams { /** - * Path param: Identifier + * Path param: Identifier. */ zone_id: string; diff --git a/src/resources/zaraz/publish.ts b/src/resources/zaraz/publish.ts index 4313a02f42..e5cd4f53a4 100644 --- a/src/resources/zaraz/publish.ts +++ b/src/resources/zaraz/publish.ts @@ -29,7 +29,7 @@ export type PublishCreateResponse = string; export interface PublishCreateParams { /** - * Path param: Identifier + * Path param: Identifier. */ zone_id: string; diff --git a/src/resources/zaraz/workflow.ts b/src/resources/zaraz/workflow.ts index 8bc35f76ee..b5ba78cecb 100644 --- a/src/resources/zaraz/workflow.ts +++ b/src/resources/zaraz/workflow.ts @@ -36,7 +36,7 @@ export type WorkflowParam = 'realtime' | 'preview'; export interface WorkflowGetParams { /** - * Identifier + * Identifier. */ zone_id: string; } diff --git a/src/resources/zaraz/zaraz.ts b/src/resources/zaraz/zaraz.ts index d0c1b29710..55f8db004c 100644 --- a/src/resources/zaraz/zaraz.ts +++ b/src/resources/zaraz/zaraz.ts @@ -131,7 +131,7 @@ export interface NeoEventParam { export interface ZarazUpdateParams { /** - * Path param: Identifier + * Path param: Identifier. */ zone_id: string; From 7d60f6140925e6adea5b0d2fc7a05da09f97fe76 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 10:01:52 +0000 Subject: [PATCH 306/366] feat(api): api update --- .stats.yml | 4 +- src/resources/radar/ai/bots/summary.ts | 7 +- src/resources/radar/ai/inference/summary.ts | 14 ++-- .../ai/inference/timeseries-groups/summary.ts | 14 ++-- src/resources/radar/ai/timeseries-groups.ts | 7 +- src/resources/radar/as112/as112.ts | 7 +- src/resources/radar/as112/summary.ts | 42 ++++++----- .../radar/as112/timeseries-groups.ts | 42 ++++++----- src/resources/radar/as112/top.ts | 28 ++++---- src/resources/radar/attacks/layer3/layer3.ts | 7 +- src/resources/radar/attacks/layer3/summary.ts | 49 +++++++------ .../radar/attacks/layer3/timeseries-groups.ts | 49 +++++++------ .../radar/attacks/layer3/top/locations.ts | 14 ++-- src/resources/radar/attacks/layer3/top/top.ts | 21 +++--- src/resources/radar/attacks/layer7/layer7.ts | 7 +- src/resources/radar/attacks/layer7/summary.ts | 49 +++++++------ .../radar/attacks/layer7/timeseries-groups.ts | 49 +++++++------ .../radar/attacks/layer7/top/ases.ts | 7 +- .../radar/attacks/layer7/top/locations.ts | 14 ++-- src/resources/radar/attacks/layer7/top/top.ts | 21 +++--- src/resources/radar/bgp/bgp.ts | 4 +- src/resources/radar/bgp/ips.ts | 7 +- src/resources/radar/dns/dns.ts | 7 +- src/resources/radar/dns/summary.ts | 70 +++++++++++-------- src/resources/radar/dns/timeseries-groups.ts | 70 +++++++++++-------- src/resources/radar/dns/top.ts | 14 ++-- src/resources/radar/email/routing/summary.ts | 42 ++++++----- .../radar/email/routing/timeseries-groups.ts | 42 ++++++----- src/resources/radar/email/security/summary.ts | 63 ++++++++++------- .../radar/email/security/timeseries-groups.ts | 63 ++++++++++------- .../email/security/top/tlds/malicious.ts | 7 +- .../radar/email/security/top/tlds/spam.ts | 7 +- .../radar/email/security/top/tlds/spoof.ts | 7 +- .../radar/email/security/top/tlds/tlds.ts | 7 +- src/resources/radar/http/ases/ases.ts | 7 +- src/resources/radar/http/ases/bot-class.ts | 7 +- .../radar/http/ases/browser-family.ts | 7 +- src/resources/radar/http/ases/device-type.ts | 7 +- src/resources/radar/http/ases/http-method.ts | 7 +- .../radar/http/ases/http-protocol.ts | 7 +- src/resources/radar/http/ases/ip-version.ts | 7 +- src/resources/radar/http/ases/os.ts | 7 +- src/resources/radar/http/ases/tls-version.ts | 7 +- src/resources/radar/http/http.ts | 7 +- .../radar/http/locations/bot-class.ts | 7 +- .../radar/http/locations/browser-family.ts | 7 +- .../radar/http/locations/device-type.ts | 7 +- .../radar/http/locations/http-method.ts | 7 +- .../radar/http/locations/http-protocol.ts | 7 +- .../radar/http/locations/ip-version.ts | 7 +- .../radar/http/locations/locations.ts | 7 +- src/resources/radar/http/locations/os.ts | 7 +- .../radar/http/locations/tls-version.ts | 7 +- src/resources/radar/http/summary.ts | 56 ++++++++------- src/resources/radar/http/timeseries-groups.ts | 70 +++++++++++-------- src/resources/radar/http/top.ts | 14 ++-- .../radar/leaked-credentials/summary.ts | 14 ++-- .../leaked-credentials/timeseries-groups.ts | 14 ++-- src/resources/radar/netflows/netflows.ts | 14 ++-- src/resources/radar/netflows/top.ts | 14 ++-- src/resources/radar/quality/iqi.ts | 14 ++-- src/resources/radar/quality/speed/speed.ts | 14 ++-- src/resources/radar/quality/speed/top.ts | 14 ++-- .../radar/ranking/internet-services.ts | 14 ++-- src/resources/radar/ranking/ranking.ts | 14 ++-- src/resources/radar/robots-txt/top/top.ts | 7 +- .../radar/robots-txt/top/user-agents.ts | 7 +- src/resources/radar/search.ts | 4 +- src/resources/radar/tcp-resets-timeouts.ts | 14 ++-- src/resources/radar/verified-bots/top.ts | 14 ++-- tests/api-resources/radar/search.test.ts | 4 +- 71 files changed, 748 insertions(+), 563 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6fc152773c..ca56f876fd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3ec6a50514bd47671aa3d5f9999af51a1dd5eedf5cf179e004f280e9e817f0ec.yml -openapi_spec_hash: f6c29452ed5232054bfb2689ad4b88be +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9d692cbcafbbab23add770667c38d728db36e33322e3a554bc712dba4873c3c9.yml +openapi_spec_hash: 018b34722f83f49f1b2b4138d0170e3f config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 diff --git a/src/resources/radar/ai/bots/summary.ts b/src/resources/radar/ai/bots/summary.ts index 99b9e854d7..01675bcb77 100644 --- a/src/resources/radar/ai/bots/summary.ts +++ b/src/resources/radar/ai/bots/summary.ts @@ -68,7 +68,8 @@ export namespace SummaryUserAgentResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -95,7 +96,7 @@ export namespace SummaryUserAgentResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -106,7 +107,7 @@ export namespace SummaryUserAgentResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/ai/inference/summary.ts b/src/resources/radar/ai/inference/summary.ts index b1a85c84ff..3c7bde58ff 100644 --- a/src/resources/radar/ai/inference/summary.ts +++ b/src/resources/radar/ai/inference/summary.ts @@ -90,7 +90,8 @@ export namespace SummaryModelResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -117,7 +118,7 @@ export namespace SummaryModelResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -128,7 +129,7 @@ export namespace SummaryModelResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -186,7 +187,8 @@ export namespace SummaryTaskResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -213,7 +215,7 @@ export namespace SummaryTaskResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -224,7 +226,7 @@ export namespace SummaryTaskResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/ai/inference/timeseries-groups/summary.ts b/src/resources/radar/ai/inference/timeseries-groups/summary.ts index f620ae048c..f06dea0b4d 100644 --- a/src/resources/radar/ai/inference/timeseries-groups/summary.ts +++ b/src/resources/radar/ai/inference/timeseries-groups/summary.ts @@ -99,7 +99,8 @@ export namespace SummaryModelResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -126,7 +127,7 @@ export namespace SummaryModelResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -137,7 +138,7 @@ export namespace SummaryModelResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -208,7 +209,8 @@ export namespace SummaryTaskResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -235,7 +237,7 @@ export namespace SummaryTaskResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -246,7 +248,7 @@ export namespace SummaryTaskResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/ai/timeseries-groups.ts b/src/resources/radar/ai/timeseries-groups.ts index 530ecf9f87..938c8980f2 100644 --- a/src/resources/radar/ai/timeseries-groups.ts +++ b/src/resources/radar/ai/timeseries-groups.ts @@ -76,7 +76,8 @@ export namespace TimeseriesGroupUserAgentResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -103,7 +104,7 @@ export namespace TimeseriesGroupUserAgentResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -114,7 +115,7 @@ export namespace TimeseriesGroupUserAgentResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/as112/as112.ts b/src/resources/radar/as112/as112.ts index b0a4928c2c..876d8d74aa 100644 --- a/src/resources/radar/as112/as112.ts +++ b/src/resources/radar/as112/as112.ts @@ -127,7 +127,8 @@ export namespace AS112TimeseriesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -154,7 +155,7 @@ export namespace AS112TimeseriesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -165,7 +166,7 @@ export namespace AS112TimeseriesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/as112/summary.ts b/src/resources/radar/as112/summary.ts index a139a62867..d1cc5eff44 100644 --- a/src/resources/radar/as112/summary.ts +++ b/src/resources/radar/as112/summary.ts @@ -202,7 +202,8 @@ export namespace SummaryDNSSECResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -229,7 +230,7 @@ export namespace SummaryDNSSECResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -240,7 +241,7 @@ export namespace SummaryDNSSECResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -310,7 +311,8 @@ export namespace SummaryEdnsResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -337,7 +339,7 @@ export namespace SummaryEdnsResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -348,7 +350,7 @@ export namespace SummaryEdnsResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -418,7 +420,8 @@ export namespace SummaryIPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -445,7 +448,7 @@ export namespace SummaryIPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -456,7 +459,7 @@ export namespace SummaryIPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -526,7 +529,8 @@ export namespace SummaryProtocolResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -553,7 +557,7 @@ export namespace SummaryProtocolResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -564,7 +568,7 @@ export namespace SummaryProtocolResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -644,7 +648,8 @@ export namespace SummaryQueryTypeResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -671,7 +676,7 @@ export namespace SummaryQueryTypeResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -682,7 +687,7 @@ export namespace SummaryQueryTypeResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -740,7 +745,8 @@ export namespace SummaryResponseCodesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -767,7 +773,7 @@ export namespace SummaryResponseCodesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -778,7 +784,7 @@ export namespace SummaryResponseCodesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/as112/timeseries-groups.ts b/src/resources/radar/as112/timeseries-groups.ts index 450008b4db..a9e2aa049c 100644 --- a/src/resources/radar/as112/timeseries-groups.ts +++ b/src/resources/radar/as112/timeseries-groups.ts @@ -222,7 +222,8 @@ export namespace TimeseriesGroupDNSSECResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -249,7 +250,7 @@ export namespace TimeseriesGroupDNSSECResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -260,7 +261,7 @@ export namespace TimeseriesGroupDNSSECResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -331,7 +332,8 @@ export namespace TimeseriesGroupEdnsResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -358,7 +360,7 @@ export namespace TimeseriesGroupEdnsResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -369,7 +371,7 @@ export namespace TimeseriesGroupEdnsResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -440,7 +442,8 @@ export namespace TimeseriesGroupIPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -467,7 +470,7 @@ export namespace TimeseriesGroupIPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -478,7 +481,7 @@ export namespace TimeseriesGroupIPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -549,7 +552,8 @@ export namespace TimeseriesGroupProtocolResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -576,7 +580,7 @@ export namespace TimeseriesGroupProtocolResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -587,7 +591,7 @@ export namespace TimeseriesGroupProtocolResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -662,7 +666,8 @@ export namespace TimeseriesGroupQueryTypeResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -689,7 +694,7 @@ export namespace TimeseriesGroupQueryTypeResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -700,7 +705,7 @@ export namespace TimeseriesGroupQueryTypeResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -771,7 +776,8 @@ export namespace TimeseriesGroupResponseCodesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -798,7 +804,7 @@ export namespace TimeseriesGroupResponseCodesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -809,7 +815,7 @@ export namespace TimeseriesGroupResponseCodesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/as112/top.ts b/src/resources/radar/as112/top.ts index e0aa3c2e79..dd2fe90eba 100644 --- a/src/resources/radar/as112/top.ts +++ b/src/resources/radar/as112/top.ts @@ -164,7 +164,8 @@ export namespace TopDNSSECResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -191,7 +192,7 @@ export namespace TopDNSSECResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -202,7 +203,7 @@ export namespace TopDNSSECResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -271,7 +272,8 @@ export namespace TopEdnsResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -298,7 +300,7 @@ export namespace TopEdnsResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -309,7 +311,7 @@ export namespace TopEdnsResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -378,7 +380,8 @@ export namespace TopIPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -405,7 +408,7 @@ export namespace TopIPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -416,7 +419,7 @@ export namespace TopIPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -485,7 +488,8 @@ export namespace TopLocationsResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -512,7 +516,7 @@ export namespace TopLocationsResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -523,7 +527,7 @@ export namespace TopLocationsResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/attacks/layer3/layer3.ts b/src/resources/radar/attacks/layer3/layer3.ts index 37ee7e7c5e..3fcf323b99 100644 --- a/src/resources/radar/attacks/layer3/layer3.ts +++ b/src/resources/radar/attacks/layer3/layer3.ts @@ -130,7 +130,8 @@ export namespace Layer3TimeseriesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -157,7 +158,7 @@ export namespace Layer3TimeseriesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -168,7 +169,7 @@ export namespace Layer3TimeseriesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/attacks/layer3/summary.ts b/src/resources/radar/attacks/layer3/summary.ts index ca010a7c18..fa1357a056 100644 --- a/src/resources/radar/attacks/layer3/summary.ts +++ b/src/resources/radar/attacks/layer3/summary.ts @@ -233,7 +233,8 @@ export namespace SummaryBitrateResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -260,7 +261,7 @@ export namespace SummaryBitrateResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -271,7 +272,7 @@ export namespace SummaryBitrateResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -356,7 +357,8 @@ export namespace SummaryDurationResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -383,7 +385,7 @@ export namespace SummaryDurationResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -394,7 +396,7 @@ export namespace SummaryDurationResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -484,7 +486,8 @@ export namespace SummaryIndustryResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -511,7 +514,7 @@ export namespace SummaryIndustryResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -522,7 +525,7 @@ export namespace SummaryIndustryResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -580,7 +583,8 @@ export namespace SummaryIPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -607,7 +611,7 @@ export namespace SummaryIPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -618,7 +622,7 @@ export namespace SummaryIPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -688,7 +692,8 @@ export namespace SummaryProtocolResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -715,7 +720,7 @@ export namespace SummaryProtocolResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -726,7 +731,7 @@ export namespace SummaryProtocolResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -806,7 +811,8 @@ export namespace SummaryVectorResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -833,7 +839,7 @@ export namespace SummaryVectorResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -844,7 +850,7 @@ export namespace SummaryVectorResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -902,7 +908,8 @@ export namespace SummaryVerticalResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -929,7 +936,7 @@ export namespace SummaryVerticalResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -940,7 +947,7 @@ export namespace SummaryVerticalResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/attacks/layer3/timeseries-groups.ts b/src/resources/radar/attacks/layer3/timeseries-groups.ts index 3842c4f2a7..740bb97cae 100644 --- a/src/resources/radar/attacks/layer3/timeseries-groups.ts +++ b/src/resources/radar/attacks/layer3/timeseries-groups.ts @@ -250,7 +250,8 @@ export namespace TimeseriesGroupBitrateResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -277,7 +278,7 @@ export namespace TimeseriesGroupBitrateResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -288,7 +289,7 @@ export namespace TimeseriesGroupBitrateResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -367,7 +368,8 @@ export namespace TimeseriesGroupDurationResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -394,7 +396,7 @@ export namespace TimeseriesGroupDurationResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -405,7 +407,7 @@ export namespace TimeseriesGroupDurationResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -486,7 +488,8 @@ export namespace TimeseriesGroupIndustryResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -513,7 +516,7 @@ export namespace TimeseriesGroupIndustryResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -524,7 +527,7 @@ export namespace TimeseriesGroupIndustryResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -595,7 +598,8 @@ export namespace TimeseriesGroupIPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -622,7 +626,7 @@ export namespace TimeseriesGroupIPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -633,7 +637,7 @@ export namespace TimeseriesGroupIPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -706,7 +710,8 @@ export namespace TimeseriesGroupProtocolResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -733,7 +738,7 @@ export namespace TimeseriesGroupProtocolResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -744,7 +749,7 @@ export namespace TimeseriesGroupProtocolResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -821,7 +826,8 @@ export namespace TimeseriesGroupVectorResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -848,7 +854,7 @@ export namespace TimeseriesGroupVectorResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -859,7 +865,7 @@ export namespace TimeseriesGroupVectorResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -930,7 +936,8 @@ export namespace TimeseriesGroupVerticalResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -957,7 +964,7 @@ export namespace TimeseriesGroupVerticalResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -968,7 +975,7 @@ export namespace TimeseriesGroupVerticalResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/attacks/layer3/top/locations.ts b/src/resources/radar/attacks/layer3/top/locations.ts index d2e1acbb5a..df0b8aafaa 100644 --- a/src/resources/radar/attacks/layer3/top/locations.ts +++ b/src/resources/radar/attacks/layer3/top/locations.ts @@ -98,7 +98,8 @@ export namespace LocationOriginResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -125,7 +126,7 @@ export namespace LocationOriginResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -136,7 +137,7 @@ export namespace LocationOriginResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -204,7 +205,8 @@ export namespace LocationTargetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -231,7 +233,7 @@ export namespace LocationTargetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -242,7 +244,7 @@ export namespace LocationTargetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/attacks/layer3/top/top.ts b/src/resources/radar/attacks/layer3/top/top.ts index 938065fa03..2da56402ce 100644 --- a/src/resources/radar/attacks/layer3/top/top.ts +++ b/src/resources/radar/attacks/layer3/top/top.ts @@ -122,7 +122,8 @@ export namespace TopAttacksResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -149,7 +150,7 @@ export namespace TopAttacksResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -160,7 +161,7 @@ export namespace TopAttacksResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -226,7 +227,8 @@ export namespace TopIndustryResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -253,7 +255,7 @@ export namespace TopIndustryResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -264,7 +266,7 @@ export namespace TopIndustryResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -328,7 +330,8 @@ export namespace TopVerticalResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -355,7 +358,7 @@ export namespace TopVerticalResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -366,7 +369,7 @@ export namespace TopVerticalResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/attacks/layer7/layer7.ts b/src/resources/radar/attacks/layer7/layer7.ts index 8b01702461..633b50c1a5 100644 --- a/src/resources/radar/attacks/layer7/layer7.ts +++ b/src/resources/radar/attacks/layer7/layer7.ts @@ -127,7 +127,8 @@ export namespace Layer7TimeseriesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -154,7 +155,7 @@ export namespace Layer7TimeseriesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -165,7 +166,7 @@ export namespace Layer7TimeseriesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/attacks/layer7/summary.ts b/src/resources/radar/attacks/layer7/summary.ts index fcd7f00760..d001f28278 100644 --- a/src/resources/radar/attacks/layer7/summary.ts +++ b/src/resources/radar/attacks/layer7/summary.ts @@ -240,7 +240,8 @@ export namespace SummaryHTTPMethodResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -267,7 +268,7 @@ export namespace SummaryHTTPMethodResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -278,7 +279,7 @@ export namespace SummaryHTTPMethodResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -336,7 +337,8 @@ export namespace SummaryHTTPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -363,7 +365,7 @@ export namespace SummaryHTTPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -374,7 +376,7 @@ export namespace SummaryHTTPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -440,7 +442,8 @@ export namespace SummaryIndustryResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -467,7 +470,7 @@ export namespace SummaryIndustryResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -478,7 +481,7 @@ export namespace SummaryIndustryResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -536,7 +539,8 @@ export namespace SummaryIPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -563,7 +567,7 @@ export namespace SummaryIPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -574,7 +578,7 @@ export namespace SummaryIPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -638,7 +642,8 @@ export namespace SummaryManagedRulesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -665,7 +670,7 @@ export namespace SummaryManagedRulesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -676,7 +681,7 @@ export namespace SummaryManagedRulesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -734,7 +739,8 @@ export namespace SummaryMitigationProductResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -761,7 +767,7 @@ export namespace SummaryMitigationProductResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -772,7 +778,7 @@ export namespace SummaryMitigationProductResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -830,7 +836,8 @@ export namespace SummaryVerticalResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -857,7 +864,7 @@ export namespace SummaryVerticalResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -868,7 +875,7 @@ export namespace SummaryVerticalResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/attacks/layer7/timeseries-groups.ts b/src/resources/radar/attacks/layer7/timeseries-groups.ts index 2a4cf78585..ab7e962788 100644 --- a/src/resources/radar/attacks/layer7/timeseries-groups.ts +++ b/src/resources/radar/attacks/layer7/timeseries-groups.ts @@ -250,7 +250,8 @@ export namespace TimeseriesGroupHTTPMethodResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -277,7 +278,7 @@ export namespace TimeseriesGroupHTTPMethodResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -288,7 +289,7 @@ export namespace TimeseriesGroupHTTPMethodResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -359,7 +360,8 @@ export namespace TimeseriesGroupHTTPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -386,7 +388,7 @@ export namespace TimeseriesGroupHTTPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -397,7 +399,7 @@ export namespace TimeseriesGroupHTTPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -472,7 +474,8 @@ export namespace TimeseriesGroupIndustryResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -499,7 +502,7 @@ export namespace TimeseriesGroupIndustryResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -510,7 +513,7 @@ export namespace TimeseriesGroupIndustryResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -581,7 +584,8 @@ export namespace TimeseriesGroupIPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -608,7 +612,7 @@ export namespace TimeseriesGroupIPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -619,7 +623,7 @@ export namespace TimeseriesGroupIPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -692,7 +696,8 @@ export namespace TimeseriesGroupManagedRulesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -719,7 +724,7 @@ export namespace TimeseriesGroupManagedRulesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -730,7 +735,7 @@ export namespace TimeseriesGroupManagedRulesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -801,7 +806,8 @@ export namespace TimeseriesGroupMitigationProductResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -828,7 +834,7 @@ export namespace TimeseriesGroupMitigationProductResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -839,7 +845,7 @@ export namespace TimeseriesGroupMitigationProductResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -910,7 +916,8 @@ export namespace TimeseriesGroupVerticalResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -937,7 +944,7 @@ export namespace TimeseriesGroupVerticalResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -948,7 +955,7 @@ export namespace TimeseriesGroupVerticalResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/attacks/layer7/top/ases.ts b/src/resources/radar/attacks/layer7/top/ases.ts index 63316eca89..4e998f8967 100644 --- a/src/resources/radar/attacks/layer7/top/ases.ts +++ b/src/resources/radar/attacks/layer7/top/ases.ts @@ -67,7 +67,8 @@ export namespace AseOriginResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -94,7 +95,7 @@ export namespace AseOriginResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -105,7 +106,7 @@ export namespace AseOriginResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/attacks/layer7/top/locations.ts b/src/resources/radar/attacks/layer7/top/locations.ts index daafe413ab..6410fa6d06 100644 --- a/src/resources/radar/attacks/layer7/top/locations.ts +++ b/src/resources/radar/attacks/layer7/top/locations.ts @@ -102,7 +102,8 @@ export namespace LocationOriginResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -129,7 +130,7 @@ export namespace LocationOriginResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -140,7 +141,7 @@ export namespace LocationOriginResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -208,7 +209,8 @@ export namespace LocationTargetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -235,7 +237,7 @@ export namespace LocationTargetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -246,7 +248,7 @@ export namespace LocationTargetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/attacks/layer7/top/top.ts b/src/resources/radar/attacks/layer7/top/top.ts index 73baa937c3..b51891f4c7 100644 --- a/src/resources/radar/attacks/layer7/top/top.ts +++ b/src/resources/radar/attacks/layer7/top/top.ts @@ -126,7 +126,8 @@ export namespace TopAttacksResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -153,7 +154,7 @@ export namespace TopAttacksResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -164,7 +165,7 @@ export namespace TopAttacksResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -234,7 +235,8 @@ export namespace TopIndustryResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -261,7 +263,7 @@ export namespace TopIndustryResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -272,7 +274,7 @@ export namespace TopIndustryResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -336,7 +338,8 @@ export namespace TopVerticalResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -363,7 +366,7 @@ export namespace TopVerticalResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -374,7 +377,7 @@ export namespace TopVerticalResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/bgp/bgp.ts b/src/resources/radar/bgp/bgp.ts index de9a61d543..d12f0258f9 100644 --- a/src/resources/radar/bgp/bgp.ts +++ b/src/resources/radar/bgp/bgp.ts @@ -98,7 +98,7 @@ export namespace BGPTimeseriesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -109,7 +109,7 @@ export namespace BGPTimeseriesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/bgp/ips.ts b/src/resources/radar/bgp/ips.ts index 3f182cb92a..d693e41e2c 100644 --- a/src/resources/radar/bgp/ips.ts +++ b/src/resources/radar/bgp/ips.ts @@ -75,7 +75,8 @@ export namespace IPTimeseriesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -104,7 +105,7 @@ export namespace IPTimeseriesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -115,7 +116,7 @@ export namespace IPTimeseriesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/dns/dns.ts b/src/resources/radar/dns/dns.ts index 3da7ea2798..8220269674 100644 --- a/src/resources/radar/dns/dns.ts +++ b/src/resources/radar/dns/dns.ts @@ -133,7 +133,8 @@ export namespace DNSTimeseriesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -160,7 +161,7 @@ export namespace DNSTimeseriesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -171,7 +172,7 @@ export namespace DNSTimeseriesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/dns/summary.ts b/src/resources/radar/dns/summary.ts index 8e4822e1cf..0e795a12aa 100644 --- a/src/resources/radar/dns/summary.ts +++ b/src/resources/radar/dns/summary.ts @@ -314,7 +314,8 @@ export namespace SummaryCacheHitResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -341,7 +342,7 @@ export namespace SummaryCacheHitResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -352,7 +353,7 @@ export namespace SummaryCacheHitResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -422,7 +423,8 @@ export namespace SummaryDNSSECResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -449,7 +451,7 @@ export namespace SummaryDNSSECResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -460,7 +462,7 @@ export namespace SummaryDNSSECResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -540,7 +542,8 @@ export namespace SummaryDNSSECAwareResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -567,7 +570,7 @@ export namespace SummaryDNSSECAwareResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -578,7 +581,7 @@ export namespace SummaryDNSSECAwareResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -648,7 +651,8 @@ export namespace SummaryDNSSECE2EResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -675,7 +679,7 @@ export namespace SummaryDNSSECE2EResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -686,7 +690,7 @@ export namespace SummaryDNSSECE2EResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -756,7 +760,8 @@ export namespace SummaryIPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -783,7 +788,7 @@ export namespace SummaryIPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -794,7 +799,7 @@ export namespace SummaryIPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -864,7 +869,8 @@ export namespace SummaryMatchingAnswerResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -891,7 +897,7 @@ export namespace SummaryMatchingAnswerResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -902,7 +908,7 @@ export namespace SummaryMatchingAnswerResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -972,7 +978,8 @@ export namespace SummaryProtocolResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -999,7 +1006,7 @@ export namespace SummaryProtocolResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1010,7 +1017,7 @@ export namespace SummaryProtocolResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -1090,7 +1097,8 @@ export namespace SummaryQueryTypeResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1117,7 +1125,7 @@ export namespace SummaryQueryTypeResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1128,7 +1136,7 @@ export namespace SummaryQueryTypeResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -1186,7 +1194,8 @@ export namespace SummaryResponseCodeResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1213,7 +1222,7 @@ export namespace SummaryResponseCodeResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1224,7 +1233,7 @@ export namespace SummaryResponseCodeResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -1282,7 +1291,8 @@ export namespace SummaryResponseTTLResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1309,7 +1319,7 @@ export namespace SummaryResponseTTLResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1320,7 +1330,7 @@ export namespace SummaryResponseTTLResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/dns/timeseries-groups.ts b/src/resources/radar/dns/timeseries-groups.ts index 58965b42ff..9a242a93fb 100644 --- a/src/resources/radar/dns/timeseries-groups.ts +++ b/src/resources/radar/dns/timeseries-groups.ts @@ -334,7 +334,8 @@ export namespace TimeseriesGroupCacheHitResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -361,7 +362,7 @@ export namespace TimeseriesGroupCacheHitResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -372,7 +373,7 @@ export namespace TimeseriesGroupCacheHitResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -443,7 +444,8 @@ export namespace TimeseriesGroupDNSSECResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -470,7 +472,7 @@ export namespace TimeseriesGroupDNSSECResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -481,7 +483,7 @@ export namespace TimeseriesGroupDNSSECResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -556,7 +558,8 @@ export namespace TimeseriesGroupDNSSECAwareResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -583,7 +586,7 @@ export namespace TimeseriesGroupDNSSECAwareResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -594,7 +597,7 @@ export namespace TimeseriesGroupDNSSECAwareResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -665,7 +668,8 @@ export namespace TimeseriesGroupDNSSECE2EResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -692,7 +696,7 @@ export namespace TimeseriesGroupDNSSECE2EResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -703,7 +707,7 @@ export namespace TimeseriesGroupDNSSECE2EResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -774,7 +778,8 @@ export namespace TimeseriesGroupIPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -801,7 +806,7 @@ export namespace TimeseriesGroupIPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -812,7 +817,7 @@ export namespace TimeseriesGroupIPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -883,7 +888,8 @@ export namespace TimeseriesGroupMatchingAnswerResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -910,7 +916,7 @@ export namespace TimeseriesGroupMatchingAnswerResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -921,7 +927,7 @@ export namespace TimeseriesGroupMatchingAnswerResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -992,7 +998,8 @@ export namespace TimeseriesGroupProtocolResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1019,7 +1026,7 @@ export namespace TimeseriesGroupProtocolResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1030,7 +1037,7 @@ export namespace TimeseriesGroupProtocolResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -1105,7 +1112,8 @@ export namespace TimeseriesGroupQueryTypeResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1132,7 +1140,7 @@ export namespace TimeseriesGroupQueryTypeResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1143,7 +1151,7 @@ export namespace TimeseriesGroupQueryTypeResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -1214,7 +1222,8 @@ export namespace TimeseriesGroupResponseCodeResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1241,7 +1250,7 @@ export namespace TimeseriesGroupResponseCodeResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1252,7 +1261,7 @@ export namespace TimeseriesGroupResponseCodeResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -1323,7 +1332,8 @@ export namespace TimeseriesGroupResponseTTLResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1350,7 +1360,7 @@ export namespace TimeseriesGroupResponseTTLResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1361,7 +1371,7 @@ export namespace TimeseriesGroupResponseTTLResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/dns/top.ts b/src/resources/radar/dns/top.ts index e2a36e7632..fe0bd763d1 100644 --- a/src/resources/radar/dns/top.ts +++ b/src/resources/radar/dns/top.ts @@ -89,7 +89,8 @@ export namespace TopAsesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -116,7 +117,7 @@ export namespace TopAsesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -127,7 +128,7 @@ export namespace TopAsesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -196,7 +197,8 @@ export namespace TopLocationsResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -223,7 +225,7 @@ export namespace TopLocationsResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -234,7 +236,7 @@ export namespace TopLocationsResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/email/routing/summary.ts b/src/resources/radar/email/routing/summary.ts index bd02bc248a..90e6565c5f 100644 --- a/src/resources/radar/email/routing/summary.ts +++ b/src/resources/radar/email/routing/summary.ts @@ -202,7 +202,8 @@ export namespace SummaryARCResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -229,7 +230,7 @@ export namespace SummaryARCResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -240,7 +241,7 @@ export namespace SummaryARCResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -298,7 +299,8 @@ export namespace SummaryDKIMResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -325,7 +327,7 @@ export namespace SummaryDKIMResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -336,7 +338,7 @@ export namespace SummaryDKIMResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -394,7 +396,8 @@ export namespace SummaryDMARCResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -421,7 +424,7 @@ export namespace SummaryDMARCResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -432,7 +435,7 @@ export namespace SummaryDMARCResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -490,7 +493,8 @@ export namespace SummaryEncryptedResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -517,7 +521,7 @@ export namespace SummaryEncryptedResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -528,7 +532,7 @@ export namespace SummaryEncryptedResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -598,7 +602,8 @@ export namespace SummaryIPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -625,7 +630,7 @@ export namespace SummaryIPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -636,7 +641,7 @@ export namespace SummaryIPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -706,7 +711,8 @@ export namespace SummarySPFResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -733,7 +739,7 @@ export namespace SummarySPFResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -744,7 +750,7 @@ export namespace SummarySPFResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/email/routing/timeseries-groups.ts b/src/resources/radar/email/routing/timeseries-groups.ts index a16b18aab4..c398945534 100644 --- a/src/resources/radar/email/routing/timeseries-groups.ts +++ b/src/resources/radar/email/routing/timeseries-groups.ts @@ -227,7 +227,8 @@ export namespace TimeseriesGroupARCResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -254,7 +255,7 @@ export namespace TimeseriesGroupARCResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -265,7 +266,7 @@ export namespace TimeseriesGroupARCResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -330,7 +331,8 @@ export namespace TimeseriesGroupDKIMResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -357,7 +359,7 @@ export namespace TimeseriesGroupDKIMResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -368,7 +370,7 @@ export namespace TimeseriesGroupDKIMResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -433,7 +435,8 @@ export namespace TimeseriesGroupDMARCResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -460,7 +463,7 @@ export namespace TimeseriesGroupDMARCResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -471,7 +474,7 @@ export namespace TimeseriesGroupDMARCResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -536,7 +539,8 @@ export namespace TimeseriesGroupEncryptedResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -563,7 +567,7 @@ export namespace TimeseriesGroupEncryptedResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -574,7 +578,7 @@ export namespace TimeseriesGroupEncryptedResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -645,7 +649,8 @@ export namespace TimeseriesGroupIPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -672,7 +677,7 @@ export namespace TimeseriesGroupIPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -683,7 +688,7 @@ export namespace TimeseriesGroupIPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -754,7 +759,8 @@ export namespace TimeseriesGroupSPFResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -781,7 +787,7 @@ export namespace TimeseriesGroupSPFResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -792,7 +798,7 @@ export namespace TimeseriesGroupSPFResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/email/security/summary.ts b/src/resources/radar/email/security/summary.ts index c143f50f9b..8b24cb05b7 100644 --- a/src/resources/radar/email/security/summary.ts +++ b/src/resources/radar/email/security/summary.ts @@ -282,7 +282,8 @@ export namespace SummaryARCResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -309,7 +310,7 @@ export namespace SummaryARCResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -320,7 +321,7 @@ export namespace SummaryARCResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -378,7 +379,8 @@ export namespace SummaryDKIMResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -405,7 +407,7 @@ export namespace SummaryDKIMResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -416,7 +418,7 @@ export namespace SummaryDKIMResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -474,7 +476,8 @@ export namespace SummaryDMARCResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -501,7 +504,7 @@ export namespace SummaryDMARCResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -512,7 +515,7 @@ export namespace SummaryDMARCResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -570,7 +573,8 @@ export namespace SummaryMaliciousResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -597,7 +601,7 @@ export namespace SummaryMaliciousResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -608,7 +612,7 @@ export namespace SummaryMaliciousResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -678,7 +682,8 @@ export namespace SummarySpamResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -705,7 +710,7 @@ export namespace SummarySpamResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -716,7 +721,7 @@ export namespace SummarySpamResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -786,7 +791,8 @@ export namespace SummarySPFResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -813,7 +819,7 @@ export namespace SummarySPFResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -824,7 +830,7 @@ export namespace SummarySPFResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -882,7 +888,8 @@ export namespace SummarySpoofResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -909,7 +916,7 @@ export namespace SummarySpoofResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -920,7 +927,7 @@ export namespace SummarySpoofResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -990,7 +997,8 @@ export namespace SummaryThreatCategoryResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1017,7 +1025,7 @@ export namespace SummaryThreatCategoryResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1028,7 +1036,7 @@ export namespace SummaryThreatCategoryResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -1108,7 +1116,8 @@ export namespace SummaryTLSVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1135,7 +1144,7 @@ export namespace SummaryTLSVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1146,7 +1155,7 @@ export namespace SummaryTLSVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/email/security/timeseries-groups.ts b/src/resources/radar/email/security/timeseries-groups.ts index fe8ff86cfb..2fb9bbef99 100644 --- a/src/resources/radar/email/security/timeseries-groups.ts +++ b/src/resources/radar/email/security/timeseries-groups.ts @@ -315,7 +315,8 @@ export namespace TimeseriesGroupARCResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -342,7 +343,7 @@ export namespace TimeseriesGroupARCResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -353,7 +354,7 @@ export namespace TimeseriesGroupARCResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -418,7 +419,8 @@ export namespace TimeseriesGroupDKIMResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -445,7 +447,7 @@ export namespace TimeseriesGroupDKIMResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -456,7 +458,7 @@ export namespace TimeseriesGroupDKIMResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -521,7 +523,8 @@ export namespace TimeseriesGroupDMARCResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -548,7 +551,7 @@ export namespace TimeseriesGroupDMARCResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -559,7 +562,7 @@ export namespace TimeseriesGroupDMARCResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -624,7 +627,8 @@ export namespace TimeseriesGroupMaliciousResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -651,7 +655,7 @@ export namespace TimeseriesGroupMaliciousResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -662,7 +666,7 @@ export namespace TimeseriesGroupMaliciousResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -733,7 +737,8 @@ export namespace TimeseriesGroupSpamResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -760,7 +765,7 @@ export namespace TimeseriesGroupSpamResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -771,7 +776,7 @@ export namespace TimeseriesGroupSpamResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -842,7 +847,8 @@ export namespace TimeseriesGroupSPFResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -869,7 +875,7 @@ export namespace TimeseriesGroupSPFResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -880,7 +886,7 @@ export namespace TimeseriesGroupSPFResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -945,7 +951,8 @@ export namespace TimeseriesGroupSpoofResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -972,7 +979,7 @@ export namespace TimeseriesGroupSpoofResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -983,7 +990,7 @@ export namespace TimeseriesGroupSpoofResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -1054,7 +1061,8 @@ export namespace TimeseriesGroupThreatCategoryResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1081,7 +1089,7 @@ export namespace TimeseriesGroupThreatCategoryResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1092,7 +1100,7 @@ export namespace TimeseriesGroupThreatCategoryResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -1167,7 +1175,8 @@ export namespace TimeseriesGroupTLSVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1194,7 +1203,7 @@ export namespace TimeseriesGroupTLSVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1205,7 +1214,7 @@ export namespace TimeseriesGroupTLSVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/email/security/top/tlds/malicious.ts b/src/resources/radar/email/security/top/tlds/malicious.ts index e72205f833..2d8a739e42 100644 --- a/src/resources/radar/email/security/top/tlds/malicious.ts +++ b/src/resources/radar/email/security/top/tlds/malicious.ts @@ -76,7 +76,8 @@ export namespace MaliciousGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -103,7 +104,7 @@ export namespace MaliciousGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -114,7 +115,7 @@ export namespace MaliciousGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/email/security/top/tlds/spam.ts b/src/resources/radar/email/security/top/tlds/spam.ts index c7040f7e51..8c60de4c6d 100644 --- a/src/resources/radar/email/security/top/tlds/spam.ts +++ b/src/resources/radar/email/security/top/tlds/spam.ts @@ -73,7 +73,8 @@ export namespace SpamGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -100,7 +101,7 @@ export namespace SpamGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -111,7 +112,7 @@ export namespace SpamGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/email/security/top/tlds/spoof.ts b/src/resources/radar/email/security/top/tlds/spoof.ts index ae482bc339..e96ed6d815 100644 --- a/src/resources/radar/email/security/top/tlds/spoof.ts +++ b/src/resources/radar/email/security/top/tlds/spoof.ts @@ -73,7 +73,8 @@ export namespace SpoofGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -100,7 +101,7 @@ export namespace SpoofGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -111,7 +112,7 @@ export namespace SpoofGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/email/security/top/tlds/tlds.ts b/src/resources/radar/email/security/top/tlds/tlds.ts index 73c5768e00..7da3648e6f 100644 --- a/src/resources/radar/email/security/top/tlds/tlds.ts +++ b/src/resources/radar/email/security/top/tlds/tlds.ts @@ -75,7 +75,8 @@ export namespace TldGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -102,7 +103,7 @@ export namespace TldGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -113,7 +114,7 @@ export namespace TldGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/ases/ases.ts b/src/resources/radar/http/ases/ases.ts index 2dda0fe4f4..58c7cf7603 100644 --- a/src/resources/radar/http/ases/ases.ts +++ b/src/resources/radar/http/ases/ases.ts @@ -89,7 +89,8 @@ export namespace AseGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -116,7 +117,7 @@ export namespace AseGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -127,7 +128,7 @@ export namespace AseGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/ases/bot-class.ts b/src/resources/radar/http/ases/bot-class.ts index 3376f0b926..a2e6558b30 100644 --- a/src/resources/radar/http/ases/bot-class.ts +++ b/src/resources/radar/http/ases/bot-class.ts @@ -76,7 +76,8 @@ export namespace BotClassGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -103,7 +104,7 @@ export namespace BotClassGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -114,7 +115,7 @@ export namespace BotClassGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/ases/browser-family.ts b/src/resources/radar/http/ases/browser-family.ts index da538b1deb..a70aa120d6 100644 --- a/src/resources/radar/http/ases/browser-family.ts +++ b/src/resources/radar/http/ases/browser-family.ts @@ -75,7 +75,8 @@ export namespace BrowserFamilyGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -102,7 +103,7 @@ export namespace BrowserFamilyGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -113,7 +114,7 @@ export namespace BrowserFamilyGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/ases/device-type.ts b/src/resources/radar/http/ases/device-type.ts index f733b48e15..9c3dbe6100 100644 --- a/src/resources/radar/http/ases/device-type.ts +++ b/src/resources/radar/http/ases/device-type.ts @@ -75,7 +75,8 @@ export namespace DeviceTypeGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -102,7 +103,7 @@ export namespace DeviceTypeGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -113,7 +114,7 @@ export namespace DeviceTypeGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/ases/http-method.ts b/src/resources/radar/http/ases/http-method.ts index 98ecda721d..bfb9cb0190 100644 --- a/src/resources/radar/http/ases/http-method.ts +++ b/src/resources/radar/http/ases/http-method.ts @@ -75,7 +75,8 @@ export namespace HTTPMethodGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -102,7 +103,7 @@ export namespace HTTPMethodGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -113,7 +114,7 @@ export namespace HTTPMethodGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/ases/http-protocol.ts b/src/resources/radar/http/ases/http-protocol.ts index b424135d91..13e404be64 100644 --- a/src/resources/radar/http/ases/http-protocol.ts +++ b/src/resources/radar/http/ases/http-protocol.ts @@ -75,7 +75,8 @@ export namespace HTTPProtocolGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -102,7 +103,7 @@ export namespace HTTPProtocolGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -113,7 +114,7 @@ export namespace HTTPProtocolGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/ases/ip-version.ts b/src/resources/radar/http/ases/ip-version.ts index ddd09c2b31..f844441b34 100644 --- a/src/resources/radar/http/ases/ip-version.ts +++ b/src/resources/radar/http/ases/ip-version.ts @@ -72,7 +72,8 @@ export namespace IPVersionGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -99,7 +100,7 @@ export namespace IPVersionGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -110,7 +111,7 @@ export namespace IPVersionGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/ases/os.ts b/src/resources/radar/http/ases/os.ts index 297de98378..4df77721c1 100644 --- a/src/resources/radar/http/ases/os.ts +++ b/src/resources/radar/http/ases/os.ts @@ -73,7 +73,8 @@ export namespace OSGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -100,7 +101,7 @@ export namespace OSGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -111,7 +112,7 @@ export namespace OSGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/ases/tls-version.ts b/src/resources/radar/http/ases/tls-version.ts index c2647592cd..9adec6449d 100644 --- a/src/resources/radar/http/ases/tls-version.ts +++ b/src/resources/radar/http/ases/tls-version.ts @@ -75,7 +75,8 @@ export namespace TLSVersionGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -102,7 +103,7 @@ export namespace TLSVersionGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -113,7 +114,7 @@ export namespace TLSVersionGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/http.ts b/src/resources/radar/http/http.ts index f330a508ca..14f5be3600 100644 --- a/src/resources/radar/http/http.ts +++ b/src/resources/radar/http/http.ts @@ -141,7 +141,8 @@ export namespace HTTPTimeseriesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -168,7 +169,7 @@ export namespace HTTPTimeseriesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -179,7 +180,7 @@ export namespace HTTPTimeseriesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/locations/bot-class.ts b/src/resources/radar/http/locations/bot-class.ts index 0aee401b7f..04ca13fed1 100644 --- a/src/resources/radar/http/locations/bot-class.ts +++ b/src/resources/radar/http/locations/bot-class.ts @@ -76,7 +76,8 @@ export namespace BotClassGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -103,7 +104,7 @@ export namespace BotClassGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -114,7 +115,7 @@ export namespace BotClassGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/locations/browser-family.ts b/src/resources/radar/http/locations/browser-family.ts index e0fd348305..762e5ecc35 100644 --- a/src/resources/radar/http/locations/browser-family.ts +++ b/src/resources/radar/http/locations/browser-family.ts @@ -76,7 +76,8 @@ export namespace BrowserFamilyGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -103,7 +104,7 @@ export namespace BrowserFamilyGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -114,7 +115,7 @@ export namespace BrowserFamilyGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/locations/device-type.ts b/src/resources/radar/http/locations/device-type.ts index e1b1938245..c2c9e7438f 100644 --- a/src/resources/radar/http/locations/device-type.ts +++ b/src/resources/radar/http/locations/device-type.ts @@ -76,7 +76,8 @@ export namespace DeviceTypeGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -103,7 +104,7 @@ export namespace DeviceTypeGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -114,7 +115,7 @@ export namespace DeviceTypeGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/locations/http-method.ts b/src/resources/radar/http/locations/http-method.ts index b4adcabc5b..46bba7a540 100644 --- a/src/resources/radar/http/locations/http-method.ts +++ b/src/resources/radar/http/locations/http-method.ts @@ -76,7 +76,8 @@ export namespace HTTPMethodGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -103,7 +104,7 @@ export namespace HTTPMethodGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -114,7 +115,7 @@ export namespace HTTPMethodGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/locations/http-protocol.ts b/src/resources/radar/http/locations/http-protocol.ts index 3c5af51345..ccc624c8c6 100644 --- a/src/resources/radar/http/locations/http-protocol.ts +++ b/src/resources/radar/http/locations/http-protocol.ts @@ -76,7 +76,8 @@ export namespace HTTPProtocolGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -103,7 +104,7 @@ export namespace HTTPProtocolGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -114,7 +115,7 @@ export namespace HTTPProtocolGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/locations/ip-version.ts b/src/resources/radar/http/locations/ip-version.ts index bbacf021ab..30e68b8efc 100644 --- a/src/resources/radar/http/locations/ip-version.ts +++ b/src/resources/radar/http/locations/ip-version.ts @@ -71,7 +71,8 @@ export namespace IPVersionGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -98,7 +99,7 @@ export namespace IPVersionGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -109,7 +110,7 @@ export namespace IPVersionGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/locations/locations.ts b/src/resources/radar/http/locations/locations.ts index fa8ba2d7ac..875d649603 100644 --- a/src/resources/radar/http/locations/locations.ts +++ b/src/resources/radar/http/locations/locations.ts @@ -89,7 +89,8 @@ export namespace LocationGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -116,7 +117,7 @@ export namespace LocationGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -127,7 +128,7 @@ export namespace LocationGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/locations/os.ts b/src/resources/radar/http/locations/os.ts index cd72b81062..6d658aaeb1 100644 --- a/src/resources/radar/http/locations/os.ts +++ b/src/resources/radar/http/locations/os.ts @@ -75,7 +75,8 @@ export namespace OSGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -102,7 +103,7 @@ export namespace OSGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -113,7 +114,7 @@ export namespace OSGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/locations/tls-version.ts b/src/resources/radar/http/locations/tls-version.ts index 95bb4a9e90..9c3b1691a8 100644 --- a/src/resources/radar/http/locations/tls-version.ts +++ b/src/resources/radar/http/locations/tls-version.ts @@ -77,7 +77,8 @@ export namespace TLSVersionGetResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -104,7 +105,7 @@ export namespace TLSVersionGetResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -115,7 +116,7 @@ export namespace TLSVersionGetResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/summary.ts b/src/resources/radar/http/summary.ts index 88ef498df9..65f3ac2037 100644 --- a/src/resources/radar/http/summary.ts +++ b/src/resources/radar/http/summary.ts @@ -264,7 +264,8 @@ export namespace SummaryBotClassResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -291,7 +292,7 @@ export namespace SummaryBotClassResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -302,7 +303,7 @@ export namespace SummaryBotClassResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -372,7 +373,8 @@ export namespace SummaryDeviceTypeResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -399,7 +401,7 @@ export namespace SummaryDeviceTypeResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -410,7 +412,7 @@ export namespace SummaryDeviceTypeResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -485,7 +487,8 @@ export namespace SummaryHTTPProtocolResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -512,7 +515,7 @@ export namespace SummaryHTTPProtocolResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -523,7 +526,7 @@ export namespace SummaryHTTPProtocolResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -593,7 +596,8 @@ export namespace SummaryHTTPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -620,7 +624,7 @@ export namespace SummaryHTTPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -631,7 +635,7 @@ export namespace SummaryHTTPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -706,7 +710,8 @@ export namespace SummaryIPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -733,7 +738,7 @@ export namespace SummaryIPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -744,7 +749,7 @@ export namespace SummaryIPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -814,7 +819,8 @@ export namespace SummaryOSResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -841,7 +847,7 @@ export namespace SummaryOSResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -852,7 +858,7 @@ export namespace SummaryOSResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -922,7 +928,8 @@ export namespace SummaryPostQuantumResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -949,7 +956,7 @@ export namespace SummaryPostQuantumResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -960,7 +967,7 @@ export namespace SummaryPostQuantumResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -1030,7 +1037,8 @@ export namespace SummaryTLSVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1057,7 +1065,7 @@ export namespace SummaryTLSVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1068,7 +1076,7 @@ export namespace SummaryTLSVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/timeseries-groups.ts b/src/resources/radar/http/timeseries-groups.ts index 0adf62e9e2..beacdaeb1a 100644 --- a/src/resources/radar/http/timeseries-groups.ts +++ b/src/resources/radar/http/timeseries-groups.ts @@ -336,7 +336,8 @@ export namespace TimeseriesGroupBotClassResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -363,7 +364,7 @@ export namespace TimeseriesGroupBotClassResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -374,7 +375,7 @@ export namespace TimeseriesGroupBotClassResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -447,7 +448,8 @@ export namespace TimeseriesGroupBrowserResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -474,7 +476,7 @@ export namespace TimeseriesGroupBrowserResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -485,7 +487,7 @@ export namespace TimeseriesGroupBrowserResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -556,7 +558,8 @@ export namespace TimeseriesGroupBrowserFamilyResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -583,7 +586,7 @@ export namespace TimeseriesGroupBrowserFamilyResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -594,7 +597,7 @@ export namespace TimeseriesGroupBrowserFamilyResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -665,7 +668,8 @@ export namespace TimeseriesGroupDeviceTypeResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -692,7 +696,7 @@ export namespace TimeseriesGroupDeviceTypeResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -703,7 +707,7 @@ export namespace TimeseriesGroupDeviceTypeResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -778,7 +782,8 @@ export namespace TimeseriesGroupHTTPProtocolResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -805,7 +810,7 @@ export namespace TimeseriesGroupHTTPProtocolResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -816,7 +821,7 @@ export namespace TimeseriesGroupHTTPProtocolResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -889,7 +894,8 @@ export namespace TimeseriesGroupHTTPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -916,7 +922,7 @@ export namespace TimeseriesGroupHTTPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -927,7 +933,7 @@ export namespace TimeseriesGroupHTTPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -1002,7 +1008,8 @@ export namespace TimeseriesGroupIPVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1029,7 +1036,7 @@ export namespace TimeseriesGroupIPVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1040,7 +1047,7 @@ export namespace TimeseriesGroupIPVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -1113,7 +1120,8 @@ export namespace TimeseriesGroupOSResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1140,7 +1148,7 @@ export namespace TimeseriesGroupOSResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1151,7 +1159,7 @@ export namespace TimeseriesGroupOSResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -1222,7 +1230,8 @@ export namespace TimeseriesGroupPostQuantumResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1249,7 +1258,7 @@ export namespace TimeseriesGroupPostQuantumResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1260,7 +1269,7 @@ export namespace TimeseriesGroupPostQuantumResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -1333,7 +1342,8 @@ export namespace TimeseriesGroupTLSVersionResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -1360,7 +1370,7 @@ export namespace TimeseriesGroupTLSVersionResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -1371,7 +1381,7 @@ export namespace TimeseriesGroupTLSVersionResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/http/top.ts b/src/resources/radar/http/top.ts index 37b882ae35..dd047c3df3 100644 --- a/src/resources/radar/http/top.ts +++ b/src/resources/radar/http/top.ts @@ -92,7 +92,8 @@ export namespace TopBrowserResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -119,7 +120,7 @@ export namespace TopBrowserResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -130,7 +131,7 @@ export namespace TopBrowserResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -194,7 +195,8 @@ export namespace TopBrowserFamilyResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -221,7 +223,7 @@ export namespace TopBrowserFamilyResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -232,7 +234,7 @@ export namespace TopBrowserFamilyResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/leaked-credentials/summary.ts b/src/resources/radar/leaked-credentials/summary.ts index a570570f53..59234a6375 100644 --- a/src/resources/radar/leaked-credentials/summary.ts +++ b/src/resources/radar/leaked-credentials/summary.ts @@ -99,7 +99,8 @@ export namespace SummaryBotClassResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -126,7 +127,7 @@ export namespace SummaryBotClassResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -137,7 +138,7 @@ export namespace SummaryBotClassResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -207,7 +208,8 @@ export namespace SummaryCompromisedResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -234,7 +236,7 @@ export namespace SummaryCompromisedResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -245,7 +247,7 @@ export namespace SummaryCompromisedResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/leaked-credentials/timeseries-groups.ts b/src/resources/radar/leaked-credentials/timeseries-groups.ts index 1fc9c2bdbc..0a739a8819 100644 --- a/src/resources/radar/leaked-credentials/timeseries-groups.ts +++ b/src/resources/radar/leaked-credentials/timeseries-groups.ts @@ -107,7 +107,8 @@ export namespace TimeseriesGroupBotClassResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -134,7 +135,7 @@ export namespace TimeseriesGroupBotClassResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -145,7 +146,7 @@ export namespace TimeseriesGroupBotClassResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -218,7 +219,8 @@ export namespace TimeseriesGroupCompromisedResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -245,7 +247,7 @@ export namespace TimeseriesGroupCompromisedResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -256,7 +258,7 @@ export namespace TimeseriesGroupCompromisedResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/netflows/netflows.ts b/src/resources/radar/netflows/netflows.ts index 62d5be65d1..bdce8f7a70 100644 --- a/src/resources/radar/netflows/netflows.ts +++ b/src/resources/radar/netflows/netflows.ts @@ -99,7 +99,8 @@ export namespace NetflowSummaryResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -126,7 +127,7 @@ export namespace NetflowSummaryResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -137,7 +138,7 @@ export namespace NetflowSummaryResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -214,7 +215,8 @@ export namespace NetflowTimeseriesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -241,7 +243,7 @@ export namespace NetflowTimeseriesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -252,7 +254,7 @@ export namespace NetflowTimeseriesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/netflows/top.ts b/src/resources/radar/netflows/top.ts index 45b25c50c4..31521f718d 100644 --- a/src/resources/radar/netflows/top.ts +++ b/src/resources/radar/netflows/top.ts @@ -89,7 +89,8 @@ export namespace TopAsesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -116,7 +117,7 @@ export namespace TopAsesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -127,7 +128,7 @@ export namespace TopAsesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -196,7 +197,8 @@ export namespace TopLocationsResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -223,7 +225,7 @@ export namespace TopLocationsResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -234,7 +236,7 @@ export namespace TopLocationsResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/quality/iqi.ts b/src/resources/radar/quality/iqi.ts index 38f1752ac3..085918eae3 100644 --- a/src/resources/radar/quality/iqi.ts +++ b/src/resources/radar/quality/iqi.ts @@ -81,7 +81,8 @@ export namespace IQISummaryResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -108,7 +109,7 @@ export namespace IQISummaryResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -119,7 +120,7 @@ export namespace IQISummaryResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -192,7 +193,8 @@ export namespace IQITimeseriesGroupsResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -219,7 +221,7 @@ export namespace IQITimeseriesGroupsResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -230,7 +232,7 @@ export namespace IQITimeseriesGroupsResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/quality/speed/speed.ts b/src/resources/radar/quality/speed/speed.ts index e3d4a92a0e..4a5486d2e3 100644 --- a/src/resources/radar/quality/speed/speed.ts +++ b/src/resources/radar/quality/speed/speed.ts @@ -111,7 +111,8 @@ export namespace SpeedHistogramResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; totalTests: Array; @@ -140,7 +141,7 @@ export namespace SpeedHistogramResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -151,7 +152,7 @@ export namespace SpeedHistogramResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -209,7 +210,8 @@ export namespace SpeedSummaryResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -236,7 +238,7 @@ export namespace SpeedSummaryResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -247,7 +249,7 @@ export namespace SpeedSummaryResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/quality/speed/top.ts b/src/resources/radar/quality/speed/top.ts index 3736dadd5b..9b858f1a94 100644 --- a/src/resources/radar/quality/speed/top.ts +++ b/src/resources/radar/quality/speed/top.ts @@ -92,7 +92,8 @@ export namespace TopAsesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -119,7 +120,7 @@ export namespace TopAsesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -130,7 +131,7 @@ export namespace TopAsesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -210,7 +211,8 @@ export namespace TopLocationsResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -237,7 +239,7 @@ export namespace TopLocationsResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -248,7 +250,7 @@ export namespace TopLocationsResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/ranking/internet-services.ts b/src/resources/radar/ranking/internet-services.ts index 596a37e9cc..eccdf45fc4 100644 --- a/src/resources/radar/ranking/internet-services.ts +++ b/src/resources/radar/ranking/internet-services.ts @@ -143,7 +143,8 @@ export namespace InternetServiceTimeseriesGroupsResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -170,7 +171,7 @@ export namespace InternetServiceTimeseriesGroupsResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -181,7 +182,7 @@ export namespace InternetServiceTimeseriesGroupsResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -239,7 +240,8 @@ export namespace InternetServiceTopResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -266,7 +268,7 @@ export namespace InternetServiceTopResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -277,7 +279,7 @@ export namespace InternetServiceTopResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/ranking/ranking.ts b/src/resources/radar/ranking/ranking.ts index 47832a4a29..f07040dc81 100644 --- a/src/resources/radar/ranking/ranking.ts +++ b/src/resources/radar/ranking/ranking.ts @@ -119,7 +119,8 @@ export namespace RankingTimeseriesGroupsResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -146,7 +147,7 @@ export namespace RankingTimeseriesGroupsResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -157,7 +158,7 @@ export namespace RankingTimeseriesGroupsResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -215,7 +216,8 @@ export namespace RankingTopResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -242,7 +244,7 @@ export namespace RankingTopResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -253,7 +255,7 @@ export namespace RankingTopResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/robots-txt/top/top.ts b/src/resources/radar/robots-txt/top/top.ts index 81bdb7759d..c688b179e4 100644 --- a/src/resources/radar/robots-txt/top/top.ts +++ b/src/resources/radar/robots-txt/top/top.ts @@ -72,7 +72,8 @@ export namespace TopDomainCategoriesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -99,7 +100,7 @@ export namespace TopDomainCategoriesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -110,7 +111,7 @@ export namespace TopDomainCategoriesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/robots-txt/top/user-agents.ts b/src/resources/radar/robots-txt/top/user-agents.ts index 9481248fb0..b0ab65f9c7 100644 --- a/src/resources/radar/robots-txt/top/user-agents.ts +++ b/src/resources/radar/robots-txt/top/user-agents.ts @@ -69,7 +69,8 @@ export namespace UserAgentDirectiveResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -96,7 +97,7 @@ export namespace UserAgentDirectiveResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -107,7 +108,7 @@ export namespace UserAgentDirectiveResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/search.ts b/src/resources/radar/search.ts index da315d9709..78c067af4b 100644 --- a/src/resources/radar/search.ts +++ b/src/resources/radar/search.ts @@ -46,7 +46,7 @@ export interface SearchGlobalParams { /** * Search types excluded from results. */ - exclude?: Array<'SPECIAL_EVENTS' | 'NOTEBOOKS' | 'LOCATIONS' | 'ASNS'>; + exclude?: Array<'ASNS' | 'LOCATIONS' | 'NOTEBOOKS' | 'SPECIAL_EVENTS'>; /** * Format in which results will be returned. @@ -56,7 +56,7 @@ export interface SearchGlobalParams { /** * Search types included in results. */ - include?: Array<'SPECIAL_EVENTS' | 'NOTEBOOKS' | 'LOCATIONS' | 'ASNS'>; + include?: Array<'ASNS' | 'LOCATIONS' | 'NOTEBOOKS' | 'SPECIAL_EVENTS'>; /** * Limits the number of objects returned in the response. diff --git a/src/resources/radar/tcp-resets-timeouts.ts b/src/resources/radar/tcp-resets-timeouts.ts index b3bf18f362..e7ef792cab 100644 --- a/src/resources/radar/tcp-resets-timeouts.ts +++ b/src/resources/radar/tcp-resets-timeouts.ts @@ -99,7 +99,8 @@ export namespace TCPResetsTimeoutSummaryResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -126,7 +127,7 @@ export namespace TCPResetsTimeoutSummaryResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -137,7 +138,7 @@ export namespace TCPResetsTimeoutSummaryResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -233,7 +234,8 @@ export namespace TCPResetsTimeoutTimeseriesGroupsResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -260,7 +262,7 @@ export namespace TCPResetsTimeoutTimeseriesGroupsResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -271,7 +273,7 @@ export namespace TCPResetsTimeoutTimeseriesGroupsResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/src/resources/radar/verified-bots/top.ts b/src/resources/radar/verified-bots/top.ts index 87074e6b19..ae351398e9 100644 --- a/src/resources/radar/verified-bots/top.ts +++ b/src/resources/radar/verified-bots/top.ts @@ -93,7 +93,8 @@ export namespace TopBotsResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -120,7 +121,7 @@ export namespace TopBotsResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -131,7 +132,7 @@ export namespace TopBotsResponse { linkedUrl: string; - startTime: string; + startDate: string; } } @@ -202,7 +203,8 @@ export namespace TopCategoriesResponse { | 'RAW_VALUES' | 'PERCENTAGE_CHANGE' | 'ROLLING_AVERAGE' - | 'OVERLAPPED_PERCENTAGE'; + | 'OVERLAPPED_PERCENTAGE' + | 'RATIO'; /** * Measurement units for the results. @@ -229,7 +231,7 @@ export namespace TopCategoriesResponse { description: string; - endTime: string; + endDate: string; eventType: string; @@ -240,7 +242,7 @@ export namespace TopCategoriesResponse { linkedUrl: string; - startTime: string; + startDate: string; } } diff --git a/tests/api-resources/radar/search.test.ts b/tests/api-resources/radar/search.test.ts index 95446cb17f..5ddf47a86e 100644 --- a/tests/api-resources/radar/search.test.ts +++ b/tests/api-resources/radar/search.test.ts @@ -24,9 +24,9 @@ describe('resource search', () => { test('global: required and optional params', async () => { const response = await client.radar.search.global({ query: 'United', - exclude: ['SPECIAL_EVENTS'], + exclude: ['ASNS'], format: 'JSON', - include: ['SPECIAL_EVENTS'], + include: ['ASNS'], limit: 5, limitPerGroup: 0, }); From df79e45765e4d66a92ceb962c292377ce28f9cc7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 10:17:12 +0000 Subject: [PATCH 307/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ca56f876fd..2443f82892 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9d692cbcafbbab23add770667c38d728db36e33322e3a554bc712dba4873c3c9.yml -openapi_spec_hash: 018b34722f83f49f1b2b4138d0170e3f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0aa694b232ca0bb2b7f5d6b20540d5c887671b7212280d6c2852db6f01b81dad.yml +openapi_spec_hash: cf2a3e09ffb1c64264d8d49822f6a666 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 4e21d4c5da8feff6316c9fc7a9484eda858e68f9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 10:39:38 +0000 Subject: [PATCH 308/366] feat(api): api update --- .stats.yml | 4 ++-- .../zero-trust/devices/posture/posture.ts | 20 +++++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2443f82892..59d8e2a2a2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0aa694b232ca0bb2b7f5d6b20540d5c887671b7212280d6c2852db6f01b81dad.yml -openapi_spec_hash: cf2a3e09ffb1c64264d8d49822f6a666 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-626d9c234c47f7453502aa83d51021ae22f3b7b3f3fdc398d4713ba06b863da7.yml +openapi_spec_hash: 17d03e0ecccce4c79e474b331352f2c3 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 diff --git a/src/resources/zero-trust/devices/posture/posture.ts b/src/resources/zero-trust/devices/posture/posture.ts index 27adff8132..3b2bd2a898 100644 --- a/src/resources/zero-trust/devices/posture/posture.ts +++ b/src/resources/zero-trust/devices/posture/posture.ts @@ -368,9 +368,8 @@ export namespace DeviceInput { operating_system: 'windows' | 'linux' | 'mac'; /** - * Common Name that is protected by the client certificate. This may include one or - * more variables in the ${ } notation. Only ${serial_number} and ${hostname} are - * valid variables. + * Certificate Common Name. This may include one or more variables in the ${ } + * notation. Only ${serial_number} and ${hostname} are valid variables. */ cn?: string; @@ -381,6 +380,11 @@ export namespace DeviceInput { extended_key_usage?: Array<'clientAuth' | 'emailProtection'>; locations?: TeamsDevicesClientCertificateV2InputRequest.Locations; + + /** + * List of certificate Subject Alternative Names. + */ + subject_alternative_names?: Array; } export namespace TeamsDevicesClientCertificateV2InputRequest { @@ -509,9 +513,8 @@ export namespace DeviceInputParam { operating_system: 'windows' | 'linux' | 'mac'; /** - * Common Name that is protected by the client certificate. This may include one or - * more variables in the ${ } notation. Only ${serial_number} and ${hostname} are - * valid variables. + * Certificate Common Name. This may include one or more variables in the ${ } + * notation. Only ${serial_number} and ${hostname} are valid variables. */ cn?: string; @@ -522,6 +525,11 @@ export namespace DeviceInputParam { extended_key_usage?: Array<'clientAuth' | 'emailProtection'>; locations?: TeamsDevicesClientCertificateV2InputRequest.Locations; + + /** + * List of certificate Subject Alternative Names. + */ + subject_alternative_names?: Array; } export namespace TeamsDevicesClientCertificateV2InputRequest { From c9ec0d94dcf3becc830ecb0bbc491db7ae6cd9e9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 10:58:59 +0000 Subject: [PATCH 309/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 59d8e2a2a2..9e6a9e0fae 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-626d9c234c47f7453502aa83d51021ae22f3b7b3f3fdc398d4713ba06b863da7.yml -openapi_spec_hash: 17d03e0ecccce4c79e474b331352f2c3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d7b25d9ffd2d6ec1a044487110f94d192e8066624beb02d0685df102fc4a6636.yml +openapi_spec_hash: 84bb452e5ebc86928533e87056ae2489 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 813c5e6ed51663edb4f6cfdf8ffbcfc97ac05390 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 12:25:28 +0000 Subject: [PATCH 310/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9e6a9e0fae..8ce164019a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d7b25d9ffd2d6ec1a044487110f94d192e8066624beb02d0685df102fc4a6636.yml -openapi_spec_hash: 84bb452e5ebc86928533e87056ae2489 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-552970c5b0d995ee7a6a77b6cb0e4321241b512871b7b27772be31371c610448.yml +openapi_spec_hash: f7b872709adc36b4acb723a1b28ef65c config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From b491e16f5525a7b2a498020cc1ab2228c7813760 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 13:05:59 +0000 Subject: [PATCH 311/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8ce164019a..e43aaad023 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-552970c5b0d995ee7a6a77b6cb0e4321241b512871b7b27772be31371c610448.yml -openapi_spec_hash: f7b872709adc36b4acb723a1b28ef65c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e39185605d8fa9c749f25299cf1645bb09fdf4bd35079d4c1ed5897ec2fc8658.yml +openapi_spec_hash: 93b02c053a931d64d551aaeee8897ea6 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From f38591779eaafe1ed313dbc6ac8e348b2e868f3b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 13:35:05 +0000 Subject: [PATCH 312/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e43aaad023..201dc8f2bc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e39185605d8fa9c749f25299cf1645bb09fdf4bd35079d4c1ed5897ec2fc8658.yml -openapi_spec_hash: 93b02c053a931d64d551aaeee8897ea6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cc0cecbaa661321abad57ead017720994a9ed7a8116d34a977a02ce78f2c3afa.yml +openapi_spec_hash: 42c23630e120f6661cc3696c8844f0f1 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 31c6fe95c06b9e1542449333734091bf97ef233b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 13:55:43 +0000 Subject: [PATCH 313/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 201dc8f2bc..6accc5fa24 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cc0cecbaa661321abad57ead017720994a9ed7a8116d34a977a02ce78f2c3afa.yml -openapi_spec_hash: 42c23630e120f6661cc3696c8844f0f1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-11acdef180a7900a6116917635649885e84604a1bb1dbba9b7059f4cf26f1334.yml +openapi_spec_hash: 4ba7ccf4e14d38931beae539a68f6c7f config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From b77b145dd606d943ed12444920fb0f344dcd602c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 15:00:48 +0000 Subject: [PATCH 314/366] feat(api): api update --- .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 6accc5fa24..15bb7ee260 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-11acdef180a7900a6116917635649885e84604a1bb1dbba9b7059f4cf26f1334.yml -openapi_spec_hash: 4ba7ccf4e14d38931beae539a68f6c7f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a467a0b387da4a22a3fe88d6744f6237b33f75892f7eef269670dc5de59829c7.yml +openapi_spec_hash: 4f6074db98136670fb2f1df0ea5ab65e config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 diff --git a/src/resources/accounts/logs/audit.ts b/src/resources/accounts/logs/audit.ts index 2f13ef1655..25db8ce592 100644 --- a/src/resources/accounts/logs/audit.ts +++ b/src/resources/accounts/logs/audit.ts @@ -434,7 +434,7 @@ export namespace AuditListParams { /** * Filters out audit logs by the actor type. */ - not?: Array<'cloudflare_admin' | 'account' | 'user'>; + not?: Array<'account' | 'cloudflare_admin' | 'system' | 'user'>; } export interface AuditLogID { From 9d17bdb2522bc451c9b1fbdde510391df98811e2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 16:51:43 +0000 Subject: [PATCH 315/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 15bb7ee260..213cf13412 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a467a0b387da4a22a3fe88d6744f6237b33f75892f7eef269670dc5de59829c7.yml -openapi_spec_hash: 4f6074db98136670fb2f1df0ea5ab65e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-065bc5fb9d3111b93226a0e351acff0dad8f5c1a58cd350f39758aa6f0838685.yml +openapi_spec_hash: 6b0f0e04864597876dad3f3bca9c4b75 config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 From 557a827cadd9d9b85ed8181bea5f9271cc0eeaec Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 16:58:49 +0000 Subject: [PATCH 316/366] fix(DLP): Add explicit variant names --- .stats.yml | 6 ++--- .../zero-trust/dlp/profiles/custom.ts | 24 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.stats.yml b/.stats.yml index 213cf13412..208bb6cd78 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-065bc5fb9d3111b93226a0e351acff0dad8f5c1a58cd350f39758aa6f0838685.yml -openapi_spec_hash: 6b0f0e04864597876dad3f3bca9c4b75 -config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b8c380942839bf20b635aaa376e58bed6cae9b7f1a99663f97b752d714833b86.yml +openapi_spec_hash: 4f6074db98136670fb2f1df0ea5ab65e +config_hash: c378ce442cd9c76099d2dcd521dc4025 diff --git a/src/resources/zero-trust/dlp/profiles/custom.ts b/src/resources/zero-trust/dlp/profiles/custom.ts index 8ce4bc0c21..04d722eb62 100644 --- a/src/resources/zero-trust/dlp/profiles/custom.ts +++ b/src/resources/zero-trust/dlp/profiles/custom.ts @@ -359,10 +359,10 @@ export interface CustomCreateParams { * or your Microsoft Information Protection profiles). */ shared_entries?: Array< - | CustomCreateParams.UnionMember0 - | CustomCreateParams.UnionMember1 - | CustomCreateParams.UnionMember2 - | CustomCreateParams.UnionMember3 + | CustomCreateParams.Custom + | CustomCreateParams.Predefined + | CustomCreateParams.Integration + | CustomCreateParams.ExactData >; } @@ -383,7 +383,7 @@ export namespace CustomCreateParams { words: Array; } - export interface UnionMember0 { + export interface Custom { enabled: boolean; entry_id: string; @@ -391,7 +391,7 @@ export namespace CustomCreateParams { entry_type: 'custom'; } - export interface UnionMember1 { + export interface Predefined { enabled: boolean; entry_id: string; @@ -399,7 +399,7 @@ export namespace CustomCreateParams { entry_type: 'predefined'; } - export interface UnionMember2 { + export interface Integration { enabled: boolean; entry_id: string; @@ -407,7 +407,7 @@ export namespace CustomCreateParams { entry_type: 'integration'; } - export interface UnionMember3 { + export interface ExactData { enabled: boolean; entry_id: string; @@ -468,7 +468,7 @@ export interface CustomUpdateParams { * Body param: Other entries, e.g. predefined or integration. */ shared_entries?: Array< - CustomUpdateParams.UnionMember0 | CustomUpdateParams.UnionMember1 | CustomUpdateParams.UnionMember2 + CustomUpdateParams.Predefined | CustomUpdateParams.Integration | CustomUpdateParams.ExactData >; } @@ -491,7 +491,7 @@ export namespace CustomUpdateParams { pattern: CustomAPI.PatternParam; } - export interface UnionMember0 { + export interface Predefined { enabled: boolean; entry_id: string; @@ -499,7 +499,7 @@ export namespace CustomUpdateParams { entry_type: 'predefined'; } - export interface UnionMember1 { + export interface Integration { enabled: boolean; entry_id: string; @@ -507,7 +507,7 @@ export namespace CustomUpdateParams { entry_type: 'integration'; } - export interface UnionMember2 { + export interface ExactData { enabled: boolean; entry_id: string; From 518356dfc270258ae3358dddce0006a0b3bcbf99 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 17:01:22 +0000 Subject: [PATCH 317/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 208bb6cd78..26558aa0ac 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b8c380942839bf20b635aaa376e58bed6cae9b7f1a99663f97b752d714833b86.yml -openapi_spec_hash: 4f6074db98136670fb2f1df0ea5ab65e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bbd91b57319c76c3dd5223b032c17acb5784a0a646e5ff1bb55b3c5d1aed12cd.yml +openapi_spec_hash: 6b0f0e04864597876dad3f3bca9c4b75 config_hash: c378ce442cd9c76099d2dcd521dc4025 From c9a61bad4ca545abcafe65096d26011ed8ca3de9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 17:04:05 +0000 Subject: [PATCH 318/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 26558aa0ac..9f28f05914 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bbd91b57319c76c3dd5223b032c17acb5784a0a646e5ff1bb55b3c5d1aed12cd.yml -openapi_spec_hash: 6b0f0e04864597876dad3f3bca9c4b75 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-aaa0c2e113a80779a7b62b7a0ae00b3ded41f3df37113b2d4b0f2a6a016f371f.yml +openapi_spec_hash: 26ba4fb0803ede81607623f90186ae17 config_hash: c378ce442cd9c76099d2dcd521dc4025 From 9a0b96d03e8a5bacfa0af276c4d4bf6498b373ad Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 17:16:07 +0000 Subject: [PATCH 319/366] fix(AI): Add explicit variant names for union types --- .stats.yml | 4 ++-- src/resources/ai/ai.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9f28f05914..b170f30427 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-aaa0c2e113a80779a7b62b7a0ae00b3ded41f3df37113b2d4b0f2a6a016f371f.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c253f99839358f21fe843b2b08cc0278e5216c2802d2acc51538641e693e6c68.yml openapi_spec_hash: 26ba4fb0803ede81607623f90186ae17 -config_hash: c378ce442cd9c76099d2dcd521dc4025 +config_hash: 6a9fd3406d52e894e3cdd5dd7e9893be diff --git a/src/resources/ai/ai.ts b/src/resources/ai/ai.ts index e78906193f..de1b370325 100644 --- a/src/resources/ai/ai.ts +++ b/src/resources/ai/ai.ts @@ -592,7 +592,7 @@ export declare namespace AIRunParams { /** * Body param: A list of tools available for the assistant to use. */ - tools?: Array; + tools?: Array; /** * Body param: Limits the AI to choose from the top 'k' most probable words. Lower @@ -687,11 +687,11 @@ export declare namespace AIRunParams { } } - export interface UnionMember1 { + export interface Function { /** * Details of the function tool. */ - function: UnionMember1.Function; + function: Function.Function; /** * Specifies the type of tool (e.g., 'function'). @@ -699,7 +699,7 @@ export declare namespace AIRunParams { type: string; } - export namespace UnionMember1 { + export namespace Function { /** * Details of the function tool. */ From 206e4c0158c2d9238febbd2e0b9159f7d9be2e3e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 17:46:36 +0000 Subject: [PATCH 320/366] feat(api): api update --- .stats.yml | 4 ++-- .../magic-transit/connectors/connectors.ts | 10 ++++++++-- .../magic-transit/connectors/events/events.ts | 13 ++++++++++--- .../magic-transit/connectors/events/latest.ts | 5 ++++- .../magic-transit/connectors/snapshots/latest.ts | 5 ++++- .../magic-transit/connectors/snapshots/snapshots.ts | 13 ++++++++++--- .../magic-transit/connectors/events/events.test.ts | 8 ++++---- .../magic-transit/connectors/events/latest.test.ts | 4 ++-- .../connectors/snapshots/latest.test.ts | 4 ++-- .../connectors/snapshots/snapshots.test.ts | 8 ++++---- 10 files changed, 50 insertions(+), 24 deletions(-) diff --git a/.stats.yml b/.stats.yml index b170f30427..0c922222c1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c253f99839358f21fe843b2b08cc0278e5216c2802d2acc51538641e693e6c68.yml -openapi_spec_hash: 26ba4fb0803ede81607623f90186ae17 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-946bfa47ce86130c4f98d7598659c1425455216544573738ecdfe060c935e88d.yml +openapi_spec_hash: a33a6f26f6fce0ea7174b771e2735014 config_hash: 6a9fd3406d52e894e3cdd5dd7e9893be diff --git a/src/resources/magic-transit/connectors/connectors.ts b/src/resources/magic-transit/connectors/connectors.ts index 3b695031a3..a830517c41 100644 --- a/src/resources/magic-transit/connectors/connectors.ts +++ b/src/resources/magic-transit/connectors/connectors.ts @@ -250,7 +250,7 @@ export namespace ConnectorGetResponse { export interface ConnectorUpdateParams { /** - * Path param: + * Path param: Account identifier */ account_id: string; @@ -281,12 +281,15 @@ export interface ConnectorUpdateParams { } export interface ConnectorListParams { + /** + * Account identifier + */ account_id: string; } export interface ConnectorEditParams { /** - * Path param: + * Path param: Account identifier */ account_id: string; @@ -317,6 +320,9 @@ export interface ConnectorEditParams { } export interface ConnectorGetParams { + /** + * Account identifier + */ account_id: string; } diff --git a/src/resources/magic-transit/connectors/events/events.ts b/src/resources/magic-transit/connectors/events/events.ts index c3d8e75cbc..d3a34e8bb1 100644 --- a/src/resources/magic-transit/connectors/events/events.ts +++ b/src/resources/magic-transit/connectors/events/events.ts @@ -16,7 +16,11 @@ export class Events extends APIResource { * const events = * await client.magicTransit.connectors.events.list( * 'connector_id', - * { account_id: 'account_id', from: 0, to: 0 }, + * { + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', + * from: 0, + * to: 0, + * }, * ); * ``` */ @@ -44,7 +48,7 @@ export class Events extends APIResource { * 'connector_id', * 0, * 0, - * { account_id: 'account_id' }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ @@ -251,7 +255,7 @@ export namespace EventGetResponse { export interface EventListParams { /** - * Path param: + * Path param: Account identifier */ account_id: string; @@ -277,6 +281,9 @@ export interface EventListParams { } export interface EventGetParams { + /** + * Account identifier + */ account_id: string; } diff --git a/src/resources/magic-transit/connectors/events/latest.ts b/src/resources/magic-transit/connectors/events/latest.ts index 961d7eba87..982b440995 100644 --- a/src/resources/magic-transit/connectors/events/latest.ts +++ b/src/resources/magic-transit/connectors/events/latest.ts @@ -12,7 +12,7 @@ export class Latest extends APIResource { * const latests = * await client.magicTransit.connectors.events.latest.list( * 'connector_id', - * { account_id: 'account_id' }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ @@ -192,6 +192,9 @@ export namespace LatestListResponse { } export interface LatestListParams { + /** + * Account identifier + */ account_id: string; } diff --git a/src/resources/magic-transit/connectors/snapshots/latest.ts b/src/resources/magic-transit/connectors/snapshots/latest.ts index 3316136604..16d9eaff01 100644 --- a/src/resources/magic-transit/connectors/snapshots/latest.ts +++ b/src/resources/magic-transit/connectors/snapshots/latest.ts @@ -12,7 +12,7 @@ export class Latest extends APIResource { * const latests = * await client.magicTransit.connectors.snapshots.latest.list( * 'connector_id', - * { account_id: 'account_id' }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ @@ -1284,6 +1284,9 @@ export namespace LatestListResponse { } export interface LatestListParams { + /** + * Account identifier + */ account_id: string; } diff --git a/src/resources/magic-transit/connectors/snapshots/snapshots.ts b/src/resources/magic-transit/connectors/snapshots/snapshots.ts index 9152ee8c9e..69b5c098e5 100644 --- a/src/resources/magic-transit/connectors/snapshots/snapshots.ts +++ b/src/resources/magic-transit/connectors/snapshots/snapshots.ts @@ -16,7 +16,11 @@ export class Snapshots extends APIResource { * const snapshots = * await client.magicTransit.connectors.snapshots.list( * 'connector_id', - * { account_id: 'account_id', from: 0, to: 0 }, + * { + * account_id: '023e105f4ecef8ad9ca31a8372d0c353', + * from: 0, + * to: 0, + * }, * ); * ``` */ @@ -43,7 +47,7 @@ export class Snapshots extends APIResource { * await client.magicTransit.connectors.snapshots.get( * 'connector_id', * 0, - * { account_id: 'account_id' }, + * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ @@ -1331,7 +1335,7 @@ export namespace SnapshotGetResponse { export interface SnapshotListParams { /** - * Path param: + * Path param: Account identifier */ account_id: string; @@ -1357,6 +1361,9 @@ export interface SnapshotListParams { } export interface SnapshotGetParams { + /** + * Account identifier + */ account_id: string; } diff --git a/tests/api-resources/magic-transit/connectors/events/events.test.ts b/tests/api-resources/magic-transit/connectors/events/events.test.ts index ee5e3c2c8b..fa75c7d5a8 100644 --- a/tests/api-resources/magic-transit/connectors/events/events.test.ts +++ b/tests/api-resources/magic-transit/connectors/events/events.test.ts @@ -12,7 +12,7 @@ const client = new Cloudflare({ describe('resource events', () => { test('list: only required params', async () => { const responsePromise = client.magicTransit.connectors.events.list('connector_id', { - account_id: 'account_id', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', from: 0, to: 0, }); @@ -27,7 +27,7 @@ describe('resource events', () => { test('list: required and optional params', async () => { const response = await client.magicTransit.connectors.events.list('connector_id', { - account_id: 'account_id', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', from: 0, to: 0, cursor: 'cursor', @@ -37,7 +37,7 @@ describe('resource events', () => { test('get: only required params', async () => { const responsePromise = client.magicTransit.connectors.events.get('connector_id', 0, 0, { - account_id: 'account_id', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -50,7 +50,7 @@ describe('resource events', () => { test('get: required and optional params', async () => { const response = await client.magicTransit.connectors.events.get('connector_id', 0, 0, { - account_id: 'account_id', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); }); diff --git a/tests/api-resources/magic-transit/connectors/events/latest.test.ts b/tests/api-resources/magic-transit/connectors/events/latest.test.ts index 7fb27c4e7b..3bca2ce467 100644 --- a/tests/api-resources/magic-transit/connectors/events/latest.test.ts +++ b/tests/api-resources/magic-transit/connectors/events/latest.test.ts @@ -12,7 +12,7 @@ const client = new Cloudflare({ describe('resource latest', () => { test('list: only required params', async () => { const responsePromise = client.magicTransit.connectors.events.latest.list('connector_id', { - account_id: 'account_id', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -25,7 +25,7 @@ describe('resource latest', () => { test('list: required and optional params', async () => { const response = await client.magicTransit.connectors.events.latest.list('connector_id', { - account_id: 'account_id', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); }); diff --git a/tests/api-resources/magic-transit/connectors/snapshots/latest.test.ts b/tests/api-resources/magic-transit/connectors/snapshots/latest.test.ts index 03f22184e3..f64d4475bd 100644 --- a/tests/api-resources/magic-transit/connectors/snapshots/latest.test.ts +++ b/tests/api-resources/magic-transit/connectors/snapshots/latest.test.ts @@ -12,7 +12,7 @@ const client = new Cloudflare({ describe('resource latest', () => { test('list: only required params', async () => { const responsePromise = client.magicTransit.connectors.snapshots.latest.list('connector_id', { - account_id: 'account_id', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -25,7 +25,7 @@ describe('resource latest', () => { test('list: required and optional params', async () => { const response = await client.magicTransit.connectors.snapshots.latest.list('connector_id', { - account_id: 'account_id', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); }); diff --git a/tests/api-resources/magic-transit/connectors/snapshots/snapshots.test.ts b/tests/api-resources/magic-transit/connectors/snapshots/snapshots.test.ts index f3d03136f5..ff153ba4c0 100644 --- a/tests/api-resources/magic-transit/connectors/snapshots/snapshots.test.ts +++ b/tests/api-resources/magic-transit/connectors/snapshots/snapshots.test.ts @@ -12,7 +12,7 @@ const client = new Cloudflare({ describe('resource snapshots', () => { test('list: only required params', async () => { const responsePromise = client.magicTransit.connectors.snapshots.list('connector_id', { - account_id: 'account_id', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', from: 0, to: 0, }); @@ -27,7 +27,7 @@ describe('resource snapshots', () => { test('list: required and optional params', async () => { const response = await client.magicTransit.connectors.snapshots.list('connector_id', { - account_id: 'account_id', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', from: 0, to: 0, cursor: 'cursor', @@ -37,7 +37,7 @@ describe('resource snapshots', () => { test('get: only required params', async () => { const responsePromise = client.magicTransit.connectors.snapshots.get('connector_id', 0, { - account_id: 'account_id', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -50,7 +50,7 @@ describe('resource snapshots', () => { test('get: required and optional params', async () => { const response = await client.magicTransit.connectors.snapshots.get('connector_id', 0, { - account_id: 'account_id', + account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); }); }); From 46e90932dc5b7e8e2c2c7efdb91d9130f1245c00 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 17:51:53 +0000 Subject: [PATCH 321/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0c922222c1..8aa93a23c7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-946bfa47ce86130c4f98d7598659c1425455216544573738ecdfe060c935e88d.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e6e184ab8a52b9e04e83b0a1d8f295f9c2d595082480809be3890cbc262a865a.yml openapi_spec_hash: a33a6f26f6fce0ea7174b771e2735014 -config_hash: 6a9fd3406d52e894e3cdd5dd7e9893be +config_hash: d313f33ce502344dba92891f5ee86bd5 From f2b9d88f6ac96618e6d675e83266c1a0fe4dec54 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 17:54:39 +0000 Subject: [PATCH 322/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8aa93a23c7..3ef78c12e8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e6e184ab8a52b9e04e83b0a1d8f295f9c2d595082480809be3890cbc262a865a.yml -openapi_spec_hash: a33a6f26f6fce0ea7174b771e2735014 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-896ae739a97a90734fd52bf1bf14fd9cff7c3d9441616671b2b8b9ee943565e9.yml +openapi_spec_hash: 07ef0b7003666c826dae3c28b450d598 config_hash: d313f33ce502344dba92891f5ee86bd5 From 96a7858d09ab7a485dfcd0f731b3ab1feb7440e2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 17:57:15 +0000 Subject: [PATCH 323/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3ef78c12e8..8aa93a23c7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-896ae739a97a90734fd52bf1bf14fd9cff7c3d9441616671b2b8b9ee943565e9.yml -openapi_spec_hash: 07ef0b7003666c826dae3c28b450d598 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e6e184ab8a52b9e04e83b0a1d8f295f9c2d595082480809be3890cbc262a865a.yml +openapi_spec_hash: a33a6f26f6fce0ea7174b771e2735014 config_hash: d313f33ce502344dba92891f5ee86bd5 From fce79c26f6890b4361a887b9af4e510eea93dafe Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 18:09:55 +0000 Subject: [PATCH 324/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8aa93a23c7..3ef78c12e8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e6e184ab8a52b9e04e83b0a1d8f295f9c2d595082480809be3890cbc262a865a.yml -openapi_spec_hash: a33a6f26f6fce0ea7174b771e2735014 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-896ae739a97a90734fd52bf1bf14fd9cff7c3d9441616671b2b8b9ee943565e9.yml +openapi_spec_hash: 07ef0b7003666c826dae3c28b450d598 config_hash: d313f33ce502344dba92891f5ee86bd5 From b1c9681f4d58fe882ba65e12b96db3adf4210a62 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 18:12:38 +0000 Subject: [PATCH 325/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3ef78c12e8..acd6ca6410 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-896ae739a97a90734fd52bf1bf14fd9cff7c3d9441616671b2b8b9ee943565e9.yml -openapi_spec_hash: 07ef0b7003666c826dae3c28b450d598 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a8f167b9e3fb29a38b79f5b882e97d51b80fbd59822140cc952796e5836e2cb2.yml +openapi_spec_hash: e198a39ae23a0268e34f15c1fa3f747e config_hash: d313f33ce502344dba92891f5ee86bd5 From 7fd6186052adf9301b2f23da78514fb6bd044253 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 18:15:54 +0000 Subject: [PATCH 326/366] codegen metadata --- .stats.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index acd6ca6410..b552be2068 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a8f167b9e3fb29a38b79f5b882e97d51b80fbd59822140cc952796e5836e2cb2.yml -openapi_spec_hash: e198a39ae23a0268e34f15c1fa3f747e -config_hash: d313f33ce502344dba92891f5ee86bd5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-35160db1c2f78a469622b0ab9ddb85d20eb931adf7da9428941517d329c0c62b.yml +openapi_spec_hash: a33a6f26f6fce0ea7174b771e2735014 +config_hash: 5602bf31cc782710f476021bc0e9bbe2 From 98d2888d15f8f679074ef49405cd4fb7c9302cf5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 18:26:12 +0000 Subject: [PATCH 327/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b552be2068..89fb3bf4e8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-35160db1c2f78a469622b0ab9ddb85d20eb931adf7da9428941517d329c0c62b.yml -openapi_spec_hash: a33a6f26f6fce0ea7174b771e2735014 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9806f95ed85a7116970bdb05cadc0bb487a80ca74c9caf5e8dc3fe8650c33774.yml +openapi_spec_hash: e198a39ae23a0268e34f15c1fa3f747e config_hash: 5602bf31cc782710f476021bc0e9bbe2 From 33af5b28a7058d60c63aad3d20a9e3e2cbdfdd77 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 18:28:56 +0000 Subject: [PATCH 328/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 89fb3bf4e8..dc29bd6fbb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9806f95ed85a7116970bdb05cadc0bb487a80ca74c9caf5e8dc3fe8650c33774.yml -openapi_spec_hash: e198a39ae23a0268e34f15c1fa3f747e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-897c527acc62d7be69cae2070cf0d64223cae7226117d6cf63e866952a55f893.yml +openapi_spec_hash: 7b7a68f4188a62131322959b4120e6b3 config_hash: 5602bf31cc782710f476021bc0e9bbe2 From b771526035af0240e8d1dba4dd58ac015be18785 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 18:31:57 +0000 Subject: [PATCH 329/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index dc29bd6fbb..4280672dc4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-897c527acc62d7be69cae2070cf0d64223cae7226117d6cf63e866952a55f893.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3ec7dc85894973c05f7bc869cf3f80978851e1efab4fb49dff32d4fd2cc1a3b9.yml openapi_spec_hash: 7b7a68f4188a62131322959b4120e6b3 -config_hash: 5602bf31cc782710f476021bc0e9bbe2 +config_hash: 66558d0f13fdc190716cc14af827c879 From 73bf59df4494fddacee5992d0b7f6d12fd4a56bd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 19:19:57 +0000 Subject: [PATCH 330/366] chore(api): Fix edge IPs variant names --- .stats.yml | 4 ++-- src/resources/spectrum/spectrum.ts | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4280672dc4..4855f4f6d2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3ec7dc85894973c05f7bc869cf3f80978851e1efab4fb49dff32d4fd2cc1a3b9.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9f37df7a19bf5a50192a41b60608659c6d1a9ab2af79f8fad2b2029fb29fa5b6.yml openapi_spec_hash: 7b7a68f4188a62131322959b4120e6b3 -config_hash: 66558d0f13fdc190716cc14af827c879 +config_hash: 59bbe27e5d5e9093b7e6d08edd9ed508 diff --git a/src/resources/spectrum/spectrum.ts b/src/resources/spectrum/spectrum.ts index b1c7ccde01..da762b65b6 100644 --- a/src/resources/spectrum/spectrum.ts +++ b/src/resources/spectrum/spectrum.ts @@ -57,10 +57,10 @@ export interface DNSParam { /** * The anycast edge IP configuration for the hostname of this application. */ -export type EdgeIPs = EdgeIPs.UnionMember0 | EdgeIPs.UnionMember1; +export type EdgeIPs = EdgeIPs.Dynamic | EdgeIPs.Static; export namespace EdgeIPs { - export interface UnionMember0 { + export interface Dynamic { /** * The IP versions supported for inbound connections on Spectrum anycast IPs. */ @@ -74,7 +74,7 @@ export namespace EdgeIPs { type?: 'dynamic'; } - export interface UnionMember1 { + export interface Static { /** * The array of customer owned IPs we broadcast via anycast for this hostname and * application. @@ -93,10 +93,10 @@ export namespace EdgeIPs { /** * The anycast edge IP configuration for the hostname of this application. */ -export type EdgeIPsParam = EdgeIPsParam.UnionMember0 | EdgeIPsParam.UnionMember1; +export type EdgeIPsParam = EdgeIPsParam.Dynamic | EdgeIPsParam.Static; export namespace EdgeIPsParam { - export interface UnionMember0 { + export interface Dynamic { /** * The IP versions supported for inbound connections on Spectrum anycast IPs. */ @@ -110,7 +110,7 @@ export namespace EdgeIPsParam { type?: 'dynamic'; } - export interface UnionMember1 { + export interface Static { /** * The array of customer owned IPs we broadcast via anycast for this hostname and * application. From 995743dfe2e7968e14ee56a08509a89002c1fe77 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 19:31:47 +0000 Subject: [PATCH 331/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4855f4f6d2..48c6103f8f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9f37df7a19bf5a50192a41b60608659c6d1a9ab2af79f8fad2b2029fb29fa5b6.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d060f3c80b8b0298eaa4966d58a56714be65939cd46a209a4330b1c64d2d1b4d.yml openapi_spec_hash: 7b7a68f4188a62131322959b4120e6b3 -config_hash: 59bbe27e5d5e9093b7e6d08edd9ed508 +config_hash: c717f0669f1f2e54e955546999ca198c From d4a6fd3c046f99fe45c2ed80cfe096947862a83a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 19:41:49 +0000 Subject: [PATCH 332/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 48c6103f8f..4855f4f6d2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d060f3c80b8b0298eaa4966d58a56714be65939cd46a209a4330b1c64d2d1b4d.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9f37df7a19bf5a50192a41b60608659c6d1a9ab2af79f8fad2b2029fb29fa5b6.yml openapi_spec_hash: 7b7a68f4188a62131322959b4120e6b3 -config_hash: c717f0669f1f2e54e955546999ca198c +config_hash: 59bbe27e5d5e9093b7e6d08edd9ed508 From 8f61f1b483b1e916e785e941ec026840c61774c0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 20:07:32 +0000 Subject: [PATCH 333/366] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 4855f4f6d2..6af559b6d6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9f37df7a19bf5a50192a41b60608659c6d1a9ab2af79f8fad2b2029fb29fa5b6.yml openapi_spec_hash: 7b7a68f4188a62131322959b4120e6b3 -config_hash: 59bbe27e5d5e9093b7e6d08edd9ed508 +config_hash: 2882da7dabd269449fa77f54c7ce2574 From 8b1a263204d5baf19ebb8f131e9818d4ea48c8ef Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 20:22:55 +0000 Subject: [PATCH 334/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6af559b6d6..f902048731 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9f37df7a19bf5a50192a41b60608659c6d1a9ab2af79f8fad2b2029fb29fa5b6.yml -openapi_spec_hash: 7b7a68f4188a62131322959b4120e6b3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-639551301e0b1f375b22cc43f540b16a29eca0af36b4748707173415a2afcadb.yml +openapi_spec_hash: 27cdf7b31ede3731d4e311694270b6fa config_hash: 2882da7dabd269449fa77f54c7ce2574 From cc92cfb05dee7fc9516445fe0952cafc542e7555 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 20:45:30 +0000 Subject: [PATCH 335/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f902048731..d4086d5687 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-639551301e0b1f375b22cc43f540b16a29eca0af36b4748707173415a2afcadb.yml -openapi_spec_hash: 27cdf7b31ede3731d4e311694270b6fa +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-05c94ee9f0f5a476cc61c92e15e52bb03119d6dd6d84872f5fc5a8442654553f.yml +openapi_spec_hash: ee14d39ee997cc2db1de5cf36ddf1660 config_hash: 2882da7dabd269449fa77f54c7ce2574 From fb876b642c8bb3d9a18b04ddfd7450fd189c1ee8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 23:30:25 +0000 Subject: [PATCH 336/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d4086d5687..67e199e8c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-05c94ee9f0f5a476cc61c92e15e52bb03119d6dd6d84872f5fc5a8442654553f.yml -openapi_spec_hash: ee14d39ee997cc2db1de5cf36ddf1660 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-327c656d7f06601a9cf57893efca12456f5e192a88010b78f83ee4192e5c2da8.yml +openapi_spec_hash: 2138a0c38fbc137d2b9605c307088c24 config_hash: 2882da7dabd269449fa77f54c7ce2574 From 9a17d51780370524274b532667fede9f7f880c58 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 23:33:05 +0000 Subject: [PATCH 337/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 67e199e8c4..3ea37614c8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-327c656d7f06601a9cf57893efca12456f5e192a88010b78f83ee4192e5c2da8.yml -openapi_spec_hash: 2138a0c38fbc137d2b9605c307088c24 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-96e1b8220b6842a4ade141a4b658d134faf99cbd12911b1c63caa74445db37c9.yml +openapi_spec_hash: a18bac875edf1e926e5a38398d1bcc16 config_hash: 2882da7dabd269449fa77f54c7ce2574 From 4c5cebad93b684b3e457a2f3e1cdf3a67fc9e815 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 01:51:31 +0000 Subject: [PATCH 338/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3ea37614c8..1cc19c0e6c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-96e1b8220b6842a4ade141a4b658d134faf99cbd12911b1c63caa74445db37c9.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0d53d05ee1fc782b556f8c9e7f54b27044e9fe5a1745fc7e459f99a5764c4ec7.yml openapi_spec_hash: a18bac875edf1e926e5a38398d1bcc16 -config_hash: 2882da7dabd269449fa77f54c7ce2574 +config_hash: 4b927ddc073213712e291a61ccf872b0 From 5a0c25fddbd7a12ddbc0532fc8bc5babc99c737a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 06:10:03 +0000 Subject: [PATCH 339/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1cc19c0e6c..3e27c5f243 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0d53d05ee1fc782b556f8c9e7f54b27044e9fe5a1745fc7e459f99a5764c4ec7.yml -openapi_spec_hash: a18bac875edf1e926e5a38398d1bcc16 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b8a1ccbf88ee6373e2ec0a339202f98364731282ec6671006a236f56aea1680e.yml +openapi_spec_hash: 10afe5a2e7a21c37e47dbd38a1208c62 config_hash: 4b927ddc073213712e291a61ccf872b0 From 3bff586c64bfeaa6c1f9299bb3999e89c71833aa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 14:04:04 +0000 Subject: [PATCH 340/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3e27c5f243..60f8f1f4ff 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b8a1ccbf88ee6373e2ec0a339202f98364731282ec6671006a236f56aea1680e.yml -openapi_spec_hash: 10afe5a2e7a21c37e47dbd38a1208c62 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-943b01c76de30933dbc334d2cf9b3ae87a9f17a053c887d768c31af8bf9bad18.yml +openapi_spec_hash: 0c7882ee00afc93ac8a3242b92e019cc config_hash: 4b927ddc073213712e291a61ccf872b0 From 63238c8a86c6c24b4f30bcd847797bea752e586e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 15:16:34 +0000 Subject: [PATCH 341/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 60f8f1f4ff..f640e14079 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-943b01c76de30933dbc334d2cf9b3ae87a9f17a053c887d768c31af8bf9bad18.yml -openapi_spec_hash: 0c7882ee00afc93ac8a3242b92e019cc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-83f0d9f3eaadf6b912fcea473b2de0983eeb9d6714e58af2454e55a844975f97.yml +openapi_spec_hash: cfa3d28cd5fdaece19f84b8c75e56486 config_hash: 4b927ddc073213712e291a61ccf872b0 From 891733a98fd1d401fde13d528f18df0a6608ad99 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 16:01:37 +0000 Subject: [PATCH 342/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f640e14079..4a20153b03 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-83f0d9f3eaadf6b912fcea473b2de0983eeb9d6714e58af2454e55a844975f97.yml -openapi_spec_hash: cfa3d28cd5fdaece19f84b8c75e56486 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ccc681d08065c22989e0aa61a7d119aa7c58e5a727f5b0f310681e2076c61e58.yml +openapi_spec_hash: 62ce2671cbffd880bcf6b1a7d42bbdee config_hash: 4b927ddc073213712e291a61ccf872b0 From ef66d4707e4290a7ebe3c0f5520baa217fa24994 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 16:07:32 +0000 Subject: [PATCH 343/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4a20153b03..633a99a443 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ccc681d08065c22989e0aa61a7d119aa7c58e5a727f5b0f310681e2076c61e58.yml -openapi_spec_hash: 62ce2671cbffd880bcf6b1a7d42bbdee +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a121c1754bfaa63a06d8f2ef986794abea8cc0f92f26a526f2eb78ab7e514620.yml +openapi_spec_hash: 5d455b2ae5301e8aed0355fd6a85fec0 config_hash: 4b927ddc073213712e291a61ccf872b0 From 47779637d0534eff8f62c66e516dbd87591fcaed Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 16:22:52 +0000 Subject: [PATCH 344/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 633a99a443..6e1b2bea75 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a121c1754bfaa63a06d8f2ef986794abea8cc0f92f26a526f2eb78ab7e514620.yml -openapi_spec_hash: 5d455b2ae5301e8aed0355fd6a85fec0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-70a10a5a2a1ad186b926adc1495ede7dc3df082272838633c1c7e6d43f8483db.yml +openapi_spec_hash: 1b4af36aa1670bc92a0815f572ec8e45 config_hash: 4b927ddc073213712e291a61ccf872b0 From b1b9980d87153b5fdac03f48b635f78a4b83979b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 16:25:54 +0000 Subject: [PATCH 345/366] feat(api): api update --- .stats.yml | 4 +-- .../gateway/configurations/configurations.ts | 30 +++++++++++++++++++ src/resources/zero-trust/gateway/rules.ts | 5 ++++ .../configurations/configurations.test.ts | 2 ++ 4 files changed, 39 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6e1b2bea75..f8111ea2ce 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-70a10a5a2a1ad186b926adc1495ede7dc3df082272838633c1c7e6d43f8483db.yml -openapi_spec_hash: 1b4af36aa1670bc92a0815f572ec8e45 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dbf820133fda5d5f88170bea1f579cbf51f58883c727ec475d3091e334f62618.yml +openapi_spec_hash: cad99035781372477dd6e995664b414e config_hash: 4b927ddc073213712e291a61ccf872b0 diff --git a/src/resources/zero-trust/gateway/configurations/configurations.ts b/src/resources/zero-trust/gateway/configurations/configurations.ts index f3982aa651..aef238d681 100755 --- a/src/resources/zero-trust/gateway/configurations/configurations.ts +++ b/src/resources/zero-trust/gateway/configurations/configurations.ts @@ -441,6 +441,11 @@ export interface GatewayConfigurationSettings { */ antivirus?: AntiVirusSettings | null; + /** + * Setting to enable App Control + */ + 'app-control-settings'?: GatewayConfigurationSettings.AppControlSettings | null; + /** * Block page layout settings. */ @@ -500,6 +505,16 @@ export interface GatewayConfigurationSettings { } export namespace GatewayConfigurationSettings { + /** + * Setting to enable App Control + */ + export interface AppControlSettings { + /** + * Enable App Control + */ + enabled?: boolean; + } + /** * Certificate settings for Gateway TLS interception. If not specified, the * Cloudflare Root CA will be used. @@ -553,6 +568,11 @@ export interface GatewayConfigurationSettingsParam { */ antivirus?: AntiVirusSettingsParam | null; + /** + * Setting to enable App Control + */ + 'app-control-settings'?: GatewayConfigurationSettingsParam.AppControlSettings | null; + /** * Block page layout settings. */ @@ -612,6 +632,16 @@ export interface GatewayConfigurationSettingsParam { } export namespace GatewayConfigurationSettingsParam { + /** + * Setting to enable App Control + */ + export interface AppControlSettings { + /** + * Enable App Control + */ + enabled?: boolean; + } + /** * Certificate settings for Gateway TLS interception. If not specified, the * Cloudflare Root CA will be used. diff --git a/src/resources/zero-trust/gateway/rules.ts b/src/resources/zero-trust/gateway/rules.ts index 85d10edf79..af2f499fc7 100644 --- a/src/resources/zero-trust/gateway/rules.ts +++ b/src/resources/zero-trust/gateway/rules.ts @@ -368,6 +368,11 @@ export interface GatewayRule { * version number of the rule */ version?: number; + + /** + * Warning for a misconfigured rule, if any. + */ + warning_status?: string | null; } export namespace GatewayRule { 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 7600e505ed..b91d54d471 100755 --- a/tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts +++ b/tests/api-resources/zero-trust/gateway/configurations/configurations.test.ts @@ -39,6 +39,7 @@ describe('resource configurations', () => { support_url: 'support_url', }, }, + 'app-control-settings': { enabled: false }, block_page: { background_color: 'background_color', enabled: true, @@ -96,6 +97,7 @@ describe('resource configurations', () => { support_url: 'support_url', }, }, + 'app-control-settings': { enabled: false }, block_page: { background_color: 'background_color', enabled: true, From bdd4c8c976234c20f5a0cc3891889e9e6d36e471 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 16:43:39 +0000 Subject: [PATCH 346/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f8111ea2ce..b597d0a773 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dbf820133fda5d5f88170bea1f579cbf51f58883c727ec475d3091e334f62618.yml -openapi_spec_hash: cad99035781372477dd6e995664b414e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6d33af51c60f1bd6672c150e6583c2417e94deb79fdaa3362dc396322d4b130.yml +openapi_spec_hash: 6df76fdab182875bc5dab9cc8a1d3451 config_hash: 4b927ddc073213712e291a61ccf872b0 From 621a4d0556c20874c48b62047088dab66bb67ada Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 16:46:31 +0000 Subject: [PATCH 347/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b597d0a773..ffa29a0f5b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6d33af51c60f1bd6672c150e6583c2417e94deb79fdaa3362dc396322d4b130.yml -openapi_spec_hash: 6df76fdab182875bc5dab9cc8a1d3451 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4630badfdb7461b0b3744bfe7df1ed17646c522fe655d9e3ac5ac812ee7f2d20.yml +openapi_spec_hash: f5e7525b7446e8e536e9f2c9a82f6f5c config_hash: 4b927ddc073213712e291a61ccf872b0 From 113bfecc28ff9a3a7575565f4d1d9f66977de3f7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 16:56:57 +0000 Subject: [PATCH 348/366] fix(api): 'name' and 'type' are required on dns_record --- .stats.yml | 4 +- src/resources/dns/records.ts | 2210 ++++++++++++----------- tests/api-resources/dns/records.test.ts | 34 +- 3 files changed, 1133 insertions(+), 1115 deletions(-) diff --git a/.stats.yml b/.stats.yml index ffa29a0f5b..66a129e66a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4630badfdb7461b0b3744bfe7df1ed17646c522fe655d9e3ac5ac812ee7f2d20.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f0c2158556a520087f99f8ca426379575cf9483312cba61b99e37afab6306fde.yml openapi_spec_hash: f5e7525b7446e8e536e9f2c9a82f6f5c -config_hash: 4b927ddc073213712e291a61ccf872b0 +config_hash: 609def1a180087b5109306455be2068d diff --git a/src/resources/dns/records.ts b/src/resources/dns/records.ts index d14a565878..255fc19d37 100644 --- a/src/resources/dns/records.ts +++ b/src/resources/dns/records.ts @@ -21,6 +21,8 @@ export class Records extends APIResource { * ```ts * const recordResponse = await client.dns.records.create({ * zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + * name: 'example.com', + * type: 'A', * }); * ``` */ @@ -47,7 +49,11 @@ export class Records extends APIResource { * ```ts * const recordResponse = await client.dns.records.update( * '023e105f4ecef8ad9ca31a8372d0c353', - * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, + * { + * zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + * name: 'example.com', + * type: 'A', + * }, * ); * ``` */ @@ -162,7 +168,11 @@ export class Records extends APIResource { * ```ts * const recordResponse = await client.dns.records.edit( * '023e105f4ecef8ad9ca31a8372d0c353', - * { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, + * { + * zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + * name: 'example.com', + * type: 'A', + * }, * ); * ``` */ @@ -281,6 +291,16 @@ export class Records extends APIResource { export class RecordResponsesV4PagePaginationArray extends V4PagePaginationArray {} export interface ARecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'A'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -292,11 +312,6 @@ export interface ARecord { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -319,11 +334,6 @@ export interface ARecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'A'; } export namespace ARecord { @@ -350,6 +360,16 @@ export namespace ARecord { } export interface ARecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'A'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -361,11 +381,6 @@ export interface ARecordParam { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -388,11 +403,6 @@ export interface ARecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'A'; } export namespace ARecordParam { @@ -419,6 +429,16 @@ export namespace ARecordParam { } export interface AAAARecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'AAAA'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -430,11 +450,6 @@ export interface AAAARecord { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -457,11 +472,6 @@ export interface AAAARecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'AAAA'; } export namespace AAAARecord { @@ -488,6 +498,16 @@ export namespace AAAARecord { } export interface AAAARecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'AAAA'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -499,11 +519,6 @@ export interface AAAARecordParam { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -526,11 +541,6 @@ export interface AAAARecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'AAAA'; } export namespace AAAARecordParam { @@ -621,6 +631,16 @@ export namespace BatchPatch { */ id: string; + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'OPENPGPKEY'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -632,11 +652,6 @@ export namespace BatchPatch { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -659,11 +674,6 @@ export namespace BatchPatch { * Enterprise zones. */ ttl?: RecordsAPI.TTL; - - /** - * Record type. - */ - type?: 'OPENPGPKEY'; } export namespace OpenpgpkeyRecord { @@ -860,6 +870,16 @@ export namespace BatchPatchParam { */ id: string; + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'OPENPGPKEY'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -871,11 +891,6 @@ export namespace BatchPatchParam { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -898,11 +913,6 @@ export namespace BatchPatchParam { * Enterprise zones. */ ttl?: RecordsAPI.TTLParam; - - /** - * Record type. - */ - type?: 'OPENPGPKEY'; } export namespace OpenpgpkeyRecord { @@ -1099,6 +1109,16 @@ export namespace BatchPut { */ id: string; + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'OPENPGPKEY'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1110,11 +1130,6 @@ export namespace BatchPut { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -1137,11 +1152,6 @@ export namespace BatchPut { * Enterprise zones. */ ttl?: RecordsAPI.TTL; - - /** - * Record type. - */ - type?: 'OPENPGPKEY'; } export namespace OpenpgpkeyRecord { @@ -1338,6 +1348,16 @@ export namespace BatchPutParam { */ id: string; + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'OPENPGPKEY'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1349,11 +1369,6 @@ export namespace BatchPutParam { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -1376,11 +1391,6 @@ export namespace BatchPutParam { * Enterprise zones. */ ttl?: RecordsAPI.TTLParam; - - /** - * Record type. - */ - type?: 'OPENPGPKEY'; } export namespace OpenpgpkeyRecord { @@ -1513,6 +1523,16 @@ export namespace BatchPutParam { } export interface CAARecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'CAA'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1529,11 +1549,6 @@ export interface CAARecord { */ data?: CAARecord.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -1556,11 +1571,6 @@ export interface CAARecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'CAA'; } export namespace CAARecord { @@ -1607,6 +1617,16 @@ export namespace CAARecord { } export interface CAARecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'CAA'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1618,11 +1638,6 @@ export interface CAARecordParam { */ data?: CAARecordParam.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -1645,11 +1660,6 @@ export interface CAARecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'CAA'; } export namespace CAARecordParam { @@ -1696,6 +1706,16 @@ export namespace CAARecordParam { } export interface CERTRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'CERT'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1712,11 +1732,6 @@ export interface CERTRecord { */ data?: CERTRecord.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -1739,11 +1754,6 @@ export interface CERTRecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'CERT'; } export namespace CERTRecord { @@ -1795,6 +1805,16 @@ export namespace CERTRecord { } export interface CERTRecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'CERT'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1806,11 +1826,6 @@ export interface CERTRecordParam { */ data?: CERTRecordParam.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -1833,11 +1848,6 @@ export interface CERTRecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'CERT'; } export namespace CERTRecordParam { @@ -1889,6 +1899,16 @@ export namespace CERTRecordParam { } export interface CNAMERecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'CNAME'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1900,11 +1920,6 @@ export interface CNAMERecord { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -1927,11 +1942,6 @@ export interface CNAMERecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'CNAME'; } export namespace CNAMERecord { @@ -1966,6 +1976,16 @@ export namespace CNAMERecord { } export interface CNAMERecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'CNAME'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -1977,11 +1997,6 @@ export interface CNAMERecordParam { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -2004,11 +2019,6 @@ export interface CNAMERecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'CNAME'; } export namespace CNAMERecordParam { @@ -2043,6 +2053,16 @@ export namespace CNAMERecordParam { } export interface DNSKEYRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'DNSKEY'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -2059,11 +2079,6 @@ export interface DNSKEYRecord { */ data?: DNSKEYRecord.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -2086,11 +2101,6 @@ export interface DNSKEYRecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'DNSKEY'; } export namespace DNSKEYRecord { @@ -2143,20 +2153,25 @@ export namespace DNSKEYRecord { export interface DNSKEYRecordParam { /** - * Comments or notes about the DNS record. This field has no effect on DNS - * responses. + * DNS record name (or @ for the zone apex) in Punycode. */ - comment?: string; + name: string; /** - * Components of a DNSKEY record. + * Record type. */ - data?: DNSKEYRecordParam.Data; + type: 'DNSKEY'; /** - * DNS record name (or @ for the zone apex) in Punycode. + * Comments or notes about the DNS record. This field has no effect on DNS + * responses. + */ + comment?: string; + + /** + * Components of a DNSKEY record. */ - name?: string; + data?: DNSKEYRecordParam.Data; /** * Whether the record is receiving the performance and security benefits of @@ -2180,11 +2195,6 @@ export interface DNSKEYRecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'DNSKEY'; } export namespace DNSKEYRecordParam { @@ -2236,6 +2246,16 @@ export namespace DNSKEYRecordParam { } export interface DSRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'DS'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -2252,11 +2272,6 @@ export interface DSRecord { */ data?: DSRecord.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -2279,11 +2294,6 @@ export interface DSRecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'DS'; } export namespace DSRecord { @@ -2335,6 +2345,16 @@ export namespace DSRecord { } export interface DSRecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'DS'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -2346,11 +2366,6 @@ export interface DSRecordParam { */ data?: DSRecordParam.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -2373,11 +2388,6 @@ export interface DSRecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'DS'; } export namespace DSRecordParam { @@ -2429,6 +2439,16 @@ export namespace DSRecordParam { } export interface HTTPSRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'HTTPS'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -2445,11 +2465,6 @@ export interface HTTPSRecord { */ data?: HTTPSRecord.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -2472,11 +2487,6 @@ export interface HTTPSRecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'HTTPS'; } export namespace HTTPSRecord { @@ -2523,6 +2533,16 @@ export namespace HTTPSRecord { } export interface HTTPSRecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'HTTPS'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -2534,11 +2554,6 @@ export interface HTTPSRecordParam { */ data?: HTTPSRecordParam.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -2561,11 +2576,6 @@ export interface HTTPSRecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'HTTPS'; } export namespace HTTPSRecordParam { @@ -2612,6 +2622,16 @@ export namespace HTTPSRecordParam { } export interface LOCRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'LOC'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -2628,11 +2648,6 @@ export interface LOCRecord { */ data?: LOCRecord.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -2655,11 +2670,6 @@ export interface LOCRecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'LOC'; } export namespace LOCRecord { @@ -2751,6 +2761,16 @@ export namespace LOCRecord { } export interface LOCRecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'LOC'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -2762,11 +2782,6 @@ export interface LOCRecordParam { */ data?: LOCRecordParam.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -2789,11 +2804,6 @@ export interface LOCRecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'LOC'; } export namespace LOCRecordParam { @@ -2885,6 +2895,16 @@ export namespace LOCRecordParam { } export interface MXRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'MX'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -2896,11 +2916,6 @@ export interface MXRecord { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Required for MX, SRV and URI records; unused by other record types. Records with * lower priorities are preferred. @@ -2929,11 +2944,6 @@ export interface MXRecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'MX'; } export namespace MXRecord { @@ -2960,6 +2970,16 @@ export namespace MXRecord { } export interface MXRecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'MX'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -2971,11 +2991,6 @@ export interface MXRecordParam { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Required for MX, SRV and URI records; unused by other record types. Records with * lower priorities are preferred. @@ -3004,11 +3019,6 @@ export interface MXRecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'MX'; } export namespace MXRecordParam { @@ -3035,6 +3045,16 @@ export namespace MXRecordParam { } export interface NAPTRRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'NAPTR'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -3051,11 +3071,6 @@ export interface NAPTRRecord { */ data?: NAPTRRecord.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -3078,11 +3093,6 @@ export interface NAPTRRecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'NAPTR'; } export namespace NAPTRRecord { @@ -3144,6 +3154,16 @@ export namespace NAPTRRecord { } export interface NAPTRRecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'NAPTR'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -3155,11 +3175,6 @@ export interface NAPTRRecordParam { */ data?: NAPTRRecordParam.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -3182,11 +3197,6 @@ export interface NAPTRRecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'NAPTR'; } export namespace NAPTRRecordParam { @@ -3248,6 +3258,16 @@ export namespace NAPTRRecordParam { } export interface NSRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'NS'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -3259,11 +3279,6 @@ export interface NSRecord { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -3286,11 +3301,6 @@ export interface NSRecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'NS'; } export namespace NSRecord { @@ -3317,6 +3327,16 @@ export namespace NSRecord { } export interface NSRecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'NS'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -3328,11 +3348,6 @@ export interface NSRecordParam { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -3355,11 +3370,6 @@ export interface NSRecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'NS'; } export namespace NSRecordParam { @@ -3386,6 +3396,16 @@ export namespace NSRecordParam { } export interface PTRRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'PTR'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -3397,11 +3417,6 @@ export interface PTRRecord { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -3424,11 +3439,6 @@ export interface PTRRecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'PTR'; } export namespace PTRRecord { @@ -3455,6 +3465,16 @@ export namespace PTRRecord { } export interface PTRRecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'PTR'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -3466,11 +3486,6 @@ export interface PTRRecordParam { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -3493,11 +3508,6 @@ export interface PTRRecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'PTR'; } export namespace PTRRecordParam { @@ -3548,6 +3558,16 @@ export type Record = export namespace Record { export interface Openpgpkey { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'OPENPGPKEY'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -3559,11 +3579,6 @@ export namespace Record { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -3586,11 +3601,6 @@ export namespace Record { * Enterprise zones. */ ttl?: RecordsAPI.TTL; - - /** - * Record type. - */ - type?: 'OPENPGPKEY'; } export namespace Openpgpkey { @@ -4499,6 +4509,16 @@ export type RecordTags = string; export type RecordTagsParam = string; export interface SMIMEARecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'SMIMEA'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -4515,11 +4535,6 @@ export interface SMIMEARecord { */ data?: SMIMEARecord.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -4542,11 +4557,6 @@ export interface SMIMEARecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'SMIMEA'; } export namespace SMIMEARecord { @@ -4598,6 +4608,16 @@ export namespace SMIMEARecord { } export interface SMIMEARecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'SMIMEA'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -4609,11 +4629,6 @@ export interface SMIMEARecordParam { */ data?: SMIMEARecordParam.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -4636,11 +4651,6 @@ export interface SMIMEARecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'SMIMEA'; } export namespace SMIMEARecordParam { @@ -4692,6 +4702,16 @@ export namespace SMIMEARecordParam { } export interface SRVRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'SRV'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -4709,11 +4729,6 @@ export interface SRVRecord { */ data?: SRVRecord.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -4736,11 +4751,6 @@ export interface SRVRecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'SRV'; } export namespace SRVRecord { @@ -4793,6 +4803,16 @@ export namespace SRVRecord { } export interface SRVRecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'SRV'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -4804,11 +4824,6 @@ export interface SRVRecordParam { */ data?: SRVRecordParam.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -4831,11 +4846,6 @@ export interface SRVRecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'SRV'; } export namespace SRVRecordParam { @@ -4888,6 +4898,16 @@ export namespace SRVRecordParam { } export interface SSHFPRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'SSHFP'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -4904,11 +4924,6 @@ export interface SSHFPRecord { */ data?: SSHFPRecord.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -4931,11 +4946,6 @@ export interface SSHFPRecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'SSHFP'; } export namespace SSHFPRecord { @@ -4982,6 +4992,16 @@ export namespace SSHFPRecord { } export interface SSHFPRecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'SSHFP'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -4993,11 +5013,6 @@ export interface SSHFPRecordParam { */ data?: SSHFPRecordParam.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -5020,11 +5035,6 @@ export interface SSHFPRecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'SSHFP'; } export namespace SSHFPRecordParam { @@ -5071,6 +5081,16 @@ export namespace SSHFPRecordParam { } export interface SVCBRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'SVCB'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -5087,11 +5107,6 @@ export interface SVCBRecord { */ data?: SVCBRecord.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -5114,11 +5129,6 @@ export interface SVCBRecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'SVCB'; } export namespace SVCBRecord { @@ -5165,6 +5175,16 @@ export namespace SVCBRecord { } export interface SVCBRecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'SVCB'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -5176,11 +5196,6 @@ export interface SVCBRecordParam { */ data?: SVCBRecordParam.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -5203,11 +5218,6 @@ export interface SVCBRecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'SVCB'; } export namespace SVCBRecordParam { @@ -5254,6 +5264,16 @@ export namespace SVCBRecordParam { } export interface TLSARecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'TLSA'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -5270,11 +5290,6 @@ export interface TLSARecord { */ data?: TLSARecord.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -5297,11 +5312,6 @@ export interface TLSARecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'TLSA'; } export namespace TLSARecord { @@ -5353,6 +5363,16 @@ export namespace TLSARecord { } export interface TLSARecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'TLSA'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -5364,11 +5384,6 @@ export interface TLSARecordParam { */ data?: TLSARecordParam.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -5391,11 +5406,6 @@ export interface TLSARecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'TLSA'; } export namespace TLSARecordParam { @@ -5461,6 +5471,16 @@ export type TTL = number | 1; export type TTLParam = number | 1; export interface TXTRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'TXT'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -5477,11 +5497,6 @@ export interface TXTRecord { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -5504,11 +5519,6 @@ export interface TXTRecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'TXT'; } export namespace TXTRecord { @@ -5535,6 +5545,16 @@ export namespace TXTRecord { } export interface TXTRecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'TXT'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -5551,11 +5571,6 @@ export interface TXTRecordParam { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -5578,11 +5593,6 @@ export interface TXTRecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'TXT'; } export namespace TXTRecordParam { @@ -5609,6 +5619,16 @@ export namespace TXTRecordParam { } export interface URIRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'URI'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -5625,11 +5645,6 @@ export interface URIRecord { */ data?: URIRecord.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Required for MX, SRV and URI records; unused by other record types. Records with * lower priorities are preferred. @@ -5658,11 +5673,6 @@ export interface URIRecord { * Enterprise zones. */ ttl?: TTL; - - /** - * Record type. - */ - type?: 'URI'; } export namespace URIRecord { @@ -5704,6 +5714,16 @@ export namespace URIRecord { } export interface URIRecordParam { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'URI'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -5715,11 +5735,6 @@ export interface URIRecordParam { */ data?: URIRecordParam.Data; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Required for MX, SRV and URI records; unused by other record types. Records with * lower priorities are preferred. @@ -5748,11 +5763,6 @@ export interface URIRecordParam { * Enterprise zones. */ ttl?: TTLParam; - - /** - * Record type. - */ - type?: 'URI'; } export namespace URIRecordParam { @@ -5869,6 +5879,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'A'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5880,11 +5900,6 @@ export declare namespace RecordCreateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -5908,11 +5923,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'A'; } export namespace ARecord { @@ -5944,6 +5954,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'AAAA'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -5955,11 +5975,6 @@ export declare namespace RecordCreateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -5983,14 +5998,9 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; + } - /** - * Body param: Record type. - */ - type?: 'AAAA'; - } - - export namespace AAAARecord { + export namespace AAAARecord { /** * Settings for the DNS record. */ @@ -6019,6 +6029,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'CNAME'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6030,11 +6050,6 @@ export declare namespace RecordCreateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -6058,11 +6073,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'CNAME'; } export namespace CNAMERecord { @@ -6102,6 +6112,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'MX'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6113,11 +6133,6 @@ export declare namespace RecordCreateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Required for MX, SRV and URI records; unused by other record types. * Records with lower priorities are preferred. @@ -6147,11 +6162,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'MX'; } export namespace MXRecord { @@ -6183,6 +6193,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'NS'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6194,11 +6214,6 @@ export declare namespace RecordCreateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -6222,11 +6237,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'NS'; } export namespace NSRecord { @@ -6258,6 +6268,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'OPENPGPKEY'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6270,11 +6290,6 @@ export declare namespace RecordCreateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -6298,11 +6313,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'OPENPGPKEY'; } export namespace DNSRecordsOpenpgpkeyRecord { @@ -6334,6 +6344,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'PTR'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6345,11 +6365,6 @@ export declare namespace RecordCreateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -6373,11 +6388,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'PTR'; } export namespace PTRRecord { @@ -6409,6 +6419,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'TXT'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6425,11 +6445,6 @@ export declare namespace RecordCreateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -6453,11 +6468,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'TXT'; } export namespace TXTRecord { @@ -6489,6 +6499,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'CAA'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6500,11 +6520,6 @@ export declare namespace RecordCreateParams { */ data?: CAARecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -6528,11 +6543,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'CAA'; } export namespace CAARecord { @@ -6584,6 +6594,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'CERT'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6595,11 +6615,6 @@ export declare namespace RecordCreateParams { */ data?: CERTRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -6623,11 +6638,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'CERT'; } export namespace CERTRecord { @@ -6684,6 +6694,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'DNSKEY'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6695,11 +6715,6 @@ export declare namespace RecordCreateParams { */ data?: DNSKEYRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -6723,11 +6738,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'DNSKEY'; } export namespace DNSKEYRecord { @@ -6784,6 +6794,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'DS'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6795,11 +6815,6 @@ export declare namespace RecordCreateParams { */ data?: DSRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -6823,11 +6838,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'DS'; } export namespace DSRecord { @@ -6884,6 +6894,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'HTTPS'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6895,11 +6915,6 @@ export declare namespace RecordCreateParams { */ data?: HTTPSRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -6923,11 +6938,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'HTTPS'; } export namespace HTTPSRecord { @@ -6979,6 +6989,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'LOC'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -6990,11 +7010,6 @@ export declare namespace RecordCreateParams { */ data?: LOCRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -7018,11 +7033,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'LOC'; } export namespace LOCRecord { @@ -7119,6 +7129,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'NAPTR'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -7130,11 +7150,6 @@ export declare namespace RecordCreateParams { */ data?: NAPTRRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -7158,11 +7173,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'NAPTR'; } export namespace NAPTRRecord { @@ -7229,6 +7239,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'SMIMEA'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -7240,11 +7260,6 @@ export declare namespace RecordCreateParams { */ data?: SMIMEARecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -7268,11 +7283,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'SMIMEA'; } export namespace SMIMEARecord { @@ -7329,6 +7339,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'SRV'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -7340,11 +7360,6 @@ export declare namespace RecordCreateParams { */ data?: SRVRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -7368,11 +7383,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'SRV'; } export namespace SRVRecord { @@ -7430,6 +7440,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'SSHFP'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -7441,11 +7461,6 @@ export declare namespace RecordCreateParams { */ data?: SSHFPRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -7469,11 +7484,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'SSHFP'; } export namespace SSHFPRecord { @@ -7525,6 +7535,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'SVCB'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -7536,11 +7556,6 @@ export declare namespace RecordCreateParams { */ data?: SVCBRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -7564,11 +7579,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'SVCB'; } export namespace SVCBRecord { @@ -7620,6 +7630,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'TLSA'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -7631,11 +7651,6 @@ export declare namespace RecordCreateParams { */ data?: TLSARecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -7659,11 +7674,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'TLSA'; } export namespace TLSARecord { @@ -7720,6 +7730,16 @@ export declare namespace RecordCreateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'URI'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -7731,11 +7751,6 @@ export declare namespace RecordCreateParams { */ data?: URIRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Required for MX, SRV and URI records; unused by other record types. * Records with lower priorities are preferred. @@ -7765,11 +7780,6 @@ export declare namespace RecordCreateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'URI'; } export namespace URIRecord { @@ -7841,6 +7851,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'A'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -7852,11 +7872,6 @@ export declare namespace RecordUpdateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -7880,11 +7895,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'A'; } export namespace ARecord { @@ -7916,6 +7926,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'AAAA'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -7927,11 +7947,6 @@ export declare namespace RecordUpdateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -7955,11 +7970,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'AAAA'; } export namespace AAAARecord { @@ -7991,6 +8001,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'CNAME'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -8002,11 +8022,6 @@ export declare namespace RecordUpdateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -8030,11 +8045,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'CNAME'; } export namespace CNAMERecord { @@ -8074,6 +8084,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'MX'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -8085,11 +8105,6 @@ export declare namespace RecordUpdateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Required for MX, SRV and URI records; unused by other record types. * Records with lower priorities are preferred. @@ -8119,11 +8134,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'MX'; } export namespace MXRecord { @@ -8155,6 +8165,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'NS'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -8166,11 +8186,6 @@ export declare namespace RecordUpdateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -8194,11 +8209,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'NS'; } export namespace NSRecord { @@ -8230,6 +8240,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'OPENPGPKEY'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -8242,11 +8262,6 @@ export declare namespace RecordUpdateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -8270,11 +8285,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'OPENPGPKEY'; } export namespace DNSRecordsOpenpgpkeyRecord { @@ -8306,6 +8316,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'PTR'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -8317,11 +8337,6 @@ export declare namespace RecordUpdateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -8345,11 +8360,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'PTR'; } export namespace PTRRecord { @@ -8381,6 +8391,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'TXT'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -8397,11 +8417,6 @@ export declare namespace RecordUpdateParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -8425,11 +8440,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'TXT'; } export namespace TXTRecord { @@ -8461,6 +8471,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'CAA'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -8472,11 +8492,6 @@ export declare namespace RecordUpdateParams { */ data?: CAARecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -8500,11 +8515,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'CAA'; } export namespace CAARecord { @@ -8556,6 +8566,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'CERT'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -8567,11 +8587,6 @@ export declare namespace RecordUpdateParams { */ data?: CERTRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -8595,11 +8610,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'CERT'; } export namespace CERTRecord { @@ -8656,6 +8666,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'DNSKEY'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -8667,11 +8687,6 @@ export declare namespace RecordUpdateParams { */ data?: DNSKEYRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -8695,11 +8710,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'DNSKEY'; } export namespace DNSKEYRecord { @@ -8756,6 +8766,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'DS'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -8767,11 +8787,6 @@ export declare namespace RecordUpdateParams { */ data?: DSRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -8795,11 +8810,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'DS'; } export namespace DSRecord { @@ -8856,6 +8866,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'HTTPS'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -8867,11 +8887,6 @@ export declare namespace RecordUpdateParams { */ data?: HTTPSRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -8895,11 +8910,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'HTTPS'; } export namespace HTTPSRecord { @@ -8945,11 +8955,21 @@ export declare namespace RecordUpdateParams { } } - export interface LOCRecord { + export interface LOCRecord { + /** + * Path param: Identifier. + */ + zone_id: string; + + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + /** - * Path param: Identifier. + * Body param: Record type. */ - zone_id: string; + type: 'LOC'; /** * Body param: Comments or notes about the DNS record. This field has no effect on @@ -8962,11 +8982,6 @@ export declare namespace RecordUpdateParams { */ data?: LOCRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -8990,11 +9005,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'LOC'; } export namespace LOCRecord { @@ -9091,6 +9101,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'NAPTR'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -9102,11 +9122,6 @@ export declare namespace RecordUpdateParams { */ data?: NAPTRRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -9130,11 +9145,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'NAPTR'; } export namespace NAPTRRecord { @@ -9201,6 +9211,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'SMIMEA'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -9212,11 +9232,6 @@ export declare namespace RecordUpdateParams { */ data?: SMIMEARecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -9240,11 +9255,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'SMIMEA'; } export namespace SMIMEARecord { @@ -9301,6 +9311,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'SRV'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -9312,11 +9332,6 @@ export declare namespace RecordUpdateParams { */ data?: SRVRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -9340,11 +9355,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'SRV'; } export namespace SRVRecord { @@ -9402,6 +9412,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'SSHFP'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -9413,11 +9433,6 @@ export declare namespace RecordUpdateParams { */ data?: SSHFPRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -9441,11 +9456,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'SSHFP'; } export namespace SSHFPRecord { @@ -9497,6 +9507,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'SVCB'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -9508,11 +9528,6 @@ export declare namespace RecordUpdateParams { */ data?: SVCBRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -9536,11 +9551,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'SVCB'; } export namespace SVCBRecord { @@ -9592,6 +9602,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'TLSA'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -9603,11 +9623,6 @@ export declare namespace RecordUpdateParams { */ data?: TLSARecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -9631,11 +9646,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'TLSA'; } export namespace TLSARecord { @@ -9692,6 +9702,16 @@ export declare namespace RecordUpdateParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'URI'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -9703,11 +9723,6 @@ export declare namespace RecordUpdateParams { */ data?: URIRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Required for MX, SRV and URI records; unused by other record types. * Records with lower priorities are preferred. @@ -9737,11 +9752,6 @@ export declare namespace RecordUpdateParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'URI'; } export namespace URIRecord { @@ -10063,6 +10073,16 @@ export namespace RecordBatchParams { } export interface DNSRecordsOpenpgpkeyRecord { + /** + * DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Record type. + */ + type: 'OPENPGPKEY'; + /** * Comments or notes about the DNS record. This field has no effect on DNS * responses. @@ -10074,11 +10094,6 @@ export namespace RecordBatchParams { */ content?: string; - /** - * DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Whether the record is receiving the performance and security benefits of * Cloudflare. @@ -10101,11 +10116,6 @@ export namespace RecordBatchParams { * Enterprise zones. */ ttl?: RecordsAPI.TTLParam; - - /** - * Record type. - */ - type?: 'OPENPGPKEY'; } export namespace DNSRecordsOpenpgpkeyRecord { @@ -10162,6 +10172,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'A'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -10173,11 +10193,6 @@ export declare namespace RecordEditParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -10201,11 +10216,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'A'; } export namespace ARecord { @@ -10237,6 +10247,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'AAAA'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -10248,11 +10268,6 @@ export declare namespace RecordEditParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -10276,11 +10291,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'AAAA'; } export namespace AAAARecord { @@ -10312,6 +10322,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'CNAME'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -10323,11 +10343,6 @@ export declare namespace RecordEditParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -10351,11 +10366,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'CNAME'; } export namespace CNAMERecord { @@ -10395,6 +10405,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'MX'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -10406,11 +10426,6 @@ export declare namespace RecordEditParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Required for MX, SRV and URI records; unused by other record types. * Records with lower priorities are preferred. @@ -10440,11 +10455,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'MX'; } export namespace MXRecord { @@ -10476,6 +10486,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'NS'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -10487,11 +10507,6 @@ export declare namespace RecordEditParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -10515,11 +10530,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'NS'; } export namespace NSRecord { @@ -10551,6 +10561,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'OPENPGPKEY'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -10563,11 +10583,6 @@ export declare namespace RecordEditParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -10590,12 +10605,7 @@ export declare namespace RecordEditParams { * 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 * for Enterprise zones. */ - ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'OPENPGPKEY'; + ttl?: TTLParam; } export namespace DNSRecordsOpenpgpkeyRecord { @@ -10627,6 +10637,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'PTR'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -10638,11 +10658,6 @@ export declare namespace RecordEditParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -10666,11 +10681,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'PTR'; } export namespace PTRRecord { @@ -10702,6 +10712,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'TXT'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -10718,11 +10738,6 @@ export declare namespace RecordEditParams { */ content?: string; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -10746,11 +10761,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'TXT'; } export namespace TXTRecord { @@ -10782,6 +10792,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'CAA'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -10793,11 +10813,6 @@ export declare namespace RecordEditParams { */ data?: CAARecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -10821,11 +10836,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'CAA'; } export namespace CAARecord { @@ -10877,6 +10887,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'CERT'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -10888,11 +10908,6 @@ export declare namespace RecordEditParams { */ data?: CERTRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -10916,11 +10931,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'CERT'; } export namespace CERTRecord { @@ -10977,6 +10987,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'DNSKEY'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -10988,11 +11008,6 @@ export declare namespace RecordEditParams { */ data?: DNSKEYRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -11016,11 +11031,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'DNSKEY'; } export namespace DNSKEYRecord { @@ -11077,6 +11087,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'DS'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -11088,11 +11108,6 @@ export declare namespace RecordEditParams { */ data?: DSRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -11116,11 +11131,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'DS'; } export namespace DSRecord { @@ -11177,6 +11187,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'HTTPS'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -11188,11 +11208,6 @@ export declare namespace RecordEditParams { */ data?: HTTPSRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -11216,11 +11231,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'HTTPS'; } export namespace HTTPSRecord { @@ -11272,6 +11282,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'LOC'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -11283,11 +11303,6 @@ export declare namespace RecordEditParams { */ data?: LOCRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -11311,11 +11326,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'LOC'; } export namespace LOCRecord { @@ -11412,6 +11422,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'NAPTR'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -11423,11 +11443,6 @@ export declare namespace RecordEditParams { */ data?: NAPTRRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -11451,11 +11466,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'NAPTR'; } export namespace NAPTRRecord { @@ -11522,6 +11532,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'SMIMEA'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -11533,11 +11553,6 @@ export declare namespace RecordEditParams { */ data?: SMIMEARecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -11561,11 +11576,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'SMIMEA'; } export namespace SMIMEARecord { @@ -11622,6 +11632,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'SRV'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -11633,11 +11653,6 @@ export declare namespace RecordEditParams { */ data?: SRVRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -11661,11 +11676,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'SRV'; } export namespace SRVRecord { @@ -11723,6 +11733,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'SSHFP'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -11734,11 +11754,6 @@ export declare namespace RecordEditParams { */ data?: SSHFPRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -11762,11 +11777,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'SSHFP'; } export namespace SSHFPRecord { @@ -11818,6 +11828,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'SVCB'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -11829,11 +11849,6 @@ export declare namespace RecordEditParams { */ data?: SVCBRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -11857,11 +11872,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'SVCB'; } export namespace SVCBRecord { @@ -11913,6 +11923,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'TLSA'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -11924,11 +11944,6 @@ export declare namespace RecordEditParams { */ data?: TLSARecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Whether the record is receiving the performance and security * benefits of Cloudflare. @@ -11952,11 +11967,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'TLSA'; } export namespace TLSARecord { @@ -12013,6 +12023,16 @@ export declare namespace RecordEditParams { */ zone_id: string; + /** + * Body param: DNS record name (or @ for the zone apex) in Punycode. + */ + name: string; + + /** + * Body param: Record type. + */ + type: 'URI'; + /** * Body param: Comments or notes about the DNS record. This field has no effect on * DNS responses. @@ -12024,11 +12044,6 @@ export declare namespace RecordEditParams { */ data?: URIRecord.Data; - /** - * Body param: DNS record name (or @ for the zone apex) in Punycode. - */ - name?: string; - /** * Body param: Required for MX, SRV and URI records; unused by other record types. * Records with lower priorities are preferred. @@ -12058,11 +12073,6 @@ export declare namespace RecordEditParams { * for Enterprise zones. */ ttl?: TTLParam; - - /** - * Body param: Record type. - */ - type?: 'URI'; } export namespace URIRecord { diff --git a/tests/api-resources/dns/records.test.ts b/tests/api-resources/dns/records.test.ts index 3fb585e3c1..3a5f303fc7 100644 --- a/tests/api-resources/dns/records.test.ts +++ b/tests/api-resources/dns/records.test.ts @@ -12,7 +12,11 @@ const client = new Cloudflare({ describe('resource records', () => { // TODO: investigate broken test test.skip('create: only required params', async () => { - const responsePromise = client.dns.records.create({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }); + const responsePromise = client.dns.records.create({ + zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + name: 'example.com', + type: 'A', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -26,14 +30,14 @@ describe('resource records', () => { test.skip('create: required and optional params', async () => { const response = await client.dns.records.create({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + name: 'example.com', + type: 'A', comment: 'Domain verification record', content: '198.51.100.4', - name: 'example.com', proxied: true, settings: { ipv4_only: true, ipv6_only: true }, tags: ['owner:dns-team'], ttl: 3600, - type: 'A', }); }); @@ -41,6 +45,8 @@ describe('resource records', () => { test.skip('update: only required params', async () => { const responsePromise = client.dns.records.update('023e105f4ecef8ad9ca31a8372d0c353', { zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + name: 'example.com', + type: 'A', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -55,14 +61,14 @@ describe('resource records', () => { test.skip('update: required and optional params', async () => { const response = await client.dns.records.update('023e105f4ecef8ad9ca31a8372d0c353', { zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + name: 'example.com', + type: 'A', comment: 'Domain verification record', content: '198.51.100.4', - name: 'example.com', proxied: true, settings: { ipv4_only: true, ipv6_only: true }, tags: ['owner:dns-team'], ttl: 3600, - type: 'A', }); }); @@ -155,39 +161,39 @@ describe('resource records', () => { deletes: [{ id: '023e105f4ecef8ad9ca31a8372d0c353' }], patches: [ { + name: 'example.com', + type: 'A', comment: 'Domain verification record', content: '198.51.100.4', - name: 'example.com', proxied: true, settings: { ipv4_only: true, ipv6_only: true }, tags: ['owner:dns-team'], ttl: 3600, - type: 'A', id: '023e105f4ecef8ad9ca31a8372d0c353', }, ], posts: [ { + name: 'example.com', + type: 'A', comment: 'Domain verification record', content: '198.51.100.4', - name: 'example.com', proxied: true, settings: { ipv4_only: true, ipv6_only: true }, tags: ['owner:dns-team'], ttl: 3600, - type: 'A', }, ], puts: [ { + name: 'example.com', + type: 'A', comment: 'Domain verification record', content: '198.51.100.4', - name: 'example.com', proxied: true, settings: { ipv4_only: true, ipv6_only: true }, tags: ['owner:dns-team'], ttl: 3600, - type: 'A', id: '023e105f4ecef8ad9ca31a8372d0c353', }, ], @@ -198,6 +204,8 @@ describe('resource records', () => { test.skip('edit: only required params', async () => { const responsePromise = client.dns.records.edit('023e105f4ecef8ad9ca31a8372d0c353', { zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + name: 'example.com', + type: 'A', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -212,14 +220,14 @@ describe('resource records', () => { test.skip('edit: required and optional params', async () => { const response = await client.dns.records.edit('023e105f4ecef8ad9ca31a8372d0c353', { zone_id: '023e105f4ecef8ad9ca31a8372d0c353', + name: 'example.com', + type: 'A', comment: 'Domain verification record', content: '198.51.100.4', - name: 'example.com', proxied: true, settings: { ipv4_only: true, ipv6_only: true }, tags: ['owner:dns-team'], ttl: 3600, - type: 'A', }); }); From 12572438a6a03f6ae08d27eba2d7b2e7f8e843a5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 16:59:51 +0000 Subject: [PATCH 349/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 66a129e66a..e149e74eee 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f0c2158556a520087f99f8ca426379575cf9483312cba61b99e37afab6306fde.yml -openapi_spec_hash: f5e7525b7446e8e536e9f2c9a82f6f5c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-daefd5afc09a1a0fecd6c9cd0e776ee768866938bf9b3f6db2d7345e67be2cc5.yml +openapi_spec_hash: f313d78755bb121fc715d542266f29ad config_hash: 609def1a180087b5109306455be2068d From 152b5f2aa74f95874b052d58233856e2ee405166 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 17:05:23 +0000 Subject: [PATCH 350/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e149e74eee..94a3315126 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-daefd5afc09a1a0fecd6c9cd0e776ee768866938bf9b3f6db2d7345e67be2cc5.yml -openapi_spec_hash: f313d78755bb121fc715d542266f29ad +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9a01f9b1974f27adc356cb6e69657e0dc2d223b547736583a44617902a952ee8.yml +openapi_spec_hash: 13909642ce6452680eb0bf2eaad7d935 config_hash: 609def1a180087b5109306455be2068d From 56af80d23a63499db9668b2401ae1a352d4878fb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 17:10:33 +0000 Subject: [PATCH 351/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 94a3315126..76efed6b22 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9a01f9b1974f27adc356cb6e69657e0dc2d223b547736583a44617902a952ee8.yml -openapi_spec_hash: 13909642ce6452680eb0bf2eaad7d935 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5ce1a09c1177432ee1491d5e22b3740f27850da9c187e56020d97d876ece6b3d.yml +openapi_spec_hash: f44e2a82a3bc9752fc565fe46d0323a5 config_hash: 609def1a180087b5109306455be2068d From 20eb5d26dc65062dbe0995ef014adc1acf12980e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 17:23:54 +0000 Subject: [PATCH 352/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 76efed6b22..32b9759dae 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5ce1a09c1177432ee1491d5e22b3740f27850da9c187e56020d97d876ece6b3d.yml -openapi_spec_hash: f44e2a82a3bc9752fc565fe46d0323a5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b7d4a5b58afe3bbb0ca417ba19a642e17bc64f8ff52f47af93ac192a394af93e.yml +openapi_spec_hash: 2ee6701ea7f1378b467fa1f82ab52767 config_hash: 609def1a180087b5109306455be2068d From 0c1aa1042ca5ed0c94bff151936c3239a9efa715 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 13 Jun 2025 16:04:17 +0000 Subject: [PATCH 353/366] =?UTF-8?q?fix:=20publish=20script=20=E2=80=94=20h?= =?UTF-8?q?andle=20NPM=20errors=20correctly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/publish-npm | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/bin/publish-npm b/bin/publish-npm index 2505decac3..fa2243d248 100644 --- a/bin/publish-npm +++ b/bin/publish-npm @@ -7,15 +7,35 @@ npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN" yarn build cd dist +# Get package name and version from package.json +PACKAGE_NAME="$(jq -r -e '.name' ./package.json)" +VERSION="$(jq -r -e '.version' ./package.json)" + # Get latest version from npm # -# If the package doesn't exist, yarn will return -# {"type":"error","data":"Received invalid response from npm."} -# where .data.version doesn't exist so LAST_VERSION will be an empty string. -LAST_VERSION="$(yarn info --json 2> /dev/null | jq -r '.data.version')" - -# Get current version from package.json -VERSION="$(node -p "require('./package.json').version")" +# If the package doesn't exist, npm will return: +# { +# "error": { +# "code": "E404", +# "summary": "Unpublished on 2025-06-05T09:54:53.528Z", +# "detail": "'the_package' is not in this registry..." +# } +# } +NPM_INFO="$(npm view "$PACKAGE_NAME" version --json 2>/dev/null || true)" + +# Check if we got an E404 error +if echo "$NPM_INFO" | jq -e '.error.code == "E404"' > /dev/null 2>&1; then + # Package doesn't exist yet, no last version + LAST_VERSION="" +elif echo "$NPM_INFO" | jq -e '.error' > /dev/null 2>&1; then + # Report other errors + echo "ERROR: npm returned unexpected data:" + echo "$NPM_INFO" + exit 1 +else + # Success - get the version + LAST_VERSION=$(echo "$NPM_INFO" | jq -r '.') # strip quotes +fi # Check if current version is pre-release (e.g. alpha / beta / rc) CURRENT_IS_PRERELEASE=false From cec7bdec5304a4edcc7c1c62f85a7b1eedcfc38a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 13 Jun 2025 17:52:56 +0000 Subject: [PATCH 354/366] chore(internal): make base APIResource abstract --- scripts/build | 2 +- src/resource.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build b/scripts/build index 4925d5addb..4b9d2438fe 100755 --- a/scripts/build +++ b/scripts/build @@ -28,7 +28,7 @@ fi node scripts/utils/make-dist-package-json.cjs > dist/package.json # build to .js/.mjs/.d.ts files -npm exec tsc-multi +./node_modules/.bin/tsc-multi # copy over handwritten .js/.mjs/.d.ts files cp src/_shims/*.{d.ts,js,mjs,md} dist/_shims cp src/_shims/auto/*.{d.ts,js,mjs} dist/_shims/auto diff --git a/src/resource.ts b/src/resource.ts index 4c88607478..c39f509c9a 100644 --- a/src/resource.ts +++ b/src/resource.ts @@ -2,7 +2,7 @@ import type { Cloudflare } from './index'; -export class APIResource { +export abstract class APIResource { protected _client: Cloudflare; constructor(client: Cloudflare) { From 1e078a4eddfd508089a480dc9788fcb03f0ed068 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 14:48:23 +0000 Subject: [PATCH 355/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 32b9759dae..78881ef6ae 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b7d4a5b58afe3bbb0ca417ba19a642e17bc64f8ff52f47af93ac192a394af93e.yml -openapi_spec_hash: 2ee6701ea7f1378b467fa1f82ab52767 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d70c5c90fa932b491e5a82cc3129e8b5ffe37357eb0f3ff1da3f79bdd25327e8.yml +openapi_spec_hash: a594ce611500408431dc1748d763c115 config_hash: 609def1a180087b5109306455be2068d From efc48f6fdd4fe72171a26ce0b784cac780f2034d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 14:57:06 +0000 Subject: [PATCH 356/366] feat(api): api update --- .stats.yml | 6 +- api.md | 18 +-- src/resources/accounts/accounts.ts | 4 - src/resources/accounts/index.ts | 2 - src/resources/accounts/subscriptions.ts | 14 +-- src/resources/zones/index.ts | 9 +- src/resources/zones/subscriptions.ts | 108 +----------------- src/resources/zones/zones.ts | 18 +-- .../api-resources/zones/subscriptions.test.ts | 54 --------- 9 files changed, 13 insertions(+), 220 deletions(-) delete mode 100644 tests/api-resources/zones/subscriptions.test.ts diff --git a/.stats.yml b/.stats.yml index 78881ef6ae..c685869a09 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 1752 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d70c5c90fa932b491e5a82cc3129e8b5ffe37357eb0f3ff1da3f79bdd25327e8.yml -openapi_spec_hash: a594ce611500408431dc1748d763c115 +configured_endpoints: 1749 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-eb687efe4218a30bb557e3229a32a5a00dea3c1485961b2c54c1442828d01519.yml +openapi_spec_hash: d8a905730da34b5120ca15ceda3f4546 config_hash: 609def1a180087b5109306455be2068d diff --git a/api.md b/api.md index 29401ffe7d..2a5acd93a0 100644 --- a/api.md +++ b/api.md @@ -68,14 +68,12 @@ Methods: Types: -- SubscriptionCreateResponse -- SubscriptionUpdateResponse - SubscriptionDeleteResponse Methods: -- client.accounts.subscriptions.create({ ...params }) -> SubscriptionCreateResponse -- client.accounts.subscriptions.update(subscriptionIdentifier, { ...params }) -> SubscriptionUpdateResponse +- client.accounts.subscriptions.create({ ...params }) -> Subscription +- client.accounts.subscriptions.update(subscriptionIdentifier, { ...params }) -> Subscription - client.accounts.subscriptions.delete(subscriptionIdentifier, { ...params }) -> SubscriptionDeleteResponse - client.accounts.subscriptions.get({ ...params }) -> SubscriptionsSinglePage @@ -394,18 +392,6 @@ Methods: ## Subscriptions -Types: - -- SubscriptionCreateResponse -- SubscriptionUpdateResponse -- SubscriptionGetResponse - -Methods: - -- client.zones.subscriptions.create(identifier, { ...params }) -> SubscriptionCreateResponse -- client.zones.subscriptions.update(identifier, { ...params }) -> SubscriptionUpdateResponse -- client.zones.subscriptions.get(identifier) -> SubscriptionGetResponse - ## Plans Types: diff --git a/src/resources/accounts/accounts.ts b/src/resources/accounts/accounts.ts index 4a92f66f1e..2280ee94f7 100644 --- a/src/resources/accounts/accounts.ts +++ b/src/resources/accounts/accounts.ts @@ -19,12 +19,10 @@ import { RoleGetParams, RoleListParams, Roles } from './roles'; import * as SubscriptionsAPI from './subscriptions'; import { SubscriptionCreateParams, - SubscriptionCreateResponse, SubscriptionDeleteParams, SubscriptionDeleteResponse, SubscriptionGetParams, SubscriptionUpdateParams, - SubscriptionUpdateResponse, Subscriptions, } from './subscriptions'; import * as LogsAPI from './logs/logs'; @@ -340,8 +338,6 @@ export declare namespace Accounts { export { Subscriptions as Subscriptions, - type SubscriptionCreateResponse as SubscriptionCreateResponse, - type SubscriptionUpdateResponse as SubscriptionUpdateResponse, type SubscriptionDeleteResponse as SubscriptionDeleteResponse, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, diff --git a/src/resources/accounts/index.ts b/src/resources/accounts/index.ts index 4541b330ac..ed7b422339 100644 --- a/src/resources/accounts/index.ts +++ b/src/resources/accounts/index.ts @@ -15,8 +15,6 @@ export { export { Roles, type RoleListParams, type RoleGetParams } from './roles'; export { Subscriptions, - type SubscriptionCreateResponse, - type SubscriptionUpdateResponse, type SubscriptionDeleteResponse, type SubscriptionCreateParams, type SubscriptionUpdateParams, diff --git a/src/resources/accounts/subscriptions.ts b/src/resources/accounts/subscriptions.ts index 6f5dfd3257..7ddeb5e440 100644 --- a/src/resources/accounts/subscriptions.ts +++ b/src/resources/accounts/subscriptions.ts @@ -20,11 +20,11 @@ export class Subscriptions extends APIResource { create( params: SubscriptionCreateParams, options?: Core.RequestOptions, - ): Core.APIPromise { + ): Core.APIPromise { const { account_id, ...body } = params; return ( this._client.post(`/accounts/${account_id}/subscriptions`, { body, ...options }) as Core.APIPromise<{ - result: SubscriptionCreateResponse; + result: Shared.Subscription; }> )._thenUnwrap((obj) => obj.result); } @@ -45,13 +45,13 @@ export class Subscriptions extends APIResource { subscriptionIdentifier: string, params: SubscriptionUpdateParams, options?: Core.RequestOptions, - ): Core.APIPromise { + ): Core.APIPromise { const { account_id, ...body } = params; return ( this._client.put(`/accounts/${account_id}/subscriptions/${subscriptionIdentifier}`, { body, ...options, - }) as Core.APIPromise<{ result: SubscriptionUpdateResponse }> + }) as Core.APIPromise<{ result: Shared.Subscription }> )._thenUnwrap((obj) => obj.result); } @@ -103,10 +103,6 @@ export class Subscriptions extends APIResource { } } -export type SubscriptionCreateResponse = unknown | string | null; - -export type SubscriptionUpdateResponse = unknown | string | null; - export interface SubscriptionDeleteResponse { /** * Subscription identifier tag. @@ -164,8 +160,6 @@ export interface SubscriptionGetParams { export declare namespace Subscriptions { export { - type SubscriptionCreateResponse as SubscriptionCreateResponse, - type SubscriptionUpdateResponse as SubscriptionUpdateResponse, type SubscriptionDeleteResponse as SubscriptionDeleteResponse, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, diff --git a/src/resources/zones/index.ts b/src/resources/zones/index.ts index db4835fceb..0f3224682b 100644 --- a/src/resources/zones/index.ts +++ b/src/resources/zones/index.ts @@ -91,12 +91,5 @@ export { type SettingEditParams, type SettingGetParams, } from './settings'; -export { - Subscriptions, - type SubscriptionCreateResponse, - type SubscriptionUpdateResponse, - type SubscriptionGetResponse, - type SubscriptionCreateParams, - type SubscriptionUpdateParams, -} from './subscriptions'; +export { Subscriptions } from './subscriptions'; export { Zones } from './zones'; diff --git a/src/resources/zones/subscriptions.ts b/src/resources/zones/subscriptions.ts index 26986113af..42d6ea9ea6 100644 --- a/src/resources/zones/subscriptions.ts +++ b/src/resources/zones/subscriptions.ts @@ -1,111 +1,5 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../../resource'; -import * as Core from '../../core'; -import * as Shared from '../shared'; -export class Subscriptions extends APIResource { - /** - * Create a zone subscription, either plan or add-ons. - * - * @example - * ```ts - * const subscription = - * await client.zones.subscriptions.create( - * '506e3185e9c882d175a2d0cb0093d9f2', - * ); - * ``` - */ - create( - identifier: string, - body: SubscriptionCreateParams, - options?: Core.RequestOptions, - ): Core.APIPromise { - return ( - this._client.post(`/zones/${identifier}/subscription`, { body, ...options }) as Core.APIPromise<{ - result: SubscriptionCreateResponse; - }> - )._thenUnwrap((obj) => obj.result); - } - - /** - * Updates zone subscriptions, either plan or add-ons. - * - * @example - * ```ts - * const subscription = - * await client.zones.subscriptions.update( - * '506e3185e9c882d175a2d0cb0093d9f2', - * ); - * ``` - */ - update( - identifier: string, - body: SubscriptionUpdateParams, - options?: Core.RequestOptions, - ): Core.APIPromise { - return ( - this._client.put(`/zones/${identifier}/subscription`, { body, ...options }) as Core.APIPromise<{ - result: SubscriptionUpdateResponse; - }> - )._thenUnwrap((obj) => obj.result); - } - - /** - * Lists zone subscription details. - * - * @example - * ```ts - * const subscription = await client.zones.subscriptions.get( - * '506e3185e9c882d175a2d0cb0093d9f2', - * ); - * ``` - */ - get(identifier: string, options?: Core.RequestOptions): Core.APIPromise { - return ( - this._client.get(`/zones/${identifier}/subscription`, options) as Core.APIPromise<{ - result: SubscriptionGetResponse; - }> - )._thenUnwrap((obj) => obj.result); - } -} - -export type SubscriptionCreateResponse = unknown | string | null; - -export type SubscriptionUpdateResponse = unknown | string | null; - -export type SubscriptionGetResponse = unknown | string | null; - -export interface SubscriptionCreateParams { - /** - * How often the subscription is renewed automatically. - */ - frequency?: 'weekly' | 'monthly' | 'quarterly' | 'yearly'; - - /** - * The rate plan applied to the subscription. - */ - rate_plan?: Shared.RatePlanParam; -} - -export interface SubscriptionUpdateParams { - /** - * How often the subscription is renewed automatically. - */ - frequency?: 'weekly' | 'monthly' | 'quarterly' | 'yearly'; - - /** - * The rate plan applied to the subscription. - */ - rate_plan?: Shared.RatePlanParam; -} - -export declare namespace Subscriptions { - export { - type SubscriptionCreateResponse as SubscriptionCreateResponse, - type SubscriptionUpdateResponse as SubscriptionUpdateResponse, - type SubscriptionGetResponse as SubscriptionGetResponse, - type SubscriptionCreateParams as SubscriptionCreateParams, - type SubscriptionUpdateParams as SubscriptionUpdateParams, - }; -} +export class Subscriptions extends APIResource {} diff --git a/src/resources/zones/zones.ts b/src/resources/zones/zones.ts index ba8ab4549a..2a84e7f2a6 100644 --- a/src/resources/zones/zones.ts +++ b/src/resources/zones/zones.ts @@ -94,14 +94,7 @@ import { ZeroRTT, } from './settings'; import * as SubscriptionsAPI from './subscriptions'; -import { - SubscriptionCreateParams, - SubscriptionCreateResponse, - SubscriptionGetResponse, - SubscriptionUpdateParams, - SubscriptionUpdateResponse, - Subscriptions, -} from './subscriptions'; +import { Subscriptions } from './subscriptions'; import { V4PagePaginationArray, type V4PagePaginationArrayParams } from '../../pagination'; export class Zones extends APIResource { @@ -752,14 +745,7 @@ export declare namespace Zones { type HoldGetParams as HoldGetParams, }; - export { - Subscriptions as Subscriptions, - type SubscriptionCreateResponse as SubscriptionCreateResponse, - type SubscriptionUpdateResponse as SubscriptionUpdateResponse, - type SubscriptionGetResponse as SubscriptionGetResponse, - type SubscriptionCreateParams as SubscriptionCreateParams, - type SubscriptionUpdateParams as SubscriptionUpdateParams, - }; + export { Subscriptions as Subscriptions }; export { Plans as Plans, diff --git a/tests/api-resources/zones/subscriptions.test.ts b/tests/api-resources/zones/subscriptions.test.ts deleted file mode 100644 index 89e171b005..0000000000 --- a/tests/api-resources/zones/subscriptions.test.ts +++ /dev/null @@ -1,54 +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 subscriptions', () => { - test('create', async () => { - const responsePromise = client.zones.subscriptions.create('506e3185e9c882d175a2d0cb0093d9f2', {}); - 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('update', async () => { - const responsePromise = client.zones.subscriptions.update('506e3185e9c882d175a2d0cb0093d9f2', {}); - 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', async () => { - const responsePromise = client.zones.subscriptions.get('506e3185e9c882d175a2d0cb0093d9f2'); - 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: 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.zones.subscriptions.get('506e3185e9c882d175a2d0cb0093d9f2', { - path: '/_stainless_unknown_path', - }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); From ebc6cff593f93112cc7ca3ad53a901ebd89fc113 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 15:19:41 +0000 Subject: [PATCH 357/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c685869a09..ca143fa6b6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1749 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-eb687efe4218a30bb557e3229a32a5a00dea3c1485961b2c54c1442828d01519.yml -openapi_spec_hash: d8a905730da34b5120ca15ceda3f4546 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c5efe36b7da29689ae8e21bb156cbd1c8f6806ab8d8ac68de98c48d3de90352e.yml +openapi_spec_hash: 0678d78dbc78ffc48cc65d40039230b9 config_hash: 609def1a180087b5109306455be2068d From 771b7e9688dc59aa58e6be11365630233dcba9b3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 15:22:59 +0000 Subject: [PATCH 358/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ca143fa6b6..40558a3cc7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1749 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c5efe36b7da29689ae8e21bb156cbd1c8f6806ab8d8ac68de98c48d3de90352e.yml -openapi_spec_hash: 0678d78dbc78ffc48cc65d40039230b9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7ec1d465bce43210f07a3033c95e96018513d18e2d881189896a967407e5c7e4.yml +openapi_spec_hash: fe35c407b704bba2e853ccb9264c8b83 config_hash: 609def1a180087b5109306455be2068d From 322930a3199375024249eb225dba8fc005ac637e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 16:00:44 +0000 Subject: [PATCH 359/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 40558a3cc7..8746f66930 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1749 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7ec1d465bce43210f07a3033c95e96018513d18e2d881189896a967407e5c7e4.yml -openapi_spec_hash: fe35c407b704bba2e853ccb9264c8b83 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2b74cb3fafbdf392466ad99844a3c45d719206cc426fef21e832922c2fcea209.yml +openapi_spec_hash: fc90b7e9d24761e918e2b12db83d37c5 config_hash: 609def1a180087b5109306455be2068d From cf3845ead8bb48d83c21077e1fab834f4c983022 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 16:04:39 +0000 Subject: [PATCH 360/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8746f66930..40558a3cc7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1749 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2b74cb3fafbdf392466ad99844a3c45d719206cc426fef21e832922c2fcea209.yml -openapi_spec_hash: fc90b7e9d24761e918e2b12db83d37c5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7ec1d465bce43210f07a3033c95e96018513d18e2d881189896a967407e5c7e4.yml +openapi_spec_hash: fe35c407b704bba2e853ccb9264c8b83 config_hash: 609def1a180087b5109306455be2068d From 77ac8f82a877881421a2c6e47108451895d4cc44 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 16:10:09 +0000 Subject: [PATCH 361/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 40558a3cc7..353d20ada7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1749 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7ec1d465bce43210f07a3033c95e96018513d18e2d881189896a967407e5c7e4.yml -openapi_spec_hash: fe35c407b704bba2e853ccb9264c8b83 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a161ad63256bd80228393f3c3d8378a805d9faf3af49f399ad99151991ab049b.yml +openapi_spec_hash: f2f341a4c13f2ba128b7cebf06a478ef config_hash: 609def1a180087b5109306455be2068d From d152126334d86b1b8b9013649a8bcaab9143e5a4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 16:14:57 +0000 Subject: [PATCH 362/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 353d20ada7..8746f66930 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1749 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a161ad63256bd80228393f3c3d8378a805d9faf3af49f399ad99151991ab049b.yml -openapi_spec_hash: f2f341a4c13f2ba128b7cebf06a478ef +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2b74cb3fafbdf392466ad99844a3c45d719206cc426fef21e832922c2fcea209.yml +openapi_spec_hash: fc90b7e9d24761e918e2b12db83d37c5 config_hash: 609def1a180087b5109306455be2068d From 2a5bea7772fe9601612dd654d27b985de192da12 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 16:17:46 +0000 Subject: [PATCH 363/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8746f66930..353d20ada7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1749 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2b74cb3fafbdf392466ad99844a3c45d719206cc426fef21e832922c2fcea209.yml -openapi_spec_hash: fc90b7e9d24761e918e2b12db83d37c5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a161ad63256bd80228393f3c3d8378a805d9faf3af49f399ad99151991ab049b.yml +openapi_spec_hash: f2f341a4c13f2ba128b7cebf06a478ef config_hash: 609def1a180087b5109306455be2068d From 691036af1c22a569a98bcff42e8685fe64cba9f1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 16:20:24 +0000 Subject: [PATCH 364/366] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 353d20ada7..da33679f0e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1749 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a161ad63256bd80228393f3c3d8378a805d9faf3af49f399ad99151991ab049b.yml -openapi_spec_hash: f2f341a4c13f2ba128b7cebf06a478ef +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-887425a86ebb666a1808471f4eb4c44730a7376820f8427f4d913079def00917.yml +openapi_spec_hash: 83243c9ee06f88d0fa91e9b185d8a42e config_hash: 609def1a180087b5109306455be2068d From 40aefb4d17b7b4aa41bd600d4b1a04888830c7aa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 17:54:50 +0000 Subject: [PATCH 365/366] chore(api): Fix config indentation --- .stats.yml | 4 ++-- api.md | 2 +- .../addressing/address-maps/address-maps.ts | 4 ++-- src/resources/ips.ts | 12 ++++++++---- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.stats.yml b/.stats.yml index da33679f0e..b78433dccc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1749 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-887425a86ebb666a1808471f4eb4c44730a7376820f8427f4d913079def00917.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b15b44e0efd207de48e7e74e742b0b4b190c74f12a941a1a0ef59a51656a5224.yml openapi_spec_hash: 83243c9ee06f88d0fa91e9b185d8a42e -config_hash: 609def1a180087b5109306455be2068d +config_hash: d0ab46f06dbe6f6e33d86a3ede15ac44 diff --git a/api.md b/api.md index 2a5acd93a0..0cc019c7e9 100644 --- a/api.md +++ b/api.md @@ -142,7 +142,7 @@ Methods: Types: -- IPs +- IPsArray - IPListResponse Methods: diff --git a/src/resources/addressing/address-maps/address-maps.ts b/src/resources/addressing/address-maps/address-maps.ts index 5a6bc772c1..c883305809 100644 --- a/src/resources/addressing/address-maps/address-maps.ts +++ b/src/resources/addressing/address-maps/address-maps.ts @@ -245,7 +245,7 @@ export interface AddressMapCreateResponse { /** * The set of IPs on the Address Map. */ - ips?: IPsAPI.IPs; + ips?: IPsAPI.IPsArray; /** * Zones and Accounts which will be assigned IPs on this Address Map. A zone @@ -390,7 +390,7 @@ export interface AddressMapGetResponse { /** * The set of IPs on the Address Map. */ - ips?: IPsAPI.IPs; + ips?: IPsAPI.IPsArray; /** * Zones and Accounts which will be assigned IPs on this Address Map. A zone diff --git a/src/resources/ips.ts b/src/resources/ips.ts index b413c5d462..edd5e473d6 100644 --- a/src/resources/ips.ts +++ b/src/resources/ips.ts @@ -29,10 +29,10 @@ export class IPs extends APIResource { /** * The set of IPs on the Address Map. */ -export type IPs = Array; +export type IPsArray = Array; -export namespace IPs { - export interface IPItem { +export namespace IPsArray { + export interface IPsArrayItem { created_at?: string; /** @@ -93,5 +93,9 @@ export interface IPListParams { } export declare namespace IPs { - export { type IPs as IPs, type IPListResponse as IPListResponse, type IPListParams as IPListParams }; + export { + type IPsArray as IPsArray, + type IPListResponse as IPListResponse, + type IPListParams as IPListParams, + }; } From b41a56671f1b01a2777f71a0349cc22d80959c6a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 17:56:43 +0000 Subject: [PATCH 366/366] release: 4.4.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 66 +++++++++++++++++++++++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 69 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 83f9eb8041..fb1f343c6a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.3.0" + ".": "4.4.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f1fc191e9..7dc3098276 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,71 @@ # Changelog +## 4.4.0 (2025-06-16) + +Full Changelog: [v4.3.0...v4.4.0](https://github.com/cloudflare/cloudflare-typescript/compare/v4.3.0...v4.4.0) + +### Features + +* **api:** Add IAM User Groups and AutoRAG ([ddaa2cf](https://github.com/cloudflare/cloudflare-typescript/commit/ddaa2cfc78cc02d7afdba6c3d6f3a88281a2d14f)) +* **api:** Add new bulk deletion endpoint for ZT infra targets ([9f1c3d4](https://github.com/cloudflare/cloudflare-typescript/commit/9f1c3d4b59370f75d441fe4166f67a54479d517f)) +* **api:** api update ([efc48f6](https://github.com/cloudflare/cloudflare-typescript/commit/efc48f6fdd4fe72171a26ce0b784cac780f2034d)) +* **api:** api update ([b1b9980](https://github.com/cloudflare/cloudflare-typescript/commit/b1b9980d87153b5fdac03f48b635f78a4b83979b)) +* **api:** api update ([206e4c0](https://github.com/cloudflare/cloudflare-typescript/commit/206e4c0158c2d9238febbd2e0b9159f7d9be2e3e)) +* **api:** api update ([b77b145](https://github.com/cloudflare/cloudflare-typescript/commit/b77b145dd606d943ed12444920fb0f344dcd602c)) +* **api:** api update ([4e21d4c](https://github.com/cloudflare/cloudflare-typescript/commit/4e21d4c5da8feff6316c9fc7a9484eda858e68f9)) +* **api:** api update ([7d60f61](https://github.com/cloudflare/cloudflare-typescript/commit/7d60f6140925e6adea5b0d2fc7a05da09f97fe76)) +* **api:** api update ([27a3eea](https://github.com/cloudflare/cloudflare-typescript/commit/27a3eeabb4535e6980efd8bd4f5ab083959abdfb)) +* **api:** api update ([ed6dbd8](https://github.com/cloudflare/cloudflare-typescript/commit/ed6dbd8843321f442092afc3e536a0ed32291473)) +* **api:** api update ([bddd0eb](https://github.com/cloudflare/cloudflare-typescript/commit/bddd0eb6bacaf3403d3386fc073e5b3004bbe07a)) +* **api:** api update ([62cde77](https://github.com/cloudflare/cloudflare-typescript/commit/62cde779962b9692ffa04a486b69cfacd4a9d84f)) +* **api:** api update ([2d6d5cc](https://github.com/cloudflare/cloudflare-typescript/commit/2d6d5cc98daeb7a9c298cbb93987ae36fe5ed96f)) +* **api:** api update ([b88ab0f](https://github.com/cloudflare/cloudflare-typescript/commit/b88ab0f8baf3a3f84a51e24735358e39612d8f81)) +* **api:** api update ([5e19ba4](https://github.com/cloudflare/cloudflare-typescript/commit/5e19ba487c86a07d7b09092ad3bc191f86dd299e)) +* **api:** api update ([7066108](https://github.com/cloudflare/cloudflare-typescript/commit/7066108f8ef1dcef666e568095f0ee3ad3bfbf7b)) +* **api:** api update ([e51ec4c](https://github.com/cloudflare/cloudflare-typescript/commit/e51ec4c7be26a3e2ea3f4e5ca842ea8f6db09aeb)) +* **api:** api update ([5e215f7](https://github.com/cloudflare/cloudflare-typescript/commit/5e215f79760b00b05d68284571a23632505e61bb)) +* **api:** api update ([3fccd42](https://github.com/cloudflare/cloudflare-typescript/commit/3fccd425904549f4b290d661ee5cf474c894a59e)) +* **api:** api update ([6e67cdf](https://github.com/cloudflare/cloudflare-typescript/commit/6e67cdf4b0edf9523197d8d1cad4db30b0a8e3cb)) +* **api:** api update ([1b47452](https://github.com/cloudflare/cloudflare-typescript/commit/1b474529e2697b665de6f6c8188071708e17a1d5)) +* **api:** api update ([354969e](https://github.com/cloudflare/cloudflare-typescript/commit/354969e0a67d500c488aecd7354090c6192ecab4)) +* **api:** api update ([d6ffe16](https://github.com/cloudflare/cloudflare-typescript/commit/d6ffe16c1af6156a20d82d458c453402d8c8dc57)) +* **api:** api update ([1e91d99](https://github.com/cloudflare/cloudflare-typescript/commit/1e91d99150f987c95915c2f523faec1797a4c90c)) +* **api:** api update ([3306019](https://github.com/cloudflare/cloudflare-typescript/commit/33060199368d7a1063738e8dea35ae58c3268f1e)) +* **api:** api update ([fdff247](https://github.com/cloudflare/cloudflare-typescript/commit/fdff2476b64d0b7007bc0f940e78f2b6f341ad12)) +* **api:** api update ([31bc9f7](https://github.com/cloudflare/cloudflare-typescript/commit/31bc9f701eab7093794171e283c388ea9d7306b2)) +* **api:** api update ([f39cf09](https://github.com/cloudflare/cloudflare-typescript/commit/f39cf0988a0e3025f1b6263efa4859fc8cda2030)) +* **api:** api update ([f51f6f7](https://github.com/cloudflare/cloudflare-typescript/commit/f51f6f7ae6e0607a869568ec5a30be9140660dbd)) +* **api:** api update ([feaacff](https://github.com/cloudflare/cloudflare-typescript/commit/feaacff96f3a15b1423f36404dde70c3bfd5f640)) +* **api:** api update ([8e8267d](https://github.com/cloudflare/cloudflare-typescript/commit/8e8267d4abe86e776308dd4326f164fcf19517b4)) +* **api:** api update ([eb3c9e2](https://github.com/cloudflare/cloudflare-typescript/commit/eb3c9e26f677992aecd01a2cd91592cb1d011bb3)) +* **api:** api update ([3cfe5e2](https://github.com/cloudflare/cloudflare-typescript/commit/3cfe5e2f4eff4075e5f9326def78bde1835b19fd)) +* **api:** api update ([251f100](https://github.com/cloudflare/cloudflare-typescript/commit/251f100038aecf8cfab3c3f1cad4ee5560f77751)) +* **api:** fix account ID types ([e18e7f0](https://github.com/cloudflare/cloudflare-typescript/commit/e18e7f0bf62b971683564989cf071c8cf1a98c12)) +* **infrastructure_targets:** swap DELETE handler to new endpoint ([cccb606](https://github.com/cloudflare/cloudflare-typescript/commit/cccb606007e5fb4d982c92a1c6d6c89a5e73398b)) + + +### Bug Fixes + +* add back kv.namespaces bulk methods ([d9218c8](https://github.com/cloudflare/cloudflare-typescript/commit/d9218c88c04916fadf473d618a272b6e39042e3d)) +* add missing properties ([289d3da](https://github.com/cloudflare/cloudflare-typescript/commit/289d3daabe1c5888872ffb17bd8b5cb64ed35f77)) +* **AI:** Add explicit variant names for union types ([9a0b96d](https://github.com/cloudflare/cloudflare-typescript/commit/9a0b96d03e8a5bacfa0af276c4d4bf6498b373ad)) +* **api:** 'name' and 'type' are required on dns_record ([113bfec](https://github.com/cloudflare/cloudflare-typescript/commit/113bfecc28ff9a3a7575565f4d1d9f66977de3f7)) +* **config:** Diagnostic errors ([383f29e](https://github.com/cloudflare/cloudflare-typescript/commit/383f29e10a2baeb84fc849a93d1275bb377d04dc)) +* **DLP:** Add explicit variant names ([557a827](https://github.com/cloudflare/cloudflare-typescript/commit/557a827cadd9d9b85ed8181bea5f9271cc0eeaec)) +* publish script — handle NPM errors correctly ([0c1aa10](https://github.com/cloudflare/cloudflare-typescript/commit/0c1aa1042ca5ed0c94bff151936c3239a9efa715)) +* **types:** generate missing types ([7e6a67f](https://github.com/cloudflare/cloudflare-typescript/commit/7e6a67ffc4bc5826673e5b8a42f666f87beb0de5)) +* **workers:** send multipart as json ([27be8af](https://github.com/cloudflare/cloudflare-typescript/commit/27be8af7f8811283a75d0438e7f94b2dcbae355e)) + + +### Chores + +* **api:** Fix config indentation ([40aefb4](https://github.com/cloudflare/cloudflare-typescript/commit/40aefb4d17b7b4aa41bd600d4b1a04888830c7aa)) +* **api:** Fix edge IPs variant names ([73bf59d](https://github.com/cloudflare/cloudflare-typescript/commit/73bf59df4494fddacee5992d0b7f6d12fd4a56bd)) +* **api:** mark some methods as deprecated ([d9a9e71](https://github.com/cloudflare/cloudflare-typescript/commit/d9a9e718cf519c944d0242b54c2aa0502538bec1)) +* **docs:** use top-level-await in example snippets ([faf2d8e](https://github.com/cloudflare/cloudflare-typescript/commit/faf2d8e953f148fd7f9ea749b1b869cd88f8b0cc)) +* improve publish-npm script --latest tag logic ([438a2ee](https://github.com/cloudflare/cloudflare-typescript/commit/438a2ee6cf7563a53d7ef998f2c6df5a34039ae8)) +* **internal:** make base APIResource abstract ([cec7bde](https://github.com/cloudflare/cloudflare-typescript/commit/cec7bdec5304a4edcc7c1c62f85a7b1eedcfc38a)) + ## 4.3.0 (2025-05-21) Full Changelog: [v4.2.0...v4.3.0](https://github.com/cloudflare/cloudflare-typescript/compare/v4.2.0...v4.3.0) diff --git a/package.json b/package.json index 2225f1d944..d77ba54c61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cloudflare", - "version": "4.3.0", + "version": "4.4.0", "description": "The official TypeScript library for the Cloudflare API", "author": "Cloudflare ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index e743242b84..8ab25148f0 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.3.0'; // x-release-please-version +export const VERSION = '4.4.0'; // x-release-please-version