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 }; declare const CertificateAlreadyRevoked_base: S.Class, import("effect/Cause").YieldableError>; export declare class CertificateAlreadyRevoked extends /*@__PURE__*/ CertificateAlreadyRevoked_base { } declare const CertificateNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class CertificateNotFound extends /*@__PURE__*/ CertificateNotFound_base { } declare const CertificateRevocationFailed_base: S.Class, import("effect/Cause").YieldableError>; export declare class CertificateRevocationFailed extends /*@__PURE__*/ CertificateRevocationFailed_base { } declare const Forbidden_base: S.Class, import("effect/Cause").YieldableError>; export declare class Forbidden extends /*@__PURE__*/ Forbidden_base { } declare const HostnameNotAuthorized_base: S.Class, import("effect/Cause").YieldableError>; export declare class HostnameNotAuthorized extends /*@__PURE__*/ HostnameNotAuthorized_base { } export type CreateRequestHostnamesList = Array; export declare const CreateRequestHostnamesList: S.Schema; export type CreateRequestRequestType = "origin-rsa" | "origin-ecc" | "keyless-certificate"; export declare const CreateRequestRequestType: any; export type CreateRequestRequestedValidity = 7 | 30 | 90 | 365 | 730 | 1095 | 5475; export declare const CreateRequestRequestedValidity: any; export interface CreateOriginCaCertificateRequest { /** The Certificate Signing Request (CSR). Must be newline-encoded. */ csr: string; /** Array of hostnames or wildcard names bound to the certificate. */ hostnames: CreateRequestHostnamesList; /** Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). */ requestType: CreateRequestRequestType | (string & {}); /** The number of days for which the certificate should be valid. */ requestedValidity?: CreateRequestRequestedValidity | (number & {}); } export declare const CreateOriginCaCertificateRequest: S.Schema; export type CreateResponseHostnamesList = Array; export declare const CreateResponseHostnamesList: S.Schema; export type CreateResponseRequestType = "origin-rsa" | "origin-ecc" | "keyless-certificate"; export declare const CreateResponseRequestType: any; export type CreateResponseRequestedValidity = 7 | 30 | 90 | 365 | 730 | 1095 | 5475; export declare const CreateResponseRequestedValidity: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateOriginCaCertificateResponse { /** The Certificate Signing Request (CSR). Must be newline-encoded. */ csr: string; /** Array of hostnames or wildcard names bound to the certificate. */ hostnames: CreateResponseHostnamesList; /** Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). */ requestType: CreateResponseRequestType; /** The number of days for which the certificate should be valid. */ requestedValidity: CreateResponseRequestedValidity; /** Identifier. */ id?: string | null; /** The Origin CA certificate. Will be newline-encoded. */ certificate?: string | null; /** When the certificate will expire. */ expiresOn?: string | null; /** When the certificate was revoked; absent while the certificate is live. */ revokedAt?: string | null; } export declare const CreateOriginCaCertificateResponse: S.Schema; export interface DeleteOriginCaCertificateRequest { /** Identifier. */ certificateId: string; } export declare const DeleteOriginCaCertificateRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeleteOriginCaCertificateResponse { /** Identifier. */ id?: string | null; /** When the certificate was revoked. */ revokedAt?: string | null; } export declare const DeleteOriginCaCertificateResponse: S.Schema; export interface GetOriginCaCertificateRequest { /** Identifier. */ certificateId: string; } export declare const GetOriginCaCertificateRequest: S.Schema; export type GetResponseHostnamesList = Array; export declare const GetResponseHostnamesList: S.Schema; export type GetResponseRequestType = "origin-rsa" | "origin-ecc" | "keyless-certificate"; export declare const GetResponseRequestType: any; export type GetResponseRequestedValidity = 7 | 30 | 90 | 365 | 730 | 1095 | 5475; export declare const GetResponseRequestedValidity: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetOriginCaCertificateResponse { /** The Certificate Signing Request (CSR). Must be newline-encoded. */ csr: string; /** Array of hostnames or wildcard names bound to the certificate. */ hostnames: GetResponseHostnamesList; /** Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). */ requestType: GetResponseRequestType; /** The number of days for which the certificate should be valid. */ requestedValidity: GetResponseRequestedValidity; /** Identifier. */ id?: string | null; /** The Origin CA certificate. Will be newline-encoded. */ certificate?: string | null; /** When the certificate will expire. */ expiresOn?: string | null; /** When the certificate was revoked; absent while the certificate is live. */ revokedAt?: string | null; } export declare const GetOriginCaCertificateResponse: S.Schema; export interface ListOriginCaCertificatesRequest { /** Identifier. */ zoneId: string; /** Limit to the number of records returned. */ limit?: number; /** Offset the results. */ offset?: number; /** Page number of paginated results. */ page?: number; /** Number of records per page. */ perPage?: number; } export declare const ListOriginCaCertificatesRequest: S.Schema; export type ListResultItemHostnamesList = Array; export declare const ListResultItemHostnamesList: S.Schema; export type ListResultItemRequestType = "origin-rsa" | "origin-ecc" | "keyless-certificate"; export declare const ListResultItemRequestType: any; export type ListResultItemRequestedValidity = 7 | 30 | 90 | 365 | 730 | 1095 | 5475; export declare const ListResultItemRequestedValidity: any; export interface ListResultItem { /** The Certificate Signing Request (CSR). Must be newline-encoded. */ csr: string; /** Array of hostnames or wildcard names bound to the certificate. */ hostnames: ListResultItemHostnamesList; /** Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). */ requestType: ListResultItemRequestType; /** The number of days for which the certificate should be valid. */ requestedValidity: ListResultItemRequestedValidity; /** Identifier. */ id?: string | null; /** The Origin CA certificate. Will be newline-encoded. */ certificate?: string | null; /** When the certificate will expire. */ expiresOn?: string | null; /** When the certificate was revoked; absent while the certificate is live. */ revokedAt?: string | null; } export declare const ListResultItem: S.Schema; export type ListResultList = Array; export declare const ListResultList: S.Schema; export interface ListOriginCaCertificatesResponse { /** 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 ListOriginCaCertificatesResponse: S.Schema; export type CreateOriginCaCertificateError = HostnameNotAuthorized | Forbidden | CloudflareOpError; /** Create an Origin CA certificate. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)). */ export declare const createOriginCaCertificate: API.OperationMethod; export type DeleteOriginCaCertificateError = CertificateNotFound | CertificateAlreadyRevoked | CertificateRevocationFailed | Forbidden | CloudflareOpError; /** Revoke an existing Origin CA certificate by its serial number. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)). */ export declare const deleteOriginCaCertificate: API.OperationMethod; export type GetOriginCaCertificateError = CertificateNotFound | Forbidden | CloudflareOpError; /** Get an existing Origin CA certificate by its serial number. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)). */ export declare const getOriginCaCertificate: API.OperationMethod; export type ListOriginCaCertificatesError = Forbidden | CloudflareOpError; /** List all existing Origin CA certificates for a given zone. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)). */ export declare const listOriginCaCertificates: API.PaginatedOperationMethod; //# sourceMappingURL=origin_ca_certificates.d.ts.map