Skip to content

Commit

Permalink
release: 3.0.0-beta.11 (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Mar 22, 2024
1 parent 156101d commit 406c5f6
Show file tree
Hide file tree
Showing 99 changed files with 1,214 additions and 1,229 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.0.0-beta.10"
".": "3.0.0-beta.11"
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 3.0.0-beta.11 (2024-03-22)

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)

### Features

* **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))
* **api:** update via SDK Studio ([#195](https://github.com/cloudflare/cloudflare-typescript/issues/195)) ([72aee46](https://github.com/cloudflare/cloudflare-typescript/commit/72aee4688d9003a4e6394565714850f242cf36c2))

## 3.0.0-beta.10 (2024-03-22)

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)
Expand Down
336 changes: 166 additions & 170 deletions api.md

Large diffs are not rendered by default.

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": "3.0.0-beta.10",
"version": "3.0.0-beta.11",
"description": "The official TypeScript library for the Cloudflare API",
"author": "Cloudflare <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
16 changes: 10 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ export class Cloudflare extends Core.APIClient {
subscriptions: API.Subscriptions = new API.Subscriptions(this);
acm: API.ACM = new API.ACM(this);
argo: API.Argo = new API.Argo(this);
availablePlans: API.AvailablePlans = new API.AvailablePlans(this);
availableRatePlans: API.AvailableRatePlans = new API.AvailableRatePlans(this);
plans: API.Plans = new API.Plans(this);
ratePlans: API.RatePlans = new API.RatePlans(this);
certificateAuthorities: API.CertificateAuthorities = new API.CertificateAuthorities(this);
clientCertificates: API.ClientCertificates = new API.ClientCertificates(this);
customCertificates: API.CustomCertificates = new API.CustomCertificates(this);
Expand Down Expand Up @@ -467,13 +467,13 @@ export namespace Cloudflare {

export import Argo = API.Argo;

export import AvailablePlans = API.AvailablePlans;
export import Plans = API.Plans;
export import BillSubsAPIAvailableRatePlan = API.BillSubsAPIAvailableRatePlan;
export import AvailablePlanListResponse = API.AvailablePlanListResponse;
export import PlanListResponse = API.PlanListResponse;

export import AvailableRatePlans = API.AvailableRatePlans;
export import RatePlans = API.RatePlans;
export import BillSubsRatePlan = API.BillSubsRatePlan;
export import AvailableRatePlanGetResponse = API.AvailableRatePlanGetResponse;
export import RatePlanGetResponse = API.RatePlanGetResponse;

export import CertificateAuthorities = API.CertificateAuthorities;

Expand Down Expand Up @@ -535,6 +535,10 @@ export namespace Cloudflare {
export import DNSSECGetParams = API.DNSSECGetParams;

export import EmailRouting = API.EmailRouting;
export import EmailSettings = API.EmailSettings;
export import EmailRoutingDisableResponse = API.EmailRoutingDisableResponse;
export import EmailRoutingEnableResponse = API.EmailRoutingEnableResponse;
export import EmailRoutingGetResponse = API.EmailRoutingGetResponse;

export import Filters = API.Filters;
export import LegacyJhsFilter = API.LegacyJhsFilter;
Expand Down
32 changes: 27 additions & 5 deletions src/resources/alerting/alerting.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from 'cloudflare/resource';
import * as V3API from 'cloudflare/resources/alerting/v3/v3';
import * as AvailableAlertsAPI from 'cloudflare/resources/alerting/available-alerts';
import * as HistoryAPI from 'cloudflare/resources/alerting/history';
import * as PoliciesAPI from 'cloudflare/resources/alerting/policies';
import * as DestinationsAPI from 'cloudflare/resources/alerting/destinations/destinations';

export class Alerting extends APIResource {
v3: V3API.V3 = new V3API.V3(this._client);
availableAlerts: AvailableAlertsAPI.AvailableAlerts = new AvailableAlertsAPI.AvailableAlerts(this._client);
destinations: DestinationsAPI.Destinations = new DestinationsAPI.Destinations(this._client);
history: HistoryAPI.History = new HistoryAPI.History(this._client);
policies: PoliciesAPI.Policies = new PoliciesAPI.Policies(this._client);
}

export namespace Alerting {
export import V3 = V3API.V3;
export import V3ListResponse = V3API.V3ListResponse;
export import V3ListParams = V3API.V3ListParams;
export import AvailableAlerts = AvailableAlertsAPI.AvailableAlerts;
export import AvailableAlertListResponse = AvailableAlertsAPI.AvailableAlertListResponse;
export import AvailableAlertListParams = AvailableAlertsAPI.AvailableAlertListParams;
export import Destinations = DestinationsAPI.Destinations;
export import History = HistoryAPI.History;
export import AaaHistory = HistoryAPI.AaaHistory;
export import AaaHistoriesV4PagePaginationArray = HistoryAPI.AaaHistoriesV4PagePaginationArray;
export import HistoryListParams = HistoryAPI.HistoryListParams;
export import Policies = PoliciesAPI.Policies;
export import AaaPolicies = PoliciesAPI.AaaPolicies;
export import PolicyCreateResponse = PoliciesAPI.PolicyCreateResponse;
export import PolicyUpdateResponse = PoliciesAPI.PolicyUpdateResponse;
export import PolicyListResponse = PoliciesAPI.PolicyListResponse;
export import PolicyDeleteResponse = PoliciesAPI.PolicyDeleteResponse;
export import PolicyCreateParams = PoliciesAPI.PolicyCreateParams;
export import PolicyUpdateParams = PoliciesAPI.PolicyUpdateParams;
export import PolicyListParams = PoliciesAPI.PolicyListParams;
export import PolicyDeleteParams = PoliciesAPI.PolicyDeleteParams;
export import PolicyGetParams = PoliciesAPI.PolicyGetParams;
}
36 changes: 36 additions & 0 deletions src/resources/alerting/available-alerts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as AvailableAlertsAPI from 'cloudflare/resources/alerting/available-alerts';

export class AvailableAlerts extends APIResource {
/**
* Gets a list of all alert types for which an account is eligible.
*/
list(
params: AvailableAlertListParams,
options?: Core.RequestOptions,
): Core.APIPromise<AvailableAlertListResponse | null> {
const { account_id } = params;
return (
this._client.get(`/accounts/${account_id}/alerting/v3/available_alerts`, options) as Core.APIPromise<{
result: AvailableAlertListResponse | null;
}>
)._thenUnwrap((obj) => obj.result);
}
}

export type AvailableAlertListResponse = unknown | Array<unknown> | string;

export interface AvailableAlertListParams {
/**
* The account id
*/
account_id: string;
}

export namespace AvailableAlerts {
export import AvailableAlertListResponse = AvailableAlertsAPI.AvailableAlertListResponse;
export import AvailableAlertListParams = AvailableAlertsAPI.AvailableAlertListParams;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from 'cloudflare/resource';
import * as EligibleAPI from 'cloudflare/resources/alerting/v3/destinations/eligible';
import * as PagerdutyAPI from 'cloudflare/resources/alerting/v3/destinations/pagerduty';
import * as WebhooksAPI from 'cloudflare/resources/alerting/v3/destinations/webhooks';
import * as EligibleAPI from 'cloudflare/resources/alerting/destinations/eligible';
import * as PagerdutyAPI from 'cloudflare/resources/alerting/destinations/pagerduty';
import * as WebhooksAPI from 'cloudflare/resources/alerting/destinations/webhooks';

export class Destinations extends APIResource {
eligible: EligibleAPI.Eligible = new EligibleAPI.Eligible(this._client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as EligibleAPI from 'cloudflare/resources/alerting/v3/destinations/eligible';
import * as EligibleAPI from 'cloudflare/resources/alerting/destinations/eligible';

export class Eligible extends APIResource {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as PagerdutyAPI from 'cloudflare/resources/alerting/v3/destinations/pagerduty';
import * as PagerdutyAPI from 'cloudflare/resources/alerting/destinations/pagerduty';

export class Pagerduty extends APIResource {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as WebhooksAPI from 'cloudflare/resources/alerting/v3/destinations/webhooks';
import * as WebhooksAPI from 'cloudflare/resources/alerting/destinations/webhooks';

export class Webhooks extends APIResource {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as HistoriesAPI from 'cloudflare/resources/alerting/v3/histories';
import * as HistoryAPI from 'cloudflare/resources/alerting/history';
import { V4PagePaginationArray, type V4PagePaginationArrayParams } from 'cloudflare/pagination';

export class Histories extends APIResource {
export class History extends APIResource {
/**
* Gets a list of history records for notifications sent to an account. The records
* are displayed for last `x` number of days based on the zone plan (free = 30, pro
Expand Down Expand Up @@ -93,8 +93,8 @@ export interface HistoryListParams extends V4PagePaginationArrayParams {
since?: string;
}

export namespace Histories {
export import AaaHistory = HistoriesAPI.AaaHistory;
export import AaaHistoriesV4PagePaginationArray = HistoriesAPI.AaaHistoriesV4PagePaginationArray;
export import HistoryListParams = HistoriesAPI.HistoryListParams;
export namespace History {
export import AaaHistory = HistoryAPI.AaaHistory;
export import AaaHistoriesV4PagePaginationArray = HistoryAPI.AaaHistoriesV4PagePaginationArray;
export import HistoryListParams = HistoryAPI.HistoryListParams;
}
17 changes: 16 additions & 1 deletion src/resources/alerting/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

export { AaaHistory, HistoryListParams, AaaHistoriesV4PagePaginationArray, History } from './history';
export {
AaaPolicies,
PolicyCreateResponse,
PolicyUpdateResponse,
PolicyListResponse,
PolicyDeleteResponse,
PolicyCreateParams,
PolicyUpdateParams,
PolicyListParams,
PolicyDeleteParams,
PolicyGetParams,
Policies,
} from './policies';
export { Alerting } from './alerting';
export { V3ListResponse, V3ListParams, V3 } from './v3/index';
export { AvailableAlertListResponse, AvailableAlertListParams, AvailableAlerts } from './available-alerts';
export { Destinations } from './destinations/index';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as PoliciesAPI from 'cloudflare/resources/alerting/v3/policies';
import * as PoliciesAPI from 'cloudflare/resources/alerting/policies';

export class Policies extends APIResource {
/**
Expand Down
18 changes: 0 additions & 18 deletions src/resources/alerting/v3/index.ts

This file was deleted.

56 changes: 0 additions & 56 deletions src/resources/alerting/v3/v3.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as AddressesAPI from 'cloudflare/resources/email-routing/routing/addresses';
import * as AddressesAPI from 'cloudflare/resources/email-routing/addresses';
import { V4PagePaginationArray, type V4PagePaginationArrayParams } from 'cloudflare/pagination';

export class Addresses extends APIResource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as DNSAPI from 'cloudflare/resources/email-routing/routing/dns';
import * as DNSAPI from 'cloudflare/resources/email-routing/dns';

export class DNS extends APIResource {
/**
Expand Down
Loading

0 comments on commit 406c5f6

Please sign in to comment.