Skip to content

Commit 8d556c6

Browse files
feat(api): api update
1 parent bfe1d73 commit 8d556c6

File tree

2 files changed

+18
-64
lines changed

2 files changed

+18
-64
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: 1793
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a4b6c9d841c558ea8cf211a24249c5427e3ef58390a17c486a113d6d87652e35.yml
3-
openapi_spec_hash: 9bcab79f4888b8b842ade5cd00667fdf
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-15e1294d80aa14c36de2b0cf0eade2a04e239fd0818775c602d5a64c24a1e128.yml
3+
openapi_spec_hash: 7e0e5f8e49376789b4a5befbcfabf35c
44
config_hash: de4c81cee29cd7dd907279e8916b334f

src/resources/zones/settings.ts

Lines changed: 16 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,13 @@ export interface BrowserCacheTTL {
301301
id?: 'browser_cache_ttl';
302302

303303
/**
304-
* The number of seconds to cache resources for. The API prohibits setting this to
305-
* 0 for non-Enterprise domains.
304+
* The number of seconds to cache resources for. Minimum values by plan:
305+
*
306+
* - Free: 7200 seconds (2 hours)
307+
* - Pro: 3600 seconds (1 hour)
308+
* - Business: 1 second
309+
* - Enterprise: 1 second Setting this to 0 enables "Respect Existing Headers" and
310+
* is allowed for all plans.
306311
*/
307312
value?: number;
308313
}
@@ -314,8 +319,13 @@ export interface BrowserCacheTTLParam {
314319
id?: 'browser_cache_ttl';
315320

316321
/**
317-
* The number of seconds to cache resources for. The API prohibits setting this to
318-
* 0 for non-Enterprise domains.
322+
* The number of seconds to cache resources for. Minimum values by plan:
323+
*
324+
* - Free: 7200 seconds (2 hours)
325+
* - Pro: 3600 seconds (1 hour)
326+
* - Business: 1 second
327+
* - Enterprise: 1 second Setting this to 0 enables "Respect Existing Headers" and
328+
* is allowed for all plans.
319329
*/
320330
value?: number;
321331
}
@@ -1704,35 +1714,7 @@ export namespace SettingEditResponse {
17041714
/**
17051715
* Current value of the zone setting.
17061716
*/
1707-
value:
1708-
| 0
1709-
| 30
1710-
| 60
1711-
| 120
1712-
| 300
1713-
| 1200
1714-
| 1800
1715-
| 3600
1716-
| 7200
1717-
| 10800
1718-
| 14400
1719-
| 18000
1720-
| 28800
1721-
| 43200
1722-
| 57600
1723-
| 72000
1724-
| 86400
1725-
| 172800
1726-
| 259200
1727-
| 345600
1728-
| 432000
1729-
| 691200
1730-
| 1382400
1731-
| 2073600
1732-
| 2678400
1733-
| 5356800
1734-
| 16070400
1735-
| 31536000;
1717+
value: number;
17361718

17371719
/**
17381720
* Whether or not this setting can be modified for this zone (based on your
@@ -2776,35 +2758,7 @@ export namespace SettingGetResponse {
27762758
/**
27772759
* Current value of the zone setting.
27782760
*/
2779-
value:
2780-
| 0
2781-
| 30
2782-
| 60
2783-
| 120
2784-
| 300
2785-
| 1200
2786-
| 1800
2787-
| 3600
2788-
| 7200
2789-
| 10800
2790-
| 14400
2791-
| 18000
2792-
| 28800
2793-
| 43200
2794-
| 57600
2795-
| 72000
2796-
| 86400
2797-
| 172800
2798-
| 259200
2799-
| 345600
2800-
| 432000
2801-
| 691200
2802-
| 1382400
2803-
| 2073600
2804-
| 2678400
2805-
| 5356800
2806-
| 16070400
2807-
| 31536000;
2761+
value: number;
28082762

28092763
/**
28102764
* Whether or not this setting can be modified for this zone (based on your

0 commit comments

Comments
 (0)