// AUTO-GENERATED by scripts/generate.ts from .generated-specs. Do not edit. import * as S from "@distilled.cloud/core/schema"; import * as API from "@distilled.cloud/core/api"; import * as T from "../traits.ts"; import { CloudflareProtocol, CloudflarePaginatedProtocol, type CloudflareOpError, type CloudflareOpContext, } from "../protocol.ts"; import { cloudflarePaginate, ResultInfo } from "../pagination.ts"; import { CloudflareError, CloudflareRateLimited } from "../errors.ts"; import * as Retry from "../retry.ts"; export type { CloudflareOpError, CloudflareOpContext }; /** Fallback camelCase→wire mapping for opaque content (mined from the distilled SDK). */ const KEY_DICTIONARY: Record> = { abuseContactEmail: "abuse_contact_email", accessApprovalExpiry: "access_approval_expiry", allowAddSubdomain: "allow_add_subdomain", allowAutoAcceptInvites: "allow_auto_accept_invites", apiAccessEnabled: "api_access_enabled", cnameSetupAllowed: "cname_setup_allowed", createdOn: "created_on", customEntitlements: "custom_entitlements", customerId: "customer_id", defaultNameservers: "default_nameservers", enforceTwofactor: "enforce_twofactor", mhsCertificateCount: "mhs_certificate_count", nsPool: "ns_pool", partialSetupAllowed: "partial_setup_allowed", tenantContacts: "tenant_contacts", tenantLabels: "tenant_labels", tenantMetadata: "tenant_metadata", tenantName: "tenant_name", tenantNetwork: "tenant_network", tenantStatus: "tenant_status", tenantTag: "tenant_tag", tenantType: "tenant_type", tenantUnits: "tenant_units", unitMemberships: "unit_memberships", unitMetadata: "unit_metadata", unitName: "unit_name", unitStatus: "unit_status", unitTag: "unit_tag", useAccountCustomNsByDefault: "use_account_custom_ns_by_default", userEmail: "user_email", userName: "user_name", userTag: "user_tag", }; export interface GetEntitlementRequest { tenantId: string; } export const GetEntitlementRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ tenantId: S.String.pipe(T.Label("tenant_id")), }) .pipe( T.Http({ method: "GET", uri: "/tenants/{tenant_id}/entitlements", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "GetEntitlementRequest", }) as any as S.Schema; export type EntitlementsGetResponseAllowAddSubdomainType = "bool"; export const EntitlementsGetResponseAllowAddSubdomainType = /*@__PURE__*/ S.String; export interface EntitlementsGetResponseAllowAddSubdomain { type: EntitlementsGetResponseAllowAddSubdomainType; value: boolean; } export const EntitlementsGetResponseAllowAddSubdomain = /*@__PURE__*/ S.suspend( () => S.Struct({ type: EntitlementsGetResponseAllowAddSubdomainType, value: S.Boolean, }), ).annotate({ identifier: "EntitlementsGetResponseAllowAddSubdomain", }) as any as S.Schema; export type EntitlementsGetResponseAllowAutoAcceptInvitesType = "bool"; export const EntitlementsGetResponseAllowAutoAcceptInvitesType = /*@__PURE__*/ S.String; export interface EntitlementsGetResponseAllowAutoAcceptInvites { type: EntitlementsGetResponseAllowAutoAcceptInvitesType; value: boolean; } export const EntitlementsGetResponseAllowAutoAcceptInvites = /*@__PURE__*/ S.suspend(() => S.Struct({ type: EntitlementsGetResponseAllowAutoAcceptInvitesType, value: S.Boolean, }), ).annotate({ identifier: "EntitlementsGetResponseAllowAutoAcceptInvites", }) as any as S.Schema; export type EntitlementsGetResponseCnameSetupAllowedType = "bool"; export const EntitlementsGetResponseCnameSetupAllowedType = /*@__PURE__*/ S.String; export interface EntitlementsGetResponseCnameSetupAllowed { type: EntitlementsGetResponseCnameSetupAllowedType; value: boolean; } export const EntitlementsGetResponseCnameSetupAllowed = /*@__PURE__*/ S.suspend( () => S.Struct({ type: EntitlementsGetResponseCnameSetupAllowedType, value: S.Boolean, }), ).annotate({ identifier: "EntitlementsGetResponseCnameSetupAllowed", }) as any as S.Schema; export type EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIMaxCountAllocationType = "max_count"; export const EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIMaxCountAllocationType = /*@__PURE__*/ S.String; export interface EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIMaxCountAllocation { type: EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIMaxCountAllocationType; value: number; } export const EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIMaxCountAllocation = /*@__PURE__*/ S.suspend(() => S.Struct({ type: EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIMaxCountAllocationType, value: S.Number, }), ).annotate({ identifier: "EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIMaxCountAllocation", }) as any as S.Schema; export type EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIBoolAllocationType = "bool"; export const EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIBoolAllocationType = /*@__PURE__*/ S.String; export interface EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIBoolAllocation { type: EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIBoolAllocationType; value: boolean; } export const EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIBoolAllocation = /*@__PURE__*/ S.suspend(() => S.Struct({ type: EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIBoolAllocationType, value: S.Boolean, }), ).annotate({ identifier: "EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIBoolAllocation", }) as any as S.Schema; export type EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPINullAllocationType = ""; export const EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPINullAllocationType = /*@__PURE__*/ S.String; export interface EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPINullAllocation { type: EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPINullAllocationType; value?: unknown | null; } export const EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPINullAllocation = /*@__PURE__*/ S.suspend(() => S.Struct({ type: EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPINullAllocationType, value: S.optional(S.NullOr(S.Unknown)), }), ).annotate({ identifier: "EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPINullAllocation", }) as any as S.Schema; export type EntitlementsGetResponseCustomEntitlementsItemAllocation = | EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIMaxCountAllocation | EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPIBoolAllocation | EntitlementsGetResponseCustomEntitlementsItemAllocationOrganizationsAPINullAllocation; export const EntitlementsGetResponseCustomEntitlementsItemAllocation = /*@__PURE__*/ S.Unknown.pipe( T.UnionCases([ ["type", "value"], ["type", "value"], ["type", "value"], ]), ); export interface EntitlementsGetResponseCustomEntitlementsItemFeature { key: string; } export const EntitlementsGetResponseCustomEntitlementsItemFeature = /*@__PURE__*/ S.suspend(() => S.Struct({ key: S.String, }), ).annotate({ identifier: "EntitlementsGetResponseCustomEntitlementsItemFeature", }) as any as S.Schema; export interface EntitlementsGetResponseCustomEntitlementsItem { allocation: EntitlementsGetResponseCustomEntitlementsItemAllocation; feature: EntitlementsGetResponseCustomEntitlementsItemFeature; } export const EntitlementsGetResponseCustomEntitlementsItem = /*@__PURE__*/ S.suspend(() => S.Struct({ allocation: EntitlementsGetResponseCustomEntitlementsItemAllocation, feature: EntitlementsGetResponseCustomEntitlementsItemFeature, }), ).annotate({ identifier: "EntitlementsGetResponseCustomEntitlementsItem", }) as any as S.Schema; export type EntitlementsGetResponseCustomEntitlementsList = Array; export const EntitlementsGetResponseCustomEntitlementsList = /*@__PURE__*/ S.Array( EntitlementsGetResponseCustomEntitlementsItem, ) as any as S.Schema; export type EntitlementsGetResponseMhsCertificateCountType = "max_count"; export const EntitlementsGetResponseMhsCertificateCountType = /*@__PURE__*/ S.String; export interface EntitlementsGetResponseMhsCertificateCount { type: EntitlementsGetResponseMhsCertificateCountType; value: number; } export const EntitlementsGetResponseMhsCertificateCount = /*@__PURE__*/ S.suspend(() => S.Struct({ type: EntitlementsGetResponseMhsCertificateCountType, value: S.Number, }), ).annotate({ identifier: "EntitlementsGetResponseMhsCertificateCount", }) as any as S.Schema; export type EntitlementsGetResponsePartialSetupAllowedType = "bool"; export const EntitlementsGetResponsePartialSetupAllowedType = /*@__PURE__*/ S.String; export interface EntitlementsGetResponsePartialSetupAllowed { type: EntitlementsGetResponsePartialSetupAllowedType; value: boolean; } export const EntitlementsGetResponsePartialSetupAllowed = /*@__PURE__*/ S.suspend(() => S.Struct({ type: EntitlementsGetResponsePartialSetupAllowedType, value: S.Boolean, }), ).annotate({ identifier: "EntitlementsGetResponsePartialSetupAllowed", }) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetEntitlementResponse { allowAddSubdomain: EntitlementsGetResponseAllowAddSubdomain; allowAutoAcceptInvites: EntitlementsGetResponseAllowAutoAcceptInvites; cnameSetupAllowed: EntitlementsGetResponseCnameSetupAllowed; customEntitlements: EntitlementsGetResponseCustomEntitlementsList; mhsCertificateCount: EntitlementsGetResponseMhsCertificateCount; partialSetupAllowed: EntitlementsGetResponsePartialSetupAllowed; } export const GetEntitlementResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ allowAddSubdomain: EntitlementsGetResponseAllowAddSubdomain.pipe( T.Body("allow_add_subdomain"), ), allowAutoAcceptInvites: EntitlementsGetResponseAllowAutoAcceptInvites.pipe( T.Body("allow_auto_accept_invites"), ), cnameSetupAllowed: EntitlementsGetResponseCnameSetupAllowed.pipe( T.Body("cname_setup_allowed"), ), customEntitlements: EntitlementsGetResponseCustomEntitlementsList.pipe( T.Body("custom_entitlements"), ), mhsCertificateCount: EntitlementsGetResponseMhsCertificateCount.pipe( T.Body("mhs_certificate_count"), ), partialSetupAllowed: EntitlementsGetResponsePartialSetupAllowed.pipe( T.Body("partial_setup_allowed"), ), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "GetEntitlementResponse", }) as any as S.Schema; export interface GetTenantRequest { tenantId: string; } export const GetTenantRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ tenantId: S.String.pipe(T.Label("tenant_id")), }) .pipe(T.Http({ method: "GET", uri: "/tenants/{tenant_id}", code: 200 })) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "GetTenantRequest", }) as any as S.Schema; export interface GetResponseTenantContacts { email?: string | null; website?: string | null; } export const GetResponseTenantContacts = /*@__PURE__*/ S.suspend(() => S.Struct({ email: S.optional(S.NullOr(S.String)), website: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "GetResponseTenantContacts", }) as any as S.Schema; export type GetResponseTenantLabelsList = Array; export const GetResponseTenantLabelsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface GetResponseTenantMetadataDnsNsPool { primary?: string | null; secondary?: string | null; } export const GetResponseTenantMetadataDnsNsPool = /*@__PURE__*/ S.suspend(() => S.Struct({ primary: S.optional(S.NullOr(S.String)), secondary: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "GetResponseTenantMetadataDnsNsPool", }) as any as S.Schema; export interface GetResponseTenantMetadataDns { nsPool: GetResponseTenantMetadataDnsNsPool; } export const GetResponseTenantMetadataDns = /*@__PURE__*/ S.suspend(() => S.Struct({ nsPool: GetResponseTenantMetadataDnsNsPool.pipe(T.Body("ns_pool")), }), ).annotate({ identifier: "GetResponseTenantMetadataDns", }) as any as S.Schema; export interface GetResponseTenantMetadata { dns?: GetResponseTenantMetadataDns | null; } export const GetResponseTenantMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({ dns: S.optional(S.NullOr(GetResponseTenantMetadataDns)), }), ).annotate({ identifier: "GetResponseTenantMetadata", }) as any as S.Schema; export type GetResponseTenantUnitsItemUnitMembershipsList = Array; export const GetResponseTenantUnitsItemUnitMembershipsList = /*@__PURE__*/ S.Array( S.Unknown, ) as any as S.Schema; export interface GetResponseTenantUnitsItem { unitMemberships: GetResponseTenantUnitsItemUnitMembershipsList; unitMetadata: unknown; unitName: string; unitStatus: string; unitTag: string; } export const GetResponseTenantUnitsItem = /*@__PURE__*/ S.suspend(() => S.Struct({ unitMemberships: GetResponseTenantUnitsItemUnitMembershipsList.pipe( T.Body("unit_memberships"), ), unitMetadata: S.Unknown.pipe(T.Body("unit_metadata")), unitName: S.String.pipe(T.Body("unit_name")), unitStatus: S.String.pipe(T.Body("unit_status")), unitTag: S.String.pipe(T.Body("unit_tag")), }), ).annotate({ identifier: "GetResponseTenantUnitsItem", }) as any as S.Schema; export type GetResponseTenantUnitsList = Array; export const GetResponseTenantUnitsList = /*@__PURE__*/ S.Array( GetResponseTenantUnitsItem, ) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetTenantResponse { cdate: string; edate: string; tenantContacts: GetResponseTenantContacts; tenantLabels: GetResponseTenantLabelsList; tenantMetadata: GetResponseTenantMetadata; tenantName: string; tenantNetwork: unknown; tenantStatus: string; tenantTag: string; tenantType: string; tenantUnits: GetResponseTenantUnitsList; customerId?: string | null; } export const GetTenantResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ cdate: S.String, edate: S.String, tenantContacts: GetResponseTenantContacts.pipe(T.Body("tenant_contacts")), tenantLabels: GetResponseTenantLabelsList.pipe(T.Body("tenant_labels")), tenantMetadata: GetResponseTenantMetadata.pipe(T.Body("tenant_metadata")), tenantName: S.String.pipe(T.Body("tenant_name")), tenantNetwork: S.Unknown.pipe(T.Body("tenant_network")), tenantStatus: S.String.pipe(T.Body("tenant_status")), tenantTag: S.String.pipe(T.Body("tenant_tag")), tenantType: S.String.pipe(T.Body("tenant_type")), tenantUnits: GetResponseTenantUnitsList.pipe(T.Body("tenant_units")), customerId: S.optional(S.NullOr(S.String).pipe(T.Body("customer_id"))), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "GetTenantResponse", }) as any as S.Schema; export interface ListAccountsRequest { tenantId: string; } export const ListAccountsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ tenantId: S.String.pipe(T.Label("tenant_id")), }) .pipe( T.Http({ method: "GET", uri: "/tenants/{tenant_id}/accounts", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "ListAccountsRequest", }) as any as S.Schema; export interface AccountsListResultItemSettings { abuseContactEmail: string; accessApprovalExpiry: string; apiAccessEnabled: boolean; /** Use [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-list-dns-settings) instead. Deprecated. */ defaultNameservers: string; enforceTwofactor: boolean; /** Use [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-list-dns-settings) instead. Deprecated. */ useAccountCustomNsByDefault: boolean; } export const AccountsListResultItemSettings = /*@__PURE__*/ S.suspend(() => S.Struct({ abuseContactEmail: S.String.pipe(T.Body("abuse_contact_email")), accessApprovalExpiry: S.String.pipe(T.Body("access_approval_expiry")), apiAccessEnabled: S.Boolean.pipe(T.Body("api_access_enabled")), defaultNameservers: S.String.pipe(T.Body("default_nameservers")), enforceTwofactor: S.Boolean.pipe(T.Body("enforce_twofactor")), useAccountCustomNsByDefault: S.Boolean.pipe( T.Body("use_account_custom_ns_by_default"), ), }), ).annotate({ identifier: "AccountsListResultItemSettings", }) as any as S.Schema; export type AccountsListResultItemType = "standard" | "enterprise"; export const AccountsListResultItemType = /*@__PURE__*/ S.String; export interface AccountsListResultItem { id: string; createdOn: string; name: string; settings: AccountsListResultItemSettings; type: AccountsListResultItemType; } export const AccountsListResultItem = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, createdOn: S.String.pipe(T.Body("created_on")), name: S.String, settings: AccountsListResultItemSettings, type: AccountsListResultItemType, }), ).annotate({ identifier: "AccountsListResultItem", }) as any as S.Schema; export type AccountsListResultList = Array; export const AccountsListResultList = /*@__PURE__*/ S.Array( AccountsListResultItem, ) as any as S.Schema; export interface ListAccountsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: AccountsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export const ListAccountsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ result: AccountsListResultList.pipe(T.EnvelopePayload()), resultInfo: S.optional(S.NullOr(ResultInfo).pipe(T.ResultInfo())), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "ListAccountsResponse", }) as any as S.Schema; export interface ListAccountTypesRequest { tenantId: string; } export const ListAccountTypesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ tenantId: S.String.pipe(T.Label("tenant_id")), }) .pipe( T.Http({ method: "GET", uri: "/tenants/{tenant_id}/account_types", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "ListAccountTypesRequest", }) as any as S.Schema; export type AccountTypesListResultList = Array; export const AccountTypesListResultList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface ListAccountTypesResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: AccountTypesListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export const ListAccountTypesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ result: AccountTypesListResultList.pipe(T.EnvelopePayload()), resultInfo: S.optional(S.NullOr(ResultInfo).pipe(T.ResultInfo())), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "ListAccountTypesResponse", }) as any as S.Schema; export interface ListMembershipsRequest { tenantId: string; } export const ListMembershipsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ tenantId: S.String.pipe(T.Label("tenant_id")), }) .pipe( T.Http({ method: "GET", uri: "/tenants/{tenant_id}/memberships", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "ListMembershipsRequest", }) as any as S.Schema; export interface MembershipsListResultItem { userEmail: string; userName: string; userTag: string; } export const MembershipsListResultItem = /*@__PURE__*/ S.suspend(() => S.Struct({ userEmail: S.String.pipe(T.Body("user_email")), userName: S.String.pipe(T.Body("user_name")), userTag: S.String.pipe(T.Body("user_tag")), }), ).annotate({ identifier: "MembershipsListResultItem", }) as any as S.Schema; export type MembershipsListResultList = Array; export const MembershipsListResultList = /*@__PURE__*/ S.Array( MembershipsListResultItem, ) as any as S.Schema; export interface ListMembershipsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: MembershipsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export const ListMembershipsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ result: MembershipsListResultList.pipe(T.EnvelopePayload()), resultInfo: S.optional(S.NullOr(ResultInfo).pipe(T.ResultInfo())), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "ListMembershipsResponse", }) as any as S.Schema; export type GetEntitlementError = CloudflareOpError; /** List of innate entitlements available for the Tenant. */ export const getEntitlement: API.OperationMethod< GetEntitlementRequest, GetEntitlementResponse, GetEntitlementError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: GetEntitlementRequest, output: GetEntitlementResponse, errors: [CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type GetTenantError = CloudflareOpError; /** Retrieves a Tenant by Tenant ID. */ export const getTenant: API.OperationMethod< GetTenantRequest, GetTenantResponse, GetTenantError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: GetTenantRequest, output: GetTenantResponse, errors: [CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type ListAccountsError = CloudflareOpError; /** List of accounts for the Tenant. */ export const listAccounts: API.PaginatedOperationMethod< ListAccountsRequest, ListAccountsResponse, ListAccountsError, CloudflareOpContext, AccountsListResultItem > = /*@__PURE__*/ API.makePaginated( () => ({ input: ListAccountsRequest, output: ListAccountsResponse, errors: [CloudflareRateLimited, CloudflareError], protocol: CloudflarePaginatedProtocol, retry: Retry.Retry, pagination: { mode: "single", items: "result" } as const, }), cloudflarePaginate, ) as any; export type ListAccountTypesError = CloudflareOpError; /** List of account types available for the Tenant to provision accounts. */ export const listAccountTypes: API.PaginatedOperationMethod< ListAccountTypesRequest, ListAccountTypesResponse, ListAccountTypesError, CloudflareOpContext, string > = /*@__PURE__*/ API.makePaginated( () => ({ input: ListAccountTypesRequest, output: ListAccountTypesResponse, errors: [CloudflareRateLimited, CloudflareError], protocol: CloudflarePaginatedProtocol, retry: Retry.Retry, pagination: { mode: "single", items: "result" } as const, }), cloudflarePaginate, ) as any; export type ListMembershipsError = CloudflareOpError; /** List of active members (Cloudflare users) for the Tenant. */ export const listMemberships: API.PaginatedOperationMethod< ListMembershipsRequest, ListMembershipsResponse, ListMembershipsError, CloudflareOpContext, MembershipsListResultItem > = /*@__PURE__*/ API.makePaginated( () => ({ input: ListMembershipsRequest, output: ListMembershipsResponse, errors: [CloudflareRateLimited, CloudflareError], protocol: CloudflarePaginatedProtocol, retry: Retry.Retry, pagination: { mode: "single", items: "result" } as const, }), cloudflarePaginate, ) as any;