{"openapi":"3.1.0","info":{"title":"Arkor API","version":"1.0.0","description":"The public API of the Arkor platform. Authenticate with an API token issued on the dashboard: `Authorization: Bearer ark_…`. A token holds permissions, each at `read` or `write` (`write` includes `read`); every operation names the one it needs in its security requirement, as `permission:level`. A token missing it is answered `403 forbidden`. A token may also be held to some projects — another project is answered `404 not_found`, and operations on the organization rather than a project `403 forbidden`, while `listProjects` lists only those projects — and to some addresses, outside which it is answered `403 forbidden`. Email delivery and its own message history require a sending key fixed to one project and environment. Projects are created on the dashboard and not through this API."},"servers":[{"url":"https://api.arkor.dev"}],"tags":[{"name":"Cloudflare Workflows"},{"name":"Services"},{"name":"Releases"},{"name":"Drains"},{"name":"Diagnostics"},{"name":"Logs"},{"name":"Errors"},{"name":"Projects"},{"name":"Runs"},{"name":"Deployments"},{"name":"Environment"},{"name":"Source"},{"name":"Custom hostnames"},{"name":"Storage bindings"},{"name":"Delivery"},{"name":"Access protection"},{"name":"OIDC federation"},{"name":"Mail"},{"name":"GitHub"}],"components":{"securitySchemes":{"bearerToken":{"type":"http","scheme":"bearer","description":"An API token (`ark_…`). Each operation lists the permission it needs, as `permission:level`."},"mailKey":{"type":"http","scheme":"bearer","description":"A sending key fixed to one project and environment. Allows sending and reading its own messages only."}},"schemas":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/__schema0"}}]},"ApiError":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string","enum":["invalid_request","unauthorized","forbidden","not_found","drain_limit","drain_conflict","rate_limited","project_suspended","tenant_suspended","spend_limit_reached","run_in_progress","deploys_paused","nothing_to_run","deployment_conflict","blob_mismatch","blobs_missing","unsupported_next","unsupported_framework","hostname_invalid","hostname_taken","hostname_limit","add_on_required","installation_not_found","repository_not_accessible","source_not_configured","source_configured","repository_limit","ref_not_found","github_unavailable","binding_conflict","binding_limit","d1_query_failed","d1_query_unknown","access_limit","access_unavailable","resource_limit","oidc_disabled","oidc_unavailable","plan_required","logs_unavailable","analytics_unavailable","mail_domain_conflict","mail_disabled","mail_quota_exceeded","mail_idempotency_conflict","mail_unavailable","mail_environment_disabled","mail_domain_unverified","mail_live_not_enabled","mail_payload_too_large","mail_key_limit","cloudflare_not_connected","cloudflare_reconnect","cloudflare_unavailable","cloudflare_refused","backend_unsupported","internal"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["ok","error"],"additionalProperties":false}}},"security":[{"bearerToken":[]}],"paths":{"/v1/projects/{projectId}/cloudflare-workflows/environments/{environment}/{bindingId}/instances":{"get":{"operationId":"listCloudflareWorkflowInstances","summary":"List native Cloudflare Workflow instances","tags":["Cloudflare Workflows"],"security":[{"bearerToken":["workflows:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"environment","in":"path","required":true,"schema":{"type":"string"}},{"name":"bindingId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["queued","running","paused","errored","terminated","complete","waitingForPause","waiting","rollingBack"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"instances":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":271},"status":{"type":"string","enum":["queued","running","paused","errored","terminated","complete","waitingForPause","waiting","rollingBack","unknown"]},"createdAt":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"endedAt":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"versionId":{"type":["string","null"]}},"required":["id","status","createdAt","startedAt","endedAt","versionId"],"additionalProperties":false}},"cursor":{"type":["string","null"]}},"required":["ok","instances","cursor"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Returns at most 50 instances, newest first, for a project-owned Workflow binding. Use an issued binding environment and pass cursor back for the next page. Workflow SDK runs use a separate API."},"post":{"operationId":"createCloudflareWorkflowInstance","summary":"Start a native Workflow instance","tags":["Cloudflare Workflows"],"security":[{"bearerToken":["workflows:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"environment","in":"path","required":true,"schema":{"type":"string"}},{"name":"bindingId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"id":{"type":"string"}},"required":["ok","id"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Use a stable instance ID for retries after an uncertain answer. The registered Workflow must have been published successfully.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w-]+$"},"params":{"default":{},"$ref":"#/components/schemas/__schema0"}},"required":["id"],"additionalProperties":false}}}}}},"/v1/projects/{projectId}/cloudflare-workflows/environments/{environment}/{bindingId}/instances/{instanceId}":{"get":{"operationId":"getCloudflareWorkflowInstance","summary":"Inspect a native Workflow instance and its steps","tags":["Cloudflare Workflows"],"security":[{"bearerToken":["workflows:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"environment","in":"path","required":true,"schema":{"type":"string"}},{"name":"bindingId","in":"path","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"instance":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":271},"status":{"type":"string","enum":["queued","running","paused","errored","terminated","complete","waitingForPause","waiting","rollingBack","unknown"]},"createdAt":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"startedAt":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"endedAt":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"versionId":{"type":["string","null"]}},"required":["id","status","createdAt","startedAt","endedAt","versionId"],"additionalProperties":false},"paramsPreview":{"anyOf":[{"type":"string","maxLength":16385},{"type":"null"}]},"outputPreview":{"anyOf":[{"type":"string","maxLength":16385},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","maxLength":512},"message":{"type":"string","maxLength":16384}},"required":["name","message"],"additionalProperties":false},{"type":"null"}]},"rollback":{"anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["complete","failed"]},"error":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","maxLength":512},"message":{"type":"string","maxLength":16384}},"required":["name","message"],"additionalProperties":false},{"type":"null"}]}},"required":["outcome","error"],"additionalProperties":false},{"type":"null"}]},"steps":{"maxItems":250,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":512},"type":{"type":"string","maxLength":64},"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"status":{"type":"string","maxLength":64},"startedAt":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"endedAt":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"attempts":{"maxItems":64,"type":"array","items":{"type":"object","properties":{"startedAt":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"endedAt":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"success":{"type":"boolean"},"error":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","maxLength":512},"message":{"type":"string","maxLength":16384}},"required":["name","message"],"additionalProperties":false},{"type":"null"}]}},"required":["startedAt","endedAt","success","error"],"additionalProperties":false}},"error":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","maxLength":512},"message":{"type":"string","maxLength":16384}},"required":["name","message"],"additionalProperties":false},{"type":"null"}]},"eventType":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"outputPreview":{"anyOf":[{"type":"string","maxLength":16385},{"type":"null"}]}},"required":["name","type","count","status","startedAt","endedAt","attempts","error","eventType","outputPreview"],"additionalProperties":false}},"stepCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["ok","instance","paramsPreview","outputPreview","error","rollback","steps","stepCount"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Includes instance status, bounded input and output previews, errors, rollback outcome, and step attempts. Full step output is read separately."}},"/v1/projects/{projectId}/cloudflare-workflows/environments/{environment}/{bindingId}/instances/{instanceId}/status":{"patch":{"operationId":"changeCloudflareWorkflowStatus","summary":"Pause, resume, restart or terminate a native Workflow instance","tags":["Cloudflare Workflows"],"security":[{"bearerToken":["workflows:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"environment","in":"path","required":true,"schema":{"type":"string"}},{"name":"bindingId","in":"path","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"id":{"type":"string"}},"required":["ok","id"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Restart resets execution state, optionally from a named step. Terminate optionally runs registered rollback handlers. A paused or suspended project cannot start, resume or restart work.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","oneOf":[{"type":"object","properties":{"action":{"type":"string","const":"pause"}},"required":["action"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"resume"}},"required":["action"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"terminate"},"rollback":{"type":"boolean"}},"required":["action"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"restart"},"from":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":256},"type":{"type":"string","enum":["do","sleep","waitForEvent"]},"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name"]}},"required":["action"],"additionalProperties":false}]}}}}}},"/v1/projects/{projectId}/cloudflare-workflows/environments/{environment}/{bindingId}/instances/{instanceId}/events":{"post":{"operationId":"sendCloudflareWorkflowEvent","summary":"Send a typed event to a native Workflow instance","tags":["Cloudflare Workflows"],"security":[{"bearerToken":["workflows:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"environment","in":"path","required":true,"schema":{"type":"string"}},{"name":"bindingId","in":"path","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"id":{"type":"string"}},"required":["ok","id"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Pass the event type used by waitForEvent and a JSON payload. Do not automatically retry a request whose acknowledgement was lost: events are not idempotent.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string","minLength":1,"maxLength":100},"payload":{"$ref":"#/components/schemas/__schema0"}},"required":["type","payload"],"additionalProperties":false}}}}}},"/v1/projects/{projectId}/cloudflare-workflows/environments/{environment}/{bindingId}/instances/{instanceId}/step":{"get":{"operationId":"getCloudflareWorkflowStepOutput","summary":"Read one native Workflow step output on demand","tags":["Cloudflare Workflows"],"security":[{"bearerToken":["workflows:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"environment","in":"path","required":true,"schema":{"type":"string"}},{"name":"bindingId","in":"path","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"type","in":"query","required":true,"schema":{"type":"string","enum":["step","waitForEvent"]}},{"name":"attempt","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"output":{"type":"string","maxLength":65536},"contentType":{"type":"string","maxLength":256},"truncated":{"type":"boolean"}},"required":["ok","output","contentType","truncated"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Preserves provider redaction and returns bounded text with its content type and truncation flag."}},"/v1/projects/{projectId}/services/{serviceId}/overrides":{"put":{"operationId":"putProjectServiceOverrides","summary":"Replace explicit dashboard field overrides and repository service exclusion","tags":["Services"],"security":[{"bearerToken":["services:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"service":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"},"name":{"type":"string","minLength":1,"maxLength":80},"isPrimary":{"type":"boolean"},"runtime":{"type":"string","enum":["worker","container"]},"destination":{"type":"string","enum":["arkor","cloudflare"]},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},"source":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryFullName":{"type":"string","pattern":"^[\\w.-]+\\/[\\w.-]+$"},"productionBranch":{"type":"string","minLength":1,"maxLength":255},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"productionChecks":{"type":"array","items":{"type":"string"}},"type":{"default":"github","type":"string","const":"github"},"connectionId":{"type":"string","minLength":1},"submodules":{"type":"boolean"}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy","type","connectionId"],"additionalProperties":false},{"type":"null"}]},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"],"additionalProperties":false}},"bindings":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"targetServiceId":{"type":"string","minLength":1},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["name","targetServiceId"],"additionalProperties":false}},"resourceBindings":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"bindingId":{"type":"string","minLength":1},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["bindingId","name"],"additionalProperties":false}},"createdAt":{"type":"number"},"updatedAt":{"type":"number"}},"required":["id","projectId","slug","name","isPrimary","source","routes","bindings","resourceBindings","createdAt","updatedAt"],"additionalProperties":false}},"required":["ok","service"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"overrides":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"runtime":{"type":"string","enum":["worker","container"]},"destination":{"type":"string","enum":["arkor","cloudflare"]},"container":{"anyOf":[{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},{"type":"null"}]},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"submodules":{"type":"boolean"},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"]}},"bindings":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"targetService":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"}},"required":["name","targetService"],"additionalProperties":false}},"resourceBindings":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"resource":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["resource","name"],"additionalProperties":false}}},"additionalProperties":false},"excluded":{"default":false,"type":"boolean"},"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"}},"required":["overrides"],"additionalProperties":false}}}}}},"/v1/projects/{projectId}/services/resource-owners/{bindingId}":{"put":{"operationId":"setServiceResourceOwner","summary":"Override a resource implementation owner or restore repository inheritance","tags":["Services"],"security":[{"bearerToken":["services:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"bindingId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"serviceId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["serviceId"],"additionalProperties":false}}}}}},"/v1/projects/{projectId}/releases/{releaseId}/migrations/{planHash}/sql/{sha256}":{"get":{"operationId":"getReleaseMigrationSql","summary":"Review hash-verified private SQL for an authorized release migration","tags":["Releases"],"security":[{"bearerToken":["migrations:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"releaseId","in":"path","required":true,"schema":{"type":"string"}},{"name":"planHash","in":"path","required":true,"schema":{"type":"string"}},{"name":"sha256","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"sql":{"type":"string","maxLength":1048576}},"required":["ok","sql"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/releases/{releaseId}/migrations":{"get":{"operationId":"getReleaseD1Migrations","summary":"Read immutable database migration plans and execution history","tags":["Releases"],"security":[{"bearerToken":["migrations:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"releaseId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"plans":{"type":"array","items":{"type":"object","properties":{"bindingId":{"type":"string"},"bindingName":{"type":"string"},"environment":{"type":"string"},"graphDigest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"planHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"table":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"approvalRequired":{"type":"boolean"},"reasons":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["pending","applied","failed"]},"error":{"type":"string"}},"required":["name","sha256","approvalRequired","reasons","status"],"additionalProperties":false}},"approvalRequired":{"type":"boolean"},"approved":{"type":"boolean"}},"required":["bindingId","bindingName","environment","graphDigest","planHash","table","files","approvalRequired","approved"],"additionalProperties":false}}},"required":["ok","plans"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/releases/{releaseId}/migrations/approve":{"post":{"operationId":"approveReleaseD1Migrations","summary":"Approve exact database migration hashes and resume the immutable release","tags":["Releases"],"security":[{"bearerToken":["migrations:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"releaseId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"releaseId":{"type":"string"},"runId":{"type":"string"},"status":{"type":"string"}},"required":["ok","releaseId","status"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"planHashes":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-f0-9]{64}$"}}},"required":["planHashes"],"additionalProperties":false}}}}}},"/v1/projects/{projectId}/services/{serviceId}/durable-object-owner":{"put":{"operationId":"setServiceDurableObjectOwner","summary":"Select the service that supplies a managed Durable Object implementation","tags":["Services"],"security":[{"bearerToken":["services:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"bindingId":{"type":"string","minLength":1}},"required":["bindingId"]}}}}}},"/v1/projects/{projectId}/services":{"get":{"operationId":"listProjectServices","summary":"The services and default service of a project","tags":["Services"],"security":[{"bearerToken":["services:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"defaultServiceId":{"type":"string"},"services":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"},"name":{"type":"string","minLength":1,"maxLength":80},"isPrimary":{"type":"boolean"},"runtime":{"type":"string","enum":["worker","container"]},"destination":{"type":"string","enum":["arkor","cloudflare"]},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},"source":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryFullName":{"type":"string","pattern":"^[\\w.-]+\\/[\\w.-]+$"},"productionBranch":{"type":"string","minLength":1,"maxLength":255},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"productionChecks":{"type":"array","items":{"type":"string"}},"type":{"default":"github","type":"string","const":"github"},"connectionId":{"type":"string","minLength":1},"submodules":{"type":"boolean"}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy","type","connectionId"],"additionalProperties":false},{"type":"null"}]},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"],"additionalProperties":false}},"bindings":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"targetServiceId":{"type":"string","minLength":1},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["name","targetServiceId"],"additionalProperties":false}},"resourceBindings":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"bindingId":{"type":"string","minLength":1},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["bindingId","name"],"additionalProperties":false}},"createdAt":{"type":"number"},"updatedAt":{"type":"number"}},"required":["id","projectId","slug","name","isPrimary","source","routes","bindings","resourceBindings","createdAt","updatedAt"],"additionalProperties":false}},"configurations":{"type":"array","items":{"type":"object","properties":{"serviceId":{"type":"string"},"origin":{"type":"string","enum":["default","dashboard","repository"]},"repositoryDefinition":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"runtime":{"type":"string","enum":["worker","container"]},"destination":{"type":"string","enum":["arkor","cloudflare"]},"container":{"anyOf":[{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},{"type":"null"}]},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"submodules":{"type":"boolean"},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"],"additionalProperties":false}},"bindings":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"targetService":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"}},"required":["name","targetService"],"additionalProperties":false}},"resourceBindings":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"resource":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["resource","name"],"additionalProperties":false}},"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"}},"required":["slug"],"additionalProperties":false},{"type":"null"}]},"overrides":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"runtime":{"type":"string","enum":["worker","container"]},"destination":{"type":"string","enum":["arkor","cloudflare"]},"container":{"anyOf":[{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},{"type":"null"}]},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"submodules":{"type":"boolean"},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"],"additionalProperties":false}},"bindings":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"targetService":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"}},"required":["name","targetService"],"additionalProperties":false}},"resourceBindings":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"resource":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["resource","name"],"additionalProperties":false}}},"additionalProperties":false},"excluded":{"type":"boolean"}},"required":["serviceId","origin","repositoryDefinition","overrides","excluded"],"additionalProperties":false}},"excludedServices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"},"name":{"type":"string","minLength":1,"maxLength":80},"isPrimary":{"type":"boolean"},"runtime":{"type":"string","enum":["worker","container"]},"destination":{"type":"string","enum":["arkor","cloudflare"]},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},"source":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryFullName":{"type":"string","pattern":"^[\\w.-]+\\/[\\w.-]+$"},"productionBranch":{"type":"string","minLength":1,"maxLength":255},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"productionChecks":{"type":"array","items":{"type":"string"}},"type":{"default":"github","type":"string","const":"github"},"connectionId":{"type":"string","minLength":1},"submodules":{"type":"boolean"}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy","type","connectionId"],"additionalProperties":false},{"type":"null"}]},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"],"additionalProperties":false}},"bindings":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"targetServiceId":{"type":"string","minLength":1},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["name","targetServiceId"],"additionalProperties":false}},"resourceBindings":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"bindingId":{"type":"string","minLength":1},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["bindingId","name"],"additionalProperties":false}},"createdAt":{"type":"number"},"updatedAt":{"type":"number"}},"required":["id","projectId","slug","name","isPrimary","source","routes","bindings","resourceBindings","createdAt","updatedAt"],"additionalProperties":false}},"configurationSource":{"anyOf":[{"type":"object","properties":{"path":{"type":["string","null"]},"commitSha":{"type":"string"},"releaseId":{"type":"string"}},"required":["path","commitSha","releaseId"],"additionalProperties":false},{"type":"null"}]},"defaultServiceOverridden":{"type":"boolean"},"resourceOwners":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"serviceId":{"type":"string"},"overridden":{"type":"boolean"}},"required":["serviceId","overridden"],"additionalProperties":false}}},"required":["ok","defaultServiceId","services"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"createProjectService","summary":"Add a service to the next project release","tags":["Services"],"security":[{"bearerToken":["services:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"service":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"},"name":{"type":"string","minLength":1,"maxLength":80},"isPrimary":{"type":"boolean"},"runtime":{"type":"string","enum":["worker","container"]},"destination":{"type":"string","enum":["arkor","cloudflare"]},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},"source":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryFullName":{"type":"string","pattern":"^[\\w.-]+\\/[\\w.-]+$"},"productionBranch":{"type":"string","minLength":1,"maxLength":255},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"productionChecks":{"type":"array","items":{"type":"string"}},"type":{"default":"github","type":"string","const":"github"},"connectionId":{"type":"string","minLength":1},"submodules":{"type":"boolean"}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy","type","connectionId"],"additionalProperties":false},{"type":"null"}]},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"],"additionalProperties":false}},"bindings":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"targetServiceId":{"type":"string","minLength":1},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["name","targetServiceId"],"additionalProperties":false}},"resourceBindings":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"bindingId":{"type":"string","minLength":1},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["bindingId","name"],"additionalProperties":false}},"createdAt":{"type":"number"},"updatedAt":{"type":"number"}},"required":["id","projectId","slug","name","isPrimary","source","routes","bindings","resourceBindings","createdAt","updatedAt"],"additionalProperties":false}},"required":["ok","service"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"},"name":{"type":"string","minLength":1,"maxLength":80},"runtime":{"type":"string","enum":["worker","container"]},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},"source":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryFullName":{"type":"string","pattern":"^[\\w.-]+\\/[\\w.-]+$"},"productionBranch":{"type":"string","minLength":1,"maxLength":255},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"productionChecks":{"type":"array","items":{"type":"string"}},"type":{"default":"github","type":"string","const":"github"},"submodules":{"type":"boolean"}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy"]},{"type":"null"}]},"routes":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"]}},"bindings":{"default":[],"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"targetServiceId":{"type":"string","minLength":1},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["name","targetServiceId"]}},"resourceBindings":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"bindingId":{"type":"string","minLength":1},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["bindingId","name"]}}},"required":["slug","name"]}}}}}},"/v1/projects/{projectId}/services/{serviceId}":{"put":{"operationId":"updateProjectService","summary":"Configure a service for the next project release","tags":["Services"],"security":[{"bearerToken":["services:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"service":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"},"name":{"type":"string","minLength":1,"maxLength":80},"isPrimary":{"type":"boolean"},"runtime":{"type":"string","enum":["worker","container"]},"destination":{"type":"string","enum":["arkor","cloudflare"]},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},"source":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryFullName":{"type":"string","pattern":"^[\\w.-]+\\/[\\w.-]+$"},"productionBranch":{"type":"string","minLength":1,"maxLength":255},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"productionChecks":{"type":"array","items":{"type":"string"}},"type":{"default":"github","type":"string","const":"github"},"connectionId":{"type":"string","minLength":1},"submodules":{"type":"boolean"}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy","type","connectionId"],"additionalProperties":false},{"type":"null"}]},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"],"additionalProperties":false}},"bindings":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"targetServiceId":{"type":"string","minLength":1},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["name","targetServiceId"],"additionalProperties":false}},"resourceBindings":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"bindingId":{"type":"string","minLength":1},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["bindingId","name"],"additionalProperties":false}},"createdAt":{"type":"number"},"updatedAt":{"type":"number"}},"required":["id","projectId","slug","name","isPrimary","source","routes","bindings","resourceBindings","createdAt","updatedAt"],"additionalProperties":false}},"required":["ok","service"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"},"name":{"type":"string","minLength":1,"maxLength":80},"runtime":{"type":"string","enum":["worker","container"]},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},"source":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryFullName":{"type":"string","pattern":"^[\\w.-]+\\/[\\w.-]+$"},"productionBranch":{"type":"string","minLength":1,"maxLength":255},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"productionChecks":{"type":"array","items":{"type":"string"}},"type":{"default":"github","type":"string","const":"github"},"submodules":{"type":"boolean"}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy"]},{"type":"null"}]},"routes":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"]}},"bindings":{"default":[],"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"targetServiceId":{"type":"string","minLength":1},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["name","targetServiceId"]}},"resourceBindings":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"bindingId":{"type":"string","minLength":1},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["bindingId","name"]}}},"required":["slug","name"]}}}}},"delete":{"operationId":"deleteProjectService","summary":"Remove a service from the next project release","tags":["Services"],"security":[{"bearerToken":["services:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/services/default":{"put":{"operationId":"setDefaultProjectService","summary":"Select the service that receives unmatched public routes","tags":["Services"],"security":[{"bearerToken":["services:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"defaultServiceId":{"type":"string"},"services":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"},"name":{"type":"string","minLength":1,"maxLength":80},"isPrimary":{"type":"boolean"},"runtime":{"type":"string","enum":["worker","container"]},"destination":{"type":"string","enum":["arkor","cloudflare"]},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},"source":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryFullName":{"type":"string","pattern":"^[\\w.-]+\\/[\\w.-]+$"},"productionBranch":{"type":"string","minLength":1,"maxLength":255},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"productionChecks":{"type":"array","items":{"type":"string"}},"type":{"default":"github","type":"string","const":"github"},"connectionId":{"type":"string","minLength":1},"submodules":{"type":"boolean"}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy","type","connectionId"],"additionalProperties":false},{"type":"null"}]},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"],"additionalProperties":false}},"bindings":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"targetServiceId":{"type":"string","minLength":1},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["name","targetServiceId"],"additionalProperties":false}},"resourceBindings":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"bindingId":{"type":"string","minLength":1},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["bindingId","name"],"additionalProperties":false}},"createdAt":{"type":"number"},"updatedAt":{"type":"number"}},"required":["id","projectId","slug","name","isPrimary","source","routes","bindings","resourceBindings","createdAt","updatedAt"],"additionalProperties":false}},"configurations":{"type":"array","items":{"type":"object","properties":{"serviceId":{"type":"string"},"origin":{"type":"string","enum":["default","dashboard","repository"]},"repositoryDefinition":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"runtime":{"type":"string","enum":["worker","container"]},"destination":{"type":"string","enum":["arkor","cloudflare"]},"container":{"anyOf":[{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},{"type":"null"}]},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"submodules":{"type":"boolean"},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"],"additionalProperties":false}},"bindings":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"targetService":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"}},"required":["name","targetService"],"additionalProperties":false}},"resourceBindings":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"resource":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["resource","name"],"additionalProperties":false}},"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"}},"required":["slug"],"additionalProperties":false},{"type":"null"}]},"overrides":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"runtime":{"type":"string","enum":["worker","container"]},"destination":{"type":"string","enum":["arkor","cloudflare"]},"container":{"anyOf":[{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},{"type":"null"}]},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"submodules":{"type":"boolean"},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"],"additionalProperties":false}},"bindings":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"targetService":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"}},"required":["name","targetService"],"additionalProperties":false}},"resourceBindings":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"resource":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["resource","name"],"additionalProperties":false}}},"additionalProperties":false},"excluded":{"type":"boolean"}},"required":["serviceId","origin","repositoryDefinition","overrides","excluded"],"additionalProperties":false}},"excludedServices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"},"name":{"type":"string","minLength":1,"maxLength":80},"isPrimary":{"type":"boolean"},"runtime":{"type":"string","enum":["worker","container"]},"destination":{"type":"string","enum":["arkor","cloudflare"]},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},"source":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryFullName":{"type":"string","pattern":"^[\\w.-]+\\/[\\w.-]+$"},"productionBranch":{"type":"string","minLength":1,"maxLength":255},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"productionChecks":{"type":"array","items":{"type":"string"}},"type":{"default":"github","type":"string","const":"github"},"connectionId":{"type":"string","minLength":1},"submodules":{"type":"boolean"}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy","type","connectionId"],"additionalProperties":false},{"type":"null"}]},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"],"additionalProperties":false}},"bindings":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"targetServiceId":{"type":"string","minLength":1},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["name","targetServiceId"],"additionalProperties":false}},"resourceBindings":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"bindingId":{"type":"string","minLength":1},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["bindingId","name"],"additionalProperties":false}},"createdAt":{"type":"number"},"updatedAt":{"type":"number"}},"required":["id","projectId","slug","name","isPrimary","source","routes","bindings","resourceBindings","createdAt","updatedAt"],"additionalProperties":false}},"configurationSource":{"anyOf":[{"type":"object","properties":{"path":{"type":["string","null"]},"commitSha":{"type":"string"},"releaseId":{"type":"string"}},"required":["path","commitSha","releaseId"],"additionalProperties":false},{"type":"null"}]},"defaultServiceOverridden":{"type":"boolean"},"resourceOwners":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"serviceId":{"type":"string"},"overridden":{"type":"boolean"}},"required":["serviceId","overridden"],"additionalProperties":false}}},"required":["ok","defaultServiceId","services"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"serviceId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["serviceId"]}}}}}},"/v1/projects/{projectId}/services/{serviceId}/env":{"get":{"operationId":"getProjectServiceEnv","summary":"Read service environment overrides, with secrets masked","tags":["Services"],"security":[{"bearerToken":["env:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"env":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":["string","null"]},"secret":{"type":"boolean"},"targets":{"default":["production"],"minItems":1,"type":"array","items":{"type":"string","enum":["production","preview"]}}},"required":["name","value","secret","targets"],"additionalProperties":false}}},"required":["ok","env"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"put":{"operationId":"putProjectServiceEnv","summary":"Replace service overrides inherited over the project environment","tags":["Services"],"security":[{"bearerToken":["env:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"env":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":["string","null"]},"secret":{"type":"boolean"},"targets":{"default":["production"],"minItems":1,"type":"array","items":{"type":"string","enum":["production","preview"]}}},"required":["name","value","secret","targets"],"additionalProperties":false}}},"required":["ok","env"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"env":{"maxItems":228,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"value":{"type":["string","null"]},"secret":{"type":"boolean"},"targets":{"minItems":1,"type":"array","items":{"type":"string","enum":["production","preview"]}}},"required":["name","value","secret"]}}},"required":["env"]}}}}}},"/v1/projects/{projectId}/releases":{"get":{"operationId":"listProjectReleases","summary":"The project releases, newest first","tags":["Releases"],"security":[{"bearerToken":["deployments:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"releases":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"target":{"type":"string","enum":["production","preview"]},"status":{"type":"string","enum":["queued","waiting_for_approval","building","validating","ready","active","failed","retired"]},"ref":{"type":["string","null"]},"commitSha":{"type":["string","null"]},"commitMessage":{"type":["string","null"]},"sourceConnectionId":{"type":["string","null"]},"defaultServiceId":{"type":"string"},"configuration":{"type":"object","properties":{"version":{"type":"number","const":1},"defaultServiceId":{"type":"string"},"defaultBindings":{"type":"boolean"},"services":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"},"name":{"type":"string","minLength":1,"maxLength":80},"isPrimary":{"type":"boolean"},"runtime":{"type":"string","enum":["worker","container"]},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},"source":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryFullName":{"type":"string","pattern":"^[\\w.-]+\\/[\\w.-]+$"},"productionBranch":{"type":"string","minLength":1,"maxLength":255},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"productionChecks":{"type":"array","items":{"type":"string"}},"type":{"default":"github","type":"string","const":"github"},"connectionId":{"type":"string","minLength":1},"submodules":{"type":"boolean"}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy","type","connectionId"],"additionalProperties":false},{"type":"null"}]},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"],"additionalProperties":false}},"bindings":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"targetServiceId":{"type":"string","minLength":1},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["name","targetServiceId"],"additionalProperties":false}},"resourceBindings":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"bindingId":{"type":"string","minLength":1},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["bindingId","name"],"additionalProperties":false}},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deploymentId":{"type":"string"},"commitSha":{"type":"string"},"ref":{"type":"string"},"resourceSnapshot":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["kv_namespace","r2_bucket","d1","durable_object_namespace","ai","workflow","images"]},"durableObject":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100}},"required":["image","instanceType","maxInstances"],"additionalProperties":false}},"required":["module","className"],"additionalProperties":false},"cloudflareWorkflow":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["module","className"],"additionalProperties":false},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"ownerServiceId":{"type":["string","null"]}},"required":["id","name","type"],"additionalProperties":false}}},"required":["id","projectId","slug","name","isPrimary","source","routes","bindings","resourceBindings","createdAt","updatedAt","deploymentId"],"additionalProperties":false}},"direct":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"},"name":{"type":"string","minLength":1,"maxLength":80},"source":{"type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryFullName":{"type":"string","pattern":"^[\\w.-]+\\/[\\w.-]+$"},"productionBranch":{"type":"string","minLength":1,"maxLength":255},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"productionChecks":{"type":"array","items":{"type":"string"}},"type":{"default":"github","type":"string","const":"github"},"connectionId":{"type":"string","minLength":1},"submodules":{"type":"boolean"}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy","type","connectionId"],"additionalProperties":false},"commitSha":{"type":"string"},"ref":{"type":"string"}},"required":["id","slug","name","source","commitSha","ref"],"additionalProperties":false}},"workerOrder":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^[a-z0-9](?:[a-z0-9-]{0,253}[a-z0-9])?$"}}},"required":["version","defaultServiceId","services"],"additionalProperties":false},"configurationState":{"type":"string","enum":["pending","resolved"]},"runId":{"type":["string","null"]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"activatedAt":{"type":["number","null"]}},"required":["id","projectId","target","status","ref","commitSha","commitMessage","sourceConnectionId","defaultServiceId","configuration","runId","error","createdAt","updatedAt","activatedAt"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["ok","releases"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"createProjectRelease","summary":"Build and publish all project services as one release","tags":["Releases"],"security":[{"bearerToken":["deployments:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"releaseId":{"type":"string"},"runId":{"type":"string"},"status":{"type":"string"}},"required":["ok","releaseId","status"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"target":{"default":"production","type":"string","enum":["production","preview"]},"ref":{"type":"string","minLength":1,"maxLength":255}}}}}}}},"/v1/projects/{projectId}/releases/{releaseId}":{"get":{"operationId":"getProjectRelease","summary":"A release and its immutable service configuration","tags":["Releases"],"security":[{"bearerToken":["deployments:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"releaseId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"release":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"target":{"type":"string","enum":["production","preview"]},"status":{"type":"string","enum":["queued","waiting_for_approval","building","validating","ready","active","failed","retired"]},"ref":{"type":["string","null"]},"commitSha":{"type":["string","null"]},"commitMessage":{"type":["string","null"]},"sourceConnectionId":{"type":["string","null"]},"defaultServiceId":{"type":"string"},"configuration":{"type":"object","properties":{"version":{"type":"number","const":1},"defaultServiceId":{"type":"string"},"defaultBindings":{"type":"boolean"},"services":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"},"name":{"type":"string","minLength":1,"maxLength":80},"isPrimary":{"type":"boolean"},"runtime":{"type":"string","enum":["worker","container"]},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100},"port":{"type":"integer","minimum":1,"maximum":65535},"idleTimeoutSeconds":{"type":"integer","minimum":1,"maximum":21600}},"required":["image","instanceType","maxInstances","port"],"additionalProperties":false},"source":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryFullName":{"type":"string","pattern":"^[\\w.-]+\\/[\\w.-]+$"},"productionBranch":{"type":"string","minLength":1,"maxLength":255},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"productionChecks":{"type":"array","items":{"type":"string"}},"type":{"default":"github","type":"string","const":"github"},"connectionId":{"type":"string","minLength":1},"submodules":{"type":"boolean"}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy","type","connectionId"],"additionalProperties":false},{"type":"null"}]},"routes":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"pathPrefix":{"type":"string","maxLength":200}},"required":["pathPrefix"],"additionalProperties":false}},"bindings":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"targetServiceId":{"type":"string","minLength":1},"entrypoint":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["name","targetServiceId"],"additionalProperties":false}},"resourceBindings":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"bindingId":{"type":"string","minLength":1},"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"required":["bindingId","name"],"additionalProperties":false}},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deploymentId":{"type":"string"},"commitSha":{"type":"string"},"ref":{"type":"string"},"resourceSnapshot":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["kv_namespace","r2_bucket","d1","durable_object_namespace","ai","workflow","images"]},"durableObject":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100}},"required":["image","instanceType","maxInstances"],"additionalProperties":false}},"required":["module","className"],"additionalProperties":false},"cloudflareWorkflow":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["module","className"],"additionalProperties":false},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"ownerServiceId":{"type":["string","null"]}},"required":["id","name","type"],"additionalProperties":false}}},"required":["id","projectId","slug","name","isPrimary","source","routes","bindings","resourceBindings","createdAt","updatedAt","deploymentId"],"additionalProperties":false}},"direct":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,47}$"},"name":{"type":"string","minLength":1,"maxLength":80},"source":{"type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryFullName":{"type":"string","pattern":"^[\\w.-]+\\/[\\w.-]+$"},"productionBranch":{"type":"string","minLength":1,"maxLength":255},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"productionChecks":{"type":"array","items":{"type":"string"}},"type":{"default":"github","type":"string","const":"github"},"connectionId":{"type":"string","minLength":1},"submodules":{"type":"boolean"}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy","type","connectionId"],"additionalProperties":false},"commitSha":{"type":"string"},"ref":{"type":"string"}},"required":["id","slug","name","source","commitSha","ref"],"additionalProperties":false}},"workerOrder":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^[a-z0-9](?:[a-z0-9-]{0,253}[a-z0-9])?$"}}},"required":["version","defaultServiceId","services"],"additionalProperties":false},"configurationState":{"type":"string","enum":["pending","resolved"]},"runId":{"type":["string","null"]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"activatedAt":{"type":["number","null"]}},"required":["id","projectId","target","status","ref","commitSha","commitMessage","sourceConnectionId","defaultServiceId","configuration","runId","error","createdAt","updatedAt","activatedAt"],"additionalProperties":false},"restorable":{"type":"boolean"}},"required":["ok","release"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/releases/{releaseId}/rollback":{"post":{"operationId":"rollbackProjectRelease","summary":"Restore every service and route of an earlier release together","tags":["Releases"],"security":[{"bearerToken":["deployments:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"releaseId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"releaseId":{"type":"string"},"runId":{"type":"string"},"status":{"type":"string"}},"required":["ok","releaseId","status"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/drains":{"get":{"operationId":"listDrains","summary":"List project observability drains","tags":["Drains"],"security":[{"bearerToken":["drains:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"drains":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"type":{"type":"string","enum":["logs","analytics","speed_insights"]},"url":{"type":"string","maxLength":2048},"format":{"type":"string","enum":["json","ndjson"]},"enabled":{"type":"boolean"},"sampling":{"type":"number"},"environments":{"maxItems":2,"type":"array","items":{"type":"string","enum":["production","preview"]}},"sources":{"maxItems":6,"type":"array","items":{"type":"string","enum":["runtime","build","client","server","posthog","vitals"]}},"headerNames":{"type":"array","items":{"type":"string"}},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"lastDelivery":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["success","failed","retrying"]},"at":{"type":"number"},"httpStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"error":{"type":["string","null"]}},"required":["status","at","httpStatus","attempt","error"],"additionalProperties":false},{"type":"null"}]},"lastTest":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["success","failed","retrying"]},"at":{"type":"number"},"httpStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"error":{"type":["string","null"]}},"required":["status","at","httpStatus","attempt","error"],"additionalProperties":false},{"type":"null"}]}},"required":["id","projectId","type","url","format","enabled","sampling","environments","sources","headerNames","revision","createdAt","updatedAt","lastDelivery","lastTest"],"additionalProperties":false}},"runtimeLogsEnabled":{"type":"boolean"},"connection":{"anyOf":[{"type":"object","properties":{"generation":{"type":"number"},"requestedAt":{"type":"number"},"appliedAt":{"type":["number","null"]},"error":{"type":["string","null"]}},"required":["generation","requestedAt","appliedAt","error"],"additionalProperties":false},{"type":"null"}]}},"required":["ok","drains","runtimeLogsEnabled","connection"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"createDrain","summary":"Create an asynchronous observability drain","tags":["Drains"],"security":[{"bearerToken":["drains:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"drain":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"type":{"type":"string","enum":["logs","analytics","speed_insights"]},"url":{"type":"string","maxLength":2048},"format":{"type":"string","enum":["json","ndjson"]},"enabled":{"type":"boolean"},"sampling":{"type":"number"},"environments":{"maxItems":2,"type":"array","items":{"type":"string","enum":["production","preview"]}},"sources":{"maxItems":6,"type":"array","items":{"type":"string","enum":["runtime","build","client","server","posthog","vitals"]}},"headerNames":{"type":"array","items":{"type":"string"}},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"lastDelivery":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["success","failed","retrying"]},"at":{"type":"number"},"httpStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"error":{"type":["string","null"]}},"required":["status","at","httpStatus","attempt","error"],"additionalProperties":false},{"type":"null"}]},"lastTest":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["success","failed","retrying"]},"at":{"type":"number"},"httpStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"error":{"type":["string","null"]}},"required":["status","at","httpStatus","attempt","error"],"additionalProperties":false},{"type":"null"}]}},"required":["id","projectId","type","url","format","enabled","sampling","environments","sources","headerNames","revision","createdAt","updatedAt","lastDelivery","lastTest"],"additionalProperties":false},"signingSecret":{"type":"string"}},"required":["ok","drain"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"At most five drains per project, including paused drains. Empty environment/source filters select all. The signing secret is returned once; store it securely. Delivery uses HTTPS with at-least-once semantics after Queue acceptance.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string","enum":["logs","analytics","speed_insights"]},"url":{"type":"string","maxLength":2048},"format":{"default":"json","type":"string","enum":["json","ndjson"]},"enabled":{"default":true,"type":"boolean"},"sampling":{"default":1,"type":"number","minimum":0,"maximum":1},"environments":{"default":[],"maxItems":2,"type":"array","items":{"type":"string","enum":["production","preview"]}},"sources":{"default":[],"maxItems":6,"type":"array","items":{"type":"string","enum":["runtime","build","client","server","posthog","vitals"]}},"headers":{"default":{},"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[!#$%&'*+.^\\w`|~-]+$"},"additionalProperties":{"type":"string","maxLength":4096,"pattern":"^[\\t\\u{20}-\\u{7E}\\u{80}-\\u{FF}]*$"}}},"required":["type","url"],"additionalProperties":false}}}}}},"/v1/projects/{projectId}/drains/{drainId}":{"get":{"operationId":"getDrain","summary":"Read a drain without its credentials","tags":["Drains"],"security":[{"bearerToken":["drains:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"drainId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"drain":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"type":{"type":"string","enum":["logs","analytics","speed_insights"]},"url":{"type":"string","maxLength":2048},"format":{"type":"string","enum":["json","ndjson"]},"enabled":{"type":"boolean"},"sampling":{"type":"number"},"environments":{"maxItems":2,"type":"array","items":{"type":"string","enum":["production","preview"]}},"sources":{"maxItems":6,"type":"array","items":{"type":"string","enum":["runtime","build","client","server","posthog","vitals"]}},"headerNames":{"type":"array","items":{"type":"string"}},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"lastDelivery":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["success","failed","retrying"]},"at":{"type":"number"},"httpStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"error":{"type":["string","null"]}},"required":["status","at","httpStatus","attempt","error"],"additionalProperties":false},{"type":"null"}]},"lastTest":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["success","failed","retrying"]},"at":{"type":"number"},"httpStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"error":{"type":["string","null"]}},"required":["status","at","httpStatus","attempt","error"],"additionalProperties":false},{"type":"null"}]}},"required":["id","projectId","type","url","format","enabled","sampling","environments","sources","headerNames","revision","createdAt","updatedAt","lastDelivery","lastTest"],"additionalProperties":false},"signingSecret":{"type":"string"}},"required":["ok","drain"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"put":{"operationId":"updateDrain","summary":"Update, pause, resume or rotate a drain signing secret","tags":["Drains"],"security":[{"bearerToken":["drains:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"drainId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"drain":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"type":{"type":"string","enum":["logs","analytics","speed_insights"]},"url":{"type":"string","maxLength":2048},"format":{"type":"string","enum":["json","ndjson"]},"enabled":{"type":"boolean"},"sampling":{"type":"number"},"environments":{"maxItems":2,"type":"array","items":{"type":"string","enum":["production","preview"]}},"sources":{"maxItems":6,"type":"array","items":{"type":"string","enum":["runtime","build","client","server","posthog","vitals"]}},"headerNames":{"type":"array","items":{"type":"string"}},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"lastDelivery":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["success","failed","retrying"]},"at":{"type":"number"},"httpStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"error":{"type":["string","null"]}},"required":["status","at","httpStatus","attempt","error"],"additionalProperties":false},{"type":"null"}]},"lastTest":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["success","failed","retrying"]},"at":{"type":"number"},"httpStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"attempt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"error":{"type":["string","null"]}},"required":["status","at","httpStatus","attempt","error"],"additionalProperties":false},{"type":"null"}]}},"required":["id","projectId","type","url","format","enabled","sampling","environments","sources","headerNames","revision","createdAt","updatedAt","lastDelivery","lastTest"],"additionalProperties":false},"signingSecret":{"type":"string"}},"required":["ok","drain"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Omitted fields retain their values. Updating increments the revision and invalidates queued batches for the previous configuration. Type is immutable. Set regenerateSigningSecret to return a new signing secret once. Set ifRevision to apply the update only while the drain is at that revision, or ifSigningSecret to apply it only while the drain still signs with that secret; otherwise the answer is 412 and nothing changes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","maxLength":2048},"format":{"type":"string","enum":["json","ndjson"]},"enabled":{"type":"boolean"},"sampling":{"type":"number","minimum":0,"maximum":1},"environments":{"maxItems":2,"type":"array","items":{"type":"string","enum":["production","preview"]}},"sources":{"maxItems":6,"type":"array","items":{"type":"string","enum":["runtime","build","client","server","posthog","vitals"]}},"headers":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[!#$%&'*+.^\\w`|~-]+$"},"additionalProperties":{"type":"string","maxLength":4096,"pattern":"^[\\t\\u{20}-\\u{7E}\\u{80}-\\u{FF}]*$"}},"regenerateSigningSecret":{"type":"boolean"},"ifRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"ifSigningSecret":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false}}}}},"delete":{"operationId":"deleteDrain","summary":"Delete a drain and invalidate its queued deliveries","tags":["Drains"],"security":[{"bearerToken":["drains:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"drainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"ifRevision","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Set ifRevision to delete the drain only while it is at that revision; otherwise the answer is 412 and nothing is deleted."}},"/v1/projects/{projectId}/drains/{drainId}/test":{"post":{"operationId":"testDrain","summary":"Queue a synthetic test delivery for an enabled drain","tags":["Drains"],"security":[{"bearerToken":["drains:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"drainId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"batchId":{"type":"string"}},"required":["ok","batchId"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Returns immediately after Queue acceptance. Read lastTest to see the outcome. This sends a synthetic event through the configured format, headers and signing secret."}},"/v1/projects/{projectId}/diagnostics/request":{"get":{"operationId":"getRequestDiagnostics","summary":"Correlate a request with observed parent and application invocations","tags":["Diagnostics"],"security":[{"bearerToken":["deployments:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","maxLength":64,"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","maxLength":64,"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},{"name":"rayId","in":"query","required":true,"schema":{"type":"string","minLength":8,"maxLength":41,"pattern":"^[\\dA-Fa-f]{8,32}(?:-[\\dA-Za-z]{2,8})?(?![\\s\\S])"}},{"name":"deploymentId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"includeTraces","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"schemaVersion":{"type":"number","const":1},"requestedWindow":{"type":"object","properties":{"from":{"type":"string","maxLength":64,"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","maxLength":64,"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["from","to"],"additionalProperties":false},"effectiveWindow":{"type":"object","properties":{"from":{"type":"string","maxLength":64,"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","maxLength":64,"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["from","to"],"additionalProperties":false},"deployments":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"commitSha":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"bundleDigest":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"framework":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"frameworkVersion":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"nextVersion":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["id","commitSha","buildId","bundleDigest","framework","frameworkVersion","nextVersion"],"additionalProperties":false}},"invocations":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"source":{"type":"string","enum":["parent","app","middleware"]},"timestamp":{"type":"string","maxLength":64,"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deploymentId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"requestId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"rayId":{"type":"string","minLength":8,"maxLength":32,"pattern":"^[\\da-f]{8,32}(?![\\s\\S])"},"cpuTimeMs":{"anyOf":[{"type":"number","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"wallTimeMs":{"anyOf":[{"type":"number","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"outcome":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"workerVersionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"coldStart":{"type":["boolean","null"]},"colo":{"anyOf":[{"type":"string","minLength":1,"maxLength":16},{"type":"null"}]}},"required":["id","source","timestamp","deploymentId","requestId","rayId","cpuTimeMs","wallTimeMs","outcome","workerVersionId","coldStart","colo"],"additionalProperties":false}},"tracing":{"type":"object","properties":{"spans":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"traceId":{"type":"string","minLength":1,"maxLength":256},"spanId":{"type":"string","minLength":1,"maxLength":256},"parentSpanId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"parentStatus":{"type":"string","enum":["root","observed","missing","unknown"]},"source":{"type":"string","enum":["parent","app","middleware"]},"deploymentId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"requestId":{"type":"string","minLength":1,"maxLength":256},"startedAt":{"type":"string","maxLength":64,"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"endedAt":{"anyOf":[{"type":"string","maxLength":64,"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"durationMs":{"anyOf":[{"type":"number","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"timeToFirstByteMs":{"default":null,"anyOf":[{"type":"number","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"workerVersionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["id","traceId","spanId","parentSpanId","parentStatus","source","deploymentId","requestId","startedAt","endedAt","durationMs","timeToFirstByteMs","workerVersionId"],"additionalProperties":false}},"coverage":{"type":"object","properties":{"partial":{"type":"boolean"},"parent":{"type":"object","properties":{"status":{"type":"string","enum":["available","not_observed","partial","unavailable","ambiguous"]},"reasons":{"maxItems":25,"type":"array","items":{"type":"string","enum":["retention","ownership","history","sampling","truncation","not_observed","legacy","ambiguous","missing_fields","backend_unsupported","rate_limited","unavailable","deadline","query_limit","object_limit","byte_limit","line_limit","record_limit","output_limit","corrupt","etag_mismatch","index_incomplete","unverified_invocation","missing_parent","sampling_unknown"]}},"sampled":{"type":"boolean"},"truncated":{"type":"boolean"}},"required":["status","reasons","sampled","truncated"],"additionalProperties":false},"app":{"type":"object","properties":{"status":{"type":"string","enum":["available","not_observed","partial","unavailable","ambiguous"]},"reasons":{"maxItems":25,"type":"array","items":{"type":"string","enum":["retention","ownership","history","sampling","truncation","not_observed","legacy","ambiguous","missing_fields","backend_unsupported","rate_limited","unavailable","deadline","query_limit","object_limit","byte_limit","line_limit","record_limit","output_limit","corrupt","etag_mismatch","index_incomplete","unverified_invocation","missing_parent","sampling_unknown"]}},"sampled":{"type":"boolean"},"truncated":{"type":"boolean"}},"required":["status","reasons","sampled","truncated"],"additionalProperties":false},"middleware":{"type":"object","properties":{"status":{"type":"string","enum":["available","not_observed","partial","unavailable","ambiguous"]},"reasons":{"maxItems":25,"type":"array","items":{"type":"string","enum":["retention","ownership","history","sampling","truncation","not_observed","legacy","ambiguous","missing_fields","backend_unsupported","rate_limited","unavailable","deadline","query_limit","object_limit","byte_limit","line_limit","record_limit","output_limit","corrupt","etag_mismatch","index_incomplete","unverified_invocation","missing_parent","sampling_unknown"]}},"sampled":{"type":"boolean"},"truncated":{"type":"boolean"}},"required":["status","reasons","sampled","truncated"],"additionalProperties":false}},"required":["partial","parent","app","middleware"],"additionalProperties":false},"limitations":{"maxItems":3,"type":"array","items":{"type":"string","enum":["native_ttfb_unavailable","zone_traces_unavailable","trace_connectivity_unverified"]}}},"required":["spans","coverage","limitations"],"additionalProperties":false},"coverage":{"type":"object","properties":{"partial":{"type":"boolean"},"parent":{"type":"object","properties":{"status":{"type":"string","enum":["available","not_observed","partial","unavailable","ambiguous"]},"reasons":{"maxItems":25,"type":"array","items":{"type":"string","enum":["retention","ownership","history","sampling","truncation","not_observed","legacy","ambiguous","missing_fields","backend_unsupported","rate_limited","unavailable","deadline","query_limit","object_limit","byte_limit","line_limit","record_limit","output_limit","corrupt","etag_mismatch","index_incomplete","unverified_invocation","missing_parent","sampling_unknown"]}},"sampled":{"type":"boolean"},"truncated":{"type":"boolean"}},"required":["status","reasons","sampled","truncated"],"additionalProperties":false},"runtime":{"type":"object","properties":{"status":{"type":"string","enum":["available","not_observed","partial","unavailable","ambiguous"]},"reasons":{"maxItems":25,"type":"array","items":{"type":"string","enum":["retention","ownership","history","sampling","truncation","not_observed","legacy","ambiguous","missing_fields","backend_unsupported","rate_limited","unavailable","deadline","query_limit","object_limit","byte_limit","line_limit","record_limit","output_limit","corrupt","etag_mismatch","index_incomplete","unverified_invocation","missing_parent","sampling_unknown"]}},"sampled":{"type":"boolean"},"truncated":{"type":"boolean"}},"required":["status","reasons","sampled","truncated"],"additionalProperties":false}},"required":["partial","parent","runtime"],"additionalProperties":false}},"required":["ok","schemaVersion","requestedWindow","effectiveWindow","deployments","invocations","coverage"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Requires a Ray ID and UTC timestamps ending in Z. The window includes `from`, excludes `to`, and spans at most 15 minutes. A Ray ID may include a colo suffix; matching uses its lowercase hexadecimal base. Optional deployment selection is scoped to this project. Coverage reports retained, sampled, missing, or unavailable evidence. Unknown metrics remain null; separate invocations are not combined. Returns at most 200 invocations. Set includeTraces=true to request up to 200 scoped spans and explicit trace coverage within the same collection budget. Omitted or false keeps the invocation-only lookup. Verified native HTTP root spans include provider-recorded timeToFirstByteMs; other or unavailable measurements remain null. Span requestId identifies the authorized invocation it belongs to, including a child whose membership was verified through that root. Trace duration does not establish TTFB or a physical cold start. Requires deployments:read and respects the token’s project and IP restrictions."}},"/v1/projects/{projectId}/logs":{"get":{"operationId":"listProjectLogs","summary":"List recent runtime log events or grouped request records for a project","tags":["Logs"],"security":[{"bearerToken":["logs:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"range","in":"query","required":false,"schema":{"default":"1h","type":"string","enum":["15m","1h","6h","24h","3d","7d"]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","const":"requests"}},{"name":"correlationId","in":"query","required":false,"schema":{"type":"string"}},{"name":"level","in":"query","required":false,"schema":{"type":"string","enum":["warn","error"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["4xx","5xx"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"range":{"type":"string","enum":["15m","1h","6h","24h","3d","7d"]},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"kind":{"type":"string","enum":["request","log"]},"level":{"type":"string","enum":["debug","info","log","warn","error"]},"source":{"type":"string","enum":["app","middleware","workflow","scheduled"]},"deploymentId":{"type":"string"},"requestId":{"type":["string","null"]},"request":{"anyOf":[{"type":"object","properties":{"method":{"type":"string"},"path":{"type":"string"},"status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"wallTimeMs":{"type":["number","null"]},"cpuTimeMs":{"type":["number","null"]},"outcome":{"type":["string","null"]},"serving":{"type":"object","properties":{"url":{"type":["string","null"]},"rewrittenFrom":{"type":["string","null"]},"userAgent":{"type":["string","null"]},"nextKind":{"default":null,"anyOf":[{"type":"string","enum":["resume","action","prefetch","rsc","cron"]},{"type":"null"}]},"regeneration":{"default":null,"anyOf":[{"type":"string","enum":["background","foreground","detached"]},{"type":"null"}]},"cronSchedule":{"type":["string","null"]},"coldStart":{"type":"boolean"},"rayId":{"type":["string","null"]},"logsTruncated":{"type":"boolean"}},"required":["url","rewrittenFrom","userAgent","nextKind","regeneration","cronSchedule","coldStart","rayId","logsTruncated"],"additionalProperties":false},"visitor":{"anyOf":[{"type":"object","properties":{"ip":{"type":["string","null"]},"country":{"type":["string","null"]},"colo":{"type":["string","null"]}},"required":["ip","country","colo"],"additionalProperties":false},{"type":"null"}]},"headers":{"type":"object","properties":{"referer":{"type":"string"},"accept-language":{"type":"string"},"origin":{"type":"string"},"sec-fetch-site":{"type":"string"},"sec-fetch-mode":{"type":"string"},"sec-fetch-dest":{"type":"string"},"sec-fetch-user":{"type":"string"},"accept":{"type":"string"},"content-type":{"type":"string"},"accept-encoding":{"type":"string"},"content-length":{"type":"string"},"sec-ch-ua":{"type":"string"},"sec-ch-ua-mobile":{"type":"string"},"sec-ch-ua-platform":{"type":"string"}},"additionalProperties":false},"cf":{"type":"object","properties":{"asn":{"type":"string"},"asOrganization":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"regionCode":{"type":"string"},"continent":{"type":"string"},"timezone":{"type":"string"},"postalCode":{"type":"string"},"latitude":{"type":"string"},"longitude":{"type":"string"},"metroCode":{"type":"string"},"isEUCountry":{"type":"string"},"httpProtocol":{"type":"string"},"tlsVersion":{"type":"string"},"tlsCipher":{"type":"string"},"clientTcpRtt":{"type":"string"},"clientQuicRtt":{"type":"string"},"edgeL4":{"type":"object","properties":{"deliveryRate":{"type":"string"}},"additionalProperties":false},"requestPriority":{"type":"string"},"tlsClientHelloLength":{"type":"string"},"tlsClientCiphersSha1":{"type":"string"},"tlsClientExtensionsSha1":{"type":"string"}},"additionalProperties":false}},"required":["method","path","status","wallTimeMs","cpuTimeMs","outcome"],"additionalProperties":false},{"type":"null"}]},"message":{"type":"string"},"truncated":{"type":"boolean"},"data":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"},"truncated":{"type":"boolean"}},"required":["text","truncated"],"additionalProperties":false},{"type":"null"}]},"customContext":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"correlationId":{"type":"string"}},"required":["id","timestamp","kind","level","source","deploymentId","requestId","request","message","truncated"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]},"sampled":{"type":"boolean"},"customContextIncomplete":{"type":"boolean"},"requestMetadataIncomplete":{"type":"boolean"},"requestSearchIncomplete":{"type":"boolean"},"previewsOmitted":{"default":false,"type":"boolean"},"deployments":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"target":{"default":null,"anyOf":[{"type":"string","enum":["production","preview"]},{"type":"null"}]},"name":{"type":"string"}},"required":["id","target","name"],"additionalProperties":false}}},"required":["ok","range","from","to","events","nextCursor","sampled","previewsOmitted","deployments"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Reads up to the last 7 days (`range`: `15m`, `1h`, `6h`, `24h`, `7d`; defaults to `1h`) with secret values masked. Omit `view` for the mixed event stream, or set `view=requests` to group console output under each invocation and include request details (received headers, Cloudflare connection metadata, and Custom Context). Filtering by `correlationId` requires `view=requests`. Search pages through retained chunks, so a page may hold fewer matches than usual—or none—while still returning `nextCursor`. Requires `logs:read`."}},"/v1/projects/{projectId}/logs/{eventId}/console":{"get":{"operationId":"getProjectLogConsole","summary":"Read recorded console output for one request invocation","tags":["Logs"],"security":[{"bearerToken":["logs:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}},{"name":"deploymentId","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":2048,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"range":{"type":"string","enum":["15m","1h","6h","24h","3d","7d"]},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"kind":{"type":"string","enum":["request","log"]},"level":{"type":"string","enum":["debug","info","log","warn","error"]},"source":{"type":"string","enum":["app","middleware","workflow","scheduled"]},"deploymentId":{"type":"string"},"requestId":{"type":["string","null"]},"request":{"anyOf":[{"type":"object","properties":{"method":{"type":"string"},"path":{"type":"string"},"status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"wallTimeMs":{"type":["number","null"]},"cpuTimeMs":{"type":["number","null"]},"outcome":{"type":["string","null"]},"serving":{"type":"object","properties":{"url":{"type":["string","null"]},"rewrittenFrom":{"type":["string","null"]},"userAgent":{"type":["string","null"]},"nextKind":{"default":null,"anyOf":[{"type":"string","enum":["resume","action","prefetch","rsc","cron"]},{"type":"null"}]},"regeneration":{"default":null,"anyOf":[{"type":"string","enum":["background","foreground","detached"]},{"type":"null"}]},"cronSchedule":{"type":["string","null"]},"coldStart":{"type":"boolean"},"rayId":{"type":["string","null"]},"logsTruncated":{"type":"boolean"}},"required":["url","rewrittenFrom","userAgent","nextKind","regeneration","cronSchedule","coldStart","rayId","logsTruncated"],"additionalProperties":false},"visitor":{"anyOf":[{"type":"object","properties":{"ip":{"type":["string","null"]},"country":{"type":["string","null"]},"colo":{"type":["string","null"]}},"required":["ip","country","colo"],"additionalProperties":false},{"type":"null"}]},"headers":{"type":"object","properties":{"referer":{"type":"string"},"accept-language":{"type":"string"},"origin":{"type":"string"},"sec-fetch-site":{"type":"string"},"sec-fetch-mode":{"type":"string"},"sec-fetch-dest":{"type":"string"},"sec-fetch-user":{"type":"string"},"accept":{"type":"string"},"content-type":{"type":"string"},"accept-encoding":{"type":"string"},"content-length":{"type":"string"},"sec-ch-ua":{"type":"string"},"sec-ch-ua-mobile":{"type":"string"},"sec-ch-ua-platform":{"type":"string"}},"additionalProperties":false},"cf":{"type":"object","properties":{"asn":{"type":"string"},"asOrganization":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"regionCode":{"type":"string"},"continent":{"type":"string"},"timezone":{"type":"string"},"postalCode":{"type":"string"},"latitude":{"type":"string"},"longitude":{"type":"string"},"metroCode":{"type":"string"},"isEUCountry":{"type":"string"},"httpProtocol":{"type":"string"},"tlsVersion":{"type":"string"},"tlsCipher":{"type":"string"},"clientTcpRtt":{"type":"string"},"clientQuicRtt":{"type":"string"},"edgeL4":{"type":"object","properties":{"deliveryRate":{"type":"string"}},"additionalProperties":false},"requestPriority":{"type":"string"},"tlsClientHelloLength":{"type":"string"},"tlsClientCiphersSha1":{"type":"string"},"tlsClientExtensionsSha1":{"type":"string"}},"additionalProperties":false}},"required":["method","path","status","wallTimeMs","cpuTimeMs","outcome"],"additionalProperties":false},{"type":"null"}]},"message":{"type":"string"},"truncated":{"type":"boolean"},"data":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"},"truncated":{"type":"boolean"}},"required":["text","truncated"],"additionalProperties":false},{"type":"null"}]},"customContext":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"correlationId":{"type":"string"}},"required":["id","timestamp","kind","level","source","deploymentId","requestId","request","message","truncated"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]},"sampled":{"type":"boolean"},"customContextIncomplete":{"type":"boolean"},"requestMetadataIncomplete":{"type":"boolean"},"requestSearchIncomplete":{"type":"boolean"},"previewsOmitted":{"default":false,"type":"boolean"},"deployments":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"target":{"default":null,"anyOf":[{"type":"string","enum":["production","preview"]},{"type":"null"}]},"name":{"type":"string"}},"required":["id","target","name"],"additionalProperties":false}}},"required":["ok","range","from","to","events","nextCursor","sampled","previewsOmitted","deployments"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Loads `console.log`, `console.warn`, `console.error`, and structured data emitted during the invocation named by `eventId`, oldest first, independently of the request list filters. Requires `deploymentId` scoped to this project; pass `nextCursor` back as `cursor` to read earlier output. Requires `logs:read`."}},"/v1/projects/{projectId}/log-archive/requests":{"get":{"operationId":"listLogArchiveRequests","summary":"List archived request records within the project log retention window","tags":["Logs"],"security":[{"bearerToken":["logs:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},{"name":"level","in":"query","required":false,"schema":{"type":"string","enum":["warn","error"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["4xx","5xx"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"correlationId","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"kind":{"type":"string","enum":["request","log"]},"level":{"type":"string","enum":["debug","info","log","warn","error"]},"source":{"type":"string","enum":["app","middleware","workflow","scheduled"]},"deploymentId":{"type":"string"},"requestId":{"type":["string","null"]},"request":{"anyOf":[{"type":"object","properties":{"method":{"type":"string"},"path":{"type":"string"},"status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"wallTimeMs":{"type":["number","null"]},"cpuTimeMs":{"type":["number","null"]},"outcome":{"type":["string","null"]},"serving":{"type":"object","properties":{"url":{"type":["string","null"]},"rewrittenFrom":{"type":["string","null"]},"userAgent":{"type":["string","null"]},"nextKind":{"default":null,"anyOf":[{"type":"string","enum":["resume","action","prefetch","rsc","cron"]},{"type":"null"}]},"regeneration":{"default":null,"anyOf":[{"type":"string","enum":["background","foreground","detached"]},{"type":"null"}]},"cronSchedule":{"type":["string","null"]},"coldStart":{"type":"boolean"},"rayId":{"type":["string","null"]},"logsTruncated":{"type":"boolean"}},"required":["url","rewrittenFrom","userAgent","nextKind","regeneration","cronSchedule","coldStart","rayId","logsTruncated"],"additionalProperties":false},"visitor":{"anyOf":[{"type":"object","properties":{"ip":{"type":["string","null"]},"country":{"type":["string","null"]},"colo":{"type":["string","null"]}},"required":["ip","country","colo"],"additionalProperties":false},{"type":"null"}]},"headers":{"type":"object","properties":{"referer":{"type":"string"},"accept-language":{"type":"string"},"origin":{"type":"string"},"sec-fetch-site":{"type":"string"},"sec-fetch-mode":{"type":"string"},"sec-fetch-dest":{"type":"string"},"sec-fetch-user":{"type":"string"},"accept":{"type":"string"},"content-type":{"type":"string"},"accept-encoding":{"type":"string"},"content-length":{"type":"string"},"sec-ch-ua":{"type":"string"},"sec-ch-ua-mobile":{"type":"string"},"sec-ch-ua-platform":{"type":"string"}},"additionalProperties":false},"cf":{"type":"object","properties":{"asn":{"type":"string"},"asOrganization":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"regionCode":{"type":"string"},"continent":{"type":"string"},"timezone":{"type":"string"},"postalCode":{"type":"string"},"latitude":{"type":"string"},"longitude":{"type":"string"},"metroCode":{"type":"string"},"isEUCountry":{"type":"string"},"httpProtocol":{"type":"string"},"tlsVersion":{"type":"string"},"tlsCipher":{"type":"string"},"clientTcpRtt":{"type":"string"},"clientQuicRtt":{"type":"string"},"edgeL4":{"type":"object","properties":{"deliveryRate":{"type":"string"}},"additionalProperties":false},"requestPriority":{"type":"string"},"tlsClientHelloLength":{"type":"string"},"tlsClientCiphersSha1":{"type":"string"},"tlsClientExtensionsSha1":{"type":"string"}},"additionalProperties":false}},"required":["method","path","status","wallTimeMs","cpuTimeMs","outcome"],"additionalProperties":false},{"type":"null"}]},"message":{"type":"string"},"truncated":{"type":"boolean"},"data":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"},"truncated":{"type":"boolean"}},"required":["text","truncated"],"additionalProperties":false},{"type":"null"}]},"customContext":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"correlationId":{"type":"string"}},"required":["id","timestamp","kind","level","source","deploymentId","requestId","request","message","truncated"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]},"searchedThrough":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"sampled":{"type":"boolean"},"gaps":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"reason":{"default":"other","type":"string","enum":["paused","not_entitled","expired","volume_limit","unavailable","sampled","previews_omitted","deployment_limit","unordered","other"]},"parts":{"minItems":1,"type":"array","items":{"default":"other","type":"string","enum":["requests","request_metadata","errors","posthog","spans","previews","other"]}}},"required":["from","to","reason","parts"],"additionalProperties":false}},"gapsTruncated":{"type":"boolean"},"deployments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"target":{"default":null,"anyOf":[{"type":"string","enum":["production","preview"]},{"type":"null"}]},"name":{"type":"string"}},"required":["id","target","name"],"additionalProperties":false}}},"required":["ok","from","to","events","nextCursor","searchedThrough","sampled","gaps","gapsTruncated","deployments"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Searches sealed long-term request records newest first. Requires UTC timestamps `from` and `to` ending in Z spanning more than 0 ms and at most 366 days, and requires an organization plan that includes Log Archive (answered `409 plan_required` otherwise). Supports `level`, `status`, `q`, `correlationId`, and `cursor`. Secret values remain masked. Requires `logs:read`."}},"/v1/projects/{projectId}/log-archive/records/{recordId}":{"get":{"operationId":"getLogArchiveRecord","summary":"Read the full archived record for a single request","tags":["Logs"],"security":[{"bearerToken":["logs:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"recordId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"event":{"type":"object","properties":{"id":{"type":"string"},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"kind":{"type":"string","enum":["request","log"]},"level":{"type":"string","enum":["debug","info","log","warn","error"]},"source":{"type":"string","enum":["app","middleware","workflow","scheduled"]},"deploymentId":{"type":"string"},"requestId":{"type":["string","null"]},"request":{"anyOf":[{"type":"object","properties":{"method":{"type":"string"},"path":{"type":"string"},"status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"wallTimeMs":{"type":["number","null"]},"cpuTimeMs":{"type":["number","null"]},"outcome":{"type":["string","null"]},"serving":{"type":"object","properties":{"url":{"type":["string","null"]},"rewrittenFrom":{"type":["string","null"]},"userAgent":{"type":["string","null"]},"nextKind":{"default":null,"anyOf":[{"type":"string","enum":["resume","action","prefetch","rsc","cron"]},{"type":"null"}]},"regeneration":{"default":null,"anyOf":[{"type":"string","enum":["background","foreground","detached"]},{"type":"null"}]},"cronSchedule":{"type":["string","null"]},"coldStart":{"type":"boolean"},"rayId":{"type":["string","null"]},"logsTruncated":{"type":"boolean"}},"required":["url","rewrittenFrom","userAgent","nextKind","regeneration","cronSchedule","coldStart","rayId","logsTruncated"],"additionalProperties":false},"visitor":{"anyOf":[{"type":"object","properties":{"ip":{"type":["string","null"]},"country":{"type":["string","null"]},"colo":{"type":["string","null"]}},"required":["ip","country","colo"],"additionalProperties":false},{"type":"null"}]},"headers":{"type":"object","properties":{"referer":{"type":"string"},"accept-language":{"type":"string"},"origin":{"type":"string"},"sec-fetch-site":{"type":"string"},"sec-fetch-mode":{"type":"string"},"sec-fetch-dest":{"type":"string"},"sec-fetch-user":{"type":"string"},"accept":{"type":"string"},"content-type":{"type":"string"},"accept-encoding":{"type":"string"},"content-length":{"type":"string"},"sec-ch-ua":{"type":"string"},"sec-ch-ua-mobile":{"type":"string"},"sec-ch-ua-platform":{"type":"string"}},"additionalProperties":false},"cf":{"type":"object","properties":{"asn":{"type":"string"},"asOrganization":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"regionCode":{"type":"string"},"continent":{"type":"string"},"timezone":{"type":"string"},"postalCode":{"type":"string"},"latitude":{"type":"string"},"longitude":{"type":"string"},"metroCode":{"type":"string"},"isEUCountry":{"type":"string"},"httpProtocol":{"type":"string"},"tlsVersion":{"type":"string"},"tlsCipher":{"type":"string"},"clientTcpRtt":{"type":"string"},"clientQuicRtt":{"type":"string"},"edgeL4":{"type":"object","properties":{"deliveryRate":{"type":"string"}},"additionalProperties":false},"requestPriority":{"type":"string"},"tlsClientHelloLength":{"type":"string"},"tlsClientCiphersSha1":{"type":"string"},"tlsClientExtensionsSha1":{"type":"string"}},"additionalProperties":false}},"required":["method","path","status","wallTimeMs","cpuTimeMs","outcome"],"additionalProperties":false},{"type":"null"}]},"message":{"type":"string"},"truncated":{"type":"boolean"},"data":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"},"truncated":{"type":"boolean"}},"required":["text","truncated"],"additionalProperties":false},{"type":"null"}]},"customContext":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"correlationId":{"type":"string"}},"required":["id","timestamp","kind","level","source","deploymentId","requestId","request","message","truncated"],"additionalProperties":false},"console":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"kind":{"type":"string","enum":["request","log"]},"level":{"type":"string","enum":["debug","info","log","warn","error"]},"source":{"type":"string","enum":["app","middleware","workflow","scheduled"]},"deploymentId":{"type":"string"},"requestId":{"type":["string","null"]},"request":{"anyOf":[{"type":"object","properties":{"method":{"type":"string"},"path":{"type":"string"},"status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"wallTimeMs":{"type":["number","null"]},"cpuTimeMs":{"type":["number","null"]},"outcome":{"type":["string","null"]},"serving":{"type":"object","properties":{"url":{"type":["string","null"]},"rewrittenFrom":{"type":["string","null"]},"userAgent":{"type":["string","null"]},"nextKind":{"default":null,"anyOf":[{"type":"string","enum":["resume","action","prefetch","rsc","cron"]},{"type":"null"}]},"regeneration":{"default":null,"anyOf":[{"type":"string","enum":["background","foreground","detached"]},{"type":"null"}]},"cronSchedule":{"type":["string","null"]},"coldStart":{"type":"boolean"},"rayId":{"type":["string","null"]},"logsTruncated":{"type":"boolean"}},"required":["url","rewrittenFrom","userAgent","nextKind","regeneration","cronSchedule","coldStart","rayId","logsTruncated"],"additionalProperties":false},"visitor":{"anyOf":[{"type":"object","properties":{"ip":{"type":["string","null"]},"country":{"type":["string","null"]},"colo":{"type":["string","null"]}},"required":["ip","country","colo"],"additionalProperties":false},{"type":"null"}]},"headers":{"type":"object","properties":{"referer":{"type":"string"},"accept-language":{"type":"string"},"origin":{"type":"string"},"sec-fetch-site":{"type":"string"},"sec-fetch-mode":{"type":"string"},"sec-fetch-dest":{"type":"string"},"sec-fetch-user":{"type":"string"},"accept":{"type":"string"},"content-type":{"type":"string"},"accept-encoding":{"type":"string"},"content-length":{"type":"string"},"sec-ch-ua":{"type":"string"},"sec-ch-ua-mobile":{"type":"string"},"sec-ch-ua-platform":{"type":"string"}},"additionalProperties":false},"cf":{"type":"object","properties":{"asn":{"type":"string"},"asOrganization":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"regionCode":{"type":"string"},"continent":{"type":"string"},"timezone":{"type":"string"},"postalCode":{"type":"string"},"latitude":{"type":"string"},"longitude":{"type":"string"},"metroCode":{"type":"string"},"isEUCountry":{"type":"string"},"httpProtocol":{"type":"string"},"tlsVersion":{"type":"string"},"tlsCipher":{"type":"string"},"clientTcpRtt":{"type":"string"},"clientQuicRtt":{"type":"string"},"edgeL4":{"type":"object","properties":{"deliveryRate":{"type":"string"}},"additionalProperties":false},"requestPriority":{"type":"string"},"tlsClientHelloLength":{"type":"string"},"tlsClientCiphersSha1":{"type":"string"},"tlsClientExtensionsSha1":{"type":"string"}},"additionalProperties":false}},"required":["method","path","status","wallTimeMs","cpuTimeMs","outcome"],"additionalProperties":false},{"type":"null"}]},"message":{"type":"string"},"truncated":{"type":"boolean"},"data":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"},"truncated":{"type":"boolean"}},"required":["text","truncated"],"additionalProperties":false},{"type":"null"}]},"customContext":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"correlationId":{"type":"string"}},"required":["id","timestamp","kind","level","source","deploymentId","requestId","request","message","truncated"],"additionalProperties":false}},"consoleTruncated":{"type":"boolean"},"spans":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"traceId":{"type":"string","minLength":1,"maxLength":256},"spanId":{"type":"string","minLength":1,"maxLength":256},"parentSpanId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"parentStatus":{"type":"string","enum":["root","observed","missing","unknown"]},"source":{"type":"string","enum":["parent","app","middleware"]},"deploymentId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"requestId":{"type":"string","minLength":1,"maxLength":256},"startedAt":{"type":"string","maxLength":64,"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"endedAt":{"anyOf":[{"type":"string","maxLength":64,"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"durationMs":{"anyOf":[{"type":"number","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"timeToFirstByteMs":{"default":null,"anyOf":[{"type":"number","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"workerVersionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]}},"required":["id","traceId","spanId","parentSpanId","parentStatus","source","deploymentId","requestId","startedAt","endedAt","durationMs","timeToFirstByteMs","workerVersionId"],"additionalProperties":false}},"spansPartial":{"type":"boolean"},"errors":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"fingerprint":{"type":"string","pattern":"^[\\da-f]{16}$"},"event":{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"source":{"type":"string","enum":["client","edge","server"]},"type":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"route":{"type":"string"},"release":{"type":"string"},"environment":{"type":"string","enum":["preview","production"]},"routeType":{"type":"string"},"digest":{"type":"string"},"correlationId":{"type":"string"},"hostname":{"type":"string"},"browser":{"type":"string"},"os":{"type":"string"},"device":{"type":"string"},"country":{"type":"string"},"colo":{"type":"string"},"frames":{"type":"array","items":{"type":"object","properties":{"function":{"type":"string"},"file":{"type":"string"},"line":{"type":"integer","minimum":0,"maximum":9007199254740991},"column":{"type":"integer","minimum":0,"maximum":9007199254740991},"original":{"type":"boolean"},"context":{"type":"object","properties":{"startLine":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"lines":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":1024},"truncated":{"type":"boolean"}},"required":["text"],"additionalProperties":false}}},"required":["startLine","lines"],"additionalProperties":false}},"required":["function","file","line","column","original"],"additionalProperties":false}},"symbolication":{"type":"string","enum":["no-map","map-too-large","map-unreadable","no-mapping","build-output"]},"csp":{"type":"object","properties":{"effectiveDirective":{"type":"string","maxLength":128},"blockedURL":{"type":"string","maxLength":2048},"disposition":{"type":"string","enum":["enforce","report"]},"originalPolicy":{"type":"string","maxLength":4096},"originalPolicyTruncated":{"type":"boolean","const":true},"sourceFile":{"type":"string","maxLength":2048},"statusCode":{"type":"integer","minimum":0,"maximum":65535},"lineNumber":{"type":"integer","minimum":0,"maximum":4294967295},"columnNumber":{"type":"integer","minimum":0,"maximum":4294967295}},"required":["effectiveDirective","blockedURL"],"additionalProperties":false},"contexts":{"type":"object","properties":{"browser":{"type":"object","properties":{"version":{"type":"string","maxLength":256},"precision":{"type":"string","enum":["major","reported"]}},"required":["version","precision"],"additionalProperties":false},"os":{"type":"object","properties":{"version":{"type":"string","maxLength":256}},"required":["version"],"additionalProperties":false},"runtime":{"type":"object","properties":{"platform":{"type":"string","enum":["workers","containers"]},"framework":{"type":"string","maxLength":256},"frameworkVersion":{"type":"string","maxLength":256},"compatibilityDate":{"type":"string","maxLength":256},"compatibilityFlags":{"type":"array","items":{"type":"string","maxLength":256}}},"additionalProperties":false},"deployment":{"type":"object","properties":{"buildId":{"type":"string","maxLength":256},"commitSha":{"type":"string","maxLength":256}},"additionalProperties":false}},"additionalProperties":false},"diagnostics":{"type":"object","properties":{"v":{"type":"number","const":1},"causes":{"type":"object","properties":{"values":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","maxLength":128},"message":{"type":"string","maxLength":1024},"frames":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"function":{"type":"string"},"file":{"type":"string"},"line":{"type":"integer","minimum":0,"maximum":9007199254740991},"column":{"type":"integer","minimum":0,"maximum":9007199254740991},"original":{"type":"boolean"},"context":{"type":"object","properties":{"startLine":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"lines":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":1024},"truncated":{"type":"boolean"}},"required":["text"],"additionalProperties":false}}},"required":["startLine","lines"],"additionalProperties":false}},"required":["function","file","line","column","original"],"additionalProperties":false}},"symbolication":{"type":"string","enum":["no-map","map-too-large","map-unreadable","no-mapping","build-output"]}},"required":["type","message","frames"],"additionalProperties":false}},"status":{"type":"string","enum":["complete","truncated","cycle","unreadable"]}},"required":["values","status"],"additionalProperties":false},"breadcrumbs":{"type":"object","properties":{"values":{"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"ageMs":{"type":"integer","minimum":0,"maximum":86400000},"kind":{"type":"string","const":"navigation"},"path":{"type":"string","maxLength":256},"action":{"type":"string","enum":["initial","push","replace","traverse"]}},"required":["ageMs","kind","path","action"],"additionalProperties":false},{"type":"object","properties":{"ageMs":{"type":"integer","minimum":0,"maximum":86400000},"kind":{"type":"string","const":"http"},"path":{"type":"string","maxLength":256},"transport":{"type":"string","enum":["fetch","xhr"]},"durationMs":{"type":"integer","minimum":0,"maximum":86400000},"status":{"type":"integer","minimum":100,"maximum":599}},"required":["ageMs","kind","path","transport","durationMs"],"additionalProperties":false},{"type":"object","properties":{"ageMs":{"type":"integer","minimum":0,"maximum":86400000},"kind":{"type":"string","const":"click"},"tag":{"type":"string","maxLength":256},"role":{"type":"string","maxLength":256},"inputType":{"type":"string","maxLength":256}},"required":["ageMs","kind","tag"],"additionalProperties":false},{"type":"object","properties":{"ageMs":{"type":"integer","minimum":0,"maximum":86400000},"kind":{"type":"string","const":"console"},"level":{"type":"string","enum":["debug","log","info","warn","error"]},"message":{"type":"string","maxLength":256},"truncated":{"type":"boolean"}},"required":["ageMs","kind","level","message"],"additionalProperties":false}]}},"truncated":{"type":"boolean"}},"required":["values","truncated"],"additionalProperties":false}},"required":["v"],"additionalProperties":false}},"required":["at","source","type","message","path","route","release","environment","routeType","digest","hostname","browser","os","device","country","colo","frames"],"additionalProperties":false}},"required":["fingerprint","event"],"additionalProperties":false}},"errorsTruncated":{"type":"boolean"},"posthogEvents":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"deploymentId":{"type":"string"},"receivedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"event":{"type":"object","properties":{"event":{"type":"string"},"timestamp":{"type":["string","number"]},"distinct_id":{"type":["string","number"]},"properties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"uuid":{"type":"string"},"correlationId":{"type":"string"}},"required":["event","properties"],"additionalProperties":false},"truncated":{"type":"boolean"}},"required":["id","deploymentId","receivedAt","event","truncated"],"additionalProperties":false}},"posthogTruncated":{"type":"boolean"},"missing":{"type":"array","items":{"type":"object","properties":{"part":{"default":"other","type":"string","enum":["requests","request_metadata","errors","posthog","spans","previews","other"]},"reason":{"default":"other","type":"string","enum":["paused","not_entitled","expired","volume_limit","unavailable","sampled","previews_omitted","deployment_limit","unordered","other"]}},"required":["part","reason"],"additionalProperties":false}},"sealedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deployments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"target":{"default":null,"anyOf":[{"type":"string","enum":["production","preview"]},{"type":"null"}]},"name":{"type":"string"}},"required":["id","target","name"],"additionalProperties":false}}},"required":["ok","event","console","consoleTruncated","spans","spansPartial","errors","errorsTruncated","posthogEvents","posthogTruncated","missing","sealedAt","deployments"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Returns the complete archived request snapshot identified by `recordId` (`r1_…`), including received request headers, Cloudflare connection metadata, Custom Context, and recorded console output (secret values masked). Requires an organization plan that includes Log Archive (`409 plan_required` otherwise) and `logs:read`."}},"/v1/projects/{projectId}/issues/requests/{correlationId}":{"get":{"operationId":"getRequestIssues","summary":"List server and edge errors correlated with an HTTP request ID","tags":["Errors"],"security":[{"bearerToken":["logs:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"correlationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"correlationId":{"type":"string"},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"matches":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"fingerprint":{"type":"string","pattern":"^[\\da-f]{16}$"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"source":{"type":"string","enum":["server","edge"]},"type":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"release":{"type":"string"},"environment":{"type":"string","enum":["preview","production"]}},"required":["fingerprint","at","source","type","message","path","release","environment"],"additionalProperties":false}},"truncated":{"type":"boolean"}},"required":["correlationId","from","to","matches","truncated"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Reads retained server-side and edge error occurrences matching `correlationId` over the last 7 days (within project ownership boundaries), with deployment secrets masked and up to 20 matches (`truncated: true` if more matched). Requires `logs:read`."}},"/v1/projects":{"get":{"operationId":"listProjects","summary":"List the projects of the organization the token belongs to","tags":["Projects"],"security":[{"bearerToken":["projects:read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":["string","null"]},"originHost":{"type":"string"},"previewLabel":{"type":"string"},"status":{"type":"string","enum":["pending","active","passthrough","disabled","failed"]},"previewUrl":{"type":"string","format":"uri"},"cspNonce":{"type":"boolean"},"cspNonceMode":{"default":"enforce","type":"string","enum":["enforce","report-only"]},"cspStrictDynamic":{"default":false,"type":"boolean"},"cacheInspector":{"default":false,"type":"boolean"},"cacheApi":{"default":true,"type":"boolean"},"cspReporting":{"default":true,"type":"boolean"},"posthogCapturePaths":{"default":[],"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":1024,"pattern":"^\\/[^?#\\s\\\\*]*$"}},"allowProductionUploads":{"default":true,"type":"boolean"},"paused":{"default":false,"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"purgeAfter":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repositoryId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repositoryFullName":{"type":"string"},"productionBranch":{"type":"string"},"rootDirectory":{"type":"string"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"type":["string","null"]},"buildCommand":{"type":["string","null"]},"productionChecks":{"type":"array","items":{"type":"string"}}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy"],"additionalProperties":false},{"type":"null"}]},"latestDeployment":{"anyOf":[{"type":"object","properties":{"serviceId":{"type":"string"},"releaseId":{"type":"string"},"id":{"type":"string"},"projectId":{"type":"string"},"status":{"type":"string","enum":["building","uploading","ready","queued","ingesting","active","failed","retired"]},"nextVersion":{"type":["string","null"]},"framework":{"anyOf":[{"type":"string","enum":["nextjs","sveltekit","astro","react-router","tanstack-start","nuxt","solidstart","hono","fetch"]},{"type":"null"}]},"frameworkVersion":{"type":["string","null"]},"buildId":{"type":["string","null"]},"runId":{"type":["string","null"]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"target":{"type":"string","enum":["production","preview"]},"trigger":{"type":"string","enum":["upload","git_push","git_manual"]},"sourceRef":{"type":["string","null"]},"commitSha":{"type":["string","null"]},"commitMessage":{"type":["string","null"]},"hasLog":{"type":"boolean"},"hasBundle":{"type":"boolean"},"buildInstance":{"anyOf":[{"type":"string","enum":["standard-2","standard-3","standard-4"]},{"type":"null"}]},"installCommand":{"type":["string","null"]},"buildCommand":{"type":["string","null"]},"buildStartedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildFinishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildOutcome":{"anyOf":[{"type":"string","enum":["succeeded","failed","timeout"]},{"type":"null"}]},"url":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"previewUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"branchUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"checks":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["waiting","passed","failed","timed_out","stopped"]},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"state":{"type":"string","enum":["passed","failed","pending","missing"]}},"required":["name","state"],"additionalProperties":false}},"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deadline":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["state","checks","since","deadline"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","projectId","status","nextVersion","buildId","runId","error","target","trigger","sourceRef","commitSha","commitMessage","hasLog","hasBundle","buildInstance","buildStartedAt","buildFinishedAt","buildOutcome","url","previewUrl","branchUrl","createdAt","updatedAt"],"additionalProperties":false},{"type":"null"}]},"activeDeploymentId":{"type":["string","null"]}},"required":["id","displayName","originHost","previewLabel","status","previewUrl","cspNonce","cspNonceMode","cspStrictDynamic","cacheInspector","cacheApi","cspReporting","posthogCapturePaths","allowProductionUploads","paused","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["ok","projects","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Oldest first. Pass `nextCursor` back as `cursor` for the next page; `null` means there is none. Projects are created on the dashboard, not here."}},"/v1/projects/{projectId}":{"get":{"operationId":"getProject","summary":"One project, with what is serving and how it was proved","tags":["Projects"],"security":[{"bearerToken":["projects:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"project":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":["string","null"]},"originHost":{"type":"string"},"previewLabel":{"type":"string"},"status":{"type":"string","enum":["pending","active","passthrough","disabled","failed"]},"previewUrl":{"type":"string","format":"uri"},"cspNonce":{"type":"boolean"},"cspNonceMode":{"default":"enforce","type":"string","enum":["enforce","report-only"]},"cspStrictDynamic":{"default":false,"type":"boolean"},"cacheInspector":{"default":false,"type":"boolean"},"cacheApi":{"default":true,"type":"boolean"},"cspReporting":{"default":true,"type":"boolean"},"posthogCapturePaths":{"default":[],"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":1024,"pattern":"^\\/[^?#\\s\\\\*]*$"}},"allowProductionUploads":{"default":true,"type":"boolean"},"paused":{"default":false,"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"purgeAfter":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repositoryId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repositoryFullName":{"type":"string"},"productionBranch":{"type":"string"},"rootDirectory":{"type":"string"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"type":["string","null"]},"buildCommand":{"type":["string","null"]},"productionChecks":{"type":"array","items":{"type":"string"}}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy"],"additionalProperties":false},{"type":"null"}]},"latestDeployment":{"anyOf":[{"type":"object","properties":{"serviceId":{"type":"string"},"releaseId":{"type":"string"},"id":{"type":"string"},"projectId":{"type":"string"},"status":{"type":"string","enum":["building","uploading","ready","queued","ingesting","active","failed","retired"]},"nextVersion":{"type":["string","null"]},"framework":{"anyOf":[{"type":"string","enum":["nextjs","sveltekit","astro","react-router","tanstack-start","nuxt","solidstart","hono","fetch"]},{"type":"null"}]},"frameworkVersion":{"type":["string","null"]},"buildId":{"type":["string","null"]},"runId":{"type":["string","null"]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"target":{"type":"string","enum":["production","preview"]},"trigger":{"type":"string","enum":["upload","git_push","git_manual"]},"sourceRef":{"type":["string","null"]},"commitSha":{"type":["string","null"]},"commitMessage":{"type":["string","null"]},"hasLog":{"type":"boolean"},"hasBundle":{"type":"boolean"},"buildInstance":{"anyOf":[{"type":"string","enum":["standard-2","standard-3","standard-4"]},{"type":"null"}]},"installCommand":{"type":["string","null"]},"buildCommand":{"type":["string","null"]},"buildStartedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildFinishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildOutcome":{"anyOf":[{"type":"string","enum":["succeeded","failed","timeout"]},{"type":"null"}]},"url":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"previewUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"branchUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"checks":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["waiting","passed","failed","timed_out","stopped"]},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"state":{"type":"string","enum":["passed","failed","pending","missing"]}},"required":["name","state"],"additionalProperties":false}},"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deadline":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["state","checks","since","deadline"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","projectId","status","nextVersion","buildId","runId","error","target","trigger","sourceRef","commitSha","commitMessage","hasLog","hasBundle","buildInstance","buildStartedAt","buildFinishedAt","buildOutcome","url","previewUrl","branchUrl","createdAt","updatedAt"],"additionalProperties":false},{"type":"null"}]},"activeDeploymentId":{"type":["string","null"]}},"required":["id","displayName","originHost","previewLabel","status","previewUrl","cspNonce","cspNonceMode","cspStrictDynamic","cacheInspector","cacheApi","cspReporting","posthogCapturePaths","allowProductionUploads","paused","createdAt","updatedAt"],"additionalProperties":false},"active":{"anyOf":[{"type":"object","properties":{"v":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2}]},"projectId":{"type":"string","minLength":1},"previewLabel":{"type":"string","minLength":1},"originHost":{"type":"string","minLength":1},"mode":{"type":"string","enum":["edge","passthrough","disabled"]},"reason":{"type":"string"},"manifestId":{"type":"string"},"requiresGate":{"type":"boolean","const":true},"policyId":{"type":"string","minLength":1},"selectedPolicy":{"anyOf":[{"type":"string","const":"builtin"},{"type":"object","properties":{"id":{"type":"string","pattern":"^[\\w.-]{1,64}$"},"shell":{"type":"object","properties":{"backend":{"type":"string","enum":["kv","r2","static-assets"]},"memoryLru":{"type":"boolean"},"cacheApiLayer":{"type":"boolean"}},"required":["backend","memoryLru","cacheApiLayer"],"additionalProperties":false},"assets":{"type":"object","properties":{"backend":{"type":"string","enum":["cache-api-readthrough","passthrough","r2-mirror"]},"ttlSeconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"sharedTtlSeconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["backend","ttlSeconds","sharedTtlSeconds"],"additionalProperties":false},"continuation":{"type":"object","properties":{"timeoutMs":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"recovery":{"type":"string","const":"reload-bypass"}},"required":["timeoutMs","recovery"],"additionalProperties":false},"middleware":{"default":{"cpuMs":50,"subRequests":5,"timeoutMs":3000},"type":"object","properties":{"cpuMs":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"subRequests":{"type":"integer","minimum":0,"maximum":9007199254740991},"timeoutMs":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["cpuMs","subRequests","timeoutMs"],"additionalProperties":false},"runtimeCache":{"type":"object","properties":{"generations":{"type":"string","enum":["off","on"]},"holdMs":{"type":"integer","minimum":0,"maximum":9007199254740991},"regenerateCooldownMs":{"type":"integer","minimum":0,"maximum":9007199254740991},"concreteUpgrade":{"type":"boolean"},"cacheApiMaxAgeMs":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["generations","holdMs","regenerateCooldownMs","concreteUpgrade"],"additionalProperties":false}},"required":["id","shell","assets","continuation","middleware"],"additionalProperties":false}]},"deployment":{"type":"object","properties":{"dplId":{"type":"string","minLength":1},"buildId":{"type":"string","minLength":1},"assetSetHash":{"type":"string","minLength":1},"observedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["assetSetHash","observedAt"],"additionalProperties":false},"cspNonce":{"type":"boolean"},"cspNonceMode":{"type":"string","enum":["enforce","report-only"]},"cspStrictDynamic":{"type":"boolean"},"access":{"type":"object","properties":{"modes":{"minItems":1,"type":"array","items":{"type":"string","enum":["password","link","oauth","team"]}},"epoch":{"type":"integer","minimum":0,"maximum":9007199254740991},"teamEpoch":{"type":"integer","minimum":0,"maximum":9007199254740991},"bypassHash":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]{64}$"},"providers":{"type":"array","items":{"type":"string","enum":["google","github"]}}},"required":["modes","epoch"],"additionalProperties":false},"cacheApi":{"type":"boolean"},"app":{"type":"object","properties":{"deploymentId":{"type":"string","minLength":1},"scriptName":{"type":"string","minLength":1},"middlewareScriptName":{"type":"string","minLength":1},"functions":{"type":"object","propertyNames":{"type":"string","pattern":"^app-(?:[2-9]|[1-9]\\d+)$"},"additionalProperties":{"type":"string","minLength":1}}},"required":["deploymentId","scriptName"],"additionalProperties":false},"hasGates":{"type":"boolean","const":true},"serviceRoutes":{"type":"array","items":{"type":"object","properties":{"serviceId":{"type":"string","minLength":1},"hostname":{"type":"string","minLength":1},"pathPrefix":{"type":"string"},"target":{"type":"object","properties":{"originHost":{"type":"string","minLength":1},"manifestId":{"type":"string","minLength":1},"policyId":{"type":"string","minLength":1},"selectedPolicy":{"anyOf":[{"type":"string","const":"builtin"},{"type":"object","properties":{"id":{"type":"string","pattern":"^[\\w.-]{1,64}$"},"shell":{"type":"object","properties":{"backend":{"type":"string","enum":["kv","r2","static-assets"]},"memoryLru":{"type":"boolean"},"cacheApiLayer":{"type":"boolean"}},"required":["backend","memoryLru","cacheApiLayer"],"additionalProperties":false},"assets":{"type":"object","properties":{"backend":{"type":"string","enum":["cache-api-readthrough","passthrough","r2-mirror"]},"ttlSeconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"sharedTtlSeconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["backend","ttlSeconds","sharedTtlSeconds"],"additionalProperties":false},"continuation":{"type":"object","properties":{"timeoutMs":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"recovery":{"type":"string","const":"reload-bypass"}},"required":["timeoutMs","recovery"],"additionalProperties":false},"middleware":{"default":{"cpuMs":50,"subRequests":5,"timeoutMs":3000},"type":"object","properties":{"cpuMs":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"subRequests":{"type":"integer","minimum":0,"maximum":9007199254740991},"timeoutMs":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["cpuMs","subRequests","timeoutMs"],"additionalProperties":false},"runtimeCache":{"type":"object","properties":{"generations":{"type":"string","enum":["off","on"]},"holdMs":{"type":"integer","minimum":0,"maximum":9007199254740991},"regenerateCooldownMs":{"type":"integer","minimum":0,"maximum":9007199254740991},"concreteUpgrade":{"type":"boolean"},"cacheApiMaxAgeMs":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["generations","holdMs","regenerateCooldownMs","concreteUpgrade"],"additionalProperties":false}},"required":["id","shell","assets","continuation","middleware"],"additionalProperties":false}]},"deployment":{"type":"object","properties":{"dplId":{"type":"string","minLength":1},"buildId":{"type":"string","minLength":1},"assetSetHash":{"type":"string","minLength":1},"observedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["assetSetHash","observedAt"],"additionalProperties":false},"app":{"type":"object","properties":{"deploymentId":{"type":"string","minLength":1},"scriptName":{"type":"string","minLength":1},"middlewareScriptName":{"type":"string","minLength":1},"functions":{"type":"object","propertyNames":{"type":"string","pattern":"^app-(?:[2-9]|[1-9]\\d+)$"},"additionalProperties":{"type":"string","minLength":1}}},"required":["deploymentId","scriptName"],"additionalProperties":false},"hasGates":{"type":"boolean","const":true},"passthrough":{"type":"boolean","const":true},"demotedRoutes":{"type":"array","items":{"type":"object","properties":{"pathname":{"type":"string","minLength":1},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["pathname","until"],"additionalProperties":false}},"posthog":{"type":"object","properties":{"capturePaths":{"type":"array","items":{"type":"string","format":"starts_with","pattern":"^\\/.*"}}},"required":["capturePaths"],"additionalProperties":false},"cspReportingPath":{"type":"string","maxLength":512,"format":"starts_with","pattern":"^\\/__arkor\\/monitoring\\/v1\\/csp\\?token=.*"}},"required":["originHost","manifestId","policyId","app"],"additionalProperties":false}},"required":["serviceId","pathPrefix","target"],"additionalProperties":false}},"posthog":{"type":"object","properties":{"capturePaths":{"type":"array","items":{"type":"string","format":"starts_with","pattern":"^\\/.*"}}},"required":["capturePaths"],"additionalProperties":false},"cspReportingPath":{"type":"string","maxLength":512,"format":"starts_with","pattern":"^\\/__arkor\\/monitoring\\/v1\\/csp\\?token=.*"},"environment":{"type":"string","const":"preview"},"paused":{"type":"boolean","const":true},"hostnames":{"type":"array","items":{"type":"string","minLength":1}},"demotedRoutes":{"type":"array","items":{"type":"object","properties":{"pathname":{"type":"string","minLength":1},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["pathname","until"],"additionalProperties":false}},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["v","projectId","previewLabel","originHost","mode","policyId","updatedAt"],"additionalProperties":false},{"type":"null"}]},"deployment":{"anyOf":[{"type":"object","properties":{"dplId":{"type":"string","minLength":1},"buildId":{"type":"string","minLength":1},"assetSetHash":{"type":"string","minLength":1},"observedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["assetSetHash","observedAt"],"additionalProperties":false},{"type":"null"}]},"latestRun":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"trigger":{"type":"string","enum":["manual","policy_change","subscription_restored","publication_recovery","deploy","git_push","git_manual"]},"status":{"type":"string","enum":["queued","running","succeeded","failed","superseded","cancelled"]},"currentStep":{"type":["string","null"]},"startedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"stats":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"step":{"type":["string","null"]}},"required":["code","message","step"],"additionalProperties":false},{"type":"null"}]}},"required":["id","projectId","trigger","status","currentStep","startedAt","finishedAt","stats","error"],"additionalProperties":false},{"type":"null"}]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"type":{"type":"string"},"level":{"type":"string","enum":["info","warn","error"]},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","type","level","payload","createdAt"],"additionalProperties":false}},"routes":{"type":"array","items":{"type":"object","properties":{"pathname":{"type":"string"},"shellByteLength":{"type":"number"},"delivery":{"type":"string","enum":["resume","complete"]},"cspUnsafeInline":{"type":"boolean"}},"required":["pathname","shellByteLength","delivery","cspUnsafeInline"],"additionalProperties":false}},"policy":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[\\w.-]{1,64}$"},"shell":{"type":"object","properties":{"backend":{"type":"string","enum":["kv","r2","static-assets"]},"memoryLru":{"type":"boolean"},"cacheApiLayer":{"type":"boolean"}},"required":["backend","memoryLru","cacheApiLayer"],"additionalProperties":false},"assets":{"type":"object","properties":{"backend":{"type":"string","enum":["cache-api-readthrough","passthrough","r2-mirror"]},"ttlSeconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"sharedTtlSeconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["backend","ttlSeconds","sharedTtlSeconds"],"additionalProperties":false},"continuation":{"type":"object","properties":{"timeoutMs":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"recovery":{"type":"string","const":"reload-bypass"}},"required":["timeoutMs","recovery"],"additionalProperties":false},"middleware":{"default":{"cpuMs":50,"subRequests":5,"timeoutMs":3000},"type":"object","properties":{"cpuMs":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"subRequests":{"type":"integer","minimum":0,"maximum":9007199254740991},"timeoutMs":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["cpuMs","subRequests","timeoutMs"],"additionalProperties":false},"runtimeCache":{"type":"object","properties":{"generations":{"type":"string","enum":["off","on"]},"holdMs":{"type":"integer","minimum":0,"maximum":9007199254740991},"regenerateCooldownMs":{"type":"integer","minimum":0,"maximum":9007199254740991},"concreteUpgrade":{"type":"boolean"},"cacheApiMaxAgeMs":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["generations","holdMs","regenerateCooldownMs","concreteUpgrade"],"additionalProperties":false}},"required":["id","shell","assets","continuation","middleware"],"additionalProperties":false},{"type":"null"}]}},"required":["ok","project","active","deployment","latestRun","events","routes","policy"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"patch":{"operationId":"updateProject","summary":"Update project settings","tags":["Projects"],"security":[{"bearerToken":["projects:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"project":{"type":"object","properties":{"id":{"type":"string"},"displayName":{"type":["string","null"]},"originHost":{"type":"string"},"previewLabel":{"type":"string"},"status":{"type":"string","enum":["pending","active","passthrough","disabled","failed"]},"previewUrl":{"type":"string","format":"uri"},"cspNonce":{"type":"boolean"},"cspNonceMode":{"default":"enforce","type":"string","enum":["enforce","report-only"]},"cspStrictDynamic":{"default":false,"type":"boolean"},"cacheInspector":{"default":false,"type":"boolean"},"cacheApi":{"default":true,"type":"boolean"},"cspReporting":{"default":true,"type":"boolean"},"posthogCapturePaths":{"default":[],"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":1024,"pattern":"^\\/[^?#\\s\\\\*]*$"}},"allowProductionUploads":{"default":true,"type":"boolean"},"paused":{"default":false,"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"purgeAfter":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repositoryId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repositoryFullName":{"type":"string"},"productionBranch":{"type":"string"},"rootDirectory":{"type":"string"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"type":["string","null"]},"buildCommand":{"type":["string","null"]},"productionChecks":{"type":"array","items":{"type":"string"}}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy"],"additionalProperties":false},{"type":"null"}]},"latestDeployment":{"anyOf":[{"type":"object","properties":{"serviceId":{"type":"string"},"releaseId":{"type":"string"},"id":{"type":"string"},"projectId":{"type":"string"},"status":{"type":"string","enum":["building","uploading","ready","queued","ingesting","active","failed","retired"]},"nextVersion":{"type":["string","null"]},"framework":{"anyOf":[{"type":"string","enum":["nextjs","sveltekit","astro","react-router","tanstack-start","nuxt","solidstart","hono","fetch"]},{"type":"null"}]},"frameworkVersion":{"type":["string","null"]},"buildId":{"type":["string","null"]},"runId":{"type":["string","null"]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"target":{"type":"string","enum":["production","preview"]},"trigger":{"type":"string","enum":["upload","git_push","git_manual"]},"sourceRef":{"type":["string","null"]},"commitSha":{"type":["string","null"]},"commitMessage":{"type":["string","null"]},"hasLog":{"type":"boolean"},"hasBundle":{"type":"boolean"},"buildInstance":{"anyOf":[{"type":"string","enum":["standard-2","standard-3","standard-4"]},{"type":"null"}]},"installCommand":{"type":["string","null"]},"buildCommand":{"type":["string","null"]},"buildStartedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildFinishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildOutcome":{"anyOf":[{"type":"string","enum":["succeeded","failed","timeout"]},{"type":"null"}]},"url":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"previewUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"branchUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"checks":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["waiting","passed","failed","timed_out","stopped"]},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"state":{"type":"string","enum":["passed","failed","pending","missing"]}},"required":["name","state"],"additionalProperties":false}},"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deadline":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["state","checks","since","deadline"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","projectId","status","nextVersion","buildId","runId","error","target","trigger","sourceRef","commitSha","commitMessage","hasLog","hasBundle","buildInstance","buildStartedAt","buildFinishedAt","buildOutcome","url","previewUrl","branchUrl","createdAt","updatedAt"],"additionalProperties":false},{"type":"null"}]},"activeDeploymentId":{"type":["string","null"]}},"required":["id","displayName","originHost","previewLabel","status","previewUrl","cspNonce","cspNonceMode","cspStrictDynamic","cacheInspector","cacheApi","cspReporting","posthogCapturePaths","allowProductionUploads","paused","createdAt","updatedAt"],"additionalProperties":false}},"required":["ok","project"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Updates project-level policy settings such as whether direct production bundle and image uploads are permitted (`allowProductionUploads`).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"allowProductionUploads":{"type":"boolean"}},"additionalProperties":false}}}}}},"/v1/projects/{projectId}/runs":{"post":{"operationId":"startRun","summary":"Prove the project again","tags":["Runs"],"security":[{"bearerToken":["deployments:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"run":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"trigger":{"type":"string","enum":["manual","policy_change","subscription_restored","publication_recovery","deploy","git_push","git_manual"]},"status":{"type":"string","enum":["queued","running","succeeded","failed","superseded","cancelled"]},"currentStep":{"type":["string","null"]},"startedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"stats":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"step":{"type":["string","null"]}},"required":["code","message","step"],"additionalProperties":false},{"type":"null"}]}},"required":["id","projectId","trigger","status","currentStep","startedAt","finishedAt","stats","error"],"additionalProperties":false}},"required":["ok","run"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"For a hosted app, checks the deployment being served again, as it was checked before it went live, and publishes what that finds: nothing is built. Refused with `nothing_to_run` while nothing is served, and with `run_in_progress` while one is already under way."}},"/v1/projects/{projectId}/runs/{runId}":{"get":{"operationId":"getRun","summary":"One run, with the events it recorded","tags":["Runs"],"security":[{"bearerToken":["deployments:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"runId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"run":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"trigger":{"type":"string","enum":["manual","policy_change","subscription_restored","publication_recovery","deploy","git_push","git_manual"]},"status":{"type":"string","enum":["queued","running","succeeded","failed","superseded","cancelled"]},"currentStep":{"type":["string","null"]},"startedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"stats":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"step":{"type":["string","null"]}},"required":["code","message","step"],"additionalProperties":false},{"type":"null"}]}},"required":["id","projectId","trigger","status","currentStep","startedAt","finishedAt","stats","error"],"additionalProperties":false},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"type":{"type":"string"},"level":{"type":"string","enum":["info","warn","error"]},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","type","level","payload","createdAt"],"additionalProperties":false}}},"required":["ok","run","events"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/deployments":{"get":{"operationId":"listDeployments","summary":"A hosted app's deployments, newest first","tags":["Deployments"],"security":[{"bearerToken":["deployments:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"deployments":{"type":"array","items":{"type":"object","properties":{"serviceId":{"type":"string"},"releaseId":{"type":"string"},"id":{"type":"string"},"projectId":{"type":"string"},"status":{"type":"string","enum":["building","uploading","ready","queued","ingesting","active","failed","retired"]},"nextVersion":{"type":["string","null"]},"framework":{"anyOf":[{"type":"string","enum":["nextjs","sveltekit","astro","react-router","tanstack-start","nuxt","solidstart","hono","fetch"]},{"type":"null"}]},"frameworkVersion":{"type":["string","null"]},"buildId":{"type":["string","null"]},"runId":{"type":["string","null"]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"target":{"type":"string","enum":["production","preview"]},"trigger":{"type":"string","enum":["upload","git_push","git_manual"]},"sourceRef":{"type":["string","null"]},"commitSha":{"type":["string","null"]},"commitMessage":{"type":["string","null"]},"hasLog":{"type":"boolean"},"hasBundle":{"type":"boolean"},"buildInstance":{"anyOf":[{"type":"string","enum":["standard-2","standard-3","standard-4"]},{"type":"null"}]},"installCommand":{"type":["string","null"]},"buildCommand":{"type":["string","null"]},"buildStartedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildFinishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildOutcome":{"anyOf":[{"type":"string","enum":["succeeded","failed","timeout"]},{"type":"null"}]},"url":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"previewUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"branchUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"checks":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["waiting","passed","failed","timed_out","stopped"]},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"state":{"type":"string","enum":["passed","failed","pending","missing"]}},"required":["name","state"],"additionalProperties":false}},"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deadline":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["state","checks","since","deadline"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","projectId","status","nextVersion","buildId","runId","error","target","trigger","sourceRef","commitSha","commitMessage","hasLog","hasBundle","buildInstance","buildStartedAt","buildFinishedAt","buildOutcome","url","previewUrl","branchUrl","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["ok","deployments"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"`limit` to a page: 20 when it is left out, 50 at most. Pass `nextCursor` back as `cursor` for the older ones; `null` means there are none."},"post":{"operationId":"createDeployment","summary":"Start a deployment from a build's bundle","tags":["Deployments"],"security":[{"bearerToken":["deployments:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","required":false,"schema":{"type":"string","enum":["gzip","identity"]},"description":"Optional `gzip` compression for the streamed upload payload."},{"name":"target","in":"query","required":false,"schema":{"type":"string","enum":["production","preview"]}}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"deployment":{"type":"object","properties":{"serviceId":{"type":"string"},"releaseId":{"type":"string"},"id":{"type":"string"},"projectId":{"type":"string"},"status":{"type":"string","enum":["building","uploading","ready","queued","ingesting","active","failed","retired"]},"nextVersion":{"type":["string","null"]},"framework":{"anyOf":[{"type":"string","enum":["nextjs","sveltekit","astro","react-router","tanstack-start","nuxt","solidstart","hono","fetch"]},{"type":"null"}]},"frameworkVersion":{"type":["string","null"]},"buildId":{"type":["string","null"]},"runId":{"type":["string","null"]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"target":{"type":"string","enum":["production","preview"]},"trigger":{"type":"string","enum":["upload","git_push","git_manual"]},"sourceRef":{"type":["string","null"]},"commitSha":{"type":["string","null"]},"commitMessage":{"type":["string","null"]},"hasLog":{"type":"boolean"},"hasBundle":{"type":"boolean"},"buildInstance":{"anyOf":[{"type":"string","enum":["standard-2","standard-3","standard-4"]},{"type":"null"}]},"installCommand":{"type":["string","null"]},"buildCommand":{"type":["string","null"]},"buildStartedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildFinishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildOutcome":{"anyOf":[{"type":"string","enum":["succeeded","failed","timeout"]},{"type":"null"}]},"url":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"previewUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"branchUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"checks":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["waiting","passed","failed","timed_out","stopped"]},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"state":{"type":"string","enum":["passed","failed","pending","missing"]}},"required":["name","state"],"additionalProperties":false}},"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deadline":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["state","checks","since","deadline"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","projectId","status","nextVersion","buildId","runId","error","target","trigger","sourceRef","commitSha","commitMessage","hasLog","hasBundle","buildInstance","buildStartedAt","buildFinishedAt","buildOutcome","url","previewUrl","branchUrl","createdAt","updatedAt"],"additionalProperties":false},"missing":{"type":"array","items":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"}}},"required":["ok","deployment","missing"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"The body is the `bundle.json` the adapter wrote. The answer names the blobs the platform does not hold yet: upload those, then finalize. A bundle built with a Next.js outside the versions the platform runs is refused as `unsupported_next`. Unsupported SvelteKit or SSR framework versions are refused as `unsupported_framework`. Astro 7, React Router 8, TanStack Start 1, Nuxt 4, SolidStart 2, Hono and fetch-handler bundles run as native Workers; SSR frameworks require stable releases.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"anyOf":[{"type":"object","properties":{"v":{"type":"number","enum":[1,2,3,4,5,6,9,10,7,8,11,12]},"deploymentId":{"type":"string"},"nextVersion":{"type":"string","minLength":1},"resourceChanges":{"type":"number","const":1},"aiInference":{"type":"number","const":1},"routeBodyPrivacy":{"type":"number","enum":[1,2]},"staticPagesPrivacy":{"type":"number","enum":[1,2,3]},"routerReferences":{"type":"string","const":"one-pass"},"buildId":{"type":"string","minLength":1},"projectDir":{"type":"string"},"generatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"config":{"type":"object","properties":{"basePath":{"type":"string"},"assetPrefix":{"type":"string","minLength":1},"trailingSlash":{"type":"boolean"},"skipTrailingSlashRedirect":{"type":"boolean"},"skipProxyUrlNormalize":{"type":"boolean"},"htmlLimitedBots":{"anyOf":[{"type":"string","const":""},{"type":"string","minLength":1}]},"poweredByHeader":{"type":"boolean"},"i18n":{"anyOf":[{"type":"object","properties":{"defaultLocale":{"type":"string"},"locales":{"type":"array","items":{"type":"string"}},"localeDetection":{"type":"boolean","const":false},"domains":{"type":"array","items":{"type":"object","properties":{"defaultLocale":{"type":"string"},"domain":{"type":"string"},"http":{"type":"boolean","const":true},"locales":{"type":"array","items":{"type":"string"}}},"required":["defaultLocale","domain"]}}},"required":["defaultLocale","locales"]},{"type":"null"}]},"images":{"type":"object","properties":{"path":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"basePath":{"type":"string"},"sizes":{"minItems":1,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"qualities":{"type":"array","items":{"type":"integer","minimum":1,"maximum":100}},"formats":{"type":"array","items":{"type":"string","enum":["image/avif","image/webp"]}},"minimumCacheTTL":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumRedirects":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumResponseBody":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"remotePatterns":{"type":"array","items":{"type":"object","properties":{"protocol":{"type":"string","enum":["http","https"]},"hostname":{"type":"string","minLength":1},"port":{"type":"string"},"pathname":{"type":"string","minLength":1},"search":{"type":"string"}},"required":["hostname","pathname"]}},"domains":{"type":"array","items":{"type":"string"}},"localPatterns":{"type":"array","items":{"type":"object","properties":{"pathname":{"type":"string","minLength":1},"search":{"type":"string"}},"required":["pathname"]}},"dangerouslyAllowLocalIP":{"default":false,"type":"boolean"},"dangerouslyAllowSVG":{"type":"boolean"},"contentSecurityPolicy":{"type":"string"},"contentDispositionType":{"type":"string","enum":["inline","attachment"]}},"required":["path","basePath","sizes","formats","minimumCacheTTL","maximumRedirects","maximumResponseBody","remotePatterns","domains","localPatterns","dangerouslyAllowSVG","contentSecurityPolicy","contentDispositionType"]},"cacheComponents":{"type":"boolean"},"partialPrefetching":{"type":"boolean"},"expireTime":{"type":"number","minimum":0},"cacheLife":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"stale":{"type":"number","minimum":0},"revalidate":{"type":"number","minimum":0},"expire":{"type":"number","minimum":0}}}},"proxyClientMaxBodySize":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["basePath","trailingSlash","skipTrailingSlashRedirect","poweredByHeader"],"additionalProperties":{}},"routing":{"type":"object","properties":{"beforeMiddleware":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}},"middlewareMatchers":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}},"beforeFiles":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}},"afterFiles":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}},"dynamicRoutes":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}},"onMatch":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}},"fallback":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}},"shouldNormalizeNextData":{"type":"boolean"},"rsc":{"type":"object","properties":{"header":{"type":"string"},"varyHeader":{"type":"string"},"prefetchHeader":{"type":"string"},"didPostponeHeader":{"type":"string"},"contentTypeHeader":{"type":"string"},"suffix":{"type":"string"},"prefetchSuffix":{"type":"string"},"prefetchSegmentHeader":{"type":"string"},"prefetchSegmentSuffix":{"type":"string"},"prefetchSegmentDirSuffix":{"type":"string"}},"required":["header","varyHeader","prefetchHeader","didPostponeHeader","contentTypeHeader","suffix","prefetchSegmentHeader","prefetchSegmentSuffix","prefetchSegmentDirSuffix"],"additionalProperties":{}}},"required":["beforeMiddleware","middlewareMatchers","beforeFiles","afterFiles","dynamicRoutes","onMatch","fallback","shouldNormalizeNextData","rsc"]},"bypassToken":{"type":"string","minLength":1},"entrypoints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"kind":{"type":"string","enum":["app-page","app-route","pages","pages-api"]},"pathname":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"runtime":{"type":"string","const":"edge"},"function":{"type":"string","pattern":"^app-(?:[2-9]|[1-9]\\d+)$"}},"required":["id","kind","pathname"]}},"sourcePages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"sourcePage":{"type":"string","minLength":1}},"required":["id","sourcePage"]}},"crons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":512,"pattern":"^\\/[\\u{21}-\\u{7E}]*$"},"schedule":{"type":"string"}},"required":["path","schedule"]}},"gates":{"type":"object","propertyNames":{"type":"string","pattern":"^\\/[\\u{20}-\\u{7E}]*$"},"additionalProperties":{"type":"string","pattern":"^[a-z][\\da-z-]*$"}},"durableObjects":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["image","instanceType","maxInstances"],"additionalProperties":false}},"required":["name","module","className"],"additionalProperties":false}},"cloudflareWorkflows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","module","className"],"additionalProperties":false}},"middleware":{"type":"object","properties":{"matchers":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}}},"required":["matchers"]},"workflow":{"type":"object","properties":{"route":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"sdk":{"type":"string","minLength":1}},"required":["route","sdk"]},"prerenders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"pathname":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"route":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"parentOutputId":{"type":"string","minLength":1},"groupId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"routeType":{"type":"string","enum":["route","fallback","shell","page"]},"response":{"type":"string","enum":["empty","initial","complete"]},"compute":{"type":"string","enum":["blocking","resuming","static"]},"renderingMode":{"type":"string","enum":["STATIC","PARTIALLY_STATIC"]},"htmlSize":{"type":"integer","minimum":0,"maximum":9007199254740991},"segmentPath":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"body":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"postponed":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"initialStatus":{"type":"integer","minimum":200,"maximum":599},"initialHeaders":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"anyOf":[{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"},{"type":"array","items":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}}]}},"initialRevalidate":{"anyOf":[{"type":"number","minimum":0},{"type":"boolean","const":false}]},"initialExpiration":{"type":"number","minimum":0},"pprChain":{"type":"object","properties":{"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}}},"required":["headers"]},"allowQuery":{"type":"array","items":{"type":"string"}},"allowHeader":{"type":"array","items":{"type":"string"}},"bypassFor":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"parentFallbackMode":{"type":["boolean","null","string"]},"partialFallback":{"type":"boolean"},"ensureStatic":{"type":"string","const":"navigation"}},"required":["id","pathname","route","parentOutputId","groupId"]}},"staticFiles":{"type":"array","items":{"type":"object","properties":{"pathname":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"immutable":{"type":"boolean"}},"required":["pathname","blob","immutable"]}},"sourceMaps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["client","function"]},"name":{"type":"string","minLength":1},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"sources":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["kind","name","blob"]}},"functions":{"type":"object","properties":{"app":{"anyOf":[{"type":"object","properties":{"runtime":{"type":"string","const":"node-container"},"artifact":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"entrypoint":{"type":"string","minLength":1,"maxLength":240},"abi":{"type":"object","properties":{"nodeVersion":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"nodeAbi":{"type":"string","pattern":"^\\d+$"},"platform":{"type":"string","const":"linux"},"arch":{"type":"string","const":"x64"},"libc":{"type":"string","const":"glibc"}},"required":["nodeVersion","nodeAbi","platform","arch","libc"],"additionalProperties":false}},"required":["runtime","artifact","entrypoint","abi"],"additionalProperties":false},{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}]},"middleware":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"split":{"type":"object","propertyNames":{"type":"string","pattern":"^app-(?:[2-9]|[1-9]\\d+)$"},"additionalProperties":{"anyOf":[{"type":"object","properties":{"runtime":{"type":"string","const":"node-container"},"artifact":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"entrypoint":{"type":"string","minLength":1,"maxLength":240},"abi":{"type":"object","properties":{"nodeVersion":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"nodeAbi":{"type":"string","pattern":"^\\d+$"},"platform":{"type":"string","const":"linux"},"arch":{"type":"string","const":"x64"},"libc":{"type":"string","const":"glibc"}},"required":["nodeVersion","nodeAbi","platform","arch","libc"],"additionalProperties":false}},"required":["runtime","artifact","entrypoint","abi"],"additionalProperties":false},{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}]}},"workflow":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"durableObjects":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"cloudflareWorkflows":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}}},"required":["app"]},"posthog":{"type":"object","properties":{"capturePaths":{"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":1024,"pattern":"^\\/[^?#\\s\\\\*]*$"}}},"required":["capturePaths"]},"d1Migrations":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"binding":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"migrations":{"type":"object","properties":{"table":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"files":{"maxItems":4000,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":1024},"blob":{"type":"object","properties":{"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"byteLength":{"type":"integer","minimum":0,"maximum":1048576},"contentType":{"type":"string","minLength":1}},"required":["sha256","byteLength","contentType"],"additionalProperties":false}},"required":["name","blob"],"additionalProperties":false}}},"required":["table","files"],"additionalProperties":false}},"required":["migrations"],"additionalProperties":false}}},"required":["v","deploymentId","nextVersion","buildId","projectDir","generatedAt","config","routing","entrypoints","prerenders","staticFiles","functions"]},{"type":"object","properties":{"v":{"type":"string","const":"sveltekit-1"},"framework":{"type":"string","const":"sveltekit"},"frameworkVersion":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+(?:-[\\w.-]+)?(?:\\+[\\w.-]+)?$"},"deploymentId":{"type":"string"},"buildId":{"type":"string","minLength":1},"generatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"functions":{"type":"object","properties":{"app":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"cloudflareWorkflows":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"scheduled":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"required":["app"],"additionalProperties":false},"cloudflareWorkflows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","module","className"],"additionalProperties":false}},"sourceMaps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["client","function"]},"name":{"type":"string","minLength":1},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"sources":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["kind","name","blob"]}},"crons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","const":"scheduled"},"schedule":{"type":"string"}},"required":["kind","schedule"],"additionalProperties":false}},"pagesRouting":{"type":"object","properties":{"include":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","maxLength":100,"format":"starts_with","pattern":"^\\/.*"}},"exclude":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":100,"format":"starts_with","pattern":"^\\/.*"}}},"required":["include","exclude"],"additionalProperties":false},"immutableAssetPrefixes":{"maxItems":100,"type":"array","items":{"type":"string"}},"assets":{"type":"object","properties":{"binding":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"files":{"type":"object","propertyNames":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"additionalProperties":{"type":"object","properties":{"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"],"additionalProperties":false}},"config":{"type":"object","properties":{"html_handling":{"type":"string","enum":["auto-trailing-slash","force-trailing-slash","drop-trailing-slash","none"]},"not_found_handling":{"type":"string","enum":["none","404-page","single-page-application"]},"base_path":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"run_worker_first":{"anyOf":[{"type":"boolean"},{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}]},"_headers":{"type":"string"},"_redirects":{"type":"string"}},"additionalProperties":false}},"required":["binding","files","config"],"additionalProperties":false}},"required":["v","framework","frameworkVersion","deploymentId","buildId","generatedAt","functions","assets"],"additionalProperties":false},{"type":"object","properties":{"v":{"type":"string","const":"web-standard-1"},"framework":{"type":"string","enum":["astro","react-router","tanstack-start","nuxt","solidstart","hono","fetch"]},"frameworkVersion":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+(?:-[\\w.-]+)?(?:\\+[\\w.-]+)?$"},"deploymentId":{"type":"string"},"buildId":{"type":"string","minLength":1},"generatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"functions":{"type":"object","properties":{"app":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"cloudflareWorkflows":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"scheduled":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"required":["app"],"additionalProperties":false},"cloudflareWorkflows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","module","className"],"additionalProperties":false}},"sourceMaps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["client","function"]},"name":{"type":"string","minLength":1},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"sources":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["kind","name","blob"]}},"crons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","const":"scheduled"},"schedule":{"type":"string"}},"required":["kind","schedule"],"additionalProperties":false}},"assets":{"type":"object","properties":{"binding":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"files":{"type":"object","propertyNames":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"additionalProperties":{"type":"object","properties":{"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"],"additionalProperties":false}},"config":{"type":"object","properties":{"html_handling":{"type":"string","enum":["auto-trailing-slash","force-trailing-slash","drop-trailing-slash","none"]},"not_found_handling":{"type":"string","enum":["none","404-page","single-page-application"]},"base_path":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"run_worker_first":{"anyOf":[{"type":"boolean"},{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}]},"_headers":{"type":"string"},"_redirects":{"type":"string"}},"additionalProperties":false}},"required":["files","config"],"additionalProperties":false},"vars":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"$ref":"#/components/schemas/__schema0"}},"requiredBindings":{"maxItems":4000,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"type":{"type":"string","enum":["kv_namespace","r2_bucket","d1","images","workflow"]}},"required":["name","type"],"additionalProperties":false}},"imagesRuntime":{"type":"object","properties":{"v":{"type":"number","const":1},"bindingNames":{"minItems":1,"maxItems":4000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"aliases":{}},"required":["v","bindingNames"],"additionalProperties":false},"requiredSecrets":{"maxItems":4000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}}},"required":["v","framework","deploymentId","buildId","generatedAt","functions"],"additionalProperties":false},{"type":"object","properties":{"v":{"type":"string","const":"web-standard-2"},"framework":{"type":"string","enum":["astro","react-router","tanstack-start","nuxt","solidstart","hono","fetch"]},"frameworkVersion":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+(?:-[\\w.-]+)?(?:\\+[\\w.-]+)?$"},"deploymentId":{"type":"string"},"buildId":{"type":"string","minLength":1},"generatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"functions":{"type":"object","properties":{"app":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"cloudflareWorkflows":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"scheduled":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"durableObjects":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"rpc":{"type":"object","propertyNames":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}}},"required":["app"],"additionalProperties":false},"cloudflareWorkflows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","module","className"],"additionalProperties":false}},"sourceMaps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["client","function"]},"name":{"type":"string","minLength":1},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"sources":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["kind","name","blob"]}},"crons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","const":"scheduled"},"schedule":{"type":"string"}},"required":["kind","schedule"],"additionalProperties":false}},"assets":{"type":"object","properties":{"binding":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"files":{"type":"object","propertyNames":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"additionalProperties":{"type":"object","properties":{"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"],"additionalProperties":false}},"config":{"type":"object","properties":{"html_handling":{"type":"string","enum":["auto-trailing-slash","force-trailing-slash","drop-trailing-slash","none"]},"not_found_handling":{"type":"string","enum":["none","404-page","single-page-application"]},"base_path":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"run_worker_first":{"anyOf":[{"type":"boolean"},{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}]},"_headers":{"type":"string"},"_redirects":{"type":"string"}},"additionalProperties":false}},"required":["files","config"],"additionalProperties":false},"vars":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"$ref":"#/components/schemas/__schema0"}},"requiredBindings":{"maxItems":4000,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"type":{"type":"string","enum":["kv_namespace","r2_bucket","d1","images","workflow","durable_object_namespace","service"]}},"required":["name","type"],"additionalProperties":false}},"imagesRuntime":{"type":"object","properties":{"v":{"type":"number","const":1},"bindingNames":{"minItems":1,"maxItems":4000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"aliases":{}},"required":["v","bindingNames"],"additionalProperties":false},"requiredSecrets":{"maxItems":4000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"hasFetch":{"type":"boolean"},"hasDefault":{"type":"boolean"},"durableObjects":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["image","instanceType","maxInstances"],"additionalProperties":false}},"required":["name","module","className"],"additionalProperties":false}}},"required":["v","framework","deploymentId","buildId","generatedAt","functions"],"additionalProperties":false}]},{"type":"object","properties":{"bundle":{"anyOf":[{"type":"object","properties":{"v":{"type":"number","enum":[1,2,3,4,5,6,9,10,7,8,11,12]},"deploymentId":{"type":"string"},"nextVersion":{"type":"string","minLength":1},"resourceChanges":{"type":"number","const":1},"aiInference":{"type":"number","const":1},"routeBodyPrivacy":{"type":"number","enum":[1,2]},"staticPagesPrivacy":{"type":"number","enum":[1,2,3]},"routerReferences":{"type":"string","const":"one-pass"},"buildId":{"type":"string","minLength":1},"projectDir":{"type":"string"},"generatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"config":{"type":"object","properties":{"basePath":{"type":"string"},"assetPrefix":{"type":"string","minLength":1},"trailingSlash":{"type":"boolean"},"skipTrailingSlashRedirect":{"type":"boolean"},"skipProxyUrlNormalize":{"type":"boolean"},"htmlLimitedBots":{"anyOf":[{"type":"string","const":""},{"type":"string","minLength":1}]},"poweredByHeader":{"type":"boolean"},"i18n":{"anyOf":[{"type":"object","properties":{"defaultLocale":{"type":"string"},"locales":{"type":"array","items":{"type":"string"}},"localeDetection":{"type":"boolean","const":false},"domains":{"type":"array","items":{"type":"object","properties":{"defaultLocale":{"type":"string"},"domain":{"type":"string"},"http":{"type":"boolean","const":true},"locales":{"type":"array","items":{"type":"string"}}},"required":["defaultLocale","domain"]}}},"required":["defaultLocale","locales"]},{"type":"null"}]},"images":{"type":"object","properties":{"path":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"basePath":{"type":"string"},"sizes":{"minItems":1,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"qualities":{"type":"array","items":{"type":"integer","minimum":1,"maximum":100}},"formats":{"type":"array","items":{"type":"string","enum":["image/avif","image/webp"]}},"minimumCacheTTL":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumRedirects":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumResponseBody":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"remotePatterns":{"type":"array","items":{"type":"object","properties":{"protocol":{"type":"string","enum":["http","https"]},"hostname":{"type":"string","minLength":1},"port":{"type":"string"},"pathname":{"type":"string","minLength":1},"search":{"type":"string"}},"required":["hostname","pathname"]}},"domains":{"type":"array","items":{"type":"string"}},"localPatterns":{"type":"array","items":{"type":"object","properties":{"pathname":{"type":"string","minLength":1},"search":{"type":"string"}},"required":["pathname"]}},"dangerouslyAllowLocalIP":{"default":false,"type":"boolean"},"dangerouslyAllowSVG":{"type":"boolean"},"contentSecurityPolicy":{"type":"string"},"contentDispositionType":{"type":"string","enum":["inline","attachment"]}},"required":["path","basePath","sizes","formats","minimumCacheTTL","maximumRedirects","maximumResponseBody","remotePatterns","domains","localPatterns","dangerouslyAllowSVG","contentSecurityPolicy","contentDispositionType"]},"cacheComponents":{"type":"boolean"},"partialPrefetching":{"type":"boolean"},"expireTime":{"type":"number","minimum":0},"cacheLife":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"stale":{"type":"number","minimum":0},"revalidate":{"type":"number","minimum":0},"expire":{"type":"number","minimum":0}}}},"proxyClientMaxBodySize":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["basePath","trailingSlash","skipTrailingSlashRedirect","poweredByHeader"],"additionalProperties":{}},"routing":{"type":"object","properties":{"beforeMiddleware":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}},"middlewareMatchers":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}},"beforeFiles":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}},"afterFiles":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}},"dynamicRoutes":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}},"onMatch":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}},"fallback":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}},"shouldNormalizeNextData":{"type":"boolean"},"rsc":{"type":"object","properties":{"header":{"type":"string"},"varyHeader":{"type":"string"},"prefetchHeader":{"type":"string"},"didPostponeHeader":{"type":"string"},"contentTypeHeader":{"type":"string"},"suffix":{"type":"string"},"prefetchSuffix":{"type":"string"},"prefetchSegmentHeader":{"type":"string"},"prefetchSegmentSuffix":{"type":"string"},"prefetchSegmentDirSuffix":{"type":"string"}},"required":["header","varyHeader","prefetchHeader","didPostponeHeader","contentTypeHeader","suffix","prefetchSegmentHeader","prefetchSegmentSuffix","prefetchSegmentDirSuffix"],"additionalProperties":{}}},"required":["beforeMiddleware","middlewareMatchers","beforeFiles","afterFiles","dynamicRoutes","onMatch","fallback","shouldNormalizeNextData","rsc"]},"bypassToken":{"type":"string","minLength":1},"entrypoints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"kind":{"type":"string","enum":["app-page","app-route","pages","pages-api"]},"pathname":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"runtime":{"type":"string","const":"edge"},"function":{"type":"string","pattern":"^app-(?:[2-9]|[1-9]\\d+)$"}},"required":["id","kind","pathname"]}},"sourcePages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"sourcePage":{"type":"string","minLength":1}},"required":["id","sourcePage"]}},"crons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":512,"pattern":"^\\/[\\u{21}-\\u{7E}]*$"},"schedule":{"type":"string"}},"required":["path","schedule"]}},"gates":{"type":"object","propertyNames":{"type":"string","pattern":"^\\/[\\u{20}-\\u{7E}]*$"},"additionalProperties":{"type":"string","pattern":"^[a-z][\\da-z-]*$"}},"durableObjects":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["image","instanceType","maxInstances"],"additionalProperties":false}},"required":["name","module","className"],"additionalProperties":false}},"cloudflareWorkflows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","module","className"],"additionalProperties":false}},"middleware":{"type":"object","properties":{"matchers":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sourceRegex":{"type":"string","minLength":1},"destination":{"type":"string"},"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}},"has":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"missing":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"status":{"type":"integer","minimum":200,"maximum":599},"priority":{"type":"boolean"}},"required":["sourceRegex"]}}},"required":["matchers"]},"workflow":{"type":"object","properties":{"route":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"sdk":{"type":"string","minLength":1}},"required":["route","sdk"]},"prerenders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"pathname":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"route":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"parentOutputId":{"type":"string","minLength":1},"groupId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"routeType":{"type":"string","enum":["route","fallback","shell","page"]},"response":{"type":"string","enum":["empty","initial","complete"]},"compute":{"type":"string","enum":["blocking","resuming","static"]},"renderingMode":{"type":"string","enum":["STATIC","PARTIALLY_STATIC"]},"htmlSize":{"type":"integer","minimum":0,"maximum":9007199254740991},"segmentPath":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"body":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"postponed":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"initialStatus":{"type":"integer","minimum":200,"maximum":599},"initialHeaders":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"anyOf":[{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"},{"type":"array","items":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}}]}},"initialRevalidate":{"anyOf":[{"type":"number","minimum":0},{"type":"boolean","const":false}]},"initialExpiration":{"type":"number","minimum":0},"pprChain":{"type":"object","properties":{"headers":{"type":"object","propertyNames":{"type":"string","pattern":"^[!#$%&'*+\\-.^`|~\\w]+$"},"additionalProperties":{"type":"string","pattern":"^[^\\0\\n\\r\\u{100}-\\u{10FFFF}]*$"}}},"required":["headers"]},"allowQuery":{"type":"array","items":{"type":"string"}},"allowHeader":{"type":"array","items":{"type":"string"}},"bypassFor":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["header","cookie","query","host"]},"key":{"type":"string"},"value":{"type":"string"}},"required":["type"]}},"parentFallbackMode":{"type":["boolean","null","string"]},"partialFallback":{"type":"boolean"},"ensureStatic":{"type":"string","const":"navigation"}},"required":["id","pathname","route","parentOutputId","groupId"]}},"staticFiles":{"type":"array","items":{"type":"object","properties":{"pathname":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"immutable":{"type":"boolean"}},"required":["pathname","blob","immutable"]}},"sourceMaps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["client","function"]},"name":{"type":"string","minLength":1},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"sources":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["kind","name","blob"]}},"functions":{"type":"object","properties":{"app":{"anyOf":[{"type":"object","properties":{"runtime":{"type":"string","const":"node-container"},"artifact":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"entrypoint":{"type":"string","minLength":1,"maxLength":240},"abi":{"type":"object","properties":{"nodeVersion":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"nodeAbi":{"type":"string","pattern":"^\\d+$"},"platform":{"type":"string","const":"linux"},"arch":{"type":"string","const":"x64"},"libc":{"type":"string","const":"glibc"}},"required":["nodeVersion","nodeAbi","platform","arch","libc"],"additionalProperties":false}},"required":["runtime","artifact","entrypoint","abi"],"additionalProperties":false},{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}]},"middleware":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"split":{"type":"object","propertyNames":{"type":"string","pattern":"^app-(?:[2-9]|[1-9]\\d+)$"},"additionalProperties":{"anyOf":[{"type":"object","properties":{"runtime":{"type":"string","const":"node-container"},"artifact":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"entrypoint":{"type":"string","minLength":1,"maxLength":240},"abi":{"type":"object","properties":{"nodeVersion":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"nodeAbi":{"type":"string","pattern":"^\\d+$"},"platform":{"type":"string","const":"linux"},"arch":{"type":"string","const":"x64"},"libc":{"type":"string","const":"glibc"}},"required":["nodeVersion","nodeAbi","platform","arch","libc"],"additionalProperties":false}},"required":["runtime","artifact","entrypoint","abi"],"additionalProperties":false},{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}]}},"workflow":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"durableObjects":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"cloudflareWorkflows":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}}},"required":["app"]},"posthog":{"type":"object","properties":{"capturePaths":{"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":1024,"pattern":"^\\/[^?#\\s\\\\*]*$"}}},"required":["capturePaths"]},"d1Migrations":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"binding":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"migrations":{"type":"object","properties":{"table":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"files":{"maxItems":4000,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":1024},"blob":{"type":"object","properties":{"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"byteLength":{"type":"integer","minimum":0,"maximum":1048576},"contentType":{"type":"string","minLength":1}},"required":["sha256","byteLength","contentType"],"additionalProperties":false}},"required":["name","blob"],"additionalProperties":false}}},"required":["table","files"],"additionalProperties":false}},"required":["migrations"],"additionalProperties":false}}},"required":["v","deploymentId","nextVersion","buildId","projectDir","generatedAt","config","routing","entrypoints","prerenders","staticFiles","functions"]},{"type":"object","properties":{"v":{"type":"string","const":"sveltekit-1"},"framework":{"type":"string","const":"sveltekit"},"frameworkVersion":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+(?:-[\\w.-]+)?(?:\\+[\\w.-]+)?$"},"deploymentId":{"type":"string"},"buildId":{"type":"string","minLength":1},"generatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"functions":{"type":"object","properties":{"app":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"cloudflareWorkflows":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"scheduled":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"required":["app"],"additionalProperties":false},"cloudflareWorkflows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","module","className"],"additionalProperties":false}},"sourceMaps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["client","function"]},"name":{"type":"string","minLength":1},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"sources":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["kind","name","blob"]}},"crons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","const":"scheduled"},"schedule":{"type":"string"}},"required":["kind","schedule"],"additionalProperties":false}},"pagesRouting":{"type":"object","properties":{"include":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","maxLength":100,"format":"starts_with","pattern":"^\\/.*"}},"exclude":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":100,"format":"starts_with","pattern":"^\\/.*"}}},"required":["include","exclude"],"additionalProperties":false},"immutableAssetPrefixes":{"maxItems":100,"type":"array","items":{"type":"string"}},"assets":{"type":"object","properties":{"binding":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"files":{"type":"object","propertyNames":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"additionalProperties":{"type":"object","properties":{"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"],"additionalProperties":false}},"config":{"type":"object","properties":{"html_handling":{"type":"string","enum":["auto-trailing-slash","force-trailing-slash","drop-trailing-slash","none"]},"not_found_handling":{"type":"string","enum":["none","404-page","single-page-application"]},"base_path":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"run_worker_first":{"anyOf":[{"type":"boolean"},{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}]},"_headers":{"type":"string"},"_redirects":{"type":"string"}},"additionalProperties":false}},"required":["binding","files","config"],"additionalProperties":false}},"required":["v","framework","frameworkVersion","deploymentId","buildId","generatedAt","functions","assets"],"additionalProperties":false},{"type":"object","properties":{"v":{"type":"string","const":"web-standard-1"},"framework":{"type":"string","enum":["astro","react-router","tanstack-start","nuxt","solidstart","hono","fetch"]},"frameworkVersion":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+(?:-[\\w.-]+)?(?:\\+[\\w.-]+)?$"},"deploymentId":{"type":"string"},"buildId":{"type":"string","minLength":1},"generatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"functions":{"type":"object","properties":{"app":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"cloudflareWorkflows":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"scheduled":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"required":["app"],"additionalProperties":false},"cloudflareWorkflows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","module","className"],"additionalProperties":false}},"sourceMaps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["client","function"]},"name":{"type":"string","minLength":1},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"sources":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["kind","name","blob"]}},"crons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","const":"scheduled"},"schedule":{"type":"string"}},"required":["kind","schedule"],"additionalProperties":false}},"assets":{"type":"object","properties":{"binding":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"files":{"type":"object","propertyNames":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"additionalProperties":{"type":"object","properties":{"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"],"additionalProperties":false}},"config":{"type":"object","properties":{"html_handling":{"type":"string","enum":["auto-trailing-slash","force-trailing-slash","drop-trailing-slash","none"]},"not_found_handling":{"type":"string","enum":["none","404-page","single-page-application"]},"base_path":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"run_worker_first":{"anyOf":[{"type":"boolean"},{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}]},"_headers":{"type":"string"},"_redirects":{"type":"string"}},"additionalProperties":false}},"required":["files","config"],"additionalProperties":false},"vars":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"$ref":"#/components/schemas/__schema0"}},"requiredBindings":{"maxItems":4000,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"type":{"type":"string","enum":["kv_namespace","r2_bucket","d1","images","workflow"]}},"required":["name","type"],"additionalProperties":false}},"imagesRuntime":{"type":"object","properties":{"v":{"type":"number","const":1},"bindingNames":{"minItems":1,"maxItems":4000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"aliases":{}},"required":["v","bindingNames"],"additionalProperties":false},"requiredSecrets":{"maxItems":4000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}}},"required":["v","framework","deploymentId","buildId","generatedAt","functions"],"additionalProperties":false},{"type":"object","properties":{"v":{"type":"string","const":"web-standard-2"},"framework":{"type":"string","enum":["astro","react-router","tanstack-start","nuxt","solidstart","hono","fetch"]},"frameworkVersion":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+(?:-[\\w.-]+)?(?:\\+[\\w.-]+)?$"},"deploymentId":{"type":"string"},"buildId":{"type":"string","minLength":1},"generatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"functions":{"type":"object","properties":{"app":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"cloudflareWorkflows":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"scheduled":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"durableObjects":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"rpc":{"type":"object","propertyNames":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}}},"required":["app"],"additionalProperties":false},"cloudflareWorkflows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","module","className"],"additionalProperties":false}},"sourceMaps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["client","function"]},"name":{"type":"string","minLength":1},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"sources":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["kind","name","blob"]}},"crons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","const":"scheduled"},"schedule":{"type":"string"}},"required":["kind","schedule"],"additionalProperties":false}},"assets":{"type":"object","properties":{"binding":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"files":{"type":"object","propertyNames":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"additionalProperties":{"type":"object","properties":{"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"],"additionalProperties":false}},"config":{"type":"object","properties":{"html_handling":{"type":"string","enum":["auto-trailing-slash","force-trailing-slash","drop-trailing-slash","none"]},"not_found_handling":{"type":"string","enum":["none","404-page","single-page-application"]},"base_path":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"run_worker_first":{"anyOf":[{"type":"boolean"},{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}]},"_headers":{"type":"string"},"_redirects":{"type":"string"}},"additionalProperties":false}},"required":["files","config"],"additionalProperties":false},"vars":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"$ref":"#/components/schemas/__schema0"}},"requiredBindings":{"maxItems":4000,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"type":{"type":"string","enum":["kv_namespace","r2_bucket","d1","images","workflow","durable_object_namespace","service"]}},"required":["name","type"],"additionalProperties":false}},"imagesRuntime":{"type":"object","properties":{"v":{"type":"number","const":1},"bindingNames":{"minItems":1,"maxItems":4000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"aliases":{}},"required":["v","bindingNames"],"additionalProperties":false},"requiredSecrets":{"maxItems":4000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"hasFetch":{"type":"boolean"},"hasDefault":{"type":"boolean"},"durableObjects":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["image","instanceType","maxInstances"],"additionalProperties":false}},"required":["name","module","className"],"additionalProperties":false}}},"required":["v","framework","deploymentId","buildId","generatedAt","functions"],"additionalProperties":false}]},"target":{"type":"string","enum":["production","preview"]},"workerBuildSet":{"type":"object","properties":{"v":{"type":"string","const":"worker-build-set-1"},"buildId":{"type":"string","minLength":1,"maxLength":256},"format":{"type":"string","enum":["wrangler","cloudflare-v0"]},"primary":{"type":"string","minLength":1,"maxLength":256},"context":{"type":"object","properties":{"mode":{"type":"string","minLength":1,"maxLength":256},"isPreview":{"type":"boolean"}},"additionalProperties":false},"workers":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","minLength":1,"maxLength":256},"artifact":{"anyOf":[{"type":"object","properties":{"v":{"type":"string","const":"web-standard-1"},"framework":{"type":"string","enum":["astro","react-router","tanstack-start","nuxt","solidstart","hono","fetch"]},"frameworkVersion":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+(?:-[\\w.-]+)?(?:\\+[\\w.-]+)?$"},"buildId":{"type":"string","minLength":1},"generatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"functions":{"type":"object","properties":{"app":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"cloudflareWorkflows":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"scheduled":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"required":["app"],"additionalProperties":false},"cloudflareWorkflows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","module","className"],"additionalProperties":false}},"sourceMaps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["client","function"]},"name":{"type":"string","minLength":1},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"sources":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["kind","name","blob"]}},"crons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","const":"scheduled"},"schedule":{"type":"string"}},"required":["kind","schedule"],"additionalProperties":false}},"assets":{"type":"object","properties":{"binding":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"files":{"type":"object","propertyNames":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"additionalProperties":{"type":"object","properties":{"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"],"additionalProperties":false}},"config":{"type":"object","properties":{"html_handling":{"type":"string","enum":["auto-trailing-slash","force-trailing-slash","drop-trailing-slash","none"]},"not_found_handling":{"type":"string","enum":["none","404-page","single-page-application"]},"base_path":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"run_worker_first":{"anyOf":[{"type":"boolean"},{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}]},"_headers":{"type":"string"},"_redirects":{"type":"string"}},"additionalProperties":false}},"required":["files","config"],"additionalProperties":false},"vars":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"$ref":"#/components/schemas/__schema0"}},"requiredBindings":{"maxItems":4000,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"type":{"type":"string","enum":["kv_namespace","r2_bucket","d1","images","workflow"]}},"required":["name","type"],"additionalProperties":false}},"imagesRuntime":{"type":"object","properties":{"v":{"type":"number","const":1},"bindingNames":{"minItems":1,"maxItems":4000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"aliases":{}},"required":["v","bindingNames"],"additionalProperties":false},"requiredSecrets":{"maxItems":4000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}}},"required":["v","framework","buildId","generatedAt","functions"],"additionalProperties":false},{"type":"object","properties":{"v":{"type":"string","const":"web-standard-2"},"framework":{"type":"string","enum":["astro","react-router","tanstack-start","nuxt","solidstart","hono","fetch"]},"frameworkVersion":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+(?:-[\\w.-]+)?(?:\\+[\\w.-]+)?$"},"buildId":{"type":"string","minLength":1},"generatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"functions":{"type":"object","properties":{"app":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"cloudflareWorkflows":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"scheduled":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]},"durableObjects":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}},"rpc":{"type":"object","propertyNames":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"additionalProperties":{"type":"object","properties":{"runtime":{"not":{}},"mainModule":{"type":"string","minLength":1},"modules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["esm","commonjs","text","json","wasm","data"]},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["name","type","blob"]}},"compatibilityDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"compatibilityFlags":{"type":"array","items":{"type":"string","enum":["allow_importable_env","enable_ctx_exports","enable_nodejs_fs_module","enable_nodejs_http_modules","enable_nodejs_http_server_modules","enable_nodejs_process_v2","enable_request_signal","fetch_iterable_type_support","global_fetch_strictly_public","nodejs_als","nodejs_compat","nodejs_compat_populate_process_env","nodejs_compat_v2","streams_enable_constructors","url_standard"]}}},"required":["mainModule","modules","compatibilityDate","compatibilityFlags"]}}},"required":["app"],"additionalProperties":false},"cloudflareWorkflows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","module","className"],"additionalProperties":false}},"sourceMaps":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["client","function"]},"name":{"type":"string","minLength":1},"blob":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]},"sources":{"type":"object","properties":{"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"]}},"required":["kind","name","blob"]}},"crons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","const":"scheduled"},"schedule":{"type":"string"}},"required":["kind","schedule"],"additionalProperties":false}},"assets":{"type":"object","properties":{"binding":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"files":{"type":"object","propertyNames":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"additionalProperties":{"type":"object","properties":{"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"byteLength":{"type":"integer","minimum":0,"maximum":9007199254740991},"contentType":{"type":"string","minLength":1,"pattern":"^[\\u{20}-\\u{7E}]+$"}},"required":["sha256","byteLength","contentType"],"additionalProperties":false}},"config":{"type":"object","properties":{"html_handling":{"type":"string","enum":["auto-trailing-slash","force-trailing-slash","drop-trailing-slash","none"]},"not_found_handling":{"type":"string","enum":["none","404-page","single-page-application"]},"base_path":{"type":"string","format":"starts_with","pattern":"^\\/.*"},"run_worker_first":{"anyOf":[{"type":"boolean"},{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}]},"_headers":{"type":"string"},"_redirects":{"type":"string"}},"additionalProperties":false}},"required":["files","config"],"additionalProperties":false},"vars":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"additionalProperties":{"$ref":"#/components/schemas/__schema0"}},"requiredBindings":{"maxItems":4000,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"type":{"type":"string","enum":["kv_namespace","r2_bucket","d1","images","workflow","durable_object_namespace","service"]}},"required":["name","type"],"additionalProperties":false}},"imagesRuntime":{"type":"object","properties":{"v":{"type":"number","const":1},"bindingNames":{"minItems":1,"maxItems":4000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"aliases":{}},"required":["v","bindingNames"],"additionalProperties":false},"requiredSecrets":{"maxItems":4000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}},"hasFetch":{"type":"boolean"},"hasDefault":{"type":"boolean"},"durableObjects":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["image","instanceType","maxInstances"],"additionalProperties":false}},"required":["name","module","className"],"additionalProperties":false}}},"required":["v","framework","buildId","generatedAt","functions"],"additionalProperties":false}]},"requirements":{"type":"object","properties":{"services":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"worker":{"type":"string","minLength":1,"maxLength":256},"entrypoint":{"type":"string","pattern":"^[$A-Za-z_][$\\w]*$"}},"required":["name","worker"],"additionalProperties":false}},"resources":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"type":{"type":"string","enum":["d1","kv_namespace","r2_bucket","workflow","durable_object_namespace","images"]},"sourceId":{"type":"string","minLength":1,"maxLength":256},"sourceName":{"type":"string","minLength":1,"maxLength":256},"ownerWorker":{"type":"string","minLength":1,"maxLength":256},"className":{"type":"string","pattern":"^[$A-Za-z_][$\\w]*$"},"previousClassName":{"type":"string","pattern":"^[$A-Za-z_][$\\w]*$"},"previousOwnerWorker":{"type":"string","minLength":1,"maxLength":256},"workflow":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","pattern":"^[$A-Za-z_][$\\w]*$"}},"required":["module","className"],"additionalProperties":false},"durableObject":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":1024},"className":{"type":"string","pattern":"^[$A-Za-z_][$\\w]*$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"sqlite":{"type":"boolean"}},"required":["module","className"],"additionalProperties":false},"migrations":{"type":"object","properties":{"table":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"files":{"maxItems":4000,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":1024},"blob":{"type":"object","properties":{"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"byteLength":{"type":"integer","minimum":0,"maximum":1048576},"contentType":{"type":"string","minLength":1}},"required":["sha256","byteLength","contentType"],"additionalProperties":false}},"required":["name","blob"],"additionalProperties":false}}},"required":["table","files"],"additionalProperties":false}},"required":["name","type"],"additionalProperties":false}},"requiredSecrets":{"maxItems":1000,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_]\\w*$"}}},"required":["services","resources"],"additionalProperties":false}},"required":["key","name","artifact","requirements"],"additionalProperties":false}}},"required":["v","buildId","format","primary","context","workers"],"additionalProperties":false}},"required":["bundle"],"additionalProperties":false}]}}}}}},"/v1/projects/{projectId}/deployments/{deploymentId}":{"get":{"operationId":"getDeployment","summary":"One deployment, with the run that took it up","tags":["Deployments"],"security":[{"bearerToken":["deployments:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"deploymentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"deployment":{"type":"object","properties":{"serviceId":{"type":"string"},"releaseId":{"type":"string"},"id":{"type":"string"},"projectId":{"type":"string"},"status":{"type":"string","enum":["building","uploading","ready","queued","ingesting","active","failed","retired"]},"nextVersion":{"type":["string","null"]},"framework":{"anyOf":[{"type":"string","enum":["nextjs","sveltekit","astro","react-router","tanstack-start","nuxt","solidstart","hono","fetch"]},{"type":"null"}]},"frameworkVersion":{"type":["string","null"]},"buildId":{"type":["string","null"]},"runId":{"type":["string","null"]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"target":{"type":"string","enum":["production","preview"]},"trigger":{"type":"string","enum":["upload","git_push","git_manual"]},"sourceRef":{"type":["string","null"]},"commitSha":{"type":["string","null"]},"commitMessage":{"type":["string","null"]},"hasLog":{"type":"boolean"},"hasBundle":{"type":"boolean"},"buildInstance":{"anyOf":[{"type":"string","enum":["standard-2","standard-3","standard-4"]},{"type":"null"}]},"installCommand":{"type":["string","null"]},"buildCommand":{"type":["string","null"]},"buildStartedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildFinishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildOutcome":{"anyOf":[{"type":"string","enum":["succeeded","failed","timeout"]},{"type":"null"}]},"url":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"previewUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"branchUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"checks":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["waiting","passed","failed","timed_out","stopped"]},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"state":{"type":"string","enum":["passed","failed","pending","missing"]}},"required":["name","state"],"additionalProperties":false}},"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deadline":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["state","checks","since","deadline"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","projectId","status","nextVersion","buildId","runId","error","target","trigger","sourceRef","commitSha","commitMessage","hasLog","hasBundle","buildInstance","buildStartedAt","buildFinishedAt","buildOutcome","url","previewUrl","branchUrl","createdAt","updatedAt"],"additionalProperties":false},"run":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"trigger":{"type":"string","enum":["manual","policy_change","subscription_restored","publication_recovery","deploy","git_push","git_manual"]},"status":{"type":"string","enum":["queued","running","succeeded","failed","superseded","cancelled"]},"currentStep":{"type":["string","null"]},"startedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"stats":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"step":{"type":["string","null"]}},"required":["code","message","step"],"additionalProperties":false},{"type":"null"}]}},"required":["id","projectId","trigger","status","currentStep","startedAt","finishedAt","stats","error"],"additionalProperties":false},{"type":"null"}]}},"required":["ok","deployment","run"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/deployments/{deploymentId}/blobs/{sha256}":{"put":{"operationId":"uploadBlob","summary":"Upload one blob the bundle names","tags":["Deployments"],"security":[{"bearerToken":["deployments:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"deploymentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sha256","in":"path","required":true,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","required":false,"schema":{"type":"string","enum":["gzip","identity"]},"description":"Optional `gzip` compression for the streamed upload payload."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"sha256":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-f]+$"}},"required":["ok","sha256"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"The path is the blob's SHA-256, and the bytes are refused as `blob_mismatch` if they hash to anything else. Blobs are shared across deployments, so a redeploy uploads only what changed.","requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}}}},"/v1/projects/{projectId}/deployments/{deploymentId}/blobs":{"post":{"operationId":"uploadBlobs","summary":"Upload a batch of blobs the bundle names","tags":["Deployments"],"security":[{"bearerToken":["deployments:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"deploymentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","required":false,"schema":{"type":"string","enum":["gzip","identity"]},"description":"Optional `gzip` compression for the streamed upload payload."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"count":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["ok","count"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Binary batch frame (`AKBB` v1) carrying up to 128 blobs and at most 8 MiB of payload. Every entry is checked against the bundle and its SHA-256 before any blob is stored.","requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}}}},"/v1/projects/{projectId}/deployments/{deploymentId}/finalize":{"post":{"operationId":"finalizeDeployment","summary":"Turn the uploaded deployment into a run","tags":["Deployments"],"security":[{"bearerToken":["deployments:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"deploymentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"deployment":{"type":"object","properties":{"serviceId":{"type":"string"},"releaseId":{"type":"string"},"id":{"type":"string"},"projectId":{"type":"string"},"status":{"type":"string","enum":["building","uploading","ready","queued","ingesting","active","failed","retired"]},"nextVersion":{"type":["string","null"]},"framework":{"anyOf":[{"type":"string","enum":["nextjs","sveltekit","astro","react-router","tanstack-start","nuxt","solidstart","hono","fetch"]},{"type":"null"}]},"frameworkVersion":{"type":["string","null"]},"buildId":{"type":["string","null"]},"runId":{"type":["string","null"]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"target":{"type":"string","enum":["production","preview"]},"trigger":{"type":"string","enum":["upload","git_push","git_manual"]},"sourceRef":{"type":["string","null"]},"commitSha":{"type":["string","null"]},"commitMessage":{"type":["string","null"]},"hasLog":{"type":"boolean"},"hasBundle":{"type":"boolean"},"buildInstance":{"anyOf":[{"type":"string","enum":["standard-2","standard-3","standard-4"]},{"type":"null"}]},"installCommand":{"type":["string","null"]},"buildCommand":{"type":["string","null"]},"buildStartedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildFinishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildOutcome":{"anyOf":[{"type":"string","enum":["succeeded","failed","timeout"]},{"type":"null"}]},"url":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"previewUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"branchUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"checks":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["waiting","passed","failed","timed_out","stopped"]},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"state":{"type":"string","enum":["passed","failed","pending","missing"]}},"required":["name","state"],"additionalProperties":false}},"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deadline":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["state","checks","since","deadline"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","projectId","status","nextVersion","buildId","runId","error","target","trigger","sourceRef","commitSha","commitMessage","hasLog","hasBundle","buildInstance","buildStartedAt","buildFinishedAt","buildOutcome","url","previewUrl","branchUrl","createdAt","updatedAt"],"additionalProperties":false},"run":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"trigger":{"type":"string","enum":["manual","policy_change","subscription_restored","publication_recovery","deploy","git_push","git_manual"]},"status":{"type":"string","enum":["queued","running","succeeded","failed","superseded","cancelled"]},"currentStep":{"type":["string","null"]},"startedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"stats":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"step":{"type":["string","null"]}},"required":["code","message","step"],"additionalProperties":false},{"type":"null"}]}},"required":["id","projectId","trigger","status","currentStep","startedAt","finishedAt","stats","error"],"additionalProperties":false}},"required":["ok","deployment","run"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Refused with `blobs_missing` while a blob the bundle names has not arrived."}},"/v1/projects/{projectId}/deployments/{deploymentId}/log":{"get":{"operationId":"getDeploymentLog","summary":"A built deployment's log","tags":["Deployments"],"security":[{"bearerToken":["deployments:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"deploymentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"text/plain":{"schema":{"type":"string"}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Plain text: colour and cursor codes are taken out, and every value the environment marks secret reads `***`. 404 while there is none; an uploaded deployment never has one."}},"/v1/projects/{projectId}/env":{"get":{"operationId":"getEnv","summary":"A hosted app's runtime environment","tags":["Environment"],"security":[{"bearerToken":["env:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"env":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":["string","null"]},"secret":{"type":"boolean"},"targets":{"default":["production"],"minItems":1,"type":"array","items":{"type":"string","enum":["production","preview"]}}},"required":["name","value","secret","targets"],"additionalProperties":false}}},"required":["ok","env"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"A secret's value reads back as `null`; it is never returned once written. Each entry names the targets that read it: the targets sharing one value are one entry, and a name with a value per target is one entry per target."},"put":{"operationId":"putEnv","summary":"Replace the environment the next deployment runs with","tags":["Environment"],"security":[{"bearerToken":["env:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"env":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":["string","null"]},"secret":{"type":"boolean"},"targets":{"default":["production"],"minItems":1,"type":"array","items":{"type":"string","enum":["production","preview"]}}},"required":["name","value","secret","targets"],"additionalProperties":false}}},"required":["ok","env"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"The whole environment, not a patch. `value: null` on a secret keeps what is stored for each target it names, so the environment can be put back without knowing it. `targets` says which deployments read an entry — `[\"production\"]` when it is left out — and a name may appear once per target, which is how production and preview hold different values for it. Both targets at once: what the request does not name is deleted, so a caller that sends only production entries clears the preview environment. Send back what `GET` answered, with the `targets` it carries, to change one target and leave the other as it was.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"env":{"maxItems":228,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z_]\\w*$"},"value":{"type":["string","null"]},"secret":{"type":"boolean"},"targets":{"minItems":1,"type":"array","items":{"type":"string","enum":["production","preview"]}}},"required":["name","value","secret"]}}},"required":["env"]}}}}}},"/v1/projects/{projectId}/source":{"get":{"operationId":"getSource","summary":"Where a hosted app is built from","tags":["Source"],"security":[{"bearerToken":["source:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"source":{"type":"object","properties":{"installationId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repositoryId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repositoryFullName":{"type":"string"},"productionBranch":{"type":"string"},"rootDirectory":{"type":"string"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"type":["string","null"]},"buildCommand":{"type":["string","null"]},"productionChecks":{"type":"array","items":{"type":"string"}}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy"],"additionalProperties":false}},"required":["ok","source"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"`source_not_configured` when it is built from nowhere yet."},"put":{"operationId":"putSource","summary":"Set the repository a hosted app is built from","tags":["Source"],"security":[{"bearerToken":["source:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"source":{"type":"object","properties":{"installationId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repositoryId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repositoryFullName":{"type":"string"},"productionBranch":{"type":"string"},"rootDirectory":{"type":"string"},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"type":"string","enum":["automatic","pull_request"]},"buildInstance":{"type":"string","enum":["standard-2","standard-3","standard-4"]},"installCommand":{"type":["string","null"]},"buildCommand":{"type":["string","null"]},"productionChecks":{"type":"array","items":{"type":"string"}}},"required":["installationId","repositoryId","repositoryFullName","productionBranch","rootDirectory","autoDeploy"],"additionalProperties":false}},"required":["ok","source"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"A field left out takes its default, except `installCommand`, `buildCommand`, `productionChecks`, `previewDeploy` and `previewDeployMode`, which keep what is stored; `null` sets a command back to the detected one, and `[]` names no checks. Previews default to enabled and automatic for a new source. Set `previewDeployMode` to `pull_request` to build only pull requests selected through the project comment checkbox; both `previewDeploy` and `autoDeploy` must be enabled.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repositoryFullName":{"type":"string","minLength":1,"pattern":"^[\\w.-]+\\/[\\w.-]+$"},"productionBranch":{"type":"string","minLength":1,"maxLength":255},"rootDirectory":{"type":"string","maxLength":200,"pattern":"^[\\w.-]+(?:\\/[\\w.-]+)*$"},"serviceConfigurationFields":{"maxItems":3,"type":"array","items":{"type":"string","enum":["rootDirectory","installCommand","buildCommand"]}},"autoDeploy":{"type":"boolean"},"previewDeploy":{"type":"boolean"},"previewDeployMode":{"description":"automatic: preview every non-production branch; pull_request: preview only branches with an open pull request whose project comment is checked. Requires autoDeploy and previewDeploy. Left out: unchanged; new source: automatic.","type":"string","enum":["automatic","pull_request"]},"onlyIfUnset":{"type":"boolean"},"installCommand":{"description":"Run by bash in the root directory in place of the detected install. Left out: unchanged; null: detected.","anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"buildCommand":{"description":"Run by bash in the root directory, with node_modules/.bin on the PATH, in place of `next build`; it has to run `next build` there. Left out: unchanged; null: detected.","anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"productionChecks":{"description":"GitHub Actions jobs, by the name of their check run, that every production deployment waits for before it goes live. Only GitHub Actions' check runs are read: a commit status, or another app's check run, never passes one. Left out: unchanged; []: none.","maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["installationId","repositoryId","repositoryFullName"]}}}}},"delete":{"operationId":"deleteSource","summary":"Stop building the app from a repository","tags":["Source"],"security":[{"bearerToken":["source:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Deployments already built from it keep their source; nothing is taken off the edge."}},"/v1/projects/{projectId}/source/deploy":{"post":{"operationId":"deployFromSource","summary":"Build and deploy a ref of the repository","tags":["Source"],"security":[{"bearerToken":["deployments:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"deployment":{"type":"object","properties":{"serviceId":{"type":"string"},"releaseId":{"type":"string"},"id":{"type":"string"},"projectId":{"type":"string"},"status":{"type":"string","enum":["building","uploading","ready","queued","ingesting","active","failed","retired"]},"nextVersion":{"type":["string","null"]},"framework":{"anyOf":[{"type":"string","enum":["nextjs","sveltekit","astro","react-router","tanstack-start","nuxt","solidstart","hono","fetch"]},{"type":"null"}]},"frameworkVersion":{"type":["string","null"]},"buildId":{"type":["string","null"]},"runId":{"type":["string","null"]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"target":{"type":"string","enum":["production","preview"]},"trigger":{"type":"string","enum":["upload","git_push","git_manual"]},"sourceRef":{"type":["string","null"]},"commitSha":{"type":["string","null"]},"commitMessage":{"type":["string","null"]},"hasLog":{"type":"boolean"},"hasBundle":{"type":"boolean"},"buildInstance":{"anyOf":[{"type":"string","enum":["standard-2","standard-3","standard-4"]},{"type":"null"}]},"installCommand":{"type":["string","null"]},"buildCommand":{"type":["string","null"]},"buildStartedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildFinishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"buildOutcome":{"anyOf":[{"type":"string","enum":["succeeded","failed","timeout"]},{"type":"null"}]},"url":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"previewUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"branchUrl":{"default":null,"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"checks":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["waiting","passed","failed","timed_out","stopped"]},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"state":{"type":"string","enum":["passed","failed","pending","missing"]}},"required":["name","state"],"additionalProperties":false}},"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deadline":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["state","checks","since","deadline"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","projectId","status","nextVersion","buildId","runId","error","target","trigger","sourceRef","commitSha","commitMessage","hasLog","hasBundle","buildInstance","buildStartedAt","buildFinishedAt","buildOutcome","url","previewUrl","branchUrl","createdAt","updatedAt"],"additionalProperties":false},"run":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"trigger":{"type":"string","enum":["manual","policy_change","subscription_restored","publication_recovery","deploy","git_push","git_manual"]},"status":{"type":"string","enum":["queued","running","succeeded","failed","superseded","cancelled"]},"currentStep":{"type":["string","null"]},"startedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"stats":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"step":{"type":["string","null"]}},"required":["code","message","step"],"additionalProperties":false},{"type":"null"}]}},"required":["id","projectId","trigger","status","currentStep","startedAt","finishedAt","stats","error"],"additionalProperties":false},{"type":"null"}]}},"required":["ok","deployment","run"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"The production branch when no `ref` is named.","requestBody":{"required":false,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":255}}}}}}}},"/v1/projects/{projectId}/custom-hostnames":{"get":{"operationId":"listCustomHostnames","summary":"The hostnames this project is served under, and where each stands","tags":["Custom hostnames"],"security":[{"bearerToken":["hostnames:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"cnameTarget":{"type":["string","null"]},"hostnames":{"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","minLength":1},"status":{"type":"string","enum":["pending","active","moved","blocked","deleted","removing","unknown"]},"sslStatus":{"type":["string","null"]},"summary":{"type":"string","enum":["active","pending_dns","pending_ssl","moved","blocked","deleted","removing","error"]},"errors":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"checkedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["hostname","status","sslStatus","summary","errors","createdAt","checkedAt"],"additionalProperties":false}},"verification":{"type":"object","properties":{"name":{"type":"string","minLength":1},"value":{"type":"string","minLength":1}},"required":["name","value"],"additionalProperties":false}},"required":["ok","cnameTarget","hostnames"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Registering one is done on the dashboard: the allowance comes from the organization’s plan, which this API cannot see."}},"/v1/projects/{projectId}/custom-hostnames/{hostname}":{"delete":{"operationId":"removeCustomHostname","summary":"Stop serving a hostname","tags":["Custom hostnames"],"security":[{"bearerToken":["hostnames:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"hostname","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"cnameTarget":{"type":["string","null"]},"hostnames":{"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","minLength":1},"status":{"type":"string","enum":["pending","active","moved","blocked","deleted","removing","unknown"]},"sslStatus":{"type":["string","null"]},"summary":{"type":"string","enum":["active","pending_dns","pending_ssl","moved","blocked","deleted","removing","error"]},"errors":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"checkedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["hostname","status","sslStatus","summary","errors","createdAt","checkedAt"],"additionalProperties":false}},"verification":{"type":"object","properties":{"name":{"type":"string","minLength":1},"value":{"type":"string","minLength":1}},"required":["name","value"],"additionalProperties":false}},"required":["ok","cnameTarget","hostnames"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/custom-hostnames/{hostname}/recheck":{"post":{"operationId":"recheckCustomHostname","summary":"Ask Cloudflare where the hostname stands now","tags":["Custom hostnames"],"security":[{"bearerToken":["hostnames:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"hostname","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"cnameTarget":{"type":["string","null"]},"hostnames":{"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","minLength":1},"status":{"type":"string","enum":["pending","active","moved","blocked","deleted","removing","unknown"]},"sslStatus":{"type":["string","null"]},"summary":{"type":"string","enum":["active","pending_dns","pending_ssl","moved","blocked","deleted","removing","error"]},"errors":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"checkedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["hostname","status","sslStatus","summary","errors","createdAt","checkedAt"],"additionalProperties":false}},"verification":{"type":"object","properties":{"name":{"type":"string","minLength":1},"value":{"type":"string","minLength":1}},"required":["name","value"],"additionalProperties":false}},"required":["ok","cnameTarget","hostnames"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Rather than waiting for the watchdog to come round to it."}},"/v1/projects/{projectId}/images-capability":{"get":{"operationId":"getImagesCapability","summary":"Images availability and managed binding names for a local build","tags":["Storage bindings"],"security":[{"bearerToken":["bindings:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"capability":{"type":"object","properties":{"available":{"type":"boolean"},"automatic":{"type":"boolean"},"bindingNames":{"type":"array","items":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"}}},"required":["available","automatic","bindingNames"],"additionalProperties":false}},"required":["ok","capability"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Returns names and the default-binding policy, never provider credentials. A deployment validates its own sealed grant again when uploaded."}},"/v1/projects/{projectId}/binding-environments":{"get":{"operationId":"listBindingEnvironments","summary":"The project's production and branch binding environments","tags":["Storage bindings"],"security":[{"bearerToken":["bindings:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"environments":{"type":"array","items":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string","const":"production"},{"type":"string","pattern":"^preview:[\\s\\S]{0,}$"}]},"sourceRef":{"type":["string","null"]},"status":{"type":"string","enum":["active","closed"]}},"required":["environment","sourceRef","status"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["ok","environments","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Production is included on every page, with 20 previews by default and 50 at most (`limit`). Pass `nextCursor` back as `cursor`; `null` ends the listing. Preview scopes identify branches; closed scopes stay listed while they retain storage. Use the environment value to list or remove bindings; a branch name is not an environment value."}},"/v1/projects/{projectId}/environments/{environment}/bindings":{"get":{"operationId":"listBindings","summary":"An environment's bindings: KV, R2, D1, Durable Objects, Workers AI and Images","tags":["Storage bindings"],"security":[{"bearerToken":["bindings:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"environment","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"environment":{"anyOf":[{"type":"string","const":"production"},{"type":"string","pattern":"^preview:[\\s\\S]{0,}$"}]},"bindings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"ownerServiceId":{"type":["string","null"]},"name":{"type":"string"},"type":{"type":"string","enum":["kv_namespace","r2_bucket","d1","durable_object_namespace","ai","workflow","images"]},"environment":{"anyOf":[{"type":"string","const":"production"},{"type":"string","pattern":"^preview:[\\s\\S]{0,}$"}]},"locationHint":{"anyOf":[{"type":"string","enum":["wnam","enam","weur","eeur","apac","oc"]},{"type":"null"}]},"status":{"type":"string","enum":["pending_deployment","provisioning","ready","failed","removing","removed"]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"removedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"durableObject":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100}},"required":["image","instanceType","maxInstances"],"additionalProperties":false}},"required":["module","className"],"additionalProperties":false},"cloudflareWorkflow":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["module","className"],"additionalProperties":false},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","type","environment","locationHint","status","error","createdAt","removedAt"],"additionalProperties":false}},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ok","environment","bindings","limit"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Use `production` or a preview scope returned by `listBindingEnvironments`. A removed binding is listed as `removing` until its retained references expire; storage resources are then destroyed."},"post":{"operationId":"createBinding","summary":"Add a binding for the next deployment of the environment","tags":["Storage bindings"],"security":[{"bearerToken":["bindings:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"environment","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"binding":{"type":"object","properties":{"id":{"type":"string"},"ownerServiceId":{"type":["string","null"]},"name":{"type":"string"},"type":{"type":"string","enum":["kv_namespace","r2_bucket","d1","durable_object_namespace","ai","workflow","images"]},"environment":{"anyOf":[{"type":"string","const":"production"},{"type":"string","pattern":"^preview:[\\s\\S]{0,}$"}]},"locationHint":{"anyOf":[{"type":"string","enum":["wnam","enam","weur","eeur","apac","oc"]},{"type":"null"}]},"status":{"type":"string","enum":["pending_deployment","provisioning","ready","failed","removing","removed"]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"removedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"durableObject":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100}},"required":["image","instanceType","maxInstances"],"additionalProperties":false}},"required":["module","className"],"additionalProperties":false},"cloudflareWorkflow":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["module","className"],"additionalProperties":false},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","type","environment","locationHint","status","error","createdAt","removedAt"],"additionalProperties":false}},"required":["ok","binding"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Manual creation is available in `production`; preview bindings are allocated automatically. For `images`, pass only a name and type. This native Worker capability exposes runtime transformations without account-wide image storage access; it becomes ready on successful publication. For `images`, pass only the binding name and type. The verified host must enable runtime transforms; no hosted image storage or resource ID is exposed. For `ai`, pass only the binding name and type. This opt-in capability remains `pending_deployment` until a successful publication and exposes only Workers AI `run(model, inputs)`. There is no resource provisioning or location hint. Usage is metered in Neurons and follows the organization spend limit. For `durable_object_namespace`, register `durableObject.module` (relative to the configured application root directory) and `durableObject.className` (a named class export). Its SQLite namespace stays `pending_deployment` until a successful deployment publishes the class. Each branch receives an isolated namespace. For KV, D1 and R2, a resource of its own is made for it, which the answer never names; `status` is `provisioning` while it is still being made. The same request again answers with the same binding. A name taken by another binding, or by one of the project’s variables, is `binding_conflict`; an environment or organization holding as many as it may is `binding_limit`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","maxLength":64,"pattern":"^[A-Za-z_]\\w*$"},"type":{"type":"string","enum":["kv_namespace","r2_bucket","d1","durable_object_namespace","ai","workflow","images"]},"locationHint":{"type":"string","enum":["wnam","enam","weur","eeur","apac","oc"]},"durableObject":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100}},"required":["image","instanceType","maxInstances"],"additionalProperties":false}},"required":["module","className"],"additionalProperties":false},"cloudflareWorkflow":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["module","className"],"additionalProperties":false}},"required":["name","type"]}}}}}},"/v1/projects/{projectId}/environments/{environment}/bindings/{name}/d1/query":{"post":{"operationId":"executeD1Query","summary":"Execute SQL against a managed D1 database","tags":["Storage bindings"],"security":[{"bearerToken":["bindings:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"environment","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"results":{"type":"array","items":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string"}},"rows":{"type":"array","items":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"null"},{"type":"array","items":{"type":"integer","minimum":0,"maximum":255}}]}}},"meta":{"type":"object","properties":{"changedDb":{"type":"boolean"},"changes":{"type":"number","minimum":0},"duration":{"type":"number","minimum":0},"rowsRead":{"type":"number","minimum":0},"rowsWritten":{"type":"number","minimum":0}},"additionalProperties":false}},"required":["columns","rows","meta"],"additionalProperties":false}}},"required":["ok","results"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Pass the binding generation returned by listBindings as createdAt, SQL, and optional positional string params. Supports reads, writes and schema changes in production or an issued preview environment. Every call requires bindings:write, including SELECT. Multiple statements return one result per statement. Query results are private and uncached. A timeout or d1_query_unknown does not prove that writes were rolled back; inspect the database before repeating the operation. Do not automatically retry SQL execution.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"sql":{"type":"string","minLength":1,"maxLength":100000},"params":{"maxItems":100,"type":"array","items":{"type":"string"}}},"required":["createdAt","sql"],"additionalProperties":false}}}}}},"/v1/projects/{projectId}/environments/{environment}/bindings/{name}":{"patch":{"operationId":"updateBinding","summary":"Edit a production Durable Object or Cloudflare Workflow class","tags":["Storage bindings"],"security":[{"bearerToken":["bindings:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"environment","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"binding":{"type":"object","properties":{"id":{"type":"string"},"ownerServiceId":{"type":["string","null"]},"name":{"type":"string"},"type":{"type":"string","enum":["kv_namespace","r2_bucket","d1","durable_object_namespace","ai","workflow","images"]},"environment":{"anyOf":[{"type":"string","const":"production"},{"type":"string","pattern":"^preview:[\\s\\S]{0,}$"}]},"locationHint":{"anyOf":[{"type":"string","enum":["wnam","enam","weur","eeur","apac","oc"]},{"type":"null"}]},"status":{"type":"string","enum":["pending_deployment","provisioning","ready","failed","removing","removed"]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"removedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"durableObject":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100}},"required":["image","instanceType","maxInstances"],"additionalProperties":false}},"required":["module","className"],"additionalProperties":false},"cloudflareWorkflow":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["module","className"],"additionalProperties":false},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","type","environment","locationHint","status","error","createdAt","removedAt"],"additionalProperties":false}},"required":["ok","binding"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Pass the listed `createdAt` and `definitionRevision` with `durableObject.module` and `durableObject.className`, or the equivalent `cloudflareWorkflow` definition for a Workflow. The next deployment uses this definition; namespace identity and stored data are preserved. Existing deployments continue to share the latest published class within the environment. A stale revision is `binding_conflict`; the same edit again is accepted.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"durableObject":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100}},"required":["image","instanceType","maxInstances"],"additionalProperties":false}},"required":["module","className"],"additionalProperties":false},"cloudflareWorkflow":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["module","className"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["createdAt","definitionRevision"],"additionalProperties":false}}}}},"delete":{"operationId":"removeBinding","summary":"Remove a binding from the next deployment of the environment","tags":["Storage bindings"],"security":[{"bearerToken":["bindings:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"environment","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"createdAt","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"binding":{"type":"object","properties":{"id":{"type":"string"},"ownerServiceId":{"type":["string","null"]},"name":{"type":"string"},"type":{"type":"string","enum":["kv_namespace","r2_bucket","d1","durable_object_namespace","ai","workflow","images"]},"environment":{"anyOf":[{"type":"string","const":"production"},{"type":"string","pattern":"^preview:[\\s\\S]{0,}$"}]},"locationHint":{"anyOf":[{"type":"string","enum":["wnam","enam","weur","eeur","apac","oc"]},{"type":"null"}]},"status":{"type":"string","enum":["pending_deployment","provisioning","ready","failed","removing","removed"]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"removedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"durableObject":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"},"container":{"type":"object","properties":{"image":{"anyOf":[{"type":"object","properties":{"dockerfile":{"type":"string","minLength":1,"maxLength":1024},"buildContext":{"type":"string","minLength":1,"maxLength":1024}},"required":["dockerfile"],"additionalProperties":false},{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[A-Za-z0-9][\\w.:/@-]*$"}},"required":["reference"],"additionalProperties":false}]},"instanceType":{"type":"string","enum":["lite","basic","standard-1","standard-2","standard-3","standard-4"]},"maxInstances":{"type":"integer","minimum":1,"maximum":100}},"required":["image","instanceType","maxInstances"],"additionalProperties":false}},"required":["module","className"],"additionalProperties":false},"cloudflareWorkflow":{"type":"object","properties":{"module":{"type":"string","minLength":1,"maxLength":512},"className":{"type":"string","maxLength":128,"pattern":"^[A-Za-z_$][\\w$]*$"}},"required":["module","className"],"additionalProperties":false},"definitionRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","type","environment","locationHint","status","error","createdAt","removedAt"],"additionalProperties":false}},"required":["ok","binding"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Use `production` or a preview scope returned by `listBindingEnvironments`, including closed scopes. An Images binding retains its sealed authorization for retained deployments and stores no images. An AI binding retains authorization and attribution for retained deployment and Durable Object references; it has no stored data to destroy. Storage data is kept a day, and for as long as a deployment the platform keeps is bound to it; then the resource is destroyed. Removing it again answers the same way. Name the binding by the `createdAt` the listing shows to make a retry safe: without it, a name taken again within a day of a binding by it being removed is refused as `binding_conflict`."}},"/v1/projects/{projectId}/default-bindings":{"get":{"operationId":"getDefaultBindings","summary":"Whether new deployments get the default storage bindings","tags":["Storage bindings"],"security":[{"bearerToken":["bindings:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"enabled":{"type":"boolean"}},"required":["ok","enabled"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"On, a new deployment of any environment is given `UPWIND_KV`, `UPWIND_D1` and `UPWIND_R2` for each kind it holds no binding of. On for every project until it is turned off."},"put":{"operationId":"putDefaultBindings","summary":"Turn the default storage bindings on or off","tags":["Storage bindings"],"security":[{"bearerToken":["bindings:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"enabled":{"type":"boolean"}},"required":["ok","enabled"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"A change reaches the project's next deployment. Off, a deployment holds only the bindings the project adds itself, and none of the organization's allowance for a kind is spent on a resource it did not ask for. Bindings already made are kept: remove one with `removeBinding`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false}}}}}},"/v1/projects/{projectId}/csp-nonce":{"post":{"operationId":"setCspNonce","summary":"Hand CSP nonces to the edge, or take them back","tags":["Delivery"],"security":[{"bearerToken":["projects:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"enabled":{"type":"boolean"},"mode":{"default":"enforce","type":"string","enum":["enforce","report-only"]},"strictDynamic":{"default":false,"type":"boolean"}},"required":["ok","enabled","mode","strictDynamic"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Choose enforce (the default) or report-only. Report Only keeps the existing enforcing CSP and sends a nonce-bearing copy as a separate reporting policy. The selected mode is kept while nonces are disabled.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enabled":{"type":"boolean"},"mode":{"default":"enforce","type":"string","enum":["enforce","report-only"]},"strictDynamic":{"type":"boolean"}},"required":["enabled"]}}}}}},"/v1/projects/{projectId}/cache-api":{"post":{"operationId":"setCacheApi","summary":"Keep the project's pages in each data center's Cache API beside KV, or stop","tags":["Delivery"],"security":[{"bearerToken":["projects:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"enabled":{"type":"boolean"}},"required":["ok","enabled"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"On by default: a page the isolate serving it does not hold is answered from its data center’s copy when that comes before KV, which is asked beside it, and a copy KV has moved on from is replaced behind the response. Off, such a page waits on KV for its first byte, and a change reaches visitors no later than KV carries it. Files that never change — the build’s shells, `/_next/static`, images — are kept in the Cache API either way. The current setting is `cacheApi` on the project. Refused as `project_suspended` while the project is suspended.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}}}},"/v1/projects/{projectId}/csp-reporting":{"post":{"operationId":"setCspReporting","summary":"Add a reporting endpoint to the application's own Content-Security-Policy, or stop","tags":["Delivery"],"security":[{"bearerToken":["projects:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"enabled":{"type":"boolean"}},"required":["ok","enabled"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"On by default: where an HTML response carries a `Content-Security-Policy` or `Content-Security-Policy-Report-Only` with no reporting directive of its own, the edge adds `report-uri` and `report-to` naming the platform’s collector, and violations reach the project’s CSP reports. Off, the edge leaves every policy as the application wrote it. Only this call moves it — the dashboard has no switch — and it reaches the edge with the project’s pointer, with no new deployment; the project’s previews are taken down where it moves, as they are for the Cache API switch. The current setting is `cspReporting` on the project. Refused as `project_suspended` while the project is suspended.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}}}},"/v1/projects/{projectId}/access":{"get":{"operationId":"getAccess","summary":"The project's access protection","tags":["Access protection"],"security":[{"bearerToken":["access:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"access":{"type":"object","properties":{"modes":{"type":"array","items":{"type":"string","enum":["password","link","oauth","team"]}},"epoch":{"type":"integer","minimum":0,"maximum":9007199254740991},"oauth":{"type":"object","properties":{"providers":{"type":"array","items":{"type":"string","enum":["google","github"]}},"emails":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320}},"domains":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320}},"accounts":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320,"pattern":"^(?:google|github):.+$"}}},"required":["providers","emails","domains","accounts"],"additionalProperties":false},"passwordSet":{"type":"boolean"},"bypassSet":{"type":"boolean"},"availableProviders":{"type":"array","items":{"type":"string","enum":["google","github"]}}},"required":["modes","epoch","oauth","passwordSet","bypassSet","availableProviders"],"additionalProperties":false}},"required":["ok","access"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"A password and an automation key read back as set or not set; neither is ever returned again after the answer that made it."},"put":{"operationId":"putAccess","summary":"Set which ways in are open, and who an OAuth sign-in may be","tags":["Access protection"],"security":[{"bearerToken":["access:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"access":{"type":"object","properties":{"modes":{"type":"array","items":{"type":"string","enum":["password","link","oauth","team"]}},"epoch":{"type":"integer","minimum":0,"maximum":9007199254740991},"oauth":{"type":"object","properties":{"providers":{"type":"array","items":{"type":"string","enum":["google","github"]}},"emails":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320}},"domains":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320}},"accounts":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320,"pattern":"^(?:google|github):.+$"}}},"required":["providers","emails","domains","accounts"],"additionalProperties":false},"passwordSet":{"type":"boolean"},"bypassSet":{"type":"boolean"},"availableProviders":{"type":"array","items":{"type":"string","enum":["google","github"]}}},"required":["modes","epoch","oauth","passwordSet","bypassSet","availableProviders"],"additionalProperties":false}},"required":["ok","access"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"An empty `modes` is protection off. A change that takes something away — the password, a mode, an address — ends every session that is open; adding one does not.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"modes":{"type":"array","items":{"type":"string","enum":["password","link","oauth","team"]}},"oauth":{"type":"object","properties":{"providers":{"type":"array","items":{"type":"string","enum":["google","github"]}},"emails":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320}},"domains":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320}},"accounts":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320,"pattern":"^(?:google|github):.+$"}}},"required":["providers","emails","domains","accounts"]},"password":{"default":{"action":"keep"},"oneOf":[{"type":"object","properties":{"action":{"type":"string","const":"keep"}},"required":["action"]},{"type":"object","properties":{"action":{"type":"string","const":"clear"}},"required":["action"]},{"type":"object","properties":{"action":{"type":"string","const":"set"},"value":{"type":"string","minLength":8,"maxLength":128}},"required":["action","value"]}]}},"required":["modes","oauth"]}}}}}},"/v1/projects/{projectId}/access/sessions/revoke":{"post":{"operationId":"revokeAccessSessions","summary":"End every session that is open, leaving the settings as they are","tags":["Access protection"],"security":[{"bearerToken":["access:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"access":{"type":"object","properties":{"modes":{"type":"array","items":{"type":"string","enum":["password","link","oauth","team"]}},"epoch":{"type":"integer","minimum":0,"maximum":9007199254740991},"oauth":{"type":"object","properties":{"providers":{"type":"array","items":{"type":"string","enum":["google","github"]}},"emails":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320}},"domains":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320}},"accounts":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320,"pattern":"^(?:google|github):.+$"}}},"required":["providers","emails","domains","accounts"],"additionalProperties":false},"passwordSet":{"type":"boolean"},"bypassSet":{"type":"boolean"},"availableProviders":{"type":"array","items":{"type":"string","enum":["google","github"]}}},"required":["modes","epoch","oauth","passwordSet","bypassSet","availableProviders"],"additionalProperties":false}},"required":["ok","access"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/access/credentials":{"get":{"operationId":"listAccessCredentials","summary":"The share links and one-time codes the project holds","tags":["Access protection"],"security":[{"bearerToken":["access:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"credentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"kind":{"type":"string","enum":["link","code"]},"label":{"type":"string"},"singleUse":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"usedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","kind","label","singleUse","createdAt","expiresAt","usedAt","revokedAt"],"additionalProperties":false}}},"required":["ok","credentials"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"createAccessCredential","summary":"Issue a share link or a one-time code","tags":["Access protection"],"security":[{"bearerToken":["access:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"credential":{"type":"object","properties":{"id":{"type":"string","minLength":1},"kind":{"type":"string","enum":["link","code"]},"label":{"type":"string"},"singleUse":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"usedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","kind","label","singleUse","createdAt","expiresAt","usedAt","revokedAt"],"additionalProperties":false},"secret":{"type":"string"}},"required":["ok","credential","secret"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"The secret is in this answer and nowhere else: only its digest is stored. A `singleUse` one is spent by the first visitor who uses it.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["link","code"]},"label":{"default":"","type":"string","maxLength":100},"singleUse":{"default":false,"type":"boolean"},"expiresAt":{"type":"integer","exclusiveMinimum":0,"maximum":253402300799999}},"required":["kind"]}}}}}},"/v1/projects/{projectId}/access/credentials/{credentialId}":{"delete":{"operationId":"revokeAccessCredential","summary":"Revoke a share link or a one-time code","tags":["Access protection"],"security":[{"bearerToken":["access:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"credentialId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/access/bypass":{"post":{"operationId":"rotateAccessBypass","summary":"Issue the key that gets the project's own automation past the gate","tags":["Access protection"],"security":[{"bearerToken":["access:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"key":{"type":"string"}},"required":["ok","key"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Replaces whatever the project held. Presented in `x-arkor-access-bypass`; returned once."},"delete":{"operationId":"clearAccessBypass","summary":"Take the automation key back","tags":["Access protection"],"security":[{"bearerToken":["access:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"access":{"type":"object","properties":{"modes":{"type":"array","items":{"type":"string","enum":["password","link","oauth","team"]}},"epoch":{"type":"integer","minimum":0,"maximum":9007199254740991},"oauth":{"type":"object","properties":{"providers":{"type":"array","items":{"type":"string","enum":["google","github"]}},"emails":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320}},"domains":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320}},"accounts":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":320,"pattern":"^(?:google|github):.+$"}}},"required":["providers","emails","domains","accounts"],"additionalProperties":false},"passwordSet":{"type":"boolean"},"bypassSet":{"type":"boolean"},"availableProviders":{"type":"array","items":{"type":"string","enum":["google","github"]}}},"required":["modes","epoch","oauth","passwordSet","bypassSet","availableProviders"],"additionalProperties":false}},"required":["ok","access"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/posthog-capture-paths":{"post":{"operationId":"setPosthogCapturePaths","summary":"Configure exact PostHog proxy capture paths for new deployments","tags":["Projects"],"security":[{"bearerToken":["projects:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"capturePaths":{"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":1024,"pattern":"^\\/[^?#\\s\\\\*]*$"}}},"required":["ok","capturePaths"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"The existing proxy and its middleware keep forwarding requests. These exact POST paths add collection for proxies the build cannot detect automatically. Saved paths apply only to new deployments; restoring an older deployment keeps its original paths.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"capturePaths":{"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":1024,"pattern":"^\\/[^?#\\s\\\\*]*$"}}},"required":["capturePaths"]}}}}}},"/v1/projects/{projectId}/oidc":{"get":{"operationId":"getProjectOidc","summary":"The project's OIDC federation, and what its tokens carry","tags":["OIDC federation"],"security":[{"bearerToken":["oidc:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"oidc":{"type":"object","properties":{"available":{"type":"boolean"},"enabled":{"type":"boolean"},"issuerMode":{"type":"string","enum":["team","global"]},"teamId":{"type":["string","null"]},"projectId":{"type":"string"},"projectName":{"type":"string"},"issuer":{"type":["string","null"]},"jwksUri":{"type":"string"},"audience":{"type":["string","null"]},"subjects":{"anyOf":[{"type":"object","properties":{"production":{"type":"string"},"preview":{"type":"string"},"development":{"type":"string"}},"required":["production","preview","development"],"additionalProperties":false},{"type":"null"}]}},"required":["available","enabled","issuerMode","teamId","projectId","projectName","issuer","jwksUri","audience","subjects"],"additionalProperties":false},"refreshOwed":{"type":"boolean","const":true}},"required":["ok","oidc"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"The switch and the issuer mode, and the strings a cloud trust policy is written against: the issuer, the key set, the default audience and the subject for each environment. `available` is false, and the strings null, for a project with no team to name."},"put":{"operationId":"putProjectOidc","summary":"Turn OIDC federation on or off, and choose its issuer","tags":["OIDC federation"],"security":[{"bearerToken":["oidc:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"oidc":{"type":"object","properties":{"available":{"type":"boolean"},"enabled":{"type":"boolean"},"issuerMode":{"type":"string","enum":["team","global"]},"teamId":{"type":["string","null"]},"projectId":{"type":"string"},"projectName":{"type":"string"},"issuer":{"type":["string","null"]},"jwksUri":{"type":"string"},"audience":{"type":["string","null"]},"subjects":{"anyOf":[{"type":"object","properties":{"production":{"type":"string"},"preview":{"type":"string"},"development":{"type":"string"}},"required":["production","preview","development"],"additionalProperties":false},{"type":"null"}]}},"required":["available","enabled","issuerMode","teamId","projectId","projectName","issuer","jwksUri","audience","subjects"],"additionalProperties":false},"refreshOwed":{"type":"boolean","const":true}},"required":["ok","oidc"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Turning federation off stops every deployment of the project from being issued tokens once Cloudflare's KV has carried the change, which Cloudflare says may take a minute or more; a deployment built with federation off never gains it. A change of issuer mode reaches every deployment's new tokens as soon, and refuses none. Tokens already issued stay valid until they expire; to stop trusting them, remove the trust at the cloud's side. `refreshOwed` says the change is saved and in force, and the project's running Workers' bindings are still being rewritten to it; there is nothing to send again.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enabled":{"type":"boolean"},"issuerMode":{"type":"string","enum":["team","global"]}},"required":["enabled","issuerMode"],"additionalProperties":false}}}}}},"/v1/projects/{projectId}/oidc/token":{"post":{"operationId":"issueOidcDevelopmentToken","summary":"Issue a development token","tags":["OIDC federation"],"security":[{"bearerToken":["oidc:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"token":{"type":"string"},"environment":{"type":"string","const":"development"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["ok","token","environment","expiresAt"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"A token for the application running on your own machine, as `ARKOR_OIDC_TOKEN`: its environment is `development`, it lasts twelve hours, and it is shown once and kept nowhere. An `audience` may be asked for, but never another team's. Refused as `oidc_disabled` while OIDC federation is off.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"audience":{"type":"string","minLength":1}},"additionalProperties":false}}}}}},"/v1/mail/domains":{"get":{"operationId":"listMailDomains","summary":"List team sending domains","tags":["Mail"],"security":[{"bearerToken":["mail:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"domains":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"hostname":{"type":"string","maxLength":253},"zoneId":{"type":["string","null"]},"status":{"type":"string","enum":["provisioning","dns_pending","pending","verified","conflict","reconnect","failed","removing"]},"records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["CNAME","MX","TXT"]},"name":{"type":"string"},"content":{"type":"string"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","name","content"],"additionalProperties":false}},"error":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","hostname","zoneId","status","records","error","createdAt","updatedAt"],"additionalProperties":false}}},"required":["ok","domains"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"createMailDomain","summary":"Provision a sending domain using the connected Cloudflare account","tags":["Mail"],"security":[{"bearerToken":["mail:write"]}],"parameters":[],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"domain":{"type":"object","properties":{"id":{"type":"string","minLength":1},"hostname":{"type":"string","maxLength":253},"zoneId":{"type":["string","null"]},"status":{"type":"string","enum":["provisioning","dns_pending","pending","verified","conflict","reconnect","failed","removing"]},"records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["CNAME","MX","TXT"]},"name":{"type":"string"},"content":{"type":"string"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","name","content"],"additionalProperties":false}},"error":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","hostname","zoneId","status","records","error","createdAt","updatedAt"],"additionalProperties":false}},"required":["ok","domain"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hostname":{"type":"string","maxLength":253}},"required":["hostname"],"additionalProperties":false}}}}}},"/v1/mail/domains/{domainId}/reconcile":{"post":{"operationId":"reconcileMailDomain","summary":"Retry sending domain verification","tags":["Mail"],"security":[{"bearerToken":["mail:write"]}],"parameters":[{"name":"domainId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"domain":{"type":"object","properties":{"id":{"type":"string","minLength":1},"hostname":{"type":"string","maxLength":253},"zoneId":{"type":["string","null"]},"status":{"type":"string","enum":["provisioning","dns_pending","pending","verified","conflict","reconnect","failed","removing"]},"records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["CNAME","MX","TXT"]},"name":{"type":"string"},"content":{"type":"string"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","name","content"],"additionalProperties":false}},"error":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","hostname","zoneId","status","records","error","createdAt","updatedAt"],"additionalProperties":false}},"required":["ok","domain"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/mail/domains/{domainId}":{"delete":{"operationId":"removeMailDomain","summary":"Remove a team sending domain","tags":["Mail"],"security":[{"bearerToken":["mail:write"]}],"parameters":[{"name":"domainId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/mail":{"get":{"operationId":"getProjectMail","summary":"Read project mail settings, provider readiness, keys and usage","tags":["Mail"],"security":[{"bearerToken":["mail:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"settings":{"type":"object","properties":{"enabled":{"type":"boolean"},"previewEnabled":{"type":"boolean"},"developmentEnabled":{"type":"boolean"},"domainIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}},"required":["enabled","previewEnabled","developmentEnabled","domainIds"],"additionalProperties":false},"operatorEnabled":{"type":"boolean"},"limits":{"anyOf":[{"type":"object","properties":{"recipientsPerDay":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"recipientsPerMinute":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"bytesPerDay":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["recipientsPerDay","recipientsPerMinute","bytesPerDay"],"additionalProperties":false},{"type":"null"}]},"teamLimits":{"anyOf":[{"type":"object","properties":{"recipientsPerDay":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"recipientsPerMinute":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"bytesPerDay":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["recipientsPerDay","recipientsPerMinute","bytesPerDay"],"additionalProperties":false},{"type":"null"}]},"sandbox":{"default":{"from":"onboarding@sandbox.arkor.dev","enabled":false,"limits":null},"type":"object","properties":{"from":{"type":"string","const":"onboarding@sandbox.arkor.dev"},"enabled":{"type":"boolean"},"limits":{"anyOf":[{"type":"object","properties":{"recipientsPerDay":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"recipientsPerMinute":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"bytesPerDay":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["recipientsPerDay","recipientsPerMinute","bytesPerDay"],"additionalProperties":false},{"type":"null"}]}},"required":["from","enabled","limits"],"additionalProperties":false},"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string"},"environment":{"type":"string","enum":["production","preview","development"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","name","environment","createdAt","revokedAt"],"additionalProperties":false}},"usage":{"type":"object","properties":{"acceptedRecipients":{"type":"integer","minimum":0,"maximum":9007199254740991},"bodyBytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"attachmentBytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"requestBytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"unknownAttempts":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["acceptedRecipients","bodyBytes","attachmentBytes","requestBytes","unknownAttempts"],"additionalProperties":false}},"required":["ok","settings","operatorEnabled","limits","teamLimits","sandbox","keys","usage"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"put":{"operationId":"putProjectMail","summary":"Set sending environments and grant team domains to a project","tags":["Mail"],"security":[{"bearerToken":["mail:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"settings":{"type":"object","properties":{"enabled":{"type":"boolean"},"previewEnabled":{"type":"boolean"},"developmentEnabled":{"type":"boolean"},"domainIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}},"required":["enabled","previewEnabled","developmentEnabled","domainIds"],"additionalProperties":false},"operatorEnabled":{"type":"boolean"},"limits":{"anyOf":[{"type":"object","properties":{"recipientsPerDay":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"recipientsPerMinute":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"bytesPerDay":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["recipientsPerDay","recipientsPerMinute","bytesPerDay"],"additionalProperties":false},{"type":"null"}]},"teamLimits":{"anyOf":[{"type":"object","properties":{"recipientsPerDay":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"recipientsPerMinute":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"bytesPerDay":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["recipientsPerDay","recipientsPerMinute","bytesPerDay"],"additionalProperties":false},{"type":"null"}]},"sandbox":{"default":{"from":"onboarding@sandbox.arkor.dev","enabled":false,"limits":null},"type":"object","properties":{"from":{"type":"string","const":"onboarding@sandbox.arkor.dev"},"enabled":{"type":"boolean"},"limits":{"anyOf":[{"type":"object","properties":{"recipientsPerDay":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"recipientsPerMinute":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"bytesPerDay":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["recipientsPerDay","recipientsPerMinute","bytesPerDay"],"additionalProperties":false},{"type":"null"}]}},"required":["from","enabled","limits"],"additionalProperties":false},"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string"},"environment":{"type":"string","enum":["production","preview","development"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","name","environment","createdAt","revokedAt"],"additionalProperties":false}},"usage":{"type":"object","properties":{"acceptedRecipients":{"type":"integer","minimum":0,"maximum":9007199254740991},"bodyBytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"attachmentBytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"requestBytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"unknownAttempts":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["acceptedRecipients","bodyBytes","attachmentBytes","requestBytes","unknownAttempts"],"additionalProperties":false}},"required":["ok","settings","operatorEnabled","limits","teamLimits","sandbox","keys","usage"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enabled":{"type":"boolean"},"previewEnabled":{"type":"boolean"},"developmentEnabled":{"type":"boolean"},"domainIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}},"required":["enabled","previewEnabled","developmentEnabled","domainIds"],"additionalProperties":false}}}}}},"/v1/projects/{projectId}/mail/keys":{"get":{"operationId":"listMailKeys","summary":"List scoped sending keys","tags":["Mail"],"security":[{"bearerToken":["mail:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string"},"environment":{"type":"string","enum":["production","preview","development"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","name","environment","createdAt","revokedAt"],"additionalProperties":false}}},"required":["ok","keys"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"createMailKey","summary":"Create a project and environment scoped sending key","tags":["Mail"],"security":[{"bearerToken":["mail:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"key":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string"},"environment":{"type":"string","enum":["production","preview","development"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","name","environment","createdAt","revokedAt"],"additionalProperties":false},"secret":{"type":"string","minLength":1}},"required":["ok","key","secret"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"The secret is returned once. It can only send and read messages created using this key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"environment":{"type":"string","enum":["production","preview","development"]}},"required":["name","environment"],"additionalProperties":false}}}}}},"/v1/projects/{projectId}/mail/keys/{keyId}":{"delete":{"operationId":"revokeMailKey","summary":"Revoke a sending key","tags":["Mail"],"security":[{"bearerToken":["mail:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/mail/messages":{"get":{"operationId":"listProjectMailMessages","summary":"List message status metadata for this project","tags":["Mail"],"security":[{"bearerToken":["mail:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"projectId":{"type":"string","minLength":1},"environment":{"type":"string","enum":["production","preview","development"]},"status":{"type":"string","enum":["queued","sending","accepted","delivered","partially_delivered","bounced","complained","failed","unknown","simulated","cancelled","expired"]},"from":{"type":"string"},"subject":{"type":"string"},"recipients":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"kind":{"type":"string","enum":["to","cc","bcc"]},"status":{"type":"string","enum":["queued","sending","accepted","delivered","partially_delivered","bounced","complained","failed","unknown","simulated","cancelled","expired"]},"error":{"type":["string","null"]}},"required":["address","kind","status","error"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"error":{"type":["string","null"]}},"required":["id","projectId","environment","status","from","subject","recipients","createdAt","updatedAt","error"],"additionalProperties":false}},"cursor":{"type":["string","null"]}},"required":["ok","messages","cursor"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/mail/messages/{messageId}":{"get":{"operationId":"getProjectMailMessage","summary":"Read message status metadata for this project","tags":["Mail"],"security":[{"bearerToken":["mail:read"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"messageId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"message":{"type":"object","properties":{"id":{"type":"string","minLength":1},"projectId":{"type":"string","minLength":1},"environment":{"type":"string","enum":["production","preview","development"]},"status":{"type":"string","enum":["queued","sending","accepted","delivered","partially_delivered","bounced","complained","failed","unknown","simulated","cancelled","expired"]},"from":{"type":"string"},"subject":{"type":"string"},"recipients":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"kind":{"type":"string","enum":["to","cc","bcc"]},"status":{"type":"string","enum":["queued","sending","accepted","delivered","partially_delivered","bounced","complained","failed","unknown","simulated","cancelled","expired"]},"error":{"type":["string","null"]}},"required":["address","kind","status","error"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"error":{"type":["string","null"]}},"required":["id","projectId","environment","status","from","subject","recipients","createdAt","updatedAt","error"],"additionalProperties":false}},"required":["ok","message"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/email/messages":{"post":{"operationId":"sendMailMessage","summary":"Queue a transactional email","tags":["Mail"],"security":[{"mailKey":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Stable key for retries of the same message, scoped to this sending key."}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"id":{"type":"string","minLength":1},"status":{"type":"string","enum":["queued","sending","accepted","delivered","partially_delivered","bounced","complained","failed","unknown","simulated","cancelled","expired"]}},"required":["ok","id","status"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Requires a scoped sending key and Idempotency-Key. The project and environment are fixed by the key. Before verifying a custom domain, use onboarding@sandbox.arkor.dev; every To, Cc and Bcc address must match a current team member's verified Arkor registration email. Live sandbox sending follows project/environment switches and team limits. Test mode simulates delivery without submitting to SES and retains the sandbox recipient restriction. Reusing a key with a different message is a conflict.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"from":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"to":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"cc":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"bcc":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"replyTo":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"subject":{"type":"string"},"text":{"type":"string","maxLength":5242880},"html":{"type":"string","maxLength":5242880},"attachments":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"filename":{"type":"string"},"contentType":{"type":"string"},"content":{"type":"string","maxLength":5242880,"pattern":"^[A-Za-z\\d+/]*={0,2}$"},"disposition":{"default":"attachment","type":"string","enum":["attachment","inline"]},"contentId":{"type":"string"}},"required":["filename","contentType","content"],"additionalProperties":false}},"purpose":{"default":"transactional","type":"string","const":"transactional"},"test":{"default":false,"type":"boolean"}},"required":["from","to","subject"],"additionalProperties":false}}}}},"get":{"operationId":"listOwnMailMessages","summary":"List message metadata created using this sending key","tags":["Mail"],"security":[{"mailKey":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"projectId":{"type":"string","minLength":1},"environment":{"type":"string","enum":["production","preview","development"]},"status":{"type":"string","enum":["queued","sending","accepted","delivered","partially_delivered","bounced","complained","failed","unknown","simulated","cancelled","expired"]},"from":{"type":"string"},"subject":{"type":"string"},"recipients":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"kind":{"type":"string","enum":["to","cc","bcc"]},"status":{"type":"string","enum":["queued","sending","accepted","delivered","partially_delivered","bounced","complained","failed","unknown","simulated","cancelled","expired"]},"error":{"type":["string","null"]}},"required":["address","kind","status","error"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"error":{"type":["string","null"]}},"required":["id","projectId","environment","status","from","subject","recipients","createdAt","updatedAt","error"],"additionalProperties":false}},"cursor":{"type":["string","null"]}},"required":["ok","messages","cursor"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/email/messages/{messageId}":{"get":{"operationId":"getOwnMailMessage","summary":"Read metadata for a message created using this sending key","tags":["Mail"],"security":[{"mailKey":[]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"messageId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"message":{"type":"object","properties":{"id":{"type":"string","minLength":1},"projectId":{"type":"string","minLength":1},"environment":{"type":"string","enum":["production","preview","development"]},"status":{"type":"string","enum":["queued","sending","accepted","delivered","partially_delivered","bounced","complained","failed","unknown","simulated","cancelled","expired"]},"from":{"type":"string"},"subject":{"type":"string"},"recipients":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"kind":{"type":"string","enum":["to","cc","bcc"]},"status":{"type":"string","enum":["queued","sending","accepted","delivered","partially_delivered","bounced","complained","failed","unknown","simulated","cancelled","expired"]},"error":{"type":["string","null"]}},"required":["address","kind","status","error"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"error":{"type":["string","null"]}},"required":["id","projectId","environment","status","from","subject","recipients","createdAt","updatedAt","error"],"additionalProperties":false}},"required":["ok","message"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/v1/projects/{projectId}/cache-inspector":{"post":{"operationId":"setCacheInspector","summary":"Record the project's runtime cache history for the Cache Inspector, or stop","tags":["Projects"],"security":[{"bearerToken":["projects:write"]}],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"enabled":{"type":"boolean"}},"required":["ok","enabled"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"On reaches the deployments made from then on; off stops every deployment the project has, as many as one pass reaches before it answers and the rest in the background, and a stopped deployment never records again. Turning it on is refused as `project_suspended` while the project is suspended, and as `add_on_required` while the organization has not bought the Cache Inspector add-on, which is bought on the dashboard. Turning it off is never refused.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}}}},"/v1/github/installations":{"get":{"operationId":"listGithubInstallations","summary":"The GitHub App installations this organization has claimed","tags":["GitHub"],"security":[{"bearerToken":["source:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"installations":{"type":"array","items":{"type":"object","properties":{"installationId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accountLogin":{"type":"string"},"accountType":{"type":"string"},"status":{"type":"string","enum":["active","suspended","deleted"]}},"required":["installationId","accountLogin","accountType","status"],"additionalProperties":false}}},"required":["ok","installations"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"description":"Claiming one is done on the dashboard; it takes the GitHub identity of whoever installed it. One uninstalled on GitHub stays listed, with status `deleted`, until it is released."}},"/v1/github/installations/{installationId}/repositories":{"get":{"operationId":"listInstallationRepositories","summary":"A page of the repositories an installation can read","tags":["GitHub"],"security":[{"bearerToken":["source:read"]}],"parameters":[{"name":"installationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"repositories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fullName":{"type":"string"},"name":{"type":"string"},"private":{"type":"boolean"},"defaultBranch":{"type":"string"}},"required":["id","fullName","name","private","defaultBranch"],"additionalProperties":false}},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"hasMore":{"type":"boolean"}},"required":["ok","repositories","page","hasMore"],"additionalProperties":false}}}},"default":{"description":"Failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}}}}