diff --git a/api.md b/api.md index 6ebe94b32c3..7d04d5b1130 100644 --- a/api.md +++ b/api.md @@ -35,6 +35,7 @@ Methods: Types: +- MemberStatus - UserWithInviteCode - MemberListResponse - MemberDeleteResponse @@ -1190,6 +1191,7 @@ Methods: Types: +- TotalTLSCertificateAuthority - TotalTLSCreateResponse - TotalTLSGetResponse @@ -2780,6 +2782,7 @@ Methods: Types: - AddressMap +- AddressMapKind - AddressMapCreateResponse - AddressMapDeleteResponse - AddressMapGetResponse diff --git a/src/resources/accounts/accounts.ts b/src/resources/accounts/accounts.ts index be8c86be2ec..44c90c29ff9 100644 --- a/src/resources/accounts/accounts.ts +++ b/src/resources/accounts/accounts.ts @@ -192,6 +192,7 @@ export interface AccountGetParams { export namespace Accounts { export import Members = MembersAPI.Members; + export import MemberStatus = MembersAPI.MemberStatus; export import UserWithInviteCode = MembersAPI.UserWithInviteCode; export import MemberListResponse = MembersAPI.MemberListResponse; export import MemberDeleteResponse = MembersAPI.MemberDeleteResponse; diff --git a/src/resources/accounts/index.ts b/src/resources/accounts/index.ts index 0819851b478..6d7b1ace359 100644 --- a/src/resources/accounts/index.ts +++ b/src/resources/accounts/index.ts @@ -1,8 +1,8 @@ // 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, UserWithInviteCode, MemberListResponse, MemberDeleteResponse, @@ -14,3 +14,4 @@ export { MemberListResponsesV4PagePaginationArray, Members, } from './members'; +export { RoleGetResponse, RoleListParams, RoleGetParams, Roles } from './roles'; diff --git a/src/resources/accounts/members.ts b/src/resources/accounts/members.ts index 9cc2ba3c623..d6c0f551421 100644 --- a/src/resources/accounts/members.ts +++ b/src/resources/accounts/members.ts @@ -86,6 +86,11 @@ export class Members extends APIResource { export class MemberListResponsesV4PagePaginationArray extends V4PagePaginationArray {} +/** + * Whether the user is a member of the organization or has an inivitation pending. + */ +export type MemberStatus = 'member' | 'invited'; + export interface UserWithInviteCode { /** * Membership identifier tag. @@ -292,6 +297,7 @@ export interface MemberGetParams { } export namespace Members { + export import MemberStatus = MembersAPI.MemberStatus; export import UserWithInviteCode = MembersAPI.UserWithInviteCode; export import MemberListResponse = MembersAPI.MemberListResponse; export import MemberDeleteResponse = MembersAPI.MemberDeleteResponse; diff --git a/src/resources/acm/acm.ts b/src/resources/acm/acm.ts index 8ef407c489a..646ecf0050c 100644 --- a/src/resources/acm/acm.ts +++ b/src/resources/acm/acm.ts @@ -9,6 +9,7 @@ export class ACM extends APIResource { export namespace ACM { export import TotalTLS = TotalTLSAPI.TotalTLS; + export import TotalTLSCertificateAuthority = TotalTLSAPI.TotalTLSCertificateAuthority; export import TotalTLSCreateResponse = TotalTLSAPI.TotalTLSCreateResponse; export import TotalTLSGetResponse = TotalTLSAPI.TotalTLSGetResponse; export import TotalTLSCreateParams = TotalTLSAPI.TotalTLSCreateParams; diff --git a/src/resources/acm/index.ts b/src/resources/acm/index.ts index 152f718a3cb..d83fd3f72ae 100644 --- a/src/resources/acm/index.ts +++ b/src/resources/acm/index.ts @@ -2,6 +2,7 @@ export { ACM } from './acm'; export { + TotalTLSCertificateAuthority, TotalTLSCreateResponse, TotalTLSGetResponse, TotalTLSCreateParams, diff --git a/src/resources/acm/total-tls.ts b/src/resources/acm/total-tls.ts index b6a34c5dc6d..4df88243c96 100644 --- a/src/resources/acm/total-tls.ts +++ b/src/resources/acm/total-tls.ts @@ -33,11 +33,21 @@ export class TotalTLS extends APIResource { } } +/** + * The Certificate Authority that Total TLS certificates will be issued through. + */ +export type TotalTLSCertificateAuthority = 'google' | 'lets_encrypt'; + +/** + * The Certificate Authority that Total TLS certificates will be issued through. + */ +export type TotalTLSCertificateAuthorityParam = 'google' | 'lets_encrypt'; + export interface TotalTLSCreateResponse { /** * The Certificate Authority that Total TLS certificates will be issued through. */ - certificate_authority?: 'google' | 'lets_encrypt'; + certificate_authority?: TotalTLSCertificateAuthority; /** * If enabled, Total TLS will order a hostname specific TLS certificate for any @@ -55,7 +65,7 @@ export interface TotalTLSGetResponse { /** * The Certificate Authority that Total TLS certificates will be issued through. */ - certificate_authority?: 'google' | 'lets_encrypt'; + certificate_authority?: TotalTLSCertificateAuthority; /** * If enabled, Total TLS will order a hostname specific TLS certificate for any @@ -85,7 +95,7 @@ export interface TotalTLSCreateParams { * Body param: The Certificate Authority that Total TLS certificates will be issued * through. */ - certificate_authority?: 'google' | 'lets_encrypt'; + certificate_authority?: TotalTLSCertificateAuthorityParam; } export interface TotalTLSGetParams { @@ -96,6 +106,7 @@ export interface TotalTLSGetParams { } export namespace TotalTLS { + export import TotalTLSCertificateAuthority = TotalTLSAPI.TotalTLSCertificateAuthority; export import TotalTLSCreateResponse = TotalTLSAPI.TotalTLSCreateResponse; export import TotalTLSGetResponse = TotalTLSAPI.TotalTLSGetResponse; export import TotalTLSCreateParams = TotalTLSAPI.TotalTLSCreateParams; diff --git a/src/resources/addressing/address-maps/address-maps.ts b/src/resources/addressing/address-maps/address-maps.ts index be14930dc16..e4a7c6341a7 100644 --- a/src/resources/addressing/address-maps/address-maps.ts +++ b/src/resources/addressing/address-maps/address-maps.ts @@ -143,6 +143,11 @@ export interface AddressMap { modified_at?: string; } +/** + * The type of the membership. + */ +export type AddressMapKind = 'zone' | 'account'; + export interface AddressMapCreateResponse { /** * Identifier @@ -224,7 +229,7 @@ export namespace AddressMapCreateResponse { /** * The type of the membership. */ - kind?: 'zone' | 'account'; + kind?: AddressMapsAPI.AddressMapKind; } } @@ -311,7 +316,7 @@ export namespace AddressMapGetResponse { /** * The type of the membership. */ - kind?: 'zone' | 'account'; + kind?: AddressMapsAPI.AddressMapKind; } } @@ -385,6 +390,7 @@ export interface AddressMapGetParams { export namespace AddressMaps { export import AddressMap = AddressMapsAPI.AddressMap; + export import AddressMapKind = AddressMapsAPI.AddressMapKind; export import AddressMapCreateResponse = AddressMapsAPI.AddressMapCreateResponse; export import AddressMapDeleteResponse = AddressMapsAPI.AddressMapDeleteResponse; export import AddressMapGetResponse = AddressMapsAPI.AddressMapGetResponse; diff --git a/src/resources/addressing/address-maps/index.ts b/src/resources/addressing/address-maps/index.ts index 5abfaf9237d..7e3e20d12d5 100644 --- a/src/resources/addressing/address-maps/index.ts +++ b/src/resources/addressing/address-maps/index.ts @@ -9,6 +9,7 @@ export { } from './accounts'; export { AddressMap, + AddressMapKind, AddressMapCreateResponse, AddressMapDeleteResponse, AddressMapGetResponse, diff --git a/src/resources/addressing/addressing.ts b/src/resources/addressing/addressing.ts index eb8618d778f..f4d5efb516d 100644 --- a/src/resources/addressing/addressing.ts +++ b/src/resources/addressing/addressing.ts @@ -20,6 +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 AddressMapCreateResponse = AddressMapsAPI.AddressMapCreateResponse; export import AddressMapDeleteResponse = AddressMapsAPI.AddressMapDeleteResponse; export import AddressMapGetResponse = AddressMapsAPI.AddressMapGetResponse; diff --git a/src/resources/addressing/index.ts b/src/resources/addressing/index.ts index 156b49e1ef0..cebe86a1613 100644 --- a/src/resources/addressing/index.ts +++ b/src/resources/addressing/index.ts @@ -2,6 +2,7 @@ export { AddressMap, + AddressMapKind, AddressMapCreateResponse, AddressMapDeleteResponse, AddressMapGetResponse, diff --git a/src/resources/rulesets/rules.ts b/src/resources/rulesets/rules.ts index c26fb21be75..b6f3bef4fe4 100644 --- a/src/resources/rulesets/rules.ts +++ b/src/resources/rulesets/rules.ts @@ -1788,7 +1788,7 @@ export namespace RouteRule { /** * Override the Server Name Indication (SNI). */ - sni?: ActionParameters.Sni; + sni?: ActionParameters.SNI; } export namespace ActionParameters { @@ -1810,7 +1810,7 @@ export namespace RouteRule { /** * Override the Server Name Indication (SNI). */ - export interface Sni { + export interface SNI { /** * The SNI override. */ @@ -1879,7 +1879,7 @@ export namespace RouteRuleParam { /** * Override the Server Name Indication (SNI). */ - sni?: ActionParameters.Sni; + sni?: ActionParameters.SNI; } export namespace ActionParameters { @@ -1901,7 +1901,7 @@ export namespace RouteRuleParam { /** * Override the Server Name Indication (SNI). */ - export interface Sni { + export interface SNI { /** * The SNI override. */ @@ -4765,7 +4765,7 @@ export namespace RuleCreateParams { /** * Override the Server Name Indication (SNI). */ - sni?: ActionParameters.Sni; + sni?: ActionParameters.SNI; } export namespace ActionParameters { @@ -4787,7 +4787,7 @@ export namespace RuleCreateParams { /** * Override the Server Name Indication (SNI). */ - export interface Sni { + export interface SNI { /** * The SNI override. */ @@ -6553,7 +6553,7 @@ export namespace RuleEditParams { /** * Override the Server Name Indication (SNI). */ - sni?: ActionParameters.Sni; + sni?: ActionParameters.SNI; } export namespace ActionParameters { @@ -6575,7 +6575,7 @@ export namespace RuleEditParams { /** * Override the Server Name Indication (SNI). */ - export interface Sni { + export interface SNI { /** * The SNI override. */ diff --git a/src/resources/user/organizations.ts b/src/resources/user/organizations.ts index f9b44c71e5b..8ecb3c20589 100644 --- a/src/resources/user/organizations.ts +++ b/src/resources/user/organizations.ts @@ -5,6 +5,7 @@ import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as OrganizationsAPI from 'cloudflare/resources/user/organizations'; import * as Shared from 'cloudflare/resources/shared'; +import * as MembersAPI from 'cloudflare/resources/accounts/members'; import { V4PagePaginationArray, type V4PagePaginationArrayParams } from 'cloudflare/pagination'; export class Organizations extends APIResource { @@ -74,7 +75,7 @@ export interface Organization { /** * Whether the user is a member of the organization or has an inivitation pending. */ - status?: 'member' | 'invited'; + status?: MembersAPI.MemberStatus; } export interface OrganizationDeleteResponse {