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