Skip to content

Commit

Permalink
feat: OpenAPI spec update via Stainless API (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Feb 16, 2024
1 parent 1565032 commit 72295af
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 51 deletions.
10 changes: 5 additions & 5 deletions src/resources/audit-logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class AuditLogs extends APIResource {

export type AuditLogAuditLogsGetAccountAuditLogsResponse =
| AuditLogAuditLogsGetAccountAuditLogsResponse.UnionMember0
| AuditLogAuditLogsGetAccountAuditLogsResponse.Q6tjyqK4APIResponseCommon;
| AuditLogAuditLogsGetAccountAuditLogsResponse._9cy76Al9APIResponseCommon;

export namespace AuditLogAuditLogsGetAccountAuditLogsResponse {
export interface UnionMember0 {
Expand Down Expand Up @@ -145,10 +145,10 @@ export namespace AuditLogAuditLogsGetAccountAuditLogsResponse {
}
}

export interface Q6tjyqK4APIResponseCommon {
errors: Array<Q6tjyqK4APIResponseCommon.Error>;
export interface _9cy76Al9APIResponseCommon {
errors: Array<_9cy76Al9APIResponseCommon.Error>;

messages: Array<Q6tjyqK4APIResponseCommon.Message>;
messages: Array<_9cy76Al9APIResponseCommon.Message>;

result: unknown | Array<unknown> | string;

Expand All @@ -158,7 +158,7 @@ export namespace AuditLogAuditLogsGetAccountAuditLogsResponse {
success: true;
}

export namespace Q6tjyqK4APIResponseCommon {
export namespace _9cy76Al9APIResponseCommon {
export interface Error {
code: number;

Expand Down
64 changes: 32 additions & 32 deletions src/resources/pcaps/pcaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ export class Pcaps extends APIResource {
}

export type PcapGetResponse =
| PcapGetResponse._803RfBvJPcapsResponseSimple
| PcapGetResponse._803RfBvJPcapsResponseFull;
| PcapGetResponse.FZsXwDu1PcapsResponseSimple
| PcapGetResponse.FZsXwDu1PcapsResponseFull;

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

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

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

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

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

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

export type PcapMagicPcapCollectionCreatePcapRequestResponse =
| PcapMagicPcapCollectionCreatePcapRequestResponse._803RfBvJPcapsResponseSimple
| PcapMagicPcapCollectionCreatePcapRequestResponse._803RfBvJPcapsResponseFull;
| PcapMagicPcapCollectionCreatePcapRequestResponse.FZsXwDu1PcapsResponseSimple
| PcapMagicPcapCollectionCreatePcapRequestResponse.FZsXwDu1PcapsResponseFull;

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

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

export namespace _803RfBvJPcapsResponseSimple {
export namespace FZsXwDu1PcapsResponseSimple {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
Expand Down Expand Up @@ -324,7 +324,7 @@ export namespace PcapMagicPcapCollectionCreatePcapRequestResponse {
}
}

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

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

export namespace _803RfBvJPcapsResponseFull {
export namespace FZsXwDu1PcapsResponseFull {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
Expand Down Expand Up @@ -428,12 +428,12 @@ export namespace PcapMagicPcapCollectionCreatePcapRequestResponse {
}

export type PcapMagicPcapCollectionListPacketCaptureRequestsResponse = Array<
| PcapMagicPcapCollectionListPacketCaptureRequestsResponse._803RfBvJPcapsResponseSimple
| PcapMagicPcapCollectionListPacketCaptureRequestsResponse._803RfBvJPcapsResponseFull
| PcapMagicPcapCollectionListPacketCaptureRequestsResponse.FZsXwDu1PcapsResponseSimple
| PcapMagicPcapCollectionListPacketCaptureRequestsResponse.FZsXwDu1PcapsResponseFull
>;

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

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

export namespace _803RfBvJPcapsResponseSimple {
export namespace FZsXwDu1PcapsResponseSimple {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
Expand Down Expand Up @@ -511,7 +511,7 @@ export namespace PcapMagicPcapCollectionListPacketCaptureRequestsResponse {
}
}

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

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

export namespace _803RfBvJPcapsResponseFull {
export namespace FZsXwDu1PcapsResponseFull {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
Expand Down Expand Up @@ -615,11 +615,11 @@ export namespace PcapMagicPcapCollectionListPacketCaptureRequestsResponse {
}

export type PcapMagicPcapCollectionCreatePcapRequestParams =
| PcapMagicPcapCollectionCreatePcapRequestParams._803RfBvJPcapsRequestSimple
| PcapMagicPcapCollectionCreatePcapRequestParams._803RfBvJPcapsRequestFull;
| PcapMagicPcapCollectionCreatePcapRequestParams.FZsXwDu1PcapsRequestSimple
| PcapMagicPcapCollectionCreatePcapRequestParams.FZsXwDu1PcapsRequestFull;

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

export namespace _803RfBvJPcapsRequestSimple {
export namespace FZsXwDu1PcapsRequestSimple {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
Expand Down Expand Up @@ -679,7 +679,7 @@ export namespace PcapMagicPcapCollectionCreatePcapRequestParams {
}
}

export interface _803RfBvJPcapsRequestFull {
export interface FZsXwDu1PcapsRequestFull {
/**
* 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 @@ -717,15 +717,15 @@ export namespace PcapMagicPcapCollectionCreatePcapRequestParams {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
filter_v1?: PcapMagicPcapCollectionCreatePcapRequestParams._803RfBvJPcapsRequestFull.FilterV1;
filter_v1?: PcapMagicPcapCollectionCreatePcapRequestParams.FZsXwDu1PcapsRequestFull.FilterV1;

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

export namespace _803RfBvJPcapsRequestFull {
export namespace FZsXwDu1PcapsRequestFull {
/**
* The packet capture filter. When this field is empty, all packets are captured.
*/
Expand Down
18 changes: 9 additions & 9 deletions src/resources/purge-caches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,29 +56,29 @@ export interface PurgeCachZonePurgeResponse {
}

export type PurgeCachZonePurgeParams =
| PurgeCachZonePurgeParams.CkpEqDfYFlex
| PurgeCachZonePurgeParams.CkpEqDfYEverything
| PurgeCachZonePurgeParams.CkpEqDfYFiles;
| PurgeCachZonePurgeParams._7mnXeLx2Flex
| PurgeCachZonePurgeParams._7mnXeLx2Everything
| PurgeCachZonePurgeParams._7mnXeLx2Files;

export namespace PurgeCachZonePurgeParams {
export interface CkpEqDfYFlex {
export interface _7mnXeLx2Flex {
hosts?: Array<string>;

prefixes?: Array<string>;

tags?: Array<string>;
}

export interface CkpEqDfYEverything {
export interface _7mnXeLx2Everything {
purge_everything?: boolean;
}

export interface CkpEqDfYFiles {
files?: Array<string | PurgeCachZonePurgeParams.CkpEqDfYFiles.CkpEqDfYURLAndHeaders>;
export interface _7mnXeLx2Files {
files?: Array<string | PurgeCachZonePurgeParams._7mnXeLx2Files._7mnXeLx2URLAndHeaders>;
}

export namespace CkpEqDfYFiles {
export interface CkpEqDfYURLAndHeaders {
export namespace _7mnXeLx2Files {
export interface _7mnXeLx2URLAndHeaders {
headers?: unknown;

url?: string;
Expand Down
10 changes: 5 additions & 5 deletions src/resources/users/audit-logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class AuditLogs extends APIResource {

export type AuditLogListResponse =
| AuditLogListResponse.UnionMember0
| AuditLogListResponse.Q6tjyqK4APIResponseCommon;
| AuditLogListResponse._9cy76Al9APIResponseCommon;

export namespace AuditLogListResponse {
export interface UnionMember0 {
Expand Down Expand Up @@ -137,10 +137,10 @@ export namespace AuditLogListResponse {
}
}

export interface Q6tjyqK4APIResponseCommon {
errors: Array<Q6tjyqK4APIResponseCommon.Error>;
export interface _9cy76Al9APIResponseCommon {
errors: Array<_9cy76Al9APIResponseCommon.Error>;

messages: Array<Q6tjyqK4APIResponseCommon.Message>;
messages: Array<_9cy76Al9APIResponseCommon.Message>;

result: unknown | Array<unknown> | string;

Expand All @@ -150,7 +150,7 @@ export namespace AuditLogListResponse {
success: true;
}

export namespace Q6tjyqK4APIResponseCommon {
export namespace _9cy76Al9APIResponseCommon {
export interface Error {
code: number;

Expand Down

0 comments on commit 72295af

Please sign in to comment.