Skip to content

Commit

Permalink
feat: OpenAPI spec update via Stainless API (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Feb 21, 2024
1 parent 4965d9d commit 6cd6458
Show file tree
Hide file tree
Showing 741 changed files with 30,919 additions and 21,429 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 1111
configured_endpoints: 1168
802 changes: 430 additions & 372 deletions api.md

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class Cloudflare extends Core.APIClient {
}
if (apiEmail === undefined) {
throw new Errors.CloudflareError(
"The CLOUDFLARE_EMAIL environment variable is missing or empty; either provide it, or instantiate the Cloudflare client with an apiEmail option, like new Cloudflare({ apiEmail: 'dev@cloudflare.com' }).",
"The CLOUDFLARE_EMAIL environment variable is missing or empty; either provide it, or instantiate the Cloudflare client with an apiEmail option, like new Cloudflare({ apiEmail: 'user@example.com' }).",
);
}
if (apiToken === undefined) {
Expand All @@ -135,7 +135,7 @@ export class Cloudflare extends Core.APIClient {
}
if (userServiceKey === undefined) {
throw new Errors.CloudflareError(
"The CLOUDFLARE_API_USER_SERVICE_KEY environment variable is missing or empty; either provide it, or instantiate the Cloudflare client with an userServiceKey option, like new Cloudflare({ userServiceKey: 'My User Service Key' }).",
"The CLOUDFLARE_API_USER_SERVICE_KEY environment variable is missing or empty; either provide it, or instantiate the Cloudflare client with an userServiceKey option, like new Cloudflare({ userServiceKey: 'v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719' }).",
);
}

Expand Down Expand Up @@ -252,7 +252,6 @@ export class Cloudflare extends Core.APIClient {
urlScanner: API.URLScanner = new API.URLScanner(this);
radar: API.Radar = new API.Radar(this);
botManagement: API.BotManagement = new API.BotManagement(this);
cacheReserve: API.CacheReserve = new API.CacheReserve(this);
originPostQuantumEncryption: API.OriginPostQuantumEncryption = new API.OriginPostQuantumEncryption(this);
firewall: API.Firewall = new API.Firewall(this);
zaraz: API.Zaraz = new API.Zaraz(this);
Expand Down Expand Up @@ -610,6 +609,9 @@ export namespace Cloudflare {
export import RulesetGetResponse = API.RulesetGetResponse;
export import RulesetCreateParams = API.RulesetCreateParams;
export import RulesetUpdateParams = API.RulesetUpdateParams;
export import RulesetListParams = API.RulesetListParams;
export import RulesetDeleteParams = API.RulesetDeleteParams;
export import RulesetGetParams = API.RulesetGetParams;

export import URLNormalizations = API.URLNormalizations;
export import URLNormalizationUpdateResponse = API.URLNormalizationUpdateResponse;
Expand Down Expand Up @@ -772,10 +774,6 @@ export namespace Cloudflare {
export import BotManagementGetResponse = API.BotManagementGetResponse;
export import BotManagementUpdateParams = API.BotManagementUpdateParams;

export import CacheReserve = API.CacheReserve;
export import CacheReserveCreateResponse = API.CacheReserveCreateResponse;
export import CacheReserveGetResponse = API.CacheReserveGetResponse;

export import OriginPostQuantumEncryption = API.OriginPostQuantumEncryption;
export import OriginPostQuantumEncryptionUpdateResponse = API.OriginPostQuantumEncryptionUpdateResponse;
export import OriginPostQuantumEncryptionGetResponse = API.OriginPostQuantumEncryptionGetResponse;
Expand Down
16 changes: 16 additions & 0 deletions src/resources/access/access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export namespace Access {
export import ApplicationRevokeTokensResponse = ApplicationsAPI.ApplicationRevokeTokensResponse;
export import ApplicationCreateParams = ApplicationsAPI.ApplicationCreateParams;
export import ApplicationUpdateParams = ApplicationsAPI.ApplicationUpdateParams;
export import ApplicationListParams = ApplicationsAPI.ApplicationListParams;
export import ApplicationDeleteParams = ApplicationsAPI.ApplicationDeleteParams;
export import ApplicationGetParams = ApplicationsAPI.ApplicationGetParams;
export import ApplicationRevokeTokensParams = ApplicationsAPI.ApplicationRevokeTokensParams;
export import Certificates = CertificatesAPI.Certificates;
export import CertificateCreateResponse = CertificatesAPI.CertificateCreateResponse;
export import CertificateUpdateResponse = CertificatesAPI.CertificateUpdateResponse;
Expand All @@ -51,6 +55,9 @@ export namespace Access {
export import CertificateGetResponse = CertificatesAPI.CertificateGetResponse;
export import CertificateCreateParams = CertificatesAPI.CertificateCreateParams;
export import CertificateUpdateParams = CertificatesAPI.CertificateUpdateParams;
export import CertificateListParams = CertificatesAPI.CertificateListParams;
export import CertificateDeleteParams = CertificatesAPI.CertificateDeleteParams;
export import CertificateGetParams = CertificatesAPI.CertificateGetParams;
export import Groups = GroupsAPI.Groups;
export import GroupCreateResponse = GroupsAPI.GroupCreateResponse;
export import GroupUpdateResponse = GroupsAPI.GroupUpdateResponse;
Expand All @@ -59,6 +66,9 @@ export namespace Access {
export import GroupGetResponse = GroupsAPI.GroupGetResponse;
export import GroupCreateParams = GroupsAPI.GroupCreateParams;
export import GroupUpdateParams = GroupsAPI.GroupUpdateParams;
export import GroupListParams = GroupsAPI.GroupListParams;
export import GroupDeleteParams = GroupsAPI.GroupDeleteParams;
export import GroupGetParams = GroupsAPI.GroupGetParams;
export import IdentityProviders = IdentityProvidersAPI.IdentityProviders;
export import IdentityProviderCreateResponse = IdentityProvidersAPI.IdentityProviderCreateResponse;
export import IdentityProviderUpdateResponse = IdentityProvidersAPI.IdentityProviderUpdateResponse;
Expand All @@ -67,13 +77,17 @@ export namespace Access {
export import IdentityProviderGetResponse = IdentityProvidersAPI.IdentityProviderGetResponse;
export import IdentityProviderCreateParams = IdentityProvidersAPI.IdentityProviderCreateParams;
export import IdentityProviderUpdateParams = IdentityProvidersAPI.IdentityProviderUpdateParams;
export import IdentityProviderListParams = IdentityProvidersAPI.IdentityProviderListParams;
export import IdentityProviderDeleteParams = IdentityProvidersAPI.IdentityProviderDeleteParams;
export import IdentityProviderGetParams = IdentityProvidersAPI.IdentityProviderGetParams;
export import Organizations = OrganizationsAPI.Organizations;
export import OrganizationCreateResponse = OrganizationsAPI.OrganizationCreateResponse;
export import OrganizationUpdateResponse = OrganizationsAPI.OrganizationUpdateResponse;
export import OrganizationListResponse = OrganizationsAPI.OrganizationListResponse;
export import OrganizationRevokeUsersResponse = OrganizationsAPI.OrganizationRevokeUsersResponse;
export import OrganizationCreateParams = OrganizationsAPI.OrganizationCreateParams;
export import OrganizationUpdateParams = OrganizationsAPI.OrganizationUpdateParams;
export import OrganizationListParams = OrganizationsAPI.OrganizationListParams;
export import OrganizationRevokeUsersParams = OrganizationsAPI.OrganizationRevokeUsersParams;
export import ServiceTokens = ServiceTokensAPI.ServiceTokens;
export import ServiceTokenCreateResponse = ServiceTokensAPI.ServiceTokenCreateResponse;
Expand All @@ -84,6 +98,8 @@ export namespace Access {
export import ServiceTokenRotateResponse = ServiceTokensAPI.ServiceTokenRotateResponse;
export import ServiceTokenCreateParams = ServiceTokensAPI.ServiceTokenCreateParams;
export import ServiceTokenUpdateParams = ServiceTokensAPI.ServiceTokenUpdateParams;
export import ServiceTokenListParams = ServiceTokensAPI.ServiceTokenListParams;
export import ServiceTokenDeleteParams = ServiceTokensAPI.ServiceTokenDeleteParams;
export import Bookmarks = BookmarksAPI.Bookmarks;
export import BookmarkUpdateResponse = BookmarksAPI.BookmarkUpdateResponse;
export import BookmarkListResponse = BookmarksAPI.BookmarkListResponse;
Expand Down
Loading

0 comments on commit 6cd6458

Please sign in to comment.