From c8c4664c934df15ebb310d990dc83ab44017ccfe Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Wed, 10 Apr 2024 10:50:22 +0000
Subject: [PATCH] feat(api): update via SDK Studio (#289)
---
api.md | 18 +-
src/resources/radar/annotations/outages.ts | 31 +-
src/resources/radar/as112/as112.ts | 43 ++-
src/resources/radar/as112/summary.ts | 213 +++++++++++-
src/resources/radar/as112/top.ts | 177 +++++++++-
src/resources/radar/attacks/layer3/layer3.ts | 11 +-
src/resources/radar/attacks/layer3/summary.ts | 213 +++++++++++-
.../radar/attacks/layer3/timeseries-groups.ts | 74 +++-
.../radar/attacks/layer3/top/locations.ts | 69 +++-
src/resources/radar/attacks/layer3/top/top.ts | 103 +++++-
src/resources/radar/attacks/layer7/layer7.ts | 43 ++-
src/resources/radar/attacks/layer7/summary.ts | 213 +++++++++++-
.../radar/attacks/layer7/timeseries-groups.ts | 65 +++-
.../radar/attacks/layer7/top/ases.ts | 35 +-
.../radar/attacks/layer7/top/locations.ts | 69 +++-
src/resources/radar/attacks/layer7/top/top.ts | 103 +++++-
src/resources/radar/bgp/bgp.ts | 43 ++-
src/resources/radar/bgp/routes.ts | 47 ++-
src/resources/radar/bgp/top/ases.ts | 27 +-
src/resources/radar/bgp/top/top.ts | 17 +-
src/resources/radar/connection-tampering.ts | 69 +++-
src/resources/radar/dns/top.ts | 89 ++++-
src/resources/radar/email/email.ts | 8 +-
src/resources/radar/email/index.ts | 6 +-
src/resources/radar/email/routing/summary.ts | 221 +++++++++++-
.../radar/email/routing/timeseries-groups.ts | 8 +-
src/resources/radar/email/security/summary.ts | 315 ++++++++++++++++--
.../radar/email/security/timeseries-groups.ts | 8 +-
.../email/security/top/tlds/malicious.ts | 35 +-
.../radar/email/security/top/tlds/spam.ts | 35 +-
.../radar/email/security/top/tlds/spoof.ts | 35 +-
.../radar/email/security/top/tlds/tlds.ts | 35 +-
src/resources/radar/entities/asns.ts | 11 +-
src/resources/radar/http/ases/ases.ts | 45 ++-
src/resources/radar/http/ases/bot-class.ts | 45 ++-
src/resources/radar/http/ases/device-type.ts | 45 ++-
src/resources/radar/http/ases/http-method.ts | 45 ++-
.../radar/http/ases/http-protocol.ts | 45 ++-
src/resources/radar/http/ases/ip-version.ts | 45 ++-
src/resources/radar/http/ases/os.ts | 45 ++-
src/resources/radar/http/ases/tls-version.ts | 45 ++-
.../radar/http/locations/bot-class.ts | 45 ++-
.../radar/http/locations/device-type.ts | 45 ++-
.../radar/http/locations/http-method.ts | 45 ++-
.../radar/http/locations/http-protocol.ts | 45 ++-
.../radar/http/locations/ip-version.ts | 45 ++-
.../radar/http/locations/locations.ts | 45 ++-
src/resources/radar/http/locations/os.ts | 45 ++-
.../radar/http/locations/tls-version.ts | 45 ++-
src/resources/radar/http/summary.ts | 247 +++++++++++++-
src/resources/radar/http/timeseries-groups.ts | 40 ++-
src/resources/radar/http/top.ts | 69 +++-
src/resources/radar/index.ts | 6 +-
src/resources/radar/netflows/netflows.ts | 43 ++-
src/resources/radar/quality/iqi.ts | 35 +-
src/resources/radar/quality/speed/speed.ts | 35 +-
src/resources/radar/quality/speed/top.ts | 69 +++-
src/resources/radar/radar.ts | 91 +----
src/resources/radar/ranking/ranking.ts | 17 +-
.../radar/traffic-anomalies/locations.ts | 13 +-
.../traffic-anomalies/traffic-anomalies.ts | 19 +-
src/resources/radar/verified-bots/top.ts | 69 +++-
62 files changed, 3528 insertions(+), 434 deletions(-)
diff --git a/api.md b/api.md
index 4367c5c6c4..1c33cc6692 100644
--- a/api.md
+++ b/api.md
@@ -5181,20 +5181,6 @@ Methods:
# Radar
-Types:
-
-- UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42
-- UnnamedSchemaRef4124a22436f90127c7fa2c4543219752
-- UnnamedSchemaRef73de8b634bb48667e28a6c6c56080c51
-- UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb
-- UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55
-- UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09
-- UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297
-- UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a
-- UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1
-- UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5
-- UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7
-
## Annotations
### Outages
@@ -5437,8 +5423,8 @@ Methods:
Types:
-- UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c
-- UnnamedSchemaRef853c157ad369010995e35be614e0343f
+- RadarEmailSeries
+- RadarEmailSummary
### Routing
diff --git a/src/resources/radar/annotations/outages.ts b/src/resources/radar/annotations/outages.ts
index f8e2eeff99..b9ad9ede60 100644
--- a/src/resources/radar/annotations/outages.ts
+++ b/src/resources/radar/annotations/outages.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as OutagesAPI from 'cloudflare/resources/radar/annotations/outages';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
export class Outages extends APIResource {
/**
@@ -67,7 +66,7 @@ export namespace OutageGetResponse {
locations: Array;
- locationsDetails: Array;
+ locationsDetails: Array;
outage: Annotation.Outage;
@@ -88,7 +87,21 @@ export namespace OutageGetResponse {
name: string;
- locations?: RadarAPI.UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42;
+ locations?: ASNsDetail.Locations;
+ }
+
+ export namespace ASNsDetail {
+ export interface Locations {
+ code: string;
+
+ name: string;
+ }
+ }
+
+ export interface LocationsDetail {
+ code: string;
+
+ name: string;
}
export interface Outage {
@@ -100,7 +113,17 @@ export namespace OutageGetResponse {
}
export interface OutageLocationsResponse {
- annotations: Array;
+ annotations: Array;
+}
+
+export namespace OutageLocationsResponse {
+ export interface Annotation {
+ clientCountryAlpha2: string;
+
+ clientCountryName: string;
+
+ value: string;
+ }
}
export interface OutageGetParams {
diff --git a/src/resources/radar/as112/as112.ts b/src/resources/radar/as112/as112.ts
index d6821a36b9..4f486a1e47 100644
--- a/src/resources/radar/as112/as112.ts
+++ b/src/resources/radar/as112/as112.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as AS112API from 'cloudflare/resources/radar/as112/as112';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
import * as SummaryAPI from 'cloudflare/resources/radar/as112/summary';
import * as TimeseriesGroupsAPI from 'cloudflare/resources/radar/as112/timeseries-groups';
import * as TopAPI from 'cloudflare/resources/radar/as112/top';
@@ -42,14 +41,14 @@ export class AS112 extends APIResource {
export interface AS112TimeseriesResponse {
meta: AS112TimeseriesResponse.Meta;
- serie_0: RadarAPI.UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb;
+ serie_0: AS112TimeseriesResponse.Serie0;
}
export namespace AS112TimeseriesResponse {
export interface Meta {
aggInterval: string;
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -57,11 +56,47 @@ export namespace AS112TimeseriesResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
+ }
+
+ export interface Serie0 {
+ timestamps: Array;
+
+ values: Array;
}
}
diff --git a/src/resources/radar/as112/summary.ts b/src/resources/radar/as112/summary.ts
index 958e8f67bb..72ff43f7db 100644
--- a/src/resources/radar/as112/summary.ts
+++ b/src/resources/radar/as112/summary.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as SummaryAPI from 'cloudflare/resources/radar/as112/summary';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
export class Summary extends APIResource {
/**
@@ -142,7 +141,7 @@ export interface SummaryDNSSECResponse {
export namespace SummaryDNSSECResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -152,11 +151,41 @@ export namespace SummaryDNSSECResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
@@ -174,7 +203,7 @@ export interface SummaryEdnsResponse {
export namespace SummaryEdnsResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -184,11 +213,41 @@ export namespace SummaryEdnsResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
@@ -201,12 +260,12 @@ export namespace SummaryEdnsResponse {
export interface SummaryIPVersionResponse {
meta: SummaryIPVersionResponse.Meta;
- summary_0: RadarAPI.UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297;
+ summary_0: SummaryIPVersionResponse.Summary0;
}
export namespace SummaryIPVersionResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -216,11 +275,47 @@ export namespace SummaryIPVersionResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
+ }
+
+ export interface Summary0 {
+ IPv4: string;
+
+ IPv6: string;
}
}
@@ -232,7 +327,7 @@ export interface SummaryProtocolResponse {
export namespace SummaryProtocolResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -242,11 +337,41 @@ export namespace SummaryProtocolResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
@@ -264,7 +389,7 @@ export interface SummaryQueryTypeResponse {
export namespace SummaryQueryTypeResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -274,11 +399,41 @@ export namespace SummaryQueryTypeResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
@@ -302,7 +457,7 @@ export interface SummaryResponseCodesResponse {
export namespace SummaryResponseCodesResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -312,11 +467,41 @@ export namespace SummaryResponseCodesResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
diff --git a/src/resources/radar/as112/top.ts b/src/resources/radar/as112/top.ts
index 0dc18e98cb..b90f908cbe 100644
--- a/src/resources/radar/as112/top.ts
+++ b/src/resources/radar/as112/top.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as TopAPI from 'cloudflare/resources/radar/as112/top';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
export class Top extends APIResource {
/**
@@ -108,12 +107,12 @@ export class Top extends APIResource {
export interface TopDNSSECResponse {
meta: TopDNSSECResponse.Meta;
- top_0: Array;
+ top_0: Array;
}
export namespace TopDNSSECResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -121,23 +120,61 @@ export namespace TopDNSSECResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
+ }
+
+ export interface Top0 {
+ clientCountryAlpha2: string;
+
+ clientCountryName: string;
+
+ value: string;
}
}
export interface TopEdnsResponse {
meta: TopEdnsResponse.Meta;
- top_0: Array;
+ top_0: Array;
}
export namespace TopEdnsResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -145,23 +182,61 @@ export namespace TopEdnsResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
+ }
+
+ export interface Top0 {
+ clientCountryAlpha2: string;
+
+ clientCountryName: string;
+
+ value: string;
}
}
export interface TopIPVersionResponse {
meta: TopIPVersionResponse.Meta;
- top_0: Array;
+ top_0: Array;
}
export namespace TopIPVersionResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -169,23 +244,61 @@ export namespace TopIPVersionResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
+ }
+
+ export interface Top0 {
+ clientCountryAlpha2: string;
+
+ clientCountryName: string;
+
+ value: string;
}
}
export interface TopLocationsResponse {
meta: TopLocationsResponse.Meta;
- top_0: Array;
+ top_0: Array;
}
export namespace TopLocationsResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -193,11 +306,49 @@ export namespace TopLocationsResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
+ }
+
+ export interface Top0 {
+ clientCountryAlpha2: string;
+
+ clientCountryName: string;
+
+ value: string;
}
}
diff --git a/src/resources/radar/attacks/layer3/layer3.ts b/src/resources/radar/attacks/layer3/layer3.ts
index baa5e4b475..059373a4ef 100644
--- a/src/resources/radar/attacks/layer3/layer3.ts
+++ b/src/resources/radar/attacks/layer3/layer3.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as Layer3API from 'cloudflare/resources/radar/attacks/layer3/layer3';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
import * as SummaryAPI from 'cloudflare/resources/radar/attacks/layer3/summary';
import * as TimeseriesGroupsAPI from 'cloudflare/resources/radar/attacks/layer3/timeseries-groups';
import * as TopAPI from 'cloudflare/resources/radar/attacks/layer3/top/top';
@@ -42,7 +41,15 @@ export class Layer3 extends APIResource {
export interface Layer3TimeseriesResponse {
meta: unknown;
- serie_0: RadarAPI.UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb;
+ serie_0: Layer3TimeseriesResponse.Serie0;
+}
+
+export namespace Layer3TimeseriesResponse {
+ export interface Serie0 {
+ timestamps: Array;
+
+ values: Array;
+ }
}
export interface Layer3TimeseriesParams {
diff --git a/src/resources/radar/attacks/layer3/summary.ts b/src/resources/radar/attacks/layer3/summary.ts
index 1def49fac3..1c78c52b76 100644
--- a/src/resources/radar/attacks/layer3/summary.ts
+++ b/src/resources/radar/attacks/layer3/summary.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as SummaryAPI from 'cloudflare/resources/radar/attacks/layer3/summary';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
export class Summary extends APIResource {
/**
@@ -143,7 +142,7 @@ export interface SummaryBitrateResponse {
export namespace SummaryBitrateResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -153,11 +152,41 @@ export namespace SummaryBitrateResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
@@ -181,7 +210,7 @@ export interface SummaryDurationResponse {
export namespace SummaryDurationResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -191,11 +220,41 @@ export namespace SummaryDurationResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
@@ -221,17 +280,47 @@ export interface SummaryGetResponse {
export namespace SummaryGetResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
confidenceInfo?: Meta.ConfidenceInfo;
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
@@ -248,12 +337,12 @@ export namespace SummaryGetResponse {
export interface SummaryIPVersionResponse {
meta: SummaryIPVersionResponse.Meta;
- summary_0: RadarAPI.UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297;
+ summary_0: SummaryIPVersionResponse.Summary0;
}
export namespace SummaryIPVersionResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -263,11 +352,47 @@ export namespace SummaryIPVersionResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
+ }
+
+ export interface Summary0 {
+ IPv4: string;
+
+ IPv6: string;
}
}
@@ -279,7 +404,7 @@ export interface SummaryProtocolResponse {
export namespace SummaryProtocolResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -289,11 +414,41 @@ export namespace SummaryProtocolResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
@@ -315,7 +470,7 @@ export interface SummaryVectorResponse {
export namespace SummaryVectorResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -325,11 +480,41 @@ export namespace SummaryVectorResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
}
diff --git a/src/resources/radar/attacks/layer3/timeseries-groups.ts b/src/resources/radar/attacks/layer3/timeseries-groups.ts
index d4f1179897..965593709d 100644
--- a/src/resources/radar/attacks/layer3/timeseries-groups.ts
+++ b/src/resources/radar/attacks/layer3/timeseries-groups.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as TimeseriesGroupsAPI from 'cloudflare/resources/radar/attacks/layer3/timeseries-groups';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
export class TimeseriesGroups extends APIResource {
/**
@@ -248,7 +247,7 @@ export namespace TimeseriesGroupGetResponse {
export interface Meta {
aggInterval: string;
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -256,11 +255,41 @@ export namespace TimeseriesGroupGetResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Serie0 {
@@ -279,13 +308,30 @@ export namespace TimeseriesGroupGetResponse {
export interface TimeseriesGroupIndustryResponse {
meta: unknown;
- serie_0: RadarAPI.UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55;
+ serie_0: TimeseriesGroupIndustryResponse.Serie0;
+}
+
+export namespace TimeseriesGroupIndustryResponse {
+ export interface Serie0 {
+ timestamps: Array;
+ [k: string]: Array;
+ }
}
export interface TimeseriesGroupIPVersionResponse {
meta: unknown;
- serie_0: RadarAPI.UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a;
+ serie_0: TimeseriesGroupIPVersionResponse.Serie0;
+}
+
+export namespace TimeseriesGroupIPVersionResponse {
+ export interface Serie0 {
+ IPv4: Array;
+
+ IPv6: Array;
+
+ timestamps: Array;
+ }
}
export interface TimeseriesGroupProtocolResponse {
@@ -311,13 +357,27 @@ export namespace TimeseriesGroupProtocolResponse {
export interface TimeseriesGroupVectorResponse {
meta: unknown;
- serie_0: RadarAPI.UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55;
+ serie_0: TimeseriesGroupVectorResponse.Serie0;
+}
+
+export namespace TimeseriesGroupVectorResponse {
+ export interface Serie0 {
+ timestamps: Array;
+ [k: string]: Array;
+ }
}
export interface TimeseriesGroupVerticalResponse {
meta: unknown;
- serie_0: RadarAPI.UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55;
+ serie_0: TimeseriesGroupVerticalResponse.Serie0;
+}
+
+export namespace TimeseriesGroupVerticalResponse {
+ export interface Serie0 {
+ timestamps: Array;
+ [k: string]: Array;
+ }
}
export interface TimeseriesGroupBitrateParams {
diff --git a/src/resources/radar/attacks/layer3/top/locations.ts b/src/resources/radar/attacks/layer3/top/locations.ts
index f47271ca9b..8140901010 100644
--- a/src/resources/radar/attacks/layer3/top/locations.ts
+++ b/src/resources/radar/attacks/layer3/top/locations.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as LocationsAPI from 'cloudflare/resources/radar/attacks/layer3/top/locations';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
export class Locations extends APIResource {
/**
@@ -62,7 +61,7 @@ export interface LocationOriginResponse {
export namespace LocationOriginResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -70,11 +69,41 @@ export namespace LocationOriginResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Top0 {
@@ -96,7 +125,7 @@ export interface LocationTargetResponse {
export namespace LocationTargetResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -104,11 +133,41 @@ export namespace LocationTargetResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Top0 {
diff --git a/src/resources/radar/attacks/layer3/top/top.ts b/src/resources/radar/attacks/layer3/top/top.ts
index 9e1f4d02ae..34fcac050d 100644
--- a/src/resources/radar/attacks/layer3/top/top.ts
+++ b/src/resources/radar/attacks/layer3/top/top.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as TopTopAPI from 'cloudflare/resources/radar/attacks/layer3/top/top';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
import * as TopAPI from 'cloudflare/resources/radar/http/top';
import * as LocationsAPI from 'cloudflare/resources/radar/attacks/layer3/top/locations';
@@ -80,7 +79,7 @@ export interface TopAttacksResponse {
export namespace TopAttacksResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -88,11 +87,41 @@ export namespace TopAttacksResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Top0 {
@@ -112,7 +141,7 @@ export interface TopIndustryResponse {
export namespace TopIndustryResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -120,11 +149,41 @@ export namespace TopIndustryResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
}
@@ -136,7 +195,7 @@ export interface TopVerticalResponse {
export namespace TopVerticalResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -144,11 +203,41 @@ export namespace TopVerticalResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
}
diff --git a/src/resources/radar/attacks/layer7/layer7.ts b/src/resources/radar/attacks/layer7/layer7.ts
index c4d82f661a..95234d55cd 100644
--- a/src/resources/radar/attacks/layer7/layer7.ts
+++ b/src/resources/radar/attacks/layer7/layer7.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as Layer7API from 'cloudflare/resources/radar/attacks/layer7/layer7';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
import * as SummaryAPI from 'cloudflare/resources/radar/attacks/layer7/summary';
import * as TimeseriesGroupsAPI from 'cloudflare/resources/radar/attacks/layer7/timeseries-groups';
import * as TopAPI from 'cloudflare/resources/radar/attacks/layer7/top/top';
@@ -43,14 +42,14 @@ export class Layer7 extends APIResource {
export interface Layer7TimeseriesResponse {
meta: Layer7TimeseriesResponse.Meta;
- serie_0: RadarAPI.UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb;
+ serie_0: Layer7TimeseriesResponse.Serie0;
}
export namespace Layer7TimeseriesResponse {
export interface Meta {
aggInterval: string;
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -58,11 +57,47 @@ export namespace Layer7TimeseriesResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
+ }
+
+ export interface Serie0 {
+ timestamps: Array;
+
+ values: Array;
}
}
diff --git a/src/resources/radar/attacks/layer7/summary.ts b/src/resources/radar/attacks/layer7/summary.ts
index a8a986e767..057421f3a4 100644
--- a/src/resources/radar/attacks/layer7/summary.ts
+++ b/src/resources/radar/attacks/layer7/summary.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as SummaryAPI from 'cloudflare/resources/radar/attacks/layer7/summary';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
export class Summary extends APIResource {
/**
@@ -149,17 +148,47 @@ export interface SummaryGetResponse {
export namespace SummaryGetResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
confidenceInfo?: Meta.ConfidenceInfo;
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
@@ -187,7 +216,7 @@ export interface SummaryHTTPMethodResponse {
export namespace SummaryHTTPMethodResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -197,11 +226,41 @@ export namespace SummaryHTTPMethodResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
@@ -219,7 +278,7 @@ export interface SummaryHTTPVersionResponse {
export namespace SummaryHTTPVersionResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -229,11 +288,41 @@ export namespace SummaryHTTPVersionResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
@@ -248,12 +337,12 @@ export namespace SummaryHTTPVersionResponse {
export interface SummaryIPVersionResponse {
meta: SummaryIPVersionResponse.Meta;
- summary_0: RadarAPI.UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297;
+ summary_0: SummaryIPVersionResponse.Summary0;
}
export namespace SummaryIPVersionResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -263,11 +352,47 @@ export namespace SummaryIPVersionResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
+ }
+
+ export interface Summary0 {
+ IPv4: string;
+
+ IPv6: string;
}
}
@@ -279,7 +404,7 @@ export interface SummaryManagedRulesResponse {
export namespace SummaryManagedRulesResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -289,11 +414,41 @@ export namespace SummaryManagedRulesResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
@@ -311,7 +466,7 @@ export interface SummaryMitigationProductResponse {
export namespace SummaryMitigationProductResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -321,11 +476,41 @@ export namespace SummaryMitigationProductResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
diff --git a/src/resources/radar/attacks/layer7/timeseries-groups.ts b/src/resources/radar/attacks/layer7/timeseries-groups.ts
index 857572bb5e..81b50ed041 100644
--- a/src/resources/radar/attacks/layer7/timeseries-groups.ts
+++ b/src/resources/radar/attacks/layer7/timeseries-groups.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as TimeseriesGroupsAPI from 'cloudflare/resources/radar/attacks/layer7/timeseries-groups';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
export class TimeseriesGroups extends APIResource {
/**
@@ -202,7 +201,7 @@ export namespace TimeseriesGroupGetResponse {
export interface Meta {
aggInterval: string;
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -210,11 +209,41 @@ export namespace TimeseriesGroupGetResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Serie0 {
@@ -267,13 +296,30 @@ export namespace TimeseriesGroupHTTPVersionResponse {
export interface TimeseriesGroupIndustryResponse {
meta: unknown;
- serie_0: RadarAPI.UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55;
+ serie_0: TimeseriesGroupIndustryResponse.Serie0;
+}
+
+export namespace TimeseriesGroupIndustryResponse {
+ export interface Serie0 {
+ timestamps: Array;
+ [k: string]: Array;
+ }
}
export interface TimeseriesGroupIPVersionResponse {
meta: unknown;
- serie_0: RadarAPI.UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a;
+ serie_0: TimeseriesGroupIPVersionResponse.Serie0;
+}
+
+export namespace TimeseriesGroupIPVersionResponse {
+ export interface Serie0 {
+ IPv4: Array;
+
+ IPv6: Array;
+
+ timestamps: Array;
+ }
}
export interface TimeseriesGroupManagedRulesResponse {
@@ -307,7 +353,14 @@ export namespace TimeseriesGroupMitigationProductResponse {
export interface TimeseriesGroupVerticalResponse {
meta: unknown;
- serie_0: RadarAPI.UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55;
+ serie_0: TimeseriesGroupVerticalResponse.Serie0;
+}
+
+export namespace TimeseriesGroupVerticalResponse {
+ export interface Serie0 {
+ timestamps: Array;
+ [k: string]: Array;
+ }
}
export interface TimeseriesGroupGetParams {
diff --git a/src/resources/radar/attacks/layer7/top/ases.ts b/src/resources/radar/attacks/layer7/top/ases.ts
index d02769534b..2b9af6f249 100644
--- a/src/resources/radar/attacks/layer7/top/ases.ts
+++ b/src/resources/radar/attacks/layer7/top/ases.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as AsesAPI from 'cloudflare/resources/radar/attacks/layer7/top/ases';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
export class Ases extends APIResource {
/**
@@ -37,7 +36,7 @@ export interface AseOriginResponse {
export namespace AseOriginResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -45,11 +44,41 @@ export namespace AseOriginResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Top0 {
diff --git a/src/resources/radar/attacks/layer7/top/locations.ts b/src/resources/radar/attacks/layer7/top/locations.ts
index 51e943d31b..553611abd7 100644
--- a/src/resources/radar/attacks/layer7/top/locations.ts
+++ b/src/resources/radar/attacks/layer7/top/locations.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as LocationsAPI from 'cloudflare/resources/radar/attacks/layer7/top/locations';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
export class Locations extends APIResource {
/**
@@ -66,7 +65,7 @@ export interface LocationOriginResponse {
export namespace LocationOriginResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -74,11 +73,41 @@ export namespace LocationOriginResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Top0 {
@@ -100,7 +129,7 @@ export interface LocationTargetResponse {
export namespace LocationTargetResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -108,11 +137,41 @@ export namespace LocationTargetResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Top0 {
diff --git a/src/resources/radar/attacks/layer7/top/top.ts b/src/resources/radar/attacks/layer7/top/top.ts
index 435c5efa2a..512cdc8316 100644
--- a/src/resources/radar/attacks/layer7/top/top.ts
+++ b/src/resources/radar/attacks/layer7/top/top.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as TopTopAPI from 'cloudflare/resources/radar/attacks/layer7/top/top';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
import * as TopAPI from 'cloudflare/resources/radar/http/top';
import * as AsesAPI from 'cloudflare/resources/radar/attacks/layer7/top/ases';
import * as LocationsAPI from 'cloudflare/resources/radar/attacks/layer7/top/locations';
@@ -83,7 +82,7 @@ export interface TopAttacksResponse {
export namespace TopAttacksResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -91,11 +90,41 @@ export namespace TopAttacksResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Top0 {
@@ -119,7 +148,7 @@ export interface TopIndustryResponse {
export namespace TopIndustryResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -127,11 +156,41 @@ export namespace TopIndustryResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
}
@@ -143,7 +202,7 @@ export interface TopVerticalResponse {
export namespace TopVerticalResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -151,11 +210,41 @@ export namespace TopVerticalResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
}
diff --git a/src/resources/radar/bgp/bgp.ts b/src/resources/radar/bgp/bgp.ts
index a7e8864c1f..869fd9b2af 100644
--- a/src/resources/radar/bgp/bgp.ts
+++ b/src/resources/radar/bgp/bgp.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as BGPAPI from 'cloudflare/resources/radar/bgp/bgp';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
import * as RoutesAPI from 'cloudflare/resources/radar/bgp/routes';
import * as HijacksAPI from 'cloudflare/resources/radar/bgp/hijacks/hijacks';
import * as LeaksAPI from 'cloudflare/resources/radar/bgp/leaks/leaks';
@@ -44,14 +43,14 @@ export class BGP extends APIResource {
export interface BGPTimeseriesResponse {
meta: BGPTimeseriesResponse.Meta;
- serie_0: RadarAPI.UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb;
+ serie_0: BGPTimeseriesResponse.Serie0;
}
export namespace BGPTimeseriesResponse {
export interface Meta {
aggInterval: string;
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -59,11 +58,47 @@ export namespace BGPTimeseriesResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
+ }
+
+ export interface Serie0 {
+ timestamps: Array;
+
+ values: Array;
}
}
diff --git a/src/resources/radar/bgp/routes.ts b/src/resources/radar/bgp/routes.ts
index e962528c4d..5fb559b6ee 100644
--- a/src/resources/radar/bgp/routes.ts
+++ b/src/resources/radar/bgp/routes.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as RoutesAPI from 'cloudflare/resources/radar/bgp/routes';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
export class Routes extends APIResource {
/**
@@ -89,12 +88,20 @@ export class Routes extends APIResource {
}
export interface RouteMoasResponse {
- meta: RadarAPI.UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7;
+ meta: RouteMoasResponse.Meta;
moas: Array;
}
export namespace RouteMoasResponse {
+ export interface Meta {
+ data_time: string;
+
+ query_time: string;
+
+ total_peers: number;
+ }
+
export interface Moa {
origins: Array;
@@ -113,12 +120,20 @@ export namespace RouteMoasResponse {
}
export interface RoutePfx2asResponse {
- meta: RadarAPI.UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7;
+ meta: RoutePfx2asResponse.Meta;
prefix_origins: Array;
}
export namespace RoutePfx2asResponse {
+ export interface Meta {
+ data_time: string;
+
+ query_time: string;
+
+ total_peers: number;
+ }
+
export interface PrefixOrigin {
origin: number;
@@ -131,12 +146,20 @@ export namespace RoutePfx2asResponse {
}
export interface RouteStatsResponse {
- meta: RadarAPI.UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7;
+ meta: RouteStatsResponse.Meta;
stats: RouteStatsResponse.Stats;
}
export namespace RouteStatsResponse {
+ export interface Meta {
+ data_time: string;
+
+ query_time: string;
+
+ total_peers: number;
+ }
+
export interface Stats {
distinct_origins: number;
@@ -186,7 +209,21 @@ export interface RouteTimeseriesResponse {
export namespace RouteTimeseriesResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
+ }
+
+ export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
}
export interface SerieIPV4_24s {
diff --git a/src/resources/radar/bgp/top/ases.ts b/src/resources/radar/bgp/top/ases.ts
index bd2a3ddff9..ca09b1f3c6 100644
--- a/src/resources/radar/bgp/top/ases.ts
+++ b/src/resources/radar/bgp/top/ases.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as AsesAPI from 'cloudflare/resources/radar/bgp/top/ases';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
export class Ases extends APIResource {
/**
@@ -57,7 +56,21 @@ export interface AseGetResponse {
export namespace AseGetResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
+ }
+
+ export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
}
export interface Top0 {
@@ -76,7 +89,7 @@ export namespace AseGetResponse {
export interface AsePrefixesResponse {
asns: Array;
- meta: RadarAPI.UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7;
+ meta: AsePrefixesResponse.Meta;
}
export namespace AsePrefixesResponse {
@@ -89,6 +102,14 @@ export namespace AsePrefixesResponse {
pfxs_count: number;
}
+
+ export interface Meta {
+ data_time: string;
+
+ query_time: string;
+
+ total_peers: number;
+ }
}
export interface AseGetParams {
diff --git a/src/resources/radar/bgp/top/top.ts b/src/resources/radar/bgp/top/top.ts
index 30cd08bf86..baaaf3fa88 100644
--- a/src/resources/radar/bgp/top/top.ts
+++ b/src/resources/radar/bgp/top/top.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as TopAPI from 'cloudflare/resources/radar/bgp/top/top';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
import * as AsesAPI from 'cloudflare/resources/radar/bgp/top/ases';
export class Top extends APIResource {
@@ -39,7 +38,21 @@ export interface TopPrefixesResponse {
export namespace TopPrefixesResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
+ }
+
+ export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
}
export interface Top0 {
diff --git a/src/resources/radar/connection-tampering.ts b/src/resources/radar/connection-tampering.ts
index 6dbe8696ef..e2cdb64003 100644
--- a/src/resources/radar/connection-tampering.ts
+++ b/src/resources/radar/connection-tampering.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as ConnectionTamperingAPI from 'cloudflare/resources/radar/connection-tampering';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
export class ConnectionTampering extends APIResource {
/**
@@ -63,17 +62,47 @@ export interface ConnectionTamperingSummaryResponse {
export namespace ConnectionTamperingSummaryResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
confidenceInfo?: Meta.ConfidenceInfo;
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
@@ -119,7 +148,7 @@ export namespace ConnectionTamperingTimeseriesGroupsResponse {
export interface Meta {
aggInterval: string;
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -127,11 +156,41 @@ export namespace ConnectionTamperingTimeseriesGroupsResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Serie0 {
diff --git a/src/resources/radar/dns/top.ts b/src/resources/radar/dns/top.ts
index f50d9f6ca8..82c76a149e 100644
--- a/src/resources/radar/dns/top.ts
+++ b/src/resources/radar/dns/top.ts
@@ -3,7 +3,6 @@
import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as TopAPI from 'cloudflare/resources/radar/dns/top';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
export class Top extends APIResource {
/**
@@ -33,44 +32,120 @@ export class Top extends APIResource {
export interface TopAsesResponse {
meta: TopAsesResponse.Meta;
- top_0: Array;
+ top_0: Array;
}
export namespace TopAsesResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
confidenceInfo?: Meta.ConfidenceInfo;
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
+ }
+
+ export interface Top0 {
+ clientASN: number;
+
+ clientASName: string;
+
+ value: string;
}
}
export interface TopLocationsResponse {
meta: TopLocationsResponse.Meta;
- top_0: Array;
+ top_0: Array;
}
export namespace TopLocationsResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
confidenceInfo?: Meta.ConfidenceInfo;
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
+ }
+
+ export interface Top0 {
+ clientCountryAlpha2: string;
+
+ clientCountryName: string;
+
+ value: string;
}
}
diff --git a/src/resources/radar/email/email.ts b/src/resources/radar/email/email.ts
index 45afc171ea..238b638a0b 100644
--- a/src/resources/radar/email/email.ts
+++ b/src/resources/radar/email/email.ts
@@ -10,7 +10,7 @@ export class Email extends APIResource {
security: SecurityAPI.Security = new SecurityAPI.Security(this._client);
}
-export interface UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c {
+export interface RadarEmailSeries {
FAIL: Array;
NONE: Array;
@@ -18,7 +18,7 @@ export interface UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c {
PASS: Array;
}
-export interface UnnamedSchemaRef853c157ad369010995e35be614e0343f {
+export interface RadarEmailSummary {
FAIL: string;
NONE: string;
@@ -27,8 +27,8 @@ export interface UnnamedSchemaRef853c157ad369010995e35be614e0343f {
}
export namespace Email {
- export import UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c = EmailAPI.UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c;
- export import UnnamedSchemaRef853c157ad369010995e35be614e0343f = EmailAPI.UnnamedSchemaRef853c157ad369010995e35be614e0343f;
+ export import RadarEmailSeries = EmailAPI.RadarEmailSeries;
+ export import RadarEmailSummary = EmailAPI.RadarEmailSummary;
export import Routing = RoutingAPI.Routing;
export import Security = SecurityAPI.Security;
}
diff --git a/src/resources/radar/email/index.ts b/src/resources/radar/email/index.ts
index a0f7339b5b..678d7437b3 100644
--- a/src/resources/radar/email/index.ts
+++ b/src/resources/radar/email/index.ts
@@ -1,9 +1,5 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+export { RadarEmailSeries, RadarEmailSummary, Email } from './email';
export { Routing } from './routing/index';
export { Security } from './security/index';
-export {
- UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c,
- UnnamedSchemaRef853c157ad369010995e35be614e0343f,
- Email,
-} from './email';
diff --git a/src/resources/radar/email/routing/summary.ts b/src/resources/radar/email/routing/summary.ts
index 714b4bf81a..c4a2b332e0 100644
--- a/src/resources/radar/email/routing/summary.ts
+++ b/src/resources/radar/email/routing/summary.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as SummaryAPI from 'cloudflare/resources/radar/email/routing/summary';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
import * as EmailAPI from 'cloudflare/resources/radar/email/email';
export class Summary extends APIResource {
@@ -132,12 +131,12 @@ export class Summary extends APIResource {
export interface SummaryARCResponse {
meta: SummaryARCResponse.Meta;
- summary_0: EmailAPI.UnnamedSchemaRef853c157ad369010995e35be614e0343f;
+ summary_0: EmailAPI.RadarEmailSummary;
}
export namespace SummaryARCResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -147,23 +146,53 @@ export namespace SummaryARCResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
}
export interface SummaryDKIMResponse {
meta: SummaryDKIMResponse.Meta;
- summary_0: EmailAPI.UnnamedSchemaRef853c157ad369010995e35be614e0343f;
+ summary_0: EmailAPI.RadarEmailSummary;
}
export namespace SummaryDKIMResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -173,23 +202,53 @@ export namespace SummaryDKIMResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
}
export interface SummaryDMARCResponse {
meta: SummaryDMARCResponse.Meta;
- summary_0: EmailAPI.UnnamedSchemaRef853c157ad369010995e35be614e0343f;
+ summary_0: EmailAPI.RadarEmailSummary;
}
export namespace SummaryDMARCResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -199,11 +258,41 @@ export namespace SummaryDMARCResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
}
@@ -215,7 +304,7 @@ export interface SummaryEncryptedResponse {
export namespace SummaryEncryptedResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -225,11 +314,41 @@ export namespace SummaryEncryptedResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
export interface Summary0 {
@@ -242,12 +361,12 @@ export namespace SummaryEncryptedResponse {
export interface SummaryIPVersionResponse {
meta: SummaryIPVersionResponse.Meta;
- summary_0: RadarAPI.UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297;
+ summary_0: SummaryIPVersionResponse.Summary0;
}
export namespace SummaryIPVersionResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -257,23 +376,59 @@ export namespace SummaryIPVersionResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
+ }
+
+ export interface Summary0 {
+ IPv4: string;
+
+ IPv6: string;
}
}
export interface SummarySPFResponse {
meta: SummarySPFResponse.Meta;
- summary_0: EmailAPI.UnnamedSchemaRef853c157ad369010995e35be614e0343f;
+ summary_0: EmailAPI.RadarEmailSummary;
}
export namespace SummarySPFResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -283,11 +438,41 @@ export namespace SummarySPFResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
}
diff --git a/src/resources/radar/email/routing/timeseries-groups.ts b/src/resources/radar/email/routing/timeseries-groups.ts
index 3feaab5e8d..67ec2feaa4 100644
--- a/src/resources/radar/email/routing/timeseries-groups.ts
+++ b/src/resources/radar/email/routing/timeseries-groups.ts
@@ -149,19 +149,19 @@ export class TimeseriesGroups extends APIResource {
export interface TimeseriesGroupARCResponse {
meta: unknown;
- serie_0: EmailAPI.UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c;
+ serie_0: EmailAPI.RadarEmailSeries;
}
export interface TimeseriesGroupDKIMResponse {
meta: unknown;
- serie_0: EmailAPI.UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c;
+ serie_0: EmailAPI.RadarEmailSeries;
}
export interface TimeseriesGroupDMARCResponse {
meta: unknown;
- serie_0: EmailAPI.UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c;
+ serie_0: EmailAPI.RadarEmailSeries;
}
export interface TimeseriesGroupEncryptedResponse {
@@ -195,7 +195,7 @@ export namespace TimeseriesGroupIPVersionResponse {
export interface TimeseriesGroupSPFResponse {
meta: unknown;
- serie_0: EmailAPI.UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c;
+ serie_0: EmailAPI.RadarEmailSeries;
}
export interface TimeseriesGroupARCParams {
diff --git a/src/resources/radar/email/security/summary.ts b/src/resources/radar/email/security/summary.ts
index 9e2e0d4a4e..0eba6928cd 100644
--- a/src/resources/radar/email/security/summary.ts
+++ b/src/resources/radar/email/security/summary.ts
@@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as SummaryAPI from 'cloudflare/resources/radar/email/security/summary';
-import * as RadarAPI from 'cloudflare/resources/radar/radar';
import * as EmailAPI from 'cloudflare/resources/radar/email/email';
export class Summary extends APIResource {
@@ -194,12 +193,12 @@ export class Summary extends APIResource {
export interface SummaryARCResponse {
meta: SummaryARCResponse.Meta;
- summary_0: EmailAPI.UnnamedSchemaRef853c157ad369010995e35be614e0343f;
+ summary_0: EmailAPI.RadarEmailSummary;
}
export namespace SummaryARCResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -209,23 +208,53 @@ export namespace SummaryARCResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
}
export interface SummaryDKIMResponse {
meta: SummaryDKIMResponse.Meta;
- summary_0: EmailAPI.UnnamedSchemaRef853c157ad369010995e35be614e0343f;
+ summary_0: EmailAPI.RadarEmailSummary;
}
export namespace SummaryDKIMResponse {
export interface Meta {
- dateRange: Array;
+ dateRange: Array;
lastUpdated: string;
@@ -235,23 +264,53 @@ export namespace SummaryDKIMResponse {
}
export namespace Meta {
+ export interface DateRange {
+ /**
+ * Adjusted end of date range.
+ */
+ endTime: string;
+
+ /**
+ * Adjusted start of date range.
+ */
+ startTime: string;
+ }
+
export interface ConfidenceInfo {
- annotations?: Array;
+ annotations?: Array;
level?: number;
}
+
+ export namespace ConfidenceInfo {
+ export interface Annotation {
+ dataSource: string;
+
+ description: string;
+
+ eventType: string;
+
+ isInstantaneous: unknown;
+
+ endTime?: string;
+
+ linkedUrl?: string;
+
+ startTime?: string;
+ }
+ }
}
}
export interface SummaryDMARCResponse {
meta: SummaryDMARCResponse.Meta;
- summary_0: EmailAPI.UnnamedSchemaRef853c157ad369010995e35be614e0343f;
+ summary_0: EmailAPI.RadarEmailSummary;
}
export namespace SummaryDMARCResponse {
export interface Meta {
- dateRange: Array