From baacf2aa2addcfee67781d9562c74955d50ab1a4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 27 Feb 2024 10:35:21 +0000 Subject: [PATCH] feat: OpenAPI spec update via Stainless API (#85) --- .stats.yml | 2 +- api.md | 112 ----------- src/resources/radar/as112/as112.ts | 7 + src/resources/radar/as112/summary.ts | 42 ++++ .../radar/as112/timeseries-groups.ts | 42 ++++ src/resources/radar/as112/top.ts | 28 +++ src/resources/radar/attacks/layer3/layer3.ts | 7 + src/resources/radar/attacks/layer3/summary.ts | 42 ++++ .../radar/attacks/layer3/timeseries-groups.ts | 56 ++++++ .../radar/attacks/layer3/top/locations.ts | 14 ++ src/resources/radar/attacks/layer3/top/top.ts | 21 ++ src/resources/radar/attacks/layer7/layer7.ts | 7 + src/resources/radar/attacks/layer7/summary.ts | 42 ++++ .../radar/attacks/layer7/timeseries-groups.ts | 56 ++++++ .../radar/attacks/layer7/top/ases.ts | 7 + .../radar/attacks/layer7/top/locations.ts | 14 ++ src/resources/radar/attacks/layer7/top/top.ts | 21 ++ src/resources/radar/connection-tampering.ts | 14 ++ src/resources/radar/dns/top.ts | 14 ++ src/resources/radar/email/security/summary.ts | 131 ++++--------- .../radar/email/security/timeseries-groups.ts | 131 ++++--------- .../radar/email/security/top/ases/arc.ts | 176 +---------------- .../radar/email/security/top/ases/ases.ts | 183 ----------------- .../radar/email/security/top/ases/dkim.ts | 176 +---------------- .../radar/email/security/top/ases/dmarc.ts | 176 +---------------- .../radar/email/security/top/ases/index.ts | 14 +- .../email/security/top/ases/malicious.ts | 184 +----------------- .../radar/email/security/top/ases/spam.ts | 181 +---------------- .../radar/email/security/top/ases/spf.ts | 176 +---------------- .../radar/email/security/top/index.ts | 4 +- .../radar/email/security/top/locations/arc.ts | 176 +---------------- .../email/security/top/locations/dkim.ts | 176 +---------------- .../email/security/top/locations/dmarc.ts | 176 +---------------- .../email/security/top/locations/index.ts | 14 +- .../email/security/top/locations/locations.ts | 183 ----------------- .../email/security/top/locations/malicious.ts | 184 +----------------- .../email/security/top/locations/spam.ts | 181 +---------------- .../radar/email/security/top/locations/spf.ts | 176 +---------------- src/resources/radar/email/security/top/top.ts | 4 - src/resources/radar/http/ases/ases.ts | 7 + src/resources/radar/http/ases/bot-class.ts | 7 + src/resources/radar/http/ases/device-type.ts | 7 + src/resources/radar/http/ases/http-method.ts | 7 + .../radar/http/ases/http-protocol.ts | 7 + src/resources/radar/http/ases/ip-version.ts | 7 + src/resources/radar/http/ases/os.ts | 7 + src/resources/radar/http/ases/tls-version.ts | 7 + .../radar/http/locations/bot-class.ts | 7 + .../radar/http/locations/device-type.ts | 7 + .../radar/http/locations/http-method.ts | 7 + .../radar/http/locations/http-protocol.ts | 7 + .../radar/http/locations/ip-version.ts | 7 + .../radar/http/locations/locations.ts | 7 + src/resources/radar/http/locations/os.ts | 7 + .../radar/http/locations/tls-version.ts | 7 + src/resources/radar/http/summary.ts | 49 +++++ src/resources/radar/http/timeseries-groups.ts | 63 ++++++ src/resources/radar/http/top.ts | 14 ++ src/resources/radar/netflows/netflows.ts | 7 + src/resources/radar/netflows/top.ts | 14 ++ src/resources/radar/quality/speed/speed.ts | 14 ++ src/resources/radar/quality/speed/top.ts | 14 ++ src/resources/radar/verified-bots/top.ts | 14 ++ tests/api-resources/radar/as112/as112.test.ts | 1 + .../api-resources/radar/as112/summary.test.ts | 6 + .../radar/as112/timeseries-groups.test.ts | 6 + tests/api-resources/radar/as112/top.test.ts | 4 + .../radar/attacks/layer3/layer3.test.ts | 1 + .../radar/attacks/layer3/summary.test.ts | 6 + .../attacks/layer3/timeseries-groups.test.ts | 8 + .../attacks/layer3/top/locations.test.ts | 2 + .../radar/attacks/layer3/top/top.test.ts | 3 + .../radar/attacks/layer7/layer7.test.ts | 1 + .../radar/attacks/layer7/summary.test.ts | 6 + .../attacks/layer7/timeseries-groups.test.ts | 8 + .../radar/attacks/layer7/top/ases.test.ts | 1 + .../attacks/layer7/top/locations.test.ts | 2 + .../radar/attacks/layer7/top/top.test.ts | 3 + .../radar/connection-tampering.test.ts | 2 + tests/api-resources/radar/dns/top.test.ts | 2 + .../radar/email/security/summary.test.ts | 21 +- .../email/security/timeseries-groups.test.ts | 21 +- .../radar/email/security/top/ases/arc.test.ts | 59 ------ .../email/security/top/ases/ases.test.ts | 59 ------ .../email/security/top/ases/dkim.test.ts | 59 ------ .../email/security/top/ases/dmarc.test.ts | 59 ------ .../email/security/top/ases/malicious.test.ts | 62 ------ .../email/security/top/ases/spam.test.ts | 60 ------ .../radar/email/security/top/ases/spf.test.ts | 59 ------ .../email/security/top/locations/arc.test.ts | 59 ------ .../email/security/top/locations/dkim.test.ts | 59 ------ .../security/top/locations/dmarc.test.ts | 59 ------ .../security/top/locations/locations.test.ts | 59 ------ .../security/top/locations/malicious.test.ts | 62 ------ .../email/security/top/locations/spam.test.ts | 60 ------ .../email/security/top/locations/spf.test.ts | 59 ------ .../radar/http/ases/ases.test.ts | 1 + .../radar/http/ases/bot-class.test.ts | 1 + .../radar/http/ases/device-type.test.ts | 1 + .../radar/http/ases/http-method.test.ts | 1 + .../radar/http/ases/http-protocol.test.ts | 1 + .../radar/http/ases/ip-version.test.ts | 1 + .../api-resources/radar/http/ases/os.test.ts | 1 + .../radar/http/ases/tls-version.test.ts | 1 + .../radar/http/locations/bot-class.test.ts | 1 + .../radar/http/locations/device-type.test.ts | 1 + .../radar/http/locations/http-method.test.ts | 1 + .../http/locations/http-protocol.test.ts | 1 + .../radar/http/locations/ip-version.test.ts | 1 + .../radar/http/locations/locations.test.ts | 1 + .../radar/http/locations/os.test.ts | 1 + .../radar/http/locations/tls-version.test.ts | 1 + .../api-resources/radar/http/summary.test.ts | 7 + .../radar/http/timeseries-groups.test.ts | 9 + tests/api-resources/radar/http/top.test.ts | 2 + .../radar/netflows/netflows.test.ts | 1 + .../api-resources/radar/netflows/top.test.ts | 2 + .../radar/quality/speed/speed.test.ts | 2 + .../radar/quality/speed/top.test.ts | 2 + .../radar/verified-bots/top.test.ts | 2 + 120 files changed, 951 insertions(+), 3681 deletions(-) delete mode 100644 tests/api-resources/radar/email/security/top/ases/arc.test.ts delete mode 100644 tests/api-resources/radar/email/security/top/ases/ases.test.ts delete mode 100644 tests/api-resources/radar/email/security/top/ases/dkim.test.ts delete mode 100644 tests/api-resources/radar/email/security/top/ases/dmarc.test.ts delete mode 100644 tests/api-resources/radar/email/security/top/ases/malicious.test.ts delete mode 100644 tests/api-resources/radar/email/security/top/ases/spam.test.ts delete mode 100644 tests/api-resources/radar/email/security/top/ases/spf.test.ts delete mode 100644 tests/api-resources/radar/email/security/top/locations/arc.test.ts delete mode 100644 tests/api-resources/radar/email/security/top/locations/dkim.test.ts delete mode 100644 tests/api-resources/radar/email/security/top/locations/dmarc.test.ts delete mode 100644 tests/api-resources/radar/email/security/top/locations/locations.test.ts delete mode 100644 tests/api-resources/radar/email/security/top/locations/malicious.test.ts delete mode 100644 tests/api-resources/radar/email/security/top/locations/spam.test.ts delete mode 100644 tests/api-resources/radar/email/security/top/locations/spf.test.ts diff --git a/.stats.yml b/.stats.yml index 0a0068803e..3336fc5549 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1 +1 @@ -configured_endpoints: 1249 +configured_endpoints: 1235 diff --git a/api.md b/api.md index fc64a09937..3918c67f52 100644 --- a/api.md +++ b/api.md @@ -5488,144 +5488,32 @@ Methods: ##### Ases -Types: - -- AseGetResponse - -Methods: - -- client.radar.email.security.top.ases.get({ ...params }) -> AseGetResponse - ###### ARC -Types: - -- ARCGetResponse - -Methods: - -- client.radar.email.security.top.ases.arc.get(arc, { ...params }) -> ARCGetResponse - ###### DKIM -Types: - -- DKIMGetResponse - -Methods: - -- client.radar.email.security.top.ases.dkim.get(dkim, { ...params }) -> DKIMGetResponse - ###### DMARC -Types: - -- DMARCGetResponse - -Methods: - -- client.radar.email.security.top.ases.dmarc.get(dmarc, { ...params }) -> DMARCGetResponse - ###### Malicious -Types: - -- MaliciousGetResponse - -Methods: - -- client.radar.email.security.top.ases.malicious.get(malicious, { ...params }) -> MaliciousGetResponse - ###### Spam -Types: - -- SpamGetResponse - -Methods: - -- client.radar.email.security.top.ases.spam.get(spam, { ...params }) -> SpamGetResponse - ###### SPF -Types: - -- SPFGetResponse - -Methods: - -- client.radar.email.security.top.ases.spf.get(spf, { ...params }) -> SPFGetResponse - ##### Locations -Types: - -- LocationGetResponse - -Methods: - -- client.radar.email.security.top.locations.get({ ...params }) -> LocationGetResponse - ###### ARC -Types: - -- ARCGetResponse - -Methods: - -- client.radar.email.security.top.locations.arc.get(arc, { ...params }) -> ARCGetResponse - ###### DKIM -Types: - -- DKIMGetResponse - -Methods: - -- client.radar.email.security.top.locations.dkim.get(dkim, { ...params }) -> DKIMGetResponse - ###### DMARC -Types: - -- DMARCGetResponse - -Methods: - -- client.radar.email.security.top.locations.dmarc.get(dmarc, { ...params }) -> DMARCGetResponse - ###### Malicious -Types: - -- MaliciousGetResponse - -Methods: - -- client.radar.email.security.top.locations.malicious.get(malicious, { ...params }) -> MaliciousGetResponse - ###### Spam -Types: - -- SpamGetResponse - -Methods: - -- client.radar.email.security.top.locations.spam.get(spam, { ...params }) -> SpamGetResponse - ###### SPF -Types: - -- SPFGetResponse - -Methods: - -- client.radar.email.security.top.locations.spf.get(spf, { ...params }) -> SPFGetResponse - #### Summary Types: diff --git a/src/resources/radar/as112/as112.ts b/src/resources/radar/as112/as112.ts index a63cb60059..ffb76874b2 100644 --- a/src/resources/radar/as112/as112.ts +++ b/src/resources/radar/as112/as112.ts @@ -115,6 +115,13 @@ export interface As112TimeseriesParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/as112/summary.ts b/src/resources/radar/as112/summary.ts index 0d1770b3e1..bde8ccf78d 100644 --- a/src/resources/radar/as112/summary.ts +++ b/src/resources/radar/as112/summary.ts @@ -519,6 +519,13 @@ export interface SummaryDNSSECParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -578,6 +585,13 @@ export interface SummaryEdnsParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -637,6 +651,13 @@ export interface SummaryIPVersionParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -696,6 +717,13 @@ export interface SummaryProtocolParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -755,6 +783,13 @@ export interface SummaryQueryTypeParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -814,6 +849,13 @@ export interface SummaryResponseCodesParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/as112/timeseries-groups.ts b/src/resources/radar/as112/timeseries-groups.ts index db51a3ad34..5c8f46108d 100644 --- a/src/resources/radar/as112/timeseries-groups.ts +++ b/src/resources/radar/as112/timeseries-groups.ts @@ -248,6 +248,13 @@ export interface TimeseriesGroupDNSSECParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -314,6 +321,13 @@ export interface TimeseriesGroupEdnsParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -380,6 +394,13 @@ export interface TimeseriesGroupIPVersionParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -446,6 +467,13 @@ export interface TimeseriesGroupProtocolParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -512,6 +540,13 @@ export interface TimeseriesGroupQueryTypeParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -578,6 +613,13 @@ export interface TimeseriesGroupResponseCodesParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/as112/top.ts b/src/resources/radar/as112/top.ts index 9d1197d0bb..a10f103ca4 100644 --- a/src/resources/radar/as112/top.ts +++ b/src/resources/radar/as112/top.ts @@ -360,6 +360,13 @@ export interface TopDNSSECParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -424,6 +431,13 @@ export interface TopEdnsParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -488,6 +502,13 @@ export interface TopIPVersionParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -552,6 +573,13 @@ export interface TopLocationsParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/attacks/layer3/layer3.ts b/src/resources/radar/attacks/layer3/layer3.ts index 53667a065e..a0ce89b1b1 100644 --- a/src/resources/radar/attacks/layer3/layer3.ts +++ b/src/resources/radar/attacks/layer3/layer3.ts @@ -67,6 +67,13 @@ export interface Layer3TimeseriesParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/attacks/layer3/summary.ts b/src/resources/radar/attacks/layer3/summary.ts index 1706474ab6..05dc3d8626 100644 --- a/src/resources/radar/attacks/layer3/summary.ts +++ b/src/resources/radar/attacks/layer3/summary.ts @@ -519,6 +519,13 @@ export namespace SummaryVectorResponse { } export interface SummaryBitrateParams { + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -587,6 +594,13 @@ export interface SummaryBitrateParams { } export interface SummaryDurationParams { + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -662,6 +676,13 @@ export interface SummaryGetParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -714,6 +735,13 @@ export interface SummaryGetParams { } export interface SummaryIPVersionParams { + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -777,6 +805,13 @@ export interface SummaryIPVersionParams { } export interface SummaryProtocolParams { + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -840,6 +875,13 @@ export interface SummaryProtocolParams { } export interface SummaryVectorParams { + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/attacks/layer3/timeseries-groups.ts b/src/resources/radar/attacks/layer3/timeseries-groups.ts index 1210c08870..979425467b 100644 --- a/src/resources/radar/attacks/layer3/timeseries-groups.ts +++ b/src/resources/radar/attacks/layer3/timeseries-groups.ts @@ -388,6 +388,13 @@ export interface TimeseriesGroupBitrateParams { */ aggInterval?: '15m' | '1h' | '1d' | '1w'; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -469,6 +476,13 @@ export interface TimeseriesGroupDurationParams { */ aggInterval?: '15m' | '1h' | '1d' | '1w'; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -557,6 +571,13 @@ export interface TimeseriesGroupGetParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -616,6 +637,13 @@ export interface TimeseriesGroupIndustryParams { */ aggInterval?: '15m' | '1h' | '1d' | '1w'; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -698,6 +726,13 @@ export interface TimeseriesGroupIPVersionParams { */ aggInterval?: '15m' | '1h' | '1d' | '1w'; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -774,6 +809,13 @@ export interface TimeseriesGroupProtocolParams { */ aggInterval?: '15m' | '1h' | '1d' | '1w'; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -850,6 +892,13 @@ export interface TimeseriesGroupVectorParams { */ aggInterval?: '15m' | '1h' | '1d' | '1w'; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -937,6 +986,13 @@ export interface TimeseriesGroupVerticalParams { */ aggInterval?: '15m' | '1h' | '1d' | '1w'; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/attacks/layer3/top/locations.ts b/src/resources/radar/attacks/layer3/top/locations.ts index bed1cfcf94..5bdd6b8a49 100644 --- a/src/resources/radar/attacks/layer3/top/locations.ts +++ b/src/resources/radar/attacks/layer3/top/locations.ts @@ -182,6 +182,13 @@ export namespace LocationTargetResponse { } export interface LocationOriginParams { + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -249,6 +256,13 @@ export interface LocationOriginParams { } export interface LocationTargetParams { + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/attacks/layer3/top/top.ts b/src/resources/radar/attacks/layer3/top/top.ts index dc3c9f48bb..df1bf9ab36 100644 --- a/src/resources/radar/attacks/layer3/top/top.ts +++ b/src/resources/radar/attacks/layer3/top/top.ts @@ -253,6 +253,13 @@ export namespace TopVerticalResponse { } export interface TopAttacksParams { + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -333,6 +340,13 @@ export interface TopAttacksParams { } export interface TopIndustryParams { + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -400,6 +414,13 @@ export interface TopIndustryParams { } export interface TopVerticalParams { + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/attacks/layer7/layer7.ts b/src/resources/radar/attacks/layer7/layer7.ts index 1cf7582677..7db464a51e 100644 --- a/src/resources/radar/attacks/layer7/layer7.ts +++ b/src/resources/radar/attacks/layer7/layer7.ts @@ -129,6 +129,13 @@ export interface Layer7TimeseriesParams { | 'DATA_LOSS_PREVENTION' >; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/attacks/layer7/summary.ts b/src/resources/radar/attacks/layer7/summary.ts index bedcd3cc9d..9782931812 100644 --- a/src/resources/radar/attacks/layer7/summary.ts +++ b/src/resources/radar/attacks/layer7/summary.ts @@ -528,6 +528,13 @@ export interface SummaryGetParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -587,6 +594,13 @@ export interface SummaryHTTPMethodParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -669,6 +683,13 @@ export interface SummaryHTTPVersionParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -798,6 +819,13 @@ export interface SummaryIPVersionParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -927,6 +955,13 @@ export interface SummaryManagedRulesParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -1061,6 +1096,13 @@ export interface SummaryMitigationProductParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/attacks/layer7/timeseries-groups.ts b/src/resources/radar/attacks/layer7/timeseries-groups.ts index ec1aa04384..6f90bb3274 100644 --- a/src/resources/radar/attacks/layer7/timeseries-groups.ts +++ b/src/resources/radar/attacks/layer7/timeseries-groups.ts @@ -378,6 +378,13 @@ export interface TimeseriesGroupGetParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -444,6 +451,13 @@ export interface TimeseriesGroupHTTPMethodParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -539,6 +553,13 @@ export interface TimeseriesGroupHTTPVersionParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -681,6 +702,13 @@ export interface TimeseriesGroupIndustryParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -834,6 +862,13 @@ export interface TimeseriesGroupIPVersionParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -976,6 +1011,13 @@ export interface TimeseriesGroupManagedRulesParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -1123,6 +1165,13 @@ export interface TimeseriesGroupMitigationProductParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -1257,6 +1306,13 @@ export interface TimeseriesGroupVerticalParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/attacks/layer7/top/ases.ts b/src/resources/radar/attacks/layer7/top/ases.ts index ebb5d325d1..e6f000314e 100644 --- a/src/resources/radar/attacks/layer7/top/ases.ts +++ b/src/resources/radar/attacks/layer7/top/ases.ts @@ -93,6 +93,13 @@ export namespace AseOriginResponse { } export interface AseOriginParams { + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/attacks/layer7/top/locations.ts b/src/resources/radar/attacks/layer7/top/locations.ts index 85264525d7..a2900d4123 100644 --- a/src/resources/radar/attacks/layer7/top/locations.ts +++ b/src/resources/radar/attacks/layer7/top/locations.ts @@ -193,6 +193,13 @@ export interface LocationOriginParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -243,6 +250,13 @@ export interface LocationOriginParams { } export interface LocationTargetParams { + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/attacks/layer7/top/top.ts b/src/resources/radar/attacks/layer7/top/top.ts index cd8966883d..59b62152b7 100644 --- a/src/resources/radar/attacks/layer7/top/top.ts +++ b/src/resources/radar/attacks/layer7/top/top.ts @@ -267,6 +267,13 @@ export interface TopAttacksParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -350,6 +357,13 @@ export interface TopIndustryParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -414,6 +428,13 @@ export interface TopVerticalParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/connection-tampering.ts b/src/resources/radar/connection-tampering.ts index 97b331fceb..1c448e9cfb 100644 --- a/src/resources/radar/connection-tampering.ts +++ b/src/resources/radar/connection-tampering.ts @@ -236,6 +236,13 @@ export interface ConnectionTamperingSummaryParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -302,6 +309,13 @@ export interface ConnectionTamperingTimeseriesGroupsParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/dns/top.ts b/src/resources/radar/dns/top.ts index b4d2ef0d6a..2f8408545d 100644 --- a/src/resources/radar/dns/top.ts +++ b/src/resources/radar/dns/top.ts @@ -162,6 +162,13 @@ export interface TopAsesParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -231,6 +238,13 @@ export interface TopLocationsParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/email/security/summary.ts b/src/resources/radar/email/security/summary.ts index dd2aa03bfc..f35a761369 100644 --- a/src/resources/radar/email/security/summary.ts +++ b/src/resources/radar/email/security/summary.ts @@ -594,13 +594,6 @@ export namespace SummaryThreatCategoryResponse { } export interface SummaryARCParams { - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - /** * End of the date range (inclusive). */ @@ -649,13 +642,6 @@ export interface SummaryARCParams { */ format?: 'JSON' | 'CSV'; - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - /** * Array of names that will be used to name the series in responses. */ @@ -665,6 +651,11 @@ export interface SummaryARCParams { * Filter for spf. */ spf?: Array<'PASS' | 'NONE' | 'FAIL'>; + + /** + * Filter for tls version. + */ + tlsVersion?: Array<'TLSv1_0' | 'TLSv1_1' | 'TLSv1_2' | 'TLSv1_3'>; } export interface SummaryDKIMParams { @@ -673,13 +664,6 @@ export interface SummaryDKIMParams { */ arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - /** * End of the date range (inclusive). */ @@ -723,13 +707,6 @@ export interface SummaryDKIMParams { */ format?: 'JSON' | 'CSV'; - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - /** * Array of names that will be used to name the series in responses. */ @@ -739,6 +716,11 @@ export interface SummaryDKIMParams { * Filter for spf. */ spf?: Array<'PASS' | 'NONE' | 'FAIL'>; + + /** + * Filter for tls version. + */ + tlsVersion?: Array<'TLSv1_0' | 'TLSv1_1' | 'TLSv1_2' | 'TLSv1_3'>; } export interface SummaryDMARCParams { @@ -747,13 +729,6 @@ export interface SummaryDMARCParams { */ arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - /** * End of the date range (inclusive). */ @@ -797,13 +772,6 @@ export interface SummaryDMARCParams { */ format?: 'JSON' | 'CSV'; - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - /** * Array of names that will be used to name the series in responses. */ @@ -813,6 +781,11 @@ export interface SummaryDMARCParams { * Filter for spf. */ spf?: Array<'PASS' | 'NONE' | 'FAIL'>; + + /** + * Filter for tls version. + */ + tlsVersion?: Array<'TLSv1_0' | 'TLSv1_1' | 'TLSv1_2' | 'TLSv1_3'>; } export interface SummaryMaliciousParams { @@ -821,13 +794,6 @@ export interface SummaryMaliciousParams { */ arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - /** * End of the date range (inclusive). */ @@ -876,13 +842,6 @@ export interface SummaryMaliciousParams { */ format?: 'JSON' | 'CSV'; - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - /** * Array of names that will be used to name the series in responses. */ @@ -892,6 +851,11 @@ export interface SummaryMaliciousParams { * Filter for spf. */ spf?: Array<'PASS' | 'NONE' | 'FAIL'>; + + /** + * Filter for tls version. + */ + tlsVersion?: Array<'TLSv1_0' | 'TLSv1_1' | 'TLSv1_2' | 'TLSv1_3'>; } export interface SummarySpamParams { @@ -900,13 +864,6 @@ export interface SummarySpamParams { */ arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - /** * End of the date range (inclusive). */ @@ -955,13 +912,6 @@ export interface SummarySpamParams { */ format?: 'JSON' | 'CSV'; - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - /** * Array of names that will be used to name the series in responses. */ @@ -971,6 +921,11 @@ export interface SummarySpamParams { * Filter for spf. */ spf?: Array<'PASS' | 'NONE' | 'FAIL'>; + + /** + * Filter for tls version. + */ + tlsVersion?: Array<'TLSv1_0' | 'TLSv1_1' | 'TLSv1_2' | 'TLSv1_3'>; } export interface SummarySPFParams { @@ -979,13 +934,6 @@ export interface SummarySPFParams { */ arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - /** * End of the date range (inclusive). */ @@ -1035,16 +983,14 @@ export interface SummarySPFParams { format?: 'JSON' | 'CSV'; /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. + * Array of names that will be used to name the series in responses. */ - location?: Array; + name?: Array; /** - * Array of names that will be used to name the series in responses. + * Filter for tls version. */ - name?: Array; + tlsVersion?: Array<'TLSv1_0' | 'TLSv1_1' | 'TLSv1_2' | 'TLSv1_3'>; } export interface SummaryThreatCategoryParams { @@ -1053,13 +999,6 @@ export interface SummaryThreatCategoryParams { */ arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - /** * End of the date range (inclusive). */ @@ -1108,13 +1047,6 @@ export interface SummaryThreatCategoryParams { */ format?: 'JSON' | 'CSV'; - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - /** * Array of names that will be used to name the series in responses. */ @@ -1124,6 +1056,11 @@ export interface SummaryThreatCategoryParams { * Filter for spf. */ spf?: Array<'PASS' | 'NONE' | 'FAIL'>; + + /** + * Filter for tls version. + */ + tlsVersion?: Array<'TLSv1_0' | 'TLSv1_1' | 'TLSv1_2' | 'TLSv1_3'>; } export namespace Summary { diff --git a/src/resources/radar/email/security/timeseries-groups.ts b/src/resources/radar/email/security/timeseries-groups.ts index e9cf8950f4..ed10297d30 100644 --- a/src/resources/radar/email/security/timeseries-groups.ts +++ b/src/resources/radar/email/security/timeseries-groups.ts @@ -286,13 +286,6 @@ export interface TimeseriesGroupARCParams { */ aggInterval?: '15m' | '1h' | '1d' | '1w'; - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - /** * End of the date range (inclusive). */ @@ -341,13 +334,6 @@ export interface TimeseriesGroupARCParams { */ format?: 'JSON' | 'CSV'; - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - /** * Array of names that will be used to name the series in responses. */ @@ -357,6 +343,11 @@ export interface TimeseriesGroupARCParams { * Filter for spf. */ spf?: Array<'PASS' | 'NONE' | 'FAIL'>; + + /** + * Filter for tls version. + */ + tlsVersion?: Array<'TLSv1_0' | 'TLSv1_1' | 'TLSv1_2' | 'TLSv1_3'>; } export interface TimeseriesGroupDKIMParams { @@ -372,13 +363,6 @@ export interface TimeseriesGroupDKIMParams { */ arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - /** * End of the date range (inclusive). */ @@ -422,13 +406,6 @@ export interface TimeseriesGroupDKIMParams { */ format?: 'JSON' | 'CSV'; - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - /** * Array of names that will be used to name the series in responses. */ @@ -438,6 +415,11 @@ export interface TimeseriesGroupDKIMParams { * Filter for spf. */ spf?: Array<'PASS' | 'NONE' | 'FAIL'>; + + /** + * Filter for tls version. + */ + tlsVersion?: Array<'TLSv1_0' | 'TLSv1_1' | 'TLSv1_2' | 'TLSv1_3'>; } export interface TimeseriesGroupDMARCParams { @@ -453,13 +435,6 @@ export interface TimeseriesGroupDMARCParams { */ arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - /** * End of the date range (inclusive). */ @@ -503,13 +478,6 @@ export interface TimeseriesGroupDMARCParams { */ format?: 'JSON' | 'CSV'; - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - /** * Array of names that will be used to name the series in responses. */ @@ -519,6 +487,11 @@ export interface TimeseriesGroupDMARCParams { * Filter for spf. */ spf?: Array<'PASS' | 'NONE' | 'FAIL'>; + + /** + * Filter for tls version. + */ + tlsVersion?: Array<'TLSv1_0' | 'TLSv1_1' | 'TLSv1_2' | 'TLSv1_3'>; } export interface TimeseriesGroupMaliciousParams { @@ -534,13 +507,6 @@ export interface TimeseriesGroupMaliciousParams { */ arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - /** * End of the date range (inclusive). */ @@ -589,13 +555,6 @@ export interface TimeseriesGroupMaliciousParams { */ format?: 'JSON' | 'CSV'; - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - /** * Array of names that will be used to name the series in responses. */ @@ -605,6 +564,11 @@ export interface TimeseriesGroupMaliciousParams { * Filter for spf. */ spf?: Array<'PASS' | 'NONE' | 'FAIL'>; + + /** + * Filter for tls version. + */ + tlsVersion?: Array<'TLSv1_0' | 'TLSv1_1' | 'TLSv1_2' | 'TLSv1_3'>; } export interface TimeseriesGroupSpamParams { @@ -620,13 +584,6 @@ export interface TimeseriesGroupSpamParams { */ arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - /** * End of the date range (inclusive). */ @@ -675,13 +632,6 @@ export interface TimeseriesGroupSpamParams { */ format?: 'JSON' | 'CSV'; - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - /** * Array of names that will be used to name the series in responses. */ @@ -691,6 +641,11 @@ export interface TimeseriesGroupSpamParams { * Filter for spf. */ spf?: Array<'PASS' | 'NONE' | 'FAIL'>; + + /** + * Filter for tls version. + */ + tlsVersion?: Array<'TLSv1_0' | 'TLSv1_1' | 'TLSv1_2' | 'TLSv1_3'>; } export interface TimeseriesGroupSPFParams { @@ -706,13 +661,6 @@ export interface TimeseriesGroupSPFParams { */ arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - /** * End of the date range (inclusive). */ @@ -762,16 +710,14 @@ export interface TimeseriesGroupSPFParams { format?: 'JSON' | 'CSV'; /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. + * Array of names that will be used to name the series in responses. */ - location?: Array; + name?: Array; /** - * Array of names that will be used to name the series in responses. + * Filter for tls version. */ - name?: Array; + tlsVersion?: Array<'TLSv1_0' | 'TLSv1_1' | 'TLSv1_2' | 'TLSv1_3'>; } export interface TimeseriesGroupThreatCategoryParams { @@ -787,13 +733,6 @@ export interface TimeseriesGroupThreatCategoryParams { */ arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - /** * End of the date range (inclusive). */ @@ -842,13 +781,6 @@ export interface TimeseriesGroupThreatCategoryParams { */ format?: 'JSON' | 'CSV'; - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - /** * Array of names that will be used to name the series in responses. */ @@ -858,6 +790,11 @@ export interface TimeseriesGroupThreatCategoryParams { * Filter for spf. */ spf?: Array<'PASS' | 'NONE' | 'FAIL'>; + + /** + * Filter for tls version. + */ + tlsVersion?: Array<'TLSv1_0' | 'TLSv1_1' | 'TLSv1_2' | 'TLSv1_3'>; } export namespace TimeseriesGroups { diff --git a/src/resources/radar/email/security/top/ases/arc.ts b/src/resources/radar/email/security/top/ases/arc.ts index df59256f04..32109f3dc1 100644 --- a/src/resources/radar/email/security/top/ases/arc.ts +++ b/src/resources/radar/email/security/top/ases/arc.ts @@ -1,179 +1,5 @@ // File generated from our OpenAPI spec by Stainless. -import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; -import { isRequestOptions } from 'cloudflare/core'; -import * as ARCAPI from 'cloudflare/resources/radar/email/security/top/ases/arc'; -export class ARC extends APIResource { - /** - * Get the top autonomous systems (AS) by emails ARC validation. - */ - get( - arc: 'PASS' | 'NONE' | 'FAIL', - query?: ARCGetParams, - options?: Core.RequestOptions, - ): Core.APIPromise; - get(arc: 'PASS' | 'NONE' | 'FAIL', options?: Core.RequestOptions): Core.APIPromise; - get( - arc: 'PASS' | 'NONE' | 'FAIL', - query: ARCGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get(arc, {}, query); - } - return ( - this._client.get(`/radar/email/security/top/ases/arc/${arc}`, { - query, - ...options, - }) as Core.APIPromise<{ result: ARCGetResponse }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface ARCGetResponse { - meta: ARCGetResponse.Meta; - - top_0: Array; -} - -export namespace ARCGetResponse { - export interface Meta { - dateRange: Array; - - lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; - } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; - } -} - -export interface ARCGetParams { - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - - /** - * End of the date range (inclusive). - */ - dateEnd?: Array; - - /** - * For example, use `7d` and `7dControl` to compare this week with the previous - * week. Use this parameter or set specific start and end dates (`dateStart` and - * `dateEnd` parameters). - */ - dateRange?: Array< - | '1d' - | '2d' - | '7d' - | '14d' - | '28d' - | '12w' - | '24w' - | '52w' - | '1dControl' - | '2dControl' - | '7dControl' - | '14dControl' - | '28dControl' - | '12wControl' - | '24wControl' - >; - - /** - * Array of datetimes to filter the start of a series. - */ - dateStart?: Array; - - /** - * Filter for dkim. - */ - dkim?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Filter for dmarc. - */ - dmarc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Format results are returned in. - */ - format?: 'JSON' | 'CSV'; - - /** - * Limit the number of objects in the response. - */ - limit?: number; - - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - - /** - * Array of names that will be used to name the series in responses. - */ - name?: Array; - - /** - * Filter for spf. - */ - spf?: Array<'PASS' | 'NONE' | 'FAIL'>; -} - -export namespace ARC { - export import ARCGetResponse = ARCAPI.ARCGetResponse; - export import ARCGetParams = ARCAPI.ARCGetParams; -} +export class ARC extends APIResource {} diff --git a/src/resources/radar/email/security/top/ases/ases.ts b/src/resources/radar/email/security/top/ases/ases.ts index 722c963cc2..41932f06da 100644 --- a/src/resources/radar/email/security/top/ases/ases.ts +++ b/src/resources/radar/email/security/top/ases/ases.ts @@ -1,9 +1,6 @@ // File generated from our OpenAPI spec by Stainless. -import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; -import { isRequestOptions } from 'cloudflare/core'; -import * as AsesAPI from 'cloudflare/resources/radar/email/security/top/ases/ases'; import * as ARCAPI from 'cloudflare/resources/radar/email/security/top/ases/arc'; import * as DKIMAPI from 'cloudflare/resources/radar/email/security/top/ases/dkim'; import * as DMARCAPI from 'cloudflare/resources/radar/email/security/top/ases/dmarc'; @@ -18,193 +15,13 @@ export class Ases extends APIResource { malicious: MaliciousAPI.Malicious = new MaliciousAPI.Malicious(this._client); spam: SpamAPI.Spam = new SpamAPI.Spam(this._client); spf: SPFAPI.SPF = new SPFAPI.SPF(this._client); - - /** - * Get the top autonomous systems (AS) by email messages. Values are a percentage - * out of the total emails. - */ - get(query?: AseGetParams, options?: Core.RequestOptions): Core.APIPromise; - get(options?: Core.RequestOptions): Core.APIPromise; - get( - query: AseGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get({}, query); - } - return ( - this._client.get('/radar/email/security/top/ases', { query, ...options }) as Core.APIPromise<{ - result: AseGetResponse; - }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface AseGetResponse { - meta: AseGetResponse.Meta; - - top_0: Array; -} - -export namespace AseGetResponse { - export interface Meta { - dateRange: Array; - - lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; - } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; - } -} - -export interface AseGetParams { - /** - * Filter for arc (Authenticated Received Chain). - */ - arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - - /** - * End of the date range (inclusive). - */ - dateEnd?: Array; - - /** - * For example, use `7d` and `7dControl` to compare this week with the previous - * week. Use this parameter or set specific start and end dates (`dateStart` and - * `dateEnd` parameters). - */ - dateRange?: Array< - | '1d' - | '2d' - | '7d' - | '14d' - | '28d' - | '12w' - | '24w' - | '52w' - | '1dControl' - | '2dControl' - | '7dControl' - | '14dControl' - | '28dControl' - | '12wControl' - | '24wControl' - >; - - /** - * Array of datetimes to filter the start of a series. - */ - dateStart?: Array; - - /** - * Filter for dkim. - */ - dkim?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Filter for dmarc. - */ - dmarc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Format results are returned in. - */ - format?: 'JSON' | 'CSV'; - - /** - * Limit the number of objects in the response. - */ - limit?: number; - - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - - /** - * Array of names that will be used to name the series in responses. - */ - name?: Array; - - /** - * Filter for spf. - */ - spf?: Array<'PASS' | 'NONE' | 'FAIL'>; } export namespace Ases { - export import AseGetResponse = AsesAPI.AseGetResponse; - export import AseGetParams = AsesAPI.AseGetParams; export import ARC = ARCAPI.ARC; - export import ARCGetResponse = ARCAPI.ARCGetResponse; - export import ARCGetParams = ARCAPI.ARCGetParams; export import DKIM = DKIMAPI.DKIM; - export import DKIMGetResponse = DKIMAPI.DKIMGetResponse; - export import DKIMGetParams = DKIMAPI.DKIMGetParams; export import DMARC = DMARCAPI.DMARC; - export import DMARCGetResponse = DMARCAPI.DMARCGetResponse; - export import DMARCGetParams = DMARCAPI.DMARCGetParams; export import Malicious = MaliciousAPI.Malicious; - export import MaliciousGetResponse = MaliciousAPI.MaliciousGetResponse; - export import MaliciousGetParams = MaliciousAPI.MaliciousGetParams; export import Spam = SpamAPI.Spam; - export import SpamGetResponse = SpamAPI.SpamGetResponse; - export import SpamGetParams = SpamAPI.SpamGetParams; export import SPF = SPFAPI.SPF; - export import SPFGetResponse = SPFAPI.SPFGetResponse; - export import SPFGetParams = SPFAPI.SPFGetParams; } diff --git a/src/resources/radar/email/security/top/ases/dkim.ts b/src/resources/radar/email/security/top/ases/dkim.ts index b16e721795..7a4e0b47c1 100644 --- a/src/resources/radar/email/security/top/ases/dkim.ts +++ b/src/resources/radar/email/security/top/ases/dkim.ts @@ -1,179 +1,5 @@ // File generated from our OpenAPI spec by Stainless. -import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; -import { isRequestOptions } from 'cloudflare/core'; -import * as DKIMAPI from 'cloudflare/resources/radar/email/security/top/ases/dkim'; -export class DKIM extends APIResource { - /** - * Get the top autonomous systems (AS), by email DKIM validation. - */ - get( - dkim: 'PASS' | 'NONE' | 'FAIL', - query?: DKIMGetParams, - options?: Core.RequestOptions, - ): Core.APIPromise; - get(dkim: 'PASS' | 'NONE' | 'FAIL', options?: Core.RequestOptions): Core.APIPromise; - get( - dkim: 'PASS' | 'NONE' | 'FAIL', - query: DKIMGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get(dkim, {}, query); - } - return ( - this._client.get(`/radar/email/security/top/ases/dkim/${dkim}`, { - query, - ...options, - }) as Core.APIPromise<{ result: DKIMGetResponse }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface DKIMGetResponse { - meta: DKIMGetResponse.Meta; - - top_0: Array; -} - -export namespace DKIMGetResponse { - export interface Meta { - dateRange: Array; - - lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; - } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; - } -} - -export interface DKIMGetParams { - /** - * Filter for arc (Authenticated Received Chain). - */ - arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - - /** - * End of the date range (inclusive). - */ - dateEnd?: Array; - - /** - * For example, use `7d` and `7dControl` to compare this week with the previous - * week. Use this parameter or set specific start and end dates (`dateStart` and - * `dateEnd` parameters). - */ - dateRange?: Array< - | '1d' - | '2d' - | '7d' - | '14d' - | '28d' - | '12w' - | '24w' - | '52w' - | '1dControl' - | '2dControl' - | '7dControl' - | '14dControl' - | '28dControl' - | '12wControl' - | '24wControl' - >; - - /** - * Array of datetimes to filter the start of a series. - */ - dateStart?: Array; - - /** - * Filter for dmarc. - */ - dmarc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Format results are returned in. - */ - format?: 'JSON' | 'CSV'; - - /** - * Limit the number of objects in the response. - */ - limit?: number; - - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - - /** - * Array of names that will be used to name the series in responses. - */ - name?: Array; - - /** - * Filter for spf. - */ - spf?: Array<'PASS' | 'NONE' | 'FAIL'>; -} - -export namespace DKIM { - export import DKIMGetResponse = DKIMAPI.DKIMGetResponse; - export import DKIMGetParams = DKIMAPI.DKIMGetParams; -} +export class DKIM extends APIResource {} diff --git a/src/resources/radar/email/security/top/ases/dmarc.ts b/src/resources/radar/email/security/top/ases/dmarc.ts index 5291630908..719be4129f 100644 --- a/src/resources/radar/email/security/top/ases/dmarc.ts +++ b/src/resources/radar/email/security/top/ases/dmarc.ts @@ -1,179 +1,5 @@ // File generated from our OpenAPI spec by Stainless. -import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; -import { isRequestOptions } from 'cloudflare/core'; -import * as DMARCAPI from 'cloudflare/resources/radar/email/security/top/ases/dmarc'; -export class DMARC extends APIResource { - /** - * Get the top autonomous systems (AS) by emails DMARC validation. - */ - get( - dmarc: 'PASS' | 'NONE' | 'FAIL', - query?: DMARCGetParams, - options?: Core.RequestOptions, - ): Core.APIPromise; - get(dmarc: 'PASS' | 'NONE' | 'FAIL', options?: Core.RequestOptions): Core.APIPromise; - get( - dmarc: 'PASS' | 'NONE' | 'FAIL', - query: DMARCGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get(dmarc, {}, query); - } - return ( - this._client.get(`/radar/email/security/top/ases/dmarc/${dmarc}`, { - query, - ...options, - }) as Core.APIPromise<{ result: DMARCGetResponse }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface DMARCGetResponse { - meta: DMARCGetResponse.Meta; - - top_0: Array; -} - -export namespace DMARCGetResponse { - export interface Meta { - dateRange: Array; - - lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; - } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; - } -} - -export interface DMARCGetParams { - /** - * Filter for arc (Authenticated Received Chain). - */ - arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - - /** - * End of the date range (inclusive). - */ - dateEnd?: Array; - - /** - * For example, use `7d` and `7dControl` to compare this week with the previous - * week. Use this parameter or set specific start and end dates (`dateStart` and - * `dateEnd` parameters). - */ - dateRange?: Array< - | '1d' - | '2d' - | '7d' - | '14d' - | '28d' - | '12w' - | '24w' - | '52w' - | '1dControl' - | '2dControl' - | '7dControl' - | '14dControl' - | '28dControl' - | '12wControl' - | '24wControl' - >; - - /** - * Array of datetimes to filter the start of a series. - */ - dateStart?: Array; - - /** - * Filter for dkim. - */ - dkim?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Format results are returned in. - */ - format?: 'JSON' | 'CSV'; - - /** - * Limit the number of objects in the response. - */ - limit?: number; - - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - - /** - * Array of names that will be used to name the series in responses. - */ - name?: Array; - - /** - * Filter for spf. - */ - spf?: Array<'PASS' | 'NONE' | 'FAIL'>; -} - -export namespace DMARC { - export import DMARCGetResponse = DMARCAPI.DMARCGetResponse; - export import DMARCGetParams = DMARCAPI.DMARCGetParams; -} +export class DMARC extends APIResource {} diff --git a/src/resources/radar/email/security/top/ases/index.ts b/src/resources/radar/email/security/top/ases/index.ts index cd698770d1..42e42a6cd5 100644 --- a/src/resources/radar/email/security/top/ases/index.ts +++ b/src/resources/radar/email/security/top/ases/index.ts @@ -1,9 +1,9 @@ // File generated from our OpenAPI spec by Stainless. -export { ARCGetResponse, ARCGetParams, ARC } from './arc'; -export { AseGetResponse, AseGetParams, Ases } from './ases'; -export { DKIMGetResponse, DKIMGetParams, DKIM } from './dkim'; -export { DMARCGetResponse, DMARCGetParams, DMARC } from './dmarc'; -export { MaliciousGetResponse, MaliciousGetParams, Malicious } from './malicious'; -export { SPFGetResponse, SPFGetParams, SPF } from './spf'; -export { SpamGetResponse, SpamGetParams, Spam } from './spam'; +export { ARC } from './arc'; +export { Ases } from './ases'; +export { DKIM } from './dkim'; +export { DMARC } from './dmarc'; +export { Malicious } from './malicious'; +export { SPF } from './spf'; +export { Spam } from './spam'; diff --git a/src/resources/radar/email/security/top/ases/malicious.ts b/src/resources/radar/email/security/top/ases/malicious.ts index 2db688ae33..9ce1fdcd6e 100644 --- a/src/resources/radar/email/security/top/ases/malicious.ts +++ b/src/resources/radar/email/security/top/ases/malicious.ts @@ -1,187 +1,5 @@ // File generated from our OpenAPI spec by Stainless. -import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; -import { isRequestOptions } from 'cloudflare/core'; -import * as MaliciousAPI from 'cloudflare/resources/radar/email/security/top/ases/malicious'; -export class Malicious extends APIResource { - /** - * Get the top autonomous systems (AS), by emails classified as Malicious or not. - */ - get( - malicious: 'MALICIOUS' | 'NOT_MALICIOUS', - query?: MaliciousGetParams, - options?: Core.RequestOptions, - ): Core.APIPromise; - get( - malicious: 'MALICIOUS' | 'NOT_MALICIOUS', - options?: Core.RequestOptions, - ): Core.APIPromise; - get( - malicious: 'MALICIOUS' | 'NOT_MALICIOUS', - query: MaliciousGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get(malicious, {}, query); - } - return ( - this._client.get(`/radar/email/security/top/ases/malicious/${malicious}`, { - query, - ...options, - }) as Core.APIPromise<{ result: MaliciousGetResponse }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface MaliciousGetResponse { - meta: MaliciousGetResponse.Meta; - - top_0: Array; -} - -export namespace MaliciousGetResponse { - export interface Meta { - dateRange: Array; - - lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; - } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; - } -} - -export interface MaliciousGetParams { - /** - * Filter for arc (Authenticated Received Chain). - */ - arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - - /** - * End of the date range (inclusive). - */ - dateEnd?: Array; - - /** - * For example, use `7d` and `7dControl` to compare this week with the previous - * week. Use this parameter or set specific start and end dates (`dateStart` and - * `dateEnd` parameters). - */ - dateRange?: Array< - | '1d' - | '2d' - | '7d' - | '14d' - | '28d' - | '12w' - | '24w' - | '52w' - | '1dControl' - | '2dControl' - | '7dControl' - | '14dControl' - | '28dControl' - | '12wControl' - | '24wControl' - >; - - /** - * Array of datetimes to filter the start of a series. - */ - dateStart?: Array; - - /** - * Filter for dkim. - */ - dkim?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Filter for dmarc. - */ - dmarc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Format results are returned in. - */ - format?: 'JSON' | 'CSV'; - - /** - * Limit the number of objects in the response. - */ - limit?: number; - - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - - /** - * Array of names that will be used to name the series in responses. - */ - name?: Array; - - /** - * Filter for spf. - */ - spf?: Array<'PASS' | 'NONE' | 'FAIL'>; -} - -export namespace Malicious { - export import MaliciousGetResponse = MaliciousAPI.MaliciousGetResponse; - export import MaliciousGetParams = MaliciousAPI.MaliciousGetParams; -} +export class Malicious extends APIResource {} diff --git a/src/resources/radar/email/security/top/ases/spam.ts b/src/resources/radar/email/security/top/ases/spam.ts index 1074611de5..3a98dc6546 100644 --- a/src/resources/radar/email/security/top/ases/spam.ts +++ b/src/resources/radar/email/security/top/ases/spam.ts @@ -1,184 +1,5 @@ // File generated from our OpenAPI spec by Stainless. -import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; -import { isRequestOptions } from 'cloudflare/core'; -import * as SpamAPI from 'cloudflare/resources/radar/email/security/top/ases/spam'; -export class Spam extends APIResource { - /** - * Get the top autonomous systems (AS), by emails classified, of Spam validations. - */ - get( - spam: 'SPAM' | 'NOT_SPAM', - query?: SpamGetParams, - options?: Core.RequestOptions, - ): Core.APIPromise; - get(spam: 'SPAM' | 'NOT_SPAM', options?: Core.RequestOptions): Core.APIPromise; - get( - spam: 'SPAM' | 'NOT_SPAM', - query: SpamGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get(spam, {}, query); - } - return ( - this._client.get(`/radar/email/security/top/ases/spam/${spam}`, { - query, - ...options, - }) as Core.APIPromise<{ result: SpamGetResponse }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface SpamGetResponse { - meta: SpamGetResponse.Meta; - - top_0: Array; -} - -export namespace SpamGetResponse { - export interface Meta { - dateRange: Array; - - lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; - } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; - } -} - -export interface SpamGetParams { - /** - * Filter for arc (Authenticated Received Chain). - */ - arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - - /** - * End of the date range (inclusive). - */ - dateEnd?: Array; - - /** - * For example, use `7d` and `7dControl` to compare this week with the previous - * week. Use this parameter or set specific start and end dates (`dateStart` and - * `dateEnd` parameters). - */ - dateRange?: Array< - | '1d' - | '2d' - | '7d' - | '14d' - | '28d' - | '12w' - | '24w' - | '52w' - | '1dControl' - | '2dControl' - | '7dControl' - | '14dControl' - | '28dControl' - | '12wControl' - | '24wControl' - >; - - /** - * Array of datetimes to filter the start of a series. - */ - dateStart?: Array; - - /** - * Filter for dkim. - */ - dkim?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Filter for dmarc. - */ - dmarc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Format results are returned in. - */ - format?: 'JSON' | 'CSV'; - - /** - * Limit the number of objects in the response. - */ - limit?: number; - - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - - /** - * Array of names that will be used to name the series in responses. - */ - name?: Array; - - /** - * Filter for spf. - */ - spf?: Array<'PASS' | 'NONE' | 'FAIL'>; -} - -export namespace Spam { - export import SpamGetResponse = SpamAPI.SpamGetResponse; - export import SpamGetParams = SpamAPI.SpamGetParams; -} +export class Spam extends APIResource {} diff --git a/src/resources/radar/email/security/top/ases/spf.ts b/src/resources/radar/email/security/top/ases/spf.ts index 678bb57fc0..89e9bb8c4f 100644 --- a/src/resources/radar/email/security/top/ases/spf.ts +++ b/src/resources/radar/email/security/top/ases/spf.ts @@ -1,179 +1,5 @@ // File generated from our OpenAPI spec by Stainless. -import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; -import { isRequestOptions } from 'cloudflare/core'; -import * as SPFAPI from 'cloudflare/resources/radar/email/security/top/ases/spf'; -export class SPF extends APIResource { - /** - * Get the top autonomous systems (AS) by email SPF validation. - */ - get( - spf: 'PASS' | 'NONE' | 'FAIL', - query?: SPFGetParams, - options?: Core.RequestOptions, - ): Core.APIPromise; - get(spf: 'PASS' | 'NONE' | 'FAIL', options?: Core.RequestOptions): Core.APIPromise; - get( - spf: 'PASS' | 'NONE' | 'FAIL', - query: SPFGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get(spf, {}, query); - } - return ( - this._client.get(`/radar/email/security/top/ases/spf/${spf}`, { - query, - ...options, - }) as Core.APIPromise<{ result: SPFGetResponse }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface SPFGetResponse { - meta: SPFGetResponse.Meta; - - top_0: Array; -} - -export namespace SPFGetResponse { - export interface Meta { - dateRange: Array; - - lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; - } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientASN: number; - - clientASName: string; - - value: string; - } -} - -export interface SPFGetParams { - /** - * Filter for arc (Authenticated Received Chain). - */ - arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - - /** - * End of the date range (inclusive). - */ - dateEnd?: Array; - - /** - * For example, use `7d` and `7dControl` to compare this week with the previous - * week. Use this parameter or set specific start and end dates (`dateStart` and - * `dateEnd` parameters). - */ - dateRange?: Array< - | '1d' - | '2d' - | '7d' - | '14d' - | '28d' - | '12w' - | '24w' - | '52w' - | '1dControl' - | '2dControl' - | '7dControl' - | '14dControl' - | '28dControl' - | '12wControl' - | '24wControl' - >; - - /** - * Array of datetimes to filter the start of a series. - */ - dateStart?: Array; - - /** - * Filter for dkim. - */ - dkim?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Filter for dmarc. - */ - dmarc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Format results are returned in. - */ - format?: 'JSON' | 'CSV'; - - /** - * Limit the number of objects in the response. - */ - limit?: number; - - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - - /** - * Array of names that will be used to name the series in responses. - */ - name?: Array; -} - -export namespace SPF { - export import SPFGetResponse = SPFAPI.SPFGetResponse; - export import SPFGetParams = SPFAPI.SPFGetParams; -} +export class SPF extends APIResource {} diff --git a/src/resources/radar/email/security/top/index.ts b/src/resources/radar/email/security/top/index.ts index 28fc0527dd..a2a8e70b7b 100644 --- a/src/resources/radar/email/security/top/index.ts +++ b/src/resources/radar/email/security/top/index.ts @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec by Stainless. -export { AseGetResponse, AseGetParams, Ases } from './ases/index'; -export { LocationGetResponse, LocationGetParams, Locations } from './locations/index'; +export { Ases } from './ases/index'; +export { Locations } from './locations/index'; export { Top } from './top'; diff --git a/src/resources/radar/email/security/top/locations/arc.ts b/src/resources/radar/email/security/top/locations/arc.ts index cab5a92933..32109f3dc1 100644 --- a/src/resources/radar/email/security/top/locations/arc.ts +++ b/src/resources/radar/email/security/top/locations/arc.ts @@ -1,179 +1,5 @@ // File generated from our OpenAPI spec by Stainless. -import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; -import { isRequestOptions } from 'cloudflare/core'; -import * as ARCAPI from 'cloudflare/resources/radar/email/security/top/locations/arc'; -export class ARC extends APIResource { - /** - * Get the locations, by emails ARC validation. - */ - get( - arc: 'PASS' | 'NONE' | 'FAIL', - query?: ARCGetParams, - options?: Core.RequestOptions, - ): Core.APIPromise; - get(arc: 'PASS' | 'NONE' | 'FAIL', options?: Core.RequestOptions): Core.APIPromise; - get( - arc: 'PASS' | 'NONE' | 'FAIL', - query: ARCGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get(arc, {}, query); - } - return ( - this._client.get(`/radar/email/security/top/locations/arc/${arc}`, { - query, - ...options, - }) as Core.APIPromise<{ result: ARCGetResponse }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface ARCGetResponse { - meta: ARCGetResponse.Meta; - - top_0: Array; -} - -export namespace ARCGetResponse { - export interface Meta { - dateRange: Array; - - lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; - } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; - } -} - -export interface ARCGetParams { - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - - /** - * End of the date range (inclusive). - */ - dateEnd?: Array; - - /** - * For example, use `7d` and `7dControl` to compare this week with the previous - * week. Use this parameter or set specific start and end dates (`dateStart` and - * `dateEnd` parameters). - */ - dateRange?: Array< - | '1d' - | '2d' - | '7d' - | '14d' - | '28d' - | '12w' - | '24w' - | '52w' - | '1dControl' - | '2dControl' - | '7dControl' - | '14dControl' - | '28dControl' - | '12wControl' - | '24wControl' - >; - - /** - * Array of datetimes to filter the start of a series. - */ - dateStart?: Array; - - /** - * Filter for dkim. - */ - dkim?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Filter for dmarc. - */ - dmarc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Format results are returned in. - */ - format?: 'JSON' | 'CSV'; - - /** - * Limit the number of objects in the response. - */ - limit?: number; - - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - - /** - * Array of names that will be used to name the series in responses. - */ - name?: Array; - - /** - * Filter for spf. - */ - spf?: Array<'PASS' | 'NONE' | 'FAIL'>; -} - -export namespace ARC { - export import ARCGetResponse = ARCAPI.ARCGetResponse; - export import ARCGetParams = ARCAPI.ARCGetParams; -} +export class ARC extends APIResource {} diff --git a/src/resources/radar/email/security/top/locations/dkim.ts b/src/resources/radar/email/security/top/locations/dkim.ts index e2867e0760..7a4e0b47c1 100644 --- a/src/resources/radar/email/security/top/locations/dkim.ts +++ b/src/resources/radar/email/security/top/locations/dkim.ts @@ -1,179 +1,5 @@ // File generated from our OpenAPI spec by Stainless. -import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; -import { isRequestOptions } from 'cloudflare/core'; -import * as DKIMAPI from 'cloudflare/resources/radar/email/security/top/locations/dkim'; -export class DKIM extends APIResource { - /** - * Get the locations, by email DKIM validation. - */ - get( - dkim: 'PASS' | 'NONE' | 'FAIL', - query?: DKIMGetParams, - options?: Core.RequestOptions, - ): Core.APIPromise; - get(dkim: 'PASS' | 'NONE' | 'FAIL', options?: Core.RequestOptions): Core.APIPromise; - get( - dkim: 'PASS' | 'NONE' | 'FAIL', - query: DKIMGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get(dkim, {}, query); - } - return ( - this._client.get(`/radar/email/security/top/locations/dkim/${dkim}`, { - query, - ...options, - }) as Core.APIPromise<{ result: DKIMGetResponse }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface DKIMGetResponse { - meta: DKIMGetResponse.Meta; - - top_0: Array; -} - -export namespace DKIMGetResponse { - export interface Meta { - dateRange: Array; - - lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; - } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; - } -} - -export interface DKIMGetParams { - /** - * Filter for arc (Authenticated Received Chain). - */ - arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - - /** - * End of the date range (inclusive). - */ - dateEnd?: Array; - - /** - * For example, use `7d` and `7dControl` to compare this week with the previous - * week. Use this parameter or set specific start and end dates (`dateStart` and - * `dateEnd` parameters). - */ - dateRange?: Array< - | '1d' - | '2d' - | '7d' - | '14d' - | '28d' - | '12w' - | '24w' - | '52w' - | '1dControl' - | '2dControl' - | '7dControl' - | '14dControl' - | '28dControl' - | '12wControl' - | '24wControl' - >; - - /** - * Array of datetimes to filter the start of a series. - */ - dateStart?: Array; - - /** - * Filter for dmarc. - */ - dmarc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Format results are returned in. - */ - format?: 'JSON' | 'CSV'; - - /** - * Limit the number of objects in the response. - */ - limit?: number; - - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - - /** - * Array of names that will be used to name the series in responses. - */ - name?: Array; - - /** - * Filter for spf. - */ - spf?: Array<'PASS' | 'NONE' | 'FAIL'>; -} - -export namespace DKIM { - export import DKIMGetResponse = DKIMAPI.DKIMGetResponse; - export import DKIMGetParams = DKIMAPI.DKIMGetParams; -} +export class DKIM extends APIResource {} diff --git a/src/resources/radar/email/security/top/locations/dmarc.ts b/src/resources/radar/email/security/top/locations/dmarc.ts index d28f847c58..719be4129f 100644 --- a/src/resources/radar/email/security/top/locations/dmarc.ts +++ b/src/resources/radar/email/security/top/locations/dmarc.ts @@ -1,179 +1,5 @@ // File generated from our OpenAPI spec by Stainless. -import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; -import { isRequestOptions } from 'cloudflare/core'; -import * as DMARCAPI from 'cloudflare/resources/radar/email/security/top/locations/dmarc'; -export class DMARC extends APIResource { - /** - * Get the locations by email DMARC validation. - */ - get( - dmarc: 'PASS' | 'NONE' | 'FAIL', - query?: DMARCGetParams, - options?: Core.RequestOptions, - ): Core.APIPromise; - get(dmarc: 'PASS' | 'NONE' | 'FAIL', options?: Core.RequestOptions): Core.APIPromise; - get( - dmarc: 'PASS' | 'NONE' | 'FAIL', - query: DMARCGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get(dmarc, {}, query); - } - return ( - this._client.get(`/radar/email/security/top/locations/dmarc/${dmarc}`, { - query, - ...options, - }) as Core.APIPromise<{ result: DMARCGetResponse }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface DMARCGetResponse { - meta: DMARCGetResponse.Meta; - - top_0: Array; -} - -export namespace DMARCGetResponse { - export interface Meta { - dateRange: Array; - - lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; - } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; - } -} - -export interface DMARCGetParams { - /** - * Filter for arc (Authenticated Received Chain). - */ - arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - - /** - * End of the date range (inclusive). - */ - dateEnd?: Array; - - /** - * For example, use `7d` and `7dControl` to compare this week with the previous - * week. Use this parameter or set specific start and end dates (`dateStart` and - * `dateEnd` parameters). - */ - dateRange?: Array< - | '1d' - | '2d' - | '7d' - | '14d' - | '28d' - | '12w' - | '24w' - | '52w' - | '1dControl' - | '2dControl' - | '7dControl' - | '14dControl' - | '28dControl' - | '12wControl' - | '24wControl' - >; - - /** - * Array of datetimes to filter the start of a series. - */ - dateStart?: Array; - - /** - * Filter for dkim. - */ - dkim?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Format results are returned in. - */ - format?: 'JSON' | 'CSV'; - - /** - * Limit the number of objects in the response. - */ - limit?: number; - - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - - /** - * Array of names that will be used to name the series in responses. - */ - name?: Array; - - /** - * Filter for spf. - */ - spf?: Array<'PASS' | 'NONE' | 'FAIL'>; -} - -export namespace DMARC { - export import DMARCGetResponse = DMARCAPI.DMARCGetResponse; - export import DMARCGetParams = DMARCAPI.DMARCGetParams; -} +export class DMARC extends APIResource {} diff --git a/src/resources/radar/email/security/top/locations/index.ts b/src/resources/radar/email/security/top/locations/index.ts index caa1d8d37a..373e3554f0 100644 --- a/src/resources/radar/email/security/top/locations/index.ts +++ b/src/resources/radar/email/security/top/locations/index.ts @@ -1,9 +1,9 @@ // File generated from our OpenAPI spec by Stainless. -export { ARCGetResponse, ARCGetParams, ARC } from './arc'; -export { DKIMGetResponse, DKIMGetParams, DKIM } from './dkim'; -export { DMARCGetResponse, DMARCGetParams, DMARC } from './dmarc'; -export { LocationGetResponse, LocationGetParams, Locations } from './locations'; -export { MaliciousGetResponse, MaliciousGetParams, Malicious } from './malicious'; -export { SPFGetResponse, SPFGetParams, SPF } from './spf'; -export { SpamGetResponse, SpamGetParams, Spam } from './spam'; +export { ARC } from './arc'; +export { DKIM } from './dkim'; +export { DMARC } from './dmarc'; +export { Locations } from './locations'; +export { Malicious } from './malicious'; +export { SPF } from './spf'; +export { Spam } from './spam'; diff --git a/src/resources/radar/email/security/top/locations/locations.ts b/src/resources/radar/email/security/top/locations/locations.ts index e0899d62b2..c12e16cde1 100644 --- a/src/resources/radar/email/security/top/locations/locations.ts +++ b/src/resources/radar/email/security/top/locations/locations.ts @@ -1,9 +1,6 @@ // File generated from our OpenAPI spec by Stainless. -import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; -import { isRequestOptions } from 'cloudflare/core'; -import * as LocationsAPI from 'cloudflare/resources/radar/email/security/top/locations/locations'; import * as ARCAPI from 'cloudflare/resources/radar/email/security/top/locations/arc'; import * as DKIMAPI from 'cloudflare/resources/radar/email/security/top/locations/dkim'; import * as DMARCAPI from 'cloudflare/resources/radar/email/security/top/locations/dmarc'; @@ -18,193 +15,13 @@ export class Locations extends APIResource { malicious: MaliciousAPI.Malicious = new MaliciousAPI.Malicious(this._client); spam: SpamAPI.Spam = new SpamAPI.Spam(this._client); spf: SPFAPI.SPF = new SPFAPI.SPF(this._client); - - /** - * Get the top locations by email messages. Values are a percentage out of the - * total emails. - */ - get(query?: LocationGetParams, options?: Core.RequestOptions): Core.APIPromise; - get(options?: Core.RequestOptions): Core.APIPromise; - get( - query: LocationGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get({}, query); - } - return ( - this._client.get('/radar/email/security/top/locations', { query, ...options }) as Core.APIPromise<{ - result: LocationGetResponse; - }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface LocationGetResponse { - meta: LocationGetResponse.Meta; - - top_0: Array; -} - -export namespace LocationGetResponse { - export interface Meta { - dateRange: Array; - - lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; - } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; - } -} - -export interface LocationGetParams { - /** - * Filter for arc (Authenticated Received Chain). - */ - arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - - /** - * End of the date range (inclusive). - */ - dateEnd?: Array; - - /** - * For example, use `7d` and `7dControl` to compare this week with the previous - * week. Use this parameter or set specific start and end dates (`dateStart` and - * `dateEnd` parameters). - */ - dateRange?: Array< - | '1d' - | '2d' - | '7d' - | '14d' - | '28d' - | '12w' - | '24w' - | '52w' - | '1dControl' - | '2dControl' - | '7dControl' - | '14dControl' - | '28dControl' - | '12wControl' - | '24wControl' - >; - - /** - * Array of datetimes to filter the start of a series. - */ - dateStart?: Array; - - /** - * Filter for dkim. - */ - dkim?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Filter for dmarc. - */ - dmarc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Format results are returned in. - */ - format?: 'JSON' | 'CSV'; - - /** - * Limit the number of objects in the response. - */ - limit?: number; - - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - - /** - * Array of names that will be used to name the series in responses. - */ - name?: Array; - - /** - * Filter for spf. - */ - spf?: Array<'PASS' | 'NONE' | 'FAIL'>; } export namespace Locations { - export import LocationGetResponse = LocationsAPI.LocationGetResponse; - export import LocationGetParams = LocationsAPI.LocationGetParams; export import ARC = ARCAPI.ARC; - export import ARCGetResponse = ARCAPI.ARCGetResponse; - export import ARCGetParams = ARCAPI.ARCGetParams; export import DKIM = DKIMAPI.DKIM; - export import DKIMGetResponse = DKIMAPI.DKIMGetResponse; - export import DKIMGetParams = DKIMAPI.DKIMGetParams; export import DMARC = DMARCAPI.DMARC; - export import DMARCGetResponse = DMARCAPI.DMARCGetResponse; - export import DMARCGetParams = DMARCAPI.DMARCGetParams; export import Malicious = MaliciousAPI.Malicious; - export import MaliciousGetResponse = MaliciousAPI.MaliciousGetResponse; - export import MaliciousGetParams = MaliciousAPI.MaliciousGetParams; export import Spam = SpamAPI.Spam; - export import SpamGetResponse = SpamAPI.SpamGetResponse; - export import SpamGetParams = SpamAPI.SpamGetParams; export import SPF = SPFAPI.SPF; - export import SPFGetResponse = SPFAPI.SPFGetResponse; - export import SPFGetParams = SPFAPI.SPFGetParams; } diff --git a/src/resources/radar/email/security/top/locations/malicious.ts b/src/resources/radar/email/security/top/locations/malicious.ts index b99a71db78..9ce1fdcd6e 100644 --- a/src/resources/radar/email/security/top/locations/malicious.ts +++ b/src/resources/radar/email/security/top/locations/malicious.ts @@ -1,187 +1,5 @@ // File generated from our OpenAPI spec by Stainless. -import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; -import { isRequestOptions } from 'cloudflare/core'; -import * as MaliciousAPI from 'cloudflare/resources/radar/email/security/top/locations/malicious'; -export class Malicious extends APIResource { - /** - * Get the locations by emails classified as malicious or not. - */ - get( - malicious: 'MALICIOUS' | 'NOT_MALICIOUS', - query?: MaliciousGetParams, - options?: Core.RequestOptions, - ): Core.APIPromise; - get( - malicious: 'MALICIOUS' | 'NOT_MALICIOUS', - options?: Core.RequestOptions, - ): Core.APIPromise; - get( - malicious: 'MALICIOUS' | 'NOT_MALICIOUS', - query: MaliciousGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get(malicious, {}, query); - } - return ( - this._client.get(`/radar/email/security/top/locations/malicious/${malicious}`, { - query, - ...options, - }) as Core.APIPromise<{ result: MaliciousGetResponse }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface MaliciousGetResponse { - meta: MaliciousGetResponse.Meta; - - top_0: Array; -} - -export namespace MaliciousGetResponse { - export interface Meta { - dateRange: Array; - - lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; - } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; - } -} - -export interface MaliciousGetParams { - /** - * Filter for arc (Authenticated Received Chain). - */ - arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - - /** - * End of the date range (inclusive). - */ - dateEnd?: Array; - - /** - * For example, use `7d` and `7dControl` to compare this week with the previous - * week. Use this parameter or set specific start and end dates (`dateStart` and - * `dateEnd` parameters). - */ - dateRange?: Array< - | '1d' - | '2d' - | '7d' - | '14d' - | '28d' - | '12w' - | '24w' - | '52w' - | '1dControl' - | '2dControl' - | '7dControl' - | '14dControl' - | '28dControl' - | '12wControl' - | '24wControl' - >; - - /** - * Array of datetimes to filter the start of a series. - */ - dateStart?: Array; - - /** - * Filter for dkim. - */ - dkim?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Filter for dmarc. - */ - dmarc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Format results are returned in. - */ - format?: 'JSON' | 'CSV'; - - /** - * Limit the number of objects in the response. - */ - limit?: number; - - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - - /** - * Array of names that will be used to name the series in responses. - */ - name?: Array; - - /** - * Filter for spf. - */ - spf?: Array<'PASS' | 'NONE' | 'FAIL'>; -} - -export namespace Malicious { - export import MaliciousGetResponse = MaliciousAPI.MaliciousGetResponse; - export import MaliciousGetParams = MaliciousAPI.MaliciousGetParams; -} +export class Malicious extends APIResource {} diff --git a/src/resources/radar/email/security/top/locations/spam.ts b/src/resources/radar/email/security/top/locations/spam.ts index 466419ca51..3a98dc6546 100644 --- a/src/resources/radar/email/security/top/locations/spam.ts +++ b/src/resources/radar/email/security/top/locations/spam.ts @@ -1,184 +1,5 @@ // File generated from our OpenAPI spec by Stainless. -import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; -import { isRequestOptions } from 'cloudflare/core'; -import * as SpamAPI from 'cloudflare/resources/radar/email/security/top/locations/spam'; -export class Spam extends APIResource { - /** - * Get the top locations by emails classified as Spam or not. - */ - get( - spam: 'SPAM' | 'NOT_SPAM', - query?: SpamGetParams, - options?: Core.RequestOptions, - ): Core.APIPromise; - get(spam: 'SPAM' | 'NOT_SPAM', options?: Core.RequestOptions): Core.APIPromise; - get( - spam: 'SPAM' | 'NOT_SPAM', - query: SpamGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get(spam, {}, query); - } - return ( - this._client.get(`/radar/email/security/top/locations/spam/${spam}`, { - query, - ...options, - }) as Core.APIPromise<{ result: SpamGetResponse }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface SpamGetResponse { - meta: SpamGetResponse.Meta; - - top_0: Array; -} - -export namespace SpamGetResponse { - export interface Meta { - dateRange: Array; - - lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; - } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; - } -} - -export interface SpamGetParams { - /** - * Filter for arc (Authenticated Received Chain). - */ - arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - - /** - * End of the date range (inclusive). - */ - dateEnd?: Array; - - /** - * For example, use `7d` and `7dControl` to compare this week with the previous - * week. Use this parameter or set specific start and end dates (`dateStart` and - * `dateEnd` parameters). - */ - dateRange?: Array< - | '1d' - | '2d' - | '7d' - | '14d' - | '28d' - | '12w' - | '24w' - | '52w' - | '1dControl' - | '2dControl' - | '7dControl' - | '14dControl' - | '28dControl' - | '12wControl' - | '24wControl' - >; - - /** - * Array of datetimes to filter the start of a series. - */ - dateStart?: Array; - - /** - * Filter for dkim. - */ - dkim?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Filter for dmarc. - */ - dmarc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Format results are returned in. - */ - format?: 'JSON' | 'CSV'; - - /** - * Limit the number of objects in the response. - */ - limit?: number; - - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - - /** - * Array of names that will be used to name the series in responses. - */ - name?: Array; - - /** - * Filter for spf. - */ - spf?: Array<'PASS' | 'NONE' | 'FAIL'>; -} - -export namespace Spam { - export import SpamGetResponse = SpamAPI.SpamGetResponse; - export import SpamGetParams = SpamAPI.SpamGetParams; -} +export class Spam extends APIResource {} diff --git a/src/resources/radar/email/security/top/locations/spf.ts b/src/resources/radar/email/security/top/locations/spf.ts index 5995c01119..89e9bb8c4f 100644 --- a/src/resources/radar/email/security/top/locations/spf.ts +++ b/src/resources/radar/email/security/top/locations/spf.ts @@ -1,179 +1,5 @@ // File generated from our OpenAPI spec by Stainless. -import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; -import { isRequestOptions } from 'cloudflare/core'; -import * as SPFAPI from 'cloudflare/resources/radar/email/security/top/locations/spf'; -export class SPF extends APIResource { - /** - * Get the top locations by email SPF validation. - */ - get( - spf: 'PASS' | 'NONE' | 'FAIL', - query?: SPFGetParams, - options?: Core.RequestOptions, - ): Core.APIPromise; - get(spf: 'PASS' | 'NONE' | 'FAIL', options?: Core.RequestOptions): Core.APIPromise; - get( - spf: 'PASS' | 'NONE' | 'FAIL', - query: SPFGetParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(query)) { - return this.get(spf, {}, query); - } - return ( - this._client.get(`/radar/email/security/top/locations/spf/${spf}`, { - query, - ...options, - }) as Core.APIPromise<{ result: SPFGetResponse }> - )._thenUnwrap((obj) => obj.result); - } -} - -export interface SPFGetResponse { - meta: SPFGetResponse.Meta; - - top_0: Array; -} - -export namespace SPFGetResponse { - export interface Meta { - dateRange: Array; - - lastUpdated: string; - - confidenceInfo?: Meta.ConfidenceInfo; - } - - export namespace Meta { - export interface DateRange { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; - } - - export interface ConfidenceInfo { - annotations?: Array; - - level?: number; - } - - export namespace ConfidenceInfo { - export interface Annotation { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; - } - } - } - - export interface Top0 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; - } -} - -export interface SPFGetParams { - /** - * Filter for arc (Authenticated Received Chain). - */ - arc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Array of comma separated list of ASNs, start with `-` to exclude from results. - * For example, `-174, 3356` excludes results from AS174, but includes results from - * AS3356. - */ - asn?: Array; - - /** - * End of the date range (inclusive). - */ - dateEnd?: Array; - - /** - * For example, use `7d` and `7dControl` to compare this week with the previous - * week. Use this parameter or set specific start and end dates (`dateStart` and - * `dateEnd` parameters). - */ - dateRange?: Array< - | '1d' - | '2d' - | '7d' - | '14d' - | '28d' - | '12w' - | '24w' - | '52w' - | '1dControl' - | '2dControl' - | '7dControl' - | '14dControl' - | '28dControl' - | '12wControl' - | '24wControl' - >; - - /** - * Array of datetimes to filter the start of a series. - */ - dateStart?: Array; - - /** - * Filter for dkim. - */ - dkim?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Filter for dmarc. - */ - dmarc?: Array<'PASS' | 'NONE' | 'FAIL'>; - - /** - * Format results are returned in. - */ - format?: 'JSON' | 'CSV'; - - /** - * Limit the number of objects in the response. - */ - limit?: number; - - /** - * Array of comma separated list of locations (alpha-2 country codes). Start with - * `-` to exclude from results. For example, `-US,PT` excludes results from the US, - * but includes results from PT. - */ - location?: Array; - - /** - * Array of names that will be used to name the series in responses. - */ - name?: Array; -} - -export namespace SPF { - export import SPFGetResponse = SPFAPI.SPFGetResponse; - export import SPFGetParams = SPFAPI.SPFGetParams; -} +export class SPF extends APIResource {} diff --git a/src/resources/radar/email/security/top/top.ts b/src/resources/radar/email/security/top/top.ts index 3fa95fec5e..3727557383 100644 --- a/src/resources/radar/email/security/top/top.ts +++ b/src/resources/radar/email/security/top/top.ts @@ -11,9 +11,5 @@ export class Top extends APIResource { export namespace Top { export import Ases = AsesAPI.Ases; - export import AseGetResponse = AsesAPI.AseGetResponse; - export import AseGetParams = AsesAPI.AseGetParams; export import Locations = LocationsAPI.Locations; - export import LocationGetResponse = LocationsAPI.LocationGetResponse; - export import LocationGetParams = LocationsAPI.LocationGetParams; } diff --git a/src/resources/radar/http/ases/ases.ts b/src/resources/radar/http/ases/ases.ts index 49543e644e..8dd32046b5 100644 --- a/src/resources/radar/http/ases/ases.ts +++ b/src/resources/radar/http/ases/ases.ts @@ -118,6 +118,13 @@ export interface AseGetParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/ases/bot-class.ts b/src/resources/radar/http/ases/bot-class.ts index 9d4f05bff9..0b0a5b34a3 100644 --- a/src/resources/radar/http/ases/bot-class.ts +++ b/src/resources/radar/http/ases/bot-class.ts @@ -108,6 +108,13 @@ export interface BotClassGetParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/ases/device-type.ts b/src/resources/radar/http/ases/device-type.ts index 4c371f841c..11ccd4df9a 100644 --- a/src/resources/radar/http/ases/device-type.ts +++ b/src/resources/radar/http/ases/device-type.ts @@ -112,6 +112,13 @@ export interface DeviceTypeGetParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/ases/http-method.ts b/src/resources/radar/http/ases/http-method.ts index 0999b3e15d..ec8b1a7a46 100644 --- a/src/resources/radar/http/ases/http-method.ts +++ b/src/resources/radar/http/ases/http-method.ts @@ -112,6 +112,13 @@ export interface HTTPMethodGetParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/ases/http-protocol.ts b/src/resources/radar/http/ases/http-protocol.ts index ed93b0a867..37cbb4ee66 100644 --- a/src/resources/radar/http/ases/http-protocol.ts +++ b/src/resources/radar/http/ases/http-protocol.ts @@ -112,6 +112,13 @@ export interface HTTPProtocolGetParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/ases/ip-version.ts b/src/resources/radar/http/ases/ip-version.ts index 1ea51508b0..e036cfc674 100644 --- a/src/resources/radar/http/ases/ip-version.ts +++ b/src/resources/radar/http/ases/ip-version.ts @@ -109,6 +109,13 @@ export interface IPVersionGetParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/ases/os.ts b/src/resources/radar/http/ases/os.ts index a5b45e2db7..646e315f72 100644 --- a/src/resources/radar/http/ases/os.ts +++ b/src/resources/radar/http/ases/os.ts @@ -111,6 +111,13 @@ export interface OSGetParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/ases/tls-version.ts b/src/resources/radar/http/ases/tls-version.ts index d9f9687afa..3dd4b95c8d 100644 --- a/src/resources/radar/http/ases/tls-version.ts +++ b/src/resources/radar/http/ases/tls-version.ts @@ -112,6 +112,13 @@ export interface TLSVersionGetParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/locations/bot-class.ts b/src/resources/radar/http/locations/bot-class.ts index 36d24f7d2e..bb64abee50 100644 --- a/src/resources/radar/http/locations/bot-class.ts +++ b/src/resources/radar/http/locations/bot-class.ts @@ -108,6 +108,13 @@ export interface BotClassGetParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/locations/device-type.ts b/src/resources/radar/http/locations/device-type.ts index 899b757d62..948fdfbdfb 100644 --- a/src/resources/radar/http/locations/device-type.ts +++ b/src/resources/radar/http/locations/device-type.ts @@ -112,6 +112,13 @@ export interface DeviceTypeGetParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/locations/http-method.ts b/src/resources/radar/http/locations/http-method.ts index 578ab923eb..cdd51b601e 100644 --- a/src/resources/radar/http/locations/http-method.ts +++ b/src/resources/radar/http/locations/http-method.ts @@ -112,6 +112,13 @@ export interface HTTPMethodGetParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/locations/http-protocol.ts b/src/resources/radar/http/locations/http-protocol.ts index e4c594a878..b4b5241a2a 100644 --- a/src/resources/radar/http/locations/http-protocol.ts +++ b/src/resources/radar/http/locations/http-protocol.ts @@ -112,6 +112,13 @@ export interface HTTPProtocolGetParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/locations/ip-version.ts b/src/resources/radar/http/locations/ip-version.ts index e74f197767..5eac5a1cff 100644 --- a/src/resources/radar/http/locations/ip-version.ts +++ b/src/resources/radar/http/locations/ip-version.ts @@ -109,6 +109,13 @@ export interface IPVersionGetParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/locations/locations.ts b/src/resources/radar/http/locations/locations.ts index adfb463a71..946117a761 100644 --- a/src/resources/radar/http/locations/locations.ts +++ b/src/resources/radar/http/locations/locations.ts @@ -118,6 +118,13 @@ export interface LocationGetParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/locations/os.ts b/src/resources/radar/http/locations/os.ts index 7575a4932c..1257c4c748 100644 --- a/src/resources/radar/http/locations/os.ts +++ b/src/resources/radar/http/locations/os.ts @@ -111,6 +111,13 @@ export interface OSGetParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/locations/tls-version.ts b/src/resources/radar/http/locations/tls-version.ts index 29c509c2d8..77cb14d83a 100644 --- a/src/resources/radar/http/locations/tls-version.ts +++ b/src/resources/radar/http/locations/tls-version.ts @@ -112,6 +112,13 @@ export interface TLSVersionGetParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/summary.ts b/src/resources/radar/http/summary.ts index 62092d1740..b41100d4e8 100644 --- a/src/resources/radar/http/summary.ts +++ b/src/resources/radar/http/summary.ts @@ -618,6 +618,13 @@ export interface SummaryBotClassParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -713,6 +720,13 @@ export interface SummaryDeviceTypeParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -803,6 +817,13 @@ export interface SummaryHTTPProtocolParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -893,6 +914,13 @@ export interface SummaryHTTPVersionParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -983,6 +1011,13 @@ export interface SummaryIPVersionParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -1073,6 +1108,13 @@ export interface SummaryOSParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -1163,6 +1205,13 @@ export interface SummaryTLSVersionParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/timeseries-groups.ts b/src/resources/radar/http/timeseries-groups.ts index 8435b2c413..4a14075292 100644 --- a/src/resources/radar/http/timeseries-groups.ts +++ b/src/resources/radar/http/timeseries-groups.ts @@ -379,6 +379,13 @@ export interface TimeseriesGroupBotClassParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -481,6 +488,13 @@ export interface TimeseriesGroupBrowserParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -589,6 +603,13 @@ export interface TimeseriesGroupBrowserFamilyParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -691,6 +712,13 @@ export interface TimeseriesGroupDeviceTypeParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -788,6 +816,13 @@ export interface TimeseriesGroupHTTPProtocolParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -885,6 +920,13 @@ export interface TimeseriesGroupHTTPVersionParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -982,6 +1024,13 @@ export interface TimeseriesGroupIPVersionParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -1079,6 +1128,13 @@ export interface TimeseriesGroupOSParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -1176,6 +1232,13 @@ export interface TimeseriesGroupTLSVersionParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/http/top.ts b/src/resources/radar/http/top.ts index 5d7c7a4858..4aee0c7a42 100644 --- a/src/resources/radar/http/top.ts +++ b/src/resources/radar/http/top.ts @@ -184,6 +184,13 @@ export interface TopBrowserFamiliesParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -284,6 +291,13 @@ export interface TopBrowsersParams { */ botClass?: Array<'LIKELY_AUTOMATED' | 'LIKELY_HUMAN'>; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/netflows/netflows.ts b/src/resources/radar/netflows/netflows.ts index dc31f0ad87..b60577aa56 100644 --- a/src/resources/radar/netflows/netflows.ts +++ b/src/resources/radar/netflows/netflows.ts @@ -110,6 +110,13 @@ export interface NetflowTimeseriesParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/netflows/top.ts b/src/resources/radar/netflows/top.ts index b7dab1bf0b..6078dd098c 100644 --- a/src/resources/radar/netflows/top.ts +++ b/src/resources/radar/netflows/top.ts @@ -83,6 +83,13 @@ export interface TopAsesParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -147,6 +154,13 @@ export interface TopLocationsParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/quality/speed/speed.ts b/src/resources/radar/quality/speed/speed.ts index 5dd111a5c6..977f41571b 100644 --- a/src/resources/radar/quality/speed/speed.ts +++ b/src/resources/radar/quality/speed/speed.ts @@ -154,6 +154,13 @@ export interface SpeedHistogramParams { */ bucketSize?: number; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -190,6 +197,13 @@ export interface SpeedSummaryParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/quality/speed/top.ts b/src/resources/radar/quality/speed/top.ts index 304b446ec2..e7ec2d5057 100644 --- a/src/resources/radar/quality/speed/top.ts +++ b/src/resources/radar/quality/speed/top.ts @@ -207,6 +207,13 @@ export interface TopAsesParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -259,6 +266,13 @@ export interface TopLocationsParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/src/resources/radar/verified-bots/top.ts b/src/resources/radar/verified-bots/top.ts index 65646f1deb..69eeab2d35 100644 --- a/src/resources/radar/verified-bots/top.ts +++ b/src/resources/radar/verified-bots/top.ts @@ -177,6 +177,13 @@ export interface TopBotsParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ @@ -241,6 +248,13 @@ export interface TopCategoriesParams { */ asn?: Array; + /** + * Array of comma separated list of continents (alpha-2 continent codes). Start + * with `-` to exclude from results. For example, `-EU,NA` excludes results from + * Europe, but includes results from North America. + */ + continent?: Array; + /** * End of the date range (inclusive). */ diff --git a/tests/api-resources/radar/as112/as112.test.ts b/tests/api-resources/radar/as112/as112.test.ts index 6db8b44cd8..ee62501444 100644 --- a/tests/api-resources/radar/as112/as112.test.ts +++ b/tests/api-resources/radar/as112/as112.test.ts @@ -41,6 +41,7 @@ describe('resource as112', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/as112/summary.test.ts b/tests/api-resources/radar/as112/summary.test.ts index 7d96cb9585..391a87b042 100644 --- a/tests/api-resources/radar/as112/summary.test.ts +++ b/tests/api-resources/radar/as112/summary.test.ts @@ -40,6 +40,7 @@ describe('resource summary', () => { cloudflare.radar.as112.summary.dnssec( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -79,6 +80,7 @@ describe('resource summary', () => { cloudflare.radar.as112.summary.edns( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -118,6 +120,7 @@ describe('resource summary', () => { cloudflare.radar.as112.summary.ipVersion( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -157,6 +160,7 @@ describe('resource summary', () => { cloudflare.radar.as112.summary.protocol( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -196,6 +200,7 @@ describe('resource summary', () => { cloudflare.radar.as112.summary.queryType( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -235,6 +240,7 @@ describe('resource summary', () => { cloudflare.radar.as112.summary.responseCodes( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/as112/timeseries-groups.test.ts b/tests/api-resources/radar/as112/timeseries-groups.test.ts index d4129526fb..70889d757d 100644 --- a/tests/api-resources/radar/as112/timeseries-groups.test.ts +++ b/tests/api-resources/radar/as112/timeseries-groups.test.ts @@ -41,6 +41,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -81,6 +82,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -121,6 +123,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -161,6 +164,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -201,6 +205,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -241,6 +246,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/as112/top.test.ts b/tests/api-resources/radar/as112/top.test.ts index dbfc7b5d9d..707efe2a7a 100644 --- a/tests/api-resources/radar/as112/top.test.ts +++ b/tests/api-resources/radar/as112/top.test.ts @@ -41,6 +41,7 @@ describe('resource top', () => { 'SUPPORTED', { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -82,6 +83,7 @@ describe('resource top', () => { 'SUPPORTED', { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -123,6 +125,7 @@ describe('resource top', () => { 'IPv4', { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -163,6 +166,7 @@ describe('resource top', () => { cloudflare.radar.as112.top.locations( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/attacks/layer3/layer3.test.ts b/tests/api-resources/radar/attacks/layer3/layer3.test.ts index ae5fba82e3..debed591bf 100644 --- a/tests/api-resources/radar/attacks/layer3/layer3.test.ts +++ b/tests/api-resources/radar/attacks/layer3/layer3.test.ts @@ -41,6 +41,7 @@ describe('resource layer3', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/attacks/layer3/summary.test.ts b/tests/api-resources/radar/attacks/layer3/summary.test.ts index e60ca9fdfc..3c52f6a205 100644 --- a/tests/api-resources/radar/attacks/layer3/summary.test.ts +++ b/tests/api-resources/radar/attacks/layer3/summary.test.ts @@ -39,6 +39,7 @@ describe('resource summary', () => { await expect( cloudflare.radar.attacks.layer3.summary.bitrate( { + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -80,6 +81,7 @@ describe('resource summary', () => { await expect( cloudflare.radar.attacks.layer3.summary.duration( { + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -122,6 +124,7 @@ describe('resource summary', () => { cloudflare.radar.attacks.layer3.summary.get( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -160,6 +163,7 @@ describe('resource summary', () => { await expect( cloudflare.radar.attacks.layer3.summary.ipVersion( { + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -200,6 +204,7 @@ describe('resource summary', () => { await expect( cloudflare.radar.attacks.layer3.summary.protocol( { + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -240,6 +245,7 @@ describe('resource summary', () => { await expect( cloudflare.radar.attacks.layer3.summary.vector( { + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/attacks/layer3/timeseries-groups.test.ts b/tests/api-resources/radar/attacks/layer3/timeseries-groups.test.ts index 11aa335d5d..a7423bb95f 100644 --- a/tests/api-resources/radar/attacks/layer3/timeseries-groups.test.ts +++ b/tests/api-resources/radar/attacks/layer3/timeseries-groups.test.ts @@ -40,6 +40,7 @@ describe('resource timeseriesGroups', () => { cloudflare.radar.attacks.layer3.timeseriesGroups.bitrate( { aggInterval: '1h', + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -83,6 +84,7 @@ describe('resource timeseriesGroups', () => { cloudflare.radar.attacks.layer3.timeseriesGroups.duration( { aggInterval: '1h', + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -127,6 +129,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -166,6 +169,7 @@ describe('resource timeseriesGroups', () => { cloudflare.radar.attacks.layer3.timeseriesGroups.industry( { aggInterval: '1h', + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -209,6 +213,7 @@ describe('resource timeseriesGroups', () => { cloudflare.radar.attacks.layer3.timeseriesGroups.ipVersion( { aggInterval: '1h', + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -251,6 +256,7 @@ describe('resource timeseriesGroups', () => { cloudflare.radar.attacks.layer3.timeseriesGroups.protocol( { aggInterval: '1h', + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -293,6 +299,7 @@ describe('resource timeseriesGroups', () => { cloudflare.radar.attacks.layer3.timeseriesGroups.vector( { aggInterval: '1h', + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -337,6 +344,7 @@ describe('resource timeseriesGroups', () => { cloudflare.radar.attacks.layer3.timeseriesGroups.vertical( { aggInterval: '1h', + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/attacks/layer3/top/locations.test.ts b/tests/api-resources/radar/attacks/layer3/top/locations.test.ts index 553fa206ae..c775d66f93 100644 --- a/tests/api-resources/radar/attacks/layer3/top/locations.test.ts +++ b/tests/api-resources/radar/attacks/layer3/top/locations.test.ts @@ -39,6 +39,7 @@ describe('resource locations', () => { await expect( cloudflare.radar.attacks.layer3.top.locations.origin( { + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -80,6 +81,7 @@ describe('resource locations', () => { await expect( cloudflare.radar.attacks.layer3.top.locations.target( { + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/attacks/layer3/top/top.test.ts b/tests/api-resources/radar/attacks/layer3/top/top.test.ts index c726a86a5a..39f2b8346c 100644 --- a/tests/api-resources/radar/attacks/layer3/top/top.test.ts +++ b/tests/api-resources/radar/attacks/layer3/top/top.test.ts @@ -39,6 +39,7 @@ describe('resource top', () => { await expect( cloudflare.radar.attacks.layer3.top.attacks( { + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -82,6 +83,7 @@ describe('resource top', () => { await expect( cloudflare.radar.attacks.layer3.top.industry( { + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -123,6 +125,7 @@ describe('resource top', () => { await expect( cloudflare.radar.attacks.layer3.top.vertical( { + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/attacks/layer7/layer7.test.ts b/tests/api-resources/radar/attacks/layer7/layer7.test.ts index 4636cd78be..0410c6a9fa 100644 --- a/tests/api-resources/radar/attacks/layer7/layer7.test.ts +++ b/tests/api-resources/radar/attacks/layer7/layer7.test.ts @@ -42,6 +42,7 @@ describe('resource layer7', () => { aggInterval: '1h', asn: ['string', 'string', 'string'], attack: ['DDOS', 'WAF', 'BOT_MANAGEMENT'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/attacks/layer7/summary.test.ts b/tests/api-resources/radar/attacks/layer7/summary.test.ts index 266cbde2ef..965b0bde8c 100644 --- a/tests/api-resources/radar/attacks/layer7/summary.test.ts +++ b/tests/api-resources/radar/attacks/layer7/summary.test.ts @@ -40,6 +40,7 @@ describe('resource summary', () => { cloudflare.radar.attacks.layer7.summary.get( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -79,6 +80,7 @@ describe('resource summary', () => { cloudflare.radar.attacks.layer7.summary.httpMethod( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -121,6 +123,7 @@ describe('resource summary', () => { cloudflare.radar.attacks.layer7.summary.httpVersion( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -163,6 +166,7 @@ describe('resource summary', () => { cloudflare.radar.attacks.layer7.summary.ipVersion( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -205,6 +209,7 @@ describe('resource summary', () => { cloudflare.radar.attacks.layer7.summary.managedRules( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -248,6 +253,7 @@ describe('resource summary', () => { cloudflare.radar.attacks.layer7.summary.mitigationProduct( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/attacks/layer7/timeseries-groups.test.ts b/tests/api-resources/radar/attacks/layer7/timeseries-groups.test.ts index 3ec60248c4..ba2f0da8ef 100644 --- a/tests/api-resources/radar/attacks/layer7/timeseries-groups.test.ts +++ b/tests/api-resources/radar/attacks/layer7/timeseries-groups.test.ts @@ -41,6 +41,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -81,6 +82,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -125,6 +127,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -169,6 +172,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -215,6 +219,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -259,6 +264,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -306,6 +312,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -350,6 +357,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/attacks/layer7/top/ases.test.ts b/tests/api-resources/radar/attacks/layer7/top/ases.test.ts index ff6b508f5e..8c25fbd331 100644 --- a/tests/api-resources/radar/attacks/layer7/top/ases.test.ts +++ b/tests/api-resources/radar/attacks/layer7/top/ases.test.ts @@ -39,6 +39,7 @@ describe('resource ases', () => { await expect( cloudflare.radar.attacks.layer7.top.ases.origin( { + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/attacks/layer7/top/locations.test.ts b/tests/api-resources/radar/attacks/layer7/top/locations.test.ts index 45bceb6180..009affa90f 100644 --- a/tests/api-resources/radar/attacks/layer7/top/locations.test.ts +++ b/tests/api-resources/radar/attacks/layer7/top/locations.test.ts @@ -40,6 +40,7 @@ describe('resource locations', () => { cloudflare.radar.attacks.layer7.top.locations.origin( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -78,6 +79,7 @@ describe('resource locations', () => { await expect( cloudflare.radar.attacks.layer7.top.locations.target( { + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/attacks/layer7/top/top.test.ts b/tests/api-resources/radar/attacks/layer7/top/top.test.ts index a5582d6aa5..0da21b5fdd 100644 --- a/tests/api-resources/radar/attacks/layer7/top/top.test.ts +++ b/tests/api-resources/radar/attacks/layer7/top/top.test.ts @@ -40,6 +40,7 @@ describe('resource top', () => { cloudflare.radar.attacks.layer7.top.attacks( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -83,6 +84,7 @@ describe('resource top', () => { cloudflare.radar.attacks.layer7.top.industry( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -123,6 +125,7 @@ describe('resource top', () => { cloudflare.radar.attacks.layer7.top.vertical( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/connection-tampering.test.ts b/tests/api-resources/radar/connection-tampering.test.ts index 79b984dc89..94caa0d420 100644 --- a/tests/api-resources/radar/connection-tampering.test.ts +++ b/tests/api-resources/radar/connection-tampering.test.ts @@ -40,6 +40,7 @@ describe('resource connectionTampering', () => { cloudflare.radar.connectionTampering.summary( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -80,6 +81,7 @@ describe('resource connectionTampering', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/dns/top.test.ts b/tests/api-resources/radar/dns/top.test.ts index 96c4c6ad51..fca446b642 100644 --- a/tests/api-resources/radar/dns/top.test.ts +++ b/tests/api-resources/radar/dns/top.test.ts @@ -30,6 +30,7 @@ describe('resource top', () => { const response = await cloudflare.radar.dns.top.ases({ domain: ['string', 'string', 'string'], asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -57,6 +58,7 @@ describe('resource top', () => { const response = await cloudflare.radar.dns.top.locations({ domain: ['string', 'string', 'string'], asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/email/security/summary.test.ts b/tests/api-resources/radar/email/security/summary.test.ts index 45b99b395f..c0fcf9cae0 100644 --- a/tests/api-resources/radar/email/security/summary.test.ts +++ b/tests/api-resources/radar/email/security/summary.test.ts @@ -39,16 +39,15 @@ describe('resource summary', () => { await expect( cloudflare.radar.email.security.summary.arc( { - asn: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dkim: ['PASS', 'NONE', 'FAIL'], dmarc: ['PASS', 'NONE', 'FAIL'], format: 'JSON', - location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], spf: ['PASS', 'NONE', 'FAIL'], + tlsVersion: ['TLSv1_0', 'TLSv1_1', 'TLSv1_2'], }, { path: '/_stainless_unknown_path' }, ), @@ -82,15 +81,14 @@ describe('resource summary', () => { cloudflare.radar.email.security.summary.dkim( { arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dmarc: ['PASS', 'NONE', 'FAIL'], format: 'JSON', - location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], spf: ['PASS', 'NONE', 'FAIL'], + tlsVersion: ['TLSv1_0', 'TLSv1_1', 'TLSv1_2'], }, { path: '/_stainless_unknown_path' }, ), @@ -124,15 +122,14 @@ describe('resource summary', () => { cloudflare.radar.email.security.summary.dmarc( { arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dkim: ['PASS', 'NONE', 'FAIL'], format: 'JSON', - location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], spf: ['PASS', 'NONE', 'FAIL'], + tlsVersion: ['TLSv1_0', 'TLSv1_1', 'TLSv1_2'], }, { path: '/_stainless_unknown_path' }, ), @@ -166,16 +163,15 @@ describe('resource summary', () => { cloudflare.radar.email.security.summary.malicious( { arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dkim: ['PASS', 'NONE', 'FAIL'], dmarc: ['PASS', 'NONE', 'FAIL'], format: 'JSON', - location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], spf: ['PASS', 'NONE', 'FAIL'], + tlsVersion: ['TLSv1_0', 'TLSv1_1', 'TLSv1_2'], }, { path: '/_stainless_unknown_path' }, ), @@ -209,16 +205,15 @@ describe('resource summary', () => { cloudflare.radar.email.security.summary.spam( { arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dkim: ['PASS', 'NONE', 'FAIL'], dmarc: ['PASS', 'NONE', 'FAIL'], format: 'JSON', - location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], spf: ['PASS', 'NONE', 'FAIL'], + tlsVersion: ['TLSv1_0', 'TLSv1_1', 'TLSv1_2'], }, { path: '/_stainless_unknown_path' }, ), @@ -252,15 +247,14 @@ describe('resource summary', () => { cloudflare.radar.email.security.summary.spf( { arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dkim: ['PASS', 'NONE', 'FAIL'], dmarc: ['PASS', 'NONE', 'FAIL'], format: 'JSON', - location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], + tlsVersion: ['TLSv1_0', 'TLSv1_1', 'TLSv1_2'], }, { path: '/_stainless_unknown_path' }, ), @@ -294,16 +288,15 @@ describe('resource summary', () => { cloudflare.radar.email.security.summary.threatCategory( { arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dkim: ['PASS', 'NONE', 'FAIL'], dmarc: ['PASS', 'NONE', 'FAIL'], format: 'JSON', - location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], spf: ['PASS', 'NONE', 'FAIL'], + tlsVersion: ['TLSv1_0', 'TLSv1_1', 'TLSv1_2'], }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/radar/email/security/timeseries-groups.test.ts b/tests/api-resources/radar/email/security/timeseries-groups.test.ts index 008471846b..058591934e 100644 --- a/tests/api-resources/radar/email/security/timeseries-groups.test.ts +++ b/tests/api-resources/radar/email/security/timeseries-groups.test.ts @@ -40,16 +40,15 @@ describe('resource timeseriesGroups', () => { cloudflare.radar.email.security.timeseriesGroups.arc( { aggInterval: '1h', - asn: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dkim: ['PASS', 'NONE', 'FAIL'], dmarc: ['PASS', 'NONE', 'FAIL'], format: 'JSON', - location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], spf: ['PASS', 'NONE', 'FAIL'], + tlsVersion: ['TLSv1_0', 'TLSv1_1', 'TLSv1_2'], }, { path: '/_stainless_unknown_path' }, ), @@ -84,15 +83,14 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dmarc: ['PASS', 'NONE', 'FAIL'], format: 'JSON', - location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], spf: ['PASS', 'NONE', 'FAIL'], + tlsVersion: ['TLSv1_0', 'TLSv1_1', 'TLSv1_2'], }, { path: '/_stainless_unknown_path' }, ), @@ -127,15 +125,14 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dkim: ['PASS', 'NONE', 'FAIL'], format: 'JSON', - location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], spf: ['PASS', 'NONE', 'FAIL'], + tlsVersion: ['TLSv1_0', 'TLSv1_1', 'TLSv1_2'], }, { path: '/_stainless_unknown_path' }, ), @@ -170,16 +167,15 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dkim: ['PASS', 'NONE', 'FAIL'], dmarc: ['PASS', 'NONE', 'FAIL'], format: 'JSON', - location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], spf: ['PASS', 'NONE', 'FAIL'], + tlsVersion: ['TLSv1_0', 'TLSv1_1', 'TLSv1_2'], }, { path: '/_stainless_unknown_path' }, ), @@ -214,16 +210,15 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dkim: ['PASS', 'NONE', 'FAIL'], dmarc: ['PASS', 'NONE', 'FAIL'], format: 'JSON', - location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], spf: ['PASS', 'NONE', 'FAIL'], + tlsVersion: ['TLSv1_0', 'TLSv1_1', 'TLSv1_2'], }, { path: '/_stainless_unknown_path' }, ), @@ -258,15 +253,14 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dkim: ['PASS', 'NONE', 'FAIL'], dmarc: ['PASS', 'NONE', 'FAIL'], format: 'JSON', - location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], + tlsVersion: ['TLSv1_0', 'TLSv1_1', 'TLSv1_2'], }, { path: '/_stainless_unknown_path' }, ), @@ -301,16 +295,15 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dkim: ['PASS', 'NONE', 'FAIL'], dmarc: ['PASS', 'NONE', 'FAIL'], format: 'JSON', - location: ['string', 'string', 'string'], name: ['string', 'string', 'string'], spf: ['PASS', 'NONE', 'FAIL'], + tlsVersion: ['TLSv1_0', 'TLSv1_1', 'TLSv1_2'], }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/radar/email/security/top/ases/arc.test.ts b/tests/api-resources/radar/email/security/top/ases/arc.test.ts deleted file mode 100644 index 320ca177b5..0000000000 --- a/tests/api-resources/radar/email/security/top/ases/arc.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - apiToken: 'Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY', - userServiceKey: - 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource arc', () => { - // skipped: tests are disabled for the time being - test.skip('get', async () => { - const responsePromise = cloudflare.radar.email.security.top.ases.arc.get('PASS'); - 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); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options instead of params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.ases.arc.get('PASS', { path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.ases.arc.get( - 'PASS', - { - asn: ['string', 'string', 'string'], - dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dateRange: ['1d', '2d', '7d'], - dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dkim: ['PASS', 'NONE', 'FAIL'], - dmarc: ['PASS', 'NONE', 'FAIL'], - format: 'JSON', - limit: 5, - location: ['string', 'string', 'string'], - name: ['string', 'string', 'string'], - spf: ['PASS', 'NONE', 'FAIL'], - }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); diff --git a/tests/api-resources/radar/email/security/top/ases/ases.test.ts b/tests/api-resources/radar/email/security/top/ases/ases.test.ts deleted file mode 100644 index 6867308c3c..0000000000 --- a/tests/api-resources/radar/email/security/top/ases/ases.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - apiToken: 'Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY', - userServiceKey: - 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource ases', () => { - // skipped: tests are disabled for the time being - test.skip('get', async () => { - const responsePromise = cloudflare.radar.email.security.top.ases.get(); - 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); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options instead of params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.ases.get({ path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.ases.get( - { - arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], - dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dateRange: ['1d', '2d', '7d'], - dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dkim: ['PASS', 'NONE', 'FAIL'], - dmarc: ['PASS', 'NONE', 'FAIL'], - format: 'JSON', - limit: 5, - location: ['string', 'string', 'string'], - name: ['string', 'string', 'string'], - spf: ['PASS', 'NONE', 'FAIL'], - }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); diff --git a/tests/api-resources/radar/email/security/top/ases/dkim.test.ts b/tests/api-resources/radar/email/security/top/ases/dkim.test.ts deleted file mode 100644 index d6883ad1a2..0000000000 --- a/tests/api-resources/radar/email/security/top/ases/dkim.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - apiToken: 'Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY', - userServiceKey: - 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource dkim', () => { - // skipped: tests are disabled for the time being - test.skip('get', async () => { - const responsePromise = cloudflare.radar.email.security.top.ases.dkim.get('PASS'); - 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); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options instead of params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.ases.dkim.get('PASS', { path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.ases.dkim.get( - 'PASS', - { - arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], - dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dateRange: ['1d', '2d', '7d'], - dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dmarc: ['PASS', 'NONE', 'FAIL'], - format: 'JSON', - limit: 5, - location: ['string', 'string', 'string'], - name: ['string', 'string', 'string'], - spf: ['PASS', 'NONE', 'FAIL'], - }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); diff --git a/tests/api-resources/radar/email/security/top/ases/dmarc.test.ts b/tests/api-resources/radar/email/security/top/ases/dmarc.test.ts deleted file mode 100644 index db0921f76a..0000000000 --- a/tests/api-resources/radar/email/security/top/ases/dmarc.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - apiToken: 'Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY', - userServiceKey: - 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource dmarc', () => { - // skipped: tests are disabled for the time being - test.skip('get', async () => { - const responsePromise = cloudflare.radar.email.security.top.ases.dmarc.get('PASS'); - 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); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options instead of params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.ases.dmarc.get('PASS', { path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.ases.dmarc.get( - 'PASS', - { - arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], - dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dateRange: ['1d', '2d', '7d'], - dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dkim: ['PASS', 'NONE', 'FAIL'], - format: 'JSON', - limit: 5, - location: ['string', 'string', 'string'], - name: ['string', 'string', 'string'], - spf: ['PASS', 'NONE', 'FAIL'], - }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); diff --git a/tests/api-resources/radar/email/security/top/ases/malicious.test.ts b/tests/api-resources/radar/email/security/top/ases/malicious.test.ts deleted file mode 100644 index 9ae7b995c4..0000000000 --- a/tests/api-resources/radar/email/security/top/ases/malicious.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - apiToken: 'Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY', - userServiceKey: - 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource malicious', () => { - // skipped: tests are disabled for the time being - test.skip('get', async () => { - const responsePromise = cloudflare.radar.email.security.top.ases.malicious.get('MALICIOUS'); - 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); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options instead of params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.ases.malicious.get('MALICIOUS', { - path: '/_stainless_unknown_path', - }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.ases.malicious.get( - 'MALICIOUS', - { - arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], - dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dateRange: ['1d', '2d', '7d'], - dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dkim: ['PASS', 'NONE', 'FAIL'], - dmarc: ['PASS', 'NONE', 'FAIL'], - format: 'JSON', - limit: 5, - location: ['string', 'string', 'string'], - name: ['string', 'string', 'string'], - spf: ['PASS', 'NONE', 'FAIL'], - }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); diff --git a/tests/api-resources/radar/email/security/top/ases/spam.test.ts b/tests/api-resources/radar/email/security/top/ases/spam.test.ts deleted file mode 100644 index bea2d7d95b..0000000000 --- a/tests/api-resources/radar/email/security/top/ases/spam.test.ts +++ /dev/null @@ -1,60 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - apiToken: 'Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY', - userServiceKey: - 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource spam', () => { - // skipped: tests are disabled for the time being - test.skip('get', async () => { - const responsePromise = cloudflare.radar.email.security.top.ases.spam.get('SPAM'); - 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); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options instead of params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.ases.spam.get('SPAM', { path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.ases.spam.get( - 'SPAM', - { - arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], - dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dateRange: ['1d', '2d', '7d'], - dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dkim: ['PASS', 'NONE', 'FAIL'], - dmarc: ['PASS', 'NONE', 'FAIL'], - format: 'JSON', - limit: 5, - location: ['string', 'string', 'string'], - name: ['string', 'string', 'string'], - spf: ['PASS', 'NONE', 'FAIL'], - }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); diff --git a/tests/api-resources/radar/email/security/top/ases/spf.test.ts b/tests/api-resources/radar/email/security/top/ases/spf.test.ts deleted file mode 100644 index b1c64c8e02..0000000000 --- a/tests/api-resources/radar/email/security/top/ases/spf.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - apiToken: 'Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY', - userServiceKey: - 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource spf', () => { - // skipped: tests are disabled for the time being - test.skip('get', async () => { - const responsePromise = cloudflare.radar.email.security.top.ases.spf.get('PASS'); - 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); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options instead of params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.ases.spf.get('PASS', { path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.ases.spf.get( - 'PASS', - { - arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], - dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dateRange: ['1d', '2d', '7d'], - dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dkim: ['PASS', 'NONE', 'FAIL'], - dmarc: ['PASS', 'NONE', 'FAIL'], - format: 'JSON', - limit: 5, - location: ['string', 'string', 'string'], - name: ['string', 'string', 'string'], - }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); diff --git a/tests/api-resources/radar/email/security/top/locations/arc.test.ts b/tests/api-resources/radar/email/security/top/locations/arc.test.ts deleted file mode 100644 index e613fa2eee..0000000000 --- a/tests/api-resources/radar/email/security/top/locations/arc.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - apiToken: 'Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY', - userServiceKey: - 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource arc', () => { - // skipped: tests are disabled for the time being - test.skip('get', async () => { - const responsePromise = cloudflare.radar.email.security.top.locations.arc.get('PASS'); - 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); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options instead of params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.locations.arc.get('PASS', { path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.locations.arc.get( - 'PASS', - { - asn: ['string', 'string', 'string'], - dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dateRange: ['1d', '2d', '7d'], - dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dkim: ['PASS', 'NONE', 'FAIL'], - dmarc: ['PASS', 'NONE', 'FAIL'], - format: 'JSON', - limit: 5, - location: ['string', 'string', 'string'], - name: ['string', 'string', 'string'], - spf: ['PASS', 'NONE', 'FAIL'], - }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); diff --git a/tests/api-resources/radar/email/security/top/locations/dkim.test.ts b/tests/api-resources/radar/email/security/top/locations/dkim.test.ts deleted file mode 100644 index 51e3750493..0000000000 --- a/tests/api-resources/radar/email/security/top/locations/dkim.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - apiToken: 'Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY', - userServiceKey: - 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource dkim', () => { - // skipped: tests are disabled for the time being - test.skip('get', async () => { - const responsePromise = cloudflare.radar.email.security.top.locations.dkim.get('PASS'); - 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); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options instead of params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.locations.dkim.get('PASS', { path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.locations.dkim.get( - 'PASS', - { - arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], - dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dateRange: ['1d', '2d', '7d'], - dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dmarc: ['PASS', 'NONE', 'FAIL'], - format: 'JSON', - limit: 5, - location: ['string', 'string', 'string'], - name: ['string', 'string', 'string'], - spf: ['PASS', 'NONE', 'FAIL'], - }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); diff --git a/tests/api-resources/radar/email/security/top/locations/dmarc.test.ts b/tests/api-resources/radar/email/security/top/locations/dmarc.test.ts deleted file mode 100644 index 36c9ff9dd5..0000000000 --- a/tests/api-resources/radar/email/security/top/locations/dmarc.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - apiToken: 'Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY', - userServiceKey: - 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource dmarc', () => { - // skipped: tests are disabled for the time being - test.skip('get', async () => { - const responsePromise = cloudflare.radar.email.security.top.locations.dmarc.get('PASS'); - 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); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options instead of params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.locations.dmarc.get('PASS', { path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.locations.dmarc.get( - 'PASS', - { - arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], - dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dateRange: ['1d', '2d', '7d'], - dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dkim: ['PASS', 'NONE', 'FAIL'], - format: 'JSON', - limit: 5, - location: ['string', 'string', 'string'], - name: ['string', 'string', 'string'], - spf: ['PASS', 'NONE', 'FAIL'], - }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); diff --git a/tests/api-resources/radar/email/security/top/locations/locations.test.ts b/tests/api-resources/radar/email/security/top/locations/locations.test.ts deleted file mode 100644 index 88f5a790b1..0000000000 --- a/tests/api-resources/radar/email/security/top/locations/locations.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - apiToken: 'Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY', - userServiceKey: - 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource locations', () => { - // skipped: tests are disabled for the time being - test.skip('get', async () => { - const responsePromise = cloudflare.radar.email.security.top.locations.get(); - 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); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options instead of params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.locations.get({ path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.locations.get( - { - arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], - dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dateRange: ['1d', '2d', '7d'], - dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dkim: ['PASS', 'NONE', 'FAIL'], - dmarc: ['PASS', 'NONE', 'FAIL'], - format: 'JSON', - limit: 5, - location: ['string', 'string', 'string'], - name: ['string', 'string', 'string'], - spf: ['PASS', 'NONE', 'FAIL'], - }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); diff --git a/tests/api-resources/radar/email/security/top/locations/malicious.test.ts b/tests/api-resources/radar/email/security/top/locations/malicious.test.ts deleted file mode 100644 index e134199f15..0000000000 --- a/tests/api-resources/radar/email/security/top/locations/malicious.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - apiToken: 'Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY', - userServiceKey: - 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource malicious', () => { - // skipped: tests are disabled for the time being - test.skip('get', async () => { - const responsePromise = cloudflare.radar.email.security.top.locations.malicious.get('MALICIOUS'); - 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); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options instead of params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.locations.malicious.get('MALICIOUS', { - path: '/_stainless_unknown_path', - }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.locations.malicious.get( - 'MALICIOUS', - { - arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], - dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dateRange: ['1d', '2d', '7d'], - dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dkim: ['PASS', 'NONE', 'FAIL'], - dmarc: ['PASS', 'NONE', 'FAIL'], - format: 'JSON', - limit: 5, - location: ['string', 'string', 'string'], - name: ['string', 'string', 'string'], - spf: ['PASS', 'NONE', 'FAIL'], - }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); diff --git a/tests/api-resources/radar/email/security/top/locations/spam.test.ts b/tests/api-resources/radar/email/security/top/locations/spam.test.ts deleted file mode 100644 index b79c3ea8c9..0000000000 --- a/tests/api-resources/radar/email/security/top/locations/spam.test.ts +++ /dev/null @@ -1,60 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - apiToken: 'Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY', - userServiceKey: - 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource spam', () => { - // skipped: tests are disabled for the time being - test.skip('get', async () => { - const responsePromise = cloudflare.radar.email.security.top.locations.spam.get('SPAM'); - 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); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options instead of params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.locations.spam.get('SPAM', { path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.locations.spam.get( - 'SPAM', - { - arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], - dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dateRange: ['1d', '2d', '7d'], - dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dkim: ['PASS', 'NONE', 'FAIL'], - dmarc: ['PASS', 'NONE', 'FAIL'], - format: 'JSON', - limit: 5, - location: ['string', 'string', 'string'], - name: ['string', 'string', 'string'], - spf: ['PASS', 'NONE', 'FAIL'], - }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); diff --git a/tests/api-resources/radar/email/security/top/locations/spf.test.ts b/tests/api-resources/radar/email/security/top/locations/spf.test.ts deleted file mode 100644 index 439b49285e..0000000000 --- a/tests/api-resources/radar/email/security/top/locations/spf.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -import Cloudflare from 'cloudflare'; -import { Response } from 'node-fetch'; - -const cloudflare = new Cloudflare({ - apiKey: '144c9defac04969c7bfad8efaa8ea194', - apiEmail: 'user@example.com', - apiToken: 'Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY', - userServiceKey: - 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719', - baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', -}); - -describe('resource spf', () => { - // skipped: tests are disabled for the time being - test.skip('get', async () => { - const responsePromise = cloudflare.radar.email.security.top.locations.spf.get('PASS'); - 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); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options instead of params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.locations.spf.get('PASS', { path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); - - // skipped: tests are disabled for the time being - test.skip('get: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - cloudflare.radar.email.security.top.locations.spf.get( - 'PASS', - { - arc: ['PASS', 'NONE', 'FAIL'], - asn: ['string', 'string', 'string'], - dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dateRange: ['1d', '2d', '7d'], - dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], - dkim: ['PASS', 'NONE', 'FAIL'], - dmarc: ['PASS', 'NONE', 'FAIL'], - format: 'JSON', - limit: 5, - location: ['string', 'string', 'string'], - name: ['string', 'string', 'string'], - }, - { path: '/_stainless_unknown_path' }, - ), - ).rejects.toThrow(Cloudflare.NotFoundError); - }); -}); diff --git a/tests/api-resources/radar/http/ases/ases.test.ts b/tests/api-resources/radar/http/ases/ases.test.ts index 97863245c7..61eb987d71 100644 --- a/tests/api-resources/radar/http/ases/ases.test.ts +++ b/tests/api-resources/radar/http/ases/ases.test.ts @@ -41,6 +41,7 @@ describe('resource ases', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/ases/bot-class.test.ts b/tests/api-resources/radar/http/ases/bot-class.test.ts index f770c704f4..feb13bbe88 100644 --- a/tests/api-resources/radar/http/ases/bot-class.test.ts +++ b/tests/api-resources/radar/http/ases/bot-class.test.ts @@ -41,6 +41,7 @@ describe('resource botClass', () => { 'LIKELY_AUTOMATED', { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/ases/device-type.test.ts b/tests/api-resources/radar/http/ases/device-type.test.ts index ca589ef69a..454456ca08 100644 --- a/tests/api-resources/radar/http/ases/device-type.test.ts +++ b/tests/api-resources/radar/http/ases/device-type.test.ts @@ -42,6 +42,7 @@ describe('resource deviceType', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/ases/http-method.test.ts b/tests/api-resources/radar/http/ases/http-method.test.ts index c74c55d2a2..12174c27f6 100644 --- a/tests/api-resources/radar/http/ases/http-method.test.ts +++ b/tests/api-resources/radar/http/ases/http-method.test.ts @@ -42,6 +42,7 @@ describe('resource httpMethod', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/ases/http-protocol.test.ts b/tests/api-resources/radar/http/ases/http-protocol.test.ts index 2687b00da3..a887026c6c 100644 --- a/tests/api-resources/radar/http/ases/http-protocol.test.ts +++ b/tests/api-resources/radar/http/ases/http-protocol.test.ts @@ -42,6 +42,7 @@ describe('resource httpProtocol', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/ases/ip-version.test.ts b/tests/api-resources/radar/http/ases/ip-version.test.ts index d5afd2de02..0c3687e374 100644 --- a/tests/api-resources/radar/http/ases/ip-version.test.ts +++ b/tests/api-resources/radar/http/ases/ip-version.test.ts @@ -42,6 +42,7 @@ describe('resource ipVersion', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/ases/os.test.ts b/tests/api-resources/radar/http/ases/os.test.ts index 32159f4772..a80315c648 100644 --- a/tests/api-resources/radar/http/ases/os.test.ts +++ b/tests/api-resources/radar/http/ases/os.test.ts @@ -42,6 +42,7 @@ describe('resource os', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/ases/tls-version.test.ts b/tests/api-resources/radar/http/ases/tls-version.test.ts index f5d7dd4535..b8f54828f2 100644 --- a/tests/api-resources/radar/http/ases/tls-version.test.ts +++ b/tests/api-resources/radar/http/ases/tls-version.test.ts @@ -42,6 +42,7 @@ describe('resource tlsVersion', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/locations/bot-class.test.ts b/tests/api-resources/radar/http/locations/bot-class.test.ts index 2f6f65050a..11ff1b96f1 100644 --- a/tests/api-resources/radar/http/locations/bot-class.test.ts +++ b/tests/api-resources/radar/http/locations/bot-class.test.ts @@ -41,6 +41,7 @@ describe('resource botClass', () => { 'LIKELY_AUTOMATED', { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/locations/device-type.test.ts b/tests/api-resources/radar/http/locations/device-type.test.ts index d019dc885e..616f0b65d2 100644 --- a/tests/api-resources/radar/http/locations/device-type.test.ts +++ b/tests/api-resources/radar/http/locations/device-type.test.ts @@ -42,6 +42,7 @@ describe('resource deviceType', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/locations/http-method.test.ts b/tests/api-resources/radar/http/locations/http-method.test.ts index 43b7fc63f5..a9b1e6dd9f 100644 --- a/tests/api-resources/radar/http/locations/http-method.test.ts +++ b/tests/api-resources/radar/http/locations/http-method.test.ts @@ -42,6 +42,7 @@ describe('resource httpMethod', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/locations/http-protocol.test.ts b/tests/api-resources/radar/http/locations/http-protocol.test.ts index 401b0c452f..447e0f82e1 100644 --- a/tests/api-resources/radar/http/locations/http-protocol.test.ts +++ b/tests/api-resources/radar/http/locations/http-protocol.test.ts @@ -42,6 +42,7 @@ describe('resource httpProtocol', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/locations/ip-version.test.ts b/tests/api-resources/radar/http/locations/ip-version.test.ts index fb9ddabdc4..1edcafe165 100644 --- a/tests/api-resources/radar/http/locations/ip-version.test.ts +++ b/tests/api-resources/radar/http/locations/ip-version.test.ts @@ -42,6 +42,7 @@ describe('resource ipVersion', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/locations/locations.test.ts b/tests/api-resources/radar/http/locations/locations.test.ts index 36c10f2f9f..e65be86cb5 100644 --- a/tests/api-resources/radar/http/locations/locations.test.ts +++ b/tests/api-resources/radar/http/locations/locations.test.ts @@ -41,6 +41,7 @@ describe('resource locations', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/locations/os.test.ts b/tests/api-resources/radar/http/locations/os.test.ts index 7163ab6356..66e68daa50 100644 --- a/tests/api-resources/radar/http/locations/os.test.ts +++ b/tests/api-resources/radar/http/locations/os.test.ts @@ -42,6 +42,7 @@ describe('resource os', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/locations/tls-version.test.ts b/tests/api-resources/radar/http/locations/tls-version.test.ts index 1ccd270f9a..364cd41db9 100644 --- a/tests/api-resources/radar/http/locations/tls-version.test.ts +++ b/tests/api-resources/radar/http/locations/tls-version.test.ts @@ -42,6 +42,7 @@ describe('resource tlsVersion', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/summary.test.ts b/tests/api-resources/radar/http/summary.test.ts index abdd5ba8ba..bb6dc212f0 100644 --- a/tests/api-resources/radar/http/summary.test.ts +++ b/tests/api-resources/radar/http/summary.test.ts @@ -40,6 +40,7 @@ describe('resource summary', () => { cloudflare.radar.http.summary.botClass( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -86,6 +87,7 @@ describe('resource summary', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -131,6 +133,7 @@ describe('resource summary', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -176,6 +179,7 @@ describe('resource summary', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -221,6 +225,7 @@ describe('resource summary', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -266,6 +271,7 @@ describe('resource summary', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -311,6 +317,7 @@ describe('resource summary', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/timeseries-groups.test.ts b/tests/api-resources/radar/http/timeseries-groups.test.ts index 57392e3301..31cbed72ef 100644 --- a/tests/api-resources/radar/http/timeseries-groups.test.ts +++ b/tests/api-resources/radar/http/timeseries-groups.test.ts @@ -41,6 +41,7 @@ describe('resource timeseriesGroups', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -88,6 +89,7 @@ describe('resource timeseriesGroups', () => { aggInterval: '1h', asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -136,6 +138,7 @@ describe('resource timeseriesGroups', () => { aggInterval: '1h', asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -183,6 +186,7 @@ describe('resource timeseriesGroups', () => { aggInterval: '1h', asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -229,6 +233,7 @@ describe('resource timeseriesGroups', () => { aggInterval: '1h', asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -275,6 +280,7 @@ describe('resource timeseriesGroups', () => { aggInterval: '1h', asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -321,6 +327,7 @@ describe('resource timeseriesGroups', () => { aggInterval: '1h', asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -367,6 +374,7 @@ describe('resource timeseriesGroups', () => { aggInterval: '1h', asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -413,6 +421,7 @@ describe('resource timeseriesGroups', () => { aggInterval: '1h', asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/http/top.test.ts b/tests/api-resources/radar/http/top.test.ts index 17f34a7d09..528c2b264b 100644 --- a/tests/api-resources/radar/http/top.test.ts +++ b/tests/api-resources/radar/http/top.test.ts @@ -41,6 +41,7 @@ describe('resource top', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -88,6 +89,7 @@ describe('resource top', () => { { asn: ['string', 'string', 'string'], botClass: ['LIKELY_AUTOMATED', 'LIKELY_HUMAN'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/netflows/netflows.test.ts b/tests/api-resources/radar/netflows/netflows.test.ts index 97594e323e..d4e7e45276 100644 --- a/tests/api-resources/radar/netflows/netflows.test.ts +++ b/tests/api-resources/radar/netflows/netflows.test.ts @@ -41,6 +41,7 @@ describe('resource netflows', () => { { aggInterval: '1h', asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/netflows/top.test.ts b/tests/api-resources/radar/netflows/top.test.ts index b2a404dfb8..5c590fd0f9 100644 --- a/tests/api-resources/radar/netflows/top.test.ts +++ b/tests/api-resources/radar/netflows/top.test.ts @@ -40,6 +40,7 @@ describe('resource top', () => { cloudflare.radar.netflows.top.ases( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -80,6 +81,7 @@ describe('resource top', () => { cloudflare.radar.netflows.top.locations( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], diff --git a/tests/api-resources/radar/quality/speed/speed.test.ts b/tests/api-resources/radar/quality/speed/speed.test.ts index adddeadc98..b665c45d14 100644 --- a/tests/api-resources/radar/quality/speed/speed.test.ts +++ b/tests/api-resources/radar/quality/speed/speed.test.ts @@ -41,6 +41,7 @@ describe('resource speed', () => { { asn: ['string', 'string', 'string'], bucketSize: 0, + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], format: 'JSON', location: ['string', 'string', 'string'], @@ -79,6 +80,7 @@ describe('resource speed', () => { cloudflare.radar.quality.speed.summary( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], format: 'JSON', location: ['string', 'string', 'string'], diff --git a/tests/api-resources/radar/quality/speed/top.test.ts b/tests/api-resources/radar/quality/speed/top.test.ts index b140383c7e..371d16768b 100644 --- a/tests/api-resources/radar/quality/speed/top.test.ts +++ b/tests/api-resources/radar/quality/speed/top.test.ts @@ -40,6 +40,7 @@ describe('resource top', () => { cloudflare.radar.quality.speed.top.ases( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], format: 'JSON', limit: 5, @@ -80,6 +81,7 @@ describe('resource top', () => { cloudflare.radar.quality.speed.top.locations( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], format: 'JSON', limit: 5, diff --git a/tests/api-resources/radar/verified-bots/top.test.ts b/tests/api-resources/radar/verified-bots/top.test.ts index 9035595a78..e501056a2c 100644 --- a/tests/api-resources/radar/verified-bots/top.test.ts +++ b/tests/api-resources/radar/verified-bots/top.test.ts @@ -40,6 +40,7 @@ describe('resource top', () => { cloudflare.radar.verifiedBots.top.bots( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], @@ -80,6 +81,7 @@ describe('resource top', () => { cloudflare.radar.verifiedBots.top.categories( { asn: ['string', 'string', 'string'], + continent: ['string', 'string', 'string'], dateEnd: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'], dateRange: ['1d', '2d', '7d'], dateStart: ['2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z', '2019-12-27T18:11:19.117Z'],