// 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> = { aiBindings: "ai_bindings", alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date", analyticsEngineDatasets: "analytics_engine_datasets", buildCaching: "build_caching", buildCommand: "build_command", buildConfig: "build_config", buildImageMajorVersion: "build_image_major_version", canonicalDeployment: "canonical_deployment", certificateAuthority: "certificate_authority", commitDirty: "commit_dirty", commitHash: "commit_hash", commitMessage: "commit_message", compatibilityDate: "compatibility_date", compatibilityFlags: "compatibility_flags", cpuMs: "cpu_ms", createdOn: "created_on", d1Databases: "d1_databases", deploymentConfigs: "deployment_configs", deploymentTrigger: "deployment_trigger", deploymentsEnabled: "deployments_enabled", destinationDir: "destination_dir", domainId: "domain_id", durableObjectNamespaces: "durable_object_namespaces", endedOn: "ended_on", envVars: "env_vars", errorMessage: "error_message", failOpen: "fail_open", frameworkVersion: "framework_version", functionsFilepathRoutingConfigJson: "functions-filepath-routing-config.json", hyperdriveBindings: "hyperdrive_bindings", includesContainerLogs: "includes_container_logs", isSkipped: "is_skipped", kvNamespaces: "kv_namespaces", latestDeployment: "latest_deployment", latestStage: "latest_stage", modifiedOn: "modified_on", mtlsCertificates: "mtls_certificates", ownerId: "owner_id", pagesBuildOutputDir: "pages_build_output_dir", pathExcludes: "path_excludes", pathIncludes: "path_includes", perPage: "per_page", prCommentsEnabled: "pr_comments_enabled", previewBranchExcludes: "preview_branch_excludes", previewBranchIncludes: "preview_branch_includes", previewDeploymentSetting: "preview_deployment_setting", previewScriptName: "preview_script_name", productionBranch: "production_branch", productionDeploymentsEnabled: "production_deployments_enabled", productionScriptName: "production_script_name", projectId: "project_id", projectName: "project_name", queueProducers: "queue_producers", r2Buckets: "r2_buckets", repoId: "repo_id", repoName: "repo_name", resultInfo: "result_info", rootDir: "root_dir", shortId: "short_id", startedOn: "started_on", totalCount: "total_count", txtName: "txt_name", txtValue: "txt_value", usageModel: "usage_model", usesFunctions: "uses_functions", validationData: "validation_data", vectorizeBindings: "vectorize_bindings", verificationData: "verification_data", webAnalyticsTag: "web_analytics_tag", webAnalyticsToken: "web_analytics_token", wranglerConfigHash: "wrangler_config_hash", zoneTag: "zone_tag", }; export class ActiveProductionDeployment extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()( "ActiveProductionDeployment", { code: S.Number, message: S.String, }, ), [{ code: 8000034 }], ) {} export class DeploymentNotFound extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()("DeploymentNotFound", { code: S.Number, message: S.String, }), [{ code: 8000009 }], ) {} export class Forbidden extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()("Forbidden", { code: S.Number, message: S.String, }), [{ status: 403 }], ) {} export class PagesDomainAlreadyExists extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()( "PagesDomainAlreadyExists", { code: S.Number, message: S.String, }, ), [{ code: 8000018 }], ) {} export class PagesDomainNotFound extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()("PagesDomainNotFound", { code: S.Number, message: S.String, }), [{ code: 8000021 }], ) {} export class ProjectAlreadyExists extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()( "ProjectAlreadyExists", { code: S.Number, message: S.String, }, ), [{ code: 8000002 }], ) {} export class ProjectNotFound extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()("ProjectNotFound", { code: S.Number, message: S.String, }), [{ code: 8000007 }], ) {} export interface ProjectsCreateRequestBuildConfig { /** Enable build caching for the project. */ buildCaching?: boolean; /** Command used to build project. */ buildCommand?: string; /** Output directory of the build. */ destinationDir?: string; /** Directory to run the command. */ rootDir?: string; /** The classifying tag for analytics. */ webAnalyticsTag?: string; /** The auth token for analytics. */ webAnalyticsToken?: string; } export const ProjectsCreateRequestBuildConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ buildCaching: S.optional(S.Boolean.pipe(T.Body("build_caching"))), buildCommand: S.optional(S.String.pipe(T.Body("build_command"))), destinationDir: S.optional(S.String.pipe(T.Body("destination_dir"))), rootDir: S.optional(S.String.pipe(T.Body("root_dir"))), webAnalyticsTag: S.optional(S.String.pipe(T.Body("web_analytics_tag"))), webAnalyticsToken: S.optional(S.String.pipe(T.Body("web_analytics_token"))), }), ).annotate({ identifier: "ProjectsCreateRequestBuildConfig", }) as any as S.Schema; export interface ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue { projectId: string; } export const ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue = /*@__PURE__*/ S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Body("project_id")), }), ).annotate({ identifier: "ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue", }) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue, ) as any as S.Schema; export interface ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue { /** Name of the dataset. */ dataset: string; } export const ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue = /*@__PURE__*/ S.suspend(() => S.Struct({ dataset: S.String, }), ).annotate({ identifier: "ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue", }) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsPreviewBrowsersMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateRequestDeploymentConfigsPreviewBrowsersMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsPreviewCompatibilityFlagsList = Array; export const ProjectsCreateRequestDeploymentConfigsPreviewCompatibilityFlagsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsPreviewD1DatabasesMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateRequestDeploymentConfigsPreviewD1DatabasesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export interface ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue { /** ID of the Durable Object namespace. */ namespaceId: string; } export const ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue = /*@__PURE__*/ S.suspend(() => S.Struct({ namespaceId: S.String.pipe(T.Body("namespace_id")), }), ).annotate({ identifier: "ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue", }) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue, ) as any as S.Schema; export type UntypedBindingMap = { [key: string]: unknown | undefined }; export const UntypedBindingMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export interface ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue { id: string; } export const ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, }), ).annotate({ identifier: "ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue", }) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsPreviewKvNamespacesMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateRequestDeploymentConfigsPreviewKvNamespacesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export interface ProjectsCreateRequestDeploymentConfigsPreviewLimits { /** CPU time limit in milliseconds. */ cpuMs: number; } export const ProjectsCreateRequestDeploymentConfigsPreviewLimits = /*@__PURE__*/ S.suspend(() => S.Struct({ cpuMs: S.Number.pipe(T.Body("cpu_ms")), }), ).annotate({ identifier: "ProjectsCreateRequestDeploymentConfigsPreviewLimits", }) as any as S.Schema; export interface ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue { certificateId: string; } export const ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue = /*@__PURE__*/ S.suspend(() => S.Struct({ certificateId: S.String.pipe(T.Body("certificate_id")), }), ).annotate({ identifier: "ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue", }) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue, ) as any as S.Schema; export interface ProjectsCreateRequestDeploymentConfigsPreviewPlacement { /** Placement mode. */ mode: string; } export const ProjectsCreateRequestDeploymentConfigsPreviewPlacement = /*@__PURE__*/ S.suspend(() => S.Struct({ mode: S.String, }), ).annotate({ identifier: "ProjectsCreateRequestDeploymentConfigsPreviewPlacement", }) as any as S.Schema; export interface ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue { /** Name of the Queue. */ name: string; } export const ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue = /*@__PURE__*/ S.suspend(() => S.Struct({ name: S.String, }), ).annotate({ identifier: "ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue", }) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsPreviewR2BucketsMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateRequestDeploymentConfigsPreviewR2BucketsMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export interface ProjectsCreateRequestDeploymentConfigsPreviewServicesValue { /** The Service name. */ service: string; /** The entrypoint to bind to. */ entrypoint?: string; /** The Service environment. */ environment?: string; } export const ProjectsCreateRequestDeploymentConfigsPreviewServicesValue = /*@__PURE__*/ S.suspend(() => S.Struct({ service: S.String, entrypoint: S.optional(S.String), environment: S.optional(S.String), }), ).annotate({ identifier: "ProjectsCreateRequestDeploymentConfigsPreviewServicesValue", }) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsPreviewServicesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewServicesValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsPreviewServicesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewServicesValue, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsPreviewUsageModel = | "standard" | "bundled" | "unbound"; export const ProjectsCreateRequestDeploymentConfigsPreviewUsageModel = /*@__PURE__*/ S.String; export interface ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue { indexName: string; } export const ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue = /*@__PURE__*/ S.suspend(() => S.Struct({ indexName: S.String.pipe(T.Body("index_name")), }), ).annotate({ identifier: "ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue", }) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue, ) as any as S.Schema; export interface ProjectsCreateRequestDeploymentConfigsPreview { /** Constellation bindings used for Pages Functions. */ aiBindings?: ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsMap; /** Whether to always use the latest compatibility date for Pages Functions. */ alwaysUseLatestCompatibilityDate?: boolean; /** Analytics Engine bindings used for Pages Functions. */ analyticsEngineDatasets?: ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsMap; /** Browser bindings used for Pages Functions. */ browsers?: ProjectsCreateRequestDeploymentConfigsPreviewBrowsersMap; /** The major version of the build image to use for Pages Functions. */ buildImageMajorVersion?: number; /** Compatibility date used for Pages Functions. */ compatibilityDate?: string; /** Compatibility flags used for Pages Functions. */ compatibilityFlags?: ProjectsCreateRequestDeploymentConfigsPreviewCompatibilityFlagsList; /** D1 databases used for Pages Functions. */ d1Databases?: ProjectsCreateRequestDeploymentConfigsPreviewD1DatabasesMap; /** Durable Object namespaces used for Pages Functions. */ durableObjectNamespaces?: ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesMap; /** Environment variables used for builds and Pages Functions. */ envVars?: UntypedBindingMap; /** Whether to fail open when the deployment config cannot be applied. */ failOpen?: boolean; /** Hyperdrive bindings used for Pages Functions. */ hyperdriveBindings?: ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsMap; /** KV namespaces used for Pages Functions. */ kvNamespaces?: ProjectsCreateRequestDeploymentConfigsPreviewKvNamespacesMap; /** Limits for Pages Functions. */ limits?: ProjectsCreateRequestDeploymentConfigsPreviewLimits; /** mTLS bindings used for Pages Functions. */ mtlsCertificates?: ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesMap; /** Placement setting used for Pages Functions. */ placement?: ProjectsCreateRequestDeploymentConfigsPreviewPlacement; /** Queue Producer bindings used for Pages Functions. */ queueProducers?: ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersMap; /** R2 buckets used for Pages Functions. */ r2Buckets?: ProjectsCreateRequestDeploymentConfigsPreviewR2BucketsMap; /** Services used for Pages Functions. */ services?: ProjectsCreateRequestDeploymentConfigsPreviewServicesMap; /** The usage model for Pages Functions. */ usageModel?: | ProjectsCreateRequestDeploymentConfigsPreviewUsageModel | (string & {}); /** Vectorize bindings used for Pages Functions. */ vectorizeBindings?: ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsMap; /** Hash of the Wrangler configuration used for the deployment. */ wranglerConfigHash?: string; } export const ProjectsCreateRequestDeploymentConfigsPreview = /*@__PURE__*/ S.suspend(() => S.Struct({ aiBindings: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsMap.pipe( T.Body("ai_bindings"), ), ), alwaysUseLatestCompatibilityDate: S.optional( S.Boolean.pipe(T.Body("always_use_latest_compatibility_date")), ), analyticsEngineDatasets: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsMap.pipe( T.Body("analytics_engine_datasets"), ), ), browsers: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewBrowsersMap, ), buildImageMajorVersion: S.optional( S.Number.pipe(T.Body("build_image_major_version")), ), compatibilityDate: S.optional( S.String.pipe(T.Body("compatibility_date")), ), compatibilityFlags: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewCompatibilityFlagsList.pipe( T.Body("compatibility_flags"), ), ), d1Databases: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewD1DatabasesMap.pipe( T.Body("d1_databases"), ), ), durableObjectNamespaces: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesMap.pipe( T.Body("durable_object_namespaces"), ), ), envVars: S.optional(UntypedBindingMap.pipe(T.Body("env_vars"))), failOpen: S.optional(S.Boolean.pipe(T.Body("fail_open"))), hyperdriveBindings: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsMap.pipe( T.Body("hyperdrive_bindings"), ), ), kvNamespaces: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewKvNamespacesMap.pipe( T.Body("kv_namespaces"), ), ), limits: S.optional(ProjectsCreateRequestDeploymentConfigsPreviewLimits), mtlsCertificates: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesMap.pipe( T.Body("mtls_certificates"), ), ), placement: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewPlacement, ), queueProducers: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersMap.pipe( T.Body("queue_producers"), ), ), r2Buckets: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewR2BucketsMap.pipe( T.Body("r2_buckets"), ), ), services: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewServicesMap, ), usageModel: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewUsageModel.pipe( T.Body("usage_model"), ), ), vectorizeBindings: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsMap.pipe( T.Body("vectorize_bindings"), ), ), wranglerConfigHash: S.optional( S.String.pipe(T.Body("wrangler_config_hash")), ), }), ).annotate({ identifier: "ProjectsCreateRequestDeploymentConfigsPreview", }) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsProductionAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export const ProjectsCreateRequestDeploymentConfigsProductionAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export type ProjectsCreateRequestDeploymentConfigsProductionAiBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsProductionAiBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsProductionAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export const ProjectsCreateRequestDeploymentConfigsProductionAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export type ProjectsCreateRequestDeploymentConfigsProductionAnalyticsEngineDatasetsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsProductionAnalyticsEngineDatasetsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsProductionBrowsersMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateRequestDeploymentConfigsProductionBrowsersMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsProductionCompatibilityFlagsList = Array; export const ProjectsCreateRequestDeploymentConfigsProductionCompatibilityFlagsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsProductionD1DatabasesMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateRequestDeploymentConfigsProductionD1DatabasesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsProductionDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export const ProjectsCreateRequestDeploymentConfigsProductionDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export type ProjectsCreateRequestDeploymentConfigsProductionDurableObjectNamespacesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsProductionDurableObjectNamespacesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsProductionHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export const ProjectsCreateRequestDeploymentConfigsProductionHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export type ProjectsCreateRequestDeploymentConfigsProductionHyperdriveBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsProductionHyperdriveBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsProductionKvNamespacesMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateRequestDeploymentConfigsProductionKvNamespacesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsProductionLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export const ProjectsCreateRequestDeploymentConfigsProductionLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export type ProjectsCreateRequestDeploymentConfigsProductionMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export const ProjectsCreateRequestDeploymentConfigsProductionMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export type ProjectsCreateRequestDeploymentConfigsProductionMtlsCertificatesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsProductionMtlsCertificatesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsProductionPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export const ProjectsCreateRequestDeploymentConfigsProductionPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export type ProjectsCreateRequestDeploymentConfigsProductionQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export const ProjectsCreateRequestDeploymentConfigsProductionQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export type ProjectsCreateRequestDeploymentConfigsProductionQueueProducersMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsProductionQueueProducersMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsProductionR2BucketsMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateRequestDeploymentConfigsProductionR2BucketsMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsProductionServicesValue = ProjectsCreateRequestDeploymentConfigsPreviewServicesValue; export const ProjectsCreateRequestDeploymentConfigsProductionServicesValue = ProjectsCreateRequestDeploymentConfigsPreviewServicesValue; export type ProjectsCreateRequestDeploymentConfigsProductionServicesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewServicesValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsProductionServicesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewServicesValue, ) as any as S.Schema; export type ProjectsCreateRequestDeploymentConfigsProductionUsageModel = | "standard" | "bundled" | "unbound"; export const ProjectsCreateRequestDeploymentConfigsProductionUsageModel = /*@__PURE__*/ S.String; export type ProjectsCreateRequestDeploymentConfigsProductionVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export const ProjectsCreateRequestDeploymentConfigsProductionVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export type ProjectsCreateRequestDeploymentConfigsProductionVectorizeBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue | undefined; }; export const ProjectsCreateRequestDeploymentConfigsProductionVectorizeBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue, ) as any as S.Schema; export interface ProjectsCreateRequestDeploymentConfigsProduction { /** Constellation bindings used for Pages Functions. */ aiBindings?: ProjectsCreateRequestDeploymentConfigsProductionAiBindingsMap; /** Whether to always use the latest compatibility date for Pages Functions. */ alwaysUseLatestCompatibilityDate?: boolean; /** Analytics Engine bindings used for Pages Functions. */ analyticsEngineDatasets?: ProjectsCreateRequestDeploymentConfigsProductionAnalyticsEngineDatasetsMap; /** Browser bindings used for Pages Functions. */ browsers?: ProjectsCreateRequestDeploymentConfigsProductionBrowsersMap; /** The major version of the build image to use for Pages Functions. */ buildImageMajorVersion?: number; /** Compatibility date used for Pages Functions. */ compatibilityDate?: string; /** Compatibility flags used for Pages Functions. */ compatibilityFlags?: ProjectsCreateRequestDeploymentConfigsProductionCompatibilityFlagsList; /** D1 databases used for Pages Functions. */ d1Databases?: ProjectsCreateRequestDeploymentConfigsProductionD1DatabasesMap; /** Durable Object namespaces used for Pages Functions. */ durableObjectNamespaces?: ProjectsCreateRequestDeploymentConfigsProductionDurableObjectNamespacesMap; /** Environment variables used for builds and Pages Functions. */ envVars?: UntypedBindingMap; /** Whether to fail open when the deployment config cannot be applied. */ failOpen?: boolean; /** Hyperdrive bindings used for Pages Functions. */ hyperdriveBindings?: ProjectsCreateRequestDeploymentConfigsProductionHyperdriveBindingsMap; /** KV namespaces used for Pages Functions. */ kvNamespaces?: ProjectsCreateRequestDeploymentConfigsProductionKvNamespacesMap; /** Limits for Pages Functions. */ limits?: ProjectsCreateRequestDeploymentConfigsPreviewLimits; /** mTLS bindings used for Pages Functions. */ mtlsCertificates?: ProjectsCreateRequestDeploymentConfigsProductionMtlsCertificatesMap; /** Placement setting used for Pages Functions. */ placement?: ProjectsCreateRequestDeploymentConfigsPreviewPlacement; /** Queue Producer bindings used for Pages Functions. */ queueProducers?: ProjectsCreateRequestDeploymentConfigsProductionQueueProducersMap; /** R2 buckets used for Pages Functions. */ r2Buckets?: ProjectsCreateRequestDeploymentConfigsProductionR2BucketsMap; /** Services used for Pages Functions. */ services?: ProjectsCreateRequestDeploymentConfigsProductionServicesMap; /** The usage model for Pages Functions. */ usageModel?: | ProjectsCreateRequestDeploymentConfigsProductionUsageModel | (string & {}); /** Vectorize bindings used for Pages Functions. */ vectorizeBindings?: ProjectsCreateRequestDeploymentConfigsProductionVectorizeBindingsMap; /** Hash of the Wrangler configuration used for the deployment. */ wranglerConfigHash?: string; } export const ProjectsCreateRequestDeploymentConfigsProduction = /*@__PURE__*/ S.suspend(() => S.Struct({ aiBindings: S.optional( ProjectsCreateRequestDeploymentConfigsProductionAiBindingsMap.pipe( T.Body("ai_bindings"), ), ), alwaysUseLatestCompatibilityDate: S.optional( S.Boolean.pipe(T.Body("always_use_latest_compatibility_date")), ), analyticsEngineDatasets: S.optional( ProjectsCreateRequestDeploymentConfigsProductionAnalyticsEngineDatasetsMap.pipe( T.Body("analytics_engine_datasets"), ), ), browsers: S.optional( ProjectsCreateRequestDeploymentConfigsProductionBrowsersMap, ), buildImageMajorVersion: S.optional( S.Number.pipe(T.Body("build_image_major_version")), ), compatibilityDate: S.optional( S.String.pipe(T.Body("compatibility_date")), ), compatibilityFlags: S.optional( ProjectsCreateRequestDeploymentConfigsProductionCompatibilityFlagsList.pipe( T.Body("compatibility_flags"), ), ), d1Databases: S.optional( ProjectsCreateRequestDeploymentConfigsProductionD1DatabasesMap.pipe( T.Body("d1_databases"), ), ), durableObjectNamespaces: S.optional( ProjectsCreateRequestDeploymentConfigsProductionDurableObjectNamespacesMap.pipe( T.Body("durable_object_namespaces"), ), ), envVars: S.optional(UntypedBindingMap.pipe(T.Body("env_vars"))), failOpen: S.optional(S.Boolean.pipe(T.Body("fail_open"))), hyperdriveBindings: S.optional( ProjectsCreateRequestDeploymentConfigsProductionHyperdriveBindingsMap.pipe( T.Body("hyperdrive_bindings"), ), ), kvNamespaces: S.optional( ProjectsCreateRequestDeploymentConfigsProductionKvNamespacesMap.pipe( T.Body("kv_namespaces"), ), ), limits: S.optional(ProjectsCreateRequestDeploymentConfigsPreviewLimits), mtlsCertificates: S.optional( ProjectsCreateRequestDeploymentConfigsProductionMtlsCertificatesMap.pipe( T.Body("mtls_certificates"), ), ), placement: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewPlacement, ), queueProducers: S.optional( ProjectsCreateRequestDeploymentConfigsProductionQueueProducersMap.pipe( T.Body("queue_producers"), ), ), r2Buckets: S.optional( ProjectsCreateRequestDeploymentConfigsProductionR2BucketsMap.pipe( T.Body("r2_buckets"), ), ), services: S.optional( ProjectsCreateRequestDeploymentConfigsProductionServicesMap, ), usageModel: S.optional( ProjectsCreateRequestDeploymentConfigsProductionUsageModel.pipe( T.Body("usage_model"), ), ), vectorizeBindings: S.optional( ProjectsCreateRequestDeploymentConfigsProductionVectorizeBindingsMap.pipe( T.Body("vectorize_bindings"), ), ), wranglerConfigHash: S.optional( S.String.pipe(T.Body("wrangler_config_hash")), ), }), ).annotate({ identifier: "ProjectsCreateRequestDeploymentConfigsProduction", }) as any as S.Schema; export interface ProjectsCreateRequestDeploymentConfigs { /** Configs for preview deploys. */ preview?: ProjectsCreateRequestDeploymentConfigsPreview; /** Configs for production deploys. */ production?: ProjectsCreateRequestDeploymentConfigsProduction; } export const ProjectsCreateRequestDeploymentConfigs = /*@__PURE__*/ S.suspend( () => S.Struct({ preview: S.optional(ProjectsCreateRequestDeploymentConfigsPreview), production: S.optional(ProjectsCreateRequestDeploymentConfigsProduction), }), ).annotate({ identifier: "ProjectsCreateRequestDeploymentConfigs", }) as any as S.Schema; export type ProjectsCreateRequestSourceConfigPathExcludesList = Array; export const ProjectsCreateRequestSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateRequestSourceConfigPathIncludesList = Array; export const ProjectsCreateRequestSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateRequestSourceConfigPreviewBranchExcludesList = Array; export const ProjectsCreateRequestSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateRequestSourceConfigPreviewBranchIncludesList = Array; export const ProjectsCreateRequestSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateRequestSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsCreateRequestSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsCreateRequestSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled?: boolean; /** The owner of the repository. */ owner?: string; /** The owner ID of the repository. */ ownerId?: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes?: ProjectsCreateRequestSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes?: ProjectsCreateRequestSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled?: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes?: ProjectsCreateRequestSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes?: ProjectsCreateRequestSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting?: | ProjectsCreateRequestSourceConfigPreviewDeploymentSetting | (string & {}); /** The production branch of the repository. */ productionBranch?: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled?: boolean; /** The ID of the repository. */ repoId?: string; /** The name of the repository. */ repoName?: string; } export const ProjectsCreateRequestSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.optional( S.Boolean.pipe(T.Body("deployments_enabled")), ), owner: S.optional(S.String), ownerId: S.optional(S.String.pipe(T.Body("owner_id"))), pathExcludes: S.optional( ProjectsCreateRequestSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), ), pathIncludes: S.optional( ProjectsCreateRequestSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), ), prCommentsEnabled: S.optional( S.Boolean.pipe(T.Body("pr_comments_enabled")), ), previewBranchExcludes: S.optional( ProjectsCreateRequestSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), ), previewBranchIncludes: S.optional( ProjectsCreateRequestSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), ), previewDeploymentSetting: S.optional( ProjectsCreateRequestSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), ), productionBranch: S.optional(S.String.pipe(T.Body("production_branch"))), productionDeploymentsEnabled: S.optional( S.Boolean.pipe(T.Body("production_deployments_enabled")), ), repoId: S.optional(S.String.pipe(T.Body("repo_id"))), repoName: S.optional(S.String.pipe(T.Body("repo_name"))), }), ).annotate({ identifier: "ProjectsCreateRequestSourceConfig", }) as any as S.Schema; export type ProjectsCreateRequestSourceType = "github" | "gitlab"; export const ProjectsCreateRequestSourceType = /*@__PURE__*/ S.String; export interface ProjectsCreateRequestSource { config: ProjectsCreateRequestSourceConfig; /** The source control management provider. */ type: ProjectsCreateRequestSourceType | (string & {}); } export const ProjectsCreateRequestSource = /*@__PURE__*/ S.suspend(() => S.Struct({ config: ProjectsCreateRequestSourceConfig, type: ProjectsCreateRequestSourceType, }), ).annotate({ identifier: "ProjectsCreateRequestSource", }) as any as S.Schema; export interface CreateProjectRequest { /** Identifier. */ accountId: string; /** Name of the project. */ name: string; /** Production branch of the project. Used to identify production deployments. */ productionBranch: string; /** Configs for the project build process. */ buildConfig?: ProjectsCreateRequestBuildConfig; /** Configs for deployments in a project. */ deploymentConfigs?: ProjectsCreateRequestDeploymentConfigs; /** Configs for the project source control. */ source?: ProjectsCreateRequestSource; } export const CreateProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), name: S.String, productionBranch: S.String.pipe(T.Body("production_branch")), buildConfig: S.optional( ProjectsCreateRequestBuildConfig.pipe(T.Body("build_config")), ), deploymentConfigs: S.optional( ProjectsCreateRequestDeploymentConfigs.pipe(T.Body("deployment_configs")), ), source: S.optional(ProjectsCreateRequestSource), }) .pipe( T.Http({ method: "POST", uri: "/accounts/{account_id}/pages/projects", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "CreateProjectRequest", }) as any as S.Schema; export type ProjectsCreateResponseCanonicalDeploymentAliasesList = Array; export const ProjectsCreateResponseCanonicalDeploymentAliasesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export interface ProjectsCreateResponseCanonicalDeploymentBuildConfig { /** The classifying tag for analytics. */ webAnalyticsTag: string; /** The auth token for analytics. */ webAnalyticsToken: string; /** Enable build caching for the project. */ buildCaching?: boolean | null; /** Command used to build project. */ buildCommand?: string | null; /** Assets output directory of the build. */ destinationDir?: string | null; /** Directory to run the command. */ rootDir?: string | null; } export const ProjectsCreateResponseCanonicalDeploymentBuildConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ webAnalyticsTag: S.String.pipe(T.Body("web_analytics_tag")), webAnalyticsToken: S.String.pipe(T.Body("web_analytics_token")), buildCaching: S.optional( S.NullOr(S.Boolean).pipe(T.Body("build_caching")), ), buildCommand: S.optional( S.NullOr(S.String).pipe(T.Body("build_command")), ), destinationDir: S.optional( S.NullOr(S.String).pipe(T.Body("destination_dir")), ), rootDir: S.optional(S.NullOr(S.String).pipe(T.Body("root_dir"))), }), ).annotate({ identifier: "ProjectsCreateResponseCanonicalDeploymentBuildConfig", }) as any as S.Schema; export interface ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata { /** Where the trigger happened. */ branch: string; /** Whether the deployment trigger commit was dirty. */ commitDirty: boolean; /** Hash of the deployment trigger commit. */ commitHash: string; /** Message of the deployment trigger commit. */ commitMessage: string; } export const ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({ branch: S.String, commitDirty: S.Boolean.pipe(T.Body("commit_dirty")), commitHash: S.String.pipe(T.Body("commit_hash")), commitMessage: S.String.pipe(T.Body("commit_message")), }), ).annotate({ identifier: "ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata", }) as any as S.Schema; export type ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerType = | "github:push" | "ad_hoc" | "deploy_hook"; export const ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerType = /*@__PURE__*/ S.String; export interface ProjectsCreateResponseCanonicalDeploymentDeploymentTrigger { /** Additional info about the trigger. */ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; /** What caused the deployment. */ type: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerType; } export const ProjectsCreateResponseCanonicalDeploymentDeploymentTrigger = /*@__PURE__*/ S.suspend(() => S.Struct({ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata, type: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerType, }), ).annotate({ identifier: "ProjectsCreateResponseCanonicalDeploymentDeploymentTrigger", }) as any as S.Schema; export type ProjectsCreateResponseCanonicalDeploymentEnvironment = | "preview" | "production"; export const ProjectsCreateResponseCanonicalDeploymentEnvironment = /*@__PURE__*/ S.String; export type ProjectsCreateResponseCanonicalDeploymentLatestStageName = | "queued" | "initialize" | "clone_repo" | "build" | "deploy"; export const ProjectsCreateResponseCanonicalDeploymentLatestStageName = /*@__PURE__*/ S.String; export type ProjectsCreateResponseCanonicalDeploymentLatestStageStatus = | "success" | "idle" | "active" | "failure" | "canceled"; export const ProjectsCreateResponseCanonicalDeploymentLatestStageStatus = /*@__PURE__*/ S.String; export interface ProjectsCreateResponseCanonicalDeploymentLatestStage { /** When the stage ended. */ endedOn: string; /** The current build stage. */ name: ProjectsCreateResponseCanonicalDeploymentLatestStageName; /** When the stage started. */ startedOn: string; /** State of the current stage. */ status: ProjectsCreateResponseCanonicalDeploymentLatestStageStatus; } export const ProjectsCreateResponseCanonicalDeploymentLatestStage = /*@__PURE__*/ S.suspend(() => S.Struct({ endedOn: S.String.pipe(T.Body("ended_on")), name: ProjectsCreateResponseCanonicalDeploymentLatestStageName, startedOn: S.String.pipe(T.Body("started_on")), status: ProjectsCreateResponseCanonicalDeploymentLatestStageStatus, }), ).annotate({ identifier: "ProjectsCreateResponseCanonicalDeploymentLatestStage", }) as any as S.Schema; export type ProjectsCreateResponseCanonicalDeploymentSourceConfigPathExcludesList = Array; export const ProjectsCreateResponseCanonicalDeploymentSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateResponseCanonicalDeploymentSourceConfigPathIncludesList = Array; export const ProjectsCreateResponseCanonicalDeploymentSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateResponseCanonicalDeploymentSourceConfigPreviewBranchExcludesList = Array; export const ProjectsCreateResponseCanonicalDeploymentSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateResponseCanonicalDeploymentSourceConfigPreviewBranchIncludesList = Array; export const ProjectsCreateResponseCanonicalDeploymentSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateResponseCanonicalDeploymentSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsCreateResponseCanonicalDeploymentSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsCreateResponseCanonicalDeploymentSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled: boolean; /** The owner of the repository. */ owner: string; /** The owner ID of the repository. */ ownerId: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes: ProjectsCreateResponseCanonicalDeploymentSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes: ProjectsCreateResponseCanonicalDeploymentSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes: ProjectsCreateResponseCanonicalDeploymentSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes: ProjectsCreateResponseCanonicalDeploymentSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting: ProjectsCreateResponseCanonicalDeploymentSourceConfigPreviewDeploymentSetting; /** The production branch of the repository. */ productionBranch: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled: boolean; /** The ID of the repository. */ repoId: string; /** The name of the repository. */ repoName: string; } export const ProjectsCreateResponseCanonicalDeploymentSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.Boolean.pipe(T.Body("deployments_enabled")), owner: S.String, ownerId: S.String.pipe(T.Body("owner_id")), pathExcludes: ProjectsCreateResponseCanonicalDeploymentSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), pathIncludes: ProjectsCreateResponseCanonicalDeploymentSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), prCommentsEnabled: S.Boolean.pipe(T.Body("pr_comments_enabled")), previewBranchExcludes: ProjectsCreateResponseCanonicalDeploymentSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), previewBranchIncludes: ProjectsCreateResponseCanonicalDeploymentSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), previewDeploymentSetting: ProjectsCreateResponseCanonicalDeploymentSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), productionBranch: S.String.pipe(T.Body("production_branch")), productionDeploymentsEnabled: S.Boolean.pipe( T.Body("production_deployments_enabled"), ), repoId: S.String.pipe(T.Body("repo_id")), repoName: S.String.pipe(T.Body("repo_name")), }), ).annotate({ identifier: "ProjectsCreateResponseCanonicalDeploymentSourceConfig", }) as any as S.Schema; export type ProjectsCreateResponseCanonicalDeploymentSourceType = | "github" | "gitlab"; export const ProjectsCreateResponseCanonicalDeploymentSourceType = /*@__PURE__*/ S.String; export interface ProjectsCreateResponseCanonicalDeploymentSource { config: ProjectsCreateResponseCanonicalDeploymentSourceConfig; /** The source control management provider. */ type: ProjectsCreateResponseCanonicalDeploymentSourceType; } export const ProjectsCreateResponseCanonicalDeploymentSource = /*@__PURE__*/ S.suspend(() => S.Struct({ config: ProjectsCreateResponseCanonicalDeploymentSourceConfig, type: ProjectsCreateResponseCanonicalDeploymentSourceType, }), ).annotate({ identifier: "ProjectsCreateResponseCanonicalDeploymentSource", }) as any as S.Schema; export interface ProjectsCreateResponseCanonicalDeploymentStagesItem { /** When the stage ended. */ endedOn: string; /** The current build stage. */ name: string; /** When the stage started. */ startedOn: string; /** State of the current stage. */ status: string; } export const ProjectsCreateResponseCanonicalDeploymentStagesItem = /*@__PURE__*/ S.suspend(() => S.Struct({ endedOn: S.String.pipe(T.Body("ended_on")), name: S.String, startedOn: S.String.pipe(T.Body("started_on")), status: S.String, }), ).annotate({ identifier: "ProjectsCreateResponseCanonicalDeploymentStagesItem", }) as any as S.Schema; export type ProjectsCreateResponseCanonicalDeploymentStagesList = Array; export const ProjectsCreateResponseCanonicalDeploymentStagesList = /*@__PURE__*/ S.Array( ProjectsCreateResponseCanonicalDeploymentStagesItem, ) as any as S.Schema; export interface ProjectsCreateResponseCanonicalDeployment { /** Id of the deployment. */ id: string; /** A list of alias URLs pointing to this deployment. */ aliases: ProjectsCreateResponseCanonicalDeploymentAliasesList; /** Configs for the project build process. */ buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig; /** When the deployment was created. */ createdOn: string; /** Info about what caused the deployment. */ deploymentTrigger: ProjectsCreateResponseCanonicalDeploymentDeploymentTrigger; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Type of deploy. */ environment: ProjectsCreateResponseCanonicalDeploymentEnvironment; /** If the deployment has been skipped. */ isSkipped: boolean; /** The status of the deployment. */ latestStage: ProjectsCreateResponseCanonicalDeploymentLatestStage; /** When the deployment was last modified. */ modifiedOn: string; /** Id of the project. */ projectId: string; /** Name of the project. */ projectName: string; /** Short Id (8 character) of the deployment. */ shortId: string; /** Configs for the project source control. */ source: ProjectsCreateResponseCanonicalDeploymentSource; /** List of past stages. */ stages: ProjectsCreateResponseCanonicalDeploymentStagesList; /** The live URL to view this deployment. */ url: string; /** Whether the deployment uses functions. */ usesFunctions?: boolean | null; } export const ProjectsCreateResponseCanonicalDeployment = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, aliases: ProjectsCreateResponseCanonicalDeploymentAliasesList, buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig.pipe( T.Body("build_config"), ), createdOn: S.String.pipe(T.Body("created_on")), deploymentTrigger: ProjectsCreateResponseCanonicalDeploymentDeploymentTrigger.pipe( T.Body("deployment_trigger"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), environment: ProjectsCreateResponseCanonicalDeploymentEnvironment, isSkipped: S.Boolean.pipe(T.Body("is_skipped")), latestStage: ProjectsCreateResponseCanonicalDeploymentLatestStage.pipe( T.Body("latest_stage"), ), modifiedOn: S.String.pipe(T.Body("modified_on")), projectId: S.String.pipe(T.Body("project_id")), projectName: S.String.pipe(T.Body("project_name")), shortId: S.String.pipe(T.Body("short_id")), source: ProjectsCreateResponseCanonicalDeploymentSource, stages: ProjectsCreateResponseCanonicalDeploymentStagesList, url: S.String, usesFunctions: S.optional( S.NullOr(S.Boolean).pipe(T.Body("uses_functions")), ), }), ).annotate({ identifier: "ProjectsCreateResponseCanonicalDeployment", }) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsPreviewCompatibilityFlagsList = Array; export const ProjectsCreateResponseDeploymentConfigsPreviewCompatibilityFlagsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsPreviewUsageModel = | "standard" | "bundled" | "unbound"; export const ProjectsCreateResponseDeploymentConfigsPreviewUsageModel = /*@__PURE__*/ S.String; export type ProjectsCreateResponseDeploymentConfigsPreviewAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export const ProjectsCreateResponseDeploymentConfigsPreviewAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export type ProjectsCreateResponseDeploymentConfigsPreviewAiBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsPreviewAiBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export const ProjectsCreateResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export type ProjectsCreateResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsPreviewBrowsersMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateResponseDeploymentConfigsPreviewBrowsersMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsPreviewD1DatabasesMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateResponseDeploymentConfigsPreviewD1DatabasesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsPreviewDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export const ProjectsCreateResponseDeploymentConfigsPreviewDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export type ProjectsCreateResponseDeploymentConfigsPreviewDurableObjectNamespacesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsPreviewDurableObjectNamespacesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsPreviewHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export const ProjectsCreateResponseDeploymentConfigsPreviewHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export type ProjectsCreateResponseDeploymentConfigsPreviewHyperdriveBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsPreviewHyperdriveBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsPreviewKvNamespacesMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateResponseDeploymentConfigsPreviewKvNamespacesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsPreviewLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export const ProjectsCreateResponseDeploymentConfigsPreviewLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export type ProjectsCreateResponseDeploymentConfigsPreviewMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export const ProjectsCreateResponseDeploymentConfigsPreviewMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export type ProjectsCreateResponseDeploymentConfigsPreviewMtlsCertificatesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsPreviewMtlsCertificatesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsPreviewPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export const ProjectsCreateResponseDeploymentConfigsPreviewPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export type ProjectsCreateResponseDeploymentConfigsPreviewQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export const ProjectsCreateResponseDeploymentConfigsPreviewQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export type ProjectsCreateResponseDeploymentConfigsPreviewQueueProducersMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsPreviewQueueProducersMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsPreviewR2BucketsMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateResponseDeploymentConfigsPreviewR2BucketsMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export interface ProjectsCreateResponseDeploymentConfigsPreviewServicesValue { /** The Service environment. */ environment: string; /** The Service name. */ service: string; /** The entrypoint to bind to. */ entrypoint?: string | null; } export const ProjectsCreateResponseDeploymentConfigsPreviewServicesValue = /*@__PURE__*/ S.suspend(() => S.Struct({ environment: S.String, service: S.String, entrypoint: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "ProjectsCreateResponseDeploymentConfigsPreviewServicesValue", }) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsPreviewServicesMap = { [key: string]: | ProjectsCreateResponseDeploymentConfigsPreviewServicesValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsPreviewServicesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateResponseDeploymentConfigsPreviewServicesValue, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsPreviewVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export const ProjectsCreateResponseDeploymentConfigsPreviewVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export type ProjectsCreateResponseDeploymentConfigsPreviewVectorizeBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsPreviewVectorizeBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue, ) as any as S.Schema; export interface ProjectsCreateResponseDeploymentConfigsPreview { /** Whether to always use the latest compatibility date for Pages Functions. */ alwaysUseLatestCompatibilityDate: boolean; /** The major version of the build image to use for Pages Functions. */ buildImageMajorVersion: number; /** Compatibility date used for Pages Functions. */ compatibilityDate: string; /** Compatibility flags used for Pages Functions. */ compatibilityFlags: ProjectsCreateResponseDeploymentConfigsPreviewCompatibilityFlagsList; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Whether to fail open when the deployment config cannot be applied. */ failOpen: boolean; /** The usage model for Pages Functions. */ usageModel: ProjectsCreateResponseDeploymentConfigsPreviewUsageModel; /** Constellation bindings used for Pages Functions. */ aiBindings?: ProjectsCreateResponseDeploymentConfigsPreviewAiBindingsMap | null; /** Analytics Engine bindings used for Pages Functions. */ analyticsEngineDatasets?: ProjectsCreateResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsMap | null; /** Browser bindings used for Pages Functions. */ browsers?: ProjectsCreateResponseDeploymentConfigsPreviewBrowsersMap | null; /** D1 databases used for Pages Functions. */ d1Databases?: ProjectsCreateResponseDeploymentConfigsPreviewD1DatabasesMap | null; /** Durable Object namespaces used for Pages Functions. */ durableObjectNamespaces?: ProjectsCreateResponseDeploymentConfigsPreviewDurableObjectNamespacesMap | null; /** Hyperdrive bindings used for Pages Functions. */ hyperdriveBindings?: ProjectsCreateResponseDeploymentConfigsPreviewHyperdriveBindingsMap | null; /** KV namespaces used for Pages Functions. */ kvNamespaces?: ProjectsCreateResponseDeploymentConfigsPreviewKvNamespacesMap | null; /** Limits for Pages Functions. */ limits?: ProjectsCreateRequestDeploymentConfigsPreviewLimits | null; /** mTLS bindings used for Pages Functions. */ mtlsCertificates?: ProjectsCreateResponseDeploymentConfigsPreviewMtlsCertificatesMap | null; /** Placement setting used for Pages Functions. */ placement?: ProjectsCreateRequestDeploymentConfigsPreviewPlacement | null; /** Queue Producer bindings used for Pages Functions. */ queueProducers?: ProjectsCreateResponseDeploymentConfigsPreviewQueueProducersMap | null; /** R2 buckets used for Pages Functions. */ r2Buckets?: ProjectsCreateResponseDeploymentConfigsPreviewR2BucketsMap | null; /** Services used for Pages Functions. */ services?: ProjectsCreateResponseDeploymentConfigsPreviewServicesMap | null; /** Vectorize bindings used for Pages Functions. */ vectorizeBindings?: ProjectsCreateResponseDeploymentConfigsPreviewVectorizeBindingsMap | null; /** Hash of the Wrangler configuration used for the deployment. */ wranglerConfigHash?: string | null; } export const ProjectsCreateResponseDeploymentConfigsPreview = /*@__PURE__*/ S.suspend(() => S.Struct({ alwaysUseLatestCompatibilityDate: S.Boolean.pipe( T.Body("always_use_latest_compatibility_date"), ), buildImageMajorVersion: S.Number.pipe( T.Body("build_image_major_version"), ), compatibilityDate: S.String.pipe(T.Body("compatibility_date")), compatibilityFlags: ProjectsCreateResponseDeploymentConfigsPreviewCompatibilityFlagsList.pipe( T.Body("compatibility_flags"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), failOpen: S.Boolean.pipe(T.Body("fail_open")), usageModel: ProjectsCreateResponseDeploymentConfigsPreviewUsageModel.pipe( T.Body("usage_model"), ), aiBindings: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsPreviewAiBindingsMap, ).pipe(T.Body("ai_bindings")), ), analyticsEngineDatasets: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsMap, ).pipe(T.Body("analytics_engine_datasets")), ), browsers: S.optional( S.NullOr(ProjectsCreateResponseDeploymentConfigsPreviewBrowsersMap), ), d1Databases: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsPreviewD1DatabasesMap, ).pipe(T.Body("d1_databases")), ), durableObjectNamespaces: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsPreviewDurableObjectNamespacesMap, ).pipe(T.Body("durable_object_namespaces")), ), hyperdriveBindings: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsPreviewHyperdriveBindingsMap, ).pipe(T.Body("hyperdrive_bindings")), ), kvNamespaces: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsPreviewKvNamespacesMap, ).pipe(T.Body("kv_namespaces")), ), limits: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewLimits), ), mtlsCertificates: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsPreviewMtlsCertificatesMap, ).pipe(T.Body("mtls_certificates")), ), placement: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewPlacement), ), queueProducers: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsPreviewQueueProducersMap, ).pipe(T.Body("queue_producers")), ), r2Buckets: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsPreviewR2BucketsMap, ).pipe(T.Body("r2_buckets")), ), services: S.optional( S.NullOr(ProjectsCreateResponseDeploymentConfigsPreviewServicesMap), ), vectorizeBindings: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsPreviewVectorizeBindingsMap, ).pipe(T.Body("vectorize_bindings")), ), wranglerConfigHash: S.optional( S.NullOr(S.String).pipe(T.Body("wrangler_config_hash")), ), }), ).annotate({ identifier: "ProjectsCreateResponseDeploymentConfigsPreview", }) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsProductionCompatibilityFlagsList = Array; export const ProjectsCreateResponseDeploymentConfigsProductionCompatibilityFlagsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsProductionUsageModel = | "standard" | "bundled" | "unbound"; export const ProjectsCreateResponseDeploymentConfigsProductionUsageModel = /*@__PURE__*/ S.String; export type ProjectsCreateResponseDeploymentConfigsProductionAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export const ProjectsCreateResponseDeploymentConfigsProductionAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export type ProjectsCreateResponseDeploymentConfigsProductionAiBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsProductionAiBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsProductionAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export const ProjectsCreateResponseDeploymentConfigsProductionAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export type ProjectsCreateResponseDeploymentConfigsProductionAnalyticsEngineDatasetsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsProductionAnalyticsEngineDatasetsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsProductionBrowsersMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateResponseDeploymentConfigsProductionBrowsersMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsProductionD1DatabasesMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateResponseDeploymentConfigsProductionD1DatabasesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsProductionDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export const ProjectsCreateResponseDeploymentConfigsProductionDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export type ProjectsCreateResponseDeploymentConfigsProductionDurableObjectNamespacesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsProductionDurableObjectNamespacesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsProductionHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export const ProjectsCreateResponseDeploymentConfigsProductionHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export type ProjectsCreateResponseDeploymentConfigsProductionHyperdriveBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsProductionHyperdriveBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsProductionKvNamespacesMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateResponseDeploymentConfigsProductionKvNamespacesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsProductionLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export const ProjectsCreateResponseDeploymentConfigsProductionLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export type ProjectsCreateResponseDeploymentConfigsProductionMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export const ProjectsCreateResponseDeploymentConfigsProductionMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export type ProjectsCreateResponseDeploymentConfigsProductionMtlsCertificatesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsProductionMtlsCertificatesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsProductionPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export const ProjectsCreateResponseDeploymentConfigsProductionPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export type ProjectsCreateResponseDeploymentConfigsProductionQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export const ProjectsCreateResponseDeploymentConfigsProductionQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export type ProjectsCreateResponseDeploymentConfigsProductionQueueProducersMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsProductionQueueProducersMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsProductionR2BucketsMap = { [key: string]: unknown | undefined; }; export const ProjectsCreateResponseDeploymentConfigsProductionR2BucketsMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsProductionServicesValue = ProjectsCreateResponseDeploymentConfigsPreviewServicesValue; export const ProjectsCreateResponseDeploymentConfigsProductionServicesValue = ProjectsCreateResponseDeploymentConfigsPreviewServicesValue; export type ProjectsCreateResponseDeploymentConfigsProductionServicesMap = { [key: string]: | ProjectsCreateResponseDeploymentConfigsPreviewServicesValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsProductionServicesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateResponseDeploymentConfigsPreviewServicesValue, ) as any as S.Schema; export type ProjectsCreateResponseDeploymentConfigsProductionVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export const ProjectsCreateResponseDeploymentConfigsProductionVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export type ProjectsCreateResponseDeploymentConfigsProductionVectorizeBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue | undefined; }; export const ProjectsCreateResponseDeploymentConfigsProductionVectorizeBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue, ) as any as S.Schema; export interface ProjectsCreateResponseDeploymentConfigsProduction { /** Whether to always use the latest compatibility date for Pages Functions. */ alwaysUseLatestCompatibilityDate: boolean; /** The major version of the build image to use for Pages Functions. */ buildImageMajorVersion: number; /** Compatibility date used for Pages Functions. */ compatibilityDate: string; /** Compatibility flags used for Pages Functions. */ compatibilityFlags: ProjectsCreateResponseDeploymentConfigsProductionCompatibilityFlagsList; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Whether to fail open when the deployment config cannot be applied. */ failOpen: boolean; /** The usage model for Pages Functions. */ usageModel: ProjectsCreateResponseDeploymentConfigsProductionUsageModel; /** Constellation bindings used for Pages Functions. */ aiBindings?: ProjectsCreateResponseDeploymentConfigsProductionAiBindingsMap | null; /** Analytics Engine bindings used for Pages Functions. */ analyticsEngineDatasets?: ProjectsCreateResponseDeploymentConfigsProductionAnalyticsEngineDatasetsMap | null; /** Browser bindings used for Pages Functions. */ browsers?: ProjectsCreateResponseDeploymentConfigsProductionBrowsersMap | null; /** D1 databases used for Pages Functions. */ d1Databases?: ProjectsCreateResponseDeploymentConfigsProductionD1DatabasesMap | null; /** Durable Object namespaces used for Pages Functions. */ durableObjectNamespaces?: ProjectsCreateResponseDeploymentConfigsProductionDurableObjectNamespacesMap | null; /** Hyperdrive bindings used for Pages Functions. */ hyperdriveBindings?: ProjectsCreateResponseDeploymentConfigsProductionHyperdriveBindingsMap | null; /** KV namespaces used for Pages Functions. */ kvNamespaces?: ProjectsCreateResponseDeploymentConfigsProductionKvNamespacesMap | null; /** Limits for Pages Functions. */ limits?: ProjectsCreateRequestDeploymentConfigsPreviewLimits | null; /** mTLS bindings used for Pages Functions. */ mtlsCertificates?: ProjectsCreateResponseDeploymentConfigsProductionMtlsCertificatesMap | null; /** Placement setting used for Pages Functions. */ placement?: ProjectsCreateRequestDeploymentConfigsPreviewPlacement | null; /** Queue Producer bindings used for Pages Functions. */ queueProducers?: ProjectsCreateResponseDeploymentConfigsProductionQueueProducersMap | null; /** R2 buckets used for Pages Functions. */ r2Buckets?: ProjectsCreateResponseDeploymentConfigsProductionR2BucketsMap | null; /** Services used for Pages Functions. */ services?: ProjectsCreateResponseDeploymentConfigsProductionServicesMap | null; /** Vectorize bindings used for Pages Functions. */ vectorizeBindings?: ProjectsCreateResponseDeploymentConfigsProductionVectorizeBindingsMap | null; /** Hash of the Wrangler configuration used for the deployment. */ wranglerConfigHash?: string | null; } export const ProjectsCreateResponseDeploymentConfigsProduction = /*@__PURE__*/ S.suspend(() => S.Struct({ alwaysUseLatestCompatibilityDate: S.Boolean.pipe( T.Body("always_use_latest_compatibility_date"), ), buildImageMajorVersion: S.Number.pipe( T.Body("build_image_major_version"), ), compatibilityDate: S.String.pipe(T.Body("compatibility_date")), compatibilityFlags: ProjectsCreateResponseDeploymentConfigsProductionCompatibilityFlagsList.pipe( T.Body("compatibility_flags"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), failOpen: S.Boolean.pipe(T.Body("fail_open")), usageModel: ProjectsCreateResponseDeploymentConfigsProductionUsageModel.pipe( T.Body("usage_model"), ), aiBindings: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsProductionAiBindingsMap, ).pipe(T.Body("ai_bindings")), ), analyticsEngineDatasets: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsProductionAnalyticsEngineDatasetsMap, ).pipe(T.Body("analytics_engine_datasets")), ), browsers: S.optional( S.NullOr(ProjectsCreateResponseDeploymentConfigsProductionBrowsersMap), ), d1Databases: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsProductionD1DatabasesMap, ).pipe(T.Body("d1_databases")), ), durableObjectNamespaces: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsProductionDurableObjectNamespacesMap, ).pipe(T.Body("durable_object_namespaces")), ), hyperdriveBindings: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsProductionHyperdriveBindingsMap, ).pipe(T.Body("hyperdrive_bindings")), ), kvNamespaces: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsProductionKvNamespacesMap, ).pipe(T.Body("kv_namespaces")), ), limits: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewLimits), ), mtlsCertificates: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsProductionMtlsCertificatesMap, ).pipe(T.Body("mtls_certificates")), ), placement: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewPlacement), ), queueProducers: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsProductionQueueProducersMap, ).pipe(T.Body("queue_producers")), ), r2Buckets: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsProductionR2BucketsMap, ).pipe(T.Body("r2_buckets")), ), services: S.optional( S.NullOr(ProjectsCreateResponseDeploymentConfigsProductionServicesMap), ), vectorizeBindings: S.optional( S.NullOr( ProjectsCreateResponseDeploymentConfigsProductionVectorizeBindingsMap, ).pipe(T.Body("vectorize_bindings")), ), wranglerConfigHash: S.optional( S.NullOr(S.String).pipe(T.Body("wrangler_config_hash")), ), }), ).annotate({ identifier: "ProjectsCreateResponseDeploymentConfigsProduction", }) as any as S.Schema; export interface ProjectsCreateResponseDeploymentConfigs { /** Configs for preview deploys. */ preview: ProjectsCreateResponseDeploymentConfigsPreview; /** Configs for production deploys. */ production: ProjectsCreateResponseDeploymentConfigsProduction; } export const ProjectsCreateResponseDeploymentConfigs = /*@__PURE__*/ S.suspend( () => S.Struct({ preview: ProjectsCreateResponseDeploymentConfigsPreview, production: ProjectsCreateResponseDeploymentConfigsProduction, }), ).annotate({ identifier: "ProjectsCreateResponseDeploymentConfigs", }) as any as S.Schema; export type ProjectsCreateResponseBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export const ProjectsCreateResponseBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export type ProjectsCreateResponseDomainsList = Array; export const ProjectsCreateResponseDomainsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateResponseSourceConfigPathExcludesList = Array; export const ProjectsCreateResponseSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateResponseSourceConfigPathIncludesList = Array; export const ProjectsCreateResponseSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateResponseSourceConfigPreviewBranchExcludesList = Array; export const ProjectsCreateResponseSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateResponseSourceConfigPreviewBranchIncludesList = Array; export const ProjectsCreateResponseSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsCreateResponseSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsCreateResponseSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsCreateResponseSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled: boolean; /** The owner of the repository. */ owner: string; /** The owner ID of the repository. */ ownerId: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes: ProjectsCreateResponseSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes: ProjectsCreateResponseSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes: ProjectsCreateResponseSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes: ProjectsCreateResponseSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting: ProjectsCreateResponseSourceConfigPreviewDeploymentSetting; /** The production branch of the repository. */ productionBranch: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled: boolean; /** The ID of the repository. */ repoId: string; /** The name of the repository. */ repoName: string; } export const ProjectsCreateResponseSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.Boolean.pipe(T.Body("deployments_enabled")), owner: S.String, ownerId: S.String.pipe(T.Body("owner_id")), pathExcludes: ProjectsCreateResponseSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), pathIncludes: ProjectsCreateResponseSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), prCommentsEnabled: S.Boolean.pipe(T.Body("pr_comments_enabled")), previewBranchExcludes: ProjectsCreateResponseSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), previewBranchIncludes: ProjectsCreateResponseSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), previewDeploymentSetting: ProjectsCreateResponseSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), productionBranch: S.String.pipe(T.Body("production_branch")), productionDeploymentsEnabled: S.Boolean.pipe( T.Body("production_deployments_enabled"), ), repoId: S.String.pipe(T.Body("repo_id")), repoName: S.String.pipe(T.Body("repo_name")), }), ).annotate({ identifier: "ProjectsCreateResponseSourceConfig", }) as any as S.Schema; export type ProjectsCreateResponseSourceType = "github" | "gitlab"; export const ProjectsCreateResponseSourceType = /*@__PURE__*/ S.String; export interface ProjectsCreateResponseSource { config: ProjectsCreateResponseSourceConfig; /** The source control management provider. */ type: ProjectsCreateResponseSourceType; } export const ProjectsCreateResponseSource = /*@__PURE__*/ S.suspend(() => S.Struct({ config: ProjectsCreateResponseSourceConfig, type: ProjectsCreateResponseSourceType, }), ).annotate({ identifier: "ProjectsCreateResponseSource", }) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateProjectResponse { /** ID of the project. */ id: string; /** Most recent production deployment of the project. */ canonicalDeployment: ProjectsCreateResponseCanonicalDeployment; /** When the project was created. */ createdOn: string; /** Configs for deployments in a project. */ deploymentConfigs: ProjectsCreateResponseDeploymentConfigs; /** Framework the project is using. */ framework: string; /** Version of the framework the project is using. */ frameworkVersion: string; /** Most recent deployment of the project. */ latestDeployment: ProjectsCreateResponseCanonicalDeployment; /** Name of the project. */ name: string; /** Name of the preview script. */ previewScriptName: string; /** Production branch of the project. Used to identify production deployments. */ productionBranch: string; /** Name of the production script. */ productionScriptName: string; /** Whether the project uses functions. */ usesFunctions: boolean; /** Configs for the project build process. */ buildConfig?: ProjectsCreateResponseCanonicalDeploymentBuildConfig | null; /** A list of associated custom domains for the project. */ domains?: ProjectsCreateResponseDomainsList | null; /** Configs for the project source control. */ source?: ProjectsCreateResponseSource | null; /** The Cloudflare subdomain associated with the project. */ subdomain?: string | null; } export const CreateProjectResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, canonicalDeployment: ProjectsCreateResponseCanonicalDeployment.pipe( T.Body("canonical_deployment"), ), createdOn: S.String.pipe(T.Body("created_on")), deploymentConfigs: ProjectsCreateResponseDeploymentConfigs.pipe( T.Body("deployment_configs"), ), framework: S.String, frameworkVersion: S.String.pipe(T.Body("framework_version")), latestDeployment: ProjectsCreateResponseCanonicalDeployment.pipe( T.Body("latest_deployment"), ), name: S.String, previewScriptName: S.String.pipe(T.Body("preview_script_name")), productionBranch: S.String.pipe(T.Body("production_branch")), productionScriptName: S.String.pipe(T.Body("production_script_name")), usesFunctions: S.Boolean.pipe(T.Body("uses_functions")), buildConfig: S.optional( S.NullOr(ProjectsCreateResponseCanonicalDeploymentBuildConfig).pipe( T.Body("build_config"), ), ), domains: S.optional(S.NullOr(ProjectsCreateResponseDomainsList)), source: S.optional(S.NullOr(ProjectsCreateResponseSource)), subdomain: S.optional(S.NullOr(S.String)), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "CreateProjectResponse", }) as any as S.Schema; export interface CreateProjectDeploymentRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; /** The branch to build the new deployment from. */ branch?: string; commitDirty?: boolean; commitHash?: string; commitMessage?: string; /** JSON string mapping file paths to their content hashes. */ manifest?: string; pagesBuildOutputDir?: string; wranglerConfigHash?: string; headers?: unknown; redirects?: unknown; routesJson?: unknown; workerBundle?: unknown; workerJs?: unknown; functionsFilepathRoutingConfigJson?: unknown; } export const CreateProjectDeploymentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), branch: S.optional(S.String), commitDirty: S.optional(S.Boolean.pipe(T.Body("commit_dirty"))), commitHash: S.optional(S.String.pipe(T.Body("commit_hash"))), commitMessage: S.optional(S.String.pipe(T.Body("commit_message"))), manifest: S.optional(S.String), pagesBuildOutputDir: S.optional( S.String.pipe(T.Body("pages_build_output_dir")), ), wranglerConfigHash: S.optional( S.String.pipe(T.Body("wrangler_config_hash")), ), headers: S.optional(S.Unknown.pipe(T.Body("_headers"))), redirects: S.optional(S.Unknown.pipe(T.Body("_redirects"))), routesJson: S.optional(S.Unknown.pipe(T.Body("_routes.json"))), workerBundle: S.optional(S.Unknown.pipe(T.Body("_worker.bundle"))), workerJs: S.optional(S.Unknown.pipe(T.Body("_worker.js"))), functionsFilepathRoutingConfigJson: S.optional( S.Unknown.pipe(T.Body("functions-filepath-routing-config.json")), ), }) .pipe( T.Http({ method: "POST", uri: "/accounts/{account_id}/pages/projects/{project_name}/deployments", code: 200, contentType: "multipart", }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "CreateProjectDeploymentRequest", }) as any as S.Schema; export type ProjectsDeploymentsCreateResponseAliasesList = Array; export const ProjectsDeploymentsCreateResponseAliasesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsCreateResponseBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export const ProjectsDeploymentsCreateResponseBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export type ProjectsDeploymentsCreateResponseDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export const ProjectsDeploymentsCreateResponseDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export type ProjectsDeploymentsCreateResponseDeploymentTriggerType = | "github:push" | "ad_hoc" | "deploy_hook"; export const ProjectsDeploymentsCreateResponseDeploymentTriggerType = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsCreateResponseDeploymentTrigger { /** Additional info about the trigger. */ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; /** What caused the deployment. */ type: ProjectsDeploymentsCreateResponseDeploymentTriggerType; } export const ProjectsDeploymentsCreateResponseDeploymentTrigger = /*@__PURE__*/ S.suspend(() => S.Struct({ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata, type: ProjectsDeploymentsCreateResponseDeploymentTriggerType, }), ).annotate({ identifier: "ProjectsDeploymentsCreateResponseDeploymentTrigger", }) as any as S.Schema; export type ProjectsDeploymentsCreateResponseEnvironment = | "preview" | "production"; export const ProjectsDeploymentsCreateResponseEnvironment = /*@__PURE__*/ S.String; export type ProjectsDeploymentsCreateResponseLatestStageName = | "queued" | "initialize" | "clone_repo" | "build" | "deploy"; export const ProjectsDeploymentsCreateResponseLatestStageName = /*@__PURE__*/ S.String; export type ProjectsDeploymentsCreateResponseLatestStageStatus = | "success" | "idle" | "active" | "failure" | "canceled"; export const ProjectsDeploymentsCreateResponseLatestStageStatus = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsCreateResponseLatestStage { /** When the stage ended. */ endedOn: string; /** The current build stage. */ name: ProjectsDeploymentsCreateResponseLatestStageName; /** When the stage started. */ startedOn: string; /** State of the current stage. */ status: ProjectsDeploymentsCreateResponseLatestStageStatus; } export const ProjectsDeploymentsCreateResponseLatestStage = /*@__PURE__*/ S.suspend(() => S.Struct({ endedOn: S.String.pipe(T.Body("ended_on")), name: ProjectsDeploymentsCreateResponseLatestStageName, startedOn: S.String.pipe(T.Body("started_on")), status: ProjectsDeploymentsCreateResponseLatestStageStatus, }), ).annotate({ identifier: "ProjectsDeploymentsCreateResponseLatestStage", }) as any as S.Schema; export type ProjectsDeploymentsCreateResponseSourceConfigPathExcludesList = Array; export const ProjectsDeploymentsCreateResponseSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsCreateResponseSourceConfigPathIncludesList = Array; export const ProjectsDeploymentsCreateResponseSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsCreateResponseSourceConfigPreviewBranchExcludesList = Array; export const ProjectsDeploymentsCreateResponseSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsCreateResponseSourceConfigPreviewBranchIncludesList = Array; export const ProjectsDeploymentsCreateResponseSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsCreateResponseSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsDeploymentsCreateResponseSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsCreateResponseSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled: boolean; /** The owner of the repository. */ owner: string; /** The owner ID of the repository. */ ownerId: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes: ProjectsDeploymentsCreateResponseSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes: ProjectsDeploymentsCreateResponseSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes: ProjectsDeploymentsCreateResponseSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes: ProjectsDeploymentsCreateResponseSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting: ProjectsDeploymentsCreateResponseSourceConfigPreviewDeploymentSetting; /** The production branch of the repository. */ productionBranch: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled: boolean; /** The ID of the repository. */ repoId: string; /** The name of the repository. */ repoName: string; } export const ProjectsDeploymentsCreateResponseSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.Boolean.pipe(T.Body("deployments_enabled")), owner: S.String, ownerId: S.String.pipe(T.Body("owner_id")), pathExcludes: ProjectsDeploymentsCreateResponseSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), pathIncludes: ProjectsDeploymentsCreateResponseSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), prCommentsEnabled: S.Boolean.pipe(T.Body("pr_comments_enabled")), previewBranchExcludes: ProjectsDeploymentsCreateResponseSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), previewBranchIncludes: ProjectsDeploymentsCreateResponseSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), previewDeploymentSetting: ProjectsDeploymentsCreateResponseSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), productionBranch: S.String.pipe(T.Body("production_branch")), productionDeploymentsEnabled: S.Boolean.pipe( T.Body("production_deployments_enabled"), ), repoId: S.String.pipe(T.Body("repo_id")), repoName: S.String.pipe(T.Body("repo_name")), }), ).annotate({ identifier: "ProjectsDeploymentsCreateResponseSourceConfig", }) as any as S.Schema; export type ProjectsDeploymentsCreateResponseSourceType = "github" | "gitlab"; export const ProjectsDeploymentsCreateResponseSourceType = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsCreateResponseSource { config: ProjectsDeploymentsCreateResponseSourceConfig; /** The source control management provider. */ type: ProjectsDeploymentsCreateResponseSourceType; } export const ProjectsDeploymentsCreateResponseSource = /*@__PURE__*/ S.suspend( () => S.Struct({ config: ProjectsDeploymentsCreateResponseSourceConfig, type: ProjectsDeploymentsCreateResponseSourceType, }), ).annotate({ identifier: "ProjectsDeploymentsCreateResponseSource", }) as any as S.Schema; export type ProjectsDeploymentsCreateResponseStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export const ProjectsDeploymentsCreateResponseStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export type ProjectsDeploymentsCreateResponseStagesList = Array; export const ProjectsDeploymentsCreateResponseStagesList = /*@__PURE__*/ S.Array( ProjectsCreateResponseCanonicalDeploymentStagesItem, ) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateProjectDeploymentResponse { /** Id of the deployment. */ id: string; /** A list of alias URLs pointing to this deployment. */ aliases: ProjectsDeploymentsCreateResponseAliasesList; /** Configs for the project build process. */ buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig; /** When the deployment was created. */ createdOn: string; /** Info about what caused the deployment. */ deploymentTrigger: ProjectsDeploymentsCreateResponseDeploymentTrigger; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Type of deploy. */ environment: ProjectsDeploymentsCreateResponseEnvironment; /** If the deployment has been skipped. */ isSkipped: boolean; /** The status of the deployment. */ latestStage: ProjectsDeploymentsCreateResponseLatestStage; /** When the deployment was last modified. */ modifiedOn: string; /** Id of the project. */ projectId: string; /** Name of the project. */ projectName: string; /** Short Id (8 character) of the deployment. */ shortId: string; /** Configs for the project source control. */ source: ProjectsDeploymentsCreateResponseSource; /** List of past stages. */ stages: ProjectsDeploymentsCreateResponseStagesList; /** The live URL to view this deployment. */ url: string; /** Whether the deployment uses functions. */ usesFunctions?: boolean | null; } export const CreateProjectDeploymentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, aliases: ProjectsDeploymentsCreateResponseAliasesList, buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig.pipe( T.Body("build_config"), ), createdOn: S.String.pipe(T.Body("created_on")), deploymentTrigger: ProjectsDeploymentsCreateResponseDeploymentTrigger.pipe( T.Body("deployment_trigger"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), environment: ProjectsDeploymentsCreateResponseEnvironment, isSkipped: S.Boolean.pipe(T.Body("is_skipped")), latestStage: ProjectsDeploymentsCreateResponseLatestStage.pipe( T.Body("latest_stage"), ), modifiedOn: S.String.pipe(T.Body("modified_on")), projectId: S.String.pipe(T.Body("project_id")), projectName: S.String.pipe(T.Body("project_name")), shortId: S.String.pipe(T.Body("short_id")), source: ProjectsDeploymentsCreateResponseSource, stages: ProjectsDeploymentsCreateResponseStagesList, url: S.String, usesFunctions: S.optional( S.NullOr(S.Boolean).pipe(T.Body("uses_functions")), ), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "CreateProjectDeploymentResponse", }) as any as S.Schema; export interface CreateProjectDomainRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; /** The domain name. */ name: string; } export const CreateProjectDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), name: S.String, }) .pipe( T.Http({ method: "POST", uri: "/accounts/{account_id}/pages/projects/{project_name}/domains", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "CreateProjectDomainRequest", }) as any as S.Schema; export type ProjectsDomainsCreateResponseCertificateAuthority = | "google" | "lets_encrypt"; export const ProjectsDomainsCreateResponseCertificateAuthority = /*@__PURE__*/ S.String; export type ProjectsDomainsCreateResponseStatus = | "initializing" | "pending" | "active" | "deactivated" | "blocked" | "error"; export const ProjectsDomainsCreateResponseStatus = /*@__PURE__*/ S.String; export type ProjectsDomainsCreateResponseValidationDataMethod = "http" | "txt"; export const ProjectsDomainsCreateResponseValidationDataMethod = /*@__PURE__*/ S.String; export type ProjectsDomainsCreateResponseValidationDataStatus = | "initializing" | "pending" | "active" | "deactivated" | "error"; export const ProjectsDomainsCreateResponseValidationDataStatus = /*@__PURE__*/ S.String; export interface ProjectsDomainsCreateResponseValidationData { method: ProjectsDomainsCreateResponseValidationDataMethod; status: ProjectsDomainsCreateResponseValidationDataStatus; errorMessage?: string | null; txtName?: string | null; txtValue?: string | null; } export const ProjectsDomainsCreateResponseValidationData = /*@__PURE__*/ S.suspend(() => S.Struct({ method: ProjectsDomainsCreateResponseValidationDataMethod, status: ProjectsDomainsCreateResponseValidationDataStatus, errorMessage: S.optional( S.NullOr(S.String).pipe(T.Body("error_message")), ), txtName: S.optional(S.NullOr(S.String).pipe(T.Body("txt_name"))), txtValue: S.optional(S.NullOr(S.String).pipe(T.Body("txt_value"))), }), ).annotate({ identifier: "ProjectsDomainsCreateResponseValidationData", }) as any as S.Schema; export type ProjectsDomainsCreateResponseVerificationDataStatus = | "pending" | "active" | "deactivated" | "blocked" | "error"; export const ProjectsDomainsCreateResponseVerificationDataStatus = /*@__PURE__*/ S.String; export interface ProjectsDomainsCreateResponseVerificationData { status: ProjectsDomainsCreateResponseVerificationDataStatus; errorMessage?: string | null; } export const ProjectsDomainsCreateResponseVerificationData = /*@__PURE__*/ S.suspend(() => S.Struct({ status: ProjectsDomainsCreateResponseVerificationDataStatus, errorMessage: S.optional( S.NullOr(S.String).pipe(T.Body("error_message")), ), }), ).annotate({ identifier: "ProjectsDomainsCreateResponseVerificationData", }) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateProjectDomainResponse { id: string; certificateAuthority: ProjectsDomainsCreateResponseCertificateAuthority; createdOn: string; domainId: string; /** The domain name. */ name: string; status: ProjectsDomainsCreateResponseStatus; validationData: ProjectsDomainsCreateResponseValidationData; verificationData: ProjectsDomainsCreateResponseVerificationData; zoneTag: string; } export const CreateProjectDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, certificateAuthority: ProjectsDomainsCreateResponseCertificateAuthority.pipe( T.Body("certificate_authority"), ), createdOn: S.String.pipe(T.Body("created_on")), domainId: S.String.pipe(T.Body("domain_id")), name: S.String, status: ProjectsDomainsCreateResponseStatus, validationData: ProjectsDomainsCreateResponseValidationData.pipe( T.Body("validation_data"), ), verificationData: ProjectsDomainsCreateResponseVerificationData.pipe( T.Body("verification_data"), ), zoneTag: S.String.pipe(T.Body("zone_tag")), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "CreateProjectDomainResponse", }) as any as S.Schema; export interface DeleteProjectRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; } export const DeleteProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), }) .pipe( T.Http({ method: "DELETE", uri: "/accounts/{account_id}/pages/projects/{project_name}", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "DeleteProjectRequest", }) as any as S.Schema; export type DeleteProjectResponse = unknown; export const DeleteProjectResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.EnvelopePayloadRoot(), T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "DeleteProjectResponse", }) as any as S.Schema; export interface DeleteProjectDeploymentRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; /** Identifier. */ deploymentId: string; /** Allow deletion of aliased non-production deployments when a normal delete would be rejected. */ force?: boolean; } export const DeleteProjectDeploymentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), deploymentId: S.String.pipe(T.Label("deployment_id")), force: S.optional(S.Boolean.pipe(T.Query())), }) .pipe( T.Http({ method: "DELETE", uri: "/accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "DeleteProjectDeploymentRequest", }) as any as S.Schema; export type DeleteProjectDeploymentResponse = unknown; export const DeleteProjectDeploymentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.EnvelopePayloadRoot(), T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "DeleteProjectDeploymentResponse", }) as any as S.Schema; export interface DeleteProjectDomainRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; /** The domain name. */ domainName: string; } export const DeleteProjectDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), domainName: S.String.pipe(T.Label("domain_name")), }) .pipe( T.Http({ method: "DELETE", uri: "/accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "DeleteProjectDomainRequest", }) as any as S.Schema; export type DeleteProjectDomainResponse = unknown; export const DeleteProjectDomainResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.EnvelopePayloadRoot(), T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "DeleteProjectDomainResponse", }) as any as S.Schema; export interface GetProjectRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; } export const GetProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), }) .pipe( T.Http({ method: "GET", uri: "/accounts/{account_id}/pages/projects/{project_name}", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "GetProjectRequest", }) as any as S.Schema; export type ProjectsGetResponseCanonicalDeploymentAliasesList = Array; export const ProjectsGetResponseCanonicalDeploymentAliasesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsGetResponseCanonicalDeploymentBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export const ProjectsGetResponseCanonicalDeploymentBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export type ProjectsGetResponseCanonicalDeploymentDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export const ProjectsGetResponseCanonicalDeploymentDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export type ProjectsGetResponseCanonicalDeploymentDeploymentTriggerType = | "github:push" | "ad_hoc" | "deploy_hook"; export const ProjectsGetResponseCanonicalDeploymentDeploymentTriggerType = /*@__PURE__*/ S.String; export interface ProjectsGetResponseCanonicalDeploymentDeploymentTrigger { /** Additional info about the trigger. */ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; /** What caused the deployment. */ type: ProjectsGetResponseCanonicalDeploymentDeploymentTriggerType; } export const ProjectsGetResponseCanonicalDeploymentDeploymentTrigger = /*@__PURE__*/ S.suspend(() => S.Struct({ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata, type: ProjectsGetResponseCanonicalDeploymentDeploymentTriggerType, }), ).annotate({ identifier: "ProjectsGetResponseCanonicalDeploymentDeploymentTrigger", }) as any as S.Schema; export type ProjectsGetResponseCanonicalDeploymentEnvironment = | "preview" | "production"; export const ProjectsGetResponseCanonicalDeploymentEnvironment = /*@__PURE__*/ S.String; export type ProjectsGetResponseCanonicalDeploymentLatestStageName = | "queued" | "initialize" | "clone_repo" | "build" | "deploy"; export const ProjectsGetResponseCanonicalDeploymentLatestStageName = /*@__PURE__*/ S.String; export type ProjectsGetResponseCanonicalDeploymentLatestStageStatus = | "success" | "idle" | "active" | "failure" | "canceled"; export const ProjectsGetResponseCanonicalDeploymentLatestStageStatus = /*@__PURE__*/ S.String; export interface ProjectsGetResponseCanonicalDeploymentLatestStage { /** When the stage ended. */ endedOn: string; /** The current build stage. */ name: ProjectsGetResponseCanonicalDeploymentLatestStageName; /** When the stage started. */ startedOn: string; /** State of the current stage. */ status: ProjectsGetResponseCanonicalDeploymentLatestStageStatus; } export const ProjectsGetResponseCanonicalDeploymentLatestStage = /*@__PURE__*/ S.suspend(() => S.Struct({ endedOn: S.String.pipe(T.Body("ended_on")), name: ProjectsGetResponseCanonicalDeploymentLatestStageName, startedOn: S.String.pipe(T.Body("started_on")), status: ProjectsGetResponseCanonicalDeploymentLatestStageStatus, }), ).annotate({ identifier: "ProjectsGetResponseCanonicalDeploymentLatestStage", }) as any as S.Schema; export type ProjectsGetResponseCanonicalDeploymentSourceConfigPathExcludesList = Array; export const ProjectsGetResponseCanonicalDeploymentSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsGetResponseCanonicalDeploymentSourceConfigPathIncludesList = Array; export const ProjectsGetResponseCanonicalDeploymentSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsGetResponseCanonicalDeploymentSourceConfigPreviewBranchExcludesList = Array; export const ProjectsGetResponseCanonicalDeploymentSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsGetResponseCanonicalDeploymentSourceConfigPreviewBranchIncludesList = Array; export const ProjectsGetResponseCanonicalDeploymentSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsGetResponseCanonicalDeploymentSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsGetResponseCanonicalDeploymentSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsGetResponseCanonicalDeploymentSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled: boolean; /** The owner of the repository. */ owner: string; /** The owner ID of the repository. */ ownerId: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes: ProjectsGetResponseCanonicalDeploymentSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes: ProjectsGetResponseCanonicalDeploymentSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes: ProjectsGetResponseCanonicalDeploymentSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes: ProjectsGetResponseCanonicalDeploymentSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting: ProjectsGetResponseCanonicalDeploymentSourceConfigPreviewDeploymentSetting; /** The production branch of the repository. */ productionBranch: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled: boolean; /** The ID of the repository. */ repoId: string; /** The name of the repository. */ repoName: string; } export const ProjectsGetResponseCanonicalDeploymentSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.Boolean.pipe(T.Body("deployments_enabled")), owner: S.String, ownerId: S.String.pipe(T.Body("owner_id")), pathExcludes: ProjectsGetResponseCanonicalDeploymentSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), pathIncludes: ProjectsGetResponseCanonicalDeploymentSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), prCommentsEnabled: S.Boolean.pipe(T.Body("pr_comments_enabled")), previewBranchExcludes: ProjectsGetResponseCanonicalDeploymentSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), previewBranchIncludes: ProjectsGetResponseCanonicalDeploymentSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), previewDeploymentSetting: ProjectsGetResponseCanonicalDeploymentSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), productionBranch: S.String.pipe(T.Body("production_branch")), productionDeploymentsEnabled: S.Boolean.pipe( T.Body("production_deployments_enabled"), ), repoId: S.String.pipe(T.Body("repo_id")), repoName: S.String.pipe(T.Body("repo_name")), }), ).annotate({ identifier: "ProjectsGetResponseCanonicalDeploymentSourceConfig", }) as any as S.Schema; export type ProjectsGetResponseCanonicalDeploymentSourceType = | "github" | "gitlab"; export const ProjectsGetResponseCanonicalDeploymentSourceType = /*@__PURE__*/ S.String; export interface ProjectsGetResponseCanonicalDeploymentSource { config: ProjectsGetResponseCanonicalDeploymentSourceConfig; /** The source control management provider. */ type: ProjectsGetResponseCanonicalDeploymentSourceType; } export const ProjectsGetResponseCanonicalDeploymentSource = /*@__PURE__*/ S.suspend(() => S.Struct({ config: ProjectsGetResponseCanonicalDeploymentSourceConfig, type: ProjectsGetResponseCanonicalDeploymentSourceType, }), ).annotate({ identifier: "ProjectsGetResponseCanonicalDeploymentSource", }) as any as S.Schema; export type ProjectsGetResponseCanonicalDeploymentStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export const ProjectsGetResponseCanonicalDeploymentStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export type ProjectsGetResponseCanonicalDeploymentStagesList = Array; export const ProjectsGetResponseCanonicalDeploymentStagesList = /*@__PURE__*/ S.Array( ProjectsCreateResponseCanonicalDeploymentStagesItem, ) as any as S.Schema; export interface ProjectsGetResponseCanonicalDeployment { /** Id of the deployment. */ id: string; /** A list of alias URLs pointing to this deployment. */ aliases: ProjectsGetResponseCanonicalDeploymentAliasesList; /** Configs for the project build process. */ buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig; /** When the deployment was created. */ createdOn: string; /** Info about what caused the deployment. */ deploymentTrigger: ProjectsGetResponseCanonicalDeploymentDeploymentTrigger; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Type of deploy. */ environment: ProjectsGetResponseCanonicalDeploymentEnvironment; /** If the deployment has been skipped. */ isSkipped: boolean; /** The status of the deployment. */ latestStage: ProjectsGetResponseCanonicalDeploymentLatestStage; /** When the deployment was last modified. */ modifiedOn: string; /** Id of the project. */ projectId: string; /** Name of the project. */ projectName: string; /** Short Id (8 character) of the deployment. */ shortId: string; /** Configs for the project source control. */ source: ProjectsGetResponseCanonicalDeploymentSource; /** List of past stages. */ stages: ProjectsGetResponseCanonicalDeploymentStagesList; /** The live URL to view this deployment. */ url: string; /** Whether the deployment uses functions. */ usesFunctions?: boolean | null; } export const ProjectsGetResponseCanonicalDeployment = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.String, aliases: ProjectsGetResponseCanonicalDeploymentAliasesList, buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig.pipe( T.Body("build_config"), ), createdOn: S.String.pipe(T.Body("created_on")), deploymentTrigger: ProjectsGetResponseCanonicalDeploymentDeploymentTrigger.pipe( T.Body("deployment_trigger"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), environment: ProjectsGetResponseCanonicalDeploymentEnvironment, isSkipped: S.Boolean.pipe(T.Body("is_skipped")), latestStage: ProjectsGetResponseCanonicalDeploymentLatestStage.pipe( T.Body("latest_stage"), ), modifiedOn: S.String.pipe(T.Body("modified_on")), projectId: S.String.pipe(T.Body("project_id")), projectName: S.String.pipe(T.Body("project_name")), shortId: S.String.pipe(T.Body("short_id")), source: ProjectsGetResponseCanonicalDeploymentSource, stages: ProjectsGetResponseCanonicalDeploymentStagesList, url: S.String, usesFunctions: S.optional( S.NullOr(S.Boolean).pipe(T.Body("uses_functions")), ), }), ).annotate({ identifier: "ProjectsGetResponseCanonicalDeployment", }) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsPreviewCompatibilityFlagsList = Array; export const ProjectsGetResponseDeploymentConfigsPreviewCompatibilityFlagsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsPreviewUsageModel = | "standard" | "bundled" | "unbound"; export const ProjectsGetResponseDeploymentConfigsPreviewUsageModel = /*@__PURE__*/ S.String; export type ProjectsGetResponseDeploymentConfigsPreviewAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export const ProjectsGetResponseDeploymentConfigsPreviewAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export type ProjectsGetResponseDeploymentConfigsPreviewAiBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsPreviewAiBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export const ProjectsGetResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export type ProjectsGetResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsPreviewBrowsersMap = { [key: string]: unknown | undefined; }; export const ProjectsGetResponseDeploymentConfigsPreviewBrowsersMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsPreviewD1DatabasesMap = { [key: string]: unknown | undefined; }; export const ProjectsGetResponseDeploymentConfigsPreviewD1DatabasesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsPreviewDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export const ProjectsGetResponseDeploymentConfigsPreviewDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export type ProjectsGetResponseDeploymentConfigsPreviewDurableObjectNamespacesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsPreviewDurableObjectNamespacesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsPreviewHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export const ProjectsGetResponseDeploymentConfigsPreviewHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export type ProjectsGetResponseDeploymentConfigsPreviewHyperdriveBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsPreviewHyperdriveBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsPreviewKvNamespacesMap = { [key: string]: unknown | undefined; }; export const ProjectsGetResponseDeploymentConfigsPreviewKvNamespacesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsPreviewLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export const ProjectsGetResponseDeploymentConfigsPreviewLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export type ProjectsGetResponseDeploymentConfigsPreviewMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export const ProjectsGetResponseDeploymentConfigsPreviewMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export type ProjectsGetResponseDeploymentConfigsPreviewMtlsCertificatesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsPreviewMtlsCertificatesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsPreviewPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export const ProjectsGetResponseDeploymentConfigsPreviewPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export type ProjectsGetResponseDeploymentConfigsPreviewQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export const ProjectsGetResponseDeploymentConfigsPreviewQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export type ProjectsGetResponseDeploymentConfigsPreviewQueueProducersMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsPreviewQueueProducersMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsPreviewR2BucketsMap = { [key: string]: unknown | undefined; }; export const ProjectsGetResponseDeploymentConfigsPreviewR2BucketsMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsPreviewServicesValue = ProjectsCreateResponseDeploymentConfigsPreviewServicesValue; export const ProjectsGetResponseDeploymentConfigsPreviewServicesValue = ProjectsCreateResponseDeploymentConfigsPreviewServicesValue; export type ProjectsGetResponseDeploymentConfigsPreviewServicesMap = { [key: string]: | ProjectsCreateResponseDeploymentConfigsPreviewServicesValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsPreviewServicesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateResponseDeploymentConfigsPreviewServicesValue, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsPreviewVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export const ProjectsGetResponseDeploymentConfigsPreviewVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export type ProjectsGetResponseDeploymentConfigsPreviewVectorizeBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsPreviewVectorizeBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue, ) as any as S.Schema; export interface ProjectsGetResponseDeploymentConfigsPreview { /** Whether to always use the latest compatibility date for Pages Functions. */ alwaysUseLatestCompatibilityDate: boolean; /** The major version of the build image to use for Pages Functions. */ buildImageMajorVersion: number; /** Compatibility date used for Pages Functions. */ compatibilityDate: string; /** Compatibility flags used for Pages Functions. */ compatibilityFlags: ProjectsGetResponseDeploymentConfigsPreviewCompatibilityFlagsList; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Whether to fail open when the deployment config cannot be applied. */ failOpen: boolean; /** The usage model for Pages Functions. */ usageModel: ProjectsGetResponseDeploymentConfigsPreviewUsageModel; /** Constellation bindings used for Pages Functions. */ aiBindings?: ProjectsGetResponseDeploymentConfigsPreviewAiBindingsMap | null; /** Analytics Engine bindings used for Pages Functions. */ analyticsEngineDatasets?: ProjectsGetResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsMap | null; /** Browser bindings used for Pages Functions. */ browsers?: ProjectsGetResponseDeploymentConfigsPreviewBrowsersMap | null; /** D1 databases used for Pages Functions. */ d1Databases?: ProjectsGetResponseDeploymentConfigsPreviewD1DatabasesMap | null; /** Durable Object namespaces used for Pages Functions. */ durableObjectNamespaces?: ProjectsGetResponseDeploymentConfigsPreviewDurableObjectNamespacesMap | null; /** Hyperdrive bindings used for Pages Functions. */ hyperdriveBindings?: ProjectsGetResponseDeploymentConfigsPreviewHyperdriveBindingsMap | null; /** KV namespaces used for Pages Functions. */ kvNamespaces?: ProjectsGetResponseDeploymentConfigsPreviewKvNamespacesMap | null; /** Limits for Pages Functions. */ limits?: ProjectsCreateRequestDeploymentConfigsPreviewLimits | null; /** mTLS bindings used for Pages Functions. */ mtlsCertificates?: ProjectsGetResponseDeploymentConfigsPreviewMtlsCertificatesMap | null; /** Placement setting used for Pages Functions. */ placement?: ProjectsCreateRequestDeploymentConfigsPreviewPlacement | null; /** Queue Producer bindings used for Pages Functions. */ queueProducers?: ProjectsGetResponseDeploymentConfigsPreviewQueueProducersMap | null; /** R2 buckets used for Pages Functions. */ r2Buckets?: ProjectsGetResponseDeploymentConfigsPreviewR2BucketsMap | null; /** Services used for Pages Functions. */ services?: ProjectsGetResponseDeploymentConfigsPreviewServicesMap | null; /** Vectorize bindings used for Pages Functions. */ vectorizeBindings?: ProjectsGetResponseDeploymentConfigsPreviewVectorizeBindingsMap | null; /** Hash of the Wrangler configuration used for the deployment. */ wranglerConfigHash?: string | null; } export const ProjectsGetResponseDeploymentConfigsPreview = /*@__PURE__*/ S.suspend(() => S.Struct({ alwaysUseLatestCompatibilityDate: S.Boolean.pipe( T.Body("always_use_latest_compatibility_date"), ), buildImageMajorVersion: S.Number.pipe( T.Body("build_image_major_version"), ), compatibilityDate: S.String.pipe(T.Body("compatibility_date")), compatibilityFlags: ProjectsGetResponseDeploymentConfigsPreviewCompatibilityFlagsList.pipe( T.Body("compatibility_flags"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), failOpen: S.Boolean.pipe(T.Body("fail_open")), usageModel: ProjectsGetResponseDeploymentConfigsPreviewUsageModel.pipe( T.Body("usage_model"), ), aiBindings: S.optional( S.NullOr(ProjectsGetResponseDeploymentConfigsPreviewAiBindingsMap).pipe( T.Body("ai_bindings"), ), ), analyticsEngineDatasets: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsMap, ).pipe(T.Body("analytics_engine_datasets")), ), browsers: S.optional( S.NullOr(ProjectsGetResponseDeploymentConfigsPreviewBrowsersMap), ), d1Databases: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsPreviewD1DatabasesMap, ).pipe(T.Body("d1_databases")), ), durableObjectNamespaces: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsPreviewDurableObjectNamespacesMap, ).pipe(T.Body("durable_object_namespaces")), ), hyperdriveBindings: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsPreviewHyperdriveBindingsMap, ).pipe(T.Body("hyperdrive_bindings")), ), kvNamespaces: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsPreviewKvNamespacesMap, ).pipe(T.Body("kv_namespaces")), ), limits: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewLimits), ), mtlsCertificates: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsPreviewMtlsCertificatesMap, ).pipe(T.Body("mtls_certificates")), ), placement: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewPlacement), ), queueProducers: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsPreviewQueueProducersMap, ).pipe(T.Body("queue_producers")), ), r2Buckets: S.optional( S.NullOr(ProjectsGetResponseDeploymentConfigsPreviewR2BucketsMap).pipe( T.Body("r2_buckets"), ), ), services: S.optional( S.NullOr(ProjectsGetResponseDeploymentConfigsPreviewServicesMap), ), vectorizeBindings: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsPreviewVectorizeBindingsMap, ).pipe(T.Body("vectorize_bindings")), ), wranglerConfigHash: S.optional( S.NullOr(S.String).pipe(T.Body("wrangler_config_hash")), ), }), ).annotate({ identifier: "ProjectsGetResponseDeploymentConfigsPreview", }) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsProductionCompatibilityFlagsList = Array; export const ProjectsGetResponseDeploymentConfigsProductionCompatibilityFlagsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsProductionUsageModel = | "standard" | "bundled" | "unbound"; export const ProjectsGetResponseDeploymentConfigsProductionUsageModel = /*@__PURE__*/ S.String; export type ProjectsGetResponseDeploymentConfigsProductionAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export const ProjectsGetResponseDeploymentConfigsProductionAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export type ProjectsGetResponseDeploymentConfigsProductionAiBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsProductionAiBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsProductionAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export const ProjectsGetResponseDeploymentConfigsProductionAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export type ProjectsGetResponseDeploymentConfigsProductionAnalyticsEngineDatasetsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsProductionAnalyticsEngineDatasetsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsProductionBrowsersMap = { [key: string]: unknown | undefined; }; export const ProjectsGetResponseDeploymentConfigsProductionBrowsersMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsProductionD1DatabasesMap = { [key: string]: unknown | undefined; }; export const ProjectsGetResponseDeploymentConfigsProductionD1DatabasesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsProductionDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export const ProjectsGetResponseDeploymentConfigsProductionDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export type ProjectsGetResponseDeploymentConfigsProductionDurableObjectNamespacesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsProductionDurableObjectNamespacesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsProductionHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export const ProjectsGetResponseDeploymentConfigsProductionHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export type ProjectsGetResponseDeploymentConfigsProductionHyperdriveBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsProductionHyperdriveBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsProductionKvNamespacesMap = { [key: string]: unknown | undefined; }; export const ProjectsGetResponseDeploymentConfigsProductionKvNamespacesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsProductionLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export const ProjectsGetResponseDeploymentConfigsProductionLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export type ProjectsGetResponseDeploymentConfigsProductionMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export const ProjectsGetResponseDeploymentConfigsProductionMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export type ProjectsGetResponseDeploymentConfigsProductionMtlsCertificatesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsProductionMtlsCertificatesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsProductionPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export const ProjectsGetResponseDeploymentConfigsProductionPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export type ProjectsGetResponseDeploymentConfigsProductionQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export const ProjectsGetResponseDeploymentConfigsProductionQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export type ProjectsGetResponseDeploymentConfigsProductionQueueProducersMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsProductionQueueProducersMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsProductionR2BucketsMap = { [key: string]: unknown | undefined; }; export const ProjectsGetResponseDeploymentConfigsProductionR2BucketsMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsProductionServicesValue = ProjectsCreateResponseDeploymentConfigsPreviewServicesValue; export const ProjectsGetResponseDeploymentConfigsProductionServicesValue = ProjectsCreateResponseDeploymentConfigsPreviewServicesValue; export type ProjectsGetResponseDeploymentConfigsProductionServicesMap = { [key: string]: | ProjectsCreateResponseDeploymentConfigsPreviewServicesValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsProductionServicesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateResponseDeploymentConfigsPreviewServicesValue, ) as any as S.Schema; export type ProjectsGetResponseDeploymentConfigsProductionVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export const ProjectsGetResponseDeploymentConfigsProductionVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export type ProjectsGetResponseDeploymentConfigsProductionVectorizeBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue | undefined; }; export const ProjectsGetResponseDeploymentConfigsProductionVectorizeBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue, ) as any as S.Schema; export interface ProjectsGetResponseDeploymentConfigsProduction { /** Whether to always use the latest compatibility date for Pages Functions. */ alwaysUseLatestCompatibilityDate: boolean; /** The major version of the build image to use for Pages Functions. */ buildImageMajorVersion: number; /** Compatibility date used for Pages Functions. */ compatibilityDate: string; /** Compatibility flags used for Pages Functions. */ compatibilityFlags: ProjectsGetResponseDeploymentConfigsProductionCompatibilityFlagsList; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Whether to fail open when the deployment config cannot be applied. */ failOpen: boolean; /** The usage model for Pages Functions. */ usageModel: ProjectsGetResponseDeploymentConfigsProductionUsageModel; /** Constellation bindings used for Pages Functions. */ aiBindings?: ProjectsGetResponseDeploymentConfigsProductionAiBindingsMap | null; /** Analytics Engine bindings used for Pages Functions. */ analyticsEngineDatasets?: ProjectsGetResponseDeploymentConfigsProductionAnalyticsEngineDatasetsMap | null; /** Browser bindings used for Pages Functions. */ browsers?: ProjectsGetResponseDeploymentConfigsProductionBrowsersMap | null; /** D1 databases used for Pages Functions. */ d1Databases?: ProjectsGetResponseDeploymentConfigsProductionD1DatabasesMap | null; /** Durable Object namespaces used for Pages Functions. */ durableObjectNamespaces?: ProjectsGetResponseDeploymentConfigsProductionDurableObjectNamespacesMap | null; /** Hyperdrive bindings used for Pages Functions. */ hyperdriveBindings?: ProjectsGetResponseDeploymentConfigsProductionHyperdriveBindingsMap | null; /** KV namespaces used for Pages Functions. */ kvNamespaces?: ProjectsGetResponseDeploymentConfigsProductionKvNamespacesMap | null; /** Limits for Pages Functions. */ limits?: ProjectsCreateRequestDeploymentConfigsPreviewLimits | null; /** mTLS bindings used for Pages Functions. */ mtlsCertificates?: ProjectsGetResponseDeploymentConfigsProductionMtlsCertificatesMap | null; /** Placement setting used for Pages Functions. */ placement?: ProjectsCreateRequestDeploymentConfigsPreviewPlacement | null; /** Queue Producer bindings used for Pages Functions. */ queueProducers?: ProjectsGetResponseDeploymentConfigsProductionQueueProducersMap | null; /** R2 buckets used for Pages Functions. */ r2Buckets?: ProjectsGetResponseDeploymentConfigsProductionR2BucketsMap | null; /** Services used for Pages Functions. */ services?: ProjectsGetResponseDeploymentConfigsProductionServicesMap | null; /** Vectorize bindings used for Pages Functions. */ vectorizeBindings?: ProjectsGetResponseDeploymentConfigsProductionVectorizeBindingsMap | null; /** Hash of the Wrangler configuration used for the deployment. */ wranglerConfigHash?: string | null; } export const ProjectsGetResponseDeploymentConfigsProduction = /*@__PURE__*/ S.suspend(() => S.Struct({ alwaysUseLatestCompatibilityDate: S.Boolean.pipe( T.Body("always_use_latest_compatibility_date"), ), buildImageMajorVersion: S.Number.pipe( T.Body("build_image_major_version"), ), compatibilityDate: S.String.pipe(T.Body("compatibility_date")), compatibilityFlags: ProjectsGetResponseDeploymentConfigsProductionCompatibilityFlagsList.pipe( T.Body("compatibility_flags"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), failOpen: S.Boolean.pipe(T.Body("fail_open")), usageModel: ProjectsGetResponseDeploymentConfigsProductionUsageModel.pipe( T.Body("usage_model"), ), aiBindings: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsProductionAiBindingsMap, ).pipe(T.Body("ai_bindings")), ), analyticsEngineDatasets: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsProductionAnalyticsEngineDatasetsMap, ).pipe(T.Body("analytics_engine_datasets")), ), browsers: S.optional( S.NullOr(ProjectsGetResponseDeploymentConfigsProductionBrowsersMap), ), d1Databases: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsProductionD1DatabasesMap, ).pipe(T.Body("d1_databases")), ), durableObjectNamespaces: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsProductionDurableObjectNamespacesMap, ).pipe(T.Body("durable_object_namespaces")), ), hyperdriveBindings: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsProductionHyperdriveBindingsMap, ).pipe(T.Body("hyperdrive_bindings")), ), kvNamespaces: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsProductionKvNamespacesMap, ).pipe(T.Body("kv_namespaces")), ), limits: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewLimits), ), mtlsCertificates: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsProductionMtlsCertificatesMap, ).pipe(T.Body("mtls_certificates")), ), placement: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewPlacement), ), queueProducers: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsProductionQueueProducersMap, ).pipe(T.Body("queue_producers")), ), r2Buckets: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsProductionR2BucketsMap, ).pipe(T.Body("r2_buckets")), ), services: S.optional( S.NullOr(ProjectsGetResponseDeploymentConfigsProductionServicesMap), ), vectorizeBindings: S.optional( S.NullOr( ProjectsGetResponseDeploymentConfigsProductionVectorizeBindingsMap, ).pipe(T.Body("vectorize_bindings")), ), wranglerConfigHash: S.optional( S.NullOr(S.String).pipe(T.Body("wrangler_config_hash")), ), }), ).annotate({ identifier: "ProjectsGetResponseDeploymentConfigsProduction", }) as any as S.Schema; export interface ProjectsGetResponseDeploymentConfigs { /** Configs for preview deploys. */ preview: ProjectsGetResponseDeploymentConfigsPreview; /** Configs for production deploys. */ production: ProjectsGetResponseDeploymentConfigsProduction; } export const ProjectsGetResponseDeploymentConfigs = /*@__PURE__*/ S.suspend( () => S.Struct({ preview: ProjectsGetResponseDeploymentConfigsPreview, production: ProjectsGetResponseDeploymentConfigsProduction, }), ).annotate({ identifier: "ProjectsGetResponseDeploymentConfigs", }) as any as S.Schema; export type ProjectsGetResponseBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export const ProjectsGetResponseBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export type ProjectsGetResponseDomainsList = Array; export const ProjectsGetResponseDomainsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsGetResponseSourceConfigPathExcludesList = Array; export const ProjectsGetResponseSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsGetResponseSourceConfigPathIncludesList = Array; export const ProjectsGetResponseSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsGetResponseSourceConfigPreviewBranchExcludesList = Array; export const ProjectsGetResponseSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsGetResponseSourceConfigPreviewBranchIncludesList = Array; export const ProjectsGetResponseSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsGetResponseSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsGetResponseSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsGetResponseSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled: boolean; /** The owner of the repository. */ owner: string; /** The owner ID of the repository. */ ownerId: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes: ProjectsGetResponseSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes: ProjectsGetResponseSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes: ProjectsGetResponseSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes: ProjectsGetResponseSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting: ProjectsGetResponseSourceConfigPreviewDeploymentSetting; /** The production branch of the repository. */ productionBranch: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled: boolean; /** The ID of the repository. */ repoId: string; /** The name of the repository. */ repoName: string; } export const ProjectsGetResponseSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.Boolean.pipe(T.Body("deployments_enabled")), owner: S.String, ownerId: S.String.pipe(T.Body("owner_id")), pathExcludes: ProjectsGetResponseSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), pathIncludes: ProjectsGetResponseSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), prCommentsEnabled: S.Boolean.pipe(T.Body("pr_comments_enabled")), previewBranchExcludes: ProjectsGetResponseSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), previewBranchIncludes: ProjectsGetResponseSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), previewDeploymentSetting: ProjectsGetResponseSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), productionBranch: S.String.pipe(T.Body("production_branch")), productionDeploymentsEnabled: S.Boolean.pipe( T.Body("production_deployments_enabled"), ), repoId: S.String.pipe(T.Body("repo_id")), repoName: S.String.pipe(T.Body("repo_name")), }), ).annotate({ identifier: "ProjectsGetResponseSourceConfig", }) as any as S.Schema; export type ProjectsGetResponseSourceType = "github" | "gitlab"; export const ProjectsGetResponseSourceType = /*@__PURE__*/ S.String; export interface ProjectsGetResponseSource { config: ProjectsGetResponseSourceConfig; /** The source control management provider. */ type: ProjectsGetResponseSourceType; } export const ProjectsGetResponseSource = /*@__PURE__*/ S.suspend(() => S.Struct({ config: ProjectsGetResponseSourceConfig, type: ProjectsGetResponseSourceType, }), ).annotate({ identifier: "ProjectsGetResponseSource", }) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetProjectResponse { /** ID of the project. */ id: string; /** Most recent production deployment of the project. */ canonicalDeployment: ProjectsGetResponseCanonicalDeployment; /** When the project was created. */ createdOn: string; /** Configs for deployments in a project. */ deploymentConfigs: ProjectsGetResponseDeploymentConfigs; /** Framework the project is using. */ framework: string; /** Version of the framework the project is using. */ frameworkVersion: string; /** Most recent deployment of the project. */ latestDeployment: ProjectsGetResponseCanonicalDeployment; /** Name of the project. */ name: string; /** Name of the preview script. */ previewScriptName: string; /** Production branch of the project. Used to identify production deployments. */ productionBranch: string; /** Name of the production script. */ productionScriptName: string; /** Whether the project uses functions. */ usesFunctions: boolean; /** Configs for the project build process. */ buildConfig?: ProjectsCreateResponseCanonicalDeploymentBuildConfig | null; /** A list of associated custom domains for the project. */ domains?: ProjectsGetResponseDomainsList | null; /** Configs for the project source control. */ source?: ProjectsGetResponseSource | null; /** The Cloudflare subdomain associated with the project. */ subdomain?: string | null; } export const GetProjectResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, canonicalDeployment: ProjectsGetResponseCanonicalDeployment.pipe( T.Body("canonical_deployment"), ), createdOn: S.String.pipe(T.Body("created_on")), deploymentConfigs: ProjectsGetResponseDeploymentConfigs.pipe( T.Body("deployment_configs"), ), framework: S.String, frameworkVersion: S.String.pipe(T.Body("framework_version")), latestDeployment: ProjectsGetResponseCanonicalDeployment.pipe( T.Body("latest_deployment"), ), name: S.String, previewScriptName: S.String.pipe(T.Body("preview_script_name")), productionBranch: S.String.pipe(T.Body("production_branch")), productionScriptName: S.String.pipe(T.Body("production_script_name")), usesFunctions: S.Boolean.pipe(T.Body("uses_functions")), buildConfig: S.optional( S.NullOr(ProjectsCreateResponseCanonicalDeploymentBuildConfig).pipe( T.Body("build_config"), ), ), domains: S.optional(S.NullOr(ProjectsGetResponseDomainsList)), source: S.optional(S.NullOr(ProjectsGetResponseSource)), subdomain: S.optional(S.NullOr(S.String)), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "GetProjectResponse", }) as any as S.Schema; export interface GetProjectDeploymentRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; /** Identifier. */ deploymentId: string; } export const GetProjectDeploymentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), deploymentId: S.String.pipe(T.Label("deployment_id")), }) .pipe( T.Http({ method: "GET", uri: "/accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "GetProjectDeploymentRequest", }) as any as S.Schema; export type ProjectsDeploymentsGetResponseAliasesList = Array; export const ProjectsDeploymentsGetResponseAliasesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsGetResponseBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export const ProjectsDeploymentsGetResponseBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export type ProjectsDeploymentsGetResponseDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export const ProjectsDeploymentsGetResponseDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export type ProjectsDeploymentsGetResponseDeploymentTriggerType = | "github:push" | "ad_hoc" | "deploy_hook"; export const ProjectsDeploymentsGetResponseDeploymentTriggerType = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsGetResponseDeploymentTrigger { /** Additional info about the trigger. */ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; /** What caused the deployment. */ type: ProjectsDeploymentsGetResponseDeploymentTriggerType; } export const ProjectsDeploymentsGetResponseDeploymentTrigger = /*@__PURE__*/ S.suspend(() => S.Struct({ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata, type: ProjectsDeploymentsGetResponseDeploymentTriggerType, }), ).annotate({ identifier: "ProjectsDeploymentsGetResponseDeploymentTrigger", }) as any as S.Schema; export type ProjectsDeploymentsGetResponseEnvironment = | "preview" | "production"; export const ProjectsDeploymentsGetResponseEnvironment = /*@__PURE__*/ S.String; export type ProjectsDeploymentsGetResponseLatestStageName = | "queued" | "initialize" | "clone_repo" | "build" | "deploy"; export const ProjectsDeploymentsGetResponseLatestStageName = /*@__PURE__*/ S.String; export type ProjectsDeploymentsGetResponseLatestStageStatus = | "success" | "idle" | "active" | "failure" | "canceled"; export const ProjectsDeploymentsGetResponseLatestStageStatus = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsGetResponseLatestStage { /** When the stage ended. */ endedOn: string; /** The current build stage. */ name: ProjectsDeploymentsGetResponseLatestStageName; /** When the stage started. */ startedOn: string; /** State of the current stage. */ status: ProjectsDeploymentsGetResponseLatestStageStatus; } export const ProjectsDeploymentsGetResponseLatestStage = /*@__PURE__*/ S.suspend(() => S.Struct({ endedOn: S.String.pipe(T.Body("ended_on")), name: ProjectsDeploymentsGetResponseLatestStageName, startedOn: S.String.pipe(T.Body("started_on")), status: ProjectsDeploymentsGetResponseLatestStageStatus, }), ).annotate({ identifier: "ProjectsDeploymentsGetResponseLatestStage", }) as any as S.Schema; export type ProjectsDeploymentsGetResponseSourceConfigPathExcludesList = Array; export const ProjectsDeploymentsGetResponseSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsGetResponseSourceConfigPathIncludesList = Array; export const ProjectsDeploymentsGetResponseSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsGetResponseSourceConfigPreviewBranchExcludesList = Array; export const ProjectsDeploymentsGetResponseSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsGetResponseSourceConfigPreviewBranchIncludesList = Array; export const ProjectsDeploymentsGetResponseSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsGetResponseSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsDeploymentsGetResponseSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsGetResponseSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled: boolean; /** The owner of the repository. */ owner: string; /** The owner ID of the repository. */ ownerId: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes: ProjectsDeploymentsGetResponseSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes: ProjectsDeploymentsGetResponseSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes: ProjectsDeploymentsGetResponseSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes: ProjectsDeploymentsGetResponseSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting: ProjectsDeploymentsGetResponseSourceConfigPreviewDeploymentSetting; /** The production branch of the repository. */ productionBranch: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled: boolean; /** The ID of the repository. */ repoId: string; /** The name of the repository. */ repoName: string; } export const ProjectsDeploymentsGetResponseSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.Boolean.pipe(T.Body("deployments_enabled")), owner: S.String, ownerId: S.String.pipe(T.Body("owner_id")), pathExcludes: ProjectsDeploymentsGetResponseSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), pathIncludes: ProjectsDeploymentsGetResponseSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), prCommentsEnabled: S.Boolean.pipe(T.Body("pr_comments_enabled")), previewBranchExcludes: ProjectsDeploymentsGetResponseSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), previewBranchIncludes: ProjectsDeploymentsGetResponseSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), previewDeploymentSetting: ProjectsDeploymentsGetResponseSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), productionBranch: S.String.pipe(T.Body("production_branch")), productionDeploymentsEnabled: S.Boolean.pipe( T.Body("production_deployments_enabled"), ), repoId: S.String.pipe(T.Body("repo_id")), repoName: S.String.pipe(T.Body("repo_name")), }), ).annotate({ identifier: "ProjectsDeploymentsGetResponseSourceConfig", }) as any as S.Schema; export type ProjectsDeploymentsGetResponseSourceType = "github" | "gitlab"; export const ProjectsDeploymentsGetResponseSourceType = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsGetResponseSource { config: ProjectsDeploymentsGetResponseSourceConfig; /** The source control management provider. */ type: ProjectsDeploymentsGetResponseSourceType; } export const ProjectsDeploymentsGetResponseSource = /*@__PURE__*/ S.suspend( () => S.Struct({ config: ProjectsDeploymentsGetResponseSourceConfig, type: ProjectsDeploymentsGetResponseSourceType, }), ).annotate({ identifier: "ProjectsDeploymentsGetResponseSource", }) as any as S.Schema; export type ProjectsDeploymentsGetResponseStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export const ProjectsDeploymentsGetResponseStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export type ProjectsDeploymentsGetResponseStagesList = Array; export const ProjectsDeploymentsGetResponseStagesList = /*@__PURE__*/ S.Array( ProjectsCreateResponseCanonicalDeploymentStagesItem, ) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetProjectDeploymentResponse { /** Id of the deployment. */ id: string; /** A list of alias URLs pointing to this deployment. */ aliases: ProjectsDeploymentsGetResponseAliasesList; /** Configs for the project build process. */ buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig; /** When the deployment was created. */ createdOn: string; /** Info about what caused the deployment. */ deploymentTrigger: ProjectsDeploymentsGetResponseDeploymentTrigger; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Type of deploy. */ environment: ProjectsDeploymentsGetResponseEnvironment; /** If the deployment has been skipped. */ isSkipped: boolean; /** The status of the deployment. */ latestStage: ProjectsDeploymentsGetResponseLatestStage; /** When the deployment was last modified. */ modifiedOn: string; /** Id of the project. */ projectId: string; /** Name of the project. */ projectName: string; /** Short Id (8 character) of the deployment. */ shortId: string; /** Configs for the project source control. */ source: ProjectsDeploymentsGetResponseSource; /** List of past stages. */ stages: ProjectsDeploymentsGetResponseStagesList; /** The live URL to view this deployment. */ url: string; /** Whether the deployment uses functions. */ usesFunctions?: boolean | null; } export const GetProjectDeploymentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, aliases: ProjectsDeploymentsGetResponseAliasesList, buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig.pipe( T.Body("build_config"), ), createdOn: S.String.pipe(T.Body("created_on")), deploymentTrigger: ProjectsDeploymentsGetResponseDeploymentTrigger.pipe( T.Body("deployment_trigger"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), environment: ProjectsDeploymentsGetResponseEnvironment, isSkipped: S.Boolean.pipe(T.Body("is_skipped")), latestStage: ProjectsDeploymentsGetResponseLatestStage.pipe( T.Body("latest_stage"), ), modifiedOn: S.String.pipe(T.Body("modified_on")), projectId: S.String.pipe(T.Body("project_id")), projectName: S.String.pipe(T.Body("project_name")), shortId: S.String.pipe(T.Body("short_id")), source: ProjectsDeploymentsGetResponseSource, stages: ProjectsDeploymentsGetResponseStagesList, url: S.String, usesFunctions: S.optional( S.NullOr(S.Boolean).pipe(T.Body("uses_functions")), ), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "GetProjectDeploymentResponse", }) as any as S.Schema; export interface GetProjectDeploymentHistoryLogRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; /** Identifier. */ deploymentId: string; } export const GetProjectDeploymentHistoryLogRequest = /*@__PURE__*/ S.suspend( () => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), deploymentId: S.String.pipe(T.Label("deployment_id")), }) .pipe( T.Http({ method: "GET", uri: "/accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/history/logs", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "GetProjectDeploymentHistoryLogRequest", }) as any as S.Schema; export interface ProjectsDeploymentsHistoryLogsGetResponseDataItem { line: string; ts: string; } export const ProjectsDeploymentsHistoryLogsGetResponseDataItem = /*@__PURE__*/ S.suspend(() => S.Struct({ line: S.String, ts: S.String, }), ).annotate({ identifier: "ProjectsDeploymentsHistoryLogsGetResponseDataItem", }) as any as S.Schema; export type ProjectsDeploymentsHistoryLogsGetResponseDataList = Array; export const ProjectsDeploymentsHistoryLogsGetResponseDataList = /*@__PURE__*/ S.Array( ProjectsDeploymentsHistoryLogsGetResponseDataItem, ) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetProjectDeploymentHistoryLogResponse { data: ProjectsDeploymentsHistoryLogsGetResponseDataList; includesContainerLogs: boolean; total: number; } export const GetProjectDeploymentHistoryLogResponse = /*@__PURE__*/ S.suspend( () => S.Struct({ data: ProjectsDeploymentsHistoryLogsGetResponseDataList, includesContainerLogs: S.Boolean.pipe(T.Body("includes_container_logs")), total: S.Number, }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "GetProjectDeploymentHistoryLogResponse", }) as any as S.Schema; export interface GetProjectDomainRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; /** The domain name. */ domainName: string; } export const GetProjectDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), domainName: S.String.pipe(T.Label("domain_name")), }) .pipe( T.Http({ method: "GET", uri: "/accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "GetProjectDomainRequest", }) as any as S.Schema; export type ProjectsDomainsGetResponseCertificateAuthority = | "google" | "lets_encrypt"; export const ProjectsDomainsGetResponseCertificateAuthority = /*@__PURE__*/ S.String; export type ProjectsDomainsGetResponseStatus = | "initializing" | "pending" | "active" | "deactivated" | "blocked" | "error"; export const ProjectsDomainsGetResponseStatus = /*@__PURE__*/ S.String; export type ProjectsDomainsGetResponseValidationDataMethod = "http" | "txt"; export const ProjectsDomainsGetResponseValidationDataMethod = /*@__PURE__*/ S.String; export type ProjectsDomainsGetResponseValidationDataStatus = | "initializing" | "pending" | "active" | "deactivated" | "error"; export const ProjectsDomainsGetResponseValidationDataStatus = /*@__PURE__*/ S.String; export interface ProjectsDomainsGetResponseValidationData { method: ProjectsDomainsGetResponseValidationDataMethod; status: ProjectsDomainsGetResponseValidationDataStatus; errorMessage?: string | null; txtName?: string | null; txtValue?: string | null; } export const ProjectsDomainsGetResponseValidationData = /*@__PURE__*/ S.suspend( () => S.Struct({ method: ProjectsDomainsGetResponseValidationDataMethod, status: ProjectsDomainsGetResponseValidationDataStatus, errorMessage: S.optional( S.NullOr(S.String).pipe(T.Body("error_message")), ), txtName: S.optional(S.NullOr(S.String).pipe(T.Body("txt_name"))), txtValue: S.optional(S.NullOr(S.String).pipe(T.Body("txt_value"))), }), ).annotate({ identifier: "ProjectsDomainsGetResponseValidationData", }) as any as S.Schema; export type ProjectsDomainsGetResponseVerificationDataStatus = | "pending" | "active" | "deactivated" | "blocked" | "error"; export const ProjectsDomainsGetResponseVerificationDataStatus = /*@__PURE__*/ S.String; export interface ProjectsDomainsGetResponseVerificationData { status: ProjectsDomainsGetResponseVerificationDataStatus; errorMessage?: string | null; } export const ProjectsDomainsGetResponseVerificationData = /*@__PURE__*/ S.suspend(() => S.Struct({ status: ProjectsDomainsGetResponseVerificationDataStatus, errorMessage: S.optional( S.NullOr(S.String).pipe(T.Body("error_message")), ), }), ).annotate({ identifier: "ProjectsDomainsGetResponseVerificationData", }) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetProjectDomainResponse { id: string; certificateAuthority: ProjectsDomainsGetResponseCertificateAuthority; createdOn: string; domainId: string; /** The domain name. */ name: string; status: ProjectsDomainsGetResponseStatus; validationData: ProjectsDomainsGetResponseValidationData; verificationData: ProjectsDomainsGetResponseVerificationData; zoneTag: string; } export const GetProjectDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, certificateAuthority: ProjectsDomainsGetResponseCertificateAuthority.pipe( T.Body("certificate_authority"), ), createdOn: S.String.pipe(T.Body("created_on")), domainId: S.String.pipe(T.Body("domain_id")), name: S.String, status: ProjectsDomainsGetResponseStatus, validationData: ProjectsDomainsGetResponseValidationData.pipe( T.Body("validation_data"), ), verificationData: ProjectsDomainsGetResponseVerificationData.pipe( T.Body("verification_data"), ), zoneTag: S.String.pipe(T.Body("zone_tag")), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "GetProjectDomainResponse", }) as any as S.Schema; export type ProjectsDeploymentsListRequestEnv = "production" | "preview"; export const ProjectsDeploymentsListRequestEnv = /*@__PURE__*/ S.String; export interface ListProjectDeploymentsRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; /** What type of deployments to fetch. */ env?: ProjectsDeploymentsListRequestEnv | (string & {}); /** Which page of deployments to fetch. */ page?: number; /** How many deployments to return per page. */ perPage?: number; } export const ListProjectDeploymentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), env: S.optional(ProjectsDeploymentsListRequestEnv.pipe(T.Query())), page: S.optional(S.Number.pipe(T.Query())), perPage: S.optional(S.Number.pipe(T.Query("per_page"))), }) .pipe( T.Http({ method: "GET", uri: "/accounts/{account_id}/pages/projects/{project_name}/deployments", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "ListProjectDeploymentsRequest", }) as any as S.Schema; export type ProjectsDeploymentsListResultItemAliasesList = Array; export const ProjectsDeploymentsListResultItemAliasesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsListResultItemBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export const ProjectsDeploymentsListResultItemBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export type ProjectsDeploymentsListResultItemDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export const ProjectsDeploymentsListResultItemDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export type ProjectsDeploymentsListResultItemDeploymentTriggerType = | "github:push" | "ad_hoc" | "deploy_hook"; export const ProjectsDeploymentsListResultItemDeploymentTriggerType = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsListResultItemDeploymentTrigger { /** Additional info about the trigger. */ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; /** What caused the deployment. */ type: ProjectsDeploymentsListResultItemDeploymentTriggerType; } export const ProjectsDeploymentsListResultItemDeploymentTrigger = /*@__PURE__*/ S.suspend(() => S.Struct({ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata, type: ProjectsDeploymentsListResultItemDeploymentTriggerType, }), ).annotate({ identifier: "ProjectsDeploymentsListResultItemDeploymentTrigger", }) as any as S.Schema; export type ProjectsDeploymentsListResultItemEnvironment = | "preview" | "production"; export const ProjectsDeploymentsListResultItemEnvironment = /*@__PURE__*/ S.String; export type ProjectsDeploymentsListResultItemLatestStageName = | "queued" | "initialize" | "clone_repo" | "build" | "deploy"; export const ProjectsDeploymentsListResultItemLatestStageName = /*@__PURE__*/ S.String; export type ProjectsDeploymentsListResultItemLatestStageStatus = | "success" | "idle" | "active" | "failure" | "canceled"; export const ProjectsDeploymentsListResultItemLatestStageStatus = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsListResultItemLatestStage { /** When the stage ended. */ endedOn: string; /** The current build stage. */ name: ProjectsDeploymentsListResultItemLatestStageName; /** When the stage started. */ startedOn: string; /** State of the current stage. */ status: ProjectsDeploymentsListResultItemLatestStageStatus; } export const ProjectsDeploymentsListResultItemLatestStage = /*@__PURE__*/ S.suspend(() => S.Struct({ endedOn: S.String.pipe(T.Body("ended_on")), name: ProjectsDeploymentsListResultItemLatestStageName, startedOn: S.String.pipe(T.Body("started_on")), status: ProjectsDeploymentsListResultItemLatestStageStatus, }), ).annotate({ identifier: "ProjectsDeploymentsListResultItemLatestStage", }) as any as S.Schema; export type ProjectsDeploymentsListResultItemSourceConfigPathExcludesList = Array; export const ProjectsDeploymentsListResultItemSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsListResultItemSourceConfigPathIncludesList = Array; export const ProjectsDeploymentsListResultItemSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsListResultItemSourceConfigPreviewBranchExcludesList = Array; export const ProjectsDeploymentsListResultItemSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsListResultItemSourceConfigPreviewBranchIncludesList = Array; export const ProjectsDeploymentsListResultItemSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsListResultItemSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsDeploymentsListResultItemSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsListResultItemSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled: boolean; /** The owner of the repository. */ owner: string; /** The owner ID of the repository. */ ownerId: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes: ProjectsDeploymentsListResultItemSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes: ProjectsDeploymentsListResultItemSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes: ProjectsDeploymentsListResultItemSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes: ProjectsDeploymentsListResultItemSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting: ProjectsDeploymentsListResultItemSourceConfigPreviewDeploymentSetting; /** The production branch of the repository. */ productionBranch: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled: boolean; /** The ID of the repository. */ repoId: string; /** The name of the repository. */ repoName: string; } export const ProjectsDeploymentsListResultItemSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.Boolean.pipe(T.Body("deployments_enabled")), owner: S.String, ownerId: S.String.pipe(T.Body("owner_id")), pathExcludes: ProjectsDeploymentsListResultItemSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), pathIncludes: ProjectsDeploymentsListResultItemSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), prCommentsEnabled: S.Boolean.pipe(T.Body("pr_comments_enabled")), previewBranchExcludes: ProjectsDeploymentsListResultItemSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), previewBranchIncludes: ProjectsDeploymentsListResultItemSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), previewDeploymentSetting: ProjectsDeploymentsListResultItemSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), productionBranch: S.String.pipe(T.Body("production_branch")), productionDeploymentsEnabled: S.Boolean.pipe( T.Body("production_deployments_enabled"), ), repoId: S.String.pipe(T.Body("repo_id")), repoName: S.String.pipe(T.Body("repo_name")), }), ).annotate({ identifier: "ProjectsDeploymentsListResultItemSourceConfig", }) as any as S.Schema; export type ProjectsDeploymentsListResultItemSourceType = "github" | "gitlab"; export const ProjectsDeploymentsListResultItemSourceType = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsListResultItemSource { config: ProjectsDeploymentsListResultItemSourceConfig; /** The source control management provider. */ type: ProjectsDeploymentsListResultItemSourceType; } export const ProjectsDeploymentsListResultItemSource = /*@__PURE__*/ S.suspend( () => S.Struct({ config: ProjectsDeploymentsListResultItemSourceConfig, type: ProjectsDeploymentsListResultItemSourceType, }), ).annotate({ identifier: "ProjectsDeploymentsListResultItemSource", }) as any as S.Schema; export type ProjectsDeploymentsListResultItemStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export const ProjectsDeploymentsListResultItemStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export type ProjectsDeploymentsListResultItemStagesList = Array; export const ProjectsDeploymentsListResultItemStagesList = /*@__PURE__*/ S.Array( ProjectsCreateResponseCanonicalDeploymentStagesItem, ) as any as S.Schema; export interface ProjectsDeploymentsListResultItem { /** Id of the deployment. */ id: string; /** A list of alias URLs pointing to this deployment. */ aliases: ProjectsDeploymentsListResultItemAliasesList; /** Configs for the project build process. */ buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig; /** When the deployment was created. */ createdOn: string; /** Info about what caused the deployment. */ deploymentTrigger: ProjectsDeploymentsListResultItemDeploymentTrigger; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Type of deploy. */ environment: ProjectsDeploymentsListResultItemEnvironment; /** If the deployment has been skipped. */ isSkipped: boolean; /** The status of the deployment. */ latestStage: ProjectsDeploymentsListResultItemLatestStage; /** When the deployment was last modified. */ modifiedOn: string; /** Id of the project. */ projectId: string; /** Name of the project. */ projectName: string; /** Short Id (8 character) of the deployment. */ shortId: string; /** Configs for the project source control. */ source: ProjectsDeploymentsListResultItemSource; /** List of past stages. */ stages: ProjectsDeploymentsListResultItemStagesList; /** The live URL to view this deployment. */ url: string; /** Whether the deployment uses functions. */ usesFunctions?: boolean | null; } export const ProjectsDeploymentsListResultItem = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, aliases: ProjectsDeploymentsListResultItemAliasesList, buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig.pipe( T.Body("build_config"), ), createdOn: S.String.pipe(T.Body("created_on")), deploymentTrigger: ProjectsDeploymentsListResultItemDeploymentTrigger.pipe( T.Body("deployment_trigger"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), environment: ProjectsDeploymentsListResultItemEnvironment, isSkipped: S.Boolean.pipe(T.Body("is_skipped")), latestStage: ProjectsDeploymentsListResultItemLatestStage.pipe( T.Body("latest_stage"), ), modifiedOn: S.String.pipe(T.Body("modified_on")), projectId: S.String.pipe(T.Body("project_id")), projectName: S.String.pipe(T.Body("project_name")), shortId: S.String.pipe(T.Body("short_id")), source: ProjectsDeploymentsListResultItemSource, stages: ProjectsDeploymentsListResultItemStagesList, url: S.String, usesFunctions: S.optional( S.NullOr(S.Boolean).pipe(T.Body("uses_functions")), ), }), ).annotate({ identifier: "ProjectsDeploymentsListResultItem", }) as any as S.Schema; export type ProjectsDeploymentsListResultList = Array; export const ProjectsDeploymentsListResultList = /*@__PURE__*/ S.Array( ProjectsDeploymentsListResultItem, ) as any as S.Schema; export interface ListProjectDeploymentsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: ProjectsDeploymentsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export const ListProjectDeploymentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ result: ProjectsDeploymentsListResultList.pipe(T.EnvelopePayload()), resultInfo: S.optional(S.NullOr(ResultInfo).pipe(T.ResultInfo())), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "ListProjectDeploymentsResponse", }) as any as S.Schema; export interface ListProjectDomainsRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; } export const ListProjectDomainsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), }) .pipe( T.Http({ method: "GET", uri: "/accounts/{account_id}/pages/projects/{project_name}/domains", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "ListProjectDomainsRequest", }) as any as S.Schema; export type ProjectsDomainsListResultItemCertificateAuthority = | "google" | "lets_encrypt"; export const ProjectsDomainsListResultItemCertificateAuthority = /*@__PURE__*/ S.String; export type ProjectsDomainsListResultItemStatus = | "initializing" | "pending" | "active" | "deactivated" | "blocked" | "error"; export const ProjectsDomainsListResultItemStatus = /*@__PURE__*/ S.String; export type ProjectsDomainsListResultItemValidationDataMethod = "http" | "txt"; export const ProjectsDomainsListResultItemValidationDataMethod = /*@__PURE__*/ S.String; export type ProjectsDomainsListResultItemValidationDataStatus = | "initializing" | "pending" | "active" | "deactivated" | "error"; export const ProjectsDomainsListResultItemValidationDataStatus = /*@__PURE__*/ S.String; export interface ProjectsDomainsListResultItemValidationData { method: ProjectsDomainsListResultItemValidationDataMethod; status: ProjectsDomainsListResultItemValidationDataStatus; errorMessage?: string | null; txtName?: string | null; txtValue?: string | null; } export const ProjectsDomainsListResultItemValidationData = /*@__PURE__*/ S.suspend(() => S.Struct({ method: ProjectsDomainsListResultItemValidationDataMethod, status: ProjectsDomainsListResultItemValidationDataStatus, errorMessage: S.optional( S.NullOr(S.String).pipe(T.Body("error_message")), ), txtName: S.optional(S.NullOr(S.String).pipe(T.Body("txt_name"))), txtValue: S.optional(S.NullOr(S.String).pipe(T.Body("txt_value"))), }), ).annotate({ identifier: "ProjectsDomainsListResultItemValidationData", }) as any as S.Schema; export type ProjectsDomainsListResultItemVerificationDataStatus = | "pending" | "active" | "deactivated" | "blocked" | "error"; export const ProjectsDomainsListResultItemVerificationDataStatus = /*@__PURE__*/ S.String; export interface ProjectsDomainsListResultItemVerificationData { status: ProjectsDomainsListResultItemVerificationDataStatus; errorMessage?: string | null; } export const ProjectsDomainsListResultItemVerificationData = /*@__PURE__*/ S.suspend(() => S.Struct({ status: ProjectsDomainsListResultItemVerificationDataStatus, errorMessage: S.optional( S.NullOr(S.String).pipe(T.Body("error_message")), ), }), ).annotate({ identifier: "ProjectsDomainsListResultItemVerificationData", }) as any as S.Schema; export interface ProjectsDomainsListResultItem { id: string; certificateAuthority: ProjectsDomainsListResultItemCertificateAuthority; createdOn: string; domainId: string; /** The domain name. */ name: string; status: ProjectsDomainsListResultItemStatus; validationData: ProjectsDomainsListResultItemValidationData; verificationData: ProjectsDomainsListResultItemVerificationData; zoneTag: string; } export const ProjectsDomainsListResultItem = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, certificateAuthority: ProjectsDomainsListResultItemCertificateAuthority.pipe( T.Body("certificate_authority"), ), createdOn: S.String.pipe(T.Body("created_on")), domainId: S.String.pipe(T.Body("domain_id")), name: S.String, status: ProjectsDomainsListResultItemStatus, validationData: ProjectsDomainsListResultItemValidationData.pipe( T.Body("validation_data"), ), verificationData: ProjectsDomainsListResultItemVerificationData.pipe( T.Body("verification_data"), ), zoneTag: S.String.pipe(T.Body("zone_tag")), }), ).annotate({ identifier: "ProjectsDomainsListResultItem", }) as any as S.Schema; export type ProjectsDomainsListResultList = Array; export const ProjectsDomainsListResultList = /*@__PURE__*/ S.Array( ProjectsDomainsListResultItem, ) as any as S.Schema; export interface ListProjectDomainsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: ProjectsDomainsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export const ListProjectDomainsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ result: ProjectsDomainsListResultList.pipe(T.EnvelopePayload()), resultInfo: S.optional(S.NullOr(ResultInfo).pipe(T.ResultInfo())), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "ListProjectDomainsResponse", }) as any as S.Schema; export interface ListProjectsRequest { /** Identifier. */ accountId: string; /** Which page of projects to fetch. */ page?: number; /** How many projects to return per page. */ perPage?: number; } export const ListProjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), page: S.optional(S.Number.pipe(T.Query())), perPage: S.optional(S.Number.pipe(T.Query("per_page"))), }) .pipe( T.Http({ method: "GET", uri: "/accounts/{account_id}/pages/projects", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "ListProjectsRequest", }) as any as S.Schema; export type ProjectsListResultItemCanonicalDeploymentAliasesList = Array; export const ProjectsListResultItemCanonicalDeploymentAliasesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsListResultItemCanonicalDeploymentBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export const ProjectsListResultItemCanonicalDeploymentBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export type ProjectsListResultItemCanonicalDeploymentDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export const ProjectsListResultItemCanonicalDeploymentDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export type ProjectsListResultItemCanonicalDeploymentDeploymentTriggerType = | "github:push" | "ad_hoc" | "deploy_hook"; export const ProjectsListResultItemCanonicalDeploymentDeploymentTriggerType = /*@__PURE__*/ S.String; export interface ProjectsListResultItemCanonicalDeploymentDeploymentTrigger { /** Additional info about the trigger. */ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; /** What caused the deployment. */ type: ProjectsListResultItemCanonicalDeploymentDeploymentTriggerType; } export const ProjectsListResultItemCanonicalDeploymentDeploymentTrigger = /*@__PURE__*/ S.suspend(() => S.Struct({ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata, type: ProjectsListResultItemCanonicalDeploymentDeploymentTriggerType, }), ).annotate({ identifier: "ProjectsListResultItemCanonicalDeploymentDeploymentTrigger", }) as any as S.Schema; export type ProjectsListResultItemCanonicalDeploymentEnvironment = | "preview" | "production"; export const ProjectsListResultItemCanonicalDeploymentEnvironment = /*@__PURE__*/ S.String; export type ProjectsListResultItemCanonicalDeploymentLatestStageName = | "queued" | "initialize" | "clone_repo" | "build" | "deploy"; export const ProjectsListResultItemCanonicalDeploymentLatestStageName = /*@__PURE__*/ S.String; export type ProjectsListResultItemCanonicalDeploymentLatestStageStatus = | "success" | "idle" | "active" | "failure" | "canceled"; export const ProjectsListResultItemCanonicalDeploymentLatestStageStatus = /*@__PURE__*/ S.String; export interface ProjectsListResultItemCanonicalDeploymentLatestStage { /** When the stage ended. */ endedOn: string; /** The current build stage. */ name: ProjectsListResultItemCanonicalDeploymentLatestStageName; /** When the stage started. */ startedOn: string; /** State of the current stage. */ status: ProjectsListResultItemCanonicalDeploymentLatestStageStatus; } export const ProjectsListResultItemCanonicalDeploymentLatestStage = /*@__PURE__*/ S.suspend(() => S.Struct({ endedOn: S.String.pipe(T.Body("ended_on")), name: ProjectsListResultItemCanonicalDeploymentLatestStageName, startedOn: S.String.pipe(T.Body("started_on")), status: ProjectsListResultItemCanonicalDeploymentLatestStageStatus, }), ).annotate({ identifier: "ProjectsListResultItemCanonicalDeploymentLatestStage", }) as any as S.Schema; export type ProjectsListResultItemCanonicalDeploymentSourceConfigPathExcludesList = Array; export const ProjectsListResultItemCanonicalDeploymentSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsListResultItemCanonicalDeploymentSourceConfigPathIncludesList = Array; export const ProjectsListResultItemCanonicalDeploymentSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsListResultItemCanonicalDeploymentSourceConfigPreviewBranchExcludesList = Array; export const ProjectsListResultItemCanonicalDeploymentSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsListResultItemCanonicalDeploymentSourceConfigPreviewBranchIncludesList = Array; export const ProjectsListResultItemCanonicalDeploymentSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsListResultItemCanonicalDeploymentSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsListResultItemCanonicalDeploymentSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsListResultItemCanonicalDeploymentSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled: boolean; /** The owner of the repository. */ owner: string; /** The owner ID of the repository. */ ownerId: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes: ProjectsListResultItemCanonicalDeploymentSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes: ProjectsListResultItemCanonicalDeploymentSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes: ProjectsListResultItemCanonicalDeploymentSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes: ProjectsListResultItemCanonicalDeploymentSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting: ProjectsListResultItemCanonicalDeploymentSourceConfigPreviewDeploymentSetting; /** The production branch of the repository. */ productionBranch: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled: boolean; /** The ID of the repository. */ repoId: string; /** The name of the repository. */ repoName: string; } export const ProjectsListResultItemCanonicalDeploymentSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.Boolean.pipe(T.Body("deployments_enabled")), owner: S.String, ownerId: S.String.pipe(T.Body("owner_id")), pathExcludes: ProjectsListResultItemCanonicalDeploymentSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), pathIncludes: ProjectsListResultItemCanonicalDeploymentSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), prCommentsEnabled: S.Boolean.pipe(T.Body("pr_comments_enabled")), previewBranchExcludes: ProjectsListResultItemCanonicalDeploymentSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), previewBranchIncludes: ProjectsListResultItemCanonicalDeploymentSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), previewDeploymentSetting: ProjectsListResultItemCanonicalDeploymentSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), productionBranch: S.String.pipe(T.Body("production_branch")), productionDeploymentsEnabled: S.Boolean.pipe( T.Body("production_deployments_enabled"), ), repoId: S.String.pipe(T.Body("repo_id")), repoName: S.String.pipe(T.Body("repo_name")), }), ).annotate({ identifier: "ProjectsListResultItemCanonicalDeploymentSourceConfig", }) as any as S.Schema; export type ProjectsListResultItemCanonicalDeploymentSourceType = | "github" | "gitlab"; export const ProjectsListResultItemCanonicalDeploymentSourceType = /*@__PURE__*/ S.String; export interface ProjectsListResultItemCanonicalDeploymentSource { config: ProjectsListResultItemCanonicalDeploymentSourceConfig; /** The source control management provider. */ type: ProjectsListResultItemCanonicalDeploymentSourceType; } export const ProjectsListResultItemCanonicalDeploymentSource = /*@__PURE__*/ S.suspend(() => S.Struct({ config: ProjectsListResultItemCanonicalDeploymentSourceConfig, type: ProjectsListResultItemCanonicalDeploymentSourceType, }), ).annotate({ identifier: "ProjectsListResultItemCanonicalDeploymentSource", }) as any as S.Schema; export type ProjectsListResultItemCanonicalDeploymentStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export const ProjectsListResultItemCanonicalDeploymentStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export type ProjectsListResultItemCanonicalDeploymentStagesList = Array; export const ProjectsListResultItemCanonicalDeploymentStagesList = /*@__PURE__*/ S.Array( ProjectsCreateResponseCanonicalDeploymentStagesItem, ) as any as S.Schema; export interface ProjectsListResultItemCanonicalDeployment { /** Id of the deployment. */ id: string; /** A list of alias URLs pointing to this deployment. */ aliases: ProjectsListResultItemCanonicalDeploymentAliasesList; /** Configs for the project build process. */ buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig; /** When the deployment was created. */ createdOn: string; /** Info about what caused the deployment. */ deploymentTrigger: ProjectsListResultItemCanonicalDeploymentDeploymentTrigger; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Type of deploy. */ environment: ProjectsListResultItemCanonicalDeploymentEnvironment; /** If the deployment has been skipped. */ isSkipped: boolean; /** The status of the deployment. */ latestStage: ProjectsListResultItemCanonicalDeploymentLatestStage; /** When the deployment was last modified. */ modifiedOn: string; /** Id of the project. */ projectId: string; /** Name of the project. */ projectName: string; /** Short Id (8 character) of the deployment. */ shortId: string; /** Configs for the project source control. */ source: ProjectsListResultItemCanonicalDeploymentSource; /** List of past stages. */ stages: ProjectsListResultItemCanonicalDeploymentStagesList; /** The live URL to view this deployment. */ url: string; /** Whether the deployment uses functions. */ usesFunctions?: boolean | null; } export const ProjectsListResultItemCanonicalDeployment = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, aliases: ProjectsListResultItemCanonicalDeploymentAliasesList, buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig.pipe( T.Body("build_config"), ), createdOn: S.String.pipe(T.Body("created_on")), deploymentTrigger: ProjectsListResultItemCanonicalDeploymentDeploymentTrigger.pipe( T.Body("deployment_trigger"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), environment: ProjectsListResultItemCanonicalDeploymentEnvironment, isSkipped: S.Boolean.pipe(T.Body("is_skipped")), latestStage: ProjectsListResultItemCanonicalDeploymentLatestStage.pipe( T.Body("latest_stage"), ), modifiedOn: S.String.pipe(T.Body("modified_on")), projectId: S.String.pipe(T.Body("project_id")), projectName: S.String.pipe(T.Body("project_name")), shortId: S.String.pipe(T.Body("short_id")), source: ProjectsListResultItemCanonicalDeploymentSource, stages: ProjectsListResultItemCanonicalDeploymentStagesList, url: S.String, usesFunctions: S.optional( S.NullOr(S.Boolean).pipe(T.Body("uses_functions")), ), }), ).annotate({ identifier: "ProjectsListResultItemCanonicalDeployment", }) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsPreviewCompatibilityFlagsList = Array; export const ProjectsListResultItemDeploymentConfigsPreviewCompatibilityFlagsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsPreviewUsageModel = | "standard" | "bundled" | "unbound"; export const ProjectsListResultItemDeploymentConfigsPreviewUsageModel = /*@__PURE__*/ S.String; export type ProjectsListResultItemDeploymentConfigsPreviewAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export const ProjectsListResultItemDeploymentConfigsPreviewAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export type ProjectsListResultItemDeploymentConfigsPreviewAiBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsPreviewAiBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsPreviewAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export const ProjectsListResultItemDeploymentConfigsPreviewAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export type ProjectsListResultItemDeploymentConfigsPreviewAnalyticsEngineDatasetsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsPreviewAnalyticsEngineDatasetsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsPreviewBrowsersMap = { [key: string]: unknown | undefined; }; export const ProjectsListResultItemDeploymentConfigsPreviewBrowsersMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsPreviewD1DatabasesMap = { [key: string]: unknown | undefined; }; export const ProjectsListResultItemDeploymentConfigsPreviewD1DatabasesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsPreviewDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export const ProjectsListResultItemDeploymentConfigsPreviewDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export type ProjectsListResultItemDeploymentConfigsPreviewDurableObjectNamespacesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsPreviewDurableObjectNamespacesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsPreviewHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export const ProjectsListResultItemDeploymentConfigsPreviewHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export type ProjectsListResultItemDeploymentConfigsPreviewHyperdriveBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsPreviewHyperdriveBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsPreviewKvNamespacesMap = { [key: string]: unknown | undefined; }; export const ProjectsListResultItemDeploymentConfigsPreviewKvNamespacesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsPreviewLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export const ProjectsListResultItemDeploymentConfigsPreviewLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export type ProjectsListResultItemDeploymentConfigsPreviewMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export const ProjectsListResultItemDeploymentConfigsPreviewMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export type ProjectsListResultItemDeploymentConfigsPreviewMtlsCertificatesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsPreviewMtlsCertificatesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsPreviewPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export const ProjectsListResultItemDeploymentConfigsPreviewPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export type ProjectsListResultItemDeploymentConfigsPreviewQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export const ProjectsListResultItemDeploymentConfigsPreviewQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export type ProjectsListResultItemDeploymentConfigsPreviewQueueProducersMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsPreviewQueueProducersMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsPreviewR2BucketsMap = { [key: string]: unknown | undefined; }; export const ProjectsListResultItemDeploymentConfigsPreviewR2BucketsMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsPreviewServicesValue = ProjectsCreateResponseDeploymentConfigsPreviewServicesValue; export const ProjectsListResultItemDeploymentConfigsPreviewServicesValue = ProjectsCreateResponseDeploymentConfigsPreviewServicesValue; export type ProjectsListResultItemDeploymentConfigsPreviewServicesMap = { [key: string]: | ProjectsCreateResponseDeploymentConfigsPreviewServicesValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsPreviewServicesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateResponseDeploymentConfigsPreviewServicesValue, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsPreviewVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export const ProjectsListResultItemDeploymentConfigsPreviewVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export type ProjectsListResultItemDeploymentConfigsPreviewVectorizeBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsPreviewVectorizeBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue, ) as any as S.Schema; export interface ProjectsListResultItemDeploymentConfigsPreview { /** Whether to always use the latest compatibility date for Pages Functions. */ alwaysUseLatestCompatibilityDate: boolean; /** The major version of the build image to use for Pages Functions. */ buildImageMajorVersion: number; /** Compatibility date used for Pages Functions. */ compatibilityDate: string; /** Compatibility flags used for Pages Functions. */ compatibilityFlags: ProjectsListResultItemDeploymentConfigsPreviewCompatibilityFlagsList; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Whether to fail open when the deployment config cannot be applied. */ failOpen: boolean; /** The usage model for Pages Functions. */ usageModel: ProjectsListResultItemDeploymentConfigsPreviewUsageModel; /** Constellation bindings used for Pages Functions. */ aiBindings?: ProjectsListResultItemDeploymentConfigsPreviewAiBindingsMap | null; /** Analytics Engine bindings used for Pages Functions. */ analyticsEngineDatasets?: ProjectsListResultItemDeploymentConfigsPreviewAnalyticsEngineDatasetsMap | null; /** Browser bindings used for Pages Functions. */ browsers?: ProjectsListResultItemDeploymentConfigsPreviewBrowsersMap | null; /** D1 databases used for Pages Functions. */ d1Databases?: ProjectsListResultItemDeploymentConfigsPreviewD1DatabasesMap | null; /** Durable Object namespaces used for Pages Functions. */ durableObjectNamespaces?: ProjectsListResultItemDeploymentConfigsPreviewDurableObjectNamespacesMap | null; /** Hyperdrive bindings used for Pages Functions. */ hyperdriveBindings?: ProjectsListResultItemDeploymentConfigsPreviewHyperdriveBindingsMap | null; /** KV namespaces used for Pages Functions. */ kvNamespaces?: ProjectsListResultItemDeploymentConfigsPreviewKvNamespacesMap | null; /** Limits for Pages Functions. */ limits?: ProjectsCreateRequestDeploymentConfigsPreviewLimits | null; /** mTLS bindings used for Pages Functions. */ mtlsCertificates?: ProjectsListResultItemDeploymentConfigsPreviewMtlsCertificatesMap | null; /** Placement setting used for Pages Functions. */ placement?: ProjectsCreateRequestDeploymentConfigsPreviewPlacement | null; /** Queue Producer bindings used for Pages Functions. */ queueProducers?: ProjectsListResultItemDeploymentConfigsPreviewQueueProducersMap | null; /** R2 buckets used for Pages Functions. */ r2Buckets?: ProjectsListResultItemDeploymentConfigsPreviewR2BucketsMap | null; /** Services used for Pages Functions. */ services?: ProjectsListResultItemDeploymentConfigsPreviewServicesMap | null; /** Vectorize bindings used for Pages Functions. */ vectorizeBindings?: ProjectsListResultItemDeploymentConfigsPreviewVectorizeBindingsMap | null; /** Hash of the Wrangler configuration used for the deployment. */ wranglerConfigHash?: string | null; } export const ProjectsListResultItemDeploymentConfigsPreview = /*@__PURE__*/ S.suspend(() => S.Struct({ alwaysUseLatestCompatibilityDate: S.Boolean.pipe( T.Body("always_use_latest_compatibility_date"), ), buildImageMajorVersion: S.Number.pipe( T.Body("build_image_major_version"), ), compatibilityDate: S.String.pipe(T.Body("compatibility_date")), compatibilityFlags: ProjectsListResultItemDeploymentConfigsPreviewCompatibilityFlagsList.pipe( T.Body("compatibility_flags"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), failOpen: S.Boolean.pipe(T.Body("fail_open")), usageModel: ProjectsListResultItemDeploymentConfigsPreviewUsageModel.pipe( T.Body("usage_model"), ), aiBindings: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsPreviewAiBindingsMap, ).pipe(T.Body("ai_bindings")), ), analyticsEngineDatasets: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsPreviewAnalyticsEngineDatasetsMap, ).pipe(T.Body("analytics_engine_datasets")), ), browsers: S.optional( S.NullOr(ProjectsListResultItemDeploymentConfigsPreviewBrowsersMap), ), d1Databases: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsPreviewD1DatabasesMap, ).pipe(T.Body("d1_databases")), ), durableObjectNamespaces: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsPreviewDurableObjectNamespacesMap, ).pipe(T.Body("durable_object_namespaces")), ), hyperdriveBindings: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsPreviewHyperdriveBindingsMap, ).pipe(T.Body("hyperdrive_bindings")), ), kvNamespaces: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsPreviewKvNamespacesMap, ).pipe(T.Body("kv_namespaces")), ), limits: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewLimits), ), mtlsCertificates: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsPreviewMtlsCertificatesMap, ).pipe(T.Body("mtls_certificates")), ), placement: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewPlacement), ), queueProducers: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsPreviewQueueProducersMap, ).pipe(T.Body("queue_producers")), ), r2Buckets: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsPreviewR2BucketsMap, ).pipe(T.Body("r2_buckets")), ), services: S.optional( S.NullOr(ProjectsListResultItemDeploymentConfigsPreviewServicesMap), ), vectorizeBindings: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsPreviewVectorizeBindingsMap, ).pipe(T.Body("vectorize_bindings")), ), wranglerConfigHash: S.optional( S.NullOr(S.String).pipe(T.Body("wrangler_config_hash")), ), }), ).annotate({ identifier: "ProjectsListResultItemDeploymentConfigsPreview", }) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsProductionCompatibilityFlagsList = Array; export const ProjectsListResultItemDeploymentConfigsProductionCompatibilityFlagsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsProductionUsageModel = | "standard" | "bundled" | "unbound"; export const ProjectsListResultItemDeploymentConfigsProductionUsageModel = /*@__PURE__*/ S.String; export type ProjectsListResultItemDeploymentConfigsProductionAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export const ProjectsListResultItemDeploymentConfigsProductionAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export type ProjectsListResultItemDeploymentConfigsProductionAiBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsProductionAiBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsProductionAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export const ProjectsListResultItemDeploymentConfigsProductionAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export type ProjectsListResultItemDeploymentConfigsProductionAnalyticsEngineDatasetsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsProductionAnalyticsEngineDatasetsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsProductionBrowsersMap = { [key: string]: unknown | undefined; }; export const ProjectsListResultItemDeploymentConfigsProductionBrowsersMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsProductionD1DatabasesMap = { [key: string]: unknown | undefined; }; export const ProjectsListResultItemDeploymentConfigsProductionD1DatabasesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsProductionDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export const ProjectsListResultItemDeploymentConfigsProductionDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export type ProjectsListResultItemDeploymentConfigsProductionDurableObjectNamespacesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsProductionDurableObjectNamespacesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsProductionHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export const ProjectsListResultItemDeploymentConfigsProductionHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export type ProjectsListResultItemDeploymentConfigsProductionHyperdriveBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsProductionHyperdriveBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsProductionKvNamespacesMap = { [key: string]: unknown | undefined; }; export const ProjectsListResultItemDeploymentConfigsProductionKvNamespacesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsProductionLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export const ProjectsListResultItemDeploymentConfigsProductionLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export type ProjectsListResultItemDeploymentConfigsProductionMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export const ProjectsListResultItemDeploymentConfigsProductionMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export type ProjectsListResultItemDeploymentConfigsProductionMtlsCertificatesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsProductionMtlsCertificatesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsProductionPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export const ProjectsListResultItemDeploymentConfigsProductionPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export type ProjectsListResultItemDeploymentConfigsProductionQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export const ProjectsListResultItemDeploymentConfigsProductionQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export type ProjectsListResultItemDeploymentConfigsProductionQueueProducersMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsProductionQueueProducersMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsProductionR2BucketsMap = { [key: string]: unknown | undefined; }; export const ProjectsListResultItemDeploymentConfigsProductionR2BucketsMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsProductionServicesValue = ProjectsCreateResponseDeploymentConfigsPreviewServicesValue; export const ProjectsListResultItemDeploymentConfigsProductionServicesValue = ProjectsCreateResponseDeploymentConfigsPreviewServicesValue; export type ProjectsListResultItemDeploymentConfigsProductionServicesMap = { [key: string]: | ProjectsCreateResponseDeploymentConfigsPreviewServicesValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsProductionServicesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateResponseDeploymentConfigsPreviewServicesValue, ) as any as S.Schema; export type ProjectsListResultItemDeploymentConfigsProductionVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export const ProjectsListResultItemDeploymentConfigsProductionVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export type ProjectsListResultItemDeploymentConfigsProductionVectorizeBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue | undefined; }; export const ProjectsListResultItemDeploymentConfigsProductionVectorizeBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue, ) as any as S.Schema; export interface ProjectsListResultItemDeploymentConfigsProduction { /** Whether to always use the latest compatibility date for Pages Functions. */ alwaysUseLatestCompatibilityDate: boolean; /** The major version of the build image to use for Pages Functions. */ buildImageMajorVersion: number; /** Compatibility date used for Pages Functions. */ compatibilityDate: string; /** Compatibility flags used for Pages Functions. */ compatibilityFlags: ProjectsListResultItemDeploymentConfigsProductionCompatibilityFlagsList; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Whether to fail open when the deployment config cannot be applied. */ failOpen: boolean; /** The usage model for Pages Functions. */ usageModel: ProjectsListResultItemDeploymentConfigsProductionUsageModel; /** Constellation bindings used for Pages Functions. */ aiBindings?: ProjectsListResultItemDeploymentConfigsProductionAiBindingsMap | null; /** Analytics Engine bindings used for Pages Functions. */ analyticsEngineDatasets?: ProjectsListResultItemDeploymentConfigsProductionAnalyticsEngineDatasetsMap | null; /** Browser bindings used for Pages Functions. */ browsers?: ProjectsListResultItemDeploymentConfigsProductionBrowsersMap | null; /** D1 databases used for Pages Functions. */ d1Databases?: ProjectsListResultItemDeploymentConfigsProductionD1DatabasesMap | null; /** Durable Object namespaces used for Pages Functions. */ durableObjectNamespaces?: ProjectsListResultItemDeploymentConfigsProductionDurableObjectNamespacesMap | null; /** Hyperdrive bindings used for Pages Functions. */ hyperdriveBindings?: ProjectsListResultItemDeploymentConfigsProductionHyperdriveBindingsMap | null; /** KV namespaces used for Pages Functions. */ kvNamespaces?: ProjectsListResultItemDeploymentConfigsProductionKvNamespacesMap | null; /** Limits for Pages Functions. */ limits?: ProjectsCreateRequestDeploymentConfigsPreviewLimits | null; /** mTLS bindings used for Pages Functions. */ mtlsCertificates?: ProjectsListResultItemDeploymentConfigsProductionMtlsCertificatesMap | null; /** Placement setting used for Pages Functions. */ placement?: ProjectsCreateRequestDeploymentConfigsPreviewPlacement | null; /** Queue Producer bindings used for Pages Functions. */ queueProducers?: ProjectsListResultItemDeploymentConfigsProductionQueueProducersMap | null; /** R2 buckets used for Pages Functions. */ r2Buckets?: ProjectsListResultItemDeploymentConfigsProductionR2BucketsMap | null; /** Services used for Pages Functions. */ services?: ProjectsListResultItemDeploymentConfigsProductionServicesMap | null; /** Vectorize bindings used for Pages Functions. */ vectorizeBindings?: ProjectsListResultItemDeploymentConfigsProductionVectorizeBindingsMap | null; /** Hash of the Wrangler configuration used for the deployment. */ wranglerConfigHash?: string | null; } export const ProjectsListResultItemDeploymentConfigsProduction = /*@__PURE__*/ S.suspend(() => S.Struct({ alwaysUseLatestCompatibilityDate: S.Boolean.pipe( T.Body("always_use_latest_compatibility_date"), ), buildImageMajorVersion: S.Number.pipe( T.Body("build_image_major_version"), ), compatibilityDate: S.String.pipe(T.Body("compatibility_date")), compatibilityFlags: ProjectsListResultItemDeploymentConfigsProductionCompatibilityFlagsList.pipe( T.Body("compatibility_flags"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), failOpen: S.Boolean.pipe(T.Body("fail_open")), usageModel: ProjectsListResultItemDeploymentConfigsProductionUsageModel.pipe( T.Body("usage_model"), ), aiBindings: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsProductionAiBindingsMap, ).pipe(T.Body("ai_bindings")), ), analyticsEngineDatasets: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsProductionAnalyticsEngineDatasetsMap, ).pipe(T.Body("analytics_engine_datasets")), ), browsers: S.optional( S.NullOr(ProjectsListResultItemDeploymentConfigsProductionBrowsersMap), ), d1Databases: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsProductionD1DatabasesMap, ).pipe(T.Body("d1_databases")), ), durableObjectNamespaces: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsProductionDurableObjectNamespacesMap, ).pipe(T.Body("durable_object_namespaces")), ), hyperdriveBindings: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsProductionHyperdriveBindingsMap, ).pipe(T.Body("hyperdrive_bindings")), ), kvNamespaces: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsProductionKvNamespacesMap, ).pipe(T.Body("kv_namespaces")), ), limits: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewLimits), ), mtlsCertificates: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsProductionMtlsCertificatesMap, ).pipe(T.Body("mtls_certificates")), ), placement: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewPlacement), ), queueProducers: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsProductionQueueProducersMap, ).pipe(T.Body("queue_producers")), ), r2Buckets: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsProductionR2BucketsMap, ).pipe(T.Body("r2_buckets")), ), services: S.optional( S.NullOr(ProjectsListResultItemDeploymentConfigsProductionServicesMap), ), vectorizeBindings: S.optional( S.NullOr( ProjectsListResultItemDeploymentConfigsProductionVectorizeBindingsMap, ).pipe(T.Body("vectorize_bindings")), ), wranglerConfigHash: S.optional( S.NullOr(S.String).pipe(T.Body("wrangler_config_hash")), ), }), ).annotate({ identifier: "ProjectsListResultItemDeploymentConfigsProduction", }) as any as S.Schema; export interface ProjectsListResultItemDeploymentConfigs { /** Configs for preview deploys. */ preview: ProjectsListResultItemDeploymentConfigsPreview; /** Configs for production deploys. */ production: ProjectsListResultItemDeploymentConfigsProduction; } export const ProjectsListResultItemDeploymentConfigs = /*@__PURE__*/ S.suspend( () => S.Struct({ preview: ProjectsListResultItemDeploymentConfigsPreview, production: ProjectsListResultItemDeploymentConfigsProduction, }), ).annotate({ identifier: "ProjectsListResultItemDeploymentConfigs", }) as any as S.Schema; export type ProjectsListResultItemBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export const ProjectsListResultItemBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export type ProjectsListResultItemDomainsList = Array; export const ProjectsListResultItemDomainsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsListResultItemSourceConfigPathExcludesList = Array; export const ProjectsListResultItemSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsListResultItemSourceConfigPathIncludesList = Array; export const ProjectsListResultItemSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsListResultItemSourceConfigPreviewBranchExcludesList = Array; export const ProjectsListResultItemSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsListResultItemSourceConfigPreviewBranchIncludesList = Array; export const ProjectsListResultItemSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsListResultItemSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsListResultItemSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsListResultItemSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled: boolean; /** The owner of the repository. */ owner: string; /** The owner ID of the repository. */ ownerId: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes: ProjectsListResultItemSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes: ProjectsListResultItemSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes: ProjectsListResultItemSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes: ProjectsListResultItemSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting: ProjectsListResultItemSourceConfigPreviewDeploymentSetting; /** The production branch of the repository. */ productionBranch: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled: boolean; /** The ID of the repository. */ repoId: string; /** The name of the repository. */ repoName: string; } export const ProjectsListResultItemSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.Boolean.pipe(T.Body("deployments_enabled")), owner: S.String, ownerId: S.String.pipe(T.Body("owner_id")), pathExcludes: ProjectsListResultItemSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), pathIncludes: ProjectsListResultItemSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), prCommentsEnabled: S.Boolean.pipe(T.Body("pr_comments_enabled")), previewBranchExcludes: ProjectsListResultItemSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), previewBranchIncludes: ProjectsListResultItemSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), previewDeploymentSetting: ProjectsListResultItemSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), productionBranch: S.String.pipe(T.Body("production_branch")), productionDeploymentsEnabled: S.Boolean.pipe( T.Body("production_deployments_enabled"), ), repoId: S.String.pipe(T.Body("repo_id")), repoName: S.String.pipe(T.Body("repo_name")), }), ).annotate({ identifier: "ProjectsListResultItemSourceConfig", }) as any as S.Schema; export type ProjectsListResultItemSourceType = "github" | "gitlab"; export const ProjectsListResultItemSourceType = /*@__PURE__*/ S.String; export interface ProjectsListResultItemSource { config: ProjectsListResultItemSourceConfig; /** The source control management provider. */ type: ProjectsListResultItemSourceType; } export const ProjectsListResultItemSource = /*@__PURE__*/ S.suspend(() => S.Struct({ config: ProjectsListResultItemSourceConfig, type: ProjectsListResultItemSourceType, }), ).annotate({ identifier: "ProjectsListResultItemSource", }) as any as S.Schema; export interface ProjectsListResultItem { /** ID of the project. */ id: string; /** Most recent production deployment of the project. */ canonicalDeployment: ProjectsListResultItemCanonicalDeployment; /** When the project was created. */ createdOn: string; /** Configs for deployments in a project. */ deploymentConfigs: ProjectsListResultItemDeploymentConfigs; /** Framework the project is using. */ framework: string; /** Version of the framework the project is using. */ frameworkVersion: string; /** Most recent deployment of the project. */ latestDeployment: ProjectsListResultItemCanonicalDeployment; /** Name of the project. */ name: string; /** Name of the preview script. */ previewScriptName: string; /** Production branch of the project. Used to identify production deployments. */ productionBranch: string; /** Name of the production script. */ productionScriptName: string; /** Whether the project uses functions. */ usesFunctions: boolean; /** Configs for the project build process. */ buildConfig?: ProjectsCreateResponseCanonicalDeploymentBuildConfig | null; /** A list of associated custom domains for the project. */ domains?: ProjectsListResultItemDomainsList | null; /** Configs for the project source control. */ source?: ProjectsListResultItemSource | null; /** The Cloudflare subdomain associated with the project. */ subdomain?: string | null; } export const ProjectsListResultItem = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, canonicalDeployment: ProjectsListResultItemCanonicalDeployment.pipe( T.Body("canonical_deployment"), ), createdOn: S.String.pipe(T.Body("created_on")), deploymentConfigs: ProjectsListResultItemDeploymentConfigs.pipe( T.Body("deployment_configs"), ), framework: S.String, frameworkVersion: S.String.pipe(T.Body("framework_version")), latestDeployment: ProjectsListResultItemCanonicalDeployment.pipe( T.Body("latest_deployment"), ), name: S.String, previewScriptName: S.String.pipe(T.Body("preview_script_name")), productionBranch: S.String.pipe(T.Body("production_branch")), productionScriptName: S.String.pipe(T.Body("production_script_name")), usesFunctions: S.Boolean.pipe(T.Body("uses_functions")), buildConfig: S.optional( S.NullOr(ProjectsCreateResponseCanonicalDeploymentBuildConfig).pipe( T.Body("build_config"), ), ), domains: S.optional(S.NullOr(ProjectsListResultItemDomainsList)), source: S.optional(S.NullOr(ProjectsListResultItemSource)), subdomain: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "ProjectsListResultItem", }) as any as S.Schema; export type ProjectsListResultList = Array; export const ProjectsListResultList = /*@__PURE__*/ S.Array( ProjectsListResultItem, ) as any as S.Schema; export interface ListProjectsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: ProjectsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export const ListProjectsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ result: ProjectsListResultList.pipe(T.EnvelopePayload()), resultInfo: S.optional(S.NullOr(ResultInfo).pipe(T.ResultInfo())), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "ListProjectsResponse", }) as any as S.Schema; export type ProjectsEditRequestBuildConfig = ProjectsCreateRequestBuildConfig; export const ProjectsEditRequestBuildConfig = ProjectsCreateRequestBuildConfig; export type ProjectsEditRequestDeploymentConfigsPreviewAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export const ProjectsEditRequestDeploymentConfigsPreviewAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export type ProjectsEditRequestDeploymentConfigsPreviewAiBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsPreviewAiBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export const ProjectsEditRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export type ProjectsEditRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsPreviewBrowsersMap = { [key: string]: unknown | undefined; }; export const ProjectsEditRequestDeploymentConfigsPreviewBrowsersMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsPreviewCompatibilityFlagsList = Array; export const ProjectsEditRequestDeploymentConfigsPreviewCompatibilityFlagsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsPreviewD1DatabasesMap = { [key: string]: unknown | undefined; }; export const ProjectsEditRequestDeploymentConfigsPreviewD1DatabasesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsPreviewDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export const ProjectsEditRequestDeploymentConfigsPreviewDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export type ProjectsEditRequestDeploymentConfigsPreviewDurableObjectNamespacesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsPreviewDurableObjectNamespacesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsPreviewHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export const ProjectsEditRequestDeploymentConfigsPreviewHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export type ProjectsEditRequestDeploymentConfigsPreviewHyperdriveBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsPreviewHyperdriveBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsPreviewKvNamespacesMap = { [key: string]: unknown | undefined; }; export const ProjectsEditRequestDeploymentConfigsPreviewKvNamespacesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsPreviewLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export const ProjectsEditRequestDeploymentConfigsPreviewLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export type ProjectsEditRequestDeploymentConfigsPreviewMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export const ProjectsEditRequestDeploymentConfigsPreviewMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export type ProjectsEditRequestDeploymentConfigsPreviewMtlsCertificatesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsPreviewMtlsCertificatesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsPreviewPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export const ProjectsEditRequestDeploymentConfigsPreviewPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export type ProjectsEditRequestDeploymentConfigsPreviewQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export const ProjectsEditRequestDeploymentConfigsPreviewQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export type ProjectsEditRequestDeploymentConfigsPreviewQueueProducersMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsPreviewQueueProducersMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsPreviewR2BucketsMap = { [key: string]: unknown | undefined; }; export const ProjectsEditRequestDeploymentConfigsPreviewR2BucketsMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsPreviewServicesValue = ProjectsCreateRequestDeploymentConfigsPreviewServicesValue; export const ProjectsEditRequestDeploymentConfigsPreviewServicesValue = ProjectsCreateRequestDeploymentConfigsPreviewServicesValue; export type ProjectsEditRequestDeploymentConfigsPreviewServicesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewServicesValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsPreviewServicesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewServicesValue, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsPreviewUsageModel = | "standard" | "bundled" | "unbound"; export const ProjectsEditRequestDeploymentConfigsPreviewUsageModel = /*@__PURE__*/ S.String; export type ProjectsEditRequestDeploymentConfigsPreviewVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export const ProjectsEditRequestDeploymentConfigsPreviewVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export type ProjectsEditRequestDeploymentConfigsPreviewVectorizeBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsPreviewVectorizeBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue, ) as any as S.Schema; export interface ProjectsEditRequestDeploymentConfigsPreview { /** Constellation bindings used for Pages Functions. */ aiBindings?: ProjectsEditRequestDeploymentConfigsPreviewAiBindingsMap; /** Whether to always use the latest compatibility date for Pages Functions. */ alwaysUseLatestCompatibilityDate?: boolean; /** Analytics Engine bindings used for Pages Functions. */ analyticsEngineDatasets?: ProjectsEditRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsMap; /** Browser bindings used for Pages Functions. */ browsers?: ProjectsEditRequestDeploymentConfigsPreviewBrowsersMap; /** The major version of the build image to use for Pages Functions. */ buildImageMajorVersion?: number; /** Compatibility date used for Pages Functions. */ compatibilityDate?: string; /** Compatibility flags used for Pages Functions. */ compatibilityFlags?: ProjectsEditRequestDeploymentConfigsPreviewCompatibilityFlagsList; /** D1 databases used for Pages Functions. */ d1Databases?: ProjectsEditRequestDeploymentConfigsPreviewD1DatabasesMap; /** Durable Object namespaces used for Pages Functions. */ durableObjectNamespaces?: ProjectsEditRequestDeploymentConfigsPreviewDurableObjectNamespacesMap; /** Environment variables used for builds and Pages Functions. */ envVars?: UntypedBindingMap; /** Whether to fail open when the deployment config cannot be applied. */ failOpen?: boolean; /** Hyperdrive bindings used for Pages Functions. */ hyperdriveBindings?: ProjectsEditRequestDeploymentConfigsPreviewHyperdriveBindingsMap; /** KV namespaces used for Pages Functions. */ kvNamespaces?: ProjectsEditRequestDeploymentConfigsPreviewKvNamespacesMap; /** Limits for Pages Functions. */ limits?: ProjectsCreateRequestDeploymentConfigsPreviewLimits; /** mTLS bindings used for Pages Functions. */ mtlsCertificates?: ProjectsEditRequestDeploymentConfigsPreviewMtlsCertificatesMap; /** Placement setting used for Pages Functions. */ placement?: ProjectsCreateRequestDeploymentConfigsPreviewPlacement; /** Queue Producer bindings used for Pages Functions. */ queueProducers?: ProjectsEditRequestDeploymentConfigsPreviewQueueProducersMap; /** R2 buckets used for Pages Functions. */ r2Buckets?: ProjectsEditRequestDeploymentConfigsPreviewR2BucketsMap; /** Services used for Pages Functions. */ services?: ProjectsEditRequestDeploymentConfigsPreviewServicesMap; /** The usage model for Pages Functions. */ usageModel?: | ProjectsEditRequestDeploymentConfigsPreviewUsageModel | (string & {}); /** Vectorize bindings used for Pages Functions. */ vectorizeBindings?: ProjectsEditRequestDeploymentConfigsPreviewVectorizeBindingsMap; /** Hash of the Wrangler configuration used for the deployment. */ wranglerConfigHash?: string; } export const ProjectsEditRequestDeploymentConfigsPreview = /*@__PURE__*/ S.suspend(() => S.Struct({ aiBindings: S.optional( ProjectsEditRequestDeploymentConfigsPreviewAiBindingsMap.pipe( T.Body("ai_bindings"), ), ), alwaysUseLatestCompatibilityDate: S.optional( S.Boolean.pipe(T.Body("always_use_latest_compatibility_date")), ), analyticsEngineDatasets: S.optional( ProjectsEditRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsMap.pipe( T.Body("analytics_engine_datasets"), ), ), browsers: S.optional( ProjectsEditRequestDeploymentConfigsPreviewBrowsersMap, ), buildImageMajorVersion: S.optional( S.Number.pipe(T.Body("build_image_major_version")), ), compatibilityDate: S.optional( S.String.pipe(T.Body("compatibility_date")), ), compatibilityFlags: S.optional( ProjectsEditRequestDeploymentConfigsPreviewCompatibilityFlagsList.pipe( T.Body("compatibility_flags"), ), ), d1Databases: S.optional( ProjectsEditRequestDeploymentConfigsPreviewD1DatabasesMap.pipe( T.Body("d1_databases"), ), ), durableObjectNamespaces: S.optional( ProjectsEditRequestDeploymentConfigsPreviewDurableObjectNamespacesMap.pipe( T.Body("durable_object_namespaces"), ), ), envVars: S.optional(UntypedBindingMap.pipe(T.Body("env_vars"))), failOpen: S.optional(S.Boolean.pipe(T.Body("fail_open"))), hyperdriveBindings: S.optional( ProjectsEditRequestDeploymentConfigsPreviewHyperdriveBindingsMap.pipe( T.Body("hyperdrive_bindings"), ), ), kvNamespaces: S.optional( ProjectsEditRequestDeploymentConfigsPreviewKvNamespacesMap.pipe( T.Body("kv_namespaces"), ), ), limits: S.optional(ProjectsCreateRequestDeploymentConfigsPreviewLimits), mtlsCertificates: S.optional( ProjectsEditRequestDeploymentConfigsPreviewMtlsCertificatesMap.pipe( T.Body("mtls_certificates"), ), ), placement: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewPlacement, ), queueProducers: S.optional( ProjectsEditRequestDeploymentConfigsPreviewQueueProducersMap.pipe( T.Body("queue_producers"), ), ), r2Buckets: S.optional( ProjectsEditRequestDeploymentConfigsPreviewR2BucketsMap.pipe( T.Body("r2_buckets"), ), ), services: S.optional( ProjectsEditRequestDeploymentConfigsPreviewServicesMap, ), usageModel: S.optional( ProjectsEditRequestDeploymentConfigsPreviewUsageModel.pipe( T.Body("usage_model"), ), ), vectorizeBindings: S.optional( ProjectsEditRequestDeploymentConfigsPreviewVectorizeBindingsMap.pipe( T.Body("vectorize_bindings"), ), ), wranglerConfigHash: S.optional( S.String.pipe(T.Body("wrangler_config_hash")), ), }), ).annotate({ identifier: "ProjectsEditRequestDeploymentConfigsPreview", }) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsProductionAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export const ProjectsEditRequestDeploymentConfigsProductionAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export type ProjectsEditRequestDeploymentConfigsProductionAiBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsProductionAiBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsProductionAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export const ProjectsEditRequestDeploymentConfigsProductionAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export type ProjectsEditRequestDeploymentConfigsProductionAnalyticsEngineDatasetsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsProductionAnalyticsEngineDatasetsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsProductionBrowsersMap = { [key: string]: unknown | undefined; }; export const ProjectsEditRequestDeploymentConfigsProductionBrowsersMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsProductionCompatibilityFlagsList = Array; export const ProjectsEditRequestDeploymentConfigsProductionCompatibilityFlagsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsProductionD1DatabasesMap = { [key: string]: unknown | undefined; }; export const ProjectsEditRequestDeploymentConfigsProductionD1DatabasesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsProductionDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export const ProjectsEditRequestDeploymentConfigsProductionDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export type ProjectsEditRequestDeploymentConfigsProductionDurableObjectNamespacesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsProductionDurableObjectNamespacesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsProductionHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export const ProjectsEditRequestDeploymentConfigsProductionHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export type ProjectsEditRequestDeploymentConfigsProductionHyperdriveBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsProductionHyperdriveBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsProductionKvNamespacesMap = { [key: string]: unknown | undefined; }; export const ProjectsEditRequestDeploymentConfigsProductionKvNamespacesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsProductionLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export const ProjectsEditRequestDeploymentConfigsProductionLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export type ProjectsEditRequestDeploymentConfigsProductionMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export const ProjectsEditRequestDeploymentConfigsProductionMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export type ProjectsEditRequestDeploymentConfigsProductionMtlsCertificatesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsProductionMtlsCertificatesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsProductionPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export const ProjectsEditRequestDeploymentConfigsProductionPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export type ProjectsEditRequestDeploymentConfigsProductionQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export const ProjectsEditRequestDeploymentConfigsProductionQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export type ProjectsEditRequestDeploymentConfigsProductionQueueProducersMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsProductionQueueProducersMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsProductionR2BucketsMap = { [key: string]: unknown | undefined; }; export const ProjectsEditRequestDeploymentConfigsProductionR2BucketsMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsProductionServicesValue = ProjectsCreateRequestDeploymentConfigsPreviewServicesValue; export const ProjectsEditRequestDeploymentConfigsProductionServicesValue = ProjectsCreateRequestDeploymentConfigsPreviewServicesValue; export type ProjectsEditRequestDeploymentConfigsProductionServicesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewServicesValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsProductionServicesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewServicesValue, ) as any as S.Schema; export type ProjectsEditRequestDeploymentConfigsProductionUsageModel = | "standard" | "bundled" | "unbound"; export const ProjectsEditRequestDeploymentConfigsProductionUsageModel = /*@__PURE__*/ S.String; export type ProjectsEditRequestDeploymentConfigsProductionVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export const ProjectsEditRequestDeploymentConfigsProductionVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export type ProjectsEditRequestDeploymentConfigsProductionVectorizeBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue | undefined; }; export const ProjectsEditRequestDeploymentConfigsProductionVectorizeBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue, ) as any as S.Schema; export interface ProjectsEditRequestDeploymentConfigsProduction { /** Constellation bindings used for Pages Functions. */ aiBindings?: ProjectsEditRequestDeploymentConfigsProductionAiBindingsMap; /** Whether to always use the latest compatibility date for Pages Functions. */ alwaysUseLatestCompatibilityDate?: boolean; /** Analytics Engine bindings used for Pages Functions. */ analyticsEngineDatasets?: ProjectsEditRequestDeploymentConfigsProductionAnalyticsEngineDatasetsMap; /** Browser bindings used for Pages Functions. */ browsers?: ProjectsEditRequestDeploymentConfigsProductionBrowsersMap; /** The major version of the build image to use for Pages Functions. */ buildImageMajorVersion?: number; /** Compatibility date used for Pages Functions. */ compatibilityDate?: string; /** Compatibility flags used for Pages Functions. */ compatibilityFlags?: ProjectsEditRequestDeploymentConfigsProductionCompatibilityFlagsList; /** D1 databases used for Pages Functions. */ d1Databases?: ProjectsEditRequestDeploymentConfigsProductionD1DatabasesMap; /** Durable Object namespaces used for Pages Functions. */ durableObjectNamespaces?: ProjectsEditRequestDeploymentConfigsProductionDurableObjectNamespacesMap; /** Environment variables used for builds and Pages Functions. */ envVars?: UntypedBindingMap; /** Whether to fail open when the deployment config cannot be applied. */ failOpen?: boolean; /** Hyperdrive bindings used for Pages Functions. */ hyperdriveBindings?: ProjectsEditRequestDeploymentConfigsProductionHyperdriveBindingsMap; /** KV namespaces used for Pages Functions. */ kvNamespaces?: ProjectsEditRequestDeploymentConfigsProductionKvNamespacesMap; /** Limits for Pages Functions. */ limits?: ProjectsCreateRequestDeploymentConfigsPreviewLimits; /** mTLS bindings used for Pages Functions. */ mtlsCertificates?: ProjectsEditRequestDeploymentConfigsProductionMtlsCertificatesMap; /** Placement setting used for Pages Functions. */ placement?: ProjectsCreateRequestDeploymentConfigsPreviewPlacement; /** Queue Producer bindings used for Pages Functions. */ queueProducers?: ProjectsEditRequestDeploymentConfigsProductionQueueProducersMap; /** R2 buckets used for Pages Functions. */ r2Buckets?: ProjectsEditRequestDeploymentConfigsProductionR2BucketsMap; /** Services used for Pages Functions. */ services?: ProjectsEditRequestDeploymentConfigsProductionServicesMap; /** The usage model for Pages Functions. */ usageModel?: | ProjectsEditRequestDeploymentConfigsProductionUsageModel | (string & {}); /** Vectorize bindings used for Pages Functions. */ vectorizeBindings?: ProjectsEditRequestDeploymentConfigsProductionVectorizeBindingsMap; /** Hash of the Wrangler configuration used for the deployment. */ wranglerConfigHash?: string; } export const ProjectsEditRequestDeploymentConfigsProduction = /*@__PURE__*/ S.suspend(() => S.Struct({ aiBindings: S.optional( ProjectsEditRequestDeploymentConfigsProductionAiBindingsMap.pipe( T.Body("ai_bindings"), ), ), alwaysUseLatestCompatibilityDate: S.optional( S.Boolean.pipe(T.Body("always_use_latest_compatibility_date")), ), analyticsEngineDatasets: S.optional( ProjectsEditRequestDeploymentConfigsProductionAnalyticsEngineDatasetsMap.pipe( T.Body("analytics_engine_datasets"), ), ), browsers: S.optional( ProjectsEditRequestDeploymentConfigsProductionBrowsersMap, ), buildImageMajorVersion: S.optional( S.Number.pipe(T.Body("build_image_major_version")), ), compatibilityDate: S.optional( S.String.pipe(T.Body("compatibility_date")), ), compatibilityFlags: S.optional( ProjectsEditRequestDeploymentConfigsProductionCompatibilityFlagsList.pipe( T.Body("compatibility_flags"), ), ), d1Databases: S.optional( ProjectsEditRequestDeploymentConfigsProductionD1DatabasesMap.pipe( T.Body("d1_databases"), ), ), durableObjectNamespaces: S.optional( ProjectsEditRequestDeploymentConfigsProductionDurableObjectNamespacesMap.pipe( T.Body("durable_object_namespaces"), ), ), envVars: S.optional(UntypedBindingMap.pipe(T.Body("env_vars"))), failOpen: S.optional(S.Boolean.pipe(T.Body("fail_open"))), hyperdriveBindings: S.optional( ProjectsEditRequestDeploymentConfigsProductionHyperdriveBindingsMap.pipe( T.Body("hyperdrive_bindings"), ), ), kvNamespaces: S.optional( ProjectsEditRequestDeploymentConfigsProductionKvNamespacesMap.pipe( T.Body("kv_namespaces"), ), ), limits: S.optional(ProjectsCreateRequestDeploymentConfigsPreviewLimits), mtlsCertificates: S.optional( ProjectsEditRequestDeploymentConfigsProductionMtlsCertificatesMap.pipe( T.Body("mtls_certificates"), ), ), placement: S.optional( ProjectsCreateRequestDeploymentConfigsPreviewPlacement, ), queueProducers: S.optional( ProjectsEditRequestDeploymentConfigsProductionQueueProducersMap.pipe( T.Body("queue_producers"), ), ), r2Buckets: S.optional( ProjectsEditRequestDeploymentConfigsProductionR2BucketsMap.pipe( T.Body("r2_buckets"), ), ), services: S.optional( ProjectsEditRequestDeploymentConfigsProductionServicesMap, ), usageModel: S.optional( ProjectsEditRequestDeploymentConfigsProductionUsageModel.pipe( T.Body("usage_model"), ), ), vectorizeBindings: S.optional( ProjectsEditRequestDeploymentConfigsProductionVectorizeBindingsMap.pipe( T.Body("vectorize_bindings"), ), ), wranglerConfigHash: S.optional( S.String.pipe(T.Body("wrangler_config_hash")), ), }), ).annotate({ identifier: "ProjectsEditRequestDeploymentConfigsProduction", }) as any as S.Schema; export interface ProjectsEditRequestDeploymentConfigs { /** Configs for preview deploys. */ preview?: ProjectsEditRequestDeploymentConfigsPreview; /** Configs for production deploys. */ production?: ProjectsEditRequestDeploymentConfigsProduction; } export const ProjectsEditRequestDeploymentConfigs = /*@__PURE__*/ S.suspend( () => S.Struct({ preview: S.optional(ProjectsEditRequestDeploymentConfigsPreview), production: S.optional(ProjectsEditRequestDeploymentConfigsProduction), }), ).annotate({ identifier: "ProjectsEditRequestDeploymentConfigs", }) as any as S.Schema; export type ProjectsEditRequestSourceConfigPathExcludesList = Array; export const ProjectsEditRequestSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditRequestSourceConfigPathIncludesList = Array; export const ProjectsEditRequestSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditRequestSourceConfigPreviewBranchExcludesList = Array; export const ProjectsEditRequestSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditRequestSourceConfigPreviewBranchIncludesList = Array; export const ProjectsEditRequestSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditRequestSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsEditRequestSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsEditRequestSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled?: boolean; /** The owner of the repository. */ owner?: string; /** The owner ID of the repository. */ ownerId?: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes?: ProjectsEditRequestSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes?: ProjectsEditRequestSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled?: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes?: ProjectsEditRequestSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes?: ProjectsEditRequestSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting?: | ProjectsEditRequestSourceConfigPreviewDeploymentSetting | (string & {}); /** The production branch of the repository. */ productionBranch?: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled?: boolean; /** The ID of the repository. */ repoId?: string; /** The name of the repository. */ repoName?: string; } export const ProjectsEditRequestSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.optional( S.Boolean.pipe(T.Body("deployments_enabled")), ), owner: S.optional(S.String), ownerId: S.optional(S.String.pipe(T.Body("owner_id"))), pathExcludes: S.optional( ProjectsEditRequestSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), ), pathIncludes: S.optional( ProjectsEditRequestSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), ), prCommentsEnabled: S.optional( S.Boolean.pipe(T.Body("pr_comments_enabled")), ), previewBranchExcludes: S.optional( ProjectsEditRequestSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), ), previewBranchIncludes: S.optional( ProjectsEditRequestSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), ), previewDeploymentSetting: S.optional( ProjectsEditRequestSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), ), productionBranch: S.optional(S.String.pipe(T.Body("production_branch"))), productionDeploymentsEnabled: S.optional( S.Boolean.pipe(T.Body("production_deployments_enabled")), ), repoId: S.optional(S.String.pipe(T.Body("repo_id"))), repoName: S.optional(S.String.pipe(T.Body("repo_name"))), }), ).annotate({ identifier: "ProjectsEditRequestSourceConfig", }) as any as S.Schema; export type ProjectsEditRequestSourceType = "github" | "gitlab"; export const ProjectsEditRequestSourceType = /*@__PURE__*/ S.String; export interface ProjectsEditRequestSource { config: ProjectsEditRequestSourceConfig; /** The source control management provider. */ type: ProjectsEditRequestSourceType | (string & {}); } export const ProjectsEditRequestSource = /*@__PURE__*/ S.suspend(() => S.Struct({ config: ProjectsEditRequestSourceConfig, type: ProjectsEditRequestSourceType, }), ).annotate({ identifier: "ProjectsEditRequestSource", }) as any as S.Schema; export interface PatchProjectRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; /** Configs for the project build process. */ buildConfig?: ProjectsCreateRequestBuildConfig; /** Configs for deployments in a project. */ deploymentConfigs?: ProjectsEditRequestDeploymentConfigs; /** Name of the project. */ name?: string; /** Production branch of the project. Used to identify production deployments. */ productionBranch?: string; /** Configs for the project source control. */ source?: ProjectsEditRequestSource; } export const PatchProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), buildConfig: S.optional( ProjectsCreateRequestBuildConfig.pipe(T.Body("build_config")), ), deploymentConfigs: S.optional( ProjectsEditRequestDeploymentConfigs.pipe(T.Body("deployment_configs")), ), name: S.optional(S.String), productionBranch: S.optional(S.String.pipe(T.Body("production_branch"))), source: S.optional(ProjectsEditRequestSource), }) .pipe( T.Http({ method: "PATCH", uri: "/accounts/{account_id}/pages/projects/{project_name}", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "PatchProjectRequest", }) as any as S.Schema; export type ProjectsEditResponseCanonicalDeploymentAliasesList = Array; export const ProjectsEditResponseCanonicalDeploymentAliasesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditResponseCanonicalDeploymentBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export const ProjectsEditResponseCanonicalDeploymentBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export type ProjectsEditResponseCanonicalDeploymentDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export const ProjectsEditResponseCanonicalDeploymentDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export type ProjectsEditResponseCanonicalDeploymentDeploymentTriggerType = | "github:push" | "ad_hoc" | "deploy_hook"; export const ProjectsEditResponseCanonicalDeploymentDeploymentTriggerType = /*@__PURE__*/ S.String; export interface ProjectsEditResponseCanonicalDeploymentDeploymentTrigger { /** Additional info about the trigger. */ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; /** What caused the deployment. */ type: ProjectsEditResponseCanonicalDeploymentDeploymentTriggerType; } export const ProjectsEditResponseCanonicalDeploymentDeploymentTrigger = /*@__PURE__*/ S.suspend(() => S.Struct({ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata, type: ProjectsEditResponseCanonicalDeploymentDeploymentTriggerType, }), ).annotate({ identifier: "ProjectsEditResponseCanonicalDeploymentDeploymentTrigger", }) as any as S.Schema; export type ProjectsEditResponseCanonicalDeploymentEnvironment = | "preview" | "production"; export const ProjectsEditResponseCanonicalDeploymentEnvironment = /*@__PURE__*/ S.String; export type ProjectsEditResponseCanonicalDeploymentLatestStageName = | "queued" | "initialize" | "clone_repo" | "build" | "deploy"; export const ProjectsEditResponseCanonicalDeploymentLatestStageName = /*@__PURE__*/ S.String; export type ProjectsEditResponseCanonicalDeploymentLatestStageStatus = | "success" | "idle" | "active" | "failure" | "canceled"; export const ProjectsEditResponseCanonicalDeploymentLatestStageStatus = /*@__PURE__*/ S.String; export interface ProjectsEditResponseCanonicalDeploymentLatestStage { /** When the stage ended. */ endedOn: string; /** The current build stage. */ name: ProjectsEditResponseCanonicalDeploymentLatestStageName; /** When the stage started. */ startedOn: string; /** State of the current stage. */ status: ProjectsEditResponseCanonicalDeploymentLatestStageStatus; } export const ProjectsEditResponseCanonicalDeploymentLatestStage = /*@__PURE__*/ S.suspend(() => S.Struct({ endedOn: S.String.pipe(T.Body("ended_on")), name: ProjectsEditResponseCanonicalDeploymentLatestStageName, startedOn: S.String.pipe(T.Body("started_on")), status: ProjectsEditResponseCanonicalDeploymentLatestStageStatus, }), ).annotate({ identifier: "ProjectsEditResponseCanonicalDeploymentLatestStage", }) as any as S.Schema; export type ProjectsEditResponseCanonicalDeploymentSourceConfigPathExcludesList = Array; export const ProjectsEditResponseCanonicalDeploymentSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditResponseCanonicalDeploymentSourceConfigPathIncludesList = Array; export const ProjectsEditResponseCanonicalDeploymentSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditResponseCanonicalDeploymentSourceConfigPreviewBranchExcludesList = Array; export const ProjectsEditResponseCanonicalDeploymentSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditResponseCanonicalDeploymentSourceConfigPreviewBranchIncludesList = Array; export const ProjectsEditResponseCanonicalDeploymentSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditResponseCanonicalDeploymentSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsEditResponseCanonicalDeploymentSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsEditResponseCanonicalDeploymentSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled: boolean; /** The owner of the repository. */ owner: string; /** The owner ID of the repository. */ ownerId: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes: ProjectsEditResponseCanonicalDeploymentSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes: ProjectsEditResponseCanonicalDeploymentSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes: ProjectsEditResponseCanonicalDeploymentSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes: ProjectsEditResponseCanonicalDeploymentSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting: ProjectsEditResponseCanonicalDeploymentSourceConfigPreviewDeploymentSetting; /** The production branch of the repository. */ productionBranch: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled: boolean; /** The ID of the repository. */ repoId: string; /** The name of the repository. */ repoName: string; } export const ProjectsEditResponseCanonicalDeploymentSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.Boolean.pipe(T.Body("deployments_enabled")), owner: S.String, ownerId: S.String.pipe(T.Body("owner_id")), pathExcludes: ProjectsEditResponseCanonicalDeploymentSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), pathIncludes: ProjectsEditResponseCanonicalDeploymentSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), prCommentsEnabled: S.Boolean.pipe(T.Body("pr_comments_enabled")), previewBranchExcludes: ProjectsEditResponseCanonicalDeploymentSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), previewBranchIncludes: ProjectsEditResponseCanonicalDeploymentSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), previewDeploymentSetting: ProjectsEditResponseCanonicalDeploymentSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), productionBranch: S.String.pipe(T.Body("production_branch")), productionDeploymentsEnabled: S.Boolean.pipe( T.Body("production_deployments_enabled"), ), repoId: S.String.pipe(T.Body("repo_id")), repoName: S.String.pipe(T.Body("repo_name")), }), ).annotate({ identifier: "ProjectsEditResponseCanonicalDeploymentSourceConfig", }) as any as S.Schema; export type ProjectsEditResponseCanonicalDeploymentSourceType = | "github" | "gitlab"; export const ProjectsEditResponseCanonicalDeploymentSourceType = /*@__PURE__*/ S.String; export interface ProjectsEditResponseCanonicalDeploymentSource { config: ProjectsEditResponseCanonicalDeploymentSourceConfig; /** The source control management provider. */ type: ProjectsEditResponseCanonicalDeploymentSourceType; } export const ProjectsEditResponseCanonicalDeploymentSource = /*@__PURE__*/ S.suspend(() => S.Struct({ config: ProjectsEditResponseCanonicalDeploymentSourceConfig, type: ProjectsEditResponseCanonicalDeploymentSourceType, }), ).annotate({ identifier: "ProjectsEditResponseCanonicalDeploymentSource", }) as any as S.Schema; export type ProjectsEditResponseCanonicalDeploymentStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export const ProjectsEditResponseCanonicalDeploymentStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export type ProjectsEditResponseCanonicalDeploymentStagesList = Array; export const ProjectsEditResponseCanonicalDeploymentStagesList = /*@__PURE__*/ S.Array( ProjectsCreateResponseCanonicalDeploymentStagesItem, ) as any as S.Schema; export interface ProjectsEditResponseCanonicalDeployment { /** Id of the deployment. */ id: string; /** A list of alias URLs pointing to this deployment. */ aliases: ProjectsEditResponseCanonicalDeploymentAliasesList; /** Configs for the project build process. */ buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig; /** When the deployment was created. */ createdOn: string; /** Info about what caused the deployment. */ deploymentTrigger: ProjectsEditResponseCanonicalDeploymentDeploymentTrigger; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Type of deploy. */ environment: ProjectsEditResponseCanonicalDeploymentEnvironment; /** If the deployment has been skipped. */ isSkipped: boolean; /** The status of the deployment. */ latestStage: ProjectsEditResponseCanonicalDeploymentLatestStage; /** When the deployment was last modified. */ modifiedOn: string; /** Id of the project. */ projectId: string; /** Name of the project. */ projectName: string; /** Short Id (8 character) of the deployment. */ shortId: string; /** Configs for the project source control. */ source: ProjectsEditResponseCanonicalDeploymentSource; /** List of past stages. */ stages: ProjectsEditResponseCanonicalDeploymentStagesList; /** The live URL to view this deployment. */ url: string; /** Whether the deployment uses functions. */ usesFunctions?: boolean | null; } export const ProjectsEditResponseCanonicalDeployment = /*@__PURE__*/ S.suspend( () => S.Struct({ id: S.String, aliases: ProjectsEditResponseCanonicalDeploymentAliasesList, buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig.pipe( T.Body("build_config"), ), createdOn: S.String.pipe(T.Body("created_on")), deploymentTrigger: ProjectsEditResponseCanonicalDeploymentDeploymentTrigger.pipe( T.Body("deployment_trigger"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), environment: ProjectsEditResponseCanonicalDeploymentEnvironment, isSkipped: S.Boolean.pipe(T.Body("is_skipped")), latestStage: ProjectsEditResponseCanonicalDeploymentLatestStage.pipe( T.Body("latest_stage"), ), modifiedOn: S.String.pipe(T.Body("modified_on")), projectId: S.String.pipe(T.Body("project_id")), projectName: S.String.pipe(T.Body("project_name")), shortId: S.String.pipe(T.Body("short_id")), source: ProjectsEditResponseCanonicalDeploymentSource, stages: ProjectsEditResponseCanonicalDeploymentStagesList, url: S.String, usesFunctions: S.optional( S.NullOr(S.Boolean).pipe(T.Body("uses_functions")), ), }), ).annotate({ identifier: "ProjectsEditResponseCanonicalDeployment", }) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsPreviewCompatibilityFlagsList = Array; export const ProjectsEditResponseDeploymentConfigsPreviewCompatibilityFlagsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsPreviewUsageModel = | "standard" | "bundled" | "unbound"; export const ProjectsEditResponseDeploymentConfigsPreviewUsageModel = /*@__PURE__*/ S.String; export type ProjectsEditResponseDeploymentConfigsPreviewAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export const ProjectsEditResponseDeploymentConfigsPreviewAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export type ProjectsEditResponseDeploymentConfigsPreviewAiBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsPreviewAiBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export const ProjectsEditResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export type ProjectsEditResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsPreviewBrowsersMap = { [key: string]: unknown | undefined; }; export const ProjectsEditResponseDeploymentConfigsPreviewBrowsersMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsPreviewD1DatabasesMap = { [key: string]: unknown | undefined; }; export const ProjectsEditResponseDeploymentConfigsPreviewD1DatabasesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsPreviewDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export const ProjectsEditResponseDeploymentConfigsPreviewDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export type ProjectsEditResponseDeploymentConfigsPreviewDurableObjectNamespacesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsPreviewDurableObjectNamespacesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsPreviewHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export const ProjectsEditResponseDeploymentConfigsPreviewHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export type ProjectsEditResponseDeploymentConfigsPreviewHyperdriveBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsPreviewHyperdriveBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsPreviewKvNamespacesMap = { [key: string]: unknown | undefined; }; export const ProjectsEditResponseDeploymentConfigsPreviewKvNamespacesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsPreviewLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export const ProjectsEditResponseDeploymentConfigsPreviewLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export type ProjectsEditResponseDeploymentConfigsPreviewMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export const ProjectsEditResponseDeploymentConfigsPreviewMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export type ProjectsEditResponseDeploymentConfigsPreviewMtlsCertificatesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsPreviewMtlsCertificatesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsPreviewPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export const ProjectsEditResponseDeploymentConfigsPreviewPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export type ProjectsEditResponseDeploymentConfigsPreviewQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export const ProjectsEditResponseDeploymentConfigsPreviewQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export type ProjectsEditResponseDeploymentConfigsPreviewQueueProducersMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsPreviewQueueProducersMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsPreviewR2BucketsMap = { [key: string]: unknown | undefined; }; export const ProjectsEditResponseDeploymentConfigsPreviewR2BucketsMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsPreviewServicesValue = ProjectsCreateResponseDeploymentConfigsPreviewServicesValue; export const ProjectsEditResponseDeploymentConfigsPreviewServicesValue = ProjectsCreateResponseDeploymentConfigsPreviewServicesValue; export type ProjectsEditResponseDeploymentConfigsPreviewServicesMap = { [key: string]: | ProjectsCreateResponseDeploymentConfigsPreviewServicesValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsPreviewServicesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateResponseDeploymentConfigsPreviewServicesValue, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsPreviewVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export const ProjectsEditResponseDeploymentConfigsPreviewVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export type ProjectsEditResponseDeploymentConfigsPreviewVectorizeBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsPreviewVectorizeBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue, ) as any as S.Schema; export interface ProjectsEditResponseDeploymentConfigsPreview { /** Whether to always use the latest compatibility date for Pages Functions. */ alwaysUseLatestCompatibilityDate: boolean; /** The major version of the build image to use for Pages Functions. */ buildImageMajorVersion: number; /** Compatibility date used for Pages Functions. */ compatibilityDate: string; /** Compatibility flags used for Pages Functions. */ compatibilityFlags: ProjectsEditResponseDeploymentConfigsPreviewCompatibilityFlagsList; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Whether to fail open when the deployment config cannot be applied. */ failOpen: boolean; /** The usage model for Pages Functions. */ usageModel: ProjectsEditResponseDeploymentConfigsPreviewUsageModel; /** Constellation bindings used for Pages Functions. */ aiBindings?: ProjectsEditResponseDeploymentConfigsPreviewAiBindingsMap | null; /** Analytics Engine bindings used for Pages Functions. */ analyticsEngineDatasets?: ProjectsEditResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsMap | null; /** Browser bindings used for Pages Functions. */ browsers?: ProjectsEditResponseDeploymentConfigsPreviewBrowsersMap | null; /** D1 databases used for Pages Functions. */ d1Databases?: ProjectsEditResponseDeploymentConfigsPreviewD1DatabasesMap | null; /** Durable Object namespaces used for Pages Functions. */ durableObjectNamespaces?: ProjectsEditResponseDeploymentConfigsPreviewDurableObjectNamespacesMap | null; /** Hyperdrive bindings used for Pages Functions. */ hyperdriveBindings?: ProjectsEditResponseDeploymentConfigsPreviewHyperdriveBindingsMap | null; /** KV namespaces used for Pages Functions. */ kvNamespaces?: ProjectsEditResponseDeploymentConfigsPreviewKvNamespacesMap | null; /** Limits for Pages Functions. */ limits?: ProjectsCreateRequestDeploymentConfigsPreviewLimits | null; /** mTLS bindings used for Pages Functions. */ mtlsCertificates?: ProjectsEditResponseDeploymentConfigsPreviewMtlsCertificatesMap | null; /** Placement setting used for Pages Functions. */ placement?: ProjectsCreateRequestDeploymentConfigsPreviewPlacement | null; /** Queue Producer bindings used for Pages Functions. */ queueProducers?: ProjectsEditResponseDeploymentConfigsPreviewQueueProducersMap | null; /** R2 buckets used for Pages Functions. */ r2Buckets?: ProjectsEditResponseDeploymentConfigsPreviewR2BucketsMap | null; /** Services used for Pages Functions. */ services?: ProjectsEditResponseDeploymentConfigsPreviewServicesMap | null; /** Vectorize bindings used for Pages Functions. */ vectorizeBindings?: ProjectsEditResponseDeploymentConfigsPreviewVectorizeBindingsMap | null; /** Hash of the Wrangler configuration used for the deployment. */ wranglerConfigHash?: string | null; } export const ProjectsEditResponseDeploymentConfigsPreview = /*@__PURE__*/ S.suspend(() => S.Struct({ alwaysUseLatestCompatibilityDate: S.Boolean.pipe( T.Body("always_use_latest_compatibility_date"), ), buildImageMajorVersion: S.Number.pipe( T.Body("build_image_major_version"), ), compatibilityDate: S.String.pipe(T.Body("compatibility_date")), compatibilityFlags: ProjectsEditResponseDeploymentConfigsPreviewCompatibilityFlagsList.pipe( T.Body("compatibility_flags"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), failOpen: S.Boolean.pipe(T.Body("fail_open")), usageModel: ProjectsEditResponseDeploymentConfigsPreviewUsageModel.pipe( T.Body("usage_model"), ), aiBindings: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsPreviewAiBindingsMap, ).pipe(T.Body("ai_bindings")), ), analyticsEngineDatasets: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsPreviewAnalyticsEngineDatasetsMap, ).pipe(T.Body("analytics_engine_datasets")), ), browsers: S.optional( S.NullOr(ProjectsEditResponseDeploymentConfigsPreviewBrowsersMap), ), d1Databases: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsPreviewD1DatabasesMap, ).pipe(T.Body("d1_databases")), ), durableObjectNamespaces: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsPreviewDurableObjectNamespacesMap, ).pipe(T.Body("durable_object_namespaces")), ), hyperdriveBindings: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsPreviewHyperdriveBindingsMap, ).pipe(T.Body("hyperdrive_bindings")), ), kvNamespaces: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsPreviewKvNamespacesMap, ).pipe(T.Body("kv_namespaces")), ), limits: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewLimits), ), mtlsCertificates: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsPreviewMtlsCertificatesMap, ).pipe(T.Body("mtls_certificates")), ), placement: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewPlacement), ), queueProducers: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsPreviewQueueProducersMap, ).pipe(T.Body("queue_producers")), ), r2Buckets: S.optional( S.NullOr(ProjectsEditResponseDeploymentConfigsPreviewR2BucketsMap).pipe( T.Body("r2_buckets"), ), ), services: S.optional( S.NullOr(ProjectsEditResponseDeploymentConfigsPreviewServicesMap), ), vectorizeBindings: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsPreviewVectorizeBindingsMap, ).pipe(T.Body("vectorize_bindings")), ), wranglerConfigHash: S.optional( S.NullOr(S.String).pipe(T.Body("wrangler_config_hash")), ), }), ).annotate({ identifier: "ProjectsEditResponseDeploymentConfigsPreview", }) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsProductionCompatibilityFlagsList = Array; export const ProjectsEditResponseDeploymentConfigsProductionCompatibilityFlagsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsProductionUsageModel = | "standard" | "bundled" | "unbound"; export const ProjectsEditResponseDeploymentConfigsProductionUsageModel = /*@__PURE__*/ S.String; export type ProjectsEditResponseDeploymentConfigsProductionAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export const ProjectsEditResponseDeploymentConfigsProductionAiBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue; export type ProjectsEditResponseDeploymentConfigsProductionAiBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsProductionAiBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAiBindingsValue, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsProductionAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export const ProjectsEditResponseDeploymentConfigsProductionAnalyticsEngineDatasetsValue = ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue; export type ProjectsEditResponseDeploymentConfigsProductionAnalyticsEngineDatasetsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsProductionAnalyticsEngineDatasetsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewAnalyticsEngineDatasetsValue, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsProductionBrowsersMap = { [key: string]: unknown | undefined; }; export const ProjectsEditResponseDeploymentConfigsProductionBrowsersMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsProductionD1DatabasesMap = { [key: string]: unknown | undefined; }; export const ProjectsEditResponseDeploymentConfigsProductionD1DatabasesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsProductionDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export const ProjectsEditResponseDeploymentConfigsProductionDurableObjectNamespacesValue = ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue; export type ProjectsEditResponseDeploymentConfigsProductionDurableObjectNamespacesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsProductionDurableObjectNamespacesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewDurableObjectNamespacesValue, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsProductionHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export const ProjectsEditResponseDeploymentConfigsProductionHyperdriveBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue; export type ProjectsEditResponseDeploymentConfigsProductionHyperdriveBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsProductionHyperdriveBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewHyperdriveBindingsValue, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsProductionKvNamespacesMap = { [key: string]: unknown | undefined; }; export const ProjectsEditResponseDeploymentConfigsProductionKvNamespacesMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsProductionLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export const ProjectsEditResponseDeploymentConfigsProductionLimits = ProjectsCreateRequestDeploymentConfigsPreviewLimits; export type ProjectsEditResponseDeploymentConfigsProductionMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export const ProjectsEditResponseDeploymentConfigsProductionMtlsCertificatesValue = ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue; export type ProjectsEditResponseDeploymentConfigsProductionMtlsCertificatesMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsProductionMtlsCertificatesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewMtlsCertificatesValue, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsProductionPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export const ProjectsEditResponseDeploymentConfigsProductionPlacement = ProjectsCreateRequestDeploymentConfigsPreviewPlacement; export type ProjectsEditResponseDeploymentConfigsProductionQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export const ProjectsEditResponseDeploymentConfigsProductionQueueProducersValue = ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue; export type ProjectsEditResponseDeploymentConfigsProductionQueueProducersMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsProductionQueueProducersMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewQueueProducersValue, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsProductionR2BucketsMap = { [key: string]: unknown | undefined; }; export const ProjectsEditResponseDeploymentConfigsProductionR2BucketsMap = /*@__PURE__*/ S.Record( S.String, S.Unknown, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsProductionServicesValue = ProjectsCreateResponseDeploymentConfigsPreviewServicesValue; export const ProjectsEditResponseDeploymentConfigsProductionServicesValue = ProjectsCreateResponseDeploymentConfigsPreviewServicesValue; export type ProjectsEditResponseDeploymentConfigsProductionServicesMap = { [key: string]: | ProjectsCreateResponseDeploymentConfigsPreviewServicesValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsProductionServicesMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateResponseDeploymentConfigsPreviewServicesValue, ) as any as S.Schema; export type ProjectsEditResponseDeploymentConfigsProductionVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export const ProjectsEditResponseDeploymentConfigsProductionVectorizeBindingsValue = ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue; export type ProjectsEditResponseDeploymentConfigsProductionVectorizeBindingsMap = { [key: string]: | ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue | undefined; }; export const ProjectsEditResponseDeploymentConfigsProductionVectorizeBindingsMap = /*@__PURE__*/ S.Record( S.String, ProjectsCreateRequestDeploymentConfigsPreviewVectorizeBindingsValue, ) as any as S.Schema; export interface ProjectsEditResponseDeploymentConfigsProduction { /** Whether to always use the latest compatibility date for Pages Functions. */ alwaysUseLatestCompatibilityDate: boolean; /** The major version of the build image to use for Pages Functions. */ buildImageMajorVersion: number; /** Compatibility date used for Pages Functions. */ compatibilityDate: string; /** Compatibility flags used for Pages Functions. */ compatibilityFlags: ProjectsEditResponseDeploymentConfigsProductionCompatibilityFlagsList; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Whether to fail open when the deployment config cannot be applied. */ failOpen: boolean; /** The usage model for Pages Functions. */ usageModel: ProjectsEditResponseDeploymentConfigsProductionUsageModel; /** Constellation bindings used for Pages Functions. */ aiBindings?: ProjectsEditResponseDeploymentConfigsProductionAiBindingsMap | null; /** Analytics Engine bindings used for Pages Functions. */ analyticsEngineDatasets?: ProjectsEditResponseDeploymentConfigsProductionAnalyticsEngineDatasetsMap | null; /** Browser bindings used for Pages Functions. */ browsers?: ProjectsEditResponseDeploymentConfigsProductionBrowsersMap | null; /** D1 databases used for Pages Functions. */ d1Databases?: ProjectsEditResponseDeploymentConfigsProductionD1DatabasesMap | null; /** Durable Object namespaces used for Pages Functions. */ durableObjectNamespaces?: ProjectsEditResponseDeploymentConfigsProductionDurableObjectNamespacesMap | null; /** Hyperdrive bindings used for Pages Functions. */ hyperdriveBindings?: ProjectsEditResponseDeploymentConfigsProductionHyperdriveBindingsMap | null; /** KV namespaces used for Pages Functions. */ kvNamespaces?: ProjectsEditResponseDeploymentConfigsProductionKvNamespacesMap | null; /** Limits for Pages Functions. */ limits?: ProjectsCreateRequestDeploymentConfigsPreviewLimits | null; /** mTLS bindings used for Pages Functions. */ mtlsCertificates?: ProjectsEditResponseDeploymentConfigsProductionMtlsCertificatesMap | null; /** Placement setting used for Pages Functions. */ placement?: ProjectsCreateRequestDeploymentConfigsPreviewPlacement | null; /** Queue Producer bindings used for Pages Functions. */ queueProducers?: ProjectsEditResponseDeploymentConfigsProductionQueueProducersMap | null; /** R2 buckets used for Pages Functions. */ r2Buckets?: ProjectsEditResponseDeploymentConfigsProductionR2BucketsMap | null; /** Services used for Pages Functions. */ services?: ProjectsEditResponseDeploymentConfigsProductionServicesMap | null; /** Vectorize bindings used for Pages Functions. */ vectorizeBindings?: ProjectsEditResponseDeploymentConfigsProductionVectorizeBindingsMap | null; /** Hash of the Wrangler configuration used for the deployment. */ wranglerConfigHash?: string | null; } export const ProjectsEditResponseDeploymentConfigsProduction = /*@__PURE__*/ S.suspend(() => S.Struct({ alwaysUseLatestCompatibilityDate: S.Boolean.pipe( T.Body("always_use_latest_compatibility_date"), ), buildImageMajorVersion: S.Number.pipe( T.Body("build_image_major_version"), ), compatibilityDate: S.String.pipe(T.Body("compatibility_date")), compatibilityFlags: ProjectsEditResponseDeploymentConfigsProductionCompatibilityFlagsList.pipe( T.Body("compatibility_flags"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), failOpen: S.Boolean.pipe(T.Body("fail_open")), usageModel: ProjectsEditResponseDeploymentConfigsProductionUsageModel.pipe( T.Body("usage_model"), ), aiBindings: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsProductionAiBindingsMap, ).pipe(T.Body("ai_bindings")), ), analyticsEngineDatasets: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsProductionAnalyticsEngineDatasetsMap, ).pipe(T.Body("analytics_engine_datasets")), ), browsers: S.optional( S.NullOr(ProjectsEditResponseDeploymentConfigsProductionBrowsersMap), ), d1Databases: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsProductionD1DatabasesMap, ).pipe(T.Body("d1_databases")), ), durableObjectNamespaces: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsProductionDurableObjectNamespacesMap, ).pipe(T.Body("durable_object_namespaces")), ), hyperdriveBindings: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsProductionHyperdriveBindingsMap, ).pipe(T.Body("hyperdrive_bindings")), ), kvNamespaces: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsProductionKvNamespacesMap, ).pipe(T.Body("kv_namespaces")), ), limits: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewLimits), ), mtlsCertificates: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsProductionMtlsCertificatesMap, ).pipe(T.Body("mtls_certificates")), ), placement: S.optional( S.NullOr(ProjectsCreateRequestDeploymentConfigsPreviewPlacement), ), queueProducers: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsProductionQueueProducersMap, ).pipe(T.Body("queue_producers")), ), r2Buckets: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsProductionR2BucketsMap, ).pipe(T.Body("r2_buckets")), ), services: S.optional( S.NullOr(ProjectsEditResponseDeploymentConfigsProductionServicesMap), ), vectorizeBindings: S.optional( S.NullOr( ProjectsEditResponseDeploymentConfigsProductionVectorizeBindingsMap, ).pipe(T.Body("vectorize_bindings")), ), wranglerConfigHash: S.optional( S.NullOr(S.String).pipe(T.Body("wrangler_config_hash")), ), }), ).annotate({ identifier: "ProjectsEditResponseDeploymentConfigsProduction", }) as any as S.Schema; export interface ProjectsEditResponseDeploymentConfigs { /** Configs for preview deploys. */ preview: ProjectsEditResponseDeploymentConfigsPreview; /** Configs for production deploys. */ production: ProjectsEditResponseDeploymentConfigsProduction; } export const ProjectsEditResponseDeploymentConfigs = /*@__PURE__*/ S.suspend( () => S.Struct({ preview: ProjectsEditResponseDeploymentConfigsPreview, production: ProjectsEditResponseDeploymentConfigsProduction, }), ).annotate({ identifier: "ProjectsEditResponseDeploymentConfigs", }) as any as S.Schema; export type ProjectsEditResponseBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export const ProjectsEditResponseBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export type ProjectsEditResponseDomainsList = Array; export const ProjectsEditResponseDomainsList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditResponseSourceConfigPathExcludesList = Array; export const ProjectsEditResponseSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditResponseSourceConfigPathIncludesList = Array; export const ProjectsEditResponseSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditResponseSourceConfigPreviewBranchExcludesList = Array; export const ProjectsEditResponseSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditResponseSourceConfigPreviewBranchIncludesList = Array; export const ProjectsEditResponseSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsEditResponseSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsEditResponseSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsEditResponseSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled: boolean; /** The owner of the repository. */ owner: string; /** The owner ID of the repository. */ ownerId: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes: ProjectsEditResponseSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes: ProjectsEditResponseSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes: ProjectsEditResponseSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes: ProjectsEditResponseSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting: ProjectsEditResponseSourceConfigPreviewDeploymentSetting; /** The production branch of the repository. */ productionBranch: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled: boolean; /** The ID of the repository. */ repoId: string; /** The name of the repository. */ repoName: string; } export const ProjectsEditResponseSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.Boolean.pipe(T.Body("deployments_enabled")), owner: S.String, ownerId: S.String.pipe(T.Body("owner_id")), pathExcludes: ProjectsEditResponseSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), pathIncludes: ProjectsEditResponseSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), prCommentsEnabled: S.Boolean.pipe(T.Body("pr_comments_enabled")), previewBranchExcludes: ProjectsEditResponseSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), previewBranchIncludes: ProjectsEditResponseSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), previewDeploymentSetting: ProjectsEditResponseSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), productionBranch: S.String.pipe(T.Body("production_branch")), productionDeploymentsEnabled: S.Boolean.pipe( T.Body("production_deployments_enabled"), ), repoId: S.String.pipe(T.Body("repo_id")), repoName: S.String.pipe(T.Body("repo_name")), }), ).annotate({ identifier: "ProjectsEditResponseSourceConfig", }) as any as S.Schema; export type ProjectsEditResponseSourceType = "github" | "gitlab"; export const ProjectsEditResponseSourceType = /*@__PURE__*/ S.String; export interface ProjectsEditResponseSource { config: ProjectsEditResponseSourceConfig; /** The source control management provider. */ type: ProjectsEditResponseSourceType; } export const ProjectsEditResponseSource = /*@__PURE__*/ S.suspend(() => S.Struct({ config: ProjectsEditResponseSourceConfig, type: ProjectsEditResponseSourceType, }), ).annotate({ identifier: "ProjectsEditResponseSource", }) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PatchProjectResponse { /** ID of the project. */ id: string; /** Most recent production deployment of the project. */ canonicalDeployment: ProjectsEditResponseCanonicalDeployment; /** When the project was created. */ createdOn: string; /** Configs for deployments in a project. */ deploymentConfigs: ProjectsEditResponseDeploymentConfigs; /** Framework the project is using. */ framework: string; /** Version of the framework the project is using. */ frameworkVersion: string; /** Most recent deployment of the project. */ latestDeployment: ProjectsEditResponseCanonicalDeployment; /** Name of the project. */ name: string; /** Name of the preview script. */ previewScriptName: string; /** Production branch of the project. Used to identify production deployments. */ productionBranch: string; /** Name of the production script. */ productionScriptName: string; /** Whether the project uses functions. */ usesFunctions: boolean; /** Configs for the project build process. */ buildConfig?: ProjectsCreateResponseCanonicalDeploymentBuildConfig | null; /** A list of associated custom domains for the project. */ domains?: ProjectsEditResponseDomainsList | null; /** Configs for the project source control. */ source?: ProjectsEditResponseSource | null; /** The Cloudflare subdomain associated with the project. */ subdomain?: string | null; } export const PatchProjectResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, canonicalDeployment: ProjectsEditResponseCanonicalDeployment.pipe( T.Body("canonical_deployment"), ), createdOn: S.String.pipe(T.Body("created_on")), deploymentConfigs: ProjectsEditResponseDeploymentConfigs.pipe( T.Body("deployment_configs"), ), framework: S.String, frameworkVersion: S.String.pipe(T.Body("framework_version")), latestDeployment: ProjectsEditResponseCanonicalDeployment.pipe( T.Body("latest_deployment"), ), name: S.String, previewScriptName: S.String.pipe(T.Body("preview_script_name")), productionBranch: S.String.pipe(T.Body("production_branch")), productionScriptName: S.String.pipe(T.Body("production_script_name")), usesFunctions: S.Boolean.pipe(T.Body("uses_functions")), buildConfig: S.optional( S.NullOr(ProjectsCreateResponseCanonicalDeploymentBuildConfig).pipe( T.Body("build_config"), ), ), domains: S.optional(S.NullOr(ProjectsEditResponseDomainsList)), source: S.optional(S.NullOr(ProjectsEditResponseSource)), subdomain: S.optional(S.NullOr(S.String)), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "PatchProjectResponse", }) as any as S.Schema; export interface PatchProjectDomainRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; /** The domain name. */ domainName: string; } export const PatchProjectDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), domainName: S.String.pipe(T.Label("domain_name")), }) .pipe( T.Http({ method: "PATCH", uri: "/accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "PatchProjectDomainRequest", }) as any as S.Schema; export type ProjectsDomainsEditResponseCertificateAuthority = | "google" | "lets_encrypt"; export const ProjectsDomainsEditResponseCertificateAuthority = /*@__PURE__*/ S.String; export type ProjectsDomainsEditResponseStatus = | "initializing" | "pending" | "active" | "deactivated" | "blocked" | "error"; export const ProjectsDomainsEditResponseStatus = /*@__PURE__*/ S.String; export type ProjectsDomainsEditResponseValidationDataMethod = "http" | "txt"; export const ProjectsDomainsEditResponseValidationDataMethod = /*@__PURE__*/ S.String; export type ProjectsDomainsEditResponseValidationDataStatus = | "initializing" | "pending" | "active" | "deactivated" | "error"; export const ProjectsDomainsEditResponseValidationDataStatus = /*@__PURE__*/ S.String; export interface ProjectsDomainsEditResponseValidationData { method: ProjectsDomainsEditResponseValidationDataMethod; status: ProjectsDomainsEditResponseValidationDataStatus; errorMessage?: string | null; txtName?: string | null; txtValue?: string | null; } export const ProjectsDomainsEditResponseValidationData = /*@__PURE__*/ S.suspend(() => S.Struct({ method: ProjectsDomainsEditResponseValidationDataMethod, status: ProjectsDomainsEditResponseValidationDataStatus, errorMessage: S.optional( S.NullOr(S.String).pipe(T.Body("error_message")), ), txtName: S.optional(S.NullOr(S.String).pipe(T.Body("txt_name"))), txtValue: S.optional(S.NullOr(S.String).pipe(T.Body("txt_value"))), }), ).annotate({ identifier: "ProjectsDomainsEditResponseValidationData", }) as any as S.Schema; export type ProjectsDomainsEditResponseVerificationDataStatus = | "pending" | "active" | "deactivated" | "blocked" | "error"; export const ProjectsDomainsEditResponseVerificationDataStatus = /*@__PURE__*/ S.String; export interface ProjectsDomainsEditResponseVerificationData { status: ProjectsDomainsEditResponseVerificationDataStatus; errorMessage?: string | null; } export const ProjectsDomainsEditResponseVerificationData = /*@__PURE__*/ S.suspend(() => S.Struct({ status: ProjectsDomainsEditResponseVerificationDataStatus, errorMessage: S.optional( S.NullOr(S.String).pipe(T.Body("error_message")), ), }), ).annotate({ identifier: "ProjectsDomainsEditResponseVerificationData", }) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PatchProjectDomainResponse { id: string; certificateAuthority: ProjectsDomainsEditResponseCertificateAuthority; createdOn: string; domainId: string; /** The domain name. */ name: string; status: ProjectsDomainsEditResponseStatus; validationData: ProjectsDomainsEditResponseValidationData; verificationData: ProjectsDomainsEditResponseVerificationData; zoneTag: string; } export const PatchProjectDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, certificateAuthority: ProjectsDomainsEditResponseCertificateAuthority.pipe( T.Body("certificate_authority"), ), createdOn: S.String.pipe(T.Body("created_on")), domainId: S.String.pipe(T.Body("domain_id")), name: S.String, status: ProjectsDomainsEditResponseStatus, validationData: ProjectsDomainsEditResponseValidationData.pipe( T.Body("validation_data"), ), verificationData: ProjectsDomainsEditResponseVerificationData.pipe( T.Body("verification_data"), ), zoneTag: S.String.pipe(T.Body("zone_tag")), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "PatchProjectDomainResponse", }) as any as S.Schema; export interface PurgeBuildCacheProjectRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; } export const PurgeBuildCacheProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), }) .pipe( T.Http({ method: "POST", uri: "/accounts/{account_id}/pages/projects/{project_name}/purge_build_cache", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "PurgeBuildCacheProjectRequest", }) as any as S.Schema; export type PurgeBuildCacheProjectResponse = unknown; export const PurgeBuildCacheProjectResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.EnvelopePayloadRoot(), T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "PurgeBuildCacheProjectResponse", }) as any as S.Schema; export interface RetryProjectDeploymentRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; /** Identifier. */ deploymentId: string; } export const RetryProjectDeploymentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), deploymentId: S.String.pipe(T.Label("deployment_id")), }) .pipe( T.Http({ method: "POST", uri: "/accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/retry", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "RetryProjectDeploymentRequest", }) as any as S.Schema; export type ProjectsDeploymentsRetryResponseAliasesList = Array; export const ProjectsDeploymentsRetryResponseAliasesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsRetryResponseBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export const ProjectsDeploymentsRetryResponseBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export type ProjectsDeploymentsRetryResponseDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export const ProjectsDeploymentsRetryResponseDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export type ProjectsDeploymentsRetryResponseDeploymentTriggerType = | "github:push" | "ad_hoc" | "deploy_hook"; export const ProjectsDeploymentsRetryResponseDeploymentTriggerType = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsRetryResponseDeploymentTrigger { /** Additional info about the trigger. */ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; /** What caused the deployment. */ type: ProjectsDeploymentsRetryResponseDeploymentTriggerType; } export const ProjectsDeploymentsRetryResponseDeploymentTrigger = /*@__PURE__*/ S.suspend(() => S.Struct({ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata, type: ProjectsDeploymentsRetryResponseDeploymentTriggerType, }), ).annotate({ identifier: "ProjectsDeploymentsRetryResponseDeploymentTrigger", }) as any as S.Schema; export type ProjectsDeploymentsRetryResponseEnvironment = | "preview" | "production"; export const ProjectsDeploymentsRetryResponseEnvironment = /*@__PURE__*/ S.String; export type ProjectsDeploymentsRetryResponseLatestStageName = | "queued" | "initialize" | "clone_repo" | "build" | "deploy"; export const ProjectsDeploymentsRetryResponseLatestStageName = /*@__PURE__*/ S.String; export type ProjectsDeploymentsRetryResponseLatestStageStatus = | "success" | "idle" | "active" | "failure" | "canceled"; export const ProjectsDeploymentsRetryResponseLatestStageStatus = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsRetryResponseLatestStage { /** When the stage ended. */ endedOn: string; /** The current build stage. */ name: ProjectsDeploymentsRetryResponseLatestStageName; /** When the stage started. */ startedOn: string; /** State of the current stage. */ status: ProjectsDeploymentsRetryResponseLatestStageStatus; } export const ProjectsDeploymentsRetryResponseLatestStage = /*@__PURE__*/ S.suspend(() => S.Struct({ endedOn: S.String.pipe(T.Body("ended_on")), name: ProjectsDeploymentsRetryResponseLatestStageName, startedOn: S.String.pipe(T.Body("started_on")), status: ProjectsDeploymentsRetryResponseLatestStageStatus, }), ).annotate({ identifier: "ProjectsDeploymentsRetryResponseLatestStage", }) as any as S.Schema; export type ProjectsDeploymentsRetryResponseSourceConfigPathExcludesList = Array; export const ProjectsDeploymentsRetryResponseSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsRetryResponseSourceConfigPathIncludesList = Array; export const ProjectsDeploymentsRetryResponseSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsRetryResponseSourceConfigPreviewBranchExcludesList = Array; export const ProjectsDeploymentsRetryResponseSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsRetryResponseSourceConfigPreviewBranchIncludesList = Array; export const ProjectsDeploymentsRetryResponseSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsRetryResponseSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsDeploymentsRetryResponseSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsRetryResponseSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled: boolean; /** The owner of the repository. */ owner: string; /** The owner ID of the repository. */ ownerId: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes: ProjectsDeploymentsRetryResponseSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes: ProjectsDeploymentsRetryResponseSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes: ProjectsDeploymentsRetryResponseSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes: ProjectsDeploymentsRetryResponseSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting: ProjectsDeploymentsRetryResponseSourceConfigPreviewDeploymentSetting; /** The production branch of the repository. */ productionBranch: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled: boolean; /** The ID of the repository. */ repoId: string; /** The name of the repository. */ repoName: string; } export const ProjectsDeploymentsRetryResponseSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.Boolean.pipe(T.Body("deployments_enabled")), owner: S.String, ownerId: S.String.pipe(T.Body("owner_id")), pathExcludes: ProjectsDeploymentsRetryResponseSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), pathIncludes: ProjectsDeploymentsRetryResponseSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), prCommentsEnabled: S.Boolean.pipe(T.Body("pr_comments_enabled")), previewBranchExcludes: ProjectsDeploymentsRetryResponseSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), previewBranchIncludes: ProjectsDeploymentsRetryResponseSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), previewDeploymentSetting: ProjectsDeploymentsRetryResponseSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), productionBranch: S.String.pipe(T.Body("production_branch")), productionDeploymentsEnabled: S.Boolean.pipe( T.Body("production_deployments_enabled"), ), repoId: S.String.pipe(T.Body("repo_id")), repoName: S.String.pipe(T.Body("repo_name")), }), ).annotate({ identifier: "ProjectsDeploymentsRetryResponseSourceConfig", }) as any as S.Schema; export type ProjectsDeploymentsRetryResponseSourceType = "github" | "gitlab"; export const ProjectsDeploymentsRetryResponseSourceType = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsRetryResponseSource { config: ProjectsDeploymentsRetryResponseSourceConfig; /** The source control management provider. */ type: ProjectsDeploymentsRetryResponseSourceType; } export const ProjectsDeploymentsRetryResponseSource = /*@__PURE__*/ S.suspend( () => S.Struct({ config: ProjectsDeploymentsRetryResponseSourceConfig, type: ProjectsDeploymentsRetryResponseSourceType, }), ).annotate({ identifier: "ProjectsDeploymentsRetryResponseSource", }) as any as S.Schema; export type ProjectsDeploymentsRetryResponseStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export const ProjectsDeploymentsRetryResponseStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export type ProjectsDeploymentsRetryResponseStagesList = Array; export const ProjectsDeploymentsRetryResponseStagesList = /*@__PURE__*/ S.Array( ProjectsCreateResponseCanonicalDeploymentStagesItem, ) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface RetryProjectDeploymentResponse { /** Id of the deployment. */ id: string; /** A list of alias URLs pointing to this deployment. */ aliases: ProjectsDeploymentsRetryResponseAliasesList; /** Configs for the project build process. */ buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig; /** When the deployment was created. */ createdOn: string; /** Info about what caused the deployment. */ deploymentTrigger: ProjectsDeploymentsRetryResponseDeploymentTrigger; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Type of deploy. */ environment: ProjectsDeploymentsRetryResponseEnvironment; /** If the deployment has been skipped. */ isSkipped: boolean; /** The status of the deployment. */ latestStage: ProjectsDeploymentsRetryResponseLatestStage; /** When the deployment was last modified. */ modifiedOn: string; /** Id of the project. */ projectId: string; /** Name of the project. */ projectName: string; /** Short Id (8 character) of the deployment. */ shortId: string; /** Configs for the project source control. */ source: ProjectsDeploymentsRetryResponseSource; /** List of past stages. */ stages: ProjectsDeploymentsRetryResponseStagesList; /** The live URL to view this deployment. */ url: string; /** Whether the deployment uses functions. */ usesFunctions?: boolean | null; } export const RetryProjectDeploymentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, aliases: ProjectsDeploymentsRetryResponseAliasesList, buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig.pipe( T.Body("build_config"), ), createdOn: S.String.pipe(T.Body("created_on")), deploymentTrigger: ProjectsDeploymentsRetryResponseDeploymentTrigger.pipe( T.Body("deployment_trigger"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), environment: ProjectsDeploymentsRetryResponseEnvironment, isSkipped: S.Boolean.pipe(T.Body("is_skipped")), latestStage: ProjectsDeploymentsRetryResponseLatestStage.pipe( T.Body("latest_stage"), ), modifiedOn: S.String.pipe(T.Body("modified_on")), projectId: S.String.pipe(T.Body("project_id")), projectName: S.String.pipe(T.Body("project_name")), shortId: S.String.pipe(T.Body("short_id")), source: ProjectsDeploymentsRetryResponseSource, stages: ProjectsDeploymentsRetryResponseStagesList, url: S.String, usesFunctions: S.optional( S.NullOr(S.Boolean).pipe(T.Body("uses_functions")), ), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "RetryProjectDeploymentResponse", }) as any as S.Schema; export interface RollbackProjectDeploymentRequest { /** Identifier. */ accountId: string; /** Name of the project. */ projectName: string; /** Identifier. */ deploymentId: string; } export const RollbackProjectDeploymentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String.pipe(T.Label("account_id")), projectName: S.String.pipe(T.Label("project_name")), deploymentId: S.String.pipe(T.Label("deployment_id")), }) .pipe( T.Http({ method: "POST", uri: "/accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/rollback", code: 200, }), ) .pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "RollbackProjectDeploymentRequest", }) as any as S.Schema; export type ProjectsDeploymentsRollbackResponseAliasesList = Array; export const ProjectsDeploymentsRollbackResponseAliasesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsRollbackResponseBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export const ProjectsDeploymentsRollbackResponseBuildConfig = ProjectsCreateResponseCanonicalDeploymentBuildConfig; export type ProjectsDeploymentsRollbackResponseDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export const ProjectsDeploymentsRollbackResponseDeploymentTriggerMetadata = ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; export type ProjectsDeploymentsRollbackResponseDeploymentTriggerType = | "github:push" | "ad_hoc" | "deploy_hook"; export const ProjectsDeploymentsRollbackResponseDeploymentTriggerType = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsRollbackResponseDeploymentTrigger { /** Additional info about the trigger. */ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata; /** What caused the deployment. */ type: ProjectsDeploymentsRollbackResponseDeploymentTriggerType; } export const ProjectsDeploymentsRollbackResponseDeploymentTrigger = /*@__PURE__*/ S.suspend(() => S.Struct({ metadata: ProjectsCreateResponseCanonicalDeploymentDeploymentTriggerMetadata, type: ProjectsDeploymentsRollbackResponseDeploymentTriggerType, }), ).annotate({ identifier: "ProjectsDeploymentsRollbackResponseDeploymentTrigger", }) as any as S.Schema; export type ProjectsDeploymentsRollbackResponseEnvironment = | "preview" | "production"; export const ProjectsDeploymentsRollbackResponseEnvironment = /*@__PURE__*/ S.String; export type ProjectsDeploymentsRollbackResponseLatestStageName = | "queued" | "initialize" | "clone_repo" | "build" | "deploy"; export const ProjectsDeploymentsRollbackResponseLatestStageName = /*@__PURE__*/ S.String; export type ProjectsDeploymentsRollbackResponseLatestStageStatus = | "success" | "idle" | "active" | "failure" | "canceled"; export const ProjectsDeploymentsRollbackResponseLatestStageStatus = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsRollbackResponseLatestStage { /** When the stage ended. */ endedOn: string; /** The current build stage. */ name: ProjectsDeploymentsRollbackResponseLatestStageName; /** When the stage started. */ startedOn: string; /** State of the current stage. */ status: ProjectsDeploymentsRollbackResponseLatestStageStatus; } export const ProjectsDeploymentsRollbackResponseLatestStage = /*@__PURE__*/ S.suspend(() => S.Struct({ endedOn: S.String.pipe(T.Body("ended_on")), name: ProjectsDeploymentsRollbackResponseLatestStageName, startedOn: S.String.pipe(T.Body("started_on")), status: ProjectsDeploymentsRollbackResponseLatestStageStatus, }), ).annotate({ identifier: "ProjectsDeploymentsRollbackResponseLatestStage", }) as any as S.Schema; export type ProjectsDeploymentsRollbackResponseSourceConfigPathExcludesList = Array; export const ProjectsDeploymentsRollbackResponseSourceConfigPathExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsRollbackResponseSourceConfigPathIncludesList = Array; export const ProjectsDeploymentsRollbackResponseSourceConfigPathIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsRollbackResponseSourceConfigPreviewBranchExcludesList = Array; export const ProjectsDeploymentsRollbackResponseSourceConfigPreviewBranchExcludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsRollbackResponseSourceConfigPreviewBranchIncludesList = Array; export const ProjectsDeploymentsRollbackResponseSourceConfigPreviewBranchIncludesList = /*@__PURE__*/ S.Array( S.String, ) as any as S.Schema; export type ProjectsDeploymentsRollbackResponseSourceConfigPreviewDeploymentSetting = | "all" | "none" | "custom"; export const ProjectsDeploymentsRollbackResponseSourceConfigPreviewDeploymentSetting = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsRollbackResponseSourceConfig { /** Whether to enable automatic deployments when pushing to the source repository. */ deploymentsEnabled: boolean; /** The owner of the repository. */ owner: string; /** The owner ID of the repository. */ ownerId: string; /** A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported. */ pathExcludes: ProjectsDeploymentsRollbackResponseSourceConfigPathExcludesList; /** A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported. */ pathIncludes: ProjectsDeploymentsRollbackResponseSourceConfigPathIncludesList; /** Whether to enable PR comments. */ prCommentsEnabled: boolean; /** A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchExcludes: ProjectsDeploymentsRollbackResponseSourceConfigPreviewBranchExcludesList; /** A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`. */ previewBranchIncludes: ProjectsDeploymentsRollbackResponseSourceConfigPreviewBranchIncludesList; /** Controls whether commits to preview branches trigger a preview deployment. */ previewDeploymentSetting: ProjectsDeploymentsRollbackResponseSourceConfigPreviewDeploymentSetting; /** The production branch of the repository. */ productionBranch: string; /** Whether to trigger a production deployment on commits to the production branch. */ productionDeploymentsEnabled: boolean; /** The ID of the repository. */ repoId: string; /** The name of the repository. */ repoName: string; } export const ProjectsDeploymentsRollbackResponseSourceConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ deploymentsEnabled: S.Boolean.pipe(T.Body("deployments_enabled")), owner: S.String, ownerId: S.String.pipe(T.Body("owner_id")), pathExcludes: ProjectsDeploymentsRollbackResponseSourceConfigPathExcludesList.pipe( T.Body("path_excludes"), ), pathIncludes: ProjectsDeploymentsRollbackResponseSourceConfigPathIncludesList.pipe( T.Body("path_includes"), ), prCommentsEnabled: S.Boolean.pipe(T.Body("pr_comments_enabled")), previewBranchExcludes: ProjectsDeploymentsRollbackResponseSourceConfigPreviewBranchExcludesList.pipe( T.Body("preview_branch_excludes"), ), previewBranchIncludes: ProjectsDeploymentsRollbackResponseSourceConfigPreviewBranchIncludesList.pipe( T.Body("preview_branch_includes"), ), previewDeploymentSetting: ProjectsDeploymentsRollbackResponseSourceConfigPreviewDeploymentSetting.pipe( T.Body("preview_deployment_setting"), ), productionBranch: S.String.pipe(T.Body("production_branch")), productionDeploymentsEnabled: S.Boolean.pipe( T.Body("production_deployments_enabled"), ), repoId: S.String.pipe(T.Body("repo_id")), repoName: S.String.pipe(T.Body("repo_name")), }), ).annotate({ identifier: "ProjectsDeploymentsRollbackResponseSourceConfig", }) as any as S.Schema; export type ProjectsDeploymentsRollbackResponseSourceType = "github" | "gitlab"; export const ProjectsDeploymentsRollbackResponseSourceType = /*@__PURE__*/ S.String; export interface ProjectsDeploymentsRollbackResponseSource { config: ProjectsDeploymentsRollbackResponseSourceConfig; /** The source control management provider. */ type: ProjectsDeploymentsRollbackResponseSourceType; } export const ProjectsDeploymentsRollbackResponseSource = /*@__PURE__*/ S.suspend(() => S.Struct({ config: ProjectsDeploymentsRollbackResponseSourceConfig, type: ProjectsDeploymentsRollbackResponseSourceType, }), ).annotate({ identifier: "ProjectsDeploymentsRollbackResponseSource", }) as any as S.Schema; export type ProjectsDeploymentsRollbackResponseStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export const ProjectsDeploymentsRollbackResponseStagesItem = ProjectsCreateResponseCanonicalDeploymentStagesItem; export type ProjectsDeploymentsRollbackResponseStagesList = Array; export const ProjectsDeploymentsRollbackResponseStagesList = /*@__PURE__*/ S.Array( ProjectsCreateResponseCanonicalDeploymentStagesItem, ) as any as S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface RollbackProjectDeploymentResponse { /** Id of the deployment. */ id: string; /** A list of alias URLs pointing to this deployment. */ aliases: ProjectsDeploymentsRollbackResponseAliasesList; /** Configs for the project build process. */ buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig; /** When the deployment was created. */ createdOn: string; /** Info about what caused the deployment. */ deploymentTrigger: ProjectsDeploymentsRollbackResponseDeploymentTrigger; /** Environment variables used for builds and Pages Functions. */ envVars: UntypedBindingMap; /** Type of deploy. */ environment: ProjectsDeploymentsRollbackResponseEnvironment; /** If the deployment has been skipped. */ isSkipped: boolean; /** The status of the deployment. */ latestStage: ProjectsDeploymentsRollbackResponseLatestStage; /** When the deployment was last modified. */ modifiedOn: string; /** Id of the project. */ projectId: string; /** Name of the project. */ projectName: string; /** Short Id (8 character) of the deployment. */ shortId: string; /** Configs for the project source control. */ source: ProjectsDeploymentsRollbackResponseSource; /** List of past stages. */ stages: ProjectsDeploymentsRollbackResponseStagesList; /** The live URL to view this deployment. */ url: string; /** Whether the deployment uses functions. */ usesFunctions?: boolean | null; } export const RollbackProjectDeploymentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.String, aliases: ProjectsDeploymentsRollbackResponseAliasesList, buildConfig: ProjectsCreateResponseCanonicalDeploymentBuildConfig.pipe( T.Body("build_config"), ), createdOn: S.String.pipe(T.Body("created_on")), deploymentTrigger: ProjectsDeploymentsRollbackResponseDeploymentTrigger.pipe( T.Body("deployment_trigger"), ), envVars: UntypedBindingMap.pipe(T.Body("env_vars")), environment: ProjectsDeploymentsRollbackResponseEnvironment, isSkipped: S.Boolean.pipe(T.Body("is_skipped")), latestStage: ProjectsDeploymentsRollbackResponseLatestStage.pipe( T.Body("latest_stage"), ), modifiedOn: S.String.pipe(T.Body("modified_on")), projectId: S.String.pipe(T.Body("project_id")), projectName: S.String.pipe(T.Body("project_name")), shortId: S.String.pipe(T.Body("short_id")), source: ProjectsDeploymentsRollbackResponseSource, stages: ProjectsDeploymentsRollbackResponseStagesList, url: S.String, usesFunctions: S.optional( S.NullOr(S.Boolean).pipe(T.Body("uses_functions")), ), }).pipe(T.KeyDictionary(KEY_DICTIONARY)), ).annotate({ identifier: "RollbackProjectDeploymentResponse", }) as any as S.Schema; export type CreateProjectError = | ProjectAlreadyExists | Forbidden | CloudflareOpError; /** Create a new project. */ export const createProject: API.OperationMethod< CreateProjectRequest, CreateProjectResponse, CreateProjectError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: CreateProjectRequest, output: CreateProjectResponse, errors: [ ProjectAlreadyExists, Forbidden, CloudflareRateLimited, CloudflareError, ], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type CreateProjectDeploymentError = | ProjectNotFound | Forbidden | CloudflareOpError; /** Start a new deployment from production. The repository and account must have already been authorized on the Cloudflare Pages dashboard. */ export const createProjectDeployment: API.OperationMethod< CreateProjectDeploymentRequest, CreateProjectDeploymentResponse, CreateProjectDeploymentError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: CreateProjectDeploymentRequest, output: CreateProjectDeploymentResponse, errors: [ProjectNotFound, Forbidden, CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type CreateProjectDomainError = | ProjectNotFound | PagesDomainAlreadyExists | Forbidden | CloudflareOpError; /** Add a new domain for the Pages project. */ export const createProjectDomain: API.OperationMethod< CreateProjectDomainRequest, CreateProjectDomainResponse, CreateProjectDomainError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: CreateProjectDomainRequest, output: CreateProjectDomainResponse, errors: [ ProjectNotFound, PagesDomainAlreadyExists, Forbidden, CloudflareRateLimited, CloudflareError, ], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type DeleteProjectError = | ProjectNotFound | Forbidden | CloudflareOpError; /** Delete a project by name. */ export const deleteProject: API.OperationMethod< DeleteProjectRequest, DeleteProjectResponse, DeleteProjectError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: DeleteProjectRequest, output: DeleteProjectResponse, errors: [ProjectNotFound, Forbidden, CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type DeleteProjectDeploymentError = | DeploymentNotFound | ProjectNotFound | ActiveProductionDeployment | Forbidden | CloudflareOpError; /** Delete a deployment. */ export const deleteProjectDeployment: API.OperationMethod< DeleteProjectDeploymentRequest, DeleteProjectDeploymentResponse, DeleteProjectDeploymentError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: DeleteProjectDeploymentRequest, output: DeleteProjectDeploymentResponse, errors: [ DeploymentNotFound, ProjectNotFound, ActiveProductionDeployment, Forbidden, CloudflareRateLimited, CloudflareError, ], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type DeleteProjectDomainError = | ProjectNotFound | PagesDomainNotFound | Forbidden | CloudflareOpError; /** Delete a Pages project's domain. */ export const deleteProjectDomain: API.OperationMethod< DeleteProjectDomainRequest, DeleteProjectDomainResponse, DeleteProjectDomainError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: DeleteProjectDomainRequest, output: DeleteProjectDomainResponse, errors: [ ProjectNotFound, PagesDomainNotFound, Forbidden, CloudflareRateLimited, CloudflareError, ], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type GetProjectError = ProjectNotFound | Forbidden | CloudflareOpError; /** Fetch a project by name. */ export const getProject: API.OperationMethod< GetProjectRequest, GetProjectResponse, GetProjectError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: GetProjectRequest, output: GetProjectResponse, errors: [ProjectNotFound, Forbidden, CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type GetProjectDeploymentError = | DeploymentNotFound | ProjectNotFound | Forbidden | CloudflareOpError; /** Fetch information about a deployment. */ export const getProjectDeployment: API.OperationMethod< GetProjectDeploymentRequest, GetProjectDeploymentResponse, GetProjectDeploymentError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: GetProjectDeploymentRequest, output: GetProjectDeploymentResponse, errors: [ DeploymentNotFound, ProjectNotFound, Forbidden, CloudflareRateLimited, CloudflareError, ], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type GetProjectDeploymentHistoryLogError = CloudflareOpError; /** Fetch deployment logs for a project. */ export const getProjectDeploymentHistoryLog: API.OperationMethod< GetProjectDeploymentHistoryLogRequest, GetProjectDeploymentHistoryLogResponse, GetProjectDeploymentHistoryLogError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: GetProjectDeploymentHistoryLogRequest, output: GetProjectDeploymentHistoryLogResponse, errors: [CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type GetProjectDomainError = | ProjectNotFound | PagesDomainNotFound | Forbidden | CloudflareOpError; /** Fetch a single domain. */ export const getProjectDomain: API.OperationMethod< GetProjectDomainRequest, GetProjectDomainResponse, GetProjectDomainError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: GetProjectDomainRequest, output: GetProjectDomainResponse, errors: [ ProjectNotFound, PagesDomainNotFound, Forbidden, CloudflareRateLimited, CloudflareError, ], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type ListProjectDeploymentsError = CloudflareOpError; /** Fetch a list of project deployments. */ export const listProjectDeployments: API.PaginatedOperationMethod< ListProjectDeploymentsRequest, ListProjectDeploymentsResponse, ListProjectDeploymentsError, CloudflareOpContext, ProjectsDeploymentsListResultItem > = /*@__PURE__*/ API.makePaginated( () => ({ input: ListProjectDeploymentsRequest, output: ListProjectDeploymentsResponse, errors: [CloudflareRateLimited, CloudflareError], protocol: CloudflarePaginatedProtocol, retry: Retry.Retry, pagination: { mode: "page", inputToken: "page", outputToken: "resultInfo.page", items: "result", pageSize: "perPage", } as const, }), cloudflarePaginate, ) as any; export type ListProjectDomainsError = | ProjectNotFound | Forbidden | CloudflareOpError; /** Fetch a list of all domains associated with a Pages project. */ export const listProjectDomains: API.PaginatedOperationMethod< ListProjectDomainsRequest, ListProjectDomainsResponse, ListProjectDomainsError, CloudflareOpContext, ProjectsDomainsListResultItem > = /*@__PURE__*/ API.makePaginated( () => ({ input: ListProjectDomainsRequest, output: ListProjectDomainsResponse, errors: [ ProjectNotFound, Forbidden, CloudflareRateLimited, CloudflareError, ], protocol: CloudflarePaginatedProtocol, retry: Retry.Retry, pagination: { mode: "single", items: "result" } as const, }), cloudflarePaginate, ) as any; export type ListProjectsError = Forbidden | CloudflareOpError; /** Fetch a list of all user projects. */ export const listProjects: API.PaginatedOperationMethod< ListProjectsRequest, ListProjectsResponse, ListProjectsError, CloudflareOpContext, ProjectsListResultItem > = /*@__PURE__*/ API.makePaginated( () => ({ input: ListProjectsRequest, output: ListProjectsResponse, errors: [Forbidden, CloudflareRateLimited, CloudflareError], protocol: CloudflarePaginatedProtocol, retry: Retry.Retry, pagination: { mode: "page", inputToken: "page", outputToken: "resultInfo.page", items: "result", pageSize: "perPage", } as const, }), cloudflarePaginate, ) as any; export type PatchProjectError = ProjectNotFound | Forbidden | CloudflareOpError; /** Set new attributes for an existing project. Modify environment variables. To delete an environment variable, set the key to null. */ export const patchProject: API.OperationMethod< PatchProjectRequest, PatchProjectResponse, PatchProjectError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: PatchProjectRequest, output: PatchProjectResponse, errors: [ProjectNotFound, Forbidden, CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type PatchProjectDomainError = | ProjectNotFound | PagesDomainNotFound | Forbidden | CloudflareOpError; /** Retry the validation status of a single domain. */ export const patchProjectDomain: API.OperationMethod< PatchProjectDomainRequest, PatchProjectDomainResponse, PatchProjectDomainError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: PatchProjectDomainRequest, output: PatchProjectDomainResponse, errors: [ ProjectNotFound, PagesDomainNotFound, Forbidden, CloudflareRateLimited, CloudflareError, ], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type PurgeBuildCacheProjectError = CloudflareOpError; /** Purge all cached build artifacts for a Pages project */ export const purgeBuildCacheProject: API.OperationMethod< PurgeBuildCacheProjectRequest, PurgeBuildCacheProjectResponse, PurgeBuildCacheProjectError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: PurgeBuildCacheProjectRequest, output: PurgeBuildCacheProjectResponse, errors: [CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type RetryProjectDeploymentError = CloudflareOpError; /** Retry a previous deployment. */ export const retryProjectDeployment: API.OperationMethod< RetryProjectDeploymentRequest, RetryProjectDeploymentResponse, RetryProjectDeploymentError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: RetryProjectDeploymentRequest, output: RetryProjectDeploymentResponse, errors: [CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, })); export type RollbackProjectDeploymentError = CloudflareOpError; /** Rollback the production deployment to a previous deployment. You can only rollback to succesful builds on production. */ export const rollbackProjectDeployment: API.OperationMethod< RollbackProjectDeploymentRequest, RollbackProjectDeploymentResponse, RollbackProjectDeploymentError, CloudflareOpContext > = /*@__PURE__*/ API.make(() => ({ input: RollbackProjectDeploymentRequest, output: RollbackProjectDeploymentResponse, errors: [CloudflareRateLimited, CloudflareError], protocol: CloudflareProtocol, retry: Retry.Retry, }));