From b6da688099f86e9e254456be9e0ba7e99f18d1f7 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 18 Jun 2024 08:54:37 +0000
Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#975)
---
.stats.yml | 2 +-
api.md | 2 +-
src/resources/radar/as112/as112.ts | 2 +-
src/resources/radar/as112/summary.ts | 12 +++++------
src/resources/radar/as112/top.ts | 8 ++++----
src/resources/radar/attacks/layer3/summary.ts | 12 +++++------
.../radar/attacks/layer3/timeseries-groups.ts | 2 +-
.../radar/attacks/layer3/top/locations.ts | 4 ++--
src/resources/radar/attacks/layer3/top/top.ts | 12 ++++++++---
src/resources/radar/attacks/layer7/layer7.ts | 2 +-
src/resources/radar/attacks/layer7/summary.ts | 12 +++++------
.../radar/attacks/layer7/timeseries-groups.ts | 2 +-
.../radar/attacks/layer7/top/ases.ts | 2 +-
.../radar/attacks/layer7/top/locations.ts | 4 ++--
src/resources/radar/attacks/layer7/top/top.ts | 12 ++++++++---
src/resources/radar/bgp/bgp.ts | 6 ++++--
src/resources/radar/bgp/top/ases.ts | 4 +++-
src/resources/radar/connection-tampering.ts | 4 ++--
src/resources/radar/datasets.ts | 20 +------------------
src/resources/radar/dns/top.ts | 4 ++--
src/resources/radar/email/routing/summary.ts | 12 +++++------
src/resources/radar/email/security/summary.ts | 18 ++++++++---------
.../email/security/top/tlds/malicious.ts | 2 +-
.../radar/email/security/top/tlds/spam.ts | 2 +-
.../radar/email/security/top/tlds/spoof.ts | 2 +-
.../radar/email/security/top/tlds/tlds.ts | 2 +-
src/resources/radar/http/ases/ases.ts | 2 +-
src/resources/radar/http/ases/bot-class.ts | 2 +-
.../radar/http/ases/browser-family.ts | 2 +-
src/resources/radar/http/ases/device-type.ts | 2 +-
src/resources/radar/http/ases/http-method.ts | 2 +-
.../radar/http/ases/http-protocol.ts | 2 +-
src/resources/radar/http/ases/ip-version.ts | 2 +-
src/resources/radar/http/ases/os.ts | 2 +-
src/resources/radar/http/ases/tls-version.ts | 2 +-
src/resources/radar/http/http.ts | 2 +-
.../radar/http/locations/bot-class.ts | 2 +-
.../radar/http/locations/browser-family.ts | 2 +-
.../radar/http/locations/device-type.ts | 2 +-
.../radar/http/locations/http-method.ts | 2 +-
.../radar/http/locations/http-protocol.ts | 2 +-
.../radar/http/locations/ip-version.ts | 2 +-
.../radar/http/locations/locations.ts | 2 +-
src/resources/radar/http/locations/os.ts | 2 +-
.../radar/http/locations/tls-version.ts | 2 +-
src/resources/radar/http/summary.ts | 16 +++++++--------
src/resources/radar/http/top.ts | 4 ++--
src/resources/radar/index.ts | 1 -
src/resources/radar/netflows/netflows.ts | 2 +-
src/resources/radar/quality/iqi.ts | 2 +-
src/resources/radar/quality/speed/speed.ts | 2 +-
src/resources/radar/quality/speed/top.ts | 4 ++--
src/resources/radar/radar.ts | 1 -
src/resources/radar/ranking/domain.ts | 2 +-
src/resources/radar/ranking/ranking.ts | 2 +-
src/resources/radar/verified-bots/top.ts | 4 ++--
.../radar/attacks/layer3/top/top.test.ts | 1 +
.../radar/attacks/layer7/top/top.test.ts | 1 +
tests/api-resources/radar/bgp/bgp.test.ts | 6 +++---
.../api-resources/radar/bgp/top/ases.test.ts | 6 +++---
tests/api-resources/radar/datasets.test.ts | 11 ----------
61 files changed, 128 insertions(+), 141 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 4a8cb08780..76fac26c15 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,2 +1,2 @@
configured_endpoints: 1348
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9d1a5f2de8e753867ab88ca1b88d1d1cdc944a7834fb81506a7ace10ed151624.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dfb8d2c58c029167d6eb04131ff40df5631570c1bc49279bc148b2331fa68dee.yml
diff --git a/api.md b/api.md
index 424700af10..56966b0abc 100644
--- a/api.md
+++ b/api.md
@@ -5684,7 +5684,7 @@ Methods:
- client.radar.datasets.list({ ...params }) -> DatasetListResponse
- client.radar.datasets.download({ ...params }) -> DatasetDownloadResponse
-- client.radar.datasets.get(alias, { ...params }) -> string
+- client.radar.datasets.get(alias) -> string
## DNS
diff --git a/src/resources/radar/as112/as112.ts b/src/resources/radar/as112/as112.ts
index c9924054ed..0ff911b752 100644
--- a/src/resources/radar/as112/as112.ts
+++ b/src/resources/radar/as112/as112.ts
@@ -82,7 +82,7 @@ export namespace AS112TimeseriesResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/as112/summary.ts b/src/resources/radar/as112/summary.ts
index 3200fdc047..71dbedc423 100644
--- a/src/resources/radar/as112/summary.ts
+++ b/src/resources/radar/as112/summary.ts
@@ -177,7 +177,7 @@ export namespace SummaryDNSSECResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -239,7 +239,7 @@ export namespace SummaryEdnsResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -301,7 +301,7 @@ export namespace SummaryIPVersionResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -363,7 +363,7 @@ export namespace SummaryProtocolResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -425,7 +425,7 @@ export namespace SummaryQueryTypeResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -493,7 +493,7 @@ export namespace SummaryResponseCodesResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/as112/top.ts b/src/resources/radar/as112/top.ts
index 09b77befed..b0d431ba7f 100644
--- a/src/resources/radar/as112/top.ts
+++ b/src/resources/radar/as112/top.ts
@@ -146,7 +146,7 @@ export namespace TopDNSSECResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -208,7 +208,7 @@ export namespace TopEdnsResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -270,7 +270,7 @@ export namespace TopIPVersionResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -332,7 +332,7 @@ export namespace TopLocationsResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/attacks/layer3/summary.ts b/src/resources/radar/attacks/layer3/summary.ts
index b4ba6d2853..cf4421cdc9 100644
--- a/src/resources/radar/attacks/layer3/summary.ts
+++ b/src/resources/radar/attacks/layer3/summary.ts
@@ -178,7 +178,7 @@ export namespace SummaryBitrateResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -246,7 +246,7 @@ export namespace SummaryDurationResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -312,7 +312,7 @@ export namespace SummaryGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -378,7 +378,7 @@ export namespace SummaryIPVersionResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -440,7 +440,7 @@ export namespace SummaryProtocolResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -506,7 +506,7 @@ export namespace SummaryVectorResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/attacks/layer3/timeseries-groups.ts b/src/resources/radar/attacks/layer3/timeseries-groups.ts
index 707223acad..dfc0f95444 100644
--- a/src/resources/radar/attacks/layer3/timeseries-groups.ts
+++ b/src/resources/radar/attacks/layer3/timeseries-groups.ts
@@ -281,7 +281,7 @@ export namespace TimeseriesGroupGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/attacks/layer3/top/locations.ts b/src/resources/radar/attacks/layer3/top/locations.ts
index b02d30c2d0..e8c6711c4f 100644
--- a/src/resources/radar/attacks/layer3/top/locations.ts
+++ b/src/resources/radar/attacks/layer3/top/locations.ts
@@ -95,7 +95,7 @@ export namespace LocationOriginResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -159,7 +159,7 @@ export namespace LocationTargetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/attacks/layer3/top/top.ts b/src/resources/radar/attacks/layer3/top/top.ts
index 7bfaaa5305..7e1563cafa 100644
--- a/src/resources/radar/attacks/layer3/top/top.ts
+++ b/src/resources/radar/attacks/layer3/top/top.ts
@@ -113,7 +113,7 @@ export namespace TopAttacksResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -175,7 +175,7 @@ export namespace TopIndustryResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -229,7 +229,7 @@ export namespace TopVerticalResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -322,6 +322,12 @@ export interface TopAttacksParams {
*/
name?: Array;
+ /**
+ * Normalization method applied. Refer to
+ * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ */
+ normalization?: 'PERCENTAGE' | 'MIN_MAX';
+
/**
* Array of L3/4 attack types.
*/
diff --git a/src/resources/radar/attacks/layer7/layer7.ts b/src/resources/radar/attacks/layer7/layer7.ts
index 1ff5784c3e..ed9de5ea34 100644
--- a/src/resources/radar/attacks/layer7/layer7.ts
+++ b/src/resources/radar/attacks/layer7/layer7.ts
@@ -83,7 +83,7 @@ export namespace Layer7TimeseriesResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/attacks/layer7/summary.ts b/src/resources/radar/attacks/layer7/summary.ts
index fe7b61d10b..cf6fb89b14 100644
--- a/src/resources/radar/attacks/layer7/summary.ts
+++ b/src/resources/radar/attacks/layer7/summary.ts
@@ -180,7 +180,7 @@ export namespace SummaryGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -252,7 +252,7 @@ export namespace SummaryHTTPMethodResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -314,7 +314,7 @@ export namespace SummaryHTTPVersionResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -378,7 +378,7 @@ export namespace SummaryIPVersionResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -440,7 +440,7 @@ export namespace SummaryManagedRulesResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -502,7 +502,7 @@ export namespace SummaryMitigationProductResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/attacks/layer7/timeseries-groups.ts b/src/resources/radar/attacks/layer7/timeseries-groups.ts
index 7a8945775b..5ab20ad863 100644
--- a/src/resources/radar/attacks/layer7/timeseries-groups.ts
+++ b/src/resources/radar/attacks/layer7/timeseries-groups.ts
@@ -235,7 +235,7 @@ export namespace TimeseriesGroupGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/attacks/layer7/top/ases.ts b/src/resources/radar/attacks/layer7/top/ases.ts
index 27e9f59e36..2cfbf6e909 100644
--- a/src/resources/radar/attacks/layer7/top/ases.ts
+++ b/src/resources/radar/attacks/layer7/top/ases.ts
@@ -70,7 +70,7 @@ export namespace AseOriginResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/attacks/layer7/top/locations.ts b/src/resources/radar/attacks/layer7/top/locations.ts
index 271986ca15..c23416ab6b 100644
--- a/src/resources/radar/attacks/layer7/top/locations.ts
+++ b/src/resources/radar/attacks/layer7/top/locations.ts
@@ -99,7 +99,7 @@ export namespace LocationOriginResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -163,7 +163,7 @@ export namespace LocationTargetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/attacks/layer7/top/top.ts b/src/resources/radar/attacks/layer7/top/top.ts
index c3d6357ebe..a0310bd9d7 100644
--- a/src/resources/radar/attacks/layer7/top/top.ts
+++ b/src/resources/radar/attacks/layer7/top/top.ts
@@ -116,7 +116,7 @@ export namespace TopAttacksResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -182,7 +182,7 @@ export namespace TopIndustryResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -236,7 +236,7 @@ export namespace TopVerticalResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -336,6 +336,12 @@ export interface TopAttacksParams {
* Array of names that will be used to name the series in responses.
*/
name?: Array;
+
+ /**
+ * Normalization method applied. Refer to
+ * [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ */
+ normalization?: 'PERCENTAGE' | 'MIN_MAX';
}
export interface TopIndustryParams {
diff --git a/src/resources/radar/bgp/bgp.ts b/src/resources/radar/bgp/bgp.ts
index 98ea78c8ed..81bc156587 100644
--- a/src/resources/radar/bgp/bgp.ts
+++ b/src/resources/radar/bgp/bgp.ts
@@ -86,7 +86,7 @@ export namespace BGPTimeseriesResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -175,10 +175,12 @@ export interface BGPTimeseriesParams {
export namespace BGPTimeseriesParams {
export interface Prefix {
- location: string;
+ in: string;
name: string;
+ test: number;
+
/**
* Network prefix, IPv4 or IPv6.
*/
diff --git a/src/resources/radar/bgp/top/ases.ts b/src/resources/radar/bgp/top/ases.ts
index e6c7311d4b..2285f1bc11 100644
--- a/src/resources/radar/bgp/top/ases.ts
+++ b/src/resources/radar/bgp/top/ases.ts
@@ -181,10 +181,12 @@ export interface AseGetParams {
export namespace AseGetParams {
export interface Prefix {
- location: string;
+ in: string;
name: string;
+ test: number;
+
/**
* Network prefix, IPv4 or IPv6.
*/
diff --git a/src/resources/radar/connection-tampering.ts b/src/resources/radar/connection-tampering.ts
index 34b4726e4a..a42d4f6f2c 100644
--- a/src/resources/radar/connection-tampering.ts
+++ b/src/resources/radar/connection-tampering.ts
@@ -94,7 +94,7 @@ export namespace ConnectionTamperingSummaryResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -182,7 +182,7 @@ export namespace ConnectionTamperingTimeseriesGroupsResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/datasets.ts b/src/resources/radar/datasets.ts
index 2e0c939c22..6d40cc6182 100644
--- a/src/resources/radar/datasets.ts
+++ b/src/resources/radar/datasets.ts
@@ -47,18 +47,8 @@ export class Datasets extends APIResource {
* by alias the latest dataset is returned, optionally filtered by the latest
* available at a given date.
*/
- get(alias: string, query?: DatasetGetParams, options?: Core.RequestOptions): Core.APIPromise;
- get(alias: string, options?: Core.RequestOptions): Core.APIPromise;
- get(
- alias: string,
- query: DatasetGetParams | Core.RequestOptions = {},
- options?: Core.RequestOptions,
- ): Core.APIPromise {
- if (isRequestOptions(query)) {
- return this.get(alias, {}, query);
- }
+ get(alias: string, options?: Core.RequestOptions): Core.APIPromise {
return this._client.get(`/radar/datasets/${alias}`, {
- query,
...options,
headers: { Accept: 'text/csv', ...options?.headers },
});
@@ -131,18 +121,10 @@ export interface DatasetDownloadParams {
format?: 'JSON' | 'CSV';
}
-export interface DatasetGetParams {
- /**
- * Filter dataset alias by date
- */
- date?: string | null;
-}
-
export namespace Datasets {
export import DatasetListResponse = DatasetsAPI.DatasetListResponse;
export import DatasetDownloadResponse = DatasetsAPI.DatasetDownloadResponse;
export import DatasetGetResponse = DatasetsAPI.DatasetGetResponse;
export import DatasetListParams = DatasetsAPI.DatasetListParams;
export import DatasetDownloadParams = DatasetsAPI.DatasetDownloadParams;
- export import DatasetGetParams = DatasetsAPI.DatasetGetParams;
}
diff --git a/src/resources/radar/dns/top.ts b/src/resources/radar/dns/top.ts
index a8d1d2d93a..6127424a12 100644
--- a/src/resources/radar/dns/top.ts
+++ b/src/resources/radar/dns/top.ts
@@ -69,7 +69,7 @@ export namespace TopAsesResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -129,7 +129,7 @@ export namespace TopLocationsResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/email/routing/summary.ts b/src/resources/radar/email/routing/summary.ts
index 047adbc1e0..2017791d6f 100644
--- a/src/resources/radar/email/routing/summary.ts
+++ b/src/resources/radar/email/routing/summary.ts
@@ -172,7 +172,7 @@ export namespace SummaryARCResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -228,7 +228,7 @@ export namespace SummaryDKIMResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -284,7 +284,7 @@ export namespace SummaryDMARCResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -340,7 +340,7 @@ export namespace SummaryEncryptedResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -402,7 +402,7 @@ export namespace SummaryIPVersionResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -464,7 +464,7 @@ export namespace SummarySPFResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/email/security/summary.ts b/src/resources/radar/email/security/summary.ts
index e813339ff5..9ab62a600a 100644
--- a/src/resources/radar/email/security/summary.ts
+++ b/src/resources/radar/email/security/summary.ts
@@ -234,7 +234,7 @@ export namespace SummaryARCResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -290,7 +290,7 @@ export namespace SummaryDKIMResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -346,7 +346,7 @@ export namespace SummaryDMARCResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -402,7 +402,7 @@ export namespace SummaryMaliciousResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -464,7 +464,7 @@ export namespace SummarySpamResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -526,7 +526,7 @@ export namespace SummarySPFResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -582,7 +582,7 @@ export namespace SummarySpoofResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -644,7 +644,7 @@ export namespace SummaryThreatCategoryResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -710,7 +710,7 @@ export namespace SummaryTLSVersionResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/email/security/top/tlds/malicious.ts b/src/resources/radar/email/security/top/tlds/malicious.ts
index 735078f2f1..c5ba33d3f4 100644
--- a/src/resources/radar/email/security/top/tlds/malicious.ts
+++ b/src/resources/radar/email/security/top/tlds/malicious.ts
@@ -78,7 +78,7 @@ export namespace MaliciousGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/email/security/top/tlds/spam.ts b/src/resources/radar/email/security/top/tlds/spam.ts
index ab7d5801af..b5a3c61434 100644
--- a/src/resources/radar/email/security/top/tlds/spam.ts
+++ b/src/resources/radar/email/security/top/tlds/spam.ts
@@ -75,7 +75,7 @@ export namespace SpamGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/email/security/top/tlds/spoof.ts b/src/resources/radar/email/security/top/tlds/spoof.ts
index 8fc6a987d4..2ad6e4d928 100644
--- a/src/resources/radar/email/security/top/tlds/spoof.ts
+++ b/src/resources/radar/email/security/top/tlds/spoof.ts
@@ -75,7 +75,7 @@ export namespace SpoofGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/email/security/top/tlds/tlds.ts b/src/resources/radar/email/security/top/tlds/tlds.ts
index 1407b10765..c2ed7dcbc3 100644
--- a/src/resources/radar/email/security/top/tlds/tlds.ts
+++ b/src/resources/radar/email/security/top/tlds/tlds.ts
@@ -77,7 +77,7 @@ export namespace TldGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/ases/ases.ts b/src/resources/radar/http/ases/ases.ts
index e54b1e36e7..483951dfe0 100644
--- a/src/resources/radar/http/ases/ases.ts
+++ b/src/resources/radar/http/ases/ases.ts
@@ -86,7 +86,7 @@ export namespace AseGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/ases/bot-class.ts b/src/resources/radar/http/ases/bot-class.ts
index e49673b002..7ce4b8441a 100644
--- a/src/resources/radar/http/ases/bot-class.ts
+++ b/src/resources/radar/http/ases/bot-class.ts
@@ -80,7 +80,7 @@ export namespace BotClassGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/ases/browser-family.ts b/src/resources/radar/http/ases/browser-family.ts
index 40e14ef5fc..d57a2c8dde 100644
--- a/src/resources/radar/http/ases/browser-family.ts
+++ b/src/resources/radar/http/ases/browser-family.ts
@@ -78,7 +78,7 @@ export namespace BrowserFamilyGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/ases/device-type.ts b/src/resources/radar/http/ases/device-type.ts
index 1357e1af21..b9049951d2 100644
--- a/src/resources/radar/http/ases/device-type.ts
+++ b/src/resources/radar/http/ases/device-type.ts
@@ -78,7 +78,7 @@ export namespace DeviceTypeGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/ases/http-method.ts b/src/resources/radar/http/ases/http-method.ts
index c1acb3ed59..e42dc7af61 100644
--- a/src/resources/radar/http/ases/http-method.ts
+++ b/src/resources/radar/http/ases/http-method.ts
@@ -78,7 +78,7 @@ export namespace HTTPMethodGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/ases/http-protocol.ts b/src/resources/radar/http/ases/http-protocol.ts
index 42e05e360b..e9521c7fc3 100644
--- a/src/resources/radar/http/ases/http-protocol.ts
+++ b/src/resources/radar/http/ases/http-protocol.ts
@@ -78,7 +78,7 @@ export namespace HTTPProtocolGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/ases/ip-version.ts b/src/resources/radar/http/ases/ip-version.ts
index dc9eb9695c..c020d8674c 100644
--- a/src/resources/radar/http/ases/ip-version.ts
+++ b/src/resources/radar/http/ases/ip-version.ts
@@ -75,7 +75,7 @@ export namespace IPVersionGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/ases/os.ts b/src/resources/radar/http/ases/os.ts
index 0b0683e0bd..97c802b53f 100644
--- a/src/resources/radar/http/ases/os.ts
+++ b/src/resources/radar/http/ases/os.ts
@@ -77,7 +77,7 @@ export namespace OSGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/ases/tls-version.ts b/src/resources/radar/http/ases/tls-version.ts
index 188742dc55..8a84b7fe12 100644
--- a/src/resources/radar/http/ases/tls-version.ts
+++ b/src/resources/radar/http/ases/tls-version.ts
@@ -78,7 +78,7 @@ export namespace TLSVersionGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/http.ts b/src/resources/radar/http/http.ts
index b52db2c5d0..9359e8f096 100644
--- a/src/resources/radar/http/http.ts
+++ b/src/resources/radar/http/http.ts
@@ -86,7 +86,7 @@ export namespace HTTPTimeseriesResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/locations/bot-class.ts b/src/resources/radar/http/locations/bot-class.ts
index aa8911c2cd..125cc85758 100644
--- a/src/resources/radar/http/locations/bot-class.ts
+++ b/src/resources/radar/http/locations/bot-class.ts
@@ -80,7 +80,7 @@ export namespace BotClassGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/locations/browser-family.ts b/src/resources/radar/http/locations/browser-family.ts
index cf8033b7ef..f684d06b9a 100644
--- a/src/resources/radar/http/locations/browser-family.ts
+++ b/src/resources/radar/http/locations/browser-family.ts
@@ -78,7 +78,7 @@ export namespace BrowserFamilyGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/locations/device-type.ts b/src/resources/radar/http/locations/device-type.ts
index 6eca33427d..a19898dc23 100644
--- a/src/resources/radar/http/locations/device-type.ts
+++ b/src/resources/radar/http/locations/device-type.ts
@@ -78,7 +78,7 @@ export namespace DeviceTypeGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/locations/http-method.ts b/src/resources/radar/http/locations/http-method.ts
index f1f56f4c45..4792e9379b 100644
--- a/src/resources/radar/http/locations/http-method.ts
+++ b/src/resources/radar/http/locations/http-method.ts
@@ -78,7 +78,7 @@ export namespace HTTPMethodGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/locations/http-protocol.ts b/src/resources/radar/http/locations/http-protocol.ts
index 820832a817..2d06bac7aa 100644
--- a/src/resources/radar/http/locations/http-protocol.ts
+++ b/src/resources/radar/http/locations/http-protocol.ts
@@ -78,7 +78,7 @@ export namespace HTTPProtocolGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/locations/ip-version.ts b/src/resources/radar/http/locations/ip-version.ts
index 99d5c098d4..5217272082 100644
--- a/src/resources/radar/http/locations/ip-version.ts
+++ b/src/resources/radar/http/locations/ip-version.ts
@@ -75,7 +75,7 @@ export namespace IPVersionGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/locations/locations.ts b/src/resources/radar/http/locations/locations.ts
index 3fe6bfcf0f..eb8360b3e2 100644
--- a/src/resources/radar/http/locations/locations.ts
+++ b/src/resources/radar/http/locations/locations.ts
@@ -86,7 +86,7 @@ export namespace LocationGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/locations/os.ts b/src/resources/radar/http/locations/os.ts
index 73e50b1045..540aad1fe4 100644
--- a/src/resources/radar/http/locations/os.ts
+++ b/src/resources/radar/http/locations/os.ts
@@ -77,7 +77,7 @@ export namespace OSGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/locations/tls-version.ts b/src/resources/radar/http/locations/tls-version.ts
index 5eaf184e48..aa3cf9cc56 100644
--- a/src/resources/radar/http/locations/tls-version.ts
+++ b/src/resources/radar/http/locations/tls-version.ts
@@ -78,7 +78,7 @@ export namespace TLSVersionGetResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/summary.ts b/src/resources/radar/http/summary.ts
index dd40d919b0..1ff88506cd 100644
--- a/src/resources/radar/http/summary.ts
+++ b/src/resources/radar/http/summary.ts
@@ -233,7 +233,7 @@ export namespace SummaryBotClassResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -295,7 +295,7 @@ export namespace SummaryDeviceTypeResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -359,7 +359,7 @@ export namespace SummaryHTTPProtocolResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -421,7 +421,7 @@ export namespace SummaryHTTPVersionResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -485,7 +485,7 @@ export namespace SummaryIPVersionResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -547,7 +547,7 @@ export namespace SummaryOSResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -609,7 +609,7 @@ export namespace SummaryPostQuantumResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -671,7 +671,7 @@ export namespace SummaryTLSVersionResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/http/top.ts b/src/resources/radar/http/top.ts
index 9d17fc1bd1..e89682b621 100644
--- a/src/resources/radar/http/top.ts
+++ b/src/resources/radar/http/top.ts
@@ -98,7 +98,7 @@ export namespace TopBrowserFamiliesResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -152,7 +152,7 @@ export namespace TopBrowsersResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/index.ts b/src/resources/radar/index.ts
index 589949ec80..19ddcd141a 100644
--- a/src/resources/radar/index.ts
+++ b/src/resources/radar/index.ts
@@ -18,7 +18,6 @@ export {
DatasetGetResponse,
DatasetListParams,
DatasetDownloadParams,
- DatasetGetParams,
Datasets,
} from './datasets';
export { EntityGetResponse, EntityGetParams, Entities } from './entities/index';
diff --git a/src/resources/radar/netflows/netflows.ts b/src/resources/radar/netflows/netflows.ts
index 28ab287f19..d77f00057e 100644
--- a/src/resources/radar/netflows/netflows.ts
+++ b/src/resources/radar/netflows/netflows.ts
@@ -77,7 +77,7 @@ export namespace NetflowTimeseriesResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/quality/iqi.ts b/src/resources/radar/quality/iqi.ts
index 32f64696cf..aceb6470e0 100644
--- a/src/resources/radar/quality/iqi.ts
+++ b/src/resources/radar/quality/iqi.ts
@@ -77,7 +77,7 @@ export namespace IQISummaryResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/quality/speed/speed.ts b/src/resources/radar/quality/speed/speed.ts
index b2ad4f7fe2..0aa6b46850 100644
--- a/src/resources/radar/quality/speed/speed.ts
+++ b/src/resources/radar/quality/speed/speed.ts
@@ -113,7 +113,7 @@ export namespace SpeedSummaryResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/quality/speed/top.ts b/src/resources/radar/quality/speed/top.ts
index b0c58cdb3e..2d0f824047 100644
--- a/src/resources/radar/quality/speed/top.ts
+++ b/src/resources/radar/quality/speed/top.ts
@@ -89,7 +89,7 @@ export namespace TopAsesResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -165,7 +165,7 @@ export namespace TopLocationsResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/src/resources/radar/radar.ts b/src/resources/radar/radar.ts
index e80dc732b3..564b3ec2b8 100644
--- a/src/resources/radar/radar.ts
+++ b/src/resources/radar/radar.ts
@@ -51,7 +51,6 @@ export namespace Radar {
export import DatasetGetResponse = DatasetsAPI.DatasetGetResponse;
export import DatasetListParams = DatasetsAPI.DatasetListParams;
export import DatasetDownloadParams = DatasetsAPI.DatasetDownloadParams;
- export import DatasetGetParams = DatasetsAPI.DatasetGetParams;
export import DNS = DNSAPI.DNS;
export import Netflows = NetflowsAPI.Netflows;
export import NetflowTimeseriesResponse = NetflowsAPI.NetflowTimeseriesResponse;
diff --git a/src/resources/radar/ranking/domain.ts b/src/resources/radar/ranking/domain.ts
index 9d159f3da1..447b3f0d9d 100644
--- a/src/resources/radar/ranking/domain.ts
+++ b/src/resources/radar/ranking/domain.ts
@@ -75,7 +75,7 @@ export interface DomainGetParams {
/**
* Array of dates to filter the ranking.
*/
- date?: Array;
+ date?: Array;
/**
* Format results are returned in.
diff --git a/src/resources/radar/ranking/ranking.ts b/src/resources/radar/ranking/ranking.ts
index 2dcab53b29..4b9f980b34 100644
--- a/src/resources/radar/ranking/ranking.ts
+++ b/src/resources/radar/ranking/ranking.ts
@@ -195,7 +195,7 @@ export interface RankingTopParams {
/**
* Array of dates to filter the ranking.
*/
- date?: Array;
+ date?: Array;
/**
* Format results are returned in.
diff --git a/src/resources/radar/verified-bots/top.ts b/src/resources/radar/verified-bots/top.ts
index 3dab14505b..e90923e98b 100644
--- a/src/resources/radar/verified-bots/top.ts
+++ b/src/resources/radar/verified-bots/top.ts
@@ -89,7 +89,7 @@ export namespace TopBotsResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
@@ -151,7 +151,7 @@ export namespace TopCategoriesResponse {
eventType: string;
- isInstantaneous: unknown;
+ isInstantaneous: boolean;
endTime?: string;
diff --git a/tests/api-resources/radar/attacks/layer3/top/top.test.ts b/tests/api-resources/radar/attacks/layer3/top/top.test.ts
index df561ce3ff..6620583e59 100644
--- a/tests/api-resources/radar/attacks/layer3/top/top.test.ts
+++ b/tests/api-resources/radar/attacks/layer3/top/top.test.ts
@@ -44,6 +44,7 @@ describe('resource top', () => {
limitPerLocation: 10,
location: ['string', 'string', 'string'],
name: ['string', 'string', 'string'],
+ normalization: 'PERCENTAGE',
protocol: ['UDP', 'TCP', 'ICMP'],
},
{ path: '/_stainless_unknown_path' },
diff --git a/tests/api-resources/radar/attacks/layer7/top/top.test.ts b/tests/api-resources/radar/attacks/layer7/top/top.test.ts
index ac14b118b4..f82d329b1f 100644
--- a/tests/api-resources/radar/attacks/layer7/top/top.test.ts
+++ b/tests/api-resources/radar/attacks/layer7/top/top.test.ts
@@ -45,6 +45,7 @@ describe('resource top', () => {
location: ['string', 'string', 'string'],
magnitude: 'MITIGATED_REQUESTS',
name: ['string', 'string', 'string'],
+ normalization: 'PERCENTAGE',
},
{ path: '/_stainless_unknown_path' },
),
diff --git a/tests/api-resources/radar/bgp/bgp.test.ts b/tests/api-resources/radar/bgp/bgp.test.ts
index 265d6d3a20..9de0f01472 100644
--- a/tests/api-resources/radar/bgp/bgp.test.ts
+++ b/tests/api-resources/radar/bgp/bgp.test.ts
@@ -41,9 +41,9 @@ describe('resource bgp', () => {
format: 'JSON',
name: ['string', 'string', 'string'],
prefix: [
- { location: 'query', name: 'prefix', type: '1.1.1.0/24' },
- { location: 'query', name: 'prefix', type: '1.1.1.0/24' },
- { location: 'query', name: 'prefix', type: '1.1.1.0/24' },
+ { in: 'query', name: 'prefix', test: 12, type: '1.1.1.0/24' },
+ { in: 'query', name: 'prefix', test: 12, type: '1.1.1.0/24' },
+ { in: 'query', name: 'prefix', test: 12, type: '1.1.1.0/24' },
],
updateType: ['ANNOUNCEMENT', 'WITHDRAWAL'],
},
diff --git a/tests/api-resources/radar/bgp/top/ases.test.ts b/tests/api-resources/radar/bgp/top/ases.test.ts
index 246b444528..39637893cf 100644
--- a/tests/api-resources/radar/bgp/top/ases.test.ts
+++ b/tests/api-resources/radar/bgp/top/ases.test.ts
@@ -41,9 +41,9 @@ describe('resource ases', () => {
limit: 5,
name: ['string', 'string', 'string'],
prefix: [
- { location: 'query', name: 'prefix', type: '1.1.1.0/24' },
- { location: 'query', name: 'prefix', type: '1.1.1.0/24' },
- { location: 'query', name: 'prefix', type: '1.1.1.0/24' },
+ { in: 'query', name: 'prefix', test: 12, type: '1.1.1.0/24' },
+ { in: 'query', name: 'prefix', test: 12, type: '1.1.1.0/24' },
+ { in: 'query', name: 'prefix', test: 12, type: '1.1.1.0/24' },
],
updateType: ['ANNOUNCEMENT', 'WITHDRAWAL'],
},
diff --git a/tests/api-resources/radar/datasets.test.ts b/tests/api-resources/radar/datasets.test.ts
index 56c138cd94..e4b6e3e5a7 100644
--- a/tests/api-resources/radar/datasets.test.ts
+++ b/tests/api-resources/radar/datasets.test.ts
@@ -70,15 +70,4 @@ describe('resource datasets', () => {
cloudflare.radar.datasets.get('ranking_top_1000', { path: '/_stainless_unknown_path' }),
).rejects.toThrow(Cloudflare.NotFoundError);
});
-
- test('get: request options and params are passed correctly', async () => {
- // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
- await expect(
- cloudflare.radar.datasets.get(
- 'ranking_top_1000',
- { date: 'string' },
- { path: '/_stainless_unknown_path' },
- ),
- ).rejects.toThrow(Cloudflare.NotFoundError);
- });
});