-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
156101d
commit 406c5f6
Showing
99 changed files
with
1,214 additions
and
1,229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
".": "3.0.0-beta.10" | ||
".": "3.0.0-beta.11" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
6 changes: 3 additions & 3 deletions
6
.../alerting/v3/destinations/destinations.ts → ...ces/alerting/destinations/destinations.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.