Skip to content

Commit

Permalink
feat: OpenAPI spec update via Stainless API (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Feb 20, 2024
1 parent cbe880d commit 23420a7
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 40 deletions.
18 changes: 9 additions & 9 deletions src/resources/cache/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,29 +67,29 @@ export interface CachePurgeResponse {
}

export type CachePurgeParams =
| CachePurgeParams.ABb3jQf9Flex
| CachePurgeParams.ABb3jQf9Everything
| CachePurgeParams.ABb3jQf9Files;
| CachePurgeParams._5Xc1SjOjFlex
| CachePurgeParams._5Xc1SjOjEverything
| CachePurgeParams._5Xc1SjOjFiles;

export namespace CachePurgeParams {
export interface ABb3jQf9Flex {
export interface _5Xc1SjOjFlex {
hosts?: Array<string>;

prefixes?: Array<string>;

tags?: Array<string>;
}

export interface ABb3jQf9Everything {
export interface _5Xc1SjOjEverything {
purge_everything?: boolean;
}

export interface ABb3jQf9Files {
files?: Array<string | CachePurgeParams.ABb3jQf9Files.ABb3jQf9URLAndHeaders>;
export interface _5Xc1SjOjFiles {
files?: Array<string | CachePurgeParams._5Xc1SjOjFiles._5Xc1SjOjURLAndHeaders>;
}

export namespace ABb3jQf9Files {
export interface ABb3jQf9URLAndHeaders {
export namespace _5Xc1SjOjFiles {
export interface _5Xc1SjOjURLAndHeaders {
headers?: unknown;

url?: string;
Expand Down
62 changes: 31 additions & 31 deletions src/resources/pcaps/pcaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ export class Pcaps extends APIResource {
}

export type PcapCreateResponse =
| PcapCreateResponse._0F6lSEpTPcapsResponseSimple
| PcapCreateResponse._0F6lSEpTPcapsResponseFull;
| PcapCreateResponse._2aE72SzcPcapsResponseSimple
| PcapCreateResponse._2aE72SzcPcapsResponseFull;

export namespace PcapCreateResponse {
export interface _0F6lSEpTPcapsResponseSimple {
export interface _2aE72SzcPcapsResponseSimple {
/**
* The ID for the packet capture.
*/
Expand All @@ -66,7 +66,7 @@ export namespace PcapCreateResponse {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
filter_v1?: _0F6lSEpTPcapsResponseSimple.FilterV1;
filter_v1?: _2aE72SzcPcapsResponseSimple.FilterV1;

/**
* The status of the packet capture request.
Expand Down Expand Up @@ -103,7 +103,7 @@ export namespace PcapCreateResponse {
type?: 'simple' | 'full';
}

export namespace _0F6lSEpTPcapsResponseSimple {
export namespace _2aE72SzcPcapsResponseSimple {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
Expand Down Expand Up @@ -135,7 +135,7 @@ export namespace PcapCreateResponse {
}
}

export interface _0F6lSEpTPcapsResponseFull {
export interface _2aE72SzcPcapsResponseFull {
/**
* The ID for the packet capture.
*/
Expand Down Expand Up @@ -168,7 +168,7 @@ export namespace PcapCreateResponse {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
filter_v1?: _0F6lSEpTPcapsResponseFull.FilterV1;
filter_v1?: _2aE72SzcPcapsResponseFull.FilterV1;

/**
* The status of the packet capture request.
Expand Down Expand Up @@ -205,7 +205,7 @@ export namespace PcapCreateResponse {
type?: 'simple' | 'full';
}

export namespace _0F6lSEpTPcapsResponseFull {
export namespace _2aE72SzcPcapsResponseFull {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
Expand Down Expand Up @@ -239,11 +239,11 @@ export namespace PcapCreateResponse {
}

export type PcapListResponse = Array<
PcapListResponse._0F6lSEpTPcapsResponseSimple | PcapListResponse._0F6lSEpTPcapsResponseFull
PcapListResponse._2aE72SzcPcapsResponseSimple | PcapListResponse._2aE72SzcPcapsResponseFull
>;

export namespace PcapListResponse {
export interface _0F6lSEpTPcapsResponseSimple {
export interface _2aE72SzcPcapsResponseSimple {
/**
* The ID for the packet capture.
*/
Expand All @@ -252,7 +252,7 @@ export namespace PcapListResponse {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
filter_v1?: _0F6lSEpTPcapsResponseSimple.FilterV1;
filter_v1?: _2aE72SzcPcapsResponseSimple.FilterV1;

/**
* The status of the packet capture request.
Expand Down Expand Up @@ -289,7 +289,7 @@ export namespace PcapListResponse {
type?: 'simple' | 'full';
}

export namespace _0F6lSEpTPcapsResponseSimple {
export namespace _2aE72SzcPcapsResponseSimple {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
Expand Down Expand Up @@ -321,7 +321,7 @@ export namespace PcapListResponse {
}
}

export interface _0F6lSEpTPcapsResponseFull {
export interface _2aE72SzcPcapsResponseFull {
/**
* The ID for the packet capture.
*/
Expand Down Expand Up @@ -354,7 +354,7 @@ export namespace PcapListResponse {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
filter_v1?: _0F6lSEpTPcapsResponseFull.FilterV1;
filter_v1?: _2aE72SzcPcapsResponseFull.FilterV1;

/**
* The status of the packet capture request.
Expand Down Expand Up @@ -391,7 +391,7 @@ export namespace PcapListResponse {
type?: 'simple' | 'full';
}

export namespace _0F6lSEpTPcapsResponseFull {
export namespace _2aE72SzcPcapsResponseFull {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
Expand Down Expand Up @@ -425,11 +425,11 @@ export namespace PcapListResponse {
}

export type PcapGetResponse =
| PcapGetResponse._0F6lSEpTPcapsResponseSimple
| PcapGetResponse._0F6lSEpTPcapsResponseFull;
| PcapGetResponse._2aE72SzcPcapsResponseSimple
| PcapGetResponse._2aE72SzcPcapsResponseFull;

export namespace PcapGetResponse {
export interface _0F6lSEpTPcapsResponseSimple {
export interface _2aE72SzcPcapsResponseSimple {
/**
* The ID for the packet capture.
*/
Expand All @@ -438,7 +438,7 @@ export namespace PcapGetResponse {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
filter_v1?: _0F6lSEpTPcapsResponseSimple.FilterV1;
filter_v1?: _2aE72SzcPcapsResponseSimple.FilterV1;

/**
* The status of the packet capture request.
Expand Down Expand Up @@ -475,7 +475,7 @@ export namespace PcapGetResponse {
type?: 'simple' | 'full';
}

export namespace _0F6lSEpTPcapsResponseSimple {
export namespace _2aE72SzcPcapsResponseSimple {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
Expand Down Expand Up @@ -507,7 +507,7 @@ export namespace PcapGetResponse {
}
}

export interface _0F6lSEpTPcapsResponseFull {
export interface _2aE72SzcPcapsResponseFull {
/**
* The ID for the packet capture.
*/
Expand Down Expand Up @@ -540,7 +540,7 @@ export namespace PcapGetResponse {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
filter_v1?: _0F6lSEpTPcapsResponseFull.FilterV1;
filter_v1?: _2aE72SzcPcapsResponseFull.FilterV1;

/**
* The status of the packet capture request.
Expand Down Expand Up @@ -577,7 +577,7 @@ export namespace PcapGetResponse {
type?: 'simple' | 'full';
}

export namespace _0F6lSEpTPcapsResponseFull {
export namespace _2aE72SzcPcapsResponseFull {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
Expand Down Expand Up @@ -611,11 +611,11 @@ export namespace PcapGetResponse {
}

export type PcapCreateParams =
| PcapCreateParams._0F6lSEpTPcapsRequestSimple
| PcapCreateParams._0F6lSEpTPcapsRequestFull;
| PcapCreateParams._2aE72SzcPcapsRequestSimple
| PcapCreateParams._2aE72SzcPcapsRequestFull;

export namespace PcapCreateParams {
export interface _0F6lSEpTPcapsRequestSimple {
export interface _2aE72SzcPcapsRequestSimple {
/**
* The limit of packets contained in a packet capture.
*/
Expand All @@ -640,10 +640,10 @@ export namespace PcapCreateParams {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
filter_v1?: PcapCreateParams._0F6lSEpTPcapsRequestSimple.FilterV1;
filter_v1?: PcapCreateParams._2aE72SzcPcapsRequestSimple.FilterV1;
}

export namespace _0F6lSEpTPcapsRequestSimple {
export namespace _2aE72SzcPcapsRequestSimple {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
Expand Down Expand Up @@ -675,7 +675,7 @@ export namespace PcapCreateParams {
}
}

export interface _0F6lSEpTPcapsRequestFull {
export interface _2aE72SzcPcapsRequestFull {
/**
* The name of the data center used for the packet capture. This can be a specific
* colo (ord02) or a multi-colo name (ORD). This field only applies to `full`
Expand Down Expand Up @@ -713,15 +713,15 @@ export namespace PcapCreateParams {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
filter_v1?: PcapCreateParams._0F6lSEpTPcapsRequestFull.FilterV1;
filter_v1?: PcapCreateParams._2aE72SzcPcapsRequestFull.FilterV1;

/**
* The limit of packets contained in a packet capture.
*/
packet_limit?: number;
}

export namespace _0F6lSEpTPcapsRequestFull {
export namespace _2aE72SzcPcapsRequestFull {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
Expand Down

0 comments on commit 23420a7

Please sign in to comment.