Skip to content

Commit 62cde77

Browse files
feat(api): api update
1 parent 383f29e commit 62cde77

File tree

8 files changed

+58
-20
lines changed

8 files changed

+58
-20
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1752
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-628b27476dcb24be6d178f13e44068933c1e4cf67895b708a62fc182ae35a83a.yml
3-
openapi_spec_hash: 5d8aa29e0696dfd71cc1e27c3d520f2e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e5d1a969742a91c1dcd3abbe0f2f84986d5613047fe6591258ec0daa3dbaf0b.yml
3+
openapi_spec_hash: 4dc3b9781cc2519d5ae2e9b35a4005c8
44
config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1

src/resources/cloud-connector/rules.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface RuleUpdateResponse {
5757
/**
5858
* Cloud Provider type
5959
*/
60-
provider?: 'aws_s3' | 'r2' | 'gcp_storage' | 'azure_storage';
60+
provider?: 'aws_s3' | 'cloudflare_r2' | 'gcp_storage' | 'azure_storage';
6161
}
6262

6363
export namespace RuleUpdateResponse {
@@ -89,7 +89,7 @@ export interface RuleListResponse {
8989
/**
9090
* Cloud Provider type
9191
*/
92-
provider?: 'aws_s3' | 'r2' | 'gcp_storage' | 'azure_storage';
92+
provider?: 'aws_s3' | 'cloudflare_r2' | 'gcp_storage' | 'azure_storage';
9393
}
9494

9595
export namespace RuleListResponse {
@@ -134,7 +134,7 @@ export namespace RuleUpdateParams {
134134
/**
135135
* Cloud Provider type
136136
*/
137-
provider?: 'aws_s3' | 'r2' | 'gcp_storage' | 'azure_storage';
137+
provider?: 'aws_s3' | 'cloudflare_r2' | 'gcp_storage' | 'azure_storage';
138138
}
139139

140140
export namespace Rule {

src/resources/shared.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ export interface CloudflareTunnel {
141141
account_tag?: string;
142142

143143
/**
144-
* The Cloudflare Tunnel connections between your origin and Cloudflare's edge.
144+
* @deprecated This field will start returning an empty array. To fetch the
145+
* connections of a given tunnel, please use the dedicated endpoint
146+
* `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections`
145147
*/
146148
connections?: Array<CloudflareTunnel.Connection>;
147149

src/resources/zero-trust/gateway/lists/lists.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,16 +321,30 @@ export interface ListEditParams {
321321
account_id: string;
322322

323323
/**
324-
* Body param: The items in the list.
324+
* Body param: items to add to the list.
325325
*/
326-
append?: Array<GatewayItemParam>;
326+
append?: Array<ListEditParams.Append>;
327327

328328
/**
329329
* Body param: A list of the item values you want to remove.
330330
*/
331331
remove?: Array<string>;
332332
}
333333

334+
export namespace ListEditParams {
335+
export interface Append {
336+
/**
337+
* The description of the list item, if present
338+
*/
339+
description?: string;
340+
341+
/**
342+
* The value of the item in a list.
343+
*/
344+
value?: string;
345+
}
346+
}
347+
334348
export interface ListGetParams {
335349
account_id: string;
336350
}

src/resources/zero-trust/gateway/locations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export interface Location {
322322
* location's IPv6 address is allocated from the Bring Your Own Ipv6(BYOIPv6) block
323323
* and not from the standard CloudFlare IPv6 block.
324324
*/
325-
dns_destination_ipv6_block_id?: string;
325+
dns_destination_ipv6_block_id?: string | null;
326326

327327
/**
328328
* The DNS over HTTPS domain to send DNS requests to. This field is auto-generated

src/resources/zero-trust/tunnels/cloudflared/cloudflared.ts

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ export namespace CloudflaredCreateResponse {
186186
account_tag?: string;
187187

188188
/**
189-
* The Cloudflare Tunnel connections between your origin and Cloudflare's edge.
189+
* @deprecated This field will start returning an empty array. To fetch the
190+
* connections of a given tunnel, please use the dedicated endpoint
191+
* `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections`
190192
*/
191193
connections?: Array<TunnelWARPConnectorTunnel.Connection>;
192194

@@ -308,7 +310,9 @@ export namespace CloudflaredListResponse {
308310
account_tag?: string;
309311

310312
/**
311-
* The Cloudflare Tunnel connections between your origin and Cloudflare's edge.
313+
* @deprecated This field will start returning an empty array. To fetch the
314+
* connections of a given tunnel, please use the dedicated endpoint
315+
* `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections`
312316
*/
313317
connections?: Array<TunnelWARPConnectorTunnel.Connection>;
314318

@@ -430,7 +434,9 @@ export namespace CloudflaredDeleteResponse {
430434
account_tag?: string;
431435

432436
/**
433-
* The Cloudflare Tunnel connections between your origin and Cloudflare's edge.
437+
* @deprecated This field will start returning an empty array. To fetch the
438+
* connections of a given tunnel, please use the dedicated endpoint
439+
* `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections`
434440
*/
435441
connections?: Array<TunnelWARPConnectorTunnel.Connection>;
436442

@@ -552,7 +558,9 @@ export namespace CloudflaredEditResponse {
552558
account_tag?: string;
553559

554560
/**
555-
* The Cloudflare Tunnel connections between your origin and Cloudflare's edge.
561+
* @deprecated This field will start returning an empty array. To fetch the
562+
* connections of a given tunnel, please use the dedicated endpoint
563+
* `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections`
556564
*/
557565
connections?: Array<TunnelWARPConnectorTunnel.Connection>;
558566

@@ -674,7 +682,9 @@ export namespace CloudflaredGetResponse {
674682
account_tag?: string;
675683

676684
/**
677-
* The Cloudflare Tunnel connections between your origin and Cloudflare's edge.
685+
* @deprecated This field will start returning an empty array. To fetch the
686+
* connections of a given tunnel, please use the dedicated endpoint
687+
* `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections`
678688
*/
679689
connections?: Array<TunnelWARPConnectorTunnel.Connection>;
680690

src/resources/zero-trust/tunnels/tunnels.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ export namespace TunnelListResponse {
108108
account_tag?: string;
109109

110110
/**
111-
* The Cloudflare Tunnel connections between your origin and Cloudflare's edge.
111+
* @deprecated This field will start returning an empty array. To fetch the
112+
* connections of a given tunnel, please use the dedicated endpoint
113+
* `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections`
112114
*/
113115
connections?: Array<TunnelWARPConnectorTunnel.Connection>;
114116

src/resources/zero-trust/tunnels/warp-connector/warp-connector.ts

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ export namespace WARPConnectorCreateResponse {
161161
account_tag?: string;
162162

163163
/**
164-
* The Cloudflare Tunnel connections between your origin and Cloudflare's edge.
164+
* @deprecated This field will start returning an empty array. To fetch the
165+
* connections of a given tunnel, please use the dedicated endpoint
166+
* `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections`
165167
*/
166168
connections?: Array<TunnelWARPConnectorTunnel.Connection>;
167169

@@ -283,7 +285,9 @@ export namespace WARPConnectorListResponse {
283285
account_tag?: string;
284286

285287
/**
286-
* The Cloudflare Tunnel connections between your origin and Cloudflare's edge.
288+
* @deprecated This field will start returning an empty array. To fetch the
289+
* connections of a given tunnel, please use the dedicated endpoint
290+
* `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections`
287291
*/
288292
connections?: Array<TunnelWARPConnectorTunnel.Connection>;
289293

@@ -405,7 +409,9 @@ export namespace WARPConnectorDeleteResponse {
405409
account_tag?: string;
406410

407411
/**
408-
* The Cloudflare Tunnel connections between your origin and Cloudflare's edge.
412+
* @deprecated This field will start returning an empty array. To fetch the
413+
* connections of a given tunnel, please use the dedicated endpoint
414+
* `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections`
409415
*/
410416
connections?: Array<TunnelWARPConnectorTunnel.Connection>;
411417

@@ -527,7 +533,9 @@ export namespace WARPConnectorEditResponse {
527533
account_tag?: string;
528534

529535
/**
530-
* The Cloudflare Tunnel connections between your origin and Cloudflare's edge.
536+
* @deprecated This field will start returning an empty array. To fetch the
537+
* connections of a given tunnel, please use the dedicated endpoint
538+
* `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections`
531539
*/
532540
connections?: Array<TunnelWARPConnectorTunnel.Connection>;
533541

@@ -649,7 +657,9 @@ export namespace WARPConnectorGetResponse {
649657
account_tag?: string;
650658

651659
/**
652-
* The Cloudflare Tunnel connections between your origin and Cloudflare's edge.
660+
* @deprecated This field will start returning an empty array. To fetch the
661+
* connections of a given tunnel, please use the dedicated endpoint
662+
* `/accounts/{account_id}/{tunnel_type}/{tunnel_id}/connections`
653663
*/
654664
connections?: Array<TunnelWARPConnectorTunnel.Connection>;
655665

0 commit comments

Comments
 (0)