Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: OpenAPI spec update via Stainless API #29

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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._8j55rf5ZAPIResponseCommon;
| AuditLogAuditLogsGetAccountAuditLogsResponse.VHtGuEw1APIResponseCommon;

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

export interface _8j55rf5ZAPIResponseCommon {
errors: Array<_8j55rf5ZAPIResponseCommon.Error>;
export interface VHtGuEw1APIResponseCommon {
errors: Array<VHtGuEw1APIResponseCommon.Error>;

messages: Array<_8j55rf5ZAPIResponseCommon.Message>;
messages: Array<VHtGuEw1APIResponseCommon.Message>;

result: unknown | Array<unknown> | string;

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

export namespace _8j55rf5ZAPIResponseCommon {
export namespace VHtGuEw1APIResponseCommon {
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.VYw8fshnPcapsResponseSimple
| PcapGetResponse.VYw8fshnPcapsResponseFull;
| PcapGetResponse._0F6lSEpTPcapsResponseSimple
| PcapGetResponse._0F6lSEpTPcapsResponseFull;

export namespace PcapGetResponse {
export interface VYw8fshnPcapsResponseSimple {
export interface _0F6lSEpTPcapsResponseSimple {
/**
* 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?: VYw8fshnPcapsResponseSimple.FilterV1;
filter_v1?: _0F6lSEpTPcapsResponseSimple.FilterV1;

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

export namespace VYw8fshnPcapsResponseSimple {
export namespace _0F6lSEpTPcapsResponseSimple {
/**
* 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 VYw8fshnPcapsResponseFull {
export interface _0F6lSEpTPcapsResponseFull {
/**
* 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?: VYw8fshnPcapsResponseFull.FilterV1;
filter_v1?: _0F6lSEpTPcapsResponseFull.FilterV1;

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

export namespace VYw8fshnPcapsResponseFull {
export namespace _0F6lSEpTPcapsResponseFull {
/**
* 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.VYw8fshnPcapsResponseSimple
| PcapMagicPcapCollectionCreatePcapRequestResponse.VYw8fshnPcapsResponseFull;
| PcapMagicPcapCollectionCreatePcapRequestResponse._0F6lSEpTPcapsResponseSimple
| PcapMagicPcapCollectionCreatePcapRequestResponse._0F6lSEpTPcapsResponseFull;

export namespace PcapMagicPcapCollectionCreatePcapRequestResponse {
export interface VYw8fshnPcapsResponseSimple {
export interface _0F6lSEpTPcapsResponseSimple {
/**
* 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?: VYw8fshnPcapsResponseSimple.FilterV1;
filter_v1?: _0F6lSEpTPcapsResponseSimple.FilterV1;

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

export namespace VYw8fshnPcapsResponseSimple {
export namespace _0F6lSEpTPcapsResponseSimple {
/**
* 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 VYw8fshnPcapsResponseFull {
export interface _0F6lSEpTPcapsResponseFull {
/**
* 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?: VYw8fshnPcapsResponseFull.FilterV1;
filter_v1?: _0F6lSEpTPcapsResponseFull.FilterV1;

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

export namespace VYw8fshnPcapsResponseFull {
export namespace _0F6lSEpTPcapsResponseFull {
/**
* 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.VYw8fshnPcapsResponseSimple
| PcapMagicPcapCollectionListPacketCaptureRequestsResponse.VYw8fshnPcapsResponseFull
| PcapMagicPcapCollectionListPacketCaptureRequestsResponse._0F6lSEpTPcapsResponseSimple
| PcapMagicPcapCollectionListPacketCaptureRequestsResponse._0F6lSEpTPcapsResponseFull
>;

export namespace PcapMagicPcapCollectionListPacketCaptureRequestsResponse {
export interface VYw8fshnPcapsResponseSimple {
export interface _0F6lSEpTPcapsResponseSimple {
/**
* 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?: VYw8fshnPcapsResponseSimple.FilterV1;
filter_v1?: _0F6lSEpTPcapsResponseSimple.FilterV1;

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

export namespace VYw8fshnPcapsResponseSimple {
export namespace _0F6lSEpTPcapsResponseSimple {
/**
* 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 VYw8fshnPcapsResponseFull {
export interface _0F6lSEpTPcapsResponseFull {
/**
* 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?: VYw8fshnPcapsResponseFull.FilterV1;
filter_v1?: _0F6lSEpTPcapsResponseFull.FilterV1;

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

export namespace VYw8fshnPcapsResponseFull {
export namespace _0F6lSEpTPcapsResponseFull {
/**
* 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.VYw8fshnPcapsRequestSimple
| PcapMagicPcapCollectionCreatePcapRequestParams.VYw8fshnPcapsRequestFull;
| PcapMagicPcapCollectionCreatePcapRequestParams._0F6lSEpTPcapsRequestSimple
| PcapMagicPcapCollectionCreatePcapRequestParams._0F6lSEpTPcapsRequestFull;

export namespace PcapMagicPcapCollectionCreatePcapRequestParams {
export interface VYw8fshnPcapsRequestSimple {
export interface _0F6lSEpTPcapsRequestSimple {
/**
* 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.VYw8fshnPcapsRequestSimple.FilterV1;
filter_v1?: PcapMagicPcapCollectionCreatePcapRequestParams._0F6lSEpTPcapsRequestSimple.FilterV1;
}

export namespace VYw8fshnPcapsRequestSimple {
export namespace _0F6lSEpTPcapsRequestSimple {
/**
* 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 VYw8fshnPcapsRequestFull {
export interface _0F6lSEpTPcapsRequestFull {
/**
* 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.VYw8fshnPcapsRequestFull.FilterV1;
filter_v1?: PcapMagicPcapCollectionCreatePcapRequestParams._0F6lSEpTPcapsRequestFull.FilterV1;

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

export namespace VYw8fshnPcapsRequestFull {
export namespace _0F6lSEpTPcapsRequestFull {
/**
* 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.Qbnu7BvyFlex
| PurgeCachZonePurgeParams.Qbnu7BvyEverything
| PurgeCachZonePurgeParams.Qbnu7BvyFiles;
| PurgeCachZonePurgeParams.ABb3jQf9Flex
| PurgeCachZonePurgeParams.ABb3jQf9Everything
| PurgeCachZonePurgeParams.ABb3jQf9Files;

export namespace PurgeCachZonePurgeParams {
export interface Qbnu7BvyFlex {
export interface ABb3jQf9Flex {
hosts?: Array<string>;

prefixes?: Array<string>;

tags?: Array<string>;
}

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

export interface Qbnu7BvyFiles {
files?: Array<string | PurgeCachZonePurgeParams.Qbnu7BvyFiles.Qbnu7BvyURLAndHeaders>;
export interface ABb3jQf9Files {
files?: Array<string | PurgeCachZonePurgeParams.ABb3jQf9Files.ABb3jQf9URLAndHeaders>;
}

export namespace Qbnu7BvyFiles {
export interface Qbnu7BvyURLAndHeaders {
export namespace ABb3jQf9Files {
export interface ABb3jQf9URLAndHeaders {
headers?: unknown;

url?: string;
Expand Down