Skip to content

Commit a0eb463

Browse files
authored
Merge pull request #2750 from cloudflare/release-please--branches--main--changes--next--components--cloudflare
release: 6.1.0
2 parents 3e60cbe + 2eb3a30 commit a0eb463

42 files changed

Lines changed: 1583 additions & 44 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "6.0.0"
2+
".": "6.1.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 2191
1+
configured_endpoints: 2200
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: aa452e4dfaec546a7e50ef8665bd39f4
4-
config_hash: d3379006654eb5479a62d9576648acc5
3+
openapi_spec_hash: e722ad1f58e3dfb3a928cf9890d48da4
4+
config_hash: ff549978909de2badc92845fea964f4b

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## 6.1.0 (2026-05-04)
4+
5+
Full Changelog: [v6.0.0...v6.1.0](https://github.com/cloudflare/cloudflare-typescript/compare/v6.0.0...v6.1.0)
6+
7+
### Features
8+
9+
* chore: skip failing deployment_groups tests ([f4ce98e](https://github.com/cloudflare/cloudflare-typescript/commit/f4ce98e62e99932ee19e99f2f00ac2b21571767e))
10+
* feat(api): add zero_trust_device_deployment_groups resource ([c05f6d6](https://github.com/cloudflare/cloudflare-typescript/commit/c05f6d6e131080fc5760ff203535c9228409abe6))
11+
* feat(SCTR): add audit log, classification, and context endpoints to Security Center API ([3791b84](https://github.com/cloudflare/cloudflare-typescript/commit/3791b84b95e0c3c75f711afba089797b7ac1ac23))
12+
13+
14+
### Chores
15+
16+
* **api:** update composite API spec ([64244be](https://github.com/cloudflare/cloudflare-typescript/commit/64244be9776cb641b210eb098ba2cd80d68d63ac))
17+
* **api:** update composite API spec ([7cb65d5](https://github.com/cloudflare/cloudflare-typescript/commit/7cb65d5a12b2ab6aa0682d7daed585fcb2d1826f))
18+
* **api:** update composite API spec ([8533ac8](https://github.com/cloudflare/cloudflare-typescript/commit/8533ac86bf04e5fac809fe4a678119ba9e09c7a2))
19+
* **api:** update composite API spec ([04ebcc4](https://github.com/cloudflare/cloudflare-typescript/commit/04ebcc4a76ca2b3921482a757e195840da10b03e))
20+
* **api:** update composite API spec ([fb5ef8f](https://github.com/cloudflare/cloudflare-typescript/commit/fb5ef8fd097043fe3b538435cdeba7827cd0df38))
21+
322
## 6.0.0 (2026-04-30)
423

524
This is a major version release of the Cloudflare TypeScript SDK. It includes 11 entirely new top-level API resources, new sub-resources and methods across 50+ existing resources, SDK infrastructure improvements, and breaking changes to the generated API surface from the v5.x line. The total API surface grew from ~96 resource sections to 106, with 885 source files changed.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cloudflare",
3-
"version": "6.0.0",
3+
"version": "6.1.0",
44
"description": "The official TypeScript library for the Cloudflare API",
55
"author": "Cloudflare <api@cloudflare.com>",
66
"types": "dist/index.d.ts",

scripts/detect-breaking-changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ TEST_PATHS=(
442442
tests/api-resources/zero-trust/devices/registrations.test.ts
443443
tests/api-resources/zero-trust/devices/dex-tests.test.ts
444444
tests/api-resources/zero-trust/devices/ip-profiles.test.ts
445+
tests/api-resources/zero-trust/devices/deployment-groups.test.ts
445446
tests/api-resources/zero-trust/devices/networks.test.ts
446447
tests/api-resources/zero-trust/devices/fleet-status.test.ts
447448
tests/api-resources/zero-trust/devices/policies/policies.test.ts
@@ -831,6 +832,9 @@ TEST_PATHS=(
831832
tests/api-resources/security-center/insights/class.test.ts
832833
tests/api-resources/security-center/insights/severity.test.ts
833834
tests/api-resources/security-center/insights/type.test.ts
835+
tests/api-resources/security-center/insights/audit-logs.test.ts
836+
tests/api-resources/security-center/insights/classification.test.ts
837+
tests/api-resources/security-center/insights/context.test.ts
834838
tests/api-resources/browser-rendering/browser-rendering.test.ts
835839
tests/api-resources/browser-rendering/content.test.ts
836840
tests/api-resources/browser-rendering/pdf.test.ts

src/resources/aisearch/instances/instances.ts

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,13 @@ export interface InstanceCreateResponse {
274274

275275
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
276276

277+
/**
278+
* Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
279+
* (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
280+
* (72h), 518400 (6d).
281+
*/
282+
cache_ttl?: 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400;
283+
277284
chunk_overlap?: number;
278285

279286
chunk_size?: number;
@@ -654,6 +661,13 @@ export interface InstanceUpdateResponse {
654661

655662
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
656663

664+
/**
665+
* Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
666+
* (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
667+
* (72h), 518400 (6d).
668+
*/
669+
cache_ttl?: 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400;
670+
657671
chunk_overlap?: number;
658672

659673
chunk_size?: number;
@@ -1034,6 +1048,13 @@ export interface InstanceListResponse {
10341048

10351049
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
10361050

1051+
/**
1052+
* Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
1053+
* (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
1054+
* (72h), 518400 (6d).
1055+
*/
1056+
cache_ttl?: 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400;
1057+
10371058
chunk_overlap?: number;
10381059

10391060
chunk_size?: number;
@@ -1414,6 +1435,13 @@ export interface InstanceDeleteResponse {
14141435

14151436
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
14161437

1438+
/**
1439+
* Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
1440+
* (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
1441+
* (72h), 518400 (6d).
1442+
*/
1443+
cache_ttl?: 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400;
1444+
14171445
chunk_overlap?: number;
14181446

14191447
chunk_size?: number;
@@ -1864,6 +1892,13 @@ export interface InstanceReadResponse {
18641892

18651893
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
18661894

1895+
/**
1896+
* Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
1897+
* (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
1898+
* (72h), 518400 (6d).
1899+
*/
1900+
cache_ttl?: 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400;
1901+
18671902
chunk_overlap?: number;
18681903

18691904
chunk_size?: number;
@@ -2368,6 +2403,13 @@ export interface InstanceCreateParams {
23682403
*/
23692404
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
23702405

2406+
/**
2407+
* Body param: Cache entry TTL in seconds. Allowed values: 600 (10min), 1800
2408+
* (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800
2409+
* (48h), 259200 (72h), 518400 (6d).
2410+
*/
2411+
cache_ttl?: 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400;
2412+
23712413
/**
23722414
* Body param
23732415
*/
@@ -2801,6 +2843,13 @@ export interface InstanceUpdateParams {
28012843
*/
28022844
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
28032845

2846+
/**
2847+
* Body param: Cache entry TTL in seconds. Allowed values: 600 (10min), 1800
2848+
* (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800
2849+
* (48h), 259200 (72h), 518400 (6d).
2850+
*/
2851+
cache_ttl?: 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400;
2852+
28042853
/**
28052854
* Body param
28062855
*/

src/resources/aisearch/namespaces/instances/instances.ts

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,13 @@ export interface InstanceCreateResponse {
325325

326326
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
327327

328+
/**
329+
* Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
330+
* (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
331+
* (72h), 518400 (6d).
332+
*/
333+
cache_ttl?: 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400;
334+
328335
chunk_overlap?: number;
329336

330337
chunk_size?: number;
@@ -705,6 +712,13 @@ export interface InstanceUpdateResponse {
705712

706713
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
707714

715+
/**
716+
* Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
717+
* (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
718+
* (72h), 518400 (6d).
719+
*/
720+
cache_ttl?: 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400;
721+
708722
chunk_overlap?: number;
709723

710724
chunk_size?: number;
@@ -1085,6 +1099,13 @@ export interface InstanceListResponse {
10851099

10861100
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
10871101

1102+
/**
1103+
* Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
1104+
* (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
1105+
* (72h), 518400 (6d).
1106+
*/
1107+
cache_ttl?: 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400;
1108+
10881109
chunk_overlap?: number;
10891110

10901111
chunk_size?: number;
@@ -1465,6 +1486,13 @@ export interface InstanceDeleteResponse {
14651486

14661487
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
14671488

1489+
/**
1490+
* Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
1491+
* (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
1492+
* (72h), 518400 (6d).
1493+
*/
1494+
cache_ttl?: 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400;
1495+
14681496
chunk_overlap?: number;
14691497

14701498
chunk_size?: number;
@@ -1915,6 +1943,13 @@ export interface InstanceReadResponse {
19151943

19161944
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
19171945

1946+
/**
1947+
* Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
1948+
* (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
1949+
* (72h), 518400 (6d).
1950+
*/
1951+
cache_ttl?: 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400;
1952+
19181953
chunk_overlap?: number;
19191954

19201955
chunk_size?: number;
@@ -2419,6 +2454,13 @@ export interface InstanceCreateParams {
24192454
*/
24202455
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
24212456

2457+
/**
2458+
* Body param: Cache entry TTL in seconds. Allowed values: 600 (10min), 1800
2459+
* (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800
2460+
* (48h), 259200 (72h), 518400 (6d).
2461+
*/
2462+
cache_ttl?: 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400;
2463+
24222464
/**
24232465
* Body param
24242466
*/
@@ -2852,6 +2894,13 @@ export interface InstanceUpdateParams {
28522894
*/
28532895
cache_threshold?: 'super_strict_match' | 'close_enough' | 'flexible_friend' | 'anything_goes';
28542896

2897+
/**
2898+
* Body param: Cache entry TTL in seconds. Allowed values: 600 (10min), 1800
2899+
* (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800
2900+
* (48h), 259200 (72h), 518400 (6d).
2901+
*/
2902+
cache_ttl?: 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400;
2903+
28552904
/**
28562905
* Body param
28572906
*/

src/resources/billing/usage.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ export namespace UsagePaygoResponse {
5757
ConsumedQuantity: number;
5858

5959
/**
60-
* Specifies the unit of measurement for consumed quantity.
60+
* A display name for the unit of measurement used for the product (for example,
61+
* "GB-months", "GB-seconds"). May be empty when the unit is implicit in the
62+
* service name.
6163
*/
6264
ConsumedUnit: string;
6365

src/resources/email-security/submissions.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ export interface SubmissionListParams extends V4PagePaginationArrayParams {
9696
*/
9797
end?: string;
9898

99+
/**
100+
* Query param: When true, return only submissions that were escalated by an end
101+
* user (vs. by the security team). When false, return only submissions that were
102+
* not escalated by an end user. When omitted, no filter is applied.
103+
*/
104+
escalated_from_user?: boolean;
105+
99106
/**
100107
* Query param
101108
*/

0 commit comments

Comments
 (0)