Skip to content

Commit 65cff83

Browse files
authored
Merge pull request #146 from cloudflare/release-please--branches--main--changes--next--components--cloudflare
release: 3.0.0-beta.2
2 parents fea0c8a + 2173ac0 commit 65cff83

File tree

22 files changed

+718
-475
lines changed

22 files changed

+718
-475
lines changed

.release-please-manifest.json

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

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
configured_endpoints: 1282
1+
configured_endpoints: 1288

CHANGELOG.md

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

3+
## 3.0.0-beta.2 (2024-03-14)
4+
5+
Full Changelog: [v3.0.0-beta.1...v3.0.0-beta.2](https://github.com/cloudflare/cloudflare-typescript/compare/v3.0.0-beta.1...v3.0.0-beta.2)
6+
7+
### Features
8+
9+
* OpenAPI spec update via Stainless API ([#147](https://github.com/cloudflare/cloudflare-typescript/issues/147)) ([453a9d4](https://github.com/cloudflare/cloudflare-typescript/commit/453a9d45f1701bdb64661002ec9c4b369be3416b))
10+
* OpenAPI spec update via Stainless API ([#148](https://github.com/cloudflare/cloudflare-typescript/issues/148)) ([cdf413d](https://github.com/cloudflare/cloudflare-typescript/commit/cdf413dd284bb8c70ae26102dfde193cb1ee6d87))
11+
* OpenAPI spec update via Stainless API ([#149](https://github.com/cloudflare/cloudflare-typescript/issues/149)) ([8cff852](https://github.com/cloudflare/cloudflare-typescript/commit/8cff85254893d914122bbbb174b2cf0dec6610a5))
12+
* update via SDK Studio ([#145](https://github.com/cloudflare/cloudflare-typescript/issues/145)) ([4219181](https://github.com/cloudflare/cloudflare-typescript/commit/421918188523f72dcaad926664e0b1a9e01a4b93))
13+
* update via SDK Studio ([#150](https://github.com/cloudflare/cloudflare-typescript/issues/150)) ([511dd5f](https://github.com/cloudflare/cloudflare-typescript/commit/511dd5f84ae05a77dba3c200c1b962686d67633a))
14+
315
## 3.0.0-beta.1 (2024-03-12)
416

517
Full Changelog: [v0.0.1...v3.0.0-beta.1](https://github.com/cloudflare/cloudflare-typescript/compare/v0.0.1...v3.0.0-beta.1)

api.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Methods:
6565
Types:
6666

6767
- <code><a href="./src/resources/ips.ts">IPs</a></code>
68-
- <code><a href="./src/resources/ips.ts">JdcloudIPs</a></code>
68+
- <code><a href="./src/resources/ips.ts">JDCloudIPs</a></code>
6969
- <code><a href="./src/resources/ips.ts">IPListResponse</a></code>
7070

7171
Methods:
@@ -3880,6 +3880,7 @@ Methods:
38803880

38813881
Types:
38823882

3883+
- <code><a href="./src/resources/alerting/v3/destinations/pagerduty.ts">AaaPagerduty</a></code>
38833884
- <code><a href="./src/resources/alerting/v3/destinations/pagerduty.ts">PagerdutyCreateResponse</a></code>
38843885
- <code><a href="./src/resources/alerting/v3/destinations/pagerduty.ts">PagerdutyDeleteResponse</a></code>
38853886
- <code><a href="./src/resources/alerting/v3/destinations/pagerduty.ts">PagerdutyGetResponse</a></code>
@@ -3896,47 +3897,47 @@ Methods:
38963897

38973898
Types:
38983899

3900+
- <code><a href="./src/resources/alerting/v3/destinations/webhooks.ts">AaaWebhooks</a></code>
38993901
- <code><a href="./src/resources/alerting/v3/destinations/webhooks.ts">WebhookCreateResponse</a></code>
39003902
- <code><a href="./src/resources/alerting/v3/destinations/webhooks.ts">WebhookUpdateResponse</a></code>
39013903
- <code><a href="./src/resources/alerting/v3/destinations/webhooks.ts">WebhookListResponse</a></code>
39023904
- <code><a href="./src/resources/alerting/v3/destinations/webhooks.ts">WebhookDeleteResponse</a></code>
3903-
- <code><a href="./src/resources/alerting/v3/destinations/webhooks.ts">WebhookGetResponse</a></code>
39043905

39053906
Methods:
39063907

39073908
- <code title="post /accounts/{account_id}/alerting/v3/destinations/webhooks">client.alerting.v3.destinations.webhooks.<a href="./src/resources/alerting/v3/destinations/webhooks.ts">create</a>({ ...params }) -> WebhookCreateResponse</code>
39083909
- <code title="put /accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}">client.alerting.v3.destinations.webhooks.<a href="./src/resources/alerting/v3/destinations/webhooks.ts">update</a>(webhookId, { ...params }) -> WebhookUpdateResponse</code>
39093910
- <code title="get /accounts/{account_id}/alerting/v3/destinations/webhooks">client.alerting.v3.destinations.webhooks.<a href="./src/resources/alerting/v3/destinations/webhooks.ts">list</a>({ ...params }) -> WebhookListResponse | null</code>
39103911
- <code title="delete /accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}">client.alerting.v3.destinations.webhooks.<a href="./src/resources/alerting/v3/destinations/webhooks.ts">delete</a>(webhookId, { ...params }) -> WebhookDeleteResponse | null</code>
3911-
- <code title="get /accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}">client.alerting.v3.destinations.webhooks.<a href="./src/resources/alerting/v3/destinations/webhooks.ts">get</a>(webhookId, { ...params }) -> WebhookGetResponse</code>
3912+
- <code title="get /accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}">client.alerting.v3.destinations.webhooks.<a href="./src/resources/alerting/v3/destinations/webhooks.ts">get</a>(webhookId, { ...params }) -> AaaWebhooks</code>
39123913

39133914
### Histories
39143915

39153916
Types:
39163917

3917-
- <code><a href="./src/resources/alerting/v3/histories.ts">HistoryListResponse</a></code>
3918+
- <code><a href="./src/resources/alerting/v3/histories.ts">AaaHistory</a></code>
39183919

39193920
Methods:
39203921

3921-
- <code title="get /accounts/{account_id}/alerting/v3/history">client.alerting.v3.histories.<a href="./src/resources/alerting/v3/histories.ts">list</a>({ ...params }) -> HistoryListResponsesV4PagePaginationArray</code>
3922+
- <code title="get /accounts/{account_id}/alerting/v3/history">client.alerting.v3.histories.<a href="./src/resources/alerting/v3/histories.ts">list</a>({ ...params }) -> AaaHistoriesV4PagePaginationArray</code>
39223923

39233924
### Policies
39243925

39253926
Types:
39263927

3928+
- <code><a href="./src/resources/alerting/v3/policies.ts">AaaPolicies</a></code>
39273929
- <code><a href="./src/resources/alerting/v3/policies.ts">PolicyCreateResponse</a></code>
39283930
- <code><a href="./src/resources/alerting/v3/policies.ts">PolicyUpdateResponse</a></code>
39293931
- <code><a href="./src/resources/alerting/v3/policies.ts">PolicyListResponse</a></code>
39303932
- <code><a href="./src/resources/alerting/v3/policies.ts">PolicyDeleteResponse</a></code>
3931-
- <code><a href="./src/resources/alerting/v3/policies.ts">PolicyGetResponse</a></code>
39323933

39333934
Methods:
39343935

39353936
- <code title="post /accounts/{account_id}/alerting/v3/policies">client.alerting.v3.policies.<a href="./src/resources/alerting/v3/policies.ts">create</a>({ ...params }) -> PolicyCreateResponse</code>
39363937
- <code title="put /accounts/{account_id}/alerting/v3/policies/{policy_id}">client.alerting.v3.policies.<a href="./src/resources/alerting/v3/policies.ts">update</a>(policyId, { ...params }) -> PolicyUpdateResponse</code>
39373938
- <code title="get /accounts/{account_id}/alerting/v3/policies">client.alerting.v3.policies.<a href="./src/resources/alerting/v3/policies.ts">list</a>({ ...params }) -> PolicyListResponse | null</code>
39383939
- <code title="delete /accounts/{account_id}/alerting/v3/policies/{policy_id}">client.alerting.v3.policies.<a href="./src/resources/alerting/v3/policies.ts">delete</a>(policyId, { ...params }) -> PolicyDeleteResponse | null</code>
3939-
- <code title="get /accounts/{account_id}/alerting/v3/policies/{policy_id}">client.alerting.v3.policies.<a href="./src/resources/alerting/v3/policies.ts">get</a>(policyId, { ...params }) -> PolicyGetResponse</code>
3940+
- <code title="get /accounts/{account_id}/alerting/v3/policies/{policy_id}">client.alerting.v3.policies.<a href="./src/resources/alerting/v3/policies.ts">get</a>(policyId, { ...params }) -> AaaPolicies</code>
39403941

39413942
# D1
39423943

@@ -5013,6 +5014,20 @@ Methods:
50135014

50145015
## Widgets
50155016

5017+
Types:
5018+
5019+
- <code><a href="./src/resources/challenges/widgets.ts">NcChallengesAdminWidgetDetail</a></code>
5020+
- <code><a href="./src/resources/challenges/widgets.ts">NcChallengesAdminWidgetList</a></code>
5021+
5022+
Methods:
5023+
5024+
- <code title="post /accounts/{account_id}/challenges/widgets">client.challenges.widgets.<a href="./src/resources/challenges/widgets.ts">create</a>({ ...params }) -> NcChallengesAdminWidgetDetail</code>
5025+
- <code title="put /accounts/{account_id}/challenges/widgets/{sitekey}">client.challenges.widgets.<a href="./src/resources/challenges/widgets.ts">update</a>(sitekey, { ...params }) -> NcChallengesAdminWidgetDetail</code>
5026+
- <code title="get /accounts/{account_id}/challenges/widgets">client.challenges.widgets.<a href="./src/resources/challenges/widgets.ts">list</a>({ ...params }) -> NcChallengesAdminWidgetListsV4PagePaginationArray</code>
5027+
- <code title="delete /accounts/{account_id}/challenges/widgets/{sitekey}">client.challenges.widgets.<a href="./src/resources/challenges/widgets.ts">delete</a>(sitekey, { ...params }) -> NcChallengesAdminWidgetDetail</code>
5028+
- <code title="get /accounts/{account_id}/challenges/widgets/{sitekey}">client.challenges.widgets.<a href="./src/resources/challenges/widgets.ts">get</a>(sitekey, { ...params }) -> NcChallengesAdminWidgetDetail</code>
5029+
- <code title="post /accounts/{account_id}/challenges/widgets/{sitekey}/rotate_secret">client.challenges.widgets.<a href="./src/resources/challenges/widgets.ts">rotateSecret</a>(sitekey, { ...params }) -> NcChallengesAdminWidgetDetail</code>
5030+
50165031
# Hyperdrive
50175032

50185033
## Configs

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": "3.0.0-beta.1",
3+
"version": "3.0.0-beta.2",
44
"description": "The official TypeScript library for the Cloudflare API",
55
"author": "Cloudflare <[email protected]>",
66
"types": "dist/index.d.ts",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ export namespace Cloudflare {
408408
export import OriginCACertificateCreateParams = API.OriginCACertificateCreateParams;
409409

410410
export import IPs = API.IPs;
411-
export import JdcloudIPs = API.JdcloudIPs;
411+
export import JDCloudIPs = API.JDCloudIPs;
412412
export import IPListResponse = API.IPListResponse;
413413
export import IPListParams = API.IPListParams;
414414

src/resources/alerting/v3/destinations/destinations.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export namespace Destinations {
1616
export import EligibleGetResponse = EligibleAPI.EligibleGetResponse;
1717
export import EligibleGetParams = EligibleAPI.EligibleGetParams;
1818
export import Pagerduty = PagerdutyAPI.Pagerduty;
19+
export import AaaPagerduty = PagerdutyAPI.AaaPagerduty;
1920
export import PagerdutyCreateResponse = PagerdutyAPI.PagerdutyCreateResponse;
2021
export import PagerdutyDeleteResponse = PagerdutyAPI.PagerdutyDeleteResponse;
2122
export import PagerdutyGetResponse = PagerdutyAPI.PagerdutyGetResponse;
@@ -25,11 +26,11 @@ export namespace Destinations {
2526
export import PagerdutyGetParams = PagerdutyAPI.PagerdutyGetParams;
2627
export import PagerdutyLinkParams = PagerdutyAPI.PagerdutyLinkParams;
2728
export import Webhooks = WebhooksAPI.Webhooks;
29+
export import AaaWebhooks = WebhooksAPI.AaaWebhooks;
2830
export import WebhookCreateResponse = WebhooksAPI.WebhookCreateResponse;
2931
export import WebhookUpdateResponse = WebhooksAPI.WebhookUpdateResponse;
3032
export import WebhookListResponse = WebhooksAPI.WebhookListResponse;
3133
export import WebhookDeleteResponse = WebhooksAPI.WebhookDeleteResponse;
32-
export import WebhookGetResponse = WebhooksAPI.WebhookGetResponse;
3334
export import WebhookCreateParams = WebhooksAPI.WebhookCreateParams;
3435
export import WebhookUpdateParams = WebhooksAPI.WebhookUpdateParams;
3536
export import WebhookListParams = WebhooksAPI.WebhookListParams;

src/resources/alerting/v3/destinations/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// File generated from our OpenAPI spec by Stainless.
22

3-
export { Destinations } from './destinations';
4-
export { EligibleGetResponse, EligibleGetParams, Eligible } from './eligible';
53
export {
4+
AaaPagerduty,
65
PagerdutyCreateResponse,
76
PagerdutyDeleteResponse,
87
PagerdutyGetResponse,
@@ -14,15 +13,17 @@ export {
1413
Pagerduty,
1514
} from './pagerduty';
1615
export {
16+
AaaWebhooks,
1717
WebhookCreateResponse,
1818
WebhookUpdateResponse,
1919
WebhookListResponse,
2020
WebhookDeleteResponse,
21-
WebhookGetResponse,
2221
WebhookCreateParams,
2322
WebhookUpdateParams,
2423
WebhookListParams,
2524
WebhookDeleteParams,
2625
WebhookGetParams,
2726
Webhooks,
2827
} from './webhooks';
28+
export { Destinations } from './destinations';
29+
export { EligibleGetResponse, EligibleGetParams, Eligible } from './eligible';

src/resources/alerting/v3/destinations/pagerduty.ts

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ export class Pagerduty extends APIResource {
7171
}
7272
}
7373

74+
export interface AaaPagerduty {
75+
/**
76+
* UUID
77+
*/
78+
id?: string;
79+
80+
/**
81+
* The name of the pagerduty service.
82+
*/
83+
name?: string;
84+
}
85+
7486
export interface PagerdutyCreateResponse {
7587
/**
7688
* token in form of UUID
@@ -80,21 +92,7 @@ export interface PagerdutyCreateResponse {
8092

8193
export type PagerdutyDeleteResponse = unknown | Array<unknown> | string;
8294

83-
export type PagerdutyGetResponse = Array<PagerdutyGetResponse.PagerdutyGetResponseItem>;
84-
85-
export namespace PagerdutyGetResponse {
86-
export interface PagerdutyGetResponseItem {
87-
/**
88-
* UUID
89-
*/
90-
id?: string;
91-
92-
/**
93-
* The name of the pagerduty service.
94-
*/
95-
name?: string;
96-
}
97-
}
95+
export type PagerdutyGetResponse = Array<AaaPagerduty>;
9896

9997
export interface PagerdutyLinkResponse {
10098
/**
@@ -132,6 +130,7 @@ export interface PagerdutyLinkParams {
132130
}
133131

134132
export namespace Pagerduty {
133+
export import AaaPagerduty = PagerdutyAPI.AaaPagerduty;
135134
export import PagerdutyCreateResponse = PagerdutyAPI.PagerdutyCreateResponse;
136135
export import PagerdutyDeleteResponse = PagerdutyAPI.PagerdutyDeleteResponse;
137136
export import PagerdutyGetResponse = PagerdutyAPI.PagerdutyGetResponse;

src/resources/alerting/v3/destinations/webhooks.ts

Lines changed: 22 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -75,85 +75,18 @@ export class Webhooks extends APIResource {
7575
webhookId: string,
7676
params: WebhookGetParams,
7777
options?: Core.RequestOptions,
78-
): Core.APIPromise<WebhookGetResponse> {
78+
): Core.APIPromise<AaaWebhooks> {
7979
const { account_id } = params;
8080
return (
8181
this._client.get(
8282
`/accounts/${account_id}/alerting/v3/destinations/webhooks/${webhookId}`,
8383
options,
84-
) as Core.APIPromise<{ result: WebhookGetResponse }>
84+
) as Core.APIPromise<{ result: AaaWebhooks }>
8585
)._thenUnwrap((obj) => obj.result);
8686
}
8787
}
8888

89-
export interface WebhookCreateResponse {
90-
/**
91-
* UUID
92-
*/
93-
id?: string;
94-
}
95-
96-
export interface WebhookUpdateResponse {
97-
/**
98-
* UUID
99-
*/
100-
id?: string;
101-
}
102-
103-
export type WebhookListResponse = Array<WebhookListResponse.WebhookListResponseItem>;
104-
105-
export namespace WebhookListResponse {
106-
export interface WebhookListResponseItem {
107-
/**
108-
* The unique identifier of a webhook
109-
*/
110-
id?: string;
111-
112-
/**
113-
* Timestamp of when the webhook destination was created.
114-
*/
115-
created_at?: string;
116-
117-
/**
118-
* Timestamp of the last time an attempt to dispatch a notification to this webhook
119-
* failed.
120-
*/
121-
last_failure?: string;
122-
123-
/**
124-
* Timestamp of the last time Cloudflare was able to successfully dispatch a
125-
* notification using this webhook.
126-
*/
127-
last_success?: string;
128-
129-
/**
130-
* The name of the webhook destination. This will be included in the request body
131-
* when you receive a webhook notification.
132-
*/
133-
name?: string;
134-
135-
/**
136-
* Optional secret that will be passed in the `cf-webhook-auth` header when
137-
* dispatching generic webhook notifications or formatted for supported
138-
* destinations. Secrets are not returned in any API response body.
139-
*/
140-
secret?: string;
141-
142-
/**
143-
* Type of webhook endpoint.
144-
*/
145-
type?: 'slack' | 'generic' | 'gchat';
146-
147-
/**
148-
* The POST endpoint to call when dispatching a notification.
149-
*/
150-
url?: string;
151-
}
152-
}
153-
154-
export type WebhookDeleteResponse = unknown | Array<unknown> | string;
155-
156-
export interface WebhookGetResponse {
89+
export interface AaaWebhooks {
15790
/**
15891
* The unique identifier of a webhook
15992
*/
@@ -200,6 +133,24 @@ export interface WebhookGetResponse {
200133
url?: string;
201134
}
202135

136+
export interface WebhookCreateResponse {
137+
/**
138+
* UUID
139+
*/
140+
id?: string;
141+
}
142+
143+
export interface WebhookUpdateResponse {
144+
/**
145+
* UUID
146+
*/
147+
id?: string;
148+
}
149+
150+
export type WebhookListResponse = Array<AaaWebhooks>;
151+
152+
export type WebhookDeleteResponse = unknown | Array<unknown> | string;
153+
203154
export interface WebhookCreateParams {
204155
/**
205156
* Path param: The account id
@@ -272,11 +223,11 @@ export interface WebhookGetParams {
272223
}
273224

274225
export namespace Webhooks {
226+
export import AaaWebhooks = WebhooksAPI.AaaWebhooks;
275227
export import WebhookCreateResponse = WebhooksAPI.WebhookCreateResponse;
276228
export import WebhookUpdateResponse = WebhooksAPI.WebhookUpdateResponse;
277229
export import WebhookListResponse = WebhooksAPI.WebhookListResponse;
278230
export import WebhookDeleteResponse = WebhooksAPI.WebhookDeleteResponse;
279-
export import WebhookGetResponse = WebhooksAPI.WebhookGetResponse;
280231
export import WebhookCreateParams = WebhooksAPI.WebhookCreateParams;
281232
export import WebhookUpdateParams = WebhooksAPI.WebhookUpdateParams;
282233
export import WebhookListParams = WebhooksAPI.WebhookListParams;

0 commit comments

Comments
 (0)