Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Mar 18, 2024
1 parent cf494c6 commit 5fe3889
Show file tree
Hide file tree
Showing 7 changed files with 304 additions and 100 deletions.
138 changes: 99 additions & 39 deletions src/resources/dns/records.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14426,38 +14426,58 @@ export interface RecordCreateParams {
*/
zone_id: string;

/**
* Body param:
*/
data: RecordCreateParams.Data;

/**
* Body param: DNS record name (or @ for the zone apex) in Punycode.
*/
name: string;

/**
* Body param: Required for MX, SRV and URI records; unused by other record types.
* Records with lower priorities are preferred.
*/
priority: number;

/**
* Body param: Record type.
*/
type: 'URI';
type:
| 'URI'
| 'TXT'
| 'TLSA'
| 'SVCB'
| 'SSHFP'
| 'SRV'
| 'SMIMEA'
| 'PTR'
| 'NS'
| 'NAPTR'
| 'MX'
| 'LOC'
| 'HTTPS'
| 'DS'
| 'DNSKEY'
| 'CNAME'
| 'CERT'
| 'CAA'
| 'AAAA'
| 'A';

/**
* Body param: Comments or notes about the DNS record. This field has no effect on
* DNS responses.
*/
comment?: string;

/**
* Body param:
*/
data?: RecordCreateParams.Data;

/**
* Body param:
*/
meta?: RecordCreateParams.Meta;

/**
* Body param: Required for MX, SRV and URI records; unused by other record types.
* Records with lower priorities are preferred.
*/
priority?: number;

/**
* Body param: Whether the record is receiving the performance and security
* benefits of Cloudflare.
Expand Down Expand Up @@ -14518,7 +14538,7 @@ export namespace RecordCreateParams {
/**
* Flags.
*/
flags?: string;
flags?: unknown;

/**
* Key Tag.
Expand Down Expand Up @@ -14702,38 +14722,58 @@ export interface RecordUpdateParams {
*/
zone_id: string;

/**
* Body param:
*/
data: RecordUpdateParams.Data;

/**
* Body param: DNS record name (or @ for the zone apex) in Punycode.
*/
name: string;

/**
* Body param: Required for MX, SRV and URI records; unused by other record types.
* Records with lower priorities are preferred.
*/
priority: number;

/**
* Body param: Record type.
*/
type: 'URI';
type:
| 'URI'
| 'TXT'
| 'TLSA'
| 'SVCB'
| 'SSHFP'
| 'SRV'
| 'SMIMEA'
| 'PTR'
| 'NS'
| 'NAPTR'
| 'MX'
| 'LOC'
| 'HTTPS'
| 'DS'
| 'DNSKEY'
| 'CNAME'
| 'CERT'
| 'CAA'
| 'AAAA'
| 'A';

/**
* Body param: Comments or notes about the DNS record. This field has no effect on
* DNS responses.
*/
comment?: string;

/**
* Body param:
*/
data?: RecordUpdateParams.Data;

/**
* Body param:
*/
meta?: RecordUpdateParams.Meta;

/**
* Body param: Required for MX, SRV and URI records; unused by other record types.
* Records with lower priorities are preferred.
*/
priority?: number;

/**
* Body param: Whether the record is receiving the performance and security
* benefits of Cloudflare.
Expand Down Expand Up @@ -14794,7 +14834,7 @@ export namespace RecordUpdateParams {
/**
* Flags.
*/
flags?: string;
flags?: unknown;

/**
* Key Tag.
Expand Down Expand Up @@ -15155,38 +15195,58 @@ export interface RecordEditParams {
*/
zone_id: string;

/**
* Body param:
*/
data: RecordEditParams.Data;

/**
* Body param: DNS record name (or @ for the zone apex) in Punycode.
*/
name: string;

/**
* Body param: Required for MX, SRV and URI records; unused by other record types.
* Records with lower priorities are preferred.
*/
priority: number;

/**
* Body param: Record type.
*/
type: 'URI';
type:
| 'URI'
| 'TXT'
| 'TLSA'
| 'SVCB'
| 'SSHFP'
| 'SRV'
| 'SMIMEA'
| 'PTR'
| 'NS'
| 'NAPTR'
| 'MX'
| 'LOC'
| 'HTTPS'
| 'DS'
| 'DNSKEY'
| 'CNAME'
| 'CERT'
| 'CAA'
| 'AAAA'
| 'A';

/**
* Body param: Comments or notes about the DNS record. This field has no effect on
* DNS responses.
*/
comment?: string;

/**
* Body param:
*/
data?: RecordEditParams.Data;

/**
* Body param:
*/
meta?: RecordEditParams.Meta;

/**
* Body param: Required for MX, SRV and URI records; unused by other record types.
* Records with lower priorities are preferred.
*/
priority?: number;

/**
* Body param: Whether the record is receiving the performance and security
* benefits of Cloudflare.
Expand Down Expand Up @@ -15247,7 +15307,7 @@ export namespace RecordEditParams {
/**
* Flags.
*/
flags?: string;
flags?: unknown;

/**
* Key Tag.
Expand Down
36 changes: 18 additions & 18 deletions src/resources/pcaps/pcaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,24 @@ export interface PCAPCreateParams {
*/
account_id: string;

/**
* Body param: 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` packet captures.
*/
colo_name: string;

/**
* Body param: The full URI for the bucket. This field only applies to `full`
* packet captures.
*/
destination_conf: string;

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

/**
* Body param: The system used to collect packet captures.
*/
Expand All @@ -637,28 +655,10 @@ export interface PCAPCreateParams {
*/
byte_limit?: number;

/**
* Body param: 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` packet captures.
*/
colo_name?: string;

/**
* Body param: The full URI for the bucket. This field only applies to `full`
* packet captures.
*/
destination_conf?: string;

/**
* Body param:
*/
filter_v1?: PCAPCreateParams.FilterV1;

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

export namespace PCAPCreateParams {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/r2/sippy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export namespace SippyUpdateParams {
*/
privateKey?: string;

provider?: 'gcs';
provider?: 'gcs' | 'aws';

/**
* Name of the AWS availability zone
Expand Down
40 changes: 20 additions & 20 deletions src/resources/zero-trust/access/applications/applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,16 @@ export interface ApplicationDeleteResponse {
export type ApplicationRevokeTokensResponse = unknown;

export interface ApplicationCreateParams {
/**
* Body param: The URL or domain of the bookmark.
*/
domain: unknown;

/**
* Body param: The application type.
*/
type: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';

/**
* Path param: The Account ID to use for this endpoint. Mutually exclusive with the
* Zone ID.
Expand Down Expand Up @@ -1295,11 +1305,6 @@ export interface ApplicationCreateParams {
*/
custom_pages?: Array<string>;

/**
* Body param: The URL or domain of the bookmark.
*/
domain?: unknown;

/**
* Body param: Enables the binding cookie, which increases security against
* compromised authorization tokens and CSRF attacks.
Expand Down Expand Up @@ -1367,11 +1372,6 @@ export interface ApplicationCreateParams {
* filter applications in the App Launcher dashboard.
*/
tags?: Array<string>;

/**
* Body param: The application type.
*/
type?: string;
}

export namespace ApplicationCreateParams {
Expand Down Expand Up @@ -1554,6 +1554,16 @@ export namespace ApplicationCreateParams {
}

export interface ApplicationUpdateParams {
/**
* Body param: The URL or domain of the bookmark.
*/
domain: unknown;

/**
* Body param: The application type.
*/
type: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';

/**
* Path param: The Account ID to use for this endpoint. Mutually exclusive with the
* Zone ID.
Expand Down Expand Up @@ -1620,11 +1630,6 @@ export interface ApplicationUpdateParams {
*/
custom_pages?: Array<string>;

/**
* Body param: The URL or domain of the bookmark.
*/
domain?: unknown;

/**
* Body param: Enables the binding cookie, which increases security against
* compromised authorization tokens and CSRF attacks.
Expand Down Expand Up @@ -1692,11 +1697,6 @@ export interface ApplicationUpdateParams {
* filter applications in the App Launcher dashboard.
*/
tags?: Array<string>;

/**
* Body param: The application type.
*/
type?: string;
}

export namespace ApplicationUpdateParams {
Expand Down
Loading

0 comments on commit 5fe3889

Please sign in to comment.