Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jun 18, 2024
1 parent 798a342 commit b6da688
Show file tree
Hide file tree
Showing 61 changed files with 128 additions and 141 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5684,7 +5684,7 @@ Methods:

- <code title="get /radar/datasets">client.radar.datasets.<a href="./src/resources/radar/datasets.ts">list</a>({ ...params }) -> DatasetListResponse</code>
- <code title="post /radar/datasets/download">client.radar.datasets.<a href="./src/resources/radar/datasets.ts">download</a>({ ...params }) -> DatasetDownloadResponse</code>
- <code title="get /radar/datasets/{alias}">client.radar.datasets.<a href="./src/resources/radar/datasets.ts">get</a>(alias, { ...params }) -> string</code>
- <code title="get /radar/datasets/{alias}">client.radar.datasets.<a href="./src/resources/radar/datasets.ts">get</a>(alias) -> string</code>

## DNS

Expand Down
2 changes: 1 addition & 1 deletion src/resources/radar/as112/as112.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export namespace AS112TimeseriesResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down
12 changes: 6 additions & 6 deletions src/resources/radar/as112/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export namespace SummaryDNSSECResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -239,7 +239,7 @@ export namespace SummaryEdnsResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -301,7 +301,7 @@ export namespace SummaryIPVersionResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -363,7 +363,7 @@ export namespace SummaryProtocolResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -425,7 +425,7 @@ export namespace SummaryQueryTypeResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -493,7 +493,7 @@ export namespace SummaryResponseCodesResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down
8 changes: 4 additions & 4 deletions src/resources/radar/as112/top.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export namespace TopDNSSECResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -208,7 +208,7 @@ export namespace TopEdnsResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -270,7 +270,7 @@ export namespace TopIPVersionResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -332,7 +332,7 @@ export namespace TopLocationsResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down
12 changes: 6 additions & 6 deletions src/resources/radar/attacks/layer3/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export namespace SummaryBitrateResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -246,7 +246,7 @@ export namespace SummaryDurationResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -312,7 +312,7 @@ export namespace SummaryGetResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -378,7 +378,7 @@ export namespace SummaryIPVersionResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -440,7 +440,7 @@ export namespace SummaryProtocolResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -506,7 +506,7 @@ export namespace SummaryVectorResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down
2 changes: 1 addition & 1 deletion src/resources/radar/attacks/layer3/timeseries-groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export namespace TimeseriesGroupGetResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down
4 changes: 2 additions & 2 deletions src/resources/radar/attacks/layer3/top/locations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export namespace LocationOriginResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -159,7 +159,7 @@ export namespace LocationTargetResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down
12 changes: 9 additions & 3 deletions src/resources/radar/attacks/layer3/top/top.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export namespace TopAttacksResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -175,7 +175,7 @@ export namespace TopIndustryResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -229,7 +229,7 @@ export namespace TopVerticalResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -322,6 +322,12 @@ export interface TopAttacksParams {
*/
name?: Array<string>;

/**
* Normalization method applied. Refer to
* [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
*/
normalization?: 'PERCENTAGE' | 'MIN_MAX';

/**
* Array of L3/4 attack types.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/resources/radar/attacks/layer7/layer7.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export namespace Layer7TimeseriesResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down
12 changes: 6 additions & 6 deletions src/resources/radar/attacks/layer7/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export namespace SummaryGetResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -252,7 +252,7 @@ export namespace SummaryHTTPMethodResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -314,7 +314,7 @@ export namespace SummaryHTTPVersionResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -378,7 +378,7 @@ export namespace SummaryIPVersionResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -440,7 +440,7 @@ export namespace SummaryManagedRulesResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -502,7 +502,7 @@ export namespace SummaryMitigationProductResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down
2 changes: 1 addition & 1 deletion src/resources/radar/attacks/layer7/timeseries-groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export namespace TimeseriesGroupGetResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down
2 changes: 1 addition & 1 deletion src/resources/radar/attacks/layer7/top/ases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export namespace AseOriginResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down
4 changes: 2 additions & 2 deletions src/resources/radar/attacks/layer7/top/locations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export namespace LocationOriginResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -163,7 +163,7 @@ export namespace LocationTargetResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down
12 changes: 9 additions & 3 deletions src/resources/radar/attacks/layer7/top/top.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export namespace TopAttacksResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -182,7 +182,7 @@ export namespace TopIndustryResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -236,7 +236,7 @@ export namespace TopVerticalResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -336,6 +336,12 @@ export interface TopAttacksParams {
* Array of names that will be used to name the series in responses.
*/
name?: Array<string>;

/**
* Normalization method applied. Refer to
* [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
*/
normalization?: 'PERCENTAGE' | 'MIN_MAX';
}

export interface TopIndustryParams {
Expand Down
6 changes: 4 additions & 2 deletions src/resources/radar/bgp/bgp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export namespace BGPTimeseriesResponse {

eventType: string;

isInstantaneous: unknown;
isInstantaneous: boolean;

endTime?: string;

Expand Down Expand Up @@ -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.
*/
Expand Down
Loading

0 comments on commit b6da688

Please sign in to comment.