Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Mar 18, 2024
1 parent 37fa2f5 commit b805df7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
32 changes: 12 additions & 20 deletions src/resources/spectrum/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ export interface AppCreateResponse {
/**
* The anycast edge IP configuration for the hostname of this application.
*/
edge_ips?:
| AppCreateResponse.SpectrumEdgeIPEyeballIPsVariable
| AppCreateResponse.SpectrumEdgeIPCustomerOwnedIPsVariable;
edge_ips?: AppCreateResponse.SpectrumEdgeIPEyeballIPs | AppCreateResponse.SpectrumEdgeIPCustomerOwnedIPs;

/**
* Enables IP Access Rules for this application. Notes: Only available for TCP
Expand Down Expand Up @@ -194,7 +192,7 @@ export namespace AppCreateResponse {
type?: 'CNAME' | 'ADDRESS';
}

export interface SpectrumEdgeIPEyeballIPsVariable {
export interface SpectrumEdgeIPEyeballIPs {
/**
* The IP versions supported for inbound connections on Spectrum anycast IPs.
*/
Expand All @@ -208,7 +206,7 @@ export namespace AppCreateResponse {
type?: 'dynamic';
}

export interface SpectrumEdgeIPCustomerOwnedIPsVariable {
export interface SpectrumEdgeIPCustomerOwnedIPs {
/**
* The array of customer owned IPs we broadcast via anycast for this hostname and
* application.
Expand Down Expand Up @@ -270,9 +268,7 @@ export interface AppUpdateResponse {
/**
* The anycast edge IP configuration for the hostname of this application.
*/
edge_ips?:
| AppUpdateResponse.SpectrumEdgeIPEyeballIPsVariable
| AppUpdateResponse.SpectrumEdgeIPCustomerOwnedIPsVariable;
edge_ips?: AppUpdateResponse.SpectrumEdgeIPEyeballIPs | AppUpdateResponse.SpectrumEdgeIPCustomerOwnedIPs;

/**
* Enables IP Access Rules for this application. Notes: Only available for TCP
Expand Down Expand Up @@ -344,7 +340,7 @@ export namespace AppUpdateResponse {
type?: 'CNAME' | 'ADDRESS';
}

export interface SpectrumEdgeIPEyeballIPsVariable {
export interface SpectrumEdgeIPEyeballIPs {
/**
* The IP versions supported for inbound connections on Spectrum anycast IPs.
*/
Expand All @@ -358,7 +354,7 @@ export namespace AppUpdateResponse {
type?: 'dynamic';
}

export interface SpectrumEdgeIPCustomerOwnedIPsVariable {
export interface SpectrumEdgeIPCustomerOwnedIPs {
/**
* The array of customer owned IPs we broadcast via anycast for this hostname and
* application.
Expand Down Expand Up @@ -441,9 +437,7 @@ export interface AppCreateParams {
/**
* The anycast edge IP configuration for the hostname of this application.
*/
edge_ips?:
| AppCreateParams.SpectrumEdgeIPEyeballIPsVariable
| AppCreateParams.SpectrumEdgeIPCustomerOwnedIPsVariable;
edge_ips?: AppCreateParams.SpectrumEdgeIPEyeballIPs | AppCreateParams.SpectrumEdgeIPCustomerOwnedIPs;

/**
* Enables IP Access Rules for this application. Notes: Only available for TCP
Expand Down Expand Up @@ -511,7 +505,7 @@ export namespace AppCreateParams {
type?: '' | 'A' | 'AAAA' | 'SRV';
}

export interface SpectrumEdgeIPEyeballIPsVariable {
export interface SpectrumEdgeIPEyeballIPs {
/**
* The IP versions supported for inbound connections on Spectrum anycast IPs.
*/
Expand All @@ -525,7 +519,7 @@ export namespace AppCreateParams {
type?: 'dynamic';
}

export interface SpectrumEdgeIPCustomerOwnedIPsVariable {
export interface SpectrumEdgeIPCustomerOwnedIPs {
/**
* The array of customer owned IPs we broadcast via anycast for this hostname and
* application.
Expand Down Expand Up @@ -576,9 +570,7 @@ export interface AppUpdateParams {
/**
* The anycast edge IP configuration for the hostname of this application.
*/
edge_ips?:
| AppUpdateParams.SpectrumEdgeIPEyeballIPsVariable
| AppUpdateParams.SpectrumEdgeIPCustomerOwnedIPsVariable;
edge_ips?: AppUpdateParams.SpectrumEdgeIPEyeballIPs | AppUpdateParams.SpectrumEdgeIPCustomerOwnedIPs;

/**
* Enables IP Access Rules for this application. Notes: Only available for TCP
Expand Down Expand Up @@ -646,7 +638,7 @@ export namespace AppUpdateParams {
type?: '' | 'A' | 'AAAA' | 'SRV';
}

export interface SpectrumEdgeIPEyeballIPsVariable {
export interface SpectrumEdgeIPEyeballIPs {
/**
* The IP versions supported for inbound connections on Spectrum anycast IPs.
*/
Expand All @@ -660,7 +652,7 @@ export namespace AppUpdateParams {
type?: 'dynamic';
}

export interface SpectrumEdgeIPCustomerOwnedIPsVariable {
export interface SpectrumEdgeIPCustomerOwnedIPs {
/**
* The array of customer owned IPs we broadcast via anycast for this hostname and
* application.
Expand Down
8 changes: 4 additions & 4 deletions src/resources/workers/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ export interface AIRunParams {
| Uploadable
| AIRunParams.Audio
| Uploadable
| AIRunParams.Image
| AIRunParams.WorkersAIImageClassification
| Uploadable
| AIRunParams.Image
| AIRunParams.WorkersAIBodyDetection
| AIRunParams.UnionMember10
| AIRunParams.UnionMember11
| AIRunParams.Translation
Expand Down Expand Up @@ -177,11 +177,11 @@ export namespace AIRunParams {
audio?: Array<number>;
}

export interface Image {
export interface WorkersAIImageClassification {
image?: Array<number>;
}

export interface Image {
export interface WorkersAIBodyDetection {
image?: Array<number>;
}

Expand Down

0 comments on commit b805df7

Please sign in to comment.