Skip to content
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
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 1664
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4e988c584e8eacb13347475cb6ac38171cedd948f5101b03c37ec712341b9d7a.yml
openapi_spec_hash: c4e86fdb536ff8299ffc1faed7e3e573
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3f1027f7740afd5fbb6aa554575dd2fd7dd68c0d7c394c68b5515753860eaf8e.yml
openapi_spec_hash: fbe090182fbea3b046b951f6f4fb3b33
config_hash: af2dbb6a6332cef477c4697db6a78d79
12 changes: 12 additions & 0 deletions src/resources/waiting-rooms/events/details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ export interface EventQuery {
* the event's `new_users_per_minute` property is also set.
*/
total_active_users?: number | null;

/**
* If set, the event will override the waiting room's `turnstile_action` property
* while it is active. If null, the event will inherit it.
*/
turnstile_action?: 'log' | 'infinite_queue' | null;

/**
* If set, the event will override the waiting room's `turnstile_mode` property
* while it is active. If null, the event will inherit it.
*/
turnstile_mode?: 'off' | 'invisible' | 'visible_non_interactive' | 'visible_managed' | null;
}

export interface DetailGetResponse {
Expand Down
51 changes: 51 additions & 0 deletions src/resources/waiting-rooms/events/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,18 @@ export interface Event {
* the event's `new_users_per_minute` property is also set.
*/
total_active_users?: number | null;

/**
* If set, the event will override the waiting room's `turnstile_action` property
* while it is active. If null, the event will inherit it.
*/
turnstile_action?: 'log' | 'infinite_queue' | null;

/**
* If set, the event will override the waiting room's `turnstile_mode` property
* while it is active. If null, the event will inherit it.
*/
turnstile_mode?: 'off' | 'invisible' | 'visible_non_interactive' | 'visible_managed' | null;
}

export interface EventDeleteResponse {
Expand Down Expand Up @@ -312,6 +324,19 @@ export interface EventCreateParams {
* is also set.
*/
total_active_users?: number | null;

/**
* Body param: If set, the event will override the waiting room's
* `turnstile_action` property while it is active. If null, the event will inherit
* it.
*/
turnstile_action?: 'log' | 'infinite_queue' | null;

/**
* Body param: If set, the event will override the waiting room's `turnstile_mode`
* property while it is active. If null, the event will inherit it.
*/
turnstile_mode?: 'off' | 'invisible' | 'visible_non_interactive' | 'visible_managed' | null;
}

export interface EventUpdateParams {
Expand Down Expand Up @@ -408,6 +433,19 @@ export interface EventUpdateParams {
* is also set.
*/
total_active_users?: number | null;

/**
* Body param: If set, the event will override the waiting room's
* `turnstile_action` property while it is active. If null, the event will inherit
* it.
*/
turnstile_action?: 'log' | 'infinite_queue' | null;

/**
* Body param: If set, the event will override the waiting room's `turnstile_mode`
* property while it is active. If null, the event will inherit it.
*/
turnstile_mode?: 'off' | 'invisible' | 'visible_non_interactive' | 'visible_managed' | null;
}

export interface EventListParams extends V4PagePaginationArrayParams {
Expand Down Expand Up @@ -518,6 +556,19 @@ export interface EventEditParams {
* is also set.
*/
total_active_users?: number | null;

/**
* Body param: If set, the event will override the waiting room's
* `turnstile_action` property while it is active. If null, the event will inherit
* it.
*/
turnstile_action?: 'log' | 'infinite_queue' | null;

/**
* Body param: If set, the event will override the waiting room's `turnstile_mode`
* property while it is active. If null, the event will inherit it.
*/
turnstile_mode?: 'off' | 'invisible' | 'visible_non_interactive' | 'visible_managed' | null;
}

export interface EventGetParams {
Expand Down
4 changes: 2 additions & 2 deletions src/resources/zones/zones.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ export class ZonesV4PagePaginationArray extends V4PagePaginationArray<Zone> {}
* A full zone implies that DNS is hosted with Cloudflare. A partial zone is
* typically a partner-hosted zone or a CNAME setup.
*/
export type Type = 'full' | 'partial' | 'secondary';
export type Type = 'full' | 'partial' | 'secondary' | 'internal';

/**
* A full zone implies that DNS is hosted with Cloudflare. A partial zone is
* typically a partner-hosted zone or a CNAME setup.
*/
export type TypeParam = 'full' | 'partial' | 'secondary';
export type TypeParam = 'full' | 'partial' | 'secondary' | 'internal';

export interface Zone {
/**
Expand Down
6 changes: 6 additions & 0 deletions tests/api-resources/waiting-rooms/events/events.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ describe('resource events', () => {
shuffle_at_event_start: true,
suspended: true,
total_active_users: 200,
turnstile_action: 'log',
turnstile_mode: 'off',
});
});

Expand Down Expand Up @@ -86,6 +88,8 @@ describe('resource events', () => {
shuffle_at_event_start: true,
suspended: true,
total_active_users: 200,
turnstile_action: 'log',
turnstile_mode: 'off',
},
);
});
Expand Down Expand Up @@ -174,6 +178,8 @@ describe('resource events', () => {
shuffle_at_event_start: true,
suspended: true,
total_active_users: 200,
turnstile_action: 'log',
turnstile_mode: 'off',
},
);
});
Expand Down