Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 11, 2024
1 parent 554b69e commit 6bdda5d
Show file tree
Hide file tree
Showing 23 changed files with 2,701 additions and 19,653 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 1251
configured_endpoints: 1256
40 changes: 38 additions & 2 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,6 @@ Methods:

Types:

- <code><a href="./src/resources/keyless-certificates.ts">Hostname</a></code>
- <code><a href="./src/resources/keyless-certificates.ts">KeylessCertificate</a></code>
- <code><a href="./src/resources/keyless-certificates.ts">Tunnel</a></code>
- <code><a href="./src/resources/keyless-certificates.ts">KeylessCertificateDeleteResponse</a></code>
Expand Down Expand Up @@ -1906,7 +1905,6 @@ Methods:
Types:

- <code><a href="./src/resources/origin-tls-client-auth/hostnames/hostnames.ts">AuthenticatedOriginPull</a></code>
- <code><a href="./src/resources/origin-tls-client-auth/hostnames/hostnames.ts">ID</a></code>
- <code><a href="./src/resources/origin-tls-client-auth/hostnames/hostnames.ts">HostnameUpdateResponse</a></code>

Methods:
Expand Down Expand Up @@ -2633,10 +2631,22 @@ Methods:
Types:

- <code><a href="./src/resources/rulesets/rules.ts">BlockRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">ChallengeRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">CompressResponseRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">ExecuteRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">JsChallengeRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">LogRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">Logging</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">ManagedChallengeRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">RedirectRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">RewriteRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">RewriteURIPart</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">RouteRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">RulesetRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">ScoreRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">ServeErrorRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">SetCacheSettingsRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">SetConfigRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">SkipRule</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">RuleCreateResponse</a></code>
- <code><a href="./src/resources/rulesets/rules.ts">RuleDeleteResponse</a></code>
Expand Down Expand Up @@ -4067,6 +4077,32 @@ Methods:

- <code title="get /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/bindings">client.workersForPlatforms.dispatch.namespaces.scripts.bindings.<a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts">get</a>(dispatchNamespace, scriptName, { ...params }) -> BindingGetResponse</code>

##### Secrets

Types:

- <code><a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.ts">SecretUpdateResponse</a></code>
- <code><a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.ts">SecretListResponse</a></code>

Methods:

- <code title="put /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets">client.workersForPlatforms.dispatch.namespaces.scripts.secrets.<a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.ts">update</a>(dispatchNamespace, scriptName, { ...params }) -> SecretUpdateResponse</code>
- <code title="get /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets">client.workersForPlatforms.dispatch.namespaces.scripts.secrets.<a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.ts">list</a>(dispatchNamespace, scriptName, { ...params }) -> SecretListResponsesSinglePage</code>

##### Tags

Types:

- <code><a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.ts">TagUpdateResponse</a></code>
- <code><a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.ts">TagListResponse</a></code>
- <code><a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.ts">TagDeleteResponse</a></code>

Methods:

- <code title="put /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/tags">client.workersForPlatforms.dispatch.namespaces.scripts.tags.<a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.ts">update</a>(dispatchNamespace, scriptName, [ ...body ]) -> TagUpdateResponse</code>
- <code title="get /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/tags">client.workersForPlatforms.dispatch.namespaces.scripts.tags.<a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.ts">list</a>(dispatchNamespace, scriptName, { ...params }) -> TagListResponsesSinglePage</code>
- <code title="delete /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/tags/{tag}">client.workersForPlatforms.dispatch.namespaces.scripts.tags.<a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.ts">delete</a>(dispatchNamespace, scriptName, tag, { ...params }) -> TagDeleteResponse | null</code>

# ZeroTrust

## Devices
Expand Down
54 changes: 0 additions & 54 deletions src/resources/keyless-certificates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,60 +91,6 @@ export class KeylessCertificates extends APIResource {

export class KeylessCertificatesSinglePage extends SinglePage<KeylessCertificate> {}

export interface Hostname {
/**
* Keyless certificate identifier tag.
*/
id: string;

/**
* When the Keyless SSL was created.
*/
created_on: string;

/**
* Whether or not the Keyless SSL is on or off.
*/
enabled: boolean;

/**
* The keyless SSL name.
*/
host: string;

/**
* When the Keyless SSL was last modified.
*/
modified_on: string;

/**
* The keyless SSL name.
*/
name: string;

/**
* Available permissions for the Keyless SSL for the current user requesting the
* item.
*/
permissions: Array<unknown>;

/**
* The keyless SSL port used to communicate between Cloudflare and the client's
* Keyless SSL server.
*/
port: number;

/**
* Status of the Keyless SSL.
*/
status: 'active' | 'deleted';

/**
* Configuration for using Keyless SSL through a Cloudflare Tunnel
*/
tunnel?: Tunnel;
}

export interface KeylessCertificate {
/**
* Keyless certificate identifier tag.
Expand Down
89 changes: 0 additions & 89 deletions src/resources/origin-tls-client-auth/hostnames/hostnames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,94 +137,6 @@ export interface AuthenticatedOriginPull {
updated_at?: string;
}

export interface ID {
/**
* Identifier
*/
cert_id?: string;

/**
* Status of the certificate or the association.
*/
cert_status?:
| 'initializing'
| 'pending_deployment'
| 'pending_deletion'
| 'active'
| 'deleted'
| 'deployment_timed_out'
| 'deletion_timed_out';

/**
* The time when the certificate was updated.
*/
cert_updated_at?: string;

/**
* The time when the certificate was uploaded.
*/
cert_uploaded_on?: string;

/**
* The hostname certificate.
*/
certificate?: string;

/**
* The time when the certificate was created.
*/
created_at?: string;

/**
* Indicates whether hostname-level authenticated origin pulls is enabled. A null
* value voids the association.
*/
enabled?: boolean | null;

/**
* The date when the certificate expires.
*/
expires_on?: string;

/**
* The hostname on the origin for which the client certificate uploaded will be
* used.
*/
hostname?: string;

/**
* The certificate authority that issued the certificate.
*/
issuer?: string;

/**
* The serial number on the uploaded certificate.
*/
serial_number?: string;

/**
* The type of hash used for the certificate.
*/
signature?: string;

/**
* Status of the certificate or the association.
*/
status?:
| 'initializing'
| 'pending_deployment'
| 'pending_deletion'
| 'active'
| 'deleted'
| 'deployment_timed_out'
| 'deletion_timed_out';

/**
* The time when the certificate was updated.
*/
updated_at?: string;
}

export type HostnameUpdateResponse = Array<AuthenticatedOriginPull>;

export interface HostnameUpdateParams {
Expand Down Expand Up @@ -269,7 +181,6 @@ export interface HostnameGetParams {

export namespace Hostnames {
export import AuthenticatedOriginPull = HostnamesAPI.AuthenticatedOriginPull;
export import ID = HostnamesAPI.ID;
export import HostnameUpdateResponse = HostnamesAPI.HostnameUpdateResponse;
export import HostnameUpdateParams = HostnamesAPI.HostnameUpdateParams;
export import HostnameGetParams = HostnamesAPI.HostnameGetParams;
Expand Down
1 change: 0 additions & 1 deletion src/resources/origin-tls-client-auth/hostnames/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

export {
AuthenticatedOriginPull,
ID,
HostnameUpdateResponse,
HostnameUpdateParams,
HostnameGetParams,
Expand Down
1 change: 0 additions & 1 deletion src/resources/origin-tls-client-auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

export {
AuthenticatedOriginPull,
ID,
HostnameUpdateResponse,
HostnameUpdateParams,
HostnameGetParams,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ export interface OriginTLSClientAuthGetParams {
export namespace OriginTLSClientAuth {
export import Hostnames = HostnamesAPI.Hostnames;
export import AuthenticatedOriginPull = HostnamesAPI.AuthenticatedOriginPull;
export import ID = HostnamesAPI.ID;
export import HostnameUpdateResponse = HostnamesAPI.HostnameUpdateResponse;
export import HostnameUpdateParams = HostnamesAPI.HostnameUpdateParams;
export import HostnameGetParams = HostnamesAPI.HostnameGetParams;
Expand Down
12 changes: 12 additions & 0 deletions src/resources/rulesets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@

export {
BlockRule,
ChallengeRule,
CompressResponseRule,
ExecuteRule,
JsChallengeRule,
LogRule,
Logging,
ManagedChallengeRule,
RedirectRule,
RewriteRule,
RewriteURIPart,
RouteRule,
RulesetRule,
ScoreRule,
ServeErrorRule,
SetCacheSettingsRule,
SetConfigRule,
SkipRule,
RuleCreateResponse,
RuleDeleteResponse,
Expand Down
Loading

0 comments on commit 6bdda5d

Please sign in to comment.