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