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; + dateRange: Array; lastUpdated: string; @@ -261,11 +320,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; + } + } } } @@ -277,7 +366,7 @@ export interface SummaryMaliciousResponse { export namespace SummaryMaliciousResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -287,11 +376,41 @@ export namespace SummaryMaliciousResponse { } 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 { @@ -309,7 +428,7 @@ export interface SummarySpamResponse { export namespace SummarySpamResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -319,11 +438,41 @@ export namespace SummarySpamResponse { } 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 { @@ -336,12 +485,12 @@ export namespace SummarySpamResponse { 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; @@ -351,11 +500,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; + } + } } } @@ -367,7 +546,7 @@ export interface SummarySpoofResponse { export namespace SummarySpoofResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -377,11 +556,41 @@ export namespace SummarySpoofResponse { } 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 { @@ -399,7 +608,7 @@ export interface SummaryThreatCategoryResponse { export namespace SummaryThreatCategoryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -409,11 +618,41 @@ export namespace SummaryThreatCategoryResponse { } 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 { @@ -435,7 +674,7 @@ export interface SummaryTLSVersionResponse { export namespace SummaryTLSVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -445,11 +684,41 @@ export namespace SummaryTLSVersionResponse { } 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/email/security/timeseries-groups.ts b/src/resources/radar/email/security/timeseries-groups.ts index 9740ad36f9..f5b21bc7fa 100644 --- a/src/resources/radar/email/security/timeseries-groups.ts +++ b/src/resources/radar/email/security/timeseries-groups.ts @@ -218,19 +218,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 TimeseriesGroupMaliciousResponse { @@ -264,7 +264,7 @@ export namespace TimeseriesGroupSpamResponse { export interface TimeseriesGroupSPFResponse { meta: unknown; - serie_0: EmailAPI.UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c; + serie_0: EmailAPI.RadarEmailSeries; } export interface TimeseriesGroupSpoofResponse { diff --git a/src/resources/radar/email/security/top/tlds/malicious.ts b/src/resources/radar/email/security/top/tlds/malicious.ts index 885b3662da..326eb58cbb 100644 --- a/src/resources/radar/email/security/top/tlds/malicious.ts +++ b/src/resources/radar/email/security/top/tlds/malicious.ts @@ -4,7 +4,6 @@ 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/tlds/malicious'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; import * as TopAPI from 'cloudflare/resources/radar/http/top'; export class Malicious extends APIResource { @@ -45,7 +44,7 @@ export interface MaliciousGetResponse { export namespace MaliciousGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -53,11 +52,41 @@ export namespace MaliciousGetResponse { } 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/security/top/tlds/spam.ts b/src/resources/radar/email/security/top/tlds/spam.ts index 49dca1686f..1515590701 100644 --- a/src/resources/radar/email/security/top/tlds/spam.ts +++ b/src/resources/radar/email/security/top/tlds/spam.ts @@ -4,7 +4,6 @@ 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/tlds/spam'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; import * as TopAPI from 'cloudflare/resources/radar/http/top'; export class Spam extends APIResource { @@ -42,7 +41,7 @@ export interface SpamGetResponse { export namespace SpamGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,11 +49,41 @@ export namespace SpamGetResponse { } 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/security/top/tlds/spoof.ts b/src/resources/radar/email/security/top/tlds/spoof.ts index a32c180c64..9fdc127d6a 100644 --- a/src/resources/radar/email/security/top/tlds/spoof.ts +++ b/src/resources/radar/email/security/top/tlds/spoof.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as SpoofAPI from 'cloudflare/resources/radar/email/security/top/tlds/spoof'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; import * as TopAPI from 'cloudflare/resources/radar/http/top'; export class Spoof extends APIResource { @@ -42,7 +41,7 @@ export interface SpoofGetResponse { export namespace SpoofGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,11 +49,41 @@ export namespace SpoofGetResponse { } 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/security/top/tlds/tlds.ts b/src/resources/radar/email/security/top/tlds/tlds.ts index 2aa71f90ba..a03479212b 100644 --- a/src/resources/radar/email/security/top/tlds/tlds.ts +++ b/src/resources/radar/email/security/top/tlds/tlds.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as TldsAPI from 'cloudflare/resources/radar/email/security/top/tlds/tlds'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; import * as TopAPI from 'cloudflare/resources/radar/http/top'; import * as MaliciousAPI from 'cloudflare/resources/radar/email/security/top/tlds/malicious'; import * as SpamAPI from 'cloudflare/resources/radar/email/security/top/tlds/spam'; @@ -44,7 +43,7 @@ export interface TldGetResponse { export namespace TldGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -52,11 +51,41 @@ export namespace TldGetResponse { } 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/entities/asns.ts b/src/resources/radar/entities/asns.ts index 1da8a27256..5b39eec6bd 100644 --- a/src/resources/radar/entities/asns.ts +++ b/src/resources/radar/entities/asns.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as ASNsAPI from 'cloudflare/resources/radar/entities/asns'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class ASNs extends APIResource { /** @@ -258,12 +257,20 @@ export namespace ASNIPResponse { } export interface ASNRelResponse { - meta: RadarAPI.UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7; + meta: ASNRelResponse.Meta; rels: Array; } export namespace ASNRelResponse { + export interface Meta { + data_time: string; + + query_time: string; + + total_peers: number; + } + export interface Rel { asn1: number; diff --git a/src/resources/radar/http/ases/ases.ts b/src/resources/radar/http/ases/ases.ts index b6479cd0cd..a651ae97f1 100644 --- a/src/resources/radar/http/ases/ases.ts +++ b/src/resources/radar/http/ases/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/http/ases/ases'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; import * as BotClassAPI from 'cloudflare/resources/radar/http/ases/bot-class'; import * as DeviceTypeAPI from 'cloudflare/resources/radar/http/ases/device-type'; import * as HTTPMethodAPI from 'cloudflare/resources/radar/http/ases/http-method'; @@ -46,12 +45,12 @@ export class Ases extends APIResource { export interface AseGetResponse { meta: AseGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace AseGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -59,11 +58,49 @@ export namespace AseGetResponse { } 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; } } diff --git a/src/resources/radar/http/ases/bot-class.ts b/src/resources/radar/http/ases/bot-class.ts index 5142b660eb..487d3e5e2d 100644 --- a/src/resources/radar/http/ases/bot-class.ts +++ b/src/resources/radar/http/ases/bot-class.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as BotClassAPI from 'cloudflare/resources/radar/http/ases/bot-class'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class BotClass extends APIResource { /** @@ -42,12 +41,12 @@ export class BotClass extends APIResource { export interface BotClassGetResponse { meta: BotClassGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace BotClassGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -55,11 +54,49 @@ export namespace BotClassGetResponse { } 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; } } diff --git a/src/resources/radar/http/ases/device-type.ts b/src/resources/radar/http/ases/device-type.ts index 6d852b8a08..4292ac1cdf 100644 --- a/src/resources/radar/http/ases/device-type.ts +++ b/src/resources/radar/http/ases/device-type.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as DeviceTypeAPI from 'cloudflare/resources/radar/http/ases/device-type'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class DeviceType extends APIResource { /** @@ -40,12 +39,12 @@ export class DeviceType extends APIResource { export interface DeviceTypeGetResponse { meta: DeviceTypeGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace DeviceTypeGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -53,11 +52,49 @@ export namespace DeviceTypeGetResponse { } 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; } } diff --git a/src/resources/radar/http/ases/http-method.ts b/src/resources/radar/http/ases/http-method.ts index 6beaa36f20..3c3932c479 100644 --- a/src/resources/radar/http/ases/http-method.ts +++ b/src/resources/radar/http/ases/http-method.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as HTTPMethodAPI from 'cloudflare/resources/radar/http/ases/http-method'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class HTTPMethod extends APIResource { /** @@ -40,12 +39,12 @@ export class HTTPMethod extends APIResource { export interface HTTPMethodGetResponse { meta: HTTPMethodGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace HTTPMethodGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -53,11 +52,49 @@ export namespace HTTPMethodGetResponse { } 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; } } diff --git a/src/resources/radar/http/ases/http-protocol.ts b/src/resources/radar/http/ases/http-protocol.ts index 90d0945b80..0d05c6a4a1 100644 --- a/src/resources/radar/http/ases/http-protocol.ts +++ b/src/resources/radar/http/ases/http-protocol.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as HTTPProtocolAPI from 'cloudflare/resources/radar/http/ases/http-protocol'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class HTTPProtocol extends APIResource { /** @@ -40,12 +39,12 @@ export class HTTPProtocol extends APIResource { export interface HTTPProtocolGetResponse { meta: HTTPProtocolGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace HTTPProtocolGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -53,11 +52,49 @@ export namespace HTTPProtocolGetResponse { } 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; } } diff --git a/src/resources/radar/http/ases/ip-version.ts b/src/resources/radar/http/ases/ip-version.ts index e19e78b9b4..8b9bd28012 100644 --- a/src/resources/radar/http/ases/ip-version.ts +++ b/src/resources/radar/http/ases/ip-version.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as IPVersionAPI from 'cloudflare/resources/radar/http/ases/ip-version'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class IPVersion extends APIResource { /** @@ -37,12 +36,12 @@ export class IPVersion extends APIResource { export interface IPVersionGetResponse { meta: IPVersionGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace IPVersionGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,11 +49,49 @@ export namespace IPVersionGetResponse { } 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; } } diff --git a/src/resources/radar/http/ases/os.ts b/src/resources/radar/http/ases/os.ts index 705c077a5a..1712687567 100644 --- a/src/resources/radar/http/ases/os.ts +++ b/src/resources/radar/http/ases/os.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as OSAPI from 'cloudflare/resources/radar/http/ases/os'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class OS extends APIResource { /** @@ -39,12 +38,12 @@ export class OS extends APIResource { export interface OSGetResponse { meta: OSGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace OSGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -52,11 +51,49 @@ export namespace OSGetResponse { } 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; } } diff --git a/src/resources/radar/http/ases/tls-version.ts b/src/resources/radar/http/ases/tls-version.ts index d2cf2d9c37..7b880c8dbb 100644 --- a/src/resources/radar/http/ases/tls-version.ts +++ b/src/resources/radar/http/ases/tls-version.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as TLSVersionAPI from 'cloudflare/resources/radar/http/ases/tls-version'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class TLSVersion extends APIResource { /** @@ -40,12 +39,12 @@ export class TLSVersion extends APIResource { export interface TLSVersionGetResponse { meta: TLSVersionGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TLSVersionGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -53,11 +52,49 @@ export namespace TLSVersionGetResponse { } 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; } } diff --git a/src/resources/radar/http/locations/bot-class.ts b/src/resources/radar/http/locations/bot-class.ts index ba5f17a3ea..b3577bf61e 100644 --- a/src/resources/radar/http/locations/bot-class.ts +++ b/src/resources/radar/http/locations/bot-class.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as BotClassAPI from 'cloudflare/resources/radar/http/locations/bot-class'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class BotClass extends APIResource { /** @@ -42,12 +41,12 @@ export class BotClass extends APIResource { export interface BotClassGetResponse { meta: BotClassGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace BotClassGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -55,11 +54,49 @@ export namespace BotClassGetResponse { } 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/http/locations/device-type.ts b/src/resources/radar/http/locations/device-type.ts index 7f21387cec..9ff67beef2 100644 --- a/src/resources/radar/http/locations/device-type.ts +++ b/src/resources/radar/http/locations/device-type.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as DeviceTypeAPI from 'cloudflare/resources/radar/http/locations/device-type'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class DeviceType extends APIResource { /** @@ -40,12 +39,12 @@ export class DeviceType extends APIResource { export interface DeviceTypeGetResponse { meta: DeviceTypeGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace DeviceTypeGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -53,11 +52,49 @@ export namespace DeviceTypeGetResponse { } 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/http/locations/http-method.ts b/src/resources/radar/http/locations/http-method.ts index 676006e99d..e919bf62a6 100644 --- a/src/resources/radar/http/locations/http-method.ts +++ b/src/resources/radar/http/locations/http-method.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as HTTPMethodAPI from 'cloudflare/resources/radar/http/locations/http-method'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class HTTPMethod extends APIResource { /** @@ -40,12 +39,12 @@ export class HTTPMethod extends APIResource { export interface HTTPMethodGetResponse { meta: HTTPMethodGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace HTTPMethodGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -53,11 +52,49 @@ export namespace HTTPMethodGetResponse { } 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/http/locations/http-protocol.ts b/src/resources/radar/http/locations/http-protocol.ts index b6b4d32e3f..fdde531f18 100644 --- a/src/resources/radar/http/locations/http-protocol.ts +++ b/src/resources/radar/http/locations/http-protocol.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as HTTPProtocolAPI from 'cloudflare/resources/radar/http/locations/http-protocol'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class HTTPProtocol extends APIResource { /** @@ -40,12 +39,12 @@ export class HTTPProtocol extends APIResource { export interface HTTPProtocolGetResponse { meta: HTTPProtocolGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace HTTPProtocolGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -53,11 +52,49 @@ export namespace HTTPProtocolGetResponse { } 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/http/locations/ip-version.ts b/src/resources/radar/http/locations/ip-version.ts index f12af3dde8..f2f70180b9 100644 --- a/src/resources/radar/http/locations/ip-version.ts +++ b/src/resources/radar/http/locations/ip-version.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as IPVersionAPI from 'cloudflare/resources/radar/http/locations/ip-version'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class IPVersion extends APIResource { /** @@ -37,12 +36,12 @@ export class IPVersion extends APIResource { export interface IPVersionGetResponse { meta: IPVersionGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace IPVersionGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -50,11 +49,49 @@ export namespace IPVersionGetResponse { } 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/http/locations/locations.ts b/src/resources/radar/http/locations/locations.ts index e08f726d59..36d4d2e417 100644 --- a/src/resources/radar/http/locations/locations.ts +++ b/src/resources/radar/http/locations/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/http/locations/locations'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; import * as BotClassAPI from 'cloudflare/resources/radar/http/locations/bot-class'; import * as DeviceTypeAPI from 'cloudflare/resources/radar/http/locations/device-type'; import * as HTTPMethodAPI from 'cloudflare/resources/radar/http/locations/http-method'; @@ -46,12 +45,12 @@ export class Locations extends APIResource { export interface LocationGetResponse { meta: LocationGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace LocationGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -59,11 +58,49 @@ export namespace LocationGetResponse { } 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/http/locations/os.ts b/src/resources/radar/http/locations/os.ts index 3516a99e9a..a3e8e4e1c3 100644 --- a/src/resources/radar/http/locations/os.ts +++ b/src/resources/radar/http/locations/os.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as OSAPI from 'cloudflare/resources/radar/http/locations/os'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class OS extends APIResource { /** @@ -39,12 +38,12 @@ export class OS extends APIResource { export interface OSGetResponse { meta: OSGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace OSGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -52,11 +51,49 @@ export namespace OSGetResponse { } 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/http/locations/tls-version.ts b/src/resources/radar/http/locations/tls-version.ts index 231f5a32e9..1cf5a326f8 100644 --- a/src/resources/radar/http/locations/tls-version.ts +++ b/src/resources/radar/http/locations/tls-version.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as TLSVersionAPI from 'cloudflare/resources/radar/http/locations/tls-version'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class TLSVersion extends APIResource { /** @@ -40,12 +39,12 @@ export class TLSVersion extends APIResource { export interface TLSVersionGetResponse { meta: TLSVersionGetResponse.Meta; - top_0: Array; + top_0: Array; } export namespace TLSVersionGetResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -53,11 +52,49 @@ export namespace TLSVersionGetResponse { } 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/http/summary.ts b/src/resources/radar/http/summary.ts index 16bbf70648..528e79a0c5 100644 --- a/src/resources/radar/http/summary.ts +++ b/src/resources/radar/http/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/http/summary'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class Summary extends APIResource { /** @@ -175,7 +174,7 @@ export interface SummaryBotClassResponse { export namespace SummaryBotClassResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -185,11 +184,41 @@ export namespace SummaryBotClassResponse { } 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 { @@ -207,7 +236,7 @@ export interface SummaryDeviceTypeResponse { export namespace SummaryDeviceTypeResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -217,11 +246,41 @@ export namespace SummaryDeviceTypeResponse { } 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 { @@ -241,7 +300,7 @@ export interface SummaryHTTPProtocolResponse { export namespace SummaryHTTPProtocolResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -251,11 +310,41 @@ export namespace SummaryHTTPProtocolResponse { } 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 { @@ -273,7 +362,7 @@ export interface SummaryHTTPVersionResponse { export namespace SummaryHTTPVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -283,11 +372,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 { @@ -302,12 +421,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; @@ -317,11 +436,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; } } @@ -333,7 +488,7 @@ export interface SummaryOSResponse { export namespace SummaryOSResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -343,11 +498,41 @@ export namespace SummaryOSResponse { } 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 { @@ -365,7 +550,7 @@ export interface SummaryTLSVersionResponse { export namespace SummaryTLSVersionResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -375,11 +560,41 @@ export namespace SummaryTLSVersionResponse { } 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/http/timeseries-groups.ts b/src/resources/radar/http/timeseries-groups.ts index e11374c4b9..ec2b671e98 100644 --- a/src/resources/radar/http/timeseries-groups.ts +++ b/src/resources/radar/http/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/http/timeseries-groups'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class TimeseriesGroups extends APIResource { /** @@ -239,13 +238,27 @@ export namespace TimeseriesGroupBotClassResponse { export interface TimeseriesGroupBrowserResponse { meta: unknown; - serie_0: RadarAPI.UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55; + serie_0: TimeseriesGroupBrowserResponse.Serie0; +} + +export namespace TimeseriesGroupBrowserResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array; + } } export interface TimeseriesGroupBrowserFamilyResponse { meta: unknown; - serie_0: RadarAPI.UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55; + serie_0: TimeseriesGroupBrowserFamilyResponse.Serie0; +} + +export namespace TimeseriesGroupBrowserFamilyResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array; + } } export interface TimeseriesGroupDeviceTypeResponse { @@ -303,13 +316,30 @@ export namespace TimeseriesGroupHTTPVersionResponse { 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 TimeseriesGroupOSResponse { meta: unknown; - serie_0: RadarAPI.UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55; + serie_0: TimeseriesGroupOSResponse.Serie0; +} + +export namespace TimeseriesGroupOSResponse { + export interface Serie0 { + timestamps: Array; + [k: string]: Array; + } } export interface TimeseriesGroupTLSVersionResponse { diff --git a/src/resources/radar/http/top.ts b/src/resources/radar/http/top.ts index 607ec262b3..5d427403fe 100644 --- a/src/resources/radar/http/top.ts +++ b/src/resources/radar/http/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/http/top'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class Top extends APIResource { /** @@ -65,7 +64,7 @@ export interface TopBrowserFamiliesResponse { export namespace TopBrowserFamiliesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -73,11 +72,41 @@ export namespace TopBrowserFamiliesResponse { } 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; + } + } } } @@ -89,7 +118,7 @@ export interface TopBrowsersResponse { export namespace TopBrowsersResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -97,11 +126,41 @@ export namespace TopBrowsersResponse { } 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/index.ts b/src/resources/radar/index.ts index c798ec4beb..5bbab5e4a1 100644 --- a/src/resources/radar/index.ts +++ b/src/resources/radar/index.ts @@ -26,6 +26,7 @@ export { HTTP } from './http/index'; export { NetflowTimeseriesResponse, NetflowTimeseriesParams, Netflows } from './netflows/index'; export { Quality } from './quality/index'; export { Radar } from './radar'; +export { RadarEmailSeries, RadarEmailSummary, Email } from './email/index'; export { RankingTimeseriesGroupsResponse, RankingTopResponse, @@ -39,9 +40,4 @@ export { TrafficAnomalyGetParams, TrafficAnomalies, } from './traffic-anomalies/index'; -export { - UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c, - UnnamedSchemaRef853c157ad369010995e35be614e0343f, - Email, -} from './email/index'; export { VerifiedBots } from './verified-bots/index'; diff --git a/src/resources/radar/netflows/netflows.ts b/src/resources/radar/netflows/netflows.ts index 6aaa1a1f2e..4e86717bc2 100644 --- a/src/resources/radar/netflows/netflows.ts +++ b/src/resources/radar/netflows/netflows.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as NetflowsAPI from 'cloudflare/resources/radar/netflows/netflows'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; import * as TopAPI from 'cloudflare/resources/radar/netflows/top'; export class Netflows extends APIResource { @@ -37,14 +36,14 @@ export class Netflows extends APIResource { export interface NetflowTimeseriesResponse { meta: NetflowTimeseriesResponse.Meta; - serie_0: RadarAPI.UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb; + serie_0: NetflowTimeseriesResponse.Serie0; } export namespace NetflowTimeseriesResponse { export interface Meta { aggInterval: string; - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -52,11 +51,47 @@ export namespace NetflowTimeseriesResponse { } 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/quality/iqi.ts b/src/resources/radar/quality/iqi.ts index 4bba658add..4e6f89cf23 100644 --- a/src/resources/radar/quality/iqi.ts +++ b/src/resources/radar/quality/iqi.ts @@ -3,7 +3,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as IQIAPI from 'cloudflare/resources/radar/quality/iqi'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class IQI extends APIResource { /** @@ -42,7 +41,7 @@ export interface IQISummaryResponse { export namespace IQISummaryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -52,11 +51,41 @@ export namespace IQISummaryResponse { } 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/quality/speed/speed.ts b/src/resources/radar/quality/speed/speed.ts index 352492e64c..2d8c324a2b 100644 --- a/src/resources/radar/quality/speed/speed.ts +++ b/src/resources/radar/quality/speed/speed.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as SpeedAPI from 'cloudflare/resources/radar/quality/speed/speed'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; import * as TopAPI from 'cloudflare/resources/radar/quality/speed/top'; export class Speed extends APIResource { @@ -78,7 +77,7 @@ export interface SpeedSummaryResponse { export namespace SpeedSummaryResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -88,11 +87,41 @@ export namespace SpeedSummaryResponse { } 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/quality/speed/top.ts b/src/resources/radar/quality/speed/top.ts index fe9a3eb0fb..70d9470f8b 100644 --- a/src/resources/radar/quality/speed/top.ts +++ b/src/resources/radar/quality/speed/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/quality/speed/top'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class Top extends APIResource { /** @@ -56,7 +55,7 @@ export interface TopAsesResponse { export namespace TopAsesResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -64,11 +63,41 @@ export namespace TopAsesResponse { } 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 { @@ -102,7 +131,7 @@ export interface TopLocationsResponse { export namespace TopLocationsResponse { export interface Meta { - dateRange: Array; + dateRange: Array; lastUpdated: string; @@ -110,11 +139,41 @@ 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 { diff --git a/src/resources/radar/radar.ts b/src/resources/radar/radar.ts index 1acd14cdd4..a8e6cdf3d2 100644 --- a/src/resources/radar/radar.ts +++ b/src/resources/radar/radar.ts @@ -40,93 +40,6 @@ export class Radar extends APIResource { ); } -export interface UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42 { - code: string; - - name: string; -} - -export interface UnnamedSchemaRef4124a22436f90127c7fa2c4543219752 { - clientASN: number; - - clientASName: string; - - value: string; -} - -export interface UnnamedSchemaRef73de8b634bb48667e28a6c6c56080c51 { - error: string; -} - -export interface UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb { - timestamps: Array; - - values: Array; -} - -export interface UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 { - timestamps: Array; - [k: string]: Array; -} - -export interface UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 { - clientCountryAlpha2: string; - - clientCountryName: string; - - value: string; -} - -export interface UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297 { - IPv4: string; - - IPv6: string; -} - -export interface UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a { - IPv4: Array; - - IPv6: Array; - - timestamps: Array; -} - -export interface UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1 { - dataSource: string; - - description: string; - - eventType: string; - - isInstantaneous: unknown; - - endTime?: string; - - linkedUrl?: string; - - startTime?: string; -} - -export interface UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5 { - /** - * Adjusted end of date range. - */ - endTime: string; - - /** - * Adjusted start of date range. - */ - startTime: string; -} - -export interface UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7 { - data_time: string; - - query_time: string; - - total_peers: number; -} - export namespace Radar { export import Annotations = AnnotationsAPI.Annotations; export import BGP = BGPAPI.BGP; @@ -156,8 +69,8 @@ export namespace Radar { export import ConnectionTamperingSummaryParams = ConnectionTamperingAPI.ConnectionTamperingSummaryParams; export import ConnectionTamperingTimeseriesGroupsParams = ConnectionTamperingAPI.ConnectionTamperingTimeseriesGroupsParams; export import Email = EmailAPI.Email; - export import UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c = EmailAPI.UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c; - export import UnnamedSchemaRef853c157ad369010995e35be614e0343f = EmailAPI.UnnamedSchemaRef853c157ad369010995e35be614e0343f; + export import RadarEmailSeries = EmailAPI.RadarEmailSeries; + export import RadarEmailSummary = EmailAPI.RadarEmailSummary; export import Attacks = AttacksAPI.Attacks; export import Entities = EntitiesAPI.Entities; export import EntityGetResponse = EntitiesAPI.EntityGetResponse; diff --git a/src/resources/radar/ranking/ranking.ts b/src/resources/radar/ranking/ranking.ts index 883ad2e19d..37b036951a 100644 --- a/src/resources/radar/ranking/ranking.ts +++ b/src/resources/radar/ranking/ranking.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as RankingAPI from 'cloudflare/resources/radar/ranking/ranking'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; import * as DomainAPI from 'cloudflare/resources/radar/ranking/domain'; export class Ranking extends APIResource { @@ -63,7 +62,21 @@ export interface RankingTimeseriesGroupsResponse { export namespace RankingTimeseriesGroupsResponse { 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 Serie0 { diff --git a/src/resources/radar/traffic-anomalies/locations.ts b/src/resources/radar/traffic-anomalies/locations.ts index b2abd7c52b..dc778618fd 100644 --- a/src/resources/radar/traffic-anomalies/locations.ts +++ b/src/resources/radar/traffic-anomalies/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/traffic-anomalies/locations'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class Locations extends APIResource { /** @@ -30,7 +29,17 @@ export class Locations extends APIResource { } export interface LocationGetResponse { - trafficAnomalies: Array; + trafficAnomalies: Array; +} + +export namespace LocationGetResponse { + export interface TrafficAnomaly { + clientCountryAlpha2: string; + + clientCountryName: string; + + value: string; + } } export interface LocationGetParams { diff --git a/src/resources/radar/traffic-anomalies/traffic-anomalies.ts b/src/resources/radar/traffic-anomalies/traffic-anomalies.ts index 237112dd83..1fd95b1676 100644 --- a/src/resources/radar/traffic-anomalies/traffic-anomalies.ts +++ b/src/resources/radar/traffic-anomalies/traffic-anomalies.ts @@ -4,7 +4,6 @@ import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as TrafficAnomaliesAPI from 'cloudflare/resources/radar/traffic-anomalies/traffic-anomalies'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; import * as LocationsAPI from 'cloudflare/resources/radar/traffic-anomalies/locations'; export class TrafficAnomalies extends APIResource { @@ -53,7 +52,7 @@ export namespace TrafficAnomalyGetResponse { endDate?: string; - locationDetails?: RadarAPI.UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42; + locationDetails?: TrafficAnomaly.LocationDetails; visibleInDataSources?: Array; } @@ -64,7 +63,21 @@ export namespace TrafficAnomalyGetResponse { name: string; - locations?: RadarAPI.UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42; + locations?: ASNDetails.Locations; + } + + export namespace ASNDetails { + export interface Locations { + code: string; + + name: string; + } + } + + export interface LocationDetails { + code: string; + + name: string; } } } diff --git a/src/resources/radar/verified-bots/top.ts b/src/resources/radar/verified-bots/top.ts index 4e0c9e611c..b8530b37bc 100644 --- a/src/resources/radar/verified-bots/top.ts +++ b/src/resources/radar/verified-bots/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/verified-bots/top'; -import * as RadarAPI from 'cloudflare/resources/radar/radar'; export class Top extends APIResource { /** @@ -58,17 +57,47 @@ export interface TopBotsResponse { export namespace TopBotsResponse { 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 { @@ -90,17 +119,47 @@ export interface TopCategoriesResponse { export namespace TopCategoriesResponse { 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 {