import * as S from "@distilled.cloud/core/schema"; import * as API from "@distilled.cloud/core/api"; import { type CloudflareOpError, type CloudflareOpContext } from "../protocol.ts"; import { ResultInfo } from "../pagination.ts"; export type { CloudflareOpError, CloudflareOpContext }; export type CreateRequestSansList = Array; export declare const CreateRequestSansList: S.Schema; export type CreateRequestKeyType = "rsa2048" | "p256v1"; export declare const CreateRequestKeyType: any; export interface CreateCustomCsrForAccountRequest { /** The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId: string; /** The common name (domain) for the CSR. Must be at most 64 characters. */ commonName: string; /** Two-letter ISO 3166-1 alpha-2 country code. */ country: string; /** City or locality name. */ locality: string; /** Organization name. */ organization: string; /** Subject Alternative Names for the CSR. At least one SAN is required. */ sans: CreateRequestSansList; /** State or province name. */ state: string; /** Optional description for the CSR. */ description?: string; /** Key algorithm to use for the CSR. Defaults to rsa2048 if not specified. */ keyType?: CreateRequestKeyType | (string & {}); /** Human-readable name for the CSR. */ name?: string; /** Organizational unit name. */ organizationalUnit?: string; } export declare const CreateCustomCsrForAccountRequest: S.Schema; export type CreateResponseKeyType = "rsa2048" | "p256v1"; export declare const CreateResponseKeyType: any; export type CreateResponseSansList = Array; export declare const CreateResponseSansList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateCustomCsrResponse { /** Custom CSR identifier tag. */ id: string; /** When the CSR was created. */ createdAt: string; /** The key algorithm used to generate the CSR. */ keyType: CreateResponseKeyType; /** Account identifier associated with this CSR. */ accountTag?: string | null; /** The common name (domain) for the CSR. */ commonName?: string | null; /** Two-letter ISO 3166-1 alpha-2 country code. */ country?: string | null; /** The PEM-encoded Certificate Signing Request. */ csr?: string | null; /** Optional description for the CSR. */ description?: string | null; /** City or locality name. */ locality?: string | null; /** Human-readable name for the CSR. */ name?: string | null; /** Organization name. */ organization?: string | null; /** Organizational unit name. */ organizationalUnit?: string | null; /** Subject Alternative Names included in the CSR. */ sans?: CreateResponseSansList | null; /** State or province name. */ state?: string | null; } export declare const CreateCustomCsrResponse: S.Schema; export interface CreateCustomCsrForZoneRequest { /** The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId: string; /** The common name (domain) for the CSR. Must be at most 64 characters. */ commonName: string; /** Two-letter ISO 3166-1 alpha-2 country code. */ country: string; /** City or locality name. */ locality: string; /** Organization name. */ organization: string; /** Subject Alternative Names for the CSR. At least one SAN is required. */ sans: CreateRequestSansList; /** State or province name. */ state: string; /** Optional description for the CSR. */ description?: string; /** Key algorithm to use for the CSR. Defaults to rsa2048 if not specified. */ keyType?: CreateRequestKeyType | (string & {}); /** Human-readable name for the CSR. */ name?: string; /** Organizational unit name. */ organizationalUnit?: string; } export declare const CreateCustomCsrForZoneRequest: S.Schema; export interface DeleteCustomCsrForAccountRequest { /** The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId: string; /** Custom CSR identifier tag. */ customCsrId: string; } export declare const DeleteCustomCsrForAccountRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeleteCustomCsrResponse { /** Custom CSR identifier tag. */ id?: string | null; } export declare const DeleteCustomCsrResponse: S.Schema; export interface DeleteCustomCsrForZoneRequest { /** The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId: string; /** Custom CSR identifier tag. */ customCsrId: string; } export declare const DeleteCustomCsrForZoneRequest: S.Schema; export interface GetCustomCsrForAccountRequest { /** The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId: string; /** Custom CSR identifier tag. */ customCsrId: string; } export declare const GetCustomCsrForAccountRequest: S.Schema; export type GetResponseKeyType = "rsa2048" | "p256v1"; export declare const GetResponseKeyType: any; export type GetResponseSansList = Array; export declare const GetResponseSansList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetCustomCsrResponse { /** Custom CSR identifier tag. */ id: string; /** When the CSR was created. */ createdAt: string; /** The key algorithm used to generate the CSR. */ keyType: GetResponseKeyType; /** Account identifier associated with this CSR. */ accountTag?: string | null; /** The common name (domain) for the CSR. */ commonName?: string | null; /** Two-letter ISO 3166-1 alpha-2 country code. */ country?: string | null; /** The PEM-encoded Certificate Signing Request. */ csr?: string | null; /** Optional description for the CSR. */ description?: string | null; /** City or locality name. */ locality?: string | null; /** Human-readable name for the CSR. */ name?: string | null; /** Organization name. */ organization?: string | null; /** Organizational unit name. */ organizationalUnit?: string | null; /** Subject Alternative Names included in the CSR. */ sans?: GetResponseSansList | null; /** State or province name. */ state?: string | null; } export declare const GetCustomCsrResponse: S.Schema; export interface GetCustomCsrForZoneRequest { /** The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId: string; /** Custom CSR identifier tag. */ customCsrId: string; } export declare const GetCustomCsrForZoneRequest: S.Schema; export interface ListCustomCsrsForAccountRequest { /** The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */ accountId: string; /** Page number of paginated results. */ page?: number; /** Number of custom CSRs per page. */ perPage?: number; } export declare const ListCustomCsrsForAccountRequest: S.Schema; export type ListResultItemKeyType = "rsa2048" | "p256v1"; export declare const ListResultItemKeyType: any; export type ListResultItemSansList = Array; export declare const ListResultItemSansList: S.Schema; export interface ListResultItem { /** Custom CSR identifier tag. */ id: string; /** When the CSR was created. */ createdAt: string; /** The key algorithm used to generate the CSR. */ keyType: ListResultItemKeyType; /** Account identifier associated with this CSR. */ accountTag?: string | null; /** The common name (domain) for the CSR. */ commonName?: string | null; /** Two-letter ISO 3166-1 alpha-2 country code. */ country?: string | null; /** The PEM-encoded Certificate Signing Request. */ csr?: string | null; /** Optional description for the CSR. */ description?: string | null; /** City or locality name. */ locality?: string | null; /** Human-readable name for the CSR. */ name?: string | null; /** Organization name. */ organization?: string | null; /** Organizational unit name. */ organizationalUnit?: string | null; /** Subject Alternative Names included in the CSR. */ sans?: ListResultItemSansList | null; /** State or province name. */ state?: string | null; } export declare const ListResultItem: S.Schema; export type ListResultList = Array; export declare const ListResultList: S.Schema; export interface ListCustomCsrsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: ListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListCustomCsrsResponse: S.Schema; export interface ListCustomCsrsForZoneRequest { /** The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */ zoneId: string; /** Page number of paginated results. */ page?: number; /** Number of custom CSRs per page. */ perPage?: number; } export declare const ListCustomCsrsForZoneRequest: S.Schema; export type CreateCustomCsrForAccountError = CloudflareOpError; /** Generate a new custom Certificate Signing Request (CSR) for an account or zone. Cloudflare generates and securely stores the private key associated with the CSR. */ export declare const createCustomCsrForAccount: API.OperationMethod; export type CreateCustomCsrForZoneError = CloudflareOpError; /** Generate a new custom Certificate Signing Request (CSR) for an account or zone. Cloudflare generates and securely stores the private key associated with the CSR. */ export declare const createCustomCsrForZone: API.OperationMethod; export type DeleteCustomCsrForAccountError = CloudflareOpError; /** Delete a custom Certificate Signing Request (CSR) and its associated private key. */ export declare const deleteCustomCsrForAccount: API.OperationMethod; export type DeleteCustomCsrForZoneError = CloudflareOpError; /** Delete a custom Certificate Signing Request (CSR) and its associated private key. */ export declare const deleteCustomCsrForZone: API.OperationMethod; export type GetCustomCsrForAccountError = CloudflareOpError; /** Retrieve details for a specific custom Certificate Signing Request (CSR). */ export declare const getCustomCsrForAccount: API.OperationMethod; export type GetCustomCsrForZoneError = CloudflareOpError; /** Retrieve details for a specific custom Certificate Signing Request (CSR). */ export declare const getCustomCsrForZone: API.OperationMethod; export type ListCustomCsrsForAccountError = CloudflareOpError; /** List all custom Certificate Signing Requests (CSRs) for an account or zone. */ export declare const listCustomCsrsForAccount: API.PaginatedOperationMethod; export type ListCustomCsrsForZoneError = CloudflareOpError; /** List all custom Certificate Signing Requests (CSRs) for an account or zone. */ export declare const listCustomCsrsForZone: API.PaginatedOperationMethod; //# sourceMappingURL=custom_csrs.d.ts.map