Skip to content

release: 4.5.0 #2650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 127 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
716619d
codegen metadata
stainless-app[bot] Jun 16, 2025
6898174
chore(ci): enable for pull requests
stainless-app[bot] Jun 17, 2025
a492965
chore(api): TTL is required on DNS records
stainless-app[bot] Jun 17, 2025
a749e0c
codegen metadata
stainless-app[bot] Jun 17, 2025
cbdd3e8
feat(api): api update
stainless-app[bot] Jun 20, 2025
18bfff9
codegen metadata
stainless-app[bot] Jun 20, 2025
599c05d
codegen metadata
stainless-app[bot] Jun 20, 2025
16ff35d
codegen metadata
stainless-app[bot] Jun 20, 2025
59a17cf
feat(api): api update
stainless-app[bot] Jun 20, 2025
15a0fcb
codegen metadata
stainless-app[bot] Jun 20, 2025
f6b0994
codegen metadata
stainless-app[bot] Jun 20, 2025
10bd488
codegen metadata
stainless-app[bot] Jun 20, 2025
346d7a5
codegen metadata
stainless-app[bot] Jun 20, 2025
1c02db7
codegen metadata
stainless-app[bot] Jun 20, 2025
0aaf01e
codegen metadata
stainless-app[bot] Jun 20, 2025
0d20443
codegen metadata
stainless-app[bot] Jun 20, 2025
9bd7d39
codegen metadata
stainless-app[bot] Jun 20, 2025
287a5e2
codegen metadata
stainless-app[bot] Jun 20, 2025
dd1da78
codegen metadata
stainless-app[bot] Jun 20, 2025
2156777
codegen metadata
stainless-app[bot] Jun 20, 2025
3c2ff72
codegen metadata
stainless-app[bot] Jun 23, 2025
9747700
codegen metadata
stainless-app[bot] Jun 23, 2025
298b525
codegen metadata
stainless-app[bot] Jun 23, 2025
22cb1ee
codegen metadata
stainless-app[bot] Jun 23, 2025
c2bae9d
codegen metadata
stainless-app[bot] Jun 23, 2025
c85e2a8
codegen metadata
stainless-app[bot] Jun 23, 2025
9f7408d
codegen metadata
stainless-app[bot] Jun 23, 2025
8423bdf
codegen metadata
stainless-app[bot] Jun 23, 2025
40d16d8
codegen metadata
stainless-app[bot] Jun 23, 2025
950c6e2
codegen metadata
stainless-app[bot] Jun 23, 2025
f9ae94e
codegen metadata
stainless-app[bot] Jun 23, 2025
42be3b9
codegen metadata
stainless-app[bot] Jun 23, 2025
409e03e
codegen metadata
stainless-app[bot] Jun 23, 2025
a89e5d9
codegen metadata
stainless-app[bot] Jun 23, 2025
a31752d
codegen metadata
stainless-app[bot] Jun 23, 2025
849f0f9
codegen metadata
stainless-app[bot] Jun 23, 2025
9efb344
codegen metadata
stainless-app[bot] Jun 23, 2025
9e9ab2e
codegen metadata
stainless-app[bot] Jun 23, 2025
3b08054
codegen metadata
stainless-app[bot] Jun 23, 2025
39bd4d9
codegen metadata
stainless-app[bot] Jun 23, 2025
1678dd8
codegen metadata
stainless-app[bot] Jun 23, 2025
17a4990
codegen metadata
stainless-app[bot] Jun 23, 2025
d364d04
codegen metadata
stainless-app[bot] Jun 23, 2025
04c60f4
codegen metadata
stainless-app[bot] Jun 23, 2025
6164247
codegen metadata
stainless-app[bot] Jun 23, 2025
94571a5
codegen metadata
stainless-app[bot] Jun 23, 2025
da60ef0
codegen metadata
stainless-app[bot] Jun 23, 2025
c386da5
codegen metadata
stainless-app[bot] Jun 23, 2025
cb6fd0a
codegen metadata
stainless-app[bot] Jun 23, 2025
ea764fb
codegen metadata
stainless-app[bot] Jun 23, 2025
6a94ed9
chore(internal): codegen related update
stainless-app[bot] Jun 23, 2025
c1bd85c
codegen metadata
stainless-app[bot] Jun 23, 2025
34822e4
codegen metadata
stainless-app[bot] Jun 23, 2025
687e587
codegen metadata
stainless-app[bot] Jun 23, 2025
68560ce
codegen metadata
stainless-app[bot] Jun 23, 2025
6920fdf
codegen metadata
stainless-app[bot] Jun 24, 2025
b037ab4
codegen metadata
stainless-app[bot] Jun 24, 2025
17391c1
codegen metadata
stainless-app[bot] Jun 24, 2025
7d89c88
codegen metadata
stainless-app[bot] Jun 24, 2025
d0cc2ac
codegen metadata
stainless-app[bot] Jun 24, 2025
06e5db1
codegen metadata
stainless-app[bot] Jun 24, 2025
0c42d22
codegen metadata
stainless-app[bot] Jun 24, 2025
c7aafdc
codegen metadata
stainless-app[bot] Jun 24, 2025
39437a9
codegen metadata
stainless-app[bot] Jun 24, 2025
99fa93e
feat(api): api update
stainless-app[bot] Jun 24, 2025
a623747
codegen metadata
stainless-app[bot] Jun 24, 2025
fc6ee07
codegen metadata
stainless-app[bot] Jun 24, 2025
579cc24
codegen metadata
stainless-app[bot] Jun 24, 2025
16808ed
codegen metadata
stainless-app[bot] Jun 24, 2025
d355756
codegen metadata
stainless-app[bot] Jun 24, 2025
ebd8ff9
codegen metadata
stainless-app[bot] Jun 24, 2025
163e3e6
codegen metadata
stainless-app[bot] Jun 24, 2025
70549eb
codegen metadata
stainless-app[bot] Jun 24, 2025
19d6268
codegen metadata
stainless-app[bot] Jun 24, 2025
13591e0
codegen metadata
stainless-app[bot] Jun 24, 2025
954eceb
codegen metadata
stainless-app[bot] Jun 24, 2025
b9e6e41
codegen metadata
stainless-app[bot] Jun 24, 2025
cce141b
codegen metadata
stainless-app[bot] Jun 24, 2025
4086697
codegen metadata
stainless-app[bot] Jun 25, 2025
d073a59
codegen metadata
stainless-app[bot] Jun 25, 2025
cdc6a50
codegen metadata
stainless-app[bot] Jun 25, 2025
7999be1
codegen metadata
stainless-app[bot] Jun 25, 2025
35fb807
codegen metadata
stainless-app[bot] Jun 25, 2025
9e21476
codegen metadata
stainless-app[bot] Jun 25, 2025
78c7d2d
codegen metadata
stainless-app[bot] Jun 25, 2025
e02629e
codegen metadata
stainless-app[bot] Jun 25, 2025
d140037
codegen metadata
stainless-app[bot] Jun 25, 2025
38d12ba
codegen metadata
stainless-app[bot] Jun 25, 2025
7c37a85
feat(api): api update
stainless-app[bot] Jun 25, 2025
064b613
codegen metadata
stainless-app[bot] Jun 25, 2025
8ab2ed2
codegen metadata
stainless-app[bot] Jun 25, 2025
a5d0ee6
codegen metadata
stainless-app[bot] Jun 25, 2025
a0be654
codegen metadata
stainless-app[bot] Jun 25, 2025
3049718
codegen metadata
stainless-app[bot] Jun 25, 2025
b10723a
codegen metadata
stainless-app[bot] Jun 25, 2025
8ec1be3
codegen metadata
stainless-app[bot] Jun 25, 2025
513ab56
codegen metadata
stainless-app[bot] Jun 25, 2025
407ac5e
codegen metadata
stainless-app[bot] Jun 25, 2025
a099248
codegen metadata
stainless-app[bot] Jun 25, 2025
48fbe11
codegen metadata
stainless-app[bot] Jun 25, 2025
a4e06ee
codegen metadata
stainless-app[bot] Jun 25, 2025
2da72b4
codegen metadata
stainless-app[bot] Jun 25, 2025
f2f1961
codegen metadata
stainless-app[bot] Jun 25, 2025
c401c53
codegen metadata
stainless-app[bot] Jun 25, 2025
bfac35f
codegen metadata
stainless-app[bot] Jun 25, 2025
91aba8f
codegen metadata
stainless-app[bot] Jun 25, 2025
36b69de
codegen metadata
stainless-app[bot] Jun 25, 2025
abc3d55
codegen metadata
stainless-app[bot] Jun 25, 2025
18daca5
codegen metadata
stainless-app[bot] Jun 25, 2025
d003f4b
codegen metadata
stainless-app[bot] Jun 25, 2025
f94ee65
codegen metadata
stainless-app[bot] Jun 25, 2025
24464e5
codegen metadata
stainless-app[bot] Jun 26, 2025
39da884
codegen metadata
stainless-app[bot] Jun 26, 2025
971e423
codegen metadata
stainless-app[bot] Jun 26, 2025
e851cbd
codegen metadata
stainless-app[bot] Jun 26, 2025
43d8783
codegen metadata
stainless-app[bot] Jun 26, 2025
742133a
codegen metadata
stainless-app[bot] Jun 26, 2025
c4f2ddf
fix(ci): release-doctor — report correct token name
stainless-app[bot] Jun 26, 2025
9d741a3
codegen metadata
stainless-app[bot] Jun 26, 2025
44d36ee
codegen metadata
stainless-app[bot] Jun 26, 2025
5d58b03
codegen metadata
stainless-app[bot] Jun 26, 2025
a343c2a
codegen metadata
stainless-app[bot] Jun 26, 2025
e42f97d
codegen metadata
stainless-app[bot] Jun 26, 2025
1b51688
codegen metadata
stainless-app[bot] Jun 26, 2025
58ea846
feat(api): api update
stainless-app[bot] Jun 26, 2025
a672798
codegen metadata
stainless-app[bot] Jun 26, 2025
fbfee0e
release: 4.5.0
stainless-app[bot] Jun 26, 2025
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: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'
pull_request:
branches-ignore:
- 'stl-preview-head/**'
- 'stl-preview-base/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "4.4.1"
".": "4.5.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 1752
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b15b44e0efd207de48e7e74e742b0b4b190c74f12a941a1a0ef59a51656a5224.yml
openapi_spec_hash: 83243c9ee06f88d0fa91e9b185d8a42e
config_hash: 8601d43fd5ccaf9e3d08f26748a5a63a
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3067c2bb6c9724d234be04ae30fd7d84fb04b2ad9fc9808a7e8a60837b300e7e.yml
openapi_spec_hash: 122a9851a2d05c751f47ff5ec875fbb4
config_hash: 284c4178d08f75d8c8b29f275948a8fd
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## 4.5.0 (2025-06-26)

Full Changelog: [v4.4.1...v4.5.0](https://github.com/cloudflare/cloudflare-typescript/compare/v4.4.1...v4.5.0)

### Features

* **api:** api update ([58ea846](https://github.com/cloudflare/cloudflare-typescript/commit/58ea846c9cc9622a959c354b81d13e108a83a869))
* **api:** api update ([7c37a85](https://github.com/cloudflare/cloudflare-typescript/commit/7c37a85e50989df912f100a67e383624b2b70fbd))
* **api:** api update ([99fa93e](https://github.com/cloudflare/cloudflare-typescript/commit/99fa93e063b91d33234384c739d0d492f8c4691b))
* **api:** api update ([59a17cf](https://github.com/cloudflare/cloudflare-typescript/commit/59a17cf3bd914f6447c46bb27be346ac95717af8))
* **api:** api update ([cbdd3e8](https://github.com/cloudflare/cloudflare-typescript/commit/cbdd3e82869bac6065a6b888457c10b7e8541f84))


### Bug Fixes

* **ci:** release-doctor — report correct token name ([c4f2ddf](https://github.com/cloudflare/cloudflare-typescript/commit/c4f2ddfe3a5c3bf5cefaefe347b5a0707c538447))


### Chores

* **api:** TTL is required on DNS records ([a492965](https://github.com/cloudflare/cloudflare-typescript/commit/a4929653c8c982a5c8fe81d21f315ea4c4d11086))
* **ci:** enable for pull requests ([6898174](https://github.com/cloudflare/cloudflare-typescript/commit/6898174da5c2bf8e78b503dffeacba7c0bf7a539))
* **internal:** codegen related update ([6a94ed9](https://github.com/cloudflare/cloudflare-typescript/commit/6a94ed94bfe950bf8193da2762ccf26a3a93065e))

## 4.4.1 (2025-06-16)

Full Changelog: [v4.4.0...v4.4.1](https://github.com/cloudflare/cloudflare-typescript/compare/v4.4.0...v4.4.1)
Expand Down
2 changes: 1 addition & 1 deletion bin/check-release-environment
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
errors=()

if [ -z "${NPM_TOKEN}" ]; then
errors+=("The CLOUDFLARE_NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets")
errors+=("The NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets")
fi

lenErrors=${#errors[@]}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudflare",
"version": "4.4.1",
"version": "4.5.0",
"description": "The official TypeScript library for the Cloudflare API",
"author": "Cloudflare <api@cloudflare.com>",
"types": "dist/index.d.ts",
Expand Down
25 changes: 7 additions & 18 deletions src/resources/accounts/tokens/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ export class Tokens extends APIResource {
* { id: 'c8fed203ed3043cba015a93ad1616f1f' },
* { id: '82e64a83756745bbbb1c9c2701bf816b' },
* ],
* resources: {
* 'com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43':
* '*',
* 'com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4':
* '*',
* },
* resources: { foo: 'string' },
* },
* ],
* });
Expand Down Expand Up @@ -76,15 +71,9 @@ export class Tokens extends APIResource {
* { id: 'c8fed203ed3043cba015a93ad1616f1f' },
* { id: '82e64a83756745bbbb1c9c2701bf816b' },
* ],
* resources: {
* 'com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43':
* '*',
* 'com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4':
* '*',
* },
* resources: { foo: 'string' },
* },
* ],
* status: 'active',
* },
* );
* ```
Expand Down Expand Up @@ -376,11 +365,6 @@ export interface TokenUpdateParams {
*/
policies: Array<Shared.TokenPolicyParam>;

/**
* Body param: Status of the token.
*/
status: 'active' | 'disabled' | 'expired';

/**
* Body param:
*/
Expand All @@ -396,6 +380,11 @@ export interface TokenUpdateParams {
* Body param: The time before which the token MUST NOT be accepted for processing.
*/
not_before?: string;

/**
* Body param: Status of the token.
*/
status?: 'active' | 'disabled' | 'expired';
}

export namespace TokenUpdateParams {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/ai-gateway/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ export interface LogEditParams {
/**
* Body param:
*/
metadata?: Record<string, string | number | boolean> | null;
metadata?: { [key: string]: string | number | boolean } | null;

/**
* Body param:
Expand Down
4 changes: 2 additions & 2 deletions src/resources/ai/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ export declare namespace AIRunParams {
/**
* Definitions of each parameter.
*/
properties: Record<string, Parameters.Properties>;
properties: { [key: string]: Parameters.Properties };

/**
* The type of the parameters object (usually 'object').
Expand Down Expand Up @@ -728,7 +728,7 @@ export declare namespace AIRunParams {
/**
* Definitions of each parameter.
*/
properties: Record<string, Parameters.Properties>;
properties: { [key: string]: Parameters.Properties };

/**
* The type of the parameters object (usually 'object').
Expand Down
2 changes: 1 addition & 1 deletion src/resources/alerting/available-alerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class AvailableAlerts extends APIResource {
}
}

export type AvailableAlertListResponse = Record<string, Array<AvailableAlertListResponse.Item>>;
export type AvailableAlertListResponse = { [key: string]: Array<AvailableAlertListResponse.Item> };

export namespace AvailableAlertListResponse {
export interface Item {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/alerting/destinations/eligible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class Eligible extends APIResource {
}
}

export type EligibleGetResponse = Record<string, Array<EligibleGetResponse.Item>>;
export type EligibleGetResponse = { [key: string]: Array<EligibleGetResponse.Item> };

export namespace EligibleGetResponse {
export interface Item {
Expand Down
4 changes: 2 additions & 2 deletions src/resources/api-gateway/discovery/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class Operations extends APIResource {
}
}

export type OperationBulkEditResponse = Record<string, OperationBulkEditResponse.item>;
export type OperationBulkEditResponse = { [key: string]: OperationBulkEditResponse.item };

export namespace OperationBulkEditResponse {
/**
Expand Down Expand Up @@ -184,7 +184,7 @@ export interface OperationBulkEditParams {
/**
* Body param:
*/
body: Record<string, OperationBulkEditParams.Body>;
body: { [key: string]: OperationBulkEditParams.Body };
}

export namespace OperationBulkEditParams {
Expand Down
4 changes: 2 additions & 2 deletions src/resources/api-gateway/operations/schema-validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class SchemaValidation extends APIResource {
}
}

export type SettingsMultipleRequest = Record<string, SettingsMultipleRequest.item>;
export type SettingsMultipleRequest = { [key: string]: SettingsMultipleRequest.item };

export namespace SettingsMultipleRequest {
/**
Expand All @@ -102,7 +102,7 @@ export namespace SettingsMultipleRequest {
}
}

export type SettingsMultipleRequestParam = Record<string, SettingsMultipleRequestParam.item>;
export type SettingsMultipleRequestParam = { [key: string]: SettingsMultipleRequestParam.item };

export namespace SettingsMultipleRequestParam {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/resources/browser-rendering/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export interface ContentCreateParams {
/**
* Body param:
*/
setExtraHTTPHeaders?: Record<string, string>;
setExtraHTTPHeaders?: { [key: string]: string };

/**
* Body param:
Expand Down
6 changes: 3 additions & 3 deletions src/resources/browser-rendering/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class Json extends APIResource {
}
}

export type JsonCreateResponse = Record<string, unknown>;
export type JsonCreateResponse = { [key: string]: unknown };

export interface JsonCreateParams {
/**
Expand Down Expand Up @@ -158,7 +158,7 @@ export interface JsonCreateParams {
/**
* Body param:
*/
setExtraHTTPHeaders?: Record<string, string>;
setExtraHTTPHeaders?: { [key: string]: string };

/**
* Body param:
Expand Down Expand Up @@ -273,7 +273,7 @@ export namespace JsonCreateParams {
* Schema for the response format. More information here:
* https://developers.cloudflare.com/workers-ai/json-mode/
*/
schema?: Record<string, unknown>;
schema?: { [key: string]: unknown };
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/resources/browser-rendering/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export interface LinkCreateParams {
/**
* Body param:
*/
setExtraHTTPHeaders?: Record<string, string>;
setExtraHTTPHeaders?: { [key: string]: string };

/**
* Body param:
Expand Down
2 changes: 1 addition & 1 deletion src/resources/browser-rendering/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export interface MarkdownCreateParams {
/**
* Body param:
*/
setExtraHTTPHeaders?: Record<string, string>;
setExtraHTTPHeaders?: { [key: string]: string };

/**
* Body param:
Expand Down
2 changes: 1 addition & 1 deletion src/resources/browser-rendering/pdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export interface PDFCreateParams {
/**
* Body param:
*/
setExtraHTTPHeaders?: Record<string, string>;
setExtraHTTPHeaders?: { [key: string]: string };

/**
* Body param:
Expand Down
2 changes: 1 addition & 1 deletion src/resources/browser-rendering/scrape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export interface ScrapeCreateParams {
/**
* Body param:
*/
setExtraHTTPHeaders?: Record<string, string>;
setExtraHTTPHeaders?: { [key: string]: string };

/**
* Body param:
Expand Down
2 changes: 1 addition & 1 deletion src/resources/browser-rendering/screenshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export interface ScreenshotCreateParams {
/**
* Body param:
*/
setExtraHTTPHeaders?: Record<string, string>;
setExtraHTTPHeaders?: { [key: string]: string };

/**
* Body param:
Expand Down
2 changes: 1 addition & 1 deletion src/resources/browser-rendering/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export interface SnapshotCreateParams {
/**
* Body param:
*/
setExtraHTTPHeaders?: Record<string, string>;
setExtraHTTPHeaders?: { [key: string]: string };

/**
* Body param:
Expand Down
2 changes: 1 addition & 1 deletion src/resources/cache/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export declare namespace CachePurgeParams {

export namespace CachePurgeSingleFileWithURLAndHeaders {
export interface File {
headers?: Record<string, string>;
headers?: { [key: string]: string };

url?: string;
}
Expand Down
Loading
Loading