Skip to content

Commit 406c5f6

Browse files
release: 3.0.0-beta.11 (#196)
1 parent 156101d commit 406c5f6

File tree

99 files changed

+1214
-1229
lines changed

Some content is hidden

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

99 files changed

+1214
-1229
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.10"
2+
".": "3.0.0-beta.11"
33
}

CHANGELOG.md

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

3+
## 3.0.0-beta.11 (2024-03-22)
4+
5+
Full Changelog: [v3.0.0-beta.10...v3.0.0-beta.11](https://github.com/cloudflare/cloudflare-typescript/compare/v3.0.0-beta.10...v3.0.0-beta.11)
6+
7+
### Features
8+
9+
* **api:** OpenAPI spec update via Stainless API ([#197](https://github.com/cloudflare/cloudflare-typescript/issues/197)) ([bd1ae33](https://github.com/cloudflare/cloudflare-typescript/commit/bd1ae3353795fce5cfb0edbf399d75e55813bdbc))
10+
* **api:** update via SDK Studio ([#195](https://github.com/cloudflare/cloudflare-typescript/issues/195)) ([72aee46](https://github.com/cloudflare/cloudflare-typescript/commit/72aee4688d9003a4e6394565714850f242cf36c2))
11+
312
## 3.0.0-beta.10 (2024-03-22)
413

514
Full Changelog: [v3.0.0-beta.9...v3.0.0-beta.10](https://github.com/cloudflare/cloudflare-typescript/compare/v3.0.0-beta.9...v3.0.0-beta.10)

api.md

Lines changed: 166 additions & 170 deletions
Large diffs are not rendered by default.

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.10",
3+
"version": "3.0.0-beta.11",
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: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ export class Cloudflare extends Core.APIClient {
154154
subscriptions: API.Subscriptions = new API.Subscriptions(this);
155155
acm: API.ACM = new API.ACM(this);
156156
argo: API.Argo = new API.Argo(this);
157-
availablePlans: API.AvailablePlans = new API.AvailablePlans(this);
158-
availableRatePlans: API.AvailableRatePlans = new API.AvailableRatePlans(this);
157+
plans: API.Plans = new API.Plans(this);
158+
ratePlans: API.RatePlans = new API.RatePlans(this);
159159
certificateAuthorities: API.CertificateAuthorities = new API.CertificateAuthorities(this);
160160
clientCertificates: API.ClientCertificates = new API.ClientCertificates(this);
161161
customCertificates: API.CustomCertificates = new API.CustomCertificates(this);
@@ -467,13 +467,13 @@ export namespace Cloudflare {
467467

468468
export import Argo = API.Argo;
469469

470-
export import AvailablePlans = API.AvailablePlans;
470+
export import Plans = API.Plans;
471471
export import BillSubsAPIAvailableRatePlan = API.BillSubsAPIAvailableRatePlan;
472-
export import AvailablePlanListResponse = API.AvailablePlanListResponse;
472+
export import PlanListResponse = API.PlanListResponse;
473473

474-
export import AvailableRatePlans = API.AvailableRatePlans;
474+
export import RatePlans = API.RatePlans;
475475
export import BillSubsRatePlan = API.BillSubsRatePlan;
476-
export import AvailableRatePlanGetResponse = API.AvailableRatePlanGetResponse;
476+
export import RatePlanGetResponse = API.RatePlanGetResponse;
477477

478478
export import CertificateAuthorities = API.CertificateAuthorities;
479479

@@ -535,6 +535,10 @@ export namespace Cloudflare {
535535
export import DNSSECGetParams = API.DNSSECGetParams;
536536

537537
export import EmailRouting = API.EmailRouting;
538+
export import EmailSettings = API.EmailSettings;
539+
export import EmailRoutingDisableResponse = API.EmailRoutingDisableResponse;
540+
export import EmailRoutingEnableResponse = API.EmailRoutingEnableResponse;
541+
export import EmailRoutingGetResponse = API.EmailRoutingGetResponse;
538542

539543
export import Filters = API.Filters;
540544
export import LegacyJhsFilter = API.LegacyJhsFilter;

src/resources/alerting/alerting.ts

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,36 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
import { APIResource } from 'cloudflare/resource';
4-
import * as V3API from 'cloudflare/resources/alerting/v3/v3';
4+
import * as AvailableAlertsAPI from 'cloudflare/resources/alerting/available-alerts';
5+
import * as HistoryAPI from 'cloudflare/resources/alerting/history';
6+
import * as PoliciesAPI from 'cloudflare/resources/alerting/policies';
7+
import * as DestinationsAPI from 'cloudflare/resources/alerting/destinations/destinations';
58

69
export class Alerting extends APIResource {
7-
v3: V3API.V3 = new V3API.V3(this._client);
10+
availableAlerts: AvailableAlertsAPI.AvailableAlerts = new AvailableAlertsAPI.AvailableAlerts(this._client);
11+
destinations: DestinationsAPI.Destinations = new DestinationsAPI.Destinations(this._client);
12+
history: HistoryAPI.History = new HistoryAPI.History(this._client);
13+
policies: PoliciesAPI.Policies = new PoliciesAPI.Policies(this._client);
814
}
915

1016
export namespace Alerting {
11-
export import V3 = V3API.V3;
12-
export import V3ListResponse = V3API.V3ListResponse;
13-
export import V3ListParams = V3API.V3ListParams;
17+
export import AvailableAlerts = AvailableAlertsAPI.AvailableAlerts;
18+
export import AvailableAlertListResponse = AvailableAlertsAPI.AvailableAlertListResponse;
19+
export import AvailableAlertListParams = AvailableAlertsAPI.AvailableAlertListParams;
20+
export import Destinations = DestinationsAPI.Destinations;
21+
export import History = HistoryAPI.History;
22+
export import AaaHistory = HistoryAPI.AaaHistory;
23+
export import AaaHistoriesV4PagePaginationArray = HistoryAPI.AaaHistoriesV4PagePaginationArray;
24+
export import HistoryListParams = HistoryAPI.HistoryListParams;
25+
export import Policies = PoliciesAPI.Policies;
26+
export import AaaPolicies = PoliciesAPI.AaaPolicies;
27+
export import PolicyCreateResponse = PoliciesAPI.PolicyCreateResponse;
28+
export import PolicyUpdateResponse = PoliciesAPI.PolicyUpdateResponse;
29+
export import PolicyListResponse = PoliciesAPI.PolicyListResponse;
30+
export import PolicyDeleteResponse = PoliciesAPI.PolicyDeleteResponse;
31+
export import PolicyCreateParams = PoliciesAPI.PolicyCreateParams;
32+
export import PolicyUpdateParams = PoliciesAPI.PolicyUpdateParams;
33+
export import PolicyListParams = PoliciesAPI.PolicyListParams;
34+
export import PolicyDeleteParams = PoliciesAPI.PolicyDeleteParams;
35+
export import PolicyGetParams = PoliciesAPI.PolicyGetParams;
1436
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
import * as Core from 'cloudflare/core';
4+
import { APIResource } from 'cloudflare/resource';
5+
import * as AvailableAlertsAPI from 'cloudflare/resources/alerting/available-alerts';
6+
7+
export class AvailableAlerts extends APIResource {
8+
/**
9+
* Gets a list of all alert types for which an account is eligible.
10+
*/
11+
list(
12+
params: AvailableAlertListParams,
13+
options?: Core.RequestOptions,
14+
): Core.APIPromise<AvailableAlertListResponse | null> {
15+
const { account_id } = params;
16+
return (
17+
this._client.get(`/accounts/${account_id}/alerting/v3/available_alerts`, options) as Core.APIPromise<{
18+
result: AvailableAlertListResponse | null;
19+
}>
20+
)._thenUnwrap((obj) => obj.result);
21+
}
22+
}
23+
24+
export type AvailableAlertListResponse = unknown | Array<unknown> | string;
25+
26+
export interface AvailableAlertListParams {
27+
/**
28+
* The account id
29+
*/
30+
account_id: string;
31+
}
32+
33+
export namespace AvailableAlerts {
34+
export import AvailableAlertListResponse = AvailableAlertsAPI.AvailableAlertListResponse;
35+
export import AvailableAlertListParams = AvailableAlertsAPI.AvailableAlertListParams;
36+
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
import { APIResource } from 'cloudflare/resource';
4-
import * as EligibleAPI from 'cloudflare/resources/alerting/v3/destinations/eligible';
5-
import * as PagerdutyAPI from 'cloudflare/resources/alerting/v3/destinations/pagerduty';
6-
import * as WebhooksAPI from 'cloudflare/resources/alerting/v3/destinations/webhooks';
4+
import * as EligibleAPI from 'cloudflare/resources/alerting/destinations/eligible';
5+
import * as PagerdutyAPI from 'cloudflare/resources/alerting/destinations/pagerduty';
6+
import * as WebhooksAPI from 'cloudflare/resources/alerting/destinations/webhooks';
77

88
export class Destinations extends APIResource {
99
eligible: EligibleAPI.Eligible = new EligibleAPI.Eligible(this._client);

src/resources/alerting/v3/destinations/eligible.ts renamed to src/resources/alerting/destinations/eligible.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import * as Core from 'cloudflare/core';
44
import { APIResource } from 'cloudflare/resource';
5-
import * as EligibleAPI from 'cloudflare/resources/alerting/v3/destinations/eligible';
5+
import * as EligibleAPI from 'cloudflare/resources/alerting/destinations/eligible';
66

77
export class Eligible extends APIResource {
88
/**

0 commit comments

Comments
 (0)