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 #9

Merged
merged 1 commit into from
Feb 16, 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.EkeoSHueAPIResponseCommon;
| AuditLogAuditLogsGetAccountAuditLogsResponse.Rr9Y34MgAPIResponseCommon;

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

export interface EkeoSHueAPIResponseCommon {
errors: Array<EkeoSHueAPIResponseCommon.Error>;
export interface Rr9Y34MgAPIResponseCommon {
errors: Array<Rr9Y34MgAPIResponseCommon.Error>;

messages: Array<EkeoSHueAPIResponseCommon.Message>;
messages: Array<Rr9Y34MgAPIResponseCommon.Message>;

result: unknown | Array<unknown> | string;

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

export namespace EkeoSHueAPIResponseCommon {
export namespace Rr9Y34MgAPIResponseCommon {
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.IIInMbmoPcapsResponseSimple
| PcapGetResponse.IIInMbmoPcapsResponseFull;
| PcapGetResponse.FGwnJEhWPcapsResponseSimple
| PcapGetResponse.FGwnJEhWPcapsResponseFull;

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

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

export namespace IIInMbmoPcapsResponseSimple {
export namespace FGwnJEhWPcapsResponseSimple {
/**
* 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 IIInMbmoPcapsResponseFull {
export interface FGwnJEhWPcapsResponseFull {
/**
* 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?: IIInMbmoPcapsResponseFull.FilterV1;
filter_v1?: FGwnJEhWPcapsResponseFull.FilterV1;

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

export namespace IIInMbmoPcapsResponseFull {
export namespace FGwnJEhWPcapsResponseFull {
/**
* 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.IIInMbmoPcapsResponseSimple
| PcapMagicPcapCollectionCreatePcapRequestResponse.IIInMbmoPcapsResponseFull;
| PcapMagicPcapCollectionCreatePcapRequestResponse.FGwnJEhWPcapsResponseSimple
| PcapMagicPcapCollectionCreatePcapRequestResponse.FGwnJEhWPcapsResponseFull;

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

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

export namespace IIInMbmoPcapsResponseSimple {
export namespace FGwnJEhWPcapsResponseSimple {
/**
* 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 IIInMbmoPcapsResponseFull {
export interface FGwnJEhWPcapsResponseFull {
/**
* 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?: IIInMbmoPcapsResponseFull.FilterV1;
filter_v1?: FGwnJEhWPcapsResponseFull.FilterV1;

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

export namespace IIInMbmoPcapsResponseFull {
export namespace FGwnJEhWPcapsResponseFull {
/**
* 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.IIInMbmoPcapsResponseSimple
| PcapMagicPcapCollectionListPacketCaptureRequestsResponse.IIInMbmoPcapsResponseFull
| PcapMagicPcapCollectionListPacketCaptureRequestsResponse.FGwnJEhWPcapsResponseSimple
| PcapMagicPcapCollectionListPacketCaptureRequestsResponse.FGwnJEhWPcapsResponseFull
>;

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

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

export namespace IIInMbmoPcapsResponseSimple {
export namespace FGwnJEhWPcapsResponseSimple {
/**
* 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 IIInMbmoPcapsResponseFull {
export interface FGwnJEhWPcapsResponseFull {
/**
* 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?: IIInMbmoPcapsResponseFull.FilterV1;
filter_v1?: FGwnJEhWPcapsResponseFull.FilterV1;

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

export namespace IIInMbmoPcapsResponseFull {
export namespace FGwnJEhWPcapsResponseFull {
/**
* 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.IIInMbmoPcapsRequestSimple
| PcapMagicPcapCollectionCreatePcapRequestParams.IIInMbmoPcapsRequestFull;
| PcapMagicPcapCollectionCreatePcapRequestParams.FGwnJEhWPcapsRequestSimple
| PcapMagicPcapCollectionCreatePcapRequestParams.FGwnJEhWPcapsRequestFull;

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

export namespace IIInMbmoPcapsRequestSimple {
export namespace FGwnJEhWPcapsRequestSimple {
/**
* 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 IIInMbmoPcapsRequestFull {
export interface FGwnJEhWPcapsRequestFull {
/**
* 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.IIInMbmoPcapsRequestFull.FilterV1;
filter_v1?: PcapMagicPcapCollectionCreatePcapRequestParams.FGwnJEhWPcapsRequestFull.FilterV1;

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

export namespace IIInMbmoPcapsRequestFull {
export namespace FGwnJEhWPcapsRequestFull {
/**
* 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._9HseNYt2Flex
| PurgeCachZonePurgeParams._9HseNYt2Everything
| PurgeCachZonePurgeParams._9HseNYt2Files;
| PurgeCachZonePurgeParams.C1O0vQPqFlex
| PurgeCachZonePurgeParams.C1O0vQPqEverything
| PurgeCachZonePurgeParams.C1O0vQPqFiles;

export namespace PurgeCachZonePurgeParams {
export interface _9HseNYt2Flex {
export interface C1O0vQPqFlex {
hosts?: Array<string>;

prefixes?: Array<string>;

tags?: Array<string>;
}

export interface _9HseNYt2Everything {
export interface C1O0vQPqEverything {
purge_everything?: boolean;
}

export interface _9HseNYt2Files {
files?: Array<string | PurgeCachZonePurgeParams._9HseNYt2Files._9HseNYt2URLAndHeaders>;
export interface C1O0vQPqFiles {
files?: Array<string | PurgeCachZonePurgeParams.C1O0vQPqFiles.C1O0vQPqURLAndHeaders>;
}

export namespace _9HseNYt2Files {
export interface _9HseNYt2URLAndHeaders {
export namespace C1O0vQPqFiles {
export interface C1O0vQPqURLAndHeaders {
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.EkeoSHueAPIResponseCommon;
| AuditLogListResponse.Rr9Y34MgAPIResponseCommon;

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

export interface EkeoSHueAPIResponseCommon {
errors: Array<EkeoSHueAPIResponseCommon.Error>;
export interface Rr9Y34MgAPIResponseCommon {
errors: Array<Rr9Y34MgAPIResponseCommon.Error>;

messages: Array<EkeoSHueAPIResponseCommon.Message>;
messages: Array<Rr9Y34MgAPIResponseCommon.Message>;

result: unknown | Array<unknown> | string;

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

export namespace EkeoSHueAPIResponseCommon {
export namespace Rr9Y34MgAPIResponseCommon {
export interface Error {
code: number;

Expand Down