Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): update via SDK Studio #482

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Methods:

Types:

- <code><a href="./src/resources/accounts/members.ts">MemberStatus</a></code>
- <code><a href="./src/resources/accounts/members.ts">Status</a></code>
- <code><a href="./src/resources/accounts/members.ts">UserWithInviteCode</a></code>
- <code><a href="./src/resources/accounts/members.ts">MemberListResponse</a></code>
- <code><a href="./src/resources/accounts/members.ts">MemberDeleteResponse</a></code>
Expand Down Expand Up @@ -1094,12 +1094,12 @@ Methods:

Types:

- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackCA</a></code>
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackRequestType</a></code>
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackRequestValidity</a></code>
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackStatus</a></code>
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackValidationMethod</a></code>
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificateAuthority</a></code>
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">Host</a></code>
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">RequestType</a></code>
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">RequestValidity</a></code>
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">Status</a></code>
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">ValidationMethod</a></code>
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackListResponse</a></code>
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackDeleteResponse</a></code>
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackEditResponse</a></code>
Expand Down Expand Up @@ -1191,7 +1191,7 @@ Methods:

Types:

- <code><a href="./src/resources/acm/total-tls.ts">TotalTLSCertificateAuthority</a></code>
- <code><a href="./src/resources/acm/total-tls.ts">CertificateAuthority</a></code>
- <code><a href="./src/resources/acm/total-tls.ts">TotalTLSCreateResponse</a></code>
- <code><a href="./src/resources/acm/total-tls.ts">TotalTLSGetResponse</a></code>

Expand Down Expand Up @@ -1284,6 +1284,7 @@ Types:

- <code><a href="./src/resources/custom-certificates/custom-certificates.ts">CustomCertificate</a></code>
- <code><a href="./src/resources/custom-certificates/custom-certificates.ts">GeoRestrictions</a></code>
- <code><a href="./src/resources/custom-certificates/custom-certificates.ts">Status</a></code>
- <code><a href="./src/resources/custom-certificates/custom-certificates.ts">CustomCertificateCreateResponse</a></code>
- <code><a href="./src/resources/custom-certificates/custom-certificates.ts">CustomCertificateDeleteResponse</a></code>
- <code><a href="./src/resources/custom-certificates/custom-certificates.ts">CustomCertificateEditResponse</a></code>
Expand Down Expand Up @@ -2782,7 +2783,7 @@ Methods:
Types:

- <code><a href="./src/resources/addressing/address-maps/address-maps.ts">AddressMap</a></code>
- <code><a href="./src/resources/addressing/address-maps/address-maps.ts">AddressMapKind</a></code>
- <code><a href="./src/resources/addressing/address-maps/address-maps.ts">Kind</a></code>
- <code><a href="./src/resources/addressing/address-maps/address-maps.ts">AddressMapCreateResponse</a></code>
- <code><a href="./src/resources/addressing/address-maps/address-maps.ts">AddressMapDeleteResponse</a></code>
- <code><a href="./src/resources/addressing/address-maps/address-maps.ts">AddressMapGetResponse</a></code>
Expand Down
2 changes: 1 addition & 1 deletion src/resources/accounts/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export interface AccountGetParams {

export namespace Accounts {
export import Members = MembersAPI.Members;
export import MemberStatus = MembersAPI.MemberStatus;
export import Status = MembersAPI.Status;
export import UserWithInviteCode = MembersAPI.UserWithInviteCode;
export import MemberListResponse = MembersAPI.MemberListResponse;
export import MemberDeleteResponse = MembersAPI.MemberDeleteResponse;
Expand Down
4 changes: 2 additions & 2 deletions src/resources/accounts/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

export { Accounts } from './accounts';
export { RoleGetResponse, RoleListParams, RoleGetParams, Roles } from './roles';
export {
MemberStatus,
Status,
UserWithInviteCode,
MemberListResponse,
MemberDeleteResponse,
Expand All @@ -14,4 +15,3 @@ export {
MemberListResponsesV4PagePaginationArray,
Members,
} from './members';
export { RoleGetResponse, RoleListParams, RoleGetParams, Roles } from './roles';
4 changes: 2 additions & 2 deletions src/resources/accounts/members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class MemberListResponsesV4PagePaginationArray extends V4PagePaginationAr
/**
* Whether the user is a member of the organization or has an inivitation pending.
*/
export type MemberStatus = 'member' | 'invited';
export type Status = 'member' | 'invited';

export interface UserWithInviteCode {
/**
Expand Down Expand Up @@ -297,7 +297,7 @@ export interface MemberGetParams {
}

export namespace Members {
export import MemberStatus = MembersAPI.MemberStatus;
export import Status = MembersAPI.Status;
export import UserWithInviteCode = MembersAPI.UserWithInviteCode;
export import MemberListResponse = MembersAPI.MemberListResponse;
export import MemberDeleteResponse = MembersAPI.MemberDeleteResponse;
Expand Down
2 changes: 1 addition & 1 deletion src/resources/acm/acm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class ACM extends APIResource {

export namespace ACM {
export import TotalTLS = TotalTLSAPI.TotalTLS;
export import TotalTLSCertificateAuthority = TotalTLSAPI.TotalTLSCertificateAuthority;
export import CertificateAuthority = TotalTLSAPI.CertificateAuthority;
export import TotalTLSCreateResponse = TotalTLSAPI.TotalTLSCreateResponse;
export import TotalTLSGetResponse = TotalTLSAPI.TotalTLSGetResponse;
export import TotalTLSCreateParams = TotalTLSAPI.TotalTLSCreateParams;
Expand Down
2 changes: 1 addition & 1 deletion src/resources/acm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

export { ACM } from './acm';
export {
TotalTLSCertificateAuthority,
CertificateAuthority,
TotalTLSCreateResponse,
TotalTLSGetResponse,
TotalTLSCreateParams,
Expand Down
12 changes: 6 additions & 6 deletions src/resources/acm/total-tls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ export class TotalTLS extends APIResource {
/**
* The Certificate Authority that Total TLS certificates will be issued through.
*/
export type TotalTLSCertificateAuthority = 'google' | 'lets_encrypt';
export type CertificateAuthority = 'google' | 'lets_encrypt';

/**
* The Certificate Authority that Total TLS certificates will be issued through.
*/
export type TotalTLSCertificateAuthorityParam = 'google' | 'lets_encrypt';
export type CertificateAuthorityParam = 'google' | 'lets_encrypt';

export interface TotalTLSCreateResponse {
/**
* The Certificate Authority that Total TLS certificates will be issued through.
*/
certificate_authority?: TotalTLSCertificateAuthority;
certificate_authority?: CertificateAuthority;

/**
* If enabled, Total TLS will order a hostname specific TLS certificate for any
Expand All @@ -65,7 +65,7 @@ export interface TotalTLSGetResponse {
/**
* The Certificate Authority that Total TLS certificates will be issued through.
*/
certificate_authority?: TotalTLSCertificateAuthority;
certificate_authority?: CertificateAuthority;

/**
* If enabled, Total TLS will order a hostname specific TLS certificate for any
Expand Down Expand Up @@ -95,7 +95,7 @@ export interface TotalTLSCreateParams {
* Body param: The Certificate Authority that Total TLS certificates will be issued
* through.
*/
certificate_authority?: TotalTLSCertificateAuthorityParam;
certificate_authority?: CertificateAuthorityParam;
}

export interface TotalTLSGetParams {
Expand All @@ -106,7 +106,7 @@ export interface TotalTLSGetParams {
}

export namespace TotalTLS {
export import TotalTLSCertificateAuthority = TotalTLSAPI.TotalTLSCertificateAuthority;
export import CertificateAuthority = TotalTLSAPI.CertificateAuthority;
export import TotalTLSCreateResponse = TotalTLSAPI.TotalTLSCreateResponse;
export import TotalTLSGetResponse = TotalTLSAPI.TotalTLSGetResponse;
export import TotalTLSCreateParams = TotalTLSAPI.TotalTLSCreateParams;
Expand Down
8 changes: 4 additions & 4 deletions src/resources/addressing/address-maps/address-maps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export interface AddressMap {
/**
* The type of the membership.
*/
export type AddressMapKind = 'zone' | 'account';
export type Kind = 'zone' | 'account';

export interface AddressMapCreateResponse {
/**
Expand Down Expand Up @@ -229,7 +229,7 @@ export namespace AddressMapCreateResponse {
/**
* The type of the membership.
*/
kind?: AddressMapsAPI.AddressMapKind;
kind?: AddressMapsAPI.Kind;
}
}

Expand Down Expand Up @@ -316,7 +316,7 @@ export namespace AddressMapGetResponse {
/**
* The type of the membership.
*/
kind?: AddressMapsAPI.AddressMapKind;
kind?: AddressMapsAPI.Kind;
}
}

Expand Down Expand Up @@ -390,7 +390,7 @@ export interface AddressMapGetParams {

export namespace AddressMaps {
export import AddressMap = AddressMapsAPI.AddressMap;
export import AddressMapKind = AddressMapsAPI.AddressMapKind;
export import Kind = AddressMapsAPI.Kind;
export import AddressMapCreateResponse = AddressMapsAPI.AddressMapCreateResponse;
export import AddressMapDeleteResponse = AddressMapsAPI.AddressMapDeleteResponse;
export import AddressMapGetResponse = AddressMapsAPI.AddressMapGetResponse;
Expand Down
2 changes: 1 addition & 1 deletion src/resources/addressing/address-maps/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export {
} from './accounts';
export {
AddressMap,
AddressMapKind,
Kind,
AddressMapCreateResponse,
AddressMapDeleteResponse,
AddressMapGetResponse,
Expand Down
2 changes: 1 addition & 1 deletion src/resources/addressing/addressing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export namespace Addressing {
export import ServiceListParams = ServicesAPI.ServiceListParams;
export import AddressMaps = AddressMapsAPI.AddressMaps;
export import AddressMap = AddressMapsAPI.AddressMap;
export import AddressMapKind = AddressMapsAPI.AddressMapKind;
export import Kind = AddressMapsAPI.Kind;
export import AddressMapCreateResponse = AddressMapsAPI.AddressMapCreateResponse;
export import AddressMapDeleteResponse = AddressMapsAPI.AddressMapDeleteResponse;
export import AddressMapGetResponse = AddressMapsAPI.AddressMapGetResponse;
Expand Down
2 changes: 1 addition & 1 deletion src/resources/addressing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

export {
AddressMap,
AddressMapKind,
Kind,
AddressMapCreateResponse,
AddressMapDeleteResponse,
AddressMapGetResponse,
Expand Down
3 changes: 2 additions & 1 deletion src/resources/client-certificates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as CustomCertificatesAPI from 'cloudflare/resources/custom-certificates/custom-certificates';
import { V4PagePaginationArray, type V4PagePaginationArrayParams } from 'cloudflare/pagination';

export class ClientCertificates extends APIResource {
Expand Down Expand Up @@ -177,7 +178,7 @@ export interface ClientCertificate {
* Client Certificates may be active or revoked, and the pending_reactivation or
* pending_revocation represent in-progress asynchronous transitions
*/
status?: 'active' | 'pending_reactivation' | 'pending_revocation' | 'revoked';
status?: CustomCertificatesAPI.Status;

/**
* The number of days the Client Certificate will be valid after the issued_on date
Expand Down
6 changes: 6 additions & 0 deletions src/resources/custom-certificates/custom-certificates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ export interface GeoRestrictionsParam {
label?: 'us' | 'eu' | 'highest_security';
}

/**
* Client Certificates may be active or revoked, and the pending_reactivation or
* pending_revocation represent in-progress asynchronous transitions
*/
export type Status = 'active' | 'pending_reactivation' | 'pending_revocation' | 'revoked';

export type CustomCertificateCreateResponse = unknown | string | null;

export interface CustomCertificateDeleteResponse {
Expand Down
14 changes: 7 additions & 7 deletions src/resources/custom-hostnames/custom-hostnames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export namespace CustomHostname {
/**
* The Certificate Authority that will issue the certificate
*/
certificate_authority?: CertificatePacksAPI.CertificatePackCA;
certificate_authority?: CertificatePacksAPI.CertificateAuthority;

/**
* If a custom uploaded certificate is used.
Expand Down Expand Up @@ -560,7 +560,7 @@ export namespace CustomHostnameCreateResponse {
/**
* The Certificate Authority that will issue the certificate
*/
certificate_authority?: CertificatePacksAPI.CertificatePackCA;
certificate_authority?: CertificatePacksAPI.CertificateAuthority;

/**
* If a custom uploaded certificate is used.
Expand Down Expand Up @@ -885,7 +885,7 @@ export namespace CustomHostnameListResponse {
/**
* The Certificate Authority that will issue the certificate
*/
certificate_authority?: CertificatePacksAPI.CertificatePackCA;
certificate_authority?: CertificatePacksAPI.CertificateAuthority;

/**
* If a custom uploaded certificate is used.
Expand Down Expand Up @@ -1217,7 +1217,7 @@ export namespace CustomHostnameEditResponse {
/**
* The Certificate Authority that will issue the certificate
*/
certificate_authority?: CertificatePacksAPI.CertificatePackCA;
certificate_authority?: CertificatePacksAPI.CertificateAuthority;

/**
* If a custom uploaded certificate is used.
Expand Down Expand Up @@ -1542,7 +1542,7 @@ export namespace CustomHostnameGetResponse {
/**
* The Certificate Authority that will issue the certificate
*/
certificate_authority?: CertificatePacksAPI.CertificatePackCA;
certificate_authority?: CertificatePacksAPI.CertificateAuthority;

/**
* If a custom uploaded certificate is used.
Expand Down Expand Up @@ -1805,7 +1805,7 @@ export namespace CustomHostnameCreateParams {
/**
* The Certificate Authority that will issue the certificate
*/
certificate_authority?: CertificatePacksAPI.CertificatePackCAParam;
certificate_authority?: CertificatePacksAPI.CertificateAuthorityParam;

/**
* If a custom uploaded certificate is used.
Expand Down Expand Up @@ -1983,7 +1983,7 @@ export namespace CustomHostnameEditParams {
/**
* The Certificate Authority that will issue the certificate
*/
certificate_authority?: CertificatePacksAPI.CertificatePackCAParam;
certificate_authority?: CertificatePacksAPI.CertificateAuthorityParam;

/**
* If a custom uploaded certificate is used.
Expand Down
8 changes: 4 additions & 4 deletions src/resources/origin-ca-certificates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ export interface OriginCACertificate {
* Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa),
* or "keyless-certificate" (for Keyless SSL servers).
*/
request_type: CertificatePacksAPI.CertificatePackRequestType;
request_type: CertificatePacksAPI.RequestType;

/**
* The number of days for which the certificate should be valid.
*/
requested_validity: CertificatePacksAPI.CertificatePackRequestValidity;
requested_validity: CertificatePacksAPI.RequestValidity;

/**
* Identifier
Expand Down Expand Up @@ -140,12 +140,12 @@ export interface OriginCACertificateCreateParams {
* Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa),
* or "keyless-certificate" (for Keyless SSL servers).
*/
request_type?: CertificatePacksAPI.CertificatePackRequestTypeParam;
request_type?: CertificatePacksAPI.RequestTypeParam;

/**
* The number of days for which the certificate should be valid.
*/
requested_validity?: CertificatePacksAPI.CertificatePackRequestValidityParam;
requested_validity?: CertificatePacksAPI.RequestValidityParam;
}

export interface OriginCACertificateListParams {
Expand Down
Loading