Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Apr 24, 2024
1 parent 382ee9b commit c8c4664
Show file tree
Hide file tree
Showing 62 changed files with 3,528 additions and 434 deletions.
18 changes: 2 additions & 16 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5181,20 +5181,6 @@ Methods:

# Radar

Types:

- <code><a href="./src/resources/radar/radar.ts">UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42</a></code>
- <code><a href="./src/resources/radar/radar.ts">UnnamedSchemaRef4124a22436f90127c7fa2c4543219752</a></code>
- <code><a href="./src/resources/radar/radar.ts">UnnamedSchemaRef73de8b634bb48667e28a6c6c56080c51</a></code>
- <code><a href="./src/resources/radar/radar.ts">UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb</a></code>
- <code><a href="./src/resources/radar/radar.ts">UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55</a></code>
- <code><a href="./src/resources/radar/radar.ts">UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09</a></code>
- <code><a href="./src/resources/radar/radar.ts">UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297</a></code>
- <code><a href="./src/resources/radar/radar.ts">UnnamedSchemaRef9002274ed7cb7f3dc567421e31529a3a</a></code>
- <code><a href="./src/resources/radar/radar.ts">UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1</a></code>
- <code><a href="./src/resources/radar/radar.ts">UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5</a></code>
- <code><a href="./src/resources/radar/radar.ts">UnnamedSchemaRefC5858f1f916a921846e0b6159af470a7</a></code>

## Annotations

### Outages
Expand Down Expand Up @@ -5437,8 +5423,8 @@ Methods:

Types:

- <code><a href="./src/resources/radar/email/email.ts">UnnamedSchemaRef67c73d4742566cab0909f71b1822e88c</a></code>
- <code><a href="./src/resources/radar/email/email.ts">UnnamedSchemaRef853c157ad369010995e35be614e0343f</a></code>
- <code><a href="./src/resources/radar/email/email.ts">RadarEmailSeries</a></code>
- <code><a href="./src/resources/radar/email/email.ts">RadarEmailSummary</a></code>

### Routing

Expand Down
31 changes: 27 additions & 4 deletions src/resources/radar/annotations/outages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down Expand Up @@ -67,7 +66,7 @@ export namespace OutageGetResponse {

locations: Array<string>;

locationsDetails: Array<RadarAPI.UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42>;
locationsDetails: Array<Annotation.LocationsDetail>;

outage: Annotation.Outage;

Expand All @@ -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 {
Expand All @@ -100,7 +113,17 @@ export namespace OutageGetResponse {
}

export interface OutageLocationsResponse {
annotations: Array<RadarAPI.UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09>;
annotations: Array<OutageLocationsResponse.Annotation>;
}

export namespace OutageLocationsResponse {
export interface Annotation {
clientCountryAlpha2: string;

clientCountryName: string;

value: string;
}
}

export interface OutageGetParams {
Expand Down
43 changes: 39 additions & 4 deletions src/resources/radar/as112/as112.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -42,26 +41,62 @@ 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<RadarAPI.UnnamedSchemaRefBaac9d7da12de53e99142f8ecd3982e5>;
dateRange: Array<Meta.DateRange>;

lastUpdated: string;

confidenceInfo?: Meta.ConfidenceInfo;
}

export namespace Meta {
export interface DateRange {
/**
* Adjusted end of date range.
*/
endTime: string;

/**
* Adjusted start of date range.
*/
startTime: string;
}

export interface ConfidenceInfo {
annotations?: Array<RadarAPI.UnnamedSchemaRefB5f3bd1840490bc487ffef84567807b1>;
annotations?: Array<ConfidenceInfo.Annotation>;

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<string>;

values: Array<string>;
}
}

Expand Down
Loading

0 comments on commit c8c4664

Please sign in to comment.