{"openapi":"3.1.0","info":{"title":"durablesdk.com plane API","version":"1.4","description":"Every answer carries X-Durable-Plane; every error is PlaneError with a code of the registry (https://durablesdk.com/docs/reference/api/errors)."},"servers":[{"url":"https://durablesdk.com/api/v1"}],"paths":{"/whoami":{"get":{"operationId":"whoami","summary":"The tenant and the principal behind the credential.","tags":["identity"],"x-scope":"any","x-docs":"https://durablesdk.com/docs/reference/api","security":[{"apiKey":[]}],"parameters":[],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"tenant":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"name":{"type":"string"},"plan":{"type":"string","enum":["free","pro","enterprise"]},"region":{"type":"string"}},"required":["id","slug","name","plan","region"]},"principal":{"type":"object","properties":{"kind":{"type":"string","enum":["key","user"]},"id":{"type":"string"},"name":{"type":"string"},"scope":{"type":"string","enum":["read","deploy","admin"]},"expiresAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]}},"required":["kind","id","name","scope","expiresAt"]}},"required":["tenant","principal"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/cli/logins":{"post":{"operationId":"cli.login.open","summary":"Opens a device login for the CLI: the code to approve in the browser and the secret to poll with.","tags":["identity"],"x-scope":"none","x-docs":"https://durablesdk.com/docs/operate/accounts-and-keys","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client":{"type":"string","minLength":1,"maxLength":100},"hostname":{"type":"string","minLength":1,"maxLength":253},"scope":{"type":"string","enum":["read","deploy","admin"]}},"required":["client","hostname"]}}}},"responses":{"201":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pollSecret":{"type":"string"},"userCode":{"type":"string"},"verifyUrl":{"type":"string"},"expiresAt":{"type":"string","description":"an ISO 8601 instant"},"intervalSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","pollSecret","userCode","verifyUrl","expiresAt","intervalSeconds"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/cli/logins/{id}/token":{"post":{"operationId":"cli.login.token","summary":"Polled with the poll secret as bearer: pending, or the key once approved.","tags":["identity"],"x-scope":"none","x-docs":"https://durablesdk.com/docs/operate/accounts-and-keys","security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending","approved","denied","consumed","expired"]},"apiKey":{"type":["string","null"]},"tenant":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"]},"scope":{"type":"string","enum":["read","deploy","admin"]},"expiresAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]}},"required":["status"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/keys":{"get":{"operationId":"keys.list","summary":"The tenant's API keys, paged; ?owner=user:<id> narrows to the keys one person minted.","tags":["keys"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/operate/accounts-and-keys","security":[{"apiKey":["read"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"owner","in":"query","required":false,"schema":{"type":"string","pattern":"^user:[A-Za-z0-9_-]{1,100}$"}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string"},"scope":{"type":"string","enum":["read","deploy","admin"]},"owner":{"type":"string"},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"expiresAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"lastUsedDay":{"type":["string","null"]},"revokedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]}},"required":["id","name","prefix","scope","owner","createdAt","expiresAt","lastUsedDay","revokedAt"]}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}},"post":{"operationId":"keys.create","summary":"Mints a key (a person alone): the value is shown once.","tags":["keys"],"x-scope":"user","x-docs":"https://durablesdk.com/docs/operate/accounts-and-keys","security":[{"apiKey":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"scope":{"type":"string","enum":["read","deploy","admin"]},"expiresDays":{"anyOf":[{"type":"number","const":30},{"type":"number","const":90},{"type":"number","const":365}]}},"required":["name","scope","expiresDays"]}}}},"responses":{"201":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"prefix":{"type":"string"},"key":{"type":["string","null"]},"runId":{"type":["string","null"]},"warning":{"type":"object","properties":{"code":{"type":"string"}},"required":["code"]}},"required":["id","prefix","key","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/keys/{id}":{"delete":{"operationId":"keys.revoke","summary":"Revokes a key: the minter their own, an admin any.","tags":["keys"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/operate/accounts-and-keys","security":[{"apiKey":["read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"revokedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","revokedAt","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/regions":{"get":{"operationId":"regions.list","summary":"The product's region words with their cities.","tags":["apps"],"x-scope":"any","x-docs":"https://durablesdk.com/docs/hosting/regions","security":[{"apiKey":[]}],"parameters":[],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["us-east","us-east-2","us-west","eu-central","eu-west","ap-southeast","ap-southeast-2"]},"label":{"type":"string"},"city":{"type":"string"}},"required":["id","label","city"]}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps":{"get":{"operationId":"apps.list","summary":"The tenant's apps, paged; ?q=, ?status= and ?region= narrow, ?sort= orders.","tags":["apps"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/hosting/index","security":[{"apiKey":["read"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["provisioning","active","failed","deleted"]}},{"name":"region","in":"query","required":false,"schema":{"type":"string","enum":["us-east","us-east-2","us-west","eu-central","eu-west","ap-southeast","ap-southeast-2"]}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["newest","oldest","name"]}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"name":{"type":"string"},"region":{"type":"string"},"status":{"type":"string","enum":["provisioning","active","failed","deleted"]},"hostname":{"type":"string"},"promotionRule":{"type":"string","enum":["auto","manual"]},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"deletedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"currentDeployment":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"createdAt":{"type":"string","description":"an ISO 8601 instant"}},"required":["id","state","createdAt"]},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","slug","name","region","status","hostname","promotionRule","createdAt","deletedAt","currentDeployment","error"]}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}},"post":{"operationId":"apps.create","summary":"Creates an app: the row at once, the project, the database and the first deployment behind the run.","tags":["apps"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/hosting/index","security":[{"apiKey":["admin"]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":1,"maxLength":63},"region":{"type":"string","minLength":1,"maxLength":32}},"required":["slug"]}}}},"responses":{"201":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"name":{"type":"string"},"region":{"type":"string"},"status":{"type":"string","enum":["provisioning","active","failed","deleted"]},"hostname":{"type":"string"},"promotionRule":{"type":"string","enum":["auto","manual"]},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"deletedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"currentDeployment":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"createdAt":{"type":"string","description":"an ISO 8601 instant"}},"required":["id","state","createdAt"]},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","slug","name","region","status","hostname","promotionRule","createdAt","deletedAt","currentDeployment","error"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}":{"get":{"operationId":"apps.get","summary":"The app.","tags":["apps"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/hosting/index","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"name":{"type":"string"},"region":{"type":"string"},"status":{"type":"string","enum":["provisioning","active","failed","deleted"]},"hostname":{"type":"string"},"promotionRule":{"type":"string","enum":["auto","manual"]},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"deletedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"currentDeployment":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"createdAt":{"type":"string","description":"an ISO 8601 instant"}},"required":["id","state","createdAt"]},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","slug","name","region","status","hostname","promotionRule","createdAt","deletedAt","currentDeployment","error"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}},"patch":{"operationId":"apps.update","summary":"Sets the promotion rule.","tags":["apps"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["admin"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"promotionRule":{"type":"string","enum":["auto","manual"]}},"required":["promotionRule"]}}}},"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"name":{"type":"string"},"region":{"type":"string"},"status":{"type":"string","enum":["provisioning","active","failed","deleted"]},"hostname":{"type":"string"},"promotionRule":{"type":"string","enum":["auto","manual"]},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"deletedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"currentDeployment":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"createdAt":{"type":"string","description":"an ISO 8601 instant"}},"required":["id","state","createdAt"]},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","slug","name","region","status","hostname","promotionRule","createdAt","deletedAt","currentDeployment","error"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}},"delete":{"operationId":"apps.delete","summary":"Starts the hold: the hostnames stop answering, the slug stays reserved for the tier's hold days, then the purge.","tags":["apps"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/hosting/index","security":[{"apiKey":["admin"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"name":{"type":"string"},"region":{"type":"string"},"status":{"type":"string","enum":["provisioning","active","failed","deleted"]},"hostname":{"type":"string"},"promotionRule":{"type":"string","enum":["auto","manual"]},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"deletedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"currentDeployment":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"createdAt":{"type":"string","description":"an ISO 8601 instant"}},"required":["id","state","createdAt"]},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","slug","name","region","status","hostname","promotionRule","createdAt","deletedAt","currentDeployment","error"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/restore":{"post":{"operationId":"apps.restore","summary":"Brings a held app back within its hold.","tags":["apps"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/hosting/index","security":[{"apiKey":["admin"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"name":{"type":"string"},"region":{"type":"string"},"status":{"type":"string","enum":["provisioning","active","failed","deleted"]},"hostname":{"type":"string"},"promotionRule":{"type":"string","enum":["auto","manual"]},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"deletedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"currentDeployment":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"createdAt":{"type":"string","description":"an ISO 8601 instant"}},"required":["id","state","createdAt"]},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","slug","name","region","status","hostname","promotionRule","createdAt","deletedAt","currentDeployment","error"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/environments":{"get":{"operationId":"environments.list","summary":"The app's environments: production and every preview.","tags":["apps"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["production","preview"]},"branch":{"type":["string","null"]},"hostname":{"type":"string"},"currentDeploymentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"tick":{"type":"string","enum":["cron","request-only"]},"database":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"]}},"required":["name","kind","branch","hostname","currentDeploymentId","tick","database"]}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/environments/{name}":{"delete":{"operationId":"environments.delete","summary":"Removes a preview at once; production is refused.","tags":["apps"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"deleted":{"type":"boolean","const":true},"runId":{"type":["string","null"]}},"required":["name","deleted","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/uploads":{"post":{"operationId":"uploads.open","summary":"Opens an upload of the packed tree: the part size, the tier's bound and the expiry.","tags":["deployments"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"bytes":{"type":"integer","minimum":1,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["bytes","sha256"]}}}},"responses":{"201":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"partBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expiresAt":{"type":"string","description":"an ISO 8601 instant"}},"required":["id","partBytes","maxBytes","expiresAt"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/uploads/{id}/parts/{n}":{"put":{"operationId":"uploads.part","summary":"One part of the upload, raw, with Content-SHA256; idempotent on the same part and SHA.","tags":["deployments"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","minimum":1,"maximum":100000}}],"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"received":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["received"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/uploads/{id}":{"get":{"operationId":"uploads.get","summary":"The parts received and the state, for a resume.","tags":["deployments"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"received":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"state":{"type":"string","enum":["open","complete","consumed","expired"]},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"partBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"parts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expiresAt":{"type":"string","description":"an ISO 8601 instant"}},"required":["id","received","state","bytes","partBytes","parts","expiresAt"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/uploads/{id}/complete":{"post":{"operationId":"uploads.complete","summary":"Judges the whole against its SHA-256 and closes the upload.","tags":["deployments"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["sha256"]}}}},"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"parts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","bytes","parts"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/deployments":{"post":{"operationId":"deployments.create","summary":"Makes a deployment from a completed upload; answers queued at once, the run continues.","tags":["deployments"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"uploadId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"target":{"type":"string"},"branch":{"type":"string","minLength":1,"maxLength":200},"message":{"type":"string","maxLength":200}},"required":["uploadId","target"]}}}},"responses":{"202":{"description":"accepted: the run continues","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app":{"type":"string"},"target":{"type":"string","enum":["production","preview"]},"branch":{"type":["string","null"]},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"url":{"type":["string","null"]},"sha256":{"type":"string"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":["string","null"]},"source":{"type":"string","enum":["cli_upload","template","redeploy","git"]},"git":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"ref":{"type":"string"},"repo":{"type":"string"},"sender":{"type":["string","null"]},"prNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["sha","ref","repo","sender","prNumber"]},{"type":"null"}]},"createdBy":{"type":"string"},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"promotedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]},"check":{"anyOf":[{"type":"object","properties":{"verdict":{"type":"string","enum":["ok","warn","fail"]},"rows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"verdict":{"type":"string","enum":["ok","warn","fail"]},"detail":{"type":"string"}},"required":["name","verdict","detail"]}}},"required":["verdict","rows"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","app","target","branch","state","url","sha256","bytes","message","source","git","createdBy","createdAt","finishedAt","checkedAt","promotedAt","error","check","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}},"get":{"operationId":"deployments.list","summary":"The app's deployments, paged; ?target=, ?state= and ?source= narrow.","tags":["deployments"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"target","in":"query","required":false,"schema":{"type":"string","enum":["production","preview"]}},{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]}},{"name":"source","in":"query","required":false,"schema":{"type":"string","enum":["cli_upload","template","redeploy","git"]}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app":{"type":"string"},"target":{"type":"string","enum":["production","preview"]},"branch":{"type":["string","null"]},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"url":{"type":["string","null"]},"sha256":{"type":"string"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":["string","null"]},"source":{"type":"string","enum":["cli_upload","template","redeploy","git"]},"git":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"ref":{"type":"string"},"repo":{"type":"string"},"sender":{"type":["string","null"]},"prNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["sha","ref","repo","sender","prNumber"]},{"type":"null"}]},"createdBy":{"type":"string"},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"promotedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]},"check":{"anyOf":[{"type":"object","properties":{"verdict":{"type":"string","enum":["ok","warn","fail"]},"rows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"verdict":{"type":"string","enum":["ok","warn","fail"]},"detail":{"type":"string"}},"required":["name","verdict","detail"]}}},"required":["verdict","rows"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","app","target","branch","state","url","sha256","bytes","message","source","git","createdBy","createdAt","finishedAt","checkedAt","promotedAt","error","check","runId"]}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/deployments/{id}":{"get":{"operationId":"deployments.get","summary":"The deployment.","tags":["deployments"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app":{"type":"string"},"target":{"type":"string","enum":["production","preview"]},"branch":{"type":["string","null"]},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"url":{"type":["string","null"]},"sha256":{"type":"string"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":["string","null"]},"source":{"type":"string","enum":["cli_upload","template","redeploy","git"]},"git":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"ref":{"type":"string"},"repo":{"type":"string"},"sender":{"type":["string","null"]},"prNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["sha","ref","repo","sender","prNumber"]},{"type":"null"}]},"createdBy":{"type":"string"},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"promotedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]},"check":{"anyOf":[{"type":"object","properties":{"verdict":{"type":"string","enum":["ok","warn","fail"]},"rows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"verdict":{"type":"string","enum":["ok","warn","fail"]},"detail":{"type":"string"}},"required":["name","verdict","detail"]}}},"required":["verdict","rows"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","app","target","branch","state","url","sha256","bytes","message","source","git","createdBy","createdAt","finishedAt","checkedAt","promotedAt","error","check","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/deployments/{id}/events":{"get":{"operationId":"deployments.events","summary":"The build's lines, masked, since an instant or the previous cursor.","tags":["deployments"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"since","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":2000}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","description":"an ISO 8601 instant"},"level":{"type":"string","enum":["info","error"]},"text":{"type":"string"}},"required":["at","level","text"]}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/deployments/{id}/promote":{"post":{"operationId":"deployments.promote","summary":"Promotes a ready production deployment under the manual rule.","tags":["deployments"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app":{"type":"string"},"target":{"type":"string","enum":["production","preview"]},"branch":{"type":["string","null"]},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"url":{"type":["string","null"]},"sha256":{"type":"string"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":["string","null"]},"source":{"type":"string","enum":["cli_upload","template","redeploy","git"]},"git":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"ref":{"type":"string"},"repo":{"type":"string"},"sender":{"type":["string","null"]},"prNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["sha","ref","repo","sender","prNumber"]},{"type":"null"}]},"createdBy":{"type":"string"},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"promotedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]},"check":{"anyOf":[{"type":"object","properties":{"verdict":{"type":"string","enum":["ok","warn","fail"]},"rows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"verdict":{"type":"string","enum":["ok","warn","fail"]},"detail":{"type":"string"}},"required":["name","verdict","detail"]}}},"required":["verdict","rows"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","app","target","branch","state","url","sha256","bytes","message","source","git","createdBy","createdAt","finishedAt","checkedAt","promotedAt","error","check","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/deployments/{id}/rollback":{"post":{"operationId":"deployments.rollback","summary":"Points the production hostname back at this deployment.","tags":["deployments"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app":{"type":"string"},"target":{"type":"string","enum":["production","preview"]},"branch":{"type":["string","null"]},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"url":{"type":["string","null"]},"sha256":{"type":"string"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":["string","null"]},"source":{"type":"string","enum":["cli_upload","template","redeploy","git"]},"git":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"ref":{"type":"string"},"repo":{"type":"string"},"sender":{"type":["string","null"]},"prNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["sha","ref","repo","sender","prNumber"]},{"type":"null"}]},"createdBy":{"type":"string"},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"promotedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]},"check":{"anyOf":[{"type":"object","properties":{"verdict":{"type":"string","enum":["ok","warn","fail"]},"rows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"verdict":{"type":"string","enum":["ok","warn","fail"]},"detail":{"type":"string"}},"required":["name","verdict","detail"]}}},"required":["verdict","rows"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","app","target","branch","state","url","sha256","bytes","message","source","git","createdBy","createdAt","finishedAt","checkedAt","promotedAt","error","check","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/deployments/{id}/cancel":{"post":{"operationId":"deployments.cancel","summary":"Cancels a queued or building deployment.","tags":["deployments"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app":{"type":"string"},"target":{"type":"string","enum":["production","preview"]},"branch":{"type":["string","null"]},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"url":{"type":["string","null"]},"sha256":{"type":"string"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":["string","null"]},"source":{"type":"string","enum":["cli_upload","template","redeploy","git"]},"git":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"ref":{"type":"string"},"repo":{"type":"string"},"sender":{"type":["string","null"]},"prNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["sha","ref","repo","sender","prNumber"]},{"type":"null"}]},"createdBy":{"type":"string"},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"promotedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]},"check":{"anyOf":[{"type":"object","properties":{"verdict":{"type":"string","enum":["ok","warn","fail"]},"rows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"verdict":{"type":"string","enum":["ok","warn","fail"]},"detail":{"type":"string"}},"required":["name","verdict","detail"]}}},"required":["verdict","rows"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","app","target","branch","state","url","sha256","bytes","message","source","git","createdBy","createdAt","finishedAt","checkedAt","promotedAt","error","check","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/deployments/{id}/redeploy":{"post":{"operationId":"deployments.redeploy","summary":"A new deployment from the same files under the project's current variables.","tags":["deployments"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/deploy","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"202":{"description":"accepted: the run continues","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app":{"type":"string"},"target":{"type":"string","enum":["production","preview"]},"branch":{"type":["string","null"]},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"url":{"type":["string","null"]},"sha256":{"type":"string"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":["string","null"]},"source":{"type":"string","enum":["cli_upload","template","redeploy","git"]},"git":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"ref":{"type":"string"},"repo":{"type":"string"},"sender":{"type":["string","null"]},"prNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["sha","ref","repo","sender","prNumber"]},{"type":"null"}]},"createdBy":{"type":"string"},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"promotedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]},"check":{"anyOf":[{"type":"object","properties":{"verdict":{"type":"string","enum":["ok","warn","fail"]},"rows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"verdict":{"type":"string","enum":["ok","warn","fail"]},"detail":{"type":"string"}},"required":["name","verdict","detail"]}}},"required":["verdict","rows"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","app","target","branch","state","url","sha256","bytes","message","source","git","createdBy","createdAt","finishedAt","checkedAt","promotedAt","error","check","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/secrets":{"get":{"operationId":"secrets.list","summary":"The names, targets and stamps; never a value.","tags":["secrets"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/secrets","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"targets":{"type":"array","items":{"type":"string","enum":["production","preview"]}},"setBy":{"type":"string"},"setAt":{"type":"string","description":"an ISO 8601 instant"}},"required":["name","targets","setBy","setAt"]}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/secrets/{name}":{"put":{"operationId":"secrets.set","summary":"Sets a secret for the targets named; the value is sealed in flight and kept nowhere.","tags":["secrets"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/secrets","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":65536},"targets":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string"}},"redeploy":{"type":"boolean"}},"required":["value"]}}}},"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"targets":{"type":"array","items":{"type":"string","enum":["production","preview"]}},"setBy":{"type":"string"},"setAt":{"type":"string","description":"an ISO 8601 instant"},"redeploy":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]}},"required":["id","state"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["name","targets","setBy","setAt","redeploy","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}},"delete":{"operationId":"secrets.remove","summary":"Removes a secret; applies at the next build.","tags":["secrets"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/secrets","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"removed":{"type":"boolean","const":true},"runId":{"type":["string","null"]}},"required":["name","removed","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/domains":{"get":{"operationId":"domains.list","summary":"The app's hostnames with their challenges.","tags":["domains"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/domains","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string"},"kind":{"type":"string","enum":["platform","custom"]},"status":{"type":"string","enum":["pending","verified","failed","removed"]},"challenge":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"},"value":{"type":"string"}},"required":["type","name","value"]},{"type":"null"}]},"verifiedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["hostname","kind","status","challenge","verifiedAt","runId"]}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}},"post":{"operationId":"domains.add","summary":"Adds a custom domain (Pro and up); the TXT challenge in the answer.","tags":["domains"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/domains","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hostname":{"type":"string","minLength":1,"maxLength":253}},"required":["hostname"]}}}},"responses":{"201":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"hostname":{"type":"string"},"kind":{"type":"string","enum":["platform","custom"]},"status":{"type":"string","enum":["pending","verified","failed","removed"]},"challenge":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"},"value":{"type":"string"}},"required":["type","name","value"]},{"type":"null"}]},"verifiedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["hostname","kind","status","challenge","verifiedAt","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/domains/{name}/verify":{"post":{"operationId":"domains.verify","summary":"Checks the TXT record.","tags":["domains"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/domains","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"hostname":{"type":"string"},"kind":{"type":"string","enum":["platform","custom"]},"status":{"type":"string","enum":["pending","verified","failed","removed"]},"challenge":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"},"value":{"type":"string"}},"required":["type","name","value"]},{"type":"null"}]},"verifiedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["hostname","kind","status","challenge","verifiedAt","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/domains/{name}":{"delete":{"operationId":"domains.remove","summary":"Removes a custom domain.","tags":["domains"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/domains","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":253}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"hostname":{"type":"string"},"removed":{"type":"boolean","const":true},"runId":{"type":["string","null"]}},"required":["hostname","removed","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/database":{"get":{"operationId":"database.get","summary":"The database: status, region, the compute's sizing and state, storage, history, the maintenance window, the branches and whether a read string stands.","tags":["database"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/hosting/database","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"region":{"type":"string"},"compute":{"type":"object","properties":{"minCu":{"type":"number"},"maxCu":{"type":"number"},"suspendSeconds":{"type":"number"},"state":{"anyOf":[{"type":"string","enum":["init","active","idle"]},{"type":"null"}]},"lastActiveAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"suspendedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]}},"required":["minCu","maxCu","suspendSeconds","state","lastActiveAt","suspendedAt"]},"storageBytes":{"type":["number","null"]},"history":{"type":"object","properties":{"days":{"type":"number"},"retainedUntil":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]}},"required":["days","retainedUntil"]},"maintenanceWindow":{"type":["string","null"]},"branches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["production","preview","other"]},"sizeBytes":{"type":["number","null"]},"createdAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]}},"required":["name","kind","sizeBytes","createdAt"]}},"live":{"type":"boolean"},"readString":{"type":"object","properties":{"present":{"type":"boolean"},"createdAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"rotatedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]}},"required":["present","createdAt","rotatedAt"]}},"required":["status","region","compute","storageBytes","history","maintenanceWindow","branches","live","readString"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/database/read-string":{"post":{"operationId":"database.read_string.mint","summary":"Mints the one read-only role; the URL once.","tags":["database"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/hosting/database","security":[{"apiKey":["admin"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"201":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":["string","null"]},"role":{"type":["string","null"]},"runId":{"type":["string","null"]},"warning":{"type":"object","properties":{"code":{"type":"string"}},"required":["code"]}},"required":["url","role","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}},"delete":{"operationId":"database.read_string.revoke","summary":"Drops the read role.","tags":["database"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/hosting/database","security":[{"apiKey":["admin"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"revoked":{"type":"boolean","const":true},"runId":{"type":["string","null"]}},"required":["revoked","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/database/read-string/rotate":{"post":{"operationId":"database.read_string.rotate","summary":"A new password for the read role; the new URL once.","tags":["database"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/hosting/database","security":[{"apiKey":["admin"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":["string","null"]},"role":{"type":["string","null"]},"runId":{"type":["string","null"]},"warning":{"type":"object","properties":{"code":{"type":"string"}},"required":["code"]}},"required":["url","role","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/logs":{"get":{"operationId":"logs.read","summary":"The current deployment's runtime lines, filtered and masked, at most 256.","tags":["observe"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/hosting/logs","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}},{"name":"env","in":"query","required":false,"schema":{"type":"string","enum":["production","preview"]}},{"name":"level","in":"query","required":false,"schema":{"type":"string","enum":["info","warn","error"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"follow","in":"query","required":false,"schema":{"type":"string","enum":["0","1"]}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","description":"an ISO 8601 instant"},"level":{"type":"string"},"message":{"type":"string"}},"required":["at","level","message"]}},"nextCursor":{"type":["string","null"]},"retentionDays":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"deploymentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["items","nextCursor","retentionDays","deploymentId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/usage":{"get":{"operationId":"usage.read","summary":"The app's usage per UTC day.","tags":["observe"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/hosting/usage-and-limits","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":90}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"events":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"invocations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"activeCpuHours":{"type":"number"},"transferGb":{"type":"number"},"dbStorageGb":{"type":"number"},"dbCuHours":{"type":"number"}},"required":["day","runs","events","failedRuns","invocations","activeCpuHours","transferGb","dbStorageGb","dbCuHours"]}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/limits":{"get":{"operationId":"limits.read","summary":"The plan, its entitlements, today's usage and the app's own engine limits.","tags":["observe"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/hosting/usage-and-limits","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","enum":["free","pro","enterprise"]},"entitlements":{"type":"object","propertyNames":{"type":"string","enum":["apps","environments","previews_live","seats","invocations_per_day","build_minutes","build_minutes_per_day","upload_mb","db_cu_floor_milli","db_cu_ceiling_milli","db_suspend_seconds","db_history_days","logs_days","delete_hold_days","preview_days","custom_domain","staging","promotion_manual"]},"additionalProperties":{"type":["number","boolean","null"]},"required":["apps","environments","previews_live","seats","invocations_per_day","build_minutes","build_minutes_per_day","upload_mb","db_cu_floor_milli","db_cu_ceiling_milli","db_suspend_seconds","db_history_days","logs_days","delete_hold_days","preview_days","custom_domain","staging","promotion_manual"]},"usage":{"type":"object","properties":{"day":{"type":"string"},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"events":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"invocations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"activeCpuHours":{"type":"number"},"transferGb":{"type":"number"},"dbStorageGb":{"type":"number"},"dbCuHours":{"type":"number"}},"required":["day","runs","events","failedRuns","invocations","activeCpuHours","transferGb","dbStorageGb","dbCuHours"]},"engine":{"anyOf":[{},{"type":"null"}]}},"required":["plan","entitlements","usage","engine"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/status":{"get":{"operationId":"status.read","summary":"The app's live status: the deployment, the operator API's reachability and its health.","tags":["observe"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/hosting/usage-and-limits","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"app":{"type":"string"},"environment":{"type":"string"},"deployment":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"promotedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"url":{"type":["string","null"]}},"required":["id","state","promotedAt","url"]},{"type":"null"}]},"api":{"type":"object","properties":{"version":{"type":["string","null"]},"reachable":{"type":"boolean"},"latencyMs":{"type":["number","null"]}},"required":["version","reachable","latencyMs"]},"health":{"anyOf":[{"type":"object","properties":{"ok":{"type":"boolean"},"limbo":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"schema":{"anyOf":[{},{"type":"null"}]},"instance":{"anyOf":[{},{"type":"null"}]}},"required":["ok","limbo","schema","instance"]},{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}]},"readAt":{"type":"string","description":"an ISO 8601 instant"}},"required":["app","environment","deployment","api","health","readAt"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/repository":{"get":{"operationId":"repository.get","summary":"The app's connected repository, or null.","tags":["repository"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/hosting/github","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"app":{"type":"string"},"connection":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"account":{"type":"object","properties":{"login":{"type":"string"},"type":{"type":"string"}},"required":["login","type"]},"repoId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repo":{"type":"string"},"defaultBranch":{"type":"string"}},"required":["installationId","account","repoId","repo","defaultBranch"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["app","connection","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}},"post":{"operationId":"repository.connect","summary":"Connects the app to a repository of an installation this organization holds; every push deploys from then on.","tags":["repository"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/hosting/github","security":[{"apiKey":["admin"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"installationId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"repoId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"defaultBranch":{"type":"string","minLength":1,"maxLength":200}},"required":["installationId","repoId"]}}}},"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"app":{"type":"string"},"connection":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"account":{"type":"object","properties":{"login":{"type":"string"},"type":{"type":"string"}},"required":["login","type"]},"repoId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repo":{"type":"string"},"defaultBranch":{"type":"string"}},"required":["installationId","account","repoId","repo","defaultBranch"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["app","connection","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}},"patch":{"operationId":"repository.update","summary":"Changes the branch that deploys production; the installation and the repository stay.","tags":["repository"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/hosting/github","security":[{"apiKey":["admin"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"defaultBranch":{"type":"string","minLength":1,"maxLength":200}},"required":["defaultBranch"]}}}},"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"app":{"type":"string"},"connection":{"anyOf":[{"type":"object","properties":{"installationId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"account":{"type":"object","properties":{"login":{"type":"string"},"type":{"type":"string"}},"required":["login","type"]},"repoId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repo":{"type":"string"},"defaultBranch":{"type":"string"}},"required":["installationId","account","repoId","repo","defaultBranch"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["app","connection","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}},"delete":{"operationId":"repository.disconnect","summary":"Clears the app's repository connection.","tags":["repository"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/hosting/github","security":[{"apiKey":["admin"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"app":{"type":"string"},"disconnected":{"type":"boolean","const":true},"runId":{"type":["string","null"]}},"required":["app","disconnected","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/repository/deploy":{"post":{"operationId":"repository.deploy","summary":"Deploys the connected repository's production branch at its head to production, as a push would; answers queued at once, the run continues.","tags":["repository"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/hosting/github","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}}],"responses":{"202":{"description":"accepted: the run continues","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app":{"type":"string"},"target":{"type":"string","enum":["production","preview"]},"branch":{"type":["string","null"]},"state":{"type":"string","enum":["queued","building","checking","ready","promoted","failed","cancelled","rolled_back"]},"url":{"type":["string","null"]},"sha256":{"type":"string"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":["string","null"]},"source":{"type":"string","enum":["cli_upload","template","redeploy","git"]},"git":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"ref":{"type":"string"},"repo":{"type":"string"},"sender":{"type":["string","null"]},"prNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["sha","ref","repo","sender","prNumber"]},{"type":"null"}]},"createdBy":{"type":"string"},"createdAt":{"type":"string","description":"an ISO 8601 instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"promotedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]},"check":{"anyOf":[{"type":"object","properties":{"verdict":{"type":"string","enum":["ok","warn","fail"]},"rows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"verdict":{"type":"string","enum":["ok","warn","fail"]},"detail":{"type":"string"}},"required":["name","verdict","detail"]}}},"required":["verdict","rows"]},{"type":"null"}]},"runId":{"type":["string","null"]}},"required":["id","app","target","branch","state","url","sha256","bytes","message","source","git","createdBy","createdAt","finishedAt","checkedAt","promotedAt","error","check","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/repositories":{"get":{"operationId":"repositories.list","summary":"The repositories an installation of the GitHub App offers.","tags":["repository"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/hosting/github","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"}},{"name":"installation","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fullName":{"type":"string"},"defaultBranch":{"type":"string"},"private":{"type":"boolean"}},"required":["id","fullName","defaultBranch","private"]}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/members":{"get":{"operationId":"members.list","summary":"The organization's members, paged; ?q= narrows over the names and addresses, ?role= to admins or members.","tags":["members"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/operate/organization","security":[{"apiKey":["read"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"role","in":"query","required":false,"schema":{"type":"string","enum":["admin","member"]}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"imageUrl":{"type":["string","null"]},"role":{"type":"string","enum":["admin","member"]},"scope":{"type":"string","enum":["read","deploy","admin"]},"joinedAt":{"type":"string","description":"an ISO 8601 instant"},"lastActiveAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"keys":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"you":{"type":"boolean"}},"required":["userId","name","email","imageUrl","role","scope","joinedAt","lastActiveAt","keys","you"]}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/members/seats":{"get":{"operationId":"members.seats","summary":"The seats: the members, the pending invitations counted with them, the tier's cap, the admins.","tags":["members"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/operate/organization","security":[{"apiKey":["read"]}],"parameters":[],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"members":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cap":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"admins":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["members","pending","cap","admins"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/members/invitations":{"get":{"operationId":"invitations.list","summary":"The pending invitations, paged (an admin's: the addresses).","tags":["members"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/operate/organization","security":[{"apiKey":["admin"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["admin","member"]},"sentAt":{"type":"string","description":"an ISO 8601 instant"},"expiresAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"expired":{"type":"boolean"},"invitedBy":{"type":["string","null"]}},"required":["id","email","role","sentAt","expiresAt","expired","invitedBy"]}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}},"post":{"operationId":"invitations.create","summary":"Invites an address (an admin, a person alone): the tier's seats judged first, one email sent.","tags":["members"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/operate/organization","security":[{"apiKey":["admin"]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","minLength":3,"maxLength":254},"role":{"type":"string","enum":["admin","member"]}},"required":["email","role"]}}}},"responses":{"201":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["admin","member"]},"sentAt":{"type":"string","description":"an ISO 8601 instant"},"expiresAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"expired":{"type":"boolean"},"invitedBy":{"type":["string","null"]},"runId":{"type":["string","null"]}},"required":["id","email","role","sentAt","expiresAt","expired","invitedBy","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/members/invitations/{id}":{"delete":{"operationId":"invitations.revoke","summary":"Revokes a pending invitation (an admin, a person alone).","tags":["members"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/operate/organization","security":[{"apiKey":["admin"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"revoked":{"type":"boolean"},"runId":{"type":["string","null"]}},"required":["id","revoked","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/members/{userId}":{"patch":{"operationId":"members.role.set","summary":"Sets a member's role (an admin, a person alone; never your own row; the last admin stays); a demotion revokes their keys.","tags":["members"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/operate/organization","security":[{"apiKey":["admin"]}],"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["admin","member"]}},"required":["role"]}}}},"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"imageUrl":{"type":["string","null"]},"role":{"type":"string","enum":["admin","member"]},"scope":{"type":"string","enum":["read","deploy","admin"]},"joinedAt":{"type":"string","description":"an ISO 8601 instant"},"lastActiveAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"keys":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"you":{"type":"boolean"},"runId":{"type":["string","null"]}},"required":["userId","name","email","imageUrl","role","scope","joinedAt","lastActiveAt","keys","you","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}},"delete":{"operationId":"members.remove","summary":"Removes a member (an admin, a person alone; never your own row; the last admin stays); their keys are revoked.","tags":["members"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/operate/organization","security":[{"apiKey":["admin"]}],"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string"},"removed":{"type":"boolean"},"keysRevoked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"runId":{"type":["string","null"]}},"required":["userId","removed","keysRevoked","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/members/leave":{"post":{"operationId":"members.leave","summary":"Leaves the organization (a person, for themselves alone; the last admin stays); your keys under it are revoked.","tags":["members"],"x-scope":"user","x-docs":"https://durablesdk.com/docs/operate/organization","security":[{"apiKey":[]}],"parameters":[],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string"},"removed":{"type":"boolean"},"keysRevoked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"runId":{"type":["string","null"]}},"required":["userId","removed","keysRevoked","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/organization":{"patch":{"operationId":"organization.rename","summary":"Renames the organization (an admin, a person alone); the slug stays.","tags":["organization"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/operate/organization","security":[{"apiKey":["admin"]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128}},"required":["name"]}}}},"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"region":{"type":"string"},"plan":{"type":"string","enum":["free","pro","enterprise"]},"runId":{"type":["string","null"]}},"required":["id","name","slug","region","plan","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}},"delete":{"operationId":"organization.delete","summary":"Deletes the organization (an admin, a person alone): every key revoked, every app into the hold, the members lose it.","tags":["organization"],"x-scope":"admin","x-docs":"https://durablesdk.com/docs/operate/organization","security":[{"apiKey":["admin"]}],"parameters":[],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"tenantId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"deleted":{"type":"boolean","const":true},"keysRevoked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"appsHeld":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"runId":{"type":["string","null"]}},"required":["tenantId","deleted","keysRevoked","appsHeld","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/runs":{"get":{"operationId":"runs.list","summary":"The tenant's plane runs; ?state=limbo the stranded ones.","tags":["runs"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/reference/api","security":[{"apiKey":["read"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":["limbo","running","waiting","completed","failed"]}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"workflow":{"type":"string"},"state":{"type":"string","enum":["running","waiting","completed","failed","limbo","undone","continued"]},"startedAt":{"type":"string","description":"an ISO 8601 instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"steps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"state":{"type":"string"},"error":{"type":["string","null"]}},"required":["name","state","error"]}},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]}},"required":["id","workflow","state","startedAt","finishedAt","steps","error"]}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/runs/{runId}":{"get":{"operationId":"runs.get","summary":"A plane run with its steps; never an input or an image.","tags":["runs"],"x-scope":"read","x-docs":"https://durablesdk.com/docs/reference/api","security":[{"apiKey":["read"]}],"parameters":[{"name":"runId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"workflow":{"type":"string"},"state":{"type":"string","enum":["running","waiting","completed","failed","limbo","undone","continued"]},"startedAt":{"type":"string","description":"an ISO 8601 instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO 8601 instant"},{"type":"null"}]},"steps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"state":{"type":"string"},"error":{"type":["string","null"]}},"required":["name","state","error"]}},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]},{"type":"null"}]}},"required":["id","workflow","state","startedAt","finishedAt","steps","error"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/runs/{runId}/redrive":{"post":{"operationId":"runs.redrive","summary":"Redrives a run in limbo.","tags":["runs"],"x-scope":"deploy","x-docs":"https://durablesdk.com/docs/reference/api","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"runId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string","enum":["running","waiting","completed","failed","limbo","undone","continued"]},"runId":{"type":["string","null"]}},"required":["id","state","runId"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/explain":{"get":{"operationId":"explain","summary":"The registry row of an error code.","tags":["reference"],"x-scope":"none","x-docs":"https://durablesdk.com/docs/reference/api/errors","security":[],"parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"door":{"type":"string"},"sentence":{"type":"string"},"trap":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["id","status","door","sentence","trap","remedy","docs"]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/openapi.json":{"get":{"operationId":"openapi","summary":"This document.","tags":["reference"],"x-scope":"none","x-docs":"https://durablesdk.com/docs/reference/api","security":[],"parameters":[],"responses":{"200":{"description":"the answer","headers":{"X-Durable-Plane":{"schema":{"type":"string"},"description":"the API's version"}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/overview":{"get":{"operationId":"console.overview","summary":"The engine half of the console's Overview in one answer (the day's totals and health, the two latencies, the last ledger walk, what waits in limbo, where the schema and the Instance row stand), or what the host's composer wraps around it.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0046 §G","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"health":{"type":"object","properties":{"workflows":{"type":"array","items":{"$ref":"#/$defs/WorkflowHealth"}},"steps":{"type":"array","items":{"$ref":"#/$defs/StepHealth"}},"computedAt":{"type":"string","description":"an ISO instant"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"},"computing":{"description":"true while no stored copy of the window stands yet (its first read since API 2.191): the two tables empty, computedAt absent, the computation started off the response path; the next read serves what it lands. Absent once a copy stands.","type":"boolean"},"computeFailed":{"description":"true beside computing when the window's last compute failed (the claim row marked failed, cache.refresh_failed in the logs; CL-001's review of 2026-10-17): the tables are not merely young; the compute is tried again once the claim window has passed since the failure (CL-002: the window's own bound, two minutes for the day, never back to back under every stale reader). Absent otherwise.","type":"boolean"},"more":{"description":"under top=: how many rows of each table the cut left out (0 when none); absent without a cut","type":"object","properties":{"workflows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"steps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["workflows","steps"],"additionalProperties":false},"events":{"$ref":"#/$defs/EventLag"},"storage":{"description":"the framework tables' storage (ADR-0076 FP-015, API 2.127): what GET health carries, so the Overview's card reads it off the one answer","$ref":"#/$defs/HealthStorage"},"replica":{"description":"the read replica's lag (ADR-0078 D04, API 2.155): what GET health carries, so the Overview's tile reads it off the one answer","$ref":"#/$defs/HealthReplica"},"capacity":{"description":"the capacity card (ADR-0078 D05, API 2.157): what GET health carries, so the Overview's tile reads it off the one answer","$ref":"#/$defs/HealthCapacity"}},"required":["workflows","steps","events","storage","replica","capacity"],"additionalProperties":{}},"latency":{"$ref":"#/$defs/Latency"},"ledger":{"$ref":"#/$defs/Verify"},"limbo":{"type":"object","properties":{"inLimbo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"redrivable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dismissed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"parked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"autoPending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the runs in limbo the engine is still retrying (ADR-0084, API 2.195): their auto-redrive row pending under the bound"}},"required":["inLimbo","redrivable","dismissed","parked","autoPending"],"additionalProperties":false},"schema":{"$ref":"#/$defs/SchemaStatus"},"instance":{"$ref":"#/$defs/InstanceStatus"},"totals":{"type":"object","properties":{"runs24h":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the day's runs, the cached health row's sum over its workflows (FW-083; `asOf` its moment)"},"failed24h":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"of the day's runs, the FAILED and COMPENSATED ones, dismissed or not: the health row's sum (FW-083)"},"pendingEvents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failedEvents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"asOf":{"type":"string","description":"the moment runs24h and failed24h were computed at: the health row's computedAt (FW-083)"}},"required":["runs24h","failed24h","pendingEvents","failedEvents","asOf"],"additionalProperties":{}},"unreplayableOutputs":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"days":{"type":"array","items":{"type":"string"}}},"required":["count","days"],"additionalProperties":false},"wake":{"type":"object","properties":{"fast":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slow":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cron":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leftToCron":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"days":{"type":"array","items":{"type":"string"}}},"required":["fast","slow","cron","leftToCron","days"],"additionalProperties":false},"limits":{"$ref":"#/$defs/LimitsAnswer"},"archive":{"$ref":"#/$defs/ArchiveSummary"},"ledgerHeadRecord":{"anyOf":[{"$ref":"#/$defs/LedgerHeadRecord"},{"type":"null"}]}},"required":["health","latency","ledger","limbo","schema","instance","totals","unreplayableOutputs","wake","limits","archive"],"additionalProperties":{},"$defs":{"WorkflowHealth":{"type":"object","properties":{"workflow":{"type":"string"},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"running":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"successRate":{"type":"number"},"p50Ms":{"type":["number","null"]},"p95Ms":{"type":["number","null"]},"lastRunAt":{"type":"string","description":"an ISO instant"}},"required":["workflow","runs","completed","failed","running","successRate","p50Ms","p95Ms","lastRunAt"],"additionalProperties":false},"StepHealth":{"type":"object","properties":{"workflow":{"type":"string","description":"the workflow the step's rows belong to (FW-052, API 2.105): the summary is per (workflow, step), since one step name serves several definitions"},"name":{"type":"string"},"executions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"compensated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failureRate":{"type":"number"},"avgMs":{"type":["number","null"]},"p95Ms":{"type":["number","null"]}},"required":["workflow","name","executions","failed","compensated","failureRate","avgMs","p95Ms"],"additionalProperties":false},"EventLag":{"type":"object","properties":{"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"oldestPendingAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"lagSeconds":{"type":"number"},"claimed":{"type":"boolean"},"runId":{"type":["string","null"]},"deliveredLastHour":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scheduled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cancelled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dismissed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blockedHeadAgeMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the age in ms of the oldest exhausted or backing-off head blocking a partition (ADR-0076 FP-007), 0 when none; amber at fifteen minutes on the console"},"partition":{"type":"object","properties":{"oldest":{"description":"the partition of the oldest live row (pressure.oldest[0].partition); null with no live row, or on a row older code stored without one","type":["string","null"]},"ageS":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the oldest live row's age in whole seconds (pressure.oldest[0].ageS, the lag); 0 with none"},"verdict":{"type":"string","enum":["ok","amber"],"description":"amber when the oldest live row is fifteen minutes old or older after the dispatcher's pass (STALLED_PARTITION_MS): the partition is stalled, whatever holds its head, and the tick announces it as partition.stalled once an hour; ok under the bound or with no live row"}},"required":["oldest","ageS","verdict"],"additionalProperties":false,"description":"the partition SLO (ADR-0076 FP-017): the oldest live partition, its age and the verdict the console shows amber"}},"required":["pending","oldestPendingAt","lagSeconds","claimed","runId","deliveredLastHour","scheduled","cancelled","dismissed","blockedHeadAgeMs","partition"],"additionalProperties":false},"HealthStorageTable":{"type":"object","properties":{"table":{"type":"string","description":"the database's own name under the store's naming"},"canonical":{"type":"string","description":"the definition's name (WorkflowRun)"},"totalBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pg_total_relation_size: the heap with its TOAST and the indexes"},"heapBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pg_table_size: the heap with its TOAST"},"indexBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pg_indexes_size"},"liveRows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pg_stat_user_tables.n_live_tup"},"deadRows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pg_stat_user_tables.n_dead_tup"},"updates":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"n_tup_upd since the statistics' reset"},"hotUpdates":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"n_tup_hot_upd: the updates that wrote no index entry"},"newPageUpdates":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"n_tup_newpage_upd (Postgres 16): the updates whose new version landed on another page, what fillfactor 90 (schema version 25) takes to none on the rows the engine touches after their page filled"},"hotShare":{"description":"hotUpdates / updates over the statistics' lifetime, 0 to 1; null before the first update","type":["number","null"]},"growth":{"anyOf":[{"type":"object","properties":{"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"totalBytes less the previous reading's"},"sinceAt":{"type":"string","description":"the previous reading's moment"},"perDayBytes":{"description":"the growth as a daily rate once the window is an hour; null under it","type":["number","null"]}},"required":["bytes","sinceAt","perDayBytes"],"additionalProperties":false},{"type":"null"}],"description":"the growth against the previous reading (the settings row health.storage.previous, replaced on the first reading and once it is a day old); null on a table's first reading"}},"required":["table","canonical","totalBytes","heapBytes","indexBytes","liveRows","deadRows","updates","hotUpdates","newPageUpdates","hotShare","growth"],"additionalProperties":false},"HealthStorage":{"type":"object","properties":{"at":{"type":"string","description":"the reading's moment"},"previousAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"the previous reading's moment, what the growth is against; null on the first"},"tables":{"type":"array","items":{"$ref":"#/$defs/HealthStorageTable"},"description":"one row per framework table the database holds, in name order; empty on a store with no catalog"},"computedAt":{"type":"string","description":"an ISO instant"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"}},"required":["at","previousAt","tables","computedAt","cached"],"additionalProperties":false},"HealthReplica":{"type":"object","properties":{"at":{"type":"string","description":"the reading's moment: the writer's clock_timestamp() inside its statement, what the lag is judged at"},"down":{"type":"boolean","description":"true when the replica's position could not be read: the store carries no replica (DATABASE_URL_REPLICA unset) or the replica answered nothing; the console's reads are on the writer meanwhile"},"reason":{"anyOf":[{"type":"string","enum":["no_replica","unreachable","failed"]},{"type":"null"}],"description":"why it is down: no_replica (the store carries no read half, nothing read), unreachable (a connect or socket failure, the shape the console's reads fall back on), failed (the replica refused the statement); null when not down"},"code":{"description":"the driver's SQLSTATE or socket code behind the reason (ECONNREFUSED, 57P01); null when not down or none","type":["string","null"]},"standby":{"description":"pg_is_in_recovery() on the read half: true on a replica, false on a second pool over the writer itself (a laptop), which reads as caught up; null when down","type":["boolean","null"]},"replayAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"the commit moment of the last transaction the replica replayed (pg_last_xact_replay_timestamp(), stamped on the primary); null when down, on no standby, or before the standby replayed one"},"bytesBehind":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the WAL bytes the replica's replay position (pg_last_wal_replay_lsn()) is behind the writer's current one (pg_current_wal_lsn()), 0 once caught up; null when down"},"lagMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the age of the replica's view in ms: 0 while nothing is behind, else the writer's clock less replayAt; null when down, or behind with nothing replayed yet. The Overview shows it amber from REPLICA_LAG_WARN_MS (5 s) and red from REPLICA_LAG_RED_MS (30 s)"},"computedAt":{"type":"string","description":"when the copy was read (a minute's copy: the replica is read once a window, never once a request)"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"},"fallback":{"anyOf":[{"type":"object","properties":{"active":{"type":"boolean","description":"true while the console's reads go to the writer without asking the replica (store.replica.fallback opened a window)"},"readsLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the reads of the family left on the writer before the replica is asked again (REPLICA_PROBE_EVERY at the window's start)"},"windows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many fallback windows opened since this process built its store"},"conflicts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many console reads the writer answered after the replica (a hot standby) cancelled them with a recovery conflict (SQLSTATE 40001, store.replica.conflict: one per read, no fallback window opened) since this process built its store"},"conflictAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"when the writer last answered such a read; null while none"}},"required":["active","readsLeft","windows","conflicts","conflictAt"],"additionalProperties":false},{"type":"null"}],"description":"the store's fallback mark as it stands at the request (never from the copy: the mark is the process's own); null on a store with no replica"}},"required":["at","down","reason","code","standby","replayAt","bytesBehind","lagMs","computedAt","cached","fallback"],"additionalProperties":false},"CapacityDatabase":{"type":"object","properties":{"id":{"type":"string","description":"the card's id for the database: engine for the store's, the host's own ids for the rest (what capacity.pressure names)"},"name":{"description":"the database's own name where it is known (current_database()), else null","type":["string","null"]},"connections":{"anyOf":[{"type":"object","properties":{"clients":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the client backends on the database at the read"},"active":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the client backends in an active transaction at the read"},"serverClients":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the client backends on the whole server at the read"},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the server's max_connections"},"serverPool":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the pooler's server pool: 0.9 × max, whole"},"share":{"type":"number","description":"clients / serverPool"}},"required":["clients","active","serverClients","max","serverPool","share"],"additionalProperties":false},{"type":"null"}],"description":"the server's connections (one statement a window on the writer); null on a store with no server"},"compute":{"anyOf":[{"type":"object","properties":{"cu":{"description":"the mean compute units over the last refresh interval; null with the reason","type":["number","null"]},"minCu":{"type":["number","null"]},"maxCu":{"type":["number","null"]},"pinnedHours":{"description":"how many hours the compute has stood at its ceiling over the newest readings (0.95 × maxCu and up); 0 when the newest interval is under it; null with the reason","type":["number","null"]},"reason":{"type":["string","null"]}},"required":["cu","minCu","maxCu","pinnedHours","reason"],"additionalProperties":false},{"type":"null"}],"description":"the compute as the host's database platform row holds it; null without a database platform"},"storage":{"anyOf":[{"$ref":"#/$defs/CapacityStorage"},{"type":"null"}]},"tables":{"type":"array","items":{"type":"object","properties":{"table":{"type":"string","description":"the definition's canonical name"},"totalBytes":{"type":"number"},"heapBytes":{"type":"number"},"liveRows":{"type":"number"},"deadRows":{"type":"number"},"deadShare":{"type":"number","description":"deadRows / (liveRows + deadRows), 0 on an empty table"},"bloatBytes":{"type":"number","description":"the dead rows' share of the heap, heapBytes × deadShare: the bloat estimate"},"vacuumTrigger":{"description":"the effective autovacuum trigger (the host's doctor reading); null where the host reads none","type":["number","null"]},"lastAutovacuumAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]}},"required":["table","totalBytes","heapBytes","liveRows","deadRows","deadShare","bloatBytes","vacuumTrigger","lastAutovacuumAt"],"additionalProperties":false},"description":"the framework tables in name order, the host's trigger beside each; empty on a store with no catalog"},"biggest":{"type":"array","items":{"type":"object","properties":{"table":{"type":"string"},"totalBytes":{"type":"number"}},"required":["table","totalBytes"],"additionalProperties":false},"description":"the five biggest tables by total bytes, biggest first"},"replica":{"anyOf":[{"type":"object","properties":{"lagMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"down":{"type":"boolean"},"reason":{"type":["string","null"]}},"required":["lagMs","down","reason"],"additionalProperties":false},{"type":"null"}],"description":"the replica's lag off health.replica; null on a host's own database"},"partitions":{"anyOf":[{"type":"object","properties":{"oldestAgeMs":{"description":"the oldest live row's age over every partition read, in ms; null with no live row","type":["number","null"]},"oldest":{"type":"array","items":{"type":"object","properties":{"partition":{"type":["string","null"]},"ageMs":{"type":"number"}},"required":["partition","ageMs"],"additionalProperties":false},"description":"the worst partitions, oldest first, at most PRESSURE_OLDEST_LIMIT"}},"required":["oldestAgeMs","oldest"],"additionalProperties":false},{"type":"null"}],"description":"the outbox's lag per partition (the pressure section's own read); null on a host's own database"},"archive":{"anyOf":[{"type":"object","properties":{"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bytes":{"description":"OutboxArchive's bytes off the storage reading; null off a store with no catalog","type":["number","null"]},"archiveDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rows","bytes","archiveDays"],"additionalProperties":false},{"type":"null"}]},"ledger":{"anyOf":[{"type":"object","properties":{"rows":{"description":"the ledger's live rows off the storage reading","type":["number","null"]},"lastDay":{"anyOf":[{"type":"object","properties":{"day":{"type":"string"},"rows":{"type":"number"}},"required":["day","rows"],"additionalProperties":false},{"type":"null"}],"description":"the last recorded day (the daily head records) and the rows it added"},"meanPerDay":{"description":"the mean rows a day over the recorded days before the last","type":["number","null"]},"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many recorded days the mean is over"},"factor":{"description":"lastDay.rows / meanPerDay; null without both or at a zero mean","type":["number","null"]}},"required":["rows","lastDay","meanPerDay","days","factor"],"additionalProperties":false},{"type":"null"}]},"fileCache":{"anyOf":[{"type":"object","properties":{"hitRatio":{"description":"hits over hits and misses since the compute started","type":["number","null"]},"intervalHitRatio":{"description":"the same over the newest interval; null on one reading or a reset","type":["number","null"]},"reason":{"type":["string","null"]}},"required":["hitRatio","intervalHitRatio","reason"],"additionalProperties":false},{"type":"null"}],"description":"the compute's local file cache as the host's database platform row holds it; null without one"}},"required":["id","name","connections","compute","storage","tables","biggest","replica","partitions","archive","ledger","fileCache"],"additionalProperties":false},"CapacityStorage":{"type":"object","properties":{"bytes":{"type":["number","null"]},"capBytes":{"description":"the cap the share is judged against (a tier's, a plan's, the server's own ceiling); null when none is known","type":["number","null"]},"share":{"description":"bytes / capBytes; null without both","type":["number","null"]},"source":{"description":"where the cap comes from, in the host's words; null without one","type":["string","null"]}},"required":["bytes","capBytes","share","source"],"additionalProperties":false},"CapacityThresholds":{"type":"object","properties":{"connectionsShare":{"type":"number","description":"the client backends on the database over the pooler's server pool (0.9 × max_connections), 0 to 1; 0.8 by default"},"cuPinnedHours":{"type":"number","description":"hours the compute may stand at its ceiling; 1 by default"},"storageShare":{"type":"number","description":"the storage over its cap, 0 to 1; 0.8 by default"},"deadShare":{"type":"number","description":"a hot table's dead rows over its rows, 0 to 1; 0.1 by default"},"autovacuumFactor":{"type":"number","description":"a hot table's dead rows over its own effective autovacuum trigger; the alert rule autovacuum's number (2 by default)"},"replicaLagMs":{"type":"number","description":"the replica's lag in ms; the alert rule replica.lag's number (REPLICA_LAG_WARN_MS, 5 000 by default)"},"partitionAgeMs":{"type":"number","description":"the oldest live row's age in ms; STALLED_PARTITION_MS (15 minutes) by default"},"archiveBytes":{"type":"number","description":"the archive's bytes; 1 GiB by default"},"ledgerDayFactor":{"type":"number","description":"the ledger's last recorded day over the mean of the days before; 2 by default"},"fileCacheHitRatio":{"type":"number","description":"the file cache's hit ratio under which the compute reads the disk, 0 to 1; 0.9 by default (the one measure that breaches below)"}},"required":["connectionsShare","cuPinnedHours","storageShare","deadShare","autovacuumFactor","replicaLagMs","partitionAgeMs","archiveBytes","ledgerDayFactor","fileCacheHitRatio"],"additionalProperties":false},"HealthCapacity":{"type":"object","properties":{"at":{"type":"string","description":"the reading's moment"},"databases":{"type":"array","items":{"$ref":"#/$defs/CapacityDatabase"},"description":"the engine's database first (id engine), the host's after it"},"thresholds":{"description":"the thresholds in force: the host's row over the defaults, the alert rules' numbers where a rule owns one","$ref":"#/$defs/CapacityThresholds"},"breaches":{"type":"array","items":{"type":"object","properties":{"database":{"type":"string"},"measure":{"type":"string","enum":["connections","cu","storage","deadShare","autovacuum","replica","partitions","archive","ledger","fileCache"]},"value":{"type":"number"},"threshold":{"type":"number"}},"required":["database","measure","value","threshold"],"additionalProperties":false},"description":"every measure past its threshold (the file cache's under it), in the databases' and the measures' order; what the daily capacity.doctor emits one capacity.pressure a day for; nothing from an unknown reading"},"computedAt":{"type":"string","description":"when the copy was read (a minute's copy)"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"}},"required":["at","databases","thresholds","breaches","computedAt","cached"],"additionalProperties":false},"Latency":{"type":"object","properties":{"events":{"$ref":"#/$defs/EventLatency"},"ledger":{"$ref":"#/$defs/LedgerLatency"}},"required":["events","ledger"],"additionalProperties":false},"EventLatency":{"type":"object","properties":{"windowMinutes":{"type":"number"},"local":{"$ref":"#/$defs/EventLatencyGroup"},"relayed":{"$ref":"#/$defs/EventLatencyGroup"},"computedAt":{"type":"string","description":"an ISO instant"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"}},"required":["windowMinutes","local","relayed","computedAt","cached"],"additionalProperties":false},"EventLatencyGroup":{"type":"object","properties":{"first":{"$ref":"#/$defs/LatencyPercentiles"},"retried":{"$ref":"#/$defs/LatencyPercentiles"},"all":{"$ref":"#/$defs/LatencyPercentiles"}},"required":["first","retried","all"],"additionalProperties":false},"LatencyPercentiles":{"type":"object","properties":{"p50Ms":{"type":["number","null"]},"p95Ms":{"type":["number","null"]},"maxMs":{"type":["number","null"]},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["p50Ms","p95Ms","maxMs","n"],"additionalProperties":false},"LedgerLatency":{"type":"object","properties":{"p50Ms":{"type":["number","null"]},"p95Ms":{"type":["number","null"]},"maxMs":{"type":["number","null"]},"instanceStartedAt":{"type":"string","description":"an ISO instant"},"capacity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"lockWait":{"type":"object","properties":{"p50Ms":{"type":["number","null"]},"p95Ms":{"type":["number","null"]},"maxMs":{"type":["number","null"]}},"required":["p50Ms","p95Ms","maxMs"],"additionalProperties":false},"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"retried":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slow":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slowAboveMs":{"type":"number"},"outcomes":{"type":"object","properties":{"ok":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fenced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"landed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ok","fenced","landed","failed"],"additionalProperties":false}},"required":["p50Ms","p95Ms","maxMs","instanceStartedAt","capacity","n","total","lastAt","lockWait","rows","retried","slow","slowAboveMs","outcomes"],"additionalProperties":false},"Verify":{"type":"object","properties":{"ok":{"type":"boolean"},"chain":{"type":"string"},"chains":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"},"appendOnly":{"type":"object","properties":{"present":{"type":"boolean"},"enabled":{"type":"boolean"}},"required":["present","enabled"],"additionalProperties":false},"scopes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"ok":{"type":"boolean"},"entries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"brokenAt":{"type":"string"},"interleaved":{"type":"array","items":{"type":"string"}}},"required":["ok","entries"],"additionalProperties":{}}},"legacyEntries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"walked":{"description":"what the walk read (FW-103): the checkpoint's bound it started above (null from genesis), the rows and page statements of the chain scan, its wall time, and whether every row was recomputed from genesis (`full`, the audit) or the walk stood on the last clean walk's checkpoint (the console's refresh); absent on a copy stored before the field","type":"object","properties":{"from":{"type":["string","null"]},"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ms":{"type":"number"},"full":{"type":"boolean"}},"required":["from","rows","pages","ms","full"],"additionalProperties":false},"months":{"description":"the ledger by month (ADR-0078 D08, API 2.161): one entry per calendar month the ledger spans (UTC, `YYYY-MM`, ascending), `rows` what the month holds (the rows walked for a walked month, the store's estimate for a sealed one, null before a partition's first vacuum) and how it was judged (`walk`: every row recomputed, the current month, the previous and any month with no seal; `seal`: the month's tail per scope held to the signed head record of `seal`, the first taken after the month ended); absent on a cold or checkpointed walk and on a copy stored before the field","type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"rows":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"judged":{"type":"string","enum":["walk","seal"]},"seal":{"type":"string"}},"required":["month","rows","judged"],"additionalProperties":false}},"computedAt":{"type":"string","description":"an ISO instant"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"}},"required":["ok","chain","chains","appendOnly","scopes","legacyEntries"],"additionalProperties":false},"SchemaStatus":{"type":"object","properties":{"state":{"type":"string","enum":["ok","ahead","behind","missing","naming_mismatch","drifted","unverified","error","unprobed"]},"version":{"type":["number","null"]},"required":{"type":"number"},"min":{"type":"number"},"naming":{"anyOf":[{"type":"string","enum":["snake","prisma-legacy","custom"]},{"type":"null"}]},"recordedNaming":{"type":["string","null"]},"dialect":{"anyOf":[{"type":"string","const":"postgres"},{"type":"null"}]},"guard":{"anyOf":[{"type":"string","enum":["trigger","role","none"]},{"type":"null"}]},"catalog":{"anyOf":[{"$ref":"#/$defs/SchemaCatalog"},{"type":"null"}]},"policy":{"type":"string","enum":["refuse","warn","mixed"]},"rules":{"$ref":"#/$defs/SchemaPolicyRules"},"probedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"when the standing verdict was last checked against the database: the last probe's moment (ADR-0076 FP-016; an ok is checked again an hour on, every other state a minute on); null before the first probe"},"nextCheckAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"when the standing verdict is looked at again: checkedAt plus the state's window (an hour for ok, a minute otherwise); null before the first probe"},"since":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"when the standing state was first found, kept across the re-probes that confirm it (a drift reads 'drifted since'); null before the first probe"},"error":{"type":"string"}},"required":["state","version","required","min","naming","recordedNaming","dialect","guard","catalog","policy","rules","probedAt","checkedAt","nextCheckAt","since"],"additionalProperties":false},"SchemaCatalog":{"type":"object","properties":{"state":{"type":"string","enum":["ok","drifted","unverified"]},"recorded":{"type":["string","null"]},"live":{"type":["string","null"]},"reason":{"type":["string","null"]}},"required":["state","recorded","live","reason"],"additionalProperties":false},"SchemaPolicyRules":{"type":"object","properties":{"behind":{"type":"string","enum":["refuse","warn"]},"drifted":{"type":"string","enum":["refuse","warn"]},"naming":{"type":"string","enum":["refuse","warn"]},"ahead":{"type":"string","enum":["refuse","warn"]}},"required":["behind","drifted","naming","ahead"],"additionalProperties":false},"InstanceStatus":{"type":"object","properties":{"state":{"type":"string","enum":["ok","absent","mismatch","unknown"]},"name":{"type":["string","null"]},"role":{"anyOf":[{"$ref":"#/$defs/EnvironmentRole"},{"type":"null"}]},"found":{"type":["string","null"]},"schemaVersion":{"type":"number"},"bootedAt":{"type":"string","description":"an ISO instant"},"refusing":{"type":"boolean"},"probedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"error":{"type":"string"}},"required":["state","name","role","found","refusing","probedAt"],"additionalProperties":false},"EnvironmentRole":{"type":"string","enum":["production","preview","local"]},"LimitsAnswer":{"type":"object","properties":{"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"relayExpiringDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contract":{"$ref":"#/$defs/TimeContract"},"retention":{"description":"the retention windows in force (FW-089, API 2.107): what the daily retention.apply pass prunes by, the Overview and the run page read the listener and the step windows off it","$ref":"#/$defs/RetentionWindows"},"answerBytesMax":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the bytes every JSON answer of this API is held under (ANSWER_BYTES_MAX, 4 000 000: under the platform's response cap with the headers' room; ADR-0076 FP-041): over it the bundle's and the run page's lists are cut in order and counted on truncated (truncated.bytes beside), a bare page's newest rows kept and the cut said on X-Durable-Truncated, and an answer with no list to cut refused 413 { error }, never the platform's 500"},"answerBytesWarn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the bytes over which an answer is said as console.api.large and counted on count.console.api.large.<day>, pressure.answers.large on the Workers view (ANSWER_BYTES_WARN, 1 000 000; ADR-0065 V-03)"}},"required":["maxAttempts","relayExpiringDays","contract","retention","answerBytesMax","answerBytesWarn"],"additionalProperties":false},"TimeContract":{"type":"object","properties":{"maxDurationS":{"type":"number","description":"the function limit every framework route pins, s"},"maxDurationMs":{"type":"number","description":"the same, ms (D)"},"reserveMs":{"type":"number","description":"the platform's reserve, ms (R): the last second of every invocation the engine keeps"},"userStepMaxMs":{"type":"number","description":"the most a step may hold in one invocation, ms: D − R"},"stepNeedsDefaultMs":{"type":"number","description":"what a step is assumed to need of the budget when it declared nothing, ms"},"heartbeatMs":{"type":"number"},"leaseMs":{"type":"number","description":"the lease: the limit plus two heartbeats, ms"},"killGraceMs":{"type":"number","description":"the grace after a stored kill before the run is claimed again, ms"},"externalCallTimeoutMs":{"type":"number","description":"a non-idempotent provider call's in-flight window, ms"},"dispatchBudget":{"type":"object","properties":{"defaultMs":{"type":"number"},"minMs":{"type":"number"},"maxMs":{"type":"number"}},"required":["defaultMs","minMs","maxMs"],"additionalProperties":false},"tickTailMs":{"type":"number","description":"the tick's tail after its lanes, ms (ADR-0066 D09, T04: the resumer's one step at the default need, the relay's send and its last POST)"},"wake":{"type":"object","properties":{"timeoutMs":{"type":"number"},"maxDelayS":{"type":"number"},"ttlS":{"type":"number"},"againMax":{"type":"number"}},"required":["timeoutMs","maxDelayS","ttlS","againMax"],"additionalProperties":false},"relay":{"type":"object","properties":{"claimLeaseMs":{"type":"number"},"budgetMs":{"type":"number"},"maxBodyBytes":{"type":"number"},"envelopeBytes":{"type":"number"},"batch":{"type":"number"},"maxEvents":{"type":"number"},"expiringDays":{"type":"number"}},"required":["claimLeaseMs","budgetMs","maxBodyBytes","envelopeBytes","batch","maxEvents","expiringDays"],"additionalProperties":false},"sizes":{"type":"object","properties":{"maxIoChars":{"type":"number"},"maxEventPayloadChars":{"type":"number"},"maxCapturedLines":{"type":"number"}},"required":["maxIoChars","maxEventPayloadChars","maxCapturedLines"],"additionalProperties":false},"attempts":{"type":"object","properties":{"maxAttempts":{"type":"number"},"resumeMaxAttempts":{"type":"number"},"batchMaxConcurrency":{"type":"number"},"poolGateSpare":{"type":"number","description":"the connections the pool gate leaves outside it (ADR-0076 FP-014, API 2.124): the engine's inline drains, batch waves and partition wakes hold at most the store's pool less this in flight at once, a statement past it waiting in turn and never failing"}},"required":["maxAttempts","resumeMaxAttempts","batchMaxConcurrency","poolGateSpare"],"additionalProperties":false},"platform":{"anyOf":[{"$ref":"#/$defs/PlatformLimits"},{"type":"null"}],"description":"what the bound platform says of its own limits; null when it binds none"},"host":{"type":"object","properties":{"routes":{"anyOf":[{"type":"object","properties":{"count":{"type":"number"},"maxDurationS":{"type":"number"}},"required":["count","maxDurationS"],"additionalProperties":false},{"type":"null"}],"description":"the framework routes that pin the limit as a literal, and the limit they pin; null when the host declared none"},"configured":{"type":"object","properties":{"memory":{"description":"the memory tier the host declared its projects at; null when it declared none","type":["string","null"]}},"required":["memory"],"additionalProperties":false}},"required":["routes","configured"],"additionalProperties":false},"formulas":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"each derived number's formula, as a string, by its field"},"rows":{"type":"array","items":{"$ref":"#/$defs/LimitRow"},"description":"the rows the Limits page and the CLI show, three columns each, the reason beside a number that stays by decision"}},"required":["maxDurationS","maxDurationMs","reserveMs","userStepMaxMs","stepNeedsDefaultMs","heartbeatMs","leaseMs","killGraceMs","externalCallTimeoutMs","dispatchBudget","tickTailMs","wake","relay","sizes","attempts","platform","host","formulas","rows"],"additionalProperties":false},"PlatformLimits":{"type":"object","properties":{"provider":{"type":"string"},"plan":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"extended":{"type":"boolean"},"readAt":{"type":"string","description":"the day the plan row was read, ISO date"},"source":{"type":"array","items":{"type":"string"},"description":"the pages the row was read from"}},"required":["name","extended","readAt","source"],"additionalProperties":false},{"type":"null"}]},"limits":{"anyOf":[{"type":"object","properties":{"maxDurationS":{"type":"number"},"extendedMaxDurationS":{"type":["number","null"]},"defaultMaxDurationS":{"type":"number"},"memory":{"type":"object","properties":{"default":{"type":"string"},"max":{"type":"string"},"tiers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"gb":{"type":["number","null"]},"vcpu":{"type":["number","null"]}},"required":["gb","vcpu"],"additionalProperties":false}}},"required":["default","max","tiers"],"additionalProperties":false},"requestBodyBytes":{"type":"number"},"responseBodyBytes":{"type":"number"},"responseStreamingExempt":{"type":"boolean"},"cron":{"type":"object","properties":{"minS":{"type":"number"},"precisionS":{"type":"number"},"jobsMax":{"type":"number"}},"required":["minS","precisionS","jobsMax"],"additionalProperties":false},"queue":{"type":"object","properties":{"maxDelayS":{"type":"number"},"retentionMaxS":{"type":"number"},"retentionMinS":{"type":"number"},"visibilityTimeoutMaxS":{"type":"number"}},"required":["maxDelayS","retentionMaxS","retentionMinS","visibilityTimeoutMaxS"],"additionalProperties":false},"concurrentExecutions":{"type":"number"}},"required":["maxDurationS","extendedMaxDurationS","defaultMaxDurationS","memory","requestBodyBytes","responseBodyBytes","responseStreamingExempt","cron","queue","concurrentExecutions"],"additionalProperties":false},{"type":"null"}],"description":"the plan's published limits; null for a host that bound a limit and no plan"},"wake":{"type":"object","properties":{"timerHoldMarginMs":{"type":"number"},"timerHoldMax":{"type":"number","description":"the most timers one process holds at once (ADR-0105 D09 as amended 2026-10-30); past it a timer inside the window is the cron minute's"}},"required":["timerHoldMarginMs","timerHoldMax"],"additionalProperties":false},"consumer":{"type":"object","properties":{"maxDurationS":{"type":"number"},"forwardTimeoutMs":{"type":"number"},"maxConcurrency":{"type":"number"}},"required":["maxDurationS","forwardTimeoutMs","maxConcurrency"],"additionalProperties":false},"inline":{"type":"object","properties":{"concurrency":{"type":"number"},"backlogMax":{"type":"number"},"passesMax":{"type":"number"}},"required":["concurrency","backlogMax","passesMax"],"additionalProperties":false}},"required":["provider","plan","limits","wake","consumer","inline"],"additionalProperties":false},"LimitRow":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"gives":{"description":"what the platform gives at the plan's maximum; null where the row is the engine's alone","type":["string","null"]},"uses":{"description":"what this host uses","type":["string","null"]},"yours":{"description":"what the user gets","type":["string","null"]},"why":{"description":"the reason a number stays by decision (ADR-0066 D14); null for a derived number or a platform ceiling","type":["string","null"]}},"required":["id","name","gives","uses","yours","why"],"additionalProperties":false},"RetentionWindows":{"type":"object","properties":{"runsDays":{"type":"number","description":"a COMPLETED, unledgered run and its steps go after this many days (ADR-0026)"},"stepsDays":{"type":"number","description":"a COMPLETED run's step rows go after this many days whatever its ledger (FW-089; ADR-0026 amendment 2026-10-09): the run, its key and its ledger rows stand"},"listenerRunsDays":{"type":"number","description":"a COMPLETED, unledgered listener run (listener.<name>) goes with its steps and its key after this many days (FW-089), between outboxDays and runsDays"},"outboxDays":{"type":"number","description":"a delivered fact goes after this many days"},"outboxUnsentDays":{"type":"number","description":"a local fact a peer has not acknowledged waits this many days with the relay on"},"idempotencyDays":{"type":"number","description":"a ledgered COMPLETED run's key goes after this many days"},"archiveDays":{"type":"number","description":"an archived fact (OutboxArchive, ADR-0076 FP-027; API 2.129) stands this many days past its archivedAt, 30 by default and 365 at most; no pass reads it until FP-027's engine lands"},"batch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"rows per statement"}},"required":["runsDays","stepsDays","listenerRunsDays","outboxDays","outboxUnsentDays","idempotencyDays","archiveDays","batch"],"additionalProperties":false},"ArchiveSummary":{"type":"object","properties":{"at":{"type":"string","description":"the reading's moment"},"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the archived facts the statistics count (OutboxArchive's live rows, the statistics' estimate; exact on a double over maps)"},"oldestAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"the oldest archived fact's own moment (occurredAt), null on an empty archive: how far back a replay reaches today"},"newestAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"the newest archived fact's own moment, null on an empty archive"},"archiveDays":{"type":"number","description":"the window in force (limits.retention.archiveDays): the days a delivered fact stays replayable from its own moment, 0 for the archive off"},"outboxDays":{"type":"number","description":"the outbox window in force: a fact younger than this is replayed from the live table, an older one from the archive"},"computedAt":{"type":"string","description":"an ISO instant"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"}},"required":["at","rows","oldestAt","newestAt","archiveDays","outboxDays","computedAt","cached"],"additionalProperties":false},"LedgerHeadRecord":{"type":"object","properties":{"day":{"type":"string","description":"the UTC day the record covers, YYYY-MM-DD"},"kid":{"type":"string","description":"the signing key's id, the first 8 hex of its SHA-256; never the key"},"digest":{"type":"string","description":"SHA-256 over the record's canonical JSON without its signature: what the ledger row under ledger_head_record images and what a bucket's copy is compared by"},"sink":{"type":"string","enum":["bucket","settings"],"description":"where the write-once copy went: the backup bucket under its object lock, or the settings row alone when no bucket is configured"},"scopes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many scopes' heads the record names"},"at":{"type":"string","description":"when the heads were read"}},"required":["day","kid","digest","sink","scopes","at"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/limits":{"get":{"operationId":"console.limits","summary":"The dispatcher's and the relay's limits and the time contract (every number a workflow author's time is bounded by, with the platform's plan row, the host's routes row, the formulas and the Limits page's rows), the retention windows in force and, since API 2.145, the answer bounds (answerBytesMax, the bytes every answer of this API is held under; answerBytesWarn, over which one is said and counted): constants and the bound configuration, no store.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0041 item 36; ADR-0066 D12","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/$defs/LimitsAnswer","$defs":{"LimitsAnswer":{"type":"object","properties":{"maxAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"relayExpiringDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contract":{"$ref":"#/$defs/TimeContract"},"retention":{"description":"the retention windows in force (FW-089, API 2.107): what the daily retention.apply pass prunes by, the Overview and the run page read the listener and the step windows off it","$ref":"#/$defs/RetentionWindows"},"answerBytesMax":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the bytes every JSON answer of this API is held under (ANSWER_BYTES_MAX, 4 000 000: under the platform's response cap with the headers' room; ADR-0076 FP-041): over it the bundle's and the run page's lists are cut in order and counted on truncated (truncated.bytes beside), a bare page's newest rows kept and the cut said on X-Durable-Truncated, and an answer with no list to cut refused 413 { error }, never the platform's 500"},"answerBytesWarn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the bytes over which an answer is said as console.api.large and counted on count.console.api.large.<day>, pressure.answers.large on the Workers view (ANSWER_BYTES_WARN, 1 000 000; ADR-0065 V-03)"}},"required":["maxAttempts","relayExpiringDays","contract","retention","answerBytesMax","answerBytesWarn"],"additionalProperties":false},"TimeContract":{"type":"object","properties":{"maxDurationS":{"type":"number","description":"the function limit every framework route pins, s"},"maxDurationMs":{"type":"number","description":"the same, ms (D)"},"reserveMs":{"type":"number","description":"the platform's reserve, ms (R): the last second of every invocation the engine keeps"},"userStepMaxMs":{"type":"number","description":"the most a step may hold in one invocation, ms: D − R"},"stepNeedsDefaultMs":{"type":"number","description":"what a step is assumed to need of the budget when it declared nothing, ms"},"heartbeatMs":{"type":"number"},"leaseMs":{"type":"number","description":"the lease: the limit plus two heartbeats, ms"},"killGraceMs":{"type":"number","description":"the grace after a stored kill before the run is claimed again, ms"},"externalCallTimeoutMs":{"type":"number","description":"a non-idempotent provider call's in-flight window, ms"},"dispatchBudget":{"type":"object","properties":{"defaultMs":{"type":"number"},"minMs":{"type":"number"},"maxMs":{"type":"number"}},"required":["defaultMs","minMs","maxMs"],"additionalProperties":false},"tickTailMs":{"type":"number","description":"the tick's tail after its lanes, ms (ADR-0066 D09, T04: the resumer's one step at the default need, the relay's send and its last POST)"},"wake":{"type":"object","properties":{"timeoutMs":{"type":"number"},"maxDelayS":{"type":"number"},"ttlS":{"type":"number"},"againMax":{"type":"number"}},"required":["timeoutMs","maxDelayS","ttlS","againMax"],"additionalProperties":false},"relay":{"type":"object","properties":{"claimLeaseMs":{"type":"number"},"budgetMs":{"type":"number"},"maxBodyBytes":{"type":"number"},"envelopeBytes":{"type":"number"},"batch":{"type":"number"},"maxEvents":{"type":"number"},"expiringDays":{"type":"number"}},"required":["claimLeaseMs","budgetMs","maxBodyBytes","envelopeBytes","batch","maxEvents","expiringDays"],"additionalProperties":false},"sizes":{"type":"object","properties":{"maxIoChars":{"type":"number"},"maxEventPayloadChars":{"type":"number"},"maxCapturedLines":{"type":"number"}},"required":["maxIoChars","maxEventPayloadChars","maxCapturedLines"],"additionalProperties":false},"attempts":{"type":"object","properties":{"maxAttempts":{"type":"number"},"resumeMaxAttempts":{"type":"number"},"batchMaxConcurrency":{"type":"number"},"poolGateSpare":{"type":"number","description":"the connections the pool gate leaves outside it (ADR-0076 FP-014, API 2.124): the engine's inline drains, batch waves and partition wakes hold at most the store's pool less this in flight at once, a statement past it waiting in turn and never failing"}},"required":["maxAttempts","resumeMaxAttempts","batchMaxConcurrency","poolGateSpare"],"additionalProperties":false},"platform":{"anyOf":[{"$ref":"#/$defs/PlatformLimits"},{"type":"null"}],"description":"what the bound platform says of its own limits; null when it binds none"},"host":{"type":"object","properties":{"routes":{"anyOf":[{"type":"object","properties":{"count":{"type":"number"},"maxDurationS":{"type":"number"}},"required":["count","maxDurationS"],"additionalProperties":false},{"type":"null"}],"description":"the framework routes that pin the limit as a literal, and the limit they pin; null when the host declared none"},"configured":{"type":"object","properties":{"memory":{"description":"the memory tier the host declared its projects at; null when it declared none","type":["string","null"]}},"required":["memory"],"additionalProperties":false}},"required":["routes","configured"],"additionalProperties":false},"formulas":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"each derived number's formula, as a string, by its field"},"rows":{"type":"array","items":{"$ref":"#/$defs/LimitRow"},"description":"the rows the Limits page and the CLI show, three columns each, the reason beside a number that stays by decision"}},"required":["maxDurationS","maxDurationMs","reserveMs","userStepMaxMs","stepNeedsDefaultMs","heartbeatMs","leaseMs","killGraceMs","externalCallTimeoutMs","dispatchBudget","tickTailMs","wake","relay","sizes","attempts","platform","host","formulas","rows"],"additionalProperties":false},"PlatformLimits":{"type":"object","properties":{"provider":{"type":"string"},"plan":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"extended":{"type":"boolean"},"readAt":{"type":"string","description":"the day the plan row was read, ISO date"},"source":{"type":"array","items":{"type":"string"},"description":"the pages the row was read from"}},"required":["name","extended","readAt","source"],"additionalProperties":false},{"type":"null"}]},"limits":{"anyOf":[{"type":"object","properties":{"maxDurationS":{"type":"number"},"extendedMaxDurationS":{"type":["number","null"]},"defaultMaxDurationS":{"type":"number"},"memory":{"type":"object","properties":{"default":{"type":"string"},"max":{"type":"string"},"tiers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"gb":{"type":["number","null"]},"vcpu":{"type":["number","null"]}},"required":["gb","vcpu"],"additionalProperties":false}}},"required":["default","max","tiers"],"additionalProperties":false},"requestBodyBytes":{"type":"number"},"responseBodyBytes":{"type":"number"},"responseStreamingExempt":{"type":"boolean"},"cron":{"type":"object","properties":{"minS":{"type":"number"},"precisionS":{"type":"number"},"jobsMax":{"type":"number"}},"required":["minS","precisionS","jobsMax"],"additionalProperties":false},"queue":{"type":"object","properties":{"maxDelayS":{"type":"number"},"retentionMaxS":{"type":"number"},"retentionMinS":{"type":"number"},"visibilityTimeoutMaxS":{"type":"number"}},"required":["maxDelayS","retentionMaxS","retentionMinS","visibilityTimeoutMaxS"],"additionalProperties":false},"concurrentExecutions":{"type":"number"}},"required":["maxDurationS","extendedMaxDurationS","defaultMaxDurationS","memory","requestBodyBytes","responseBodyBytes","responseStreamingExempt","cron","queue","concurrentExecutions"],"additionalProperties":false},{"type":"null"}],"description":"the plan's published limits; null for a host that bound a limit and no plan"},"wake":{"type":"object","properties":{"timerHoldMarginMs":{"type":"number"},"timerHoldMax":{"type":"number","description":"the most timers one process holds at once (ADR-0105 D09 as amended 2026-10-30); past it a timer inside the window is the cron minute's"}},"required":["timerHoldMarginMs","timerHoldMax"],"additionalProperties":false},"consumer":{"type":"object","properties":{"maxDurationS":{"type":"number"},"forwardTimeoutMs":{"type":"number"},"maxConcurrency":{"type":"number"}},"required":["maxDurationS","forwardTimeoutMs","maxConcurrency"],"additionalProperties":false},"inline":{"type":"object","properties":{"concurrency":{"type":"number"},"backlogMax":{"type":"number"},"passesMax":{"type":"number"}},"required":["concurrency","backlogMax","passesMax"],"additionalProperties":false}},"required":["provider","plan","limits","wake","consumer","inline"],"additionalProperties":false},"LimitRow":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"gives":{"description":"what the platform gives at the plan's maximum; null where the row is the engine's alone","type":["string","null"]},"uses":{"description":"what this host uses","type":["string","null"]},"yours":{"description":"what the user gets","type":["string","null"]},"why":{"description":"the reason a number stays by decision (ADR-0066 D14); null for a derived number or a platform ceiling","type":["string","null"]}},"required":["id","name","gives","uses","yours","why"],"additionalProperties":false},"RetentionWindows":{"type":"object","properties":{"runsDays":{"type":"number","description":"a COMPLETED, unledgered run and its steps go after this many days (ADR-0026)"},"stepsDays":{"type":"number","description":"a COMPLETED run's step rows go after this many days whatever its ledger (FW-089; ADR-0026 amendment 2026-10-09): the run, its key and its ledger rows stand"},"listenerRunsDays":{"type":"number","description":"a COMPLETED, unledgered listener run (listener.<name>) goes with its steps and its key after this many days (FW-089), between outboxDays and runsDays"},"outboxDays":{"type":"number","description":"a delivered fact goes after this many days"},"outboxUnsentDays":{"type":"number","description":"a local fact a peer has not acknowledged waits this many days with the relay on"},"idempotencyDays":{"type":"number","description":"a ledgered COMPLETED run's key goes after this many days"},"archiveDays":{"type":"number","description":"an archived fact (OutboxArchive, ADR-0076 FP-027; API 2.129) stands this many days past its archivedAt, 30 by default and 365 at most; no pass reads it until FP-027's engine lands"},"batch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"rows per statement"}},"required":["runsDays","stepsDays","listenerRunsDays","outboxDays","outboxUnsentDays","idempotencyDays","archiveDays","batch"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs":{"get":{"operationId":"console.runs.list","summary":"The runs list, newest first, a bounded page filtered by the parsed query and the search fields; refused with a reason before the store is asked. Since API 2.145 (ADR-0076 FP-041) a page over answerBytesMax keeps its newest rows that fit and says the cut on the X-Durable-Truncated header (rows=; bytes=; max=), the older rows the next page's under the last row's own cursor.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0046 §G; ADR-0051 §7 and §9","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"status":{"description":"one of RUNNING, COMPLETED, FAILED, COMPENSATED, UNDONE, WAITING, CONTINUED, any case","type":"string"},"workflow":{"type":"string"},"scopeId":{"description":"the partition id, whole","type":"string"},"limit":{"description":"rows, 1 to 500 (100 unless said); a whole number, more read as the most","type":"string"},"take":{"deprecated":true,"description":"the older spelling of limit, read when limit is not named; deprecated since API 2.111, gone with 3.0","type":"string"},"key":{"description":"a prefix of the idempotency key, read literally","type":"string"},"actor":{"description":"the actor, whole","type":"string"},"since":{"description":"runs started at or after this instant","type":"string"},"until":{"description":"runs started at or before this instant","type":"string"},"before":{"description":"the cursor of an older page: the last row's startedAt|id","type":"string"},"signature":{"description":"the cause's signature, sixteen hex characters","type":"string"},"tag":{"description":"a tag the run carries, as key:value (split at the first colon); repeatable, every pair must match (ADR-0063 B33)","type":"array","items":{"type":"string"}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/$defs/Run"},"$defs":{"Run":{"type":"object","properties":{"id":{"type":"string"},"workflow":{"type":"string"},"scopeId":{"description":"the partition the row belongs to","type":["string","null"]},"actor":{"type":"string"},"actorLabel":{"type":"string"},"status":{"$ref":"#/$defs/RunStatus"},"error":{"type":["string","null"]},"startedAt":{"type":"string","description":"an ISO instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"steps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"entries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"input":{"description":"the run's summary input"},"tags":{"anyOf":[{"$ref":"#/$defs/RunTags"},{"type":"null"}],"description":"the run's tags (ADR-0063 B33): what tag=k:v matches; null on a run without any and on a row stored before schema version 16"},"build":{"description":"the build the run's latest attempt ran under (ADR-0063 B10): the deployment's commit (under the platform's adapter), written at the start and rewritten by every claim that opens an attempt (a redrive's, the resumer's, a wake's); null off a platform naming none and on a row stored before schema version 17","type":["string","null"]},"jobId":{"description":"the host row the run's input names as jobId, null when none (ADR-0069 U46b): the order chip's link","type":["string","null"]},"orderName":{"description":"the order name the run's input names, null when none (ADR-0069 U46b): the order chip's word","type":["string","null"]}},"required":["id","workflow","scopeId","actor","actorLabel","status","error","startedAt","finishedAt","steps","entries","input","tags","build"],"additionalProperties":false},"RunStatus":{"type":"string","enum":["RUNNING","COMPLETED","FAILED","COMPENSATED","UNDONE","WAITING","CONTINUED"]},"RunTags":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/limbo":{"get":{"operationId":"console.runs.limbo","summary":"The runs in limbo, newest first, each with whether it can be redriven, the step that failed last and its auto-redrive state (ADR-0084), a count per workflow, and how many were dismissed; since ADR-0069 U46a a page when `before=<startedAt iso>|<id>` or `limit=` is given (50 unless said, 200 at most, `next` the older page's cursor or null; `workflows` and `dismissed` over the whole limbo whatever the page), the parameterless call the newest 200 as before.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0031; ADR-0069 U46a; ADR-0084","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"limit":{"description":"rows, 1 to 200 (50 unless said when a cursor is given; the day-one 200 with neither); a whole number, more read as the most","type":"string"},"before":{"description":"the older page's cursor: the last row's startedAt and id as <iso>|<id>","type":"string"}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"runs":{"type":"array","items":{"$ref":"#/$defs/LimboRun"}},"workflows":{"type":"array","items":{"type":"object","properties":{"workflow":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"redrivable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"oldest":{"type":"string","description":"an ISO instant"}},"required":["workflow","count","redrivable","oldest"],"additionalProperties":false}},"dismissed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"next":{"description":"the older page's cursor, the last row's startedAt|id (ADR-0069 U46a); null when the page was not full; absent on the parameterless call","type":["string","null"]}},"required":["runs","workflows","dismissed"],"additionalProperties":false,"$defs":{"LimboRun":{"type":"object","properties":{"id":{"type":"string"},"workflow":{"type":"string"},"scopeId":{"description":"the partition the row belongs to","type":["string","null"]},"actor":{"type":"string"},"actorLabel":{"type":"string"},"status":{"$ref":"#/$defs/RunStatus"},"error":{"type":["string","null"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startedAt":{"type":"string","description":"an ISO instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"steps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"entries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"redrivable":{"type":"boolean"},"redriveBlocked":{"type":["string","null"]},"compensation":{"anyOf":[{"$ref":"#/$defs/RunCompensation"},{"type":"null"}]},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the version of the definition the run started under (ADR-0051 §15); 1 on a row stored before the column"},"failedStep":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":["string","null"]},"errorCode":{"type":["string","null"]}},"required":["name","seq","attempt","error","errorCode"],"additionalProperties":false},{"type":"null"}]},"signature":{"type":["string","null"]},"autoRedrive":{"anyOf":[{"$ref":"#/$defs/AutoRedrive"},{"type":"null"}],"description":"the engine's auto-redrive state (ADR-0084, API 2.195): the ordinal and the bound, the moment the status is about, scheduled | running | landed | exhausted | stopped and why, and whether the retry is still in motion; null for a run it never retried"}},"required":["id","workflow","scopeId","actor","actorLabel","status","error","attempts","startedAt","finishedAt","steps","entries","redrivable","redriveBlocked","compensation","version","failedStep","signature","autoRedrive"],"additionalProperties":false},"RunStatus":{"type":"string","enum":["RUNNING","COMPLETED","FAILED","COMPENSATED","UNDONE","WAITING","CONTINUED"]},"RunCompensation":{"type":"object","properties":{"undone":{"type":"array","items":{"type":"string"}},"failed":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"error":{"type":"string"}},"required":["step","error"],"additionalProperties":false}},"irreversible":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"reason":{"type":"string"}},"required":["step","reason"],"additionalProperties":false}},"skipped":{"description":"why nothing was undone on a run the resumer landed FAILED without an attempt (ADR-0051 §15's `version mismatch`; since FW-021 the landing's own words, `abandoned: attempt limit <n>`, `abandoned: <the replay verdict>`): its completed steps' effects stand, nothing was tried; absent on a run a saga compensated","type":"string"}},"required":["undone","failed","irreversible"],"additionalProperties":false},"AutoRedrive":{"type":"object","properties":{"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the ordinal of the auto-redrive the row is about, 1..max"},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the bound in force when it was judged"},"at":{"type":"string","description":"the moment the status is about: the delayed fact's delivery while scheduled, the admission while running, the transition's moment otherwise"},"status":{"type":"string","enum":["scheduled","running","landed","exhausted","stopped"],"description":"scheduled (the delayed fact queued), running (the request admitted), landed (the redrive completed), exhausted (the bound spent), stopped (a cause the engine will not retry, a dismissal, a refusal, an undo)"},"reason":{"description":"why the engine stopped (stopped alone); null otherwise","type":["string","null"]},"pending":{"type":"boolean","description":"judged at read time with the engine's bound (ADR-0084 decision 6): a scheduled row until its moment plus the grace, a running one until its admission plus the lease; the sweep, the gate and the chip read this word and spell no bound"}},"required":["n","max","at","status","reason","pending"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}":{"get":{"operationId":"console.run.detail","summary":"One run with its steps, its ledger rows, its limbo verdict, its undo verdict, its wait and its tree; 404 for a run that is gone. Since ADR-0069 U46a `steps=<n>` bounds the steps to the run's walk at its newest n seqs (since API 2.108 the newest row per memo key over every attempt, a memo hit inserting no row; every row carries `superseded`) and `ledger=<n>` the ledger rows to the newest n (1 to 500 each), the answer then carrying `stepsTotal`, `entriesTotal`, `stepsNext` and `entriesNext` (the older pages through runs/:id/steps and runs/:id/ledger; `tolerated` counted over the rows served); without either every row as before. Since API 2.135 (ADR-0076 FP-035) `wait=<duration>` holds the request until the run lands or the wait ends (at most 20s a request, refused by name past it) and answers the same shape as it stands: the long-poll await, a LISTEN session on the run landings where the store can hold one, a 500 ms poll where it cannot. Since API 2.145 (ADR-0076 FP-041) an answer over answerBytesMax is cut on its lists in order (downstream, emitted, entries, steps), each counted on truncated with truncated.bytes beside, and the cut page carries stepsTotal, stepsNext, entriesTotal and entriesNext as a bounded read would, the cursor the oldest row served.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0046 §G; ADR-0050 decision 3; ADR-0051 §13; ADR-0069 U46a; ADR-0076 FP-035","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"},"steps":{"description":"the newest attempt's step rows, at most this many (1 to 500, the newest kept, stepsNext the older page's cursor); absent, every row of every attempt as before","type":"string"},"ledger":{"description":"ledger rows, at most this many (1 to 500, the newest kept, entriesNext the older page's cursor); absent, every row","type":"string"},"wait":{"description":"hold the answer until the run lands (COMPLETED, FAILED, COMPENSATED or UNDONE) or this long, the duration grammar (\"<n>ms\", \"<n>s\", \"<n>m\"), at most 20s a request (SQS's WaitTimeSeconds; ask again while the run has not landed); the answer the detail as it stands, the same shape; absent, the run as it stands at once (since API 2.133, ADR-0076 FP-035)","type":"string"}},"required":["id"]},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"workflow":{"type":"string"},"idempotencyKey":{"type":["string","null"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"actorLabel":{"type":"string"},"stepsPrunedAfterDays":{"description":"for a COMPLETED run, the days after which retention takes its step rows whatever its ledger (FW-089, API 2.107: the limits' retention.stepsDays; the run page and the bundle say \"steps pruned after N days\"); null for a run in any other status, whose rows stay","type":["number","null"]},"redrivable":{"type":"boolean"},"redriveBlocked":{"type":["string","null"]},"autoRedrive":{"anyOf":[{"$ref":"#/$defs/AutoRedrive"},{"type":"null"}],"description":"the engine's auto-redrive state (ADR-0084, API 2.195): the ordinal and the bound, the moment the status is about, scheduled | running | landed | exhausted | stopped and why, and whether the retry is still in motion; null for a run it never retried"},"undo":{"$ref":"#/$defs/RunUndo"},"heartbeatAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"leaseUntil":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"the attempt's lease when its kill is stored (ADR-0066 D08, API 2.35): the kill the platform itself stated plus the grace (`killAt + KILL_GRACE_MS`), the moment the resumer reclaims a RUNNING run whatever its heartbeat; null under no stored kill and on rows stored before schema version 18"},"logs":{"anyOf":[{"type":"array","items":{"$ref":"#/$defs/LogLine"}},{"type":"null"}]},"scopeId":{"description":"the partition the row belongs to","type":["string","null"]},"actor":{"type":"string"},"status":{"$ref":"#/$defs/RunStatus"},"error":{"type":["string","null"]},"input":{},"output":{},"codecId":{"description":"the payload codec the row's values are sealed under (ADR-0063 B25): the bound codec's id at the write, null for values stored in clear and on rows stored before schema version 15; a value under an id this deployment does not bind reads `[encoded]`","type":["string","null"]},"startedAt":{"type":"string","description":"an ISO instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"undoneAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"undoneByRunId":{"type":["string","null"]},"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]},"compensation":{"anyOf":[{"$ref":"#/$defs/RunCompensation"},{"type":"null"}]},"signature":{"type":["string","null"]},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the version of the definition the run started under (ADR-0051 §15); 1 on a row stored before the column"},"definitionVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the registered definition's version (ADR-0051 §15): what a redrive must accept when it differs from `version`; null when this deployment does not know the workflow"},"definitionReplay":{"anyOf":[{"type":"string","enum":["strict","lenient"]},{"type":"null"}],"description":"the registered definition's replay policy (ADR-0063 B04, PR 2; API 2.30): `strict` (a divergence from the run's rows is `ReplayDiverged`) or `lenient` (counted and served as before); null when this deployment does not know the workflow"},"state":{"description":"the run's declared state as the row carries it (ADR-0076 FP-031, API 2.140: `ctx.state`, written at the step boundary after it moved and at the landing); null on a run that never wrote one and on rows stored before schema version 28"},"queries":{"type":"array","items":{"$ref":"#/$defs/RunQueryValue"},"description":"the queries the registered definition declares (ADR-0076 FP-031, API 2.140), each with its value over the stored state as GET runs/:id/query/:name would answer it with no args (`error` the handler's sentence when it threw, `value` null then); empty for a definition without queries or one this deployment does not know"},"updates":{"type":"array","items":{"$ref":"#/$defs/RunUpdateLast"},"description":"the updates the registered definition declares (ADR-0076 FP-031, API 2.140), each with the last one the run's door rows applied among the step rows served (`last`: its id, its value or the body's refusal, the door row's moment and attempt), null when none yet; empty for a definition without updates or one this deployment does not know"},"lightweight":{"type":"boolean","description":"a lightweight run (ADR-0076 FP-038, API 2.142): the registered definition's word (`defineWorkflow({ lightweight: true })`, `on(…, { lightweight: true })`), else whether the row carries step outputs; such a run is one run row and no step row, every step a read kept in memory and landed under `stepOutputs`, re-run whole after a crash"},"stepOutputs":{"description":"a lightweight run's step outputs (ADR-0076 FP-038, API 2.142): the list `[{ seq, step, ms, output }]` its landing wrote beside `output` (schema version 29, `WorkflowRun.stepOutputs`), each output in the stored form under the step output cap; null on every other run and on a lightweight run not yet landed"},"cancelRequestedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"cancelRequestedBy":{"type":["string","null"]},"held":{"anyOf":[{"type":"object","properties":{"at":{"type":"string","description":"an ISO instant"},"by":{"type":"string"},"reason":{"type":["string","null"]}},"required":["at","by","reason"],"additionalProperties":false},{"type":"null"}],"description":"a hold a person asked for (ADR-0063 B37): when, who and why (the newest run.hold run's reason, null when none was given); null until run.hold sets it, cleared by run.resume and by a redrive's claim; the run parks on a `hold` wait at its next step boundary"},"deadlineAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"the run's deadline (ADR-0063 B16): its start plus the definition's `timeout`, re-armed by a redrive's claim; null without a timeout and on a row stored before the column"},"inputHash":{"description":"the content hash of the stored input (ADR-0063 B20), compared on every key hit; null on a row stored before the column","type":["string","null"]},"tags":{"anyOf":[{"$ref":"#/$defs/RunTags"},{"type":"null"}],"description":"the run's tags (ADR-0063 B33): the definition's `tags(input)` as stored at the run's birth, what GET runs?tag=k:v matches; null on a run without any and on a row stored before schema version 16"},"build":{"description":"the build the run's latest attempt ran under (ADR-0063 B10): the deployment's commit (under the platform's adapter), written at the start and rewritten by every claim that opens an attempt (a redrive's, the resumer's, a wake's); null off a platform naming none and on a row stored before schema version 17","type":["string","null"]},"builds":{"anyOf":[{"type":"array","items":{"type":["string","null"]}},{"type":"null"}],"description":"the builds of the run's attempts in order (ADR-0063 B10): builds[attempt - 1] is the build that attempt ran under, null for one off a platform naming none, so a run started under A and redriven under B reads [A, B]; null on a row stored before schema version 17"},"parentRunId":{"type":["string","null"]},"parentStep":{"type":["string","null"]},"continuedFrom":{"description":"the run this one continued from by continue-as-new (ADR-0076 FP-032; API 2.139): the closed run's id, whose `continuedTo` names this run; null on a run that opened no chain and on a row stored before schema version 28","type":["string","null"]},"continuedTo":{"description":"the run this one continued into by continue-as-new (ADR-0076 FP-032; API 2.139): set when the status is CONTINUED, the next run's id under the same key; null otherwise","type":["string","null"]},"wait":{"anyOf":[{"$ref":"#/$defs/RunWait"},{"type":"null"}]},"steps":{"type":"array","items":{"$ref":"#/$defs/RunStep"}},"children":{"type":"array","items":{"$ref":"#/$defs/RunChild"},"description":"the runs this run's steps started (ctx.child, ctx.fanOut), oldest first, at most 100 since API 2.141 (ADR-0076 FP-037; every child before it)"},"childrenMore":{"type":"boolean","description":"since API 2.141 (ADR-0076 FP-037): true when children beyond the hundred listed stand; a fan-out's join says the whole count"},"join":{"anyOf":[{"$ref":"#/$defs/RunJoin"},{"type":"null"}],"description":"since API 2.141 (ADR-0076 FP-037): the fan-out's join, the newest join wait of the run with its step, its counters, whether and when it fired, and the first failed children by start (at most 10); null on a run that never fanned out"},"tolerated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the step rows of the run's latest attempt whose failure the body took as a value (onFail: \"return\", ADR-0063 Appendix M U6): FAILED with the outcome TOLERATED, nothing to undo; 0 when none"},"entries":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"string"},"step":{"type":"string"},"resource":{"type":"string"},"operation":{"type":"string"},"before":{},"after":{},"reversesId":{"type":["string","null"]},"occurredAt":{"type":"string","description":"an ISO instant"},"codecId":{"description":"the payload codec the row's values are sealed under (ADR-0063 B25): the bound codec's id at the write, null for values stored in clear and on rows stored before schema version 15; a value under an id this deployment does not bind reads `[encoded]`","type":["string","null"]}},"required":["seq","step","resource","operation","before","after","reversesId","occurredAt","codecId"],"additionalProperties":false}},"emitted":{"type":"array","items":{"$ref":"#/$defs/EmittedFact"},"description":"the facts the run emitted (ADR-0063 B30): the outbox rows naming the run, oldest first, at most BUNDLE_EMITTED_MAX; empty for a run that emitted none and for one finished before schema version 17"},"downstream":{"type":"array","items":{"$ref":"#/$defs/DownstreamRun"},"description":"the listener runs the emitted facts started (ADR-0063 B30): found by the one-fact key listener.<name>:<outboxId> (a redelivery's extension included) and, for a batch listener, through the slice its run's summary spells; oldest first, each run once, at most BUNDLE_DOWNSTREAM_MAX"},"truncated":{"type":"object","properties":{"emitted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many of the newest facts BUNDLE_EMITTED_MAX cut; 0 when every fact is listed"},"downstream":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many of the newest listener runs BUNDLE_DOWNSTREAM_MAX cut; 0 when every run is listed"},"steps":{"description":"after a byte cut (ADR-0076 FP-041): how many of the oldest step rows served were cut to fit ANSWER_BYTES_MAX, the oldest seq served dropped whole; the older page under stepsNext","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"entries":{"description":"after a byte cut (ADR-0076 FP-041): how many of the oldest ledger rows served were cut to fit ANSWER_BYTES_MAX; the older page under entriesNext","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bytes":{"$ref":"#/$defs/TruncatedBytes"}},"required":["emitted","downstream"],"additionalProperties":false},"dedupe":{"type":"array","items":{"$ref":"#/$defs/DedupeKeyView"},"description":"the producer's idempotency keys naming this target (ADR-0076 D06, FP-026; API 2.133): each a call deduplicated onto it inside its window (emit(…, { idempotencyKey }) for a row, execute(…, { idempotencyKey }) for a run), the latest window first, at most 20; [] for a target no key names"},"stepsTotal":{"description":"under steps= (ADR-0069 U46a): the run's walk in all (the newest row per memo key over every attempt, the review of FW-091, API 2.108; the newest attempt's rows before it), whatever the bound kept; after a byte cut (ADR-0076 FP-041) the rows the page held before the cut","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"entriesTotal":{"description":"under ledger= (ADR-0069 U46a): the run's ledger rows in all, whatever the bound kept; after a byte cut (ADR-0076 FP-041) the rows the page held before the cut","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stepsNext":{"description":"under steps= (ADR-0069 U46a) or after a byte cut (ADR-0076 FP-041): the older page's cursor for runs/:id/steps, the oldest seq served, passed back as before= with no attempt (the walk's older page; <attempt>|<seq> before API 2.108), null when every row of the walk is here","type":["string","null"]},"entriesNext":{"description":"under ledger= (ADR-0069 U46a) or after a byte cut (ADR-0076 FP-041): the older page's cursor for runs/:id/ledger, the seq of the oldest row served, null when every row is here","type":["string","null"]}},"required":["id","workflow","idempotencyKey","attempts","actorLabel","stepsPrunedAfterDays","redrivable","redriveBlocked","autoRedrive","undo","heartbeatAt","leaseUntil","logs","scopeId","actor","status","error","input","output","codecId","startedAt","finishedAt","undoneAt","undoneByRunId","dismissedAt","dismissedBy","dismissReason","compensation","signature","version","definitionVersion","definitionReplay","state","queries","updates","lightweight","stepOutputs","cancelRequestedAt","cancelRequestedBy","held","deadlineAt","inputHash","tags","build","builds","parentRunId","parentStep","continuedFrom","continuedTo","wait","steps","children","childrenMore","join","tolerated","entries","emitted","downstream","truncated","dedupe"],"additionalProperties":false,"$defs":{"AutoRedrive":{"type":"object","properties":{"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the ordinal of the auto-redrive the row is about, 1..max"},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the bound in force when it was judged"},"at":{"type":"string","description":"the moment the status is about: the delayed fact's delivery while scheduled, the admission while running, the transition's moment otherwise"},"status":{"type":"string","enum":["scheduled","running","landed","exhausted","stopped"],"description":"scheduled (the delayed fact queued), running (the request admitted), landed (the redrive completed), exhausted (the bound spent), stopped (a cause the engine will not retry, a dismissal, a refusal, an undo)"},"reason":{"description":"why the engine stopped (stopped alone); null otherwise","type":["string","null"]},"pending":{"type":"boolean","description":"judged at read time with the engine's bound (ADR-0084 decision 6): a scheduled row until its moment plus the grace, a running one until its admission plus the lease; the sweep, the gate and the chip read this word and spell no bound"}},"required":["n","max","at","status","reason","pending"],"additionalProperties":false},"RunUndo":{"type":"object","properties":{"undoable":{"type":"boolean"},"reason":{"type":["string","null"]},"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the rows a reversal reverts nothing of: those a reversal of any run already reverses, and the divergence rows `diverged` names"},"diverged":{"type":"array","items":{"$ref":"#/$defs/UndoBlock"},"description":"the run's divergence rows (`<step>:diverged`, ADR-0063 amended 2026-10-05: what the world held under an intent this run never landed, another writer's value), each with the one reason; never reverted, never a block, counted among `skipped`"},"blocked":{"type":"array","items":{"$ref":"#/$defs/UndoBlock"}},"stopped":{"anyOf":[{"type":"object","properties":{"undoRunId":{"type":"string"},"status":{"type":"string"}},"required":["undoRunId","status"],"additionalProperties":false},{"type":"null"}]}},"required":["undoable","reason","rows","skipped","diverged","blocked","stopped"],"additionalProperties":false},"UndoBlock":{"type":"object","properties":{"entryId":{"type":"string"},"step":{"type":"string"},"resourceType":{"type":"string"},"resourceId":{"type":"string"},"reason":{"type":"string"}},"required":["entryId","step","resourceType","resourceId","reason"],"additionalProperties":false},"LogLine":{"type":"object","properties":{"ts":{"type":"string","description":"an ISO instant"},"level":{"type":"string","enum":["debug","info","warn","error"]},"event":{"type":"string"},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["ts","level","event"],"additionalProperties":false},"RunStatus":{"type":"string","enum":["RUNNING","COMPLETED","FAILED","COMPENSATED","UNDONE","WAITING","CONTINUED"]},"RunCompensation":{"type":"object","properties":{"undone":{"type":"array","items":{"type":"string"}},"failed":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"error":{"type":"string"}},"required":["step","error"],"additionalProperties":false}},"irreversible":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"reason":{"type":"string"}},"required":["step","reason"],"additionalProperties":false}},"skipped":{"description":"why nothing was undone on a run the resumer landed FAILED without an attempt (ADR-0051 §15's `version mismatch`; since FW-021 the landing's own words, `abandoned: attempt limit <n>`, `abandoned: <the replay verdict>`): its completed steps' effects stand, nothing was tried; absent on a run a saga compensated","type":"string"}},"required":["undone","failed","irreversible"],"additionalProperties":false},"RunQueryValue":{"type":"object","properties":{"name":{"type":"string"},"value":{"description":"the handler's answer over the stored state with no args; null when it threw"},"error":{"description":"the handler's sentence when it threw over the stored state; null when it answered","type":["string","null"]}},"required":["name","value","error"],"additionalProperties":false},"RunUpdateLast":{"type":"object","properties":{"name":{"type":"string"},"last":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"the update's id, the dedupe key the caller sent"},"value":{"description":"the value apply answered; null when the body refused it"},"refused":{"description":"the body's refusal (the validator's or apply's sentence at the door); null when applied","type":["string","null"]},"at":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"when the door's row landed"},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the attempt whose door applied it"}},"required":["id","value","refused","at","attempt"],"additionalProperties":false},{"type":"null"}],"description":"the last update of this name the run's door rows applied, among the step rows served; null when none yet"}},"required":["name","last"],"additionalProperties":false},"RunTags":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"RunWait":{"type":"object","properties":{"id":{"type":"string"},"kind":{"$ref":"#/$defs/WaitKind"},"step":{"type":"string"},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"type":["string","null"]},"eventName":{"type":["string","null"]},"matchHash":{"type":["string","null"]},"childRunId":{"type":["string","null"]},"until":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"createdAt":{"type":"string","description":"an ISO instant"},"firedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"firedBy":{"anyOf":[{"$ref":"#/$defs/WaitFiredBy"},{"type":"null"}]},"payload":{},"batch":{"anyOf":[{"$ref":"#/$defs/RunWaitBatch"},{"type":"null"}],"description":"the batch a continue wait parked before a chunk (FW-046, API 2.104), read off the park step row; null on any other wait and on a park whose row is gone"},"join":{"anyOf":[{"$ref":"#/$defs/RunWaitJoin"},{"type":"null"}],"description":"the join's counters on a join wait (ADR-0076 FP-037, API 2.141: ctx.fanOut's park, the children started, not yet landed, failed and the failures tolerated); null on every other kind"}},"required":["id","kind","step","seq","attempt","token","eventName","matchHash","childRunId","until","createdAt","firedAt","firedBy","payload","batch","join"],"additionalProperties":false},"WaitKind":{"type":"string","enum":["timer","signal","child","continue","slot","rate","retry","hold","cancel","join"]},"WaitFiredBy":{"type":"string","enum":["timer","fact","signal","child","deadline","continue","slot","cancel","timeout","resume","landed","join"]},"RunWaitBatch":{"type":"object","properties":{"name":{"type":"string","description":"the batch's name"},"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the chunk the run continues at (0-based)"},"total":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the chunk count, the array form's; null under the cursor form"}},"required":["name","index","total"],"additionalProperties":false},"RunWaitJoin":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children the fan-out started"},"remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children not yet landed (the join fires at 0)"},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children landed FAILED or COMPENSATED"},"tolerated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the failures the join admits before it fires failed"}},"required":["total","remaining","failed","tolerated"],"additionalProperties":false},"RunStep":{"type":"object","properties":{"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"stepId":{"description":"the step's stable identity (ADR-0051 §15); null on a step declared without one and on a row stored before the column","type":["string","null"]},"declared":{"anyOf":[{"$ref":"#/$defs/StepDeclaration"},{"type":"null"}],"description":"what the step declared (ADR-0060 decision 12): its undo, its reason, its effect and its id as the recorder stored them on the row; null on a row stored before schema version 12"},"status":{"$ref":"#/$defs/StepStatus"},"outcome":{"anyOf":[{"anyOf":[{"$ref":"#/$defs/StepOutcome"},{"type":"string"}]},{"type":"null"}]},"pending":{"anyOf":[{"type":"array","items":{"$ref":"#/$defs/PendingWrite"}},{"type":"null"}]},"wait":{"anyOf":[{"$ref":"#/$defs/RunWait"},{"type":"null"}]},"startedAt":{"type":"string","description":"an ISO instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"durationMs":{"type":["number","null"]},"tookMs":{"description":"how long the row stood open, ms (ADR-0066 D12: finishedAt − startedAt, computed in the read model); null while the row is open","type":["number","null"]},"overMs":{"description":"on a step stamped FunctionKilled (ADR-0066 D07): how far past its deadline the reclaim came, ms, as the row's error text spells it (whole seconds); null on every other row","type":["number","null"]},"error":{"type":["string","null"]},"input":{},"output":{},"logs":{"anyOf":[{"type":"array","items":{"$ref":"#/$defs/LogLine"}},{"type":"null"}]},"errorCode":{"type":["string","null"]},"codecId":{"description":"the payload codec the row's values are sealed under (ADR-0063 B25): the bound codec's id at the write, null for values stored in clear and on rows stored before schema version 15; a value under an id this deployment does not bind reads `[encoded]`","type":["string","null"]},"remedy":{"description":"what to do about the step's errorCode (ADR-0060 decision 15: the host's row, else the engine's registry); null when the step did not fail or no table names the code","type":["string","null"]},"superseded":{"type":"boolean","description":"a newer row under the same memo key replaced this one (the review of FW-091, API 2.108): the recorder never consults it again; judged per row, never per attempt, since a memo hit inserts no row and an older attempt's served rows stand in the run's walk"}},"required":["attempt","seq","name","stepId","declared","status","outcome","pending","wait","startedAt","finishedAt","durationMs","tookMs","overMs","error","input","output","logs","errorCode","codecId","remedy","superseded"],"additionalProperties":false},"StepDeclaration":{"type":"object","properties":{"undo":{"type":"boolean","description":"whether the step carries a compensate (an undo)"},"irreversible":{"description":"the reason the step cannot undo; null when it can","type":["string","null"]},"effect":{"type":"string","enum":["read","ledgered","external","provider"],"description":"what the step does to the world (ADR-0041 item 31)"},"id":{"description":"the step's stable identity (ADR-0051 §15), null without one","type":["string","null"]},"retry":{"description":"the retry the step declared and the tries its row counted (ADR-0063 B03), with its resume word when declared \"park\" (LB-004); absent without one","type":"object","properties":{"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many times the body may run in all"},"tries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the tries the row counted, resumed after a crash"},"resume":{"description":"the policy's resume word when it is \"park\" (ADR-0063 B03 amendment 2026-10-10, LB-004: every next try on a fresh invocation after a retry park); absent for the inline default and on a row stored before the word","type":"string","const":"park"}},"required":["attempts","tries"],"additionalProperties":false},"timeoutMs":{"description":"the timeout the step declared, ms (ADR-0063 B03); absent without one","type":"number"},"needsMs":{"description":"the need the step declared, ms (ADR-0066 D06: what it must have left of the budget to start; 0 admitted); absent without one, when the engine assumes the kind's default: a plain step's min(STEP_NEEDS_DEFAULT_MS, timeoutMs), an external step's two calls (2 × (external.timeoutMs ?? externalCallTimeoutMs), FW-020)","type":"number"},"external":{"description":"the step is an external step (FW-020; ADR-0066 D06 as landed): the phases, a read and a write of one call each, whose default need is two calls; absent on a plain step (a recordedWrite inside one keeps the plain default) and on a row stored before the field","type":"object","properties":{"timeoutMs":{"description":"the spec's own per-call timeout, ms; absent for the provider's default (the contract's externalCallTimeoutMs)","type":"number"},"idempotent":{"type":"boolean","description":"the spec's retry.idempotent: a non-idempotent write is never retried and is reconciled from the world"}},"required":["idempotent"],"additionalProperties":false},"onFail":{"description":"the failure policy the step declared (ADR-0063 Appendix M U6): \"return\" when its failure is its value, the row then FAILED with the outcome TOLERATED; absent for the default (throw)","type":"string","const":"return"},"completion":{"description":"the completion policy the step declared (FP-011 as landed, ADR-0076 D05 (3) opt-in): \"behind\" when a read step's COMPLETED row rides the next boundary's statement or the finish (one statement a step; a crash between the body's return and that statement leaves the row STARTED and the next attempt re-invokes the read); absent for the default (\"now\": the row in its own statement before the body goes on, replayed after any crash) and on a row stored before the field","type":"string","const":"behind"},"services":{"description":"the services the step read through i.services (ADR-0063 Appendix M U4), by name, sorted; absent when it read none","type":"array","items":{"type":"string"}}},"required":["undo","irreversible","effect","id"],"additionalProperties":false},"StepStatus":{"type":"string","enum":["STARTED","COMPLETED","FAILED","COMPENSATED","WAITING"]},"StepOutcome":{"type":"string","enum":["COMPENSATED","COMPENSATION_FAILED","IRREVERSIBLE","FENCED","RECONCILED","TOLERATED"]},"PendingWrite":{"type":"object","properties":{"writeKey":{"type":"string"},"scope":{"type":"string","description":"the ledger partition"},"resourceType":{"type":"string"},"resourceId":{"type":"string"},"operation":{"type":"string"},"before":{},"after":{},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"string","description":"an ISO instant"}},"required":["writeKey","scope","resourceType","resourceId","operation","before","after","attempt","at"],"additionalProperties":false},"RunChild":{"type":"object","properties":{"id":{"type":"string"},"workflow":{"type":"string"},"parentStep":{"type":["string","null"]},"status":{"$ref":"#/$defs/RunStatus"},"error":{"type":["string","null"]},"startedAt":{"type":"string","description":"an ISO instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]}},"required":["id","workflow","parentStep","status","error","startedAt","finishedAt"],"additionalProperties":false},"RunJoin":{"type":"object","properties":{"step":{"type":"string","description":"the fan-out's step (fanout:<workflow> unless named)"},"waitId":{"type":"string","description":"the join wait row"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children the fan-out started"},"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children landed (total less remaining)"},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children landed FAILED or COMPENSATED"},"tolerated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the failures the join admits before it fires failed"},"fired":{"type":"boolean","description":"whether the join fired"},"firedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"when it fired; null while open"},"failedChildren":{"type":"array","items":{"$ref":"#/$defs/RunChild"},"description":"the first failed children by start, at most 10"}},"required":["step","waitId","total","done","failed","tolerated","fired","firedAt","failedChildren"],"additionalProperties":false},"EmittedFact":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"key":{"type":"string"},"scope":{"type":["string","null"]},"partition":{"type":["string","null"]},"attempt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the attempt of the run the fact was emitted under; null on a row stored before schema version 17"},"occurredAt":{"type":"string","description":"an ISO instant"},"status":{"type":"string","enum":["delivered","cancelled","dismissed","exhausted","scheduled","backing_off","pending"],"description":"delivered, cancelled by key, dismissed by a person (event.dismiss, ADR-0041 amendment 2026-10-05: exhausted and taken off the board), exhausted (attempts at MAX_ATTEMPTS with no delivery), scheduled ahead of its moment, backing off after a transport failure, or pending its turn"},"deliveredAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"type":["string","null"]}},"required":["id","name","key","scope","partition","attempt","occurredAt","status","deliveredAt","attempts","lastError"],"additionalProperties":false},"DownstreamRun":{"type":"object","properties":{"runId":{"type":"string"},"workflow":{"type":"string"},"listener":{"type":"string"},"eventIds":{"type":"array","items":{"type":"string"},"description":"the ids among this run's facts the listener run reacted to: one for a one-fact listener, the slice's among this run's facts for a batch listener"},"status":{"$ref":"#/$defs/RunStatus"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":["string","null"]},"startedAt":{"type":"string","description":"an ISO instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]}},"required":["runId","workflow","listener","eventIds","status","attempts","error","startedAt","finishedAt"],"additionalProperties":false},"TruncatedBytes":{"type":"object","properties":{"before":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the whole answer's bytes before the cut, what it would have been"},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the cap the answer was cut to fit (ANSWER_BYTES_MAX, GET limits' answerBytesMax)"},"cut":{"type":"array","items":{"type":"string"},"description":"the lists cut, in the order they were cut (the bundle: downstream, emitted, ledger, host.<table>, steps; the run page: downstream, emitted, entries, steps)"}},"required":["before","max","cut"],"additionalProperties":false},"DedupeKeyView":{"type":"object","properties":{"key":{"type":"string"},"createdAt":{"type":"string","description":"an ISO instant"},"expiresAt":{"type":"string","description":"an ISO instant"}},"required":["key","createdAt","expiresAt"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}/bundle":{"get":{"operationId":"console.run.bundle","summary":"The run bundle: one document per run, the run page's answer without its entries, the stored input, the replay verdict per step, the siblings, the trigger, the limbo verdict with its sentence, the waits, the children, the ledger rows once and the host's own rows; 404 for a run that is gone. Since API 2.145 (ADR-0076 FP-041) a document over answerBytesMax is cut on its lists in order (downstream, emitted, ledger, the host's tables, then the step rows of run and replay together), each counted on truncated (and host.truncated) with truncated.bytes beside, so a cut bundle is read and never replayed, as one a row bound cut.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0051 §8","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"}},"required":["id"]},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"number","const":1},"generatedAt":{"type":"string","description":"an ISO instant"},"run":{"$ref":"#/$defs/BundleRun"},"resumeInput":{},"replay":{"anyOf":[{"type":"object","properties":{"replayable":{"type":"boolean","const":true},"key":{"type":"string"},"steps":{"type":"array","items":{"$ref":"#/$defs/BundleStepReplay"}}},"required":["replayable","key","steps"],"additionalProperties":false},{"type":"object","properties":{"replayable":{"type":"boolean","const":false},"reason":{"type":"string"},"steps":{"type":"array","items":{"$ref":"#/$defs/BundleStepReplay"}}},"required":["replayable","reason","steps"],"additionalProperties":false}]},"siblings":{"type":"array","items":{"$ref":"#/$defs/BundleSibling"}},"trigger":{"$ref":"#/$defs/BundleTrigger"},"limbo":{"type":"object","properties":{"inLimbo":{"type":"boolean"},"redrivable":{"type":"boolean"},"blocked":{"type":["string","null"]},"sentence":{"type":"string"}},"required":["inLimbo","redrivable","blocked","sentence"],"additionalProperties":false},"waits":{"type":"array","items":{"$ref":"#/$defs/RunWait"}},"children":{"type":"array","items":{"$ref":"#/$defs/RunChild"}},"ledger":{"type":"array","items":{"$ref":"#/$defs/LedgerEntry"}},"truncated":{"type":"object","properties":{"steps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ledger":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"emitted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many of the newest facts BUNDLE_EMITTED_MAX cut; 0 when every fact is listed"},"downstream":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many of the newest listener runs BUNDLE_DOWNSTREAM_MAX cut; 0 when every run is listed"},"bytes":{"$ref":"#/$defs/TruncatedBytes"}},"required":["steps","ledger","emitted","downstream"],"additionalProperties":false},"host":{"anyOf":[{"$ref":"#/$defs/HostBundle"},{"type":"null"}]},"build":{"description":"the build the run's latest attempt ran under (ADR-0063 B10): the deployment's commit (under the platform's adapter), written at the start and rewritten by every claim that opens an attempt (a redrive's, the resumer's, a wake's); null off a platform naming none and on a row stored before schema version 17","type":["string","null"]},"builds":{"anyOf":[{"type":"array","items":{"type":["string","null"]}},{"type":"null"}],"description":"the builds of the run's attempts in order (ADR-0063 B10): builds[attempt - 1] is the build that attempt ran under, null for one off a platform naming none, so a run started under A and redriven under B reads [A, B]; null on a row stored before schema version 17"},"emitted":{"type":"array","items":{"$ref":"#/$defs/EmittedFact"},"description":"the facts the run emitted (ADR-0063 B30): the outbox rows naming the run, oldest first, at most BUNDLE_EMITTED_MAX; empty for a run that emitted none and for one finished before schema version 17"},"downstream":{"type":"array","items":{"$ref":"#/$defs/DownstreamRun"},"description":"the listener runs the emitted facts started (ADR-0063 B30): found by the one-fact key listener.<name>:<outboxId> (a redelivery's extension included) and, for a batch listener, through the slice its run's summary spells; oldest first, each run once, at most BUNDLE_DOWNSTREAM_MAX"}},"required":["version","generatedAt","run","resumeInput","replay","siblings","trigger","limbo","waits","children","ledger","truncated","host","build","builds","emitted","downstream"],"additionalProperties":false,"$defs":{"BundleRun":{"type":"object","properties":{"id":{"type":"string"},"workflow":{"type":"string"},"idempotencyKey":{"type":["string","null"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"actorLabel":{"type":"string"},"stepsPrunedAfterDays":{"description":"for a COMPLETED run, the days after which retention takes its step rows whatever its ledger (FW-089, API 2.107: the limits' retention.stepsDays; the run page and the bundle say \"steps pruned after N days\"); null for a run in any other status, whose rows stay","type":["number","null"]},"redrivable":{"type":"boolean"},"redriveBlocked":{"type":["string","null"]},"autoRedrive":{"anyOf":[{"$ref":"#/$defs/AutoRedrive"},{"type":"null"}],"description":"the engine's auto-redrive state (ADR-0084, API 2.195): the ordinal and the bound, the moment the status is about, scheduled | running | landed | exhausted | stopped and why, and whether the retry is still in motion; null for a run it never retried"},"undo":{"$ref":"#/$defs/RunUndo"},"heartbeatAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"leaseUntil":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"the attempt's lease when its kill is stored (ADR-0066 D08, API 2.35): the kill the platform itself stated plus the grace (`killAt + KILL_GRACE_MS`), the moment the resumer reclaims a RUNNING run whatever its heartbeat; null under no stored kill and on rows stored before schema version 18"},"logs":{"anyOf":[{"type":"array","items":{"$ref":"#/$defs/LogLine"}},{"type":"null"}]},"scopeId":{"description":"the partition the row belongs to","type":["string","null"]},"actor":{"type":"string"},"status":{"$ref":"#/$defs/RunStatus"},"error":{"type":["string","null"]},"input":{},"output":{},"codecId":{"description":"the payload codec the row's values are sealed under (ADR-0063 B25): the bound codec's id at the write, null for values stored in clear and on rows stored before schema version 15; a value under an id this deployment does not bind reads `[encoded]`","type":["string","null"]},"startedAt":{"type":"string","description":"an ISO instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"undoneAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"undoneByRunId":{"type":["string","null"]},"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]},"compensation":{"anyOf":[{"$ref":"#/$defs/RunCompensation"},{"type":"null"}]},"signature":{"type":["string","null"]},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the version of the definition the run started under (ADR-0051 §15); 1 on a row stored before the column"},"definitionVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the registered definition's version (ADR-0051 §15): what a redrive must accept when it differs from `version`; null when this deployment does not know the workflow"},"definitionReplay":{"anyOf":[{"type":"string","enum":["strict","lenient"]},{"type":"null"}],"description":"the registered definition's replay policy (ADR-0063 B04, PR 2; API 2.30): `strict` (a divergence from the run's rows is `ReplayDiverged`) or `lenient` (counted and served as before); null when this deployment does not know the workflow"},"state":{"description":"the run's declared state as the row carries it (ADR-0076 FP-031, API 2.140: `ctx.state`, written at the step boundary after it moved and at the landing); null on a run that never wrote one and on rows stored before schema version 28"},"queries":{"type":"array","items":{"$ref":"#/$defs/RunQueryValue"},"description":"the queries the registered definition declares (ADR-0076 FP-031, API 2.140), each with its value over the stored state as GET runs/:id/query/:name would answer it with no args (`error` the handler's sentence when it threw, `value` null then); empty for a definition without queries or one this deployment does not know"},"updates":{"type":"array","items":{"$ref":"#/$defs/RunUpdateLast"},"description":"the updates the registered definition declares (ADR-0076 FP-031, API 2.140), each with the last one the run's door rows applied among the step rows served (`last`: its id, its value or the body's refusal, the door row's moment and attempt), null when none yet; empty for a definition without updates or one this deployment does not know"},"lightweight":{"type":"boolean","description":"a lightweight run (ADR-0076 FP-038, API 2.142): the registered definition's word (`defineWorkflow({ lightweight: true })`, `on(…, { lightweight: true })`), else whether the row carries step outputs; such a run is one run row and no step row, every step a read kept in memory and landed under `stepOutputs`, re-run whole after a crash"},"stepOutputs":{"description":"a lightweight run's step outputs (ADR-0076 FP-038, API 2.142): the list `[{ seq, step, ms, output }]` its landing wrote beside `output` (schema version 29, `WorkflowRun.stepOutputs`), each output in the stored form under the step output cap; null on every other run and on a lightweight run not yet landed"},"cancelRequestedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"cancelRequestedBy":{"type":["string","null"]},"held":{"anyOf":[{"type":"object","properties":{"at":{"type":"string","description":"an ISO instant"},"by":{"type":"string"},"reason":{"type":["string","null"]}},"required":["at","by","reason"],"additionalProperties":false},{"type":"null"}],"description":"a hold a person asked for (ADR-0063 B37): when, who and why (the newest run.hold run's reason, null when none was given); null until run.hold sets it, cleared by run.resume and by a redrive's claim; the run parks on a `hold` wait at its next step boundary"},"deadlineAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"the run's deadline (ADR-0063 B16): its start plus the definition's `timeout`, re-armed by a redrive's claim; null without a timeout and on a row stored before the column"},"inputHash":{"description":"the content hash of the stored input (ADR-0063 B20), compared on every key hit; null on a row stored before the column","type":["string","null"]},"tags":{"anyOf":[{"$ref":"#/$defs/RunTags"},{"type":"null"}],"description":"the run's tags (ADR-0063 B33): the definition's `tags(input)` as stored at the run's birth, what GET runs?tag=k:v matches; null on a run without any and on a row stored before schema version 16"},"build":{"description":"the build the run's latest attempt ran under (ADR-0063 B10): the deployment's commit (under the platform's adapter), written at the start and rewritten by every claim that opens an attempt (a redrive's, the resumer's, a wake's); null off a platform naming none and on a row stored before schema version 17","type":["string","null"]},"builds":{"anyOf":[{"type":"array","items":{"type":["string","null"]}},{"type":"null"}],"description":"the builds of the run's attempts in order (ADR-0063 B10): builds[attempt - 1] is the build that attempt ran under, null for one off a platform naming none, so a run started under A and redriven under B reads [A, B]; null on a row stored before schema version 17"},"parentRunId":{"type":["string","null"]},"parentStep":{"type":["string","null"]},"continuedFrom":{"description":"the run this one continued from by continue-as-new (ADR-0076 FP-032; API 2.139): the closed run's id, whose `continuedTo` names this run; null on a run that opened no chain and on a row stored before schema version 28","type":["string","null"]},"continuedTo":{"description":"the run this one continued into by continue-as-new (ADR-0076 FP-032; API 2.139): set when the status is CONTINUED, the next run's id under the same key; null otherwise","type":["string","null"]},"wait":{"anyOf":[{"$ref":"#/$defs/RunWait"},{"type":"null"}]},"steps":{"type":"array","items":{"$ref":"#/$defs/RunStep"}},"children":{"type":"array","items":{"$ref":"#/$defs/RunChild"},"description":"the runs this run's steps started (ctx.child, ctx.fanOut), oldest first, at most 100 since API 2.141 (ADR-0076 FP-037; every child before it)"},"childrenMore":{"type":"boolean","description":"since API 2.141 (ADR-0076 FP-037): true when children beyond the hundred listed stand; a fan-out's join says the whole count"},"join":{"anyOf":[{"$ref":"#/$defs/RunJoin"},{"type":"null"}],"description":"since API 2.141 (ADR-0076 FP-037): the fan-out's join, the newest join wait of the run with its step, its counters, whether and when it fired, and the first failed children by start (at most 10); null on a run that never fanned out"},"tolerated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the step rows of the run's latest attempt whose failure the body took as a value (onFail: \"return\", ADR-0063 Appendix M U6): FAILED with the outcome TOLERATED, nothing to undo; 0 when none"}},"required":["id","workflow","idempotencyKey","attempts","actorLabel","stepsPrunedAfterDays","redrivable","redriveBlocked","autoRedrive","undo","heartbeatAt","leaseUntil","logs","scopeId","actor","status","error","input","output","codecId","startedAt","finishedAt","undoneAt","undoneByRunId","dismissedAt","dismissedBy","dismissReason","compensation","signature","version","definitionVersion","definitionReplay","state","queries","updates","lightweight","stepOutputs","cancelRequestedAt","cancelRequestedBy","held","deadlineAt","inputHash","tags","build","builds","parentRunId","parentStep","continuedFrom","continuedTo","wait","steps","children","childrenMore","join","tolerated"],"additionalProperties":false},"AutoRedrive":{"type":"object","properties":{"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the ordinal of the auto-redrive the row is about, 1..max"},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the bound in force when it was judged"},"at":{"type":"string","description":"the moment the status is about: the delayed fact's delivery while scheduled, the admission while running, the transition's moment otherwise"},"status":{"type":"string","enum":["scheduled","running","landed","exhausted","stopped"],"description":"scheduled (the delayed fact queued), running (the request admitted), landed (the redrive completed), exhausted (the bound spent), stopped (a cause the engine will not retry, a dismissal, a refusal, an undo)"},"reason":{"description":"why the engine stopped (stopped alone); null otherwise","type":["string","null"]},"pending":{"type":"boolean","description":"judged at read time with the engine's bound (ADR-0084 decision 6): a scheduled row until its moment plus the grace, a running one until its admission plus the lease; the sweep, the gate and the chip read this word and spell no bound"}},"required":["n","max","at","status","reason","pending"],"additionalProperties":false},"RunUndo":{"type":"object","properties":{"undoable":{"type":"boolean"},"reason":{"type":["string","null"]},"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the rows a reversal reverts nothing of: those a reversal of any run already reverses, and the divergence rows `diverged` names"},"diverged":{"type":"array","items":{"$ref":"#/$defs/UndoBlock"},"description":"the run's divergence rows (`<step>:diverged`, ADR-0063 amended 2026-10-05: what the world held under an intent this run never landed, another writer's value), each with the one reason; never reverted, never a block, counted among `skipped`"},"blocked":{"type":"array","items":{"$ref":"#/$defs/UndoBlock"}},"stopped":{"anyOf":[{"type":"object","properties":{"undoRunId":{"type":"string"},"status":{"type":"string"}},"required":["undoRunId","status"],"additionalProperties":false},{"type":"null"}]}},"required":["undoable","reason","rows","skipped","diverged","blocked","stopped"],"additionalProperties":false},"UndoBlock":{"type":"object","properties":{"entryId":{"type":"string"},"step":{"type":"string"},"resourceType":{"type":"string"},"resourceId":{"type":"string"},"reason":{"type":"string"}},"required":["entryId","step","resourceType","resourceId","reason"],"additionalProperties":false},"LogLine":{"type":"object","properties":{"ts":{"type":"string","description":"an ISO instant"},"level":{"type":"string","enum":["debug","info","warn","error"]},"event":{"type":"string"},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["ts","level","event"],"additionalProperties":false},"RunStatus":{"type":"string","enum":["RUNNING","COMPLETED","FAILED","COMPENSATED","UNDONE","WAITING","CONTINUED"]},"RunCompensation":{"type":"object","properties":{"undone":{"type":"array","items":{"type":"string"}},"failed":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"error":{"type":"string"}},"required":["step","error"],"additionalProperties":false}},"irreversible":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"reason":{"type":"string"}},"required":["step","reason"],"additionalProperties":false}},"skipped":{"description":"why nothing was undone on a run the resumer landed FAILED without an attempt (ADR-0051 §15's `version mismatch`; since FW-021 the landing's own words, `abandoned: attempt limit <n>`, `abandoned: <the replay verdict>`): its completed steps' effects stand, nothing was tried; absent on a run a saga compensated","type":"string"}},"required":["undone","failed","irreversible"],"additionalProperties":false},"RunQueryValue":{"type":"object","properties":{"name":{"type":"string"},"value":{"description":"the handler's answer over the stored state with no args; null when it threw"},"error":{"description":"the handler's sentence when it threw over the stored state; null when it answered","type":["string","null"]}},"required":["name","value","error"],"additionalProperties":false},"RunUpdateLast":{"type":"object","properties":{"name":{"type":"string"},"last":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"the update's id, the dedupe key the caller sent"},"value":{"description":"the value apply answered; null when the body refused it"},"refused":{"description":"the body's refusal (the validator's or apply's sentence at the door); null when applied","type":["string","null"]},"at":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"when the door's row landed"},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the attempt whose door applied it"}},"required":["id","value","refused","at","attempt"],"additionalProperties":false},{"type":"null"}],"description":"the last update of this name the run's door rows applied, among the step rows served; null when none yet"}},"required":["name","last"],"additionalProperties":false},"RunTags":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"RunWait":{"type":"object","properties":{"id":{"type":"string"},"kind":{"$ref":"#/$defs/WaitKind"},"step":{"type":"string"},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"type":["string","null"]},"eventName":{"type":["string","null"]},"matchHash":{"type":["string","null"]},"childRunId":{"type":["string","null"]},"until":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"createdAt":{"type":"string","description":"an ISO instant"},"firedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"firedBy":{"anyOf":[{"$ref":"#/$defs/WaitFiredBy"},{"type":"null"}]},"payload":{},"batch":{"anyOf":[{"$ref":"#/$defs/RunWaitBatch"},{"type":"null"}],"description":"the batch a continue wait parked before a chunk (FW-046, API 2.104), read off the park step row; null on any other wait and on a park whose row is gone"},"join":{"anyOf":[{"$ref":"#/$defs/RunWaitJoin"},{"type":"null"}],"description":"the join's counters on a join wait (ADR-0076 FP-037, API 2.141: ctx.fanOut's park, the children started, not yet landed, failed and the failures tolerated); null on every other kind"}},"required":["id","kind","step","seq","attempt","token","eventName","matchHash","childRunId","until","createdAt","firedAt","firedBy","payload","batch","join"],"additionalProperties":false},"WaitKind":{"type":"string","enum":["timer","signal","child","continue","slot","rate","retry","hold","cancel","join"]},"WaitFiredBy":{"type":"string","enum":["timer","fact","signal","child","deadline","continue","slot","cancel","timeout","resume","landed","join"]},"RunWaitBatch":{"type":"object","properties":{"name":{"type":"string","description":"the batch's name"},"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the chunk the run continues at (0-based)"},"total":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the chunk count, the array form's; null under the cursor form"}},"required":["name","index","total"],"additionalProperties":false},"RunWaitJoin":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children the fan-out started"},"remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children not yet landed (the join fires at 0)"},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children landed FAILED or COMPENSATED"},"tolerated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the failures the join admits before it fires failed"}},"required":["total","remaining","failed","tolerated"],"additionalProperties":false},"RunStep":{"type":"object","properties":{"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"stepId":{"description":"the step's stable identity (ADR-0051 §15); null on a step declared without one and on a row stored before the column","type":["string","null"]},"declared":{"anyOf":[{"$ref":"#/$defs/StepDeclaration"},{"type":"null"}],"description":"what the step declared (ADR-0060 decision 12): its undo, its reason, its effect and its id as the recorder stored them on the row; null on a row stored before schema version 12"},"status":{"$ref":"#/$defs/StepStatus"},"outcome":{"anyOf":[{"anyOf":[{"$ref":"#/$defs/StepOutcome"},{"type":"string"}]},{"type":"null"}]},"pending":{"anyOf":[{"type":"array","items":{"$ref":"#/$defs/PendingWrite"}},{"type":"null"}]},"wait":{"anyOf":[{"$ref":"#/$defs/RunWait"},{"type":"null"}]},"startedAt":{"type":"string","description":"an ISO instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"durationMs":{"type":["number","null"]},"tookMs":{"description":"how long the row stood open, ms (ADR-0066 D12: finishedAt − startedAt, computed in the read model); null while the row is open","type":["number","null"]},"overMs":{"description":"on a step stamped FunctionKilled (ADR-0066 D07): how far past its deadline the reclaim came, ms, as the row's error text spells it (whole seconds); null on every other row","type":["number","null"]},"error":{"type":["string","null"]},"input":{},"output":{},"logs":{"anyOf":[{"type":"array","items":{"$ref":"#/$defs/LogLine"}},{"type":"null"}]},"errorCode":{"type":["string","null"]},"codecId":{"description":"the payload codec the row's values are sealed under (ADR-0063 B25): the bound codec's id at the write, null for values stored in clear and on rows stored before schema version 15; a value under an id this deployment does not bind reads `[encoded]`","type":["string","null"]},"remedy":{"description":"what to do about the step's errorCode (ADR-0060 decision 15: the host's row, else the engine's registry); null when the step did not fail or no table names the code","type":["string","null"]},"superseded":{"type":"boolean","description":"a newer row under the same memo key replaced this one (the review of FW-091, API 2.108): the recorder never consults it again; judged per row, never per attempt, since a memo hit inserts no row and an older attempt's served rows stand in the run's walk"}},"required":["attempt","seq","name","stepId","declared","status","outcome","pending","wait","startedAt","finishedAt","durationMs","tookMs","overMs","error","input","output","logs","errorCode","codecId","remedy","superseded"],"additionalProperties":false},"StepDeclaration":{"type":"object","properties":{"undo":{"type":"boolean","description":"whether the step carries a compensate (an undo)"},"irreversible":{"description":"the reason the step cannot undo; null when it can","type":["string","null"]},"effect":{"type":"string","enum":["read","ledgered","external","provider"],"description":"what the step does to the world (ADR-0041 item 31)"},"id":{"description":"the step's stable identity (ADR-0051 §15), null without one","type":["string","null"]},"retry":{"description":"the retry the step declared and the tries its row counted (ADR-0063 B03), with its resume word when declared \"park\" (LB-004); absent without one","type":"object","properties":{"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many times the body may run in all"},"tries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the tries the row counted, resumed after a crash"},"resume":{"description":"the policy's resume word when it is \"park\" (ADR-0063 B03 amendment 2026-10-10, LB-004: every next try on a fresh invocation after a retry park); absent for the inline default and on a row stored before the word","type":"string","const":"park"}},"required":["attempts","tries"],"additionalProperties":false},"timeoutMs":{"description":"the timeout the step declared, ms (ADR-0063 B03); absent without one","type":"number"},"needsMs":{"description":"the need the step declared, ms (ADR-0066 D06: what it must have left of the budget to start; 0 admitted); absent without one, when the engine assumes the kind's default: a plain step's min(STEP_NEEDS_DEFAULT_MS, timeoutMs), an external step's two calls (2 × (external.timeoutMs ?? externalCallTimeoutMs), FW-020)","type":"number"},"external":{"description":"the step is an external step (FW-020; ADR-0066 D06 as landed): the phases, a read and a write of one call each, whose default need is two calls; absent on a plain step (a recordedWrite inside one keeps the plain default) and on a row stored before the field","type":"object","properties":{"timeoutMs":{"description":"the spec's own per-call timeout, ms; absent for the provider's default (the contract's externalCallTimeoutMs)","type":"number"},"idempotent":{"type":"boolean","description":"the spec's retry.idempotent: a non-idempotent write is never retried and is reconciled from the world"}},"required":["idempotent"],"additionalProperties":false},"onFail":{"description":"the failure policy the step declared (ADR-0063 Appendix M U6): \"return\" when its failure is its value, the row then FAILED with the outcome TOLERATED; absent for the default (throw)","type":"string","const":"return"},"completion":{"description":"the completion policy the step declared (FP-011 as landed, ADR-0076 D05 (3) opt-in): \"behind\" when a read step's COMPLETED row rides the next boundary's statement or the finish (one statement a step; a crash between the body's return and that statement leaves the row STARTED and the next attempt re-invokes the read); absent for the default (\"now\": the row in its own statement before the body goes on, replayed after any crash) and on a row stored before the field","type":"string","const":"behind"},"services":{"description":"the services the step read through i.services (ADR-0063 Appendix M U4), by name, sorted; absent when it read none","type":"array","items":{"type":"string"}}},"required":["undo","irreversible","effect","id"],"additionalProperties":false},"StepStatus":{"type":"string","enum":["STARTED","COMPLETED","FAILED","COMPENSATED","WAITING"]},"StepOutcome":{"type":"string","enum":["COMPENSATED","COMPENSATION_FAILED","IRREVERSIBLE","FENCED","RECONCILED","TOLERATED"]},"PendingWrite":{"type":"object","properties":{"writeKey":{"type":"string"},"scope":{"type":"string","description":"the ledger partition"},"resourceType":{"type":"string"},"resourceId":{"type":"string"},"operation":{"type":"string"},"before":{},"after":{},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"string","description":"an ISO instant"}},"required":["writeKey","scope","resourceType","resourceId","operation","before","after","attempt","at"],"additionalProperties":false},"RunChild":{"type":"object","properties":{"id":{"type":"string"},"workflow":{"type":"string"},"parentStep":{"type":["string","null"]},"status":{"$ref":"#/$defs/RunStatus"},"error":{"type":["string","null"]},"startedAt":{"type":"string","description":"an ISO instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]}},"required":["id","workflow","parentStep","status","error","startedAt","finishedAt"],"additionalProperties":false},"RunJoin":{"type":"object","properties":{"step":{"type":"string","description":"the fan-out's step (fanout:<workflow> unless named)"},"waitId":{"type":"string","description":"the join wait row"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children the fan-out started"},"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children landed (total less remaining)"},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children landed FAILED or COMPENSATED"},"tolerated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the failures the join admits before it fires failed"},"fired":{"type":"boolean","description":"whether the join fired"},"firedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"when it fired; null while open"},"failedChildren":{"type":"array","items":{"$ref":"#/$defs/RunChild"},"description":"the first failed children by start, at most 10"}},"required":["step","waitId","total","done","failed","tolerated","fired","firedAt","failedChildren"],"additionalProperties":false},"BundleStepReplay":{"type":"object","properties":{"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"status":{"$ref":"#/$defs/StepStatus"},"outcome":{"type":["string","null"]},"inputHash":{"type":["string","null"]},"replayable":{"type":"boolean"},"reason":{"type":"string"}},"required":["attempt","seq","name","status","outcome","inputHash","replayable"],"additionalProperties":false},"BundleSibling":{"type":"object","properties":{"id":{"type":"string"},"workflow":{"type":"string"},"status":{"$ref":"#/$defs/RunStatus"},"error":{"type":["string","null"]},"startedAt":{"type":"string","description":"an ISO instant"},"relation":{"type":"string","enum":["shares the key","owns the key","undid this run","redrove this run","dismissed this run","signalled this run","target of this run"]}},"required":["id","workflow","status","error","startedAt","relation"],"additionalProperties":false},"BundleTrigger":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"event"},"listener":{"type":"string"},"outboxId":{"type":"string"},"event":{"anyOf":[{"$ref":"#/$defs/BundleEvent"},{"type":"null"}]}},"required":["kind","listener","outboxId","event"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"batch"},"listener":{"type":"string"},"first":{"type":["string","null"]},"last":{"type":["string","null"]},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"events":{"type":"array","items":{"$ref":"#/$defs/BundleEvent"}},"missing":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"}},"required":["kind","listener","first","last","size","events","missing"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"schedule"},"workflow":{"type":"string"},"slot":{"type":["string","null"]},"event":{"anyOf":[{"$ref":"#/$defs/BundleEvent"},{"type":"null"}]}},"required":["kind","workflow","slot","event"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"child"},"parentRunId":{"type":"string"},"parentStep":{"type":["string","null"]},"parent":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"workflow":{"type":"string"},"status":{"$ref":"#/$defs/RunStatus"},"error":{"type":["string","null"]}},"required":["id","workflow","status","error"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","parentRunId","parentStep","parent"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"direct"},"actor":{"type":"string"}},"required":["kind","actor"],"additionalProperties":false}]},"BundleEvent":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"key":{"type":"string"},"scope":{"description":"the partition, or null","type":["string","null"]},"payload":{},"partition":{"type":["string","null"]},"occurredAt":{"type":"string","description":"an ISO instant"},"dispatchedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"type":["string","null"]},"origin":{"type":["string","null"]},"peerId":{"type":["string","null"]},"deliverAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"cancelledAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"cancelledBy":{"type":["string","null"]},"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","key","scope","payload","partition","occurredAt","dispatchedAt","attempts","lastError","origin","peerId","deliverAt","cancelledAt","cancelledBy","dismissedAt","dismissedBy","dismissReason","priority"],"additionalProperties":false},"LedgerEntry":{"type":"object","properties":{"id":{"type":"string"},"seq":{"type":"string"},"runId":{"type":"string"},"step":{"type":"string"},"scope":{"type":"string","description":"the ledger partition"},"actor":{"type":"string"},"resourceType":{"type":"string"},"resourceId":{"type":"string"},"operation":{"type":"string"},"before":{},"after":{},"reversesId":{"type":["string","null"]},"attempt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"occurredAt":{"type":"string","description":"an ISO instant"},"codecId":{"description":"the payload codec the row's values are sealed under (ADR-0063 B25): the bound codec's id at the write, null for values stored in clear and on rows stored before schema version 15; a value under an id this deployment does not bind reads `[encoded]`","type":["string","null"]}},"required":["id","seq","runId","step","scope","actor","resourceType","resourceId","operation","before","after","reversesId","attempt","occurredAt","codecId"],"additionalProperties":false},"TruncatedBytes":{"type":"object","properties":{"before":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the whole answer's bytes before the cut, what it would have been"},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the cap the answer was cut to fit (ANSWER_BYTES_MAX, GET limits' answerBytesMax)"},"cut":{"type":"array","items":{"type":"string"},"description":"the lists cut, in the order they were cut (the bundle: downstream, emitted, ledger, host.<table>, steps; the run page: downstream, emitted, entries, steps)"}},"required":["before","max","cut"],"additionalProperties":false},"HostBundle":{"type":"object","properties":{"version":{"type":"number","const":1},"tables":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"key":{"type":"array","items":{"type":"string"}},"rows":{"type":"array","items":{}}},"required":["key","rows"],"additionalProperties":false}},"truncated":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"error":{"type":"string"}},"required":["version","tables"],"additionalProperties":false},"EmittedFact":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"key":{"type":"string"},"scope":{"type":["string","null"]},"partition":{"type":["string","null"]},"attempt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the attempt of the run the fact was emitted under; null on a row stored before schema version 17"},"occurredAt":{"type":"string","description":"an ISO instant"},"status":{"type":"string","enum":["delivered","cancelled","dismissed","exhausted","scheduled","backing_off","pending"],"description":"delivered, cancelled by key, dismissed by a person (event.dismiss, ADR-0041 amendment 2026-10-05: exhausted and taken off the board), exhausted (attempts at MAX_ATTEMPTS with no delivery), scheduled ahead of its moment, backing off after a transport failure, or pending its turn"},"deliveredAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"type":["string","null"]}},"required":["id","name","key","scope","partition","attempt","occurredAt","status","deliveredAt","attempts","lastError"],"additionalProperties":false},"DownstreamRun":{"type":"object","properties":{"runId":{"type":"string"},"workflow":{"type":"string"},"listener":{"type":"string"},"eventIds":{"type":"array","items":{"type":"string"},"description":"the ids among this run's facts the listener run reacted to: one for a one-fact listener, the slice's among this run's facts for a batch listener"},"status":{"$ref":"#/$defs/RunStatus"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":["string","null"]},"startedAt":{"type":"string","description":"an ISO instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]}},"required":["runId","workflow","listener","eventIds","status","attempts","error","startedAt","finishedAt"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}/drift":{"get":{"operationId":"console.run.drift","summary":"The run's drift: for each of its ledger rows with an after image (source ledger; source diverged for a `<step>:diverged` row, what the world held under an intent this run never landed) and each pending intent of its latest attempt's failed or in-progress step (source intent: the refused write's expectation), the resource's current row through the host's reader, a field diff (before, after, now) over the after image's or the expected image's keys and the run that moved the resource (after a ledger row, before a diverged row); bounded; 404 for a run that is gone.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0063 B13","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"}},"required":["id"]},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string"},"rows":{"type":"array","items":{"$ref":"#/$defs/DriftRow"}},"truncated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many of the run's oldest rows (its ledger rows with an after image and its pending intents together) the bound cut"}},"required":["runId","rows","truncated"],"additionalProperties":false,"$defs":{"DriftRow":{"type":"object","properties":{"id":{"type":"string","description":"the ledger row's id, or `<step row id>:<writeKey>` for an intent row"},"seq":{"type":"string","description":"the ledger row's seq, or the step's seq for an intent row"},"source":{"type":"string","enum":["ledger","intent","diverged"],"description":"`ledger`: a ledger row this run wrote, its after image what the run left; `intent`: a pending intent of the run's latest attempt's failed or in-progress step, the refused write's expected image (what the run expected and the world no longer held), nothing written; `diverged`: a divergence row (`<step>:diverged`, ADR-0063 amended 2026-10-05), its before image the intent an earlier attempt left and its after image what the world held under it when a later attempt reconciled it (another writer's value), nothing written by this run"},"step":{"type":"string"},"resourceType":{"type":"string"},"resourceId":{"type":"string"},"operation":{"type":"string"},"reversesId":{"description":"the row this one reverses; always null on an intent row","type":["string","null"]},"occurredAt":{"type":"string","description":"the ledger row's moment, or the intent's `at` (stamped right after the read, before the refused call)"},"now":{"description":"the resource's current row in its stored form, through the host's reader (the bound reverter's read); null with `reason` when the host reads no resource of this type (`no reader`), the row is gone (`gone`) or the reader threw"},"reason":{"description":"why `now` is null; null when the row was read","type":["string","null"]},"fields":{"type":"array","items":{"$ref":"#/$defs/DriftField"}},"movedBy":{"anyOf":[{"$ref":"#/$defs/DriftMovedBy"},{"type":"null"}],"description":"the newest ledger row another run wrote on the resource after this row (above a ledger row's seq; at or after an intent row's moment), or, on a diverged row, before it (the newest row of another run below its seq, whose value the divergence recorded); null when none did within the newest rows read (a mover no run names: a sync, a hand)"}},"required":["id","seq","source","step","resourceType","resourceId","operation","reversesId","occurredAt","now","reason","fields","movedBy"],"additionalProperties":false},"DriftField":{"type":"object","properties":{"field":{"type":"string","description":"a key of the row's after image (a ledger row) or of the refused write's expected image (an intent row)"},"before":{"description":"the value as the step read it (the before image's; null when it named none), as the refused write expected it on an intent row, or as the intent an earlier attempt left expected it on a diverged row"},"after":{"description":"the value as the step left it (the after image's); on a diverged row what the world held under the intent when the divergence was recorded (another writer's value, nothing this run wrote); null on an intent row, which wrote nothing"},"now":{"description":"the value as the resource holds it now; null when `now` on the row is null (read the row's `reason`)"}},"required":["field","before","after","now"],"additionalProperties":false},"DriftMovedBy":{"type":"object","properties":{"runId":{"type":"string"},"step":{"type":"string"},"actor":{"type":"string"},"at":{"type":"string","description":"an ISO instant"}},"required":["runId","step","actor","at"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/errors":{"get":{"operationId":"console.errors","summary":"The Errors page: the last week's runs in limbo with their verdicts, the failed step rows, the events carrying an error with what each listener did, and the heads that stop their partition; since ADR-0069 U46a `list=runs|steps|events|blocked` answers that list alone (the other three empty) at `limit=` rows (25 unless said, 200 at most), a step row and an event row then carrying `live` (its run still in limbo and not set aside); the parameterless call 100 of each as before.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0046 §G; ADR-0041 item 14; ADR-0069 U46a","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"list":{"description":"one list alone (the other three empty), ADR-0069 U46a","type":"string","enum":["runs","steps","events","blocked"]},"limit":{"description":"rows of that list, 1 to 200 (25 unless said); the parameterless call reads 100 of each","type":"string"}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"runs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"workflow":{"type":"string"},"scopeId":{"description":"the partition the row belongs to","type":["string","null"]},"actor":{"type":"string"},"actorLabel":{"type":"string"},"status":{"$ref":"#/$defs/RunStatus"},"error":{"type":["string","null"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startedAt":{"type":"string","description":"an ISO instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"redrivable":{"type":"boolean"},"redriveBlocked":{"type":["string","null"]},"undo":{"$ref":"#/$defs/RunUndo"},"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]},"compensation":{"anyOf":[{"$ref":"#/$defs/RunCompensation"},{"type":"null"}]},"signature":{"type":["string","null"]}},"required":["id","workflow","scopeId","actor","actorLabel","status","error","attempts","startedAt","finishedAt","redrivable","redriveBlocked","undo","dismissedAt","dismissedBy","dismissReason","compensation","signature"],"additionalProperties":false}},"steps":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"error":{"type":["string","null"]},"errorCode":{"type":["string","null"]},"startedAt":{"type":"string","description":"an ISO instant"},"live":{"description":"under list=steps (ADR-0069 U46a): whether the step's run is still in limbo and not set aside; absent on the parameterless call","type":"boolean"}},"required":["runId","seq","name","error","errorCode","startedAt"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"key":{"type":"string"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"type":["string","null"]},"occurredAt":{"type":"string","description":"an ISO instant"},"dispatchedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"parked":{"type":"boolean"},"retryAt":{"type":["string","null"]},"exhausted":{"type":"boolean"},"attemptLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the count the row exhausts at under its listener's retry policy (ADR-0076 FP-028, API 2.128), null for the engine's MAX_ATTEMPTS"},"exhaustedBy":{"description":"the listener whose retry policy exhausted the row (ADR-0076 FP-028, API 2.128): its dead-letter queue, what GET events?exhausted=<listener> lists; null until exhausted and on a row exhausted before the column","type":["string","null"]},"origin":{"type":["string","null"]},"peerKey":{"type":["string","null"]},"relayedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"relayedOutAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"listeners":{"type":"array","items":{"$ref":"#/$defs/ListenerResult"}},"live":{"description":"under list=events (ADR-0069 U46a): whether a listener run of the row is still in limbo and not set aside; null when no listener run is known for it; absent on the parameterless call","type":["boolean","null"]}},"required":["id","name","key","attempts","lastError","occurredAt","dispatchedAt","parked","retryAt","exhausted","attemptLimit","exhaustedBy","origin","peerKey","relayedAt","relayedOutAt","listeners"],"additionalProperties":false}},"blocked":{"type":"array","items":{"$ref":"#/$defs/BlockedHead"}}},"required":["runs","steps","events","blocked"],"additionalProperties":false,"$defs":{"RunStatus":{"type":"string","enum":["RUNNING","COMPLETED","FAILED","COMPENSATED","UNDONE","WAITING","CONTINUED"]},"RunUndo":{"type":"object","properties":{"undoable":{"type":"boolean"},"reason":{"type":["string","null"]},"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the rows a reversal reverts nothing of: those a reversal of any run already reverses, and the divergence rows `diverged` names"},"diverged":{"type":"array","items":{"$ref":"#/$defs/UndoBlock"},"description":"the run's divergence rows (`<step>:diverged`, ADR-0063 amended 2026-10-05: what the world held under an intent this run never landed, another writer's value), each with the one reason; never reverted, never a block, counted among `skipped`"},"blocked":{"type":"array","items":{"$ref":"#/$defs/UndoBlock"}},"stopped":{"anyOf":[{"type":"object","properties":{"undoRunId":{"type":"string"},"status":{"type":"string"}},"required":["undoRunId","status"],"additionalProperties":false},{"type":"null"}]}},"required":["undoable","reason","rows","skipped","diverged","blocked","stopped"],"additionalProperties":false},"UndoBlock":{"type":"object","properties":{"entryId":{"type":"string"},"step":{"type":"string"},"resourceType":{"type":"string"},"resourceId":{"type":"string"},"reason":{"type":"string"}},"required":["entryId","step","resourceType","resourceId","reason"],"additionalProperties":false},"RunCompensation":{"type":"object","properties":{"undone":{"type":"array","items":{"type":"string"}},"failed":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"error":{"type":"string"}},"required":["step","error"],"additionalProperties":false}},"irreversible":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"reason":{"type":"string"}},"required":["step","reason"],"additionalProperties":false}},"skipped":{"description":"why nothing was undone on a run the resumer landed FAILED without an attempt (ADR-0051 §15's `version mismatch`; since FW-021 the landing's own words, `abandoned: attempt limit <n>`, `abandoned: <the replay verdict>`): its completed steps' effects stand, nothing was tried; absent on a run a saga compensated","type":"string"}},"required":["undone","failed","irreversible"],"additionalProperties":false},"ListenerResult":{"type":"object","properties":{"listener":{"type":"string"},"policy":{"$ref":"#/$defs/RelayPolicy"},"status":{"type":"string","enum":["executed","skipped","failed","compensated","running","waiting","pending"]},"reason":{"type":["string","null"]},"runId":{"type":["string","null"]},"batch":{"anyOf":[{"$ref":"#/$defs/BatchOutcome"},{"type":"null"}]}},"required":["listener","policy","status","reason","runId","batch"],"additionalProperties":false},"RelayPolicy":{"type":"string","description":"`execute`, `record`, `execute:<peers>` or `record (<role>)`: the listener's relay policy as a label"},"BatchOutcome":{"type":"object","properties":{"runId":{"type":"string"},"first":{"type":"string"},"last":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["runId","first","last","size"],"additionalProperties":false},"BlockedHead":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"key":{"type":"string"},"origin":{"type":["string","null"]},"partition":{"type":["string","null"]},"state":{"type":"string","enum":["blocked","waiting"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"type":["string","null"]},"occurredAt":{"type":"string","description":"an ISO instant"},"retryAt":{"type":["string","null"]},"exhausted":{"type":"boolean"},"attemptLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the count the row exhausts at under its listener's retry policy (ADR-0076 FP-028, API 2.128), null for the engine's MAX_ATTEMPTS"},"exhaustedBy":{"description":"the listener whose retry policy exhausted the row (ADR-0076 FP-028, API 2.128): its dead-letter queue, what GET events?exhausted=<listener> lists; null until exhausted and on a row exhausted before the column","type":["string","null"]}},"required":["id","name","key","origin","partition","state","attempts","lastError","occurredAt","retryAt","exhausted","attemptLimit","exhaustedBy"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/events":{"get":{"operationId":"console.events.list","summary":"The newest outbox rows, take of them, each with its listener outcomes and relay provenance, narrowed by the search fields; the next page's cursor is the last row's occurredAt|id. Since API 2.145 (ADR-0076 FP-041) a page over answerBytesMax keeps its newest rows that fit and says the cut on the X-Durable-Truncated header, the older rows the next page's under the last row's own cursor.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0046 §G; ADR-0051 §7","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"limit":{"description":"rows, 1 to 1000 (200 unless said); a whole number, more read as the most","type":"string"},"take":{"deprecated":true,"description":"the older spelling of limit, read when limit is not named; deprecated since API 2.111, gone with 3.0","type":"string"},"name":{"description":"the event's name","type":"string"},"scope":{"description":"the partition, whole","type":"string"},"partition":{"description":"the stored partition, whole","type":"string"},"key":{"description":"a prefix of the event's key, read literally","type":"string"},"undelivered":{"description":"1: only the rows the dispatcher has not delivered","type":"string"},"exhausted":{"description":"a listener's name: only its dead-letter queue, the undelivered rows exhausted under its retry policy (ADR-0076 FP-028, API 2.128)","type":"string"},"before":{"description":"the cursor of an older page: the last row's occurredAt|id","type":"string"}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/$defs/OutboxEvent"},"$defs":{"OutboxEvent":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"key":{"type":"string"},"scope":{"description":"the partition, or null","type":["string","null"]},"peerId":{"type":["string","null"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"type":["string","null"]},"occurredAt":{"type":"string","description":"an ISO instant"},"dispatchedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"payload":{},"retryAt":{"type":["string","null"]},"exhausted":{"type":"boolean"},"attemptLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the count the row exhausts at under its listener's retry policy (ADR-0076 FP-028, API 2.128), null for the engine's MAX_ATTEMPTS"},"exhaustedBy":{"description":"the listener whose retry policy exhausted the row (ADR-0076 FP-028, API 2.128): its dead-letter queue, what GET events?exhausted=<listener> lists; null until exhausted and on a row exhausted before the column","type":["string","null"]},"deliverAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"scheduled":{"type":"boolean"},"cancelled":{"type":"boolean"},"cancelledAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"cancelledBy":{"type":["string","null"]},"dismissed":{"type":"boolean"},"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the row's priority (ADR-0076 FP-025): an integer of seconds, its place in its partition's order moved ahead (positive) or behind (negative) by that many seconds; 0 for none"},"origin":{"type":["string","null"]},"peerKey":{"type":["string","null"]},"relayedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"relayedOutAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"listeners":{"type":"array","items":{"$ref":"#/$defs/ListenerResult"}}},"required":["id","name","key","scope","peerId","attempts","lastError","occurredAt","dispatchedAt","payload","retryAt","exhausted","attemptLimit","exhaustedBy","deliverAt","scheduled","cancelled","cancelledAt","cancelledBy","dismissed","dismissedAt","dismissedBy","dismissReason","priority","origin","peerKey","relayedAt","relayedOutAt","listeners"],"additionalProperties":false},"ListenerResult":{"type":"object","properties":{"listener":{"type":"string"},"policy":{"$ref":"#/$defs/RelayPolicy"},"status":{"type":"string","enum":["executed","skipped","failed","compensated","running","waiting","pending"]},"reason":{"type":["string","null"]},"runId":{"type":["string","null"]},"batch":{"anyOf":[{"$ref":"#/$defs/BatchOutcome"},{"type":"null"}]}},"required":["listener","policy","status","reason","runId","batch"],"additionalProperties":false},"RelayPolicy":{"type":"string","description":"`execute`, `record`, `execute:<peers>` or `record (<role>)`: the listener's relay policy as a label"},"BatchOutcome":{"type":"object","properties":{"runId":{"type":"string"},"first":{"type":"string"},"last":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["runId","first","last","size"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/events/{id}":{"get":{"operationId":"console.event.detail","summary":"One event: the list's row, its partition, the runs of its listeners and whether it is stuck; 404 for an id no row carries.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0051 §7","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the event's id"}},"required":["id"]},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"key":{"type":"string"},"scope":{"description":"the partition, or null","type":["string","null"]},"peerId":{"type":["string","null"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"type":["string","null"]},"occurredAt":{"type":"string","description":"an ISO instant"},"dispatchedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"payload":{},"retryAt":{"type":["string","null"]},"exhausted":{"type":"boolean"},"attemptLimit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the count the row exhausts at under its listener's retry policy (ADR-0076 FP-028, API 2.128), null for the engine's MAX_ATTEMPTS"},"exhaustedBy":{"description":"the listener whose retry policy exhausted the row (ADR-0076 FP-028, API 2.128): its dead-letter queue, what GET events?exhausted=<listener> lists; null until exhausted and on a row exhausted before the column","type":["string","null"]},"deliverAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"scheduled":{"type":"boolean"},"cancelled":{"type":"boolean"},"cancelledAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"cancelledBy":{"type":["string","null"]},"dismissed":{"type":"boolean"},"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the row's priority (ADR-0076 FP-025): an integer of seconds, its place in its partition's order moved ahead (positive) or behind (negative) by that many seconds; 0 for none"},"origin":{"type":["string","null"]},"peerKey":{"type":["string","null"]},"relayedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"relayedOutAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"listeners":{"type":"array","items":{"$ref":"#/$defs/ListenerResult"}},"partition":{"type":["string","null"]},"runs":{"type":"array","items":{"$ref":"#/$defs/EventListenerRun"}},"stuck":{"anyOf":[{"type":"object","properties":{"reason":{"type":"string"}},"required":["reason"],"additionalProperties":false},{"type":"null"}]},"dedupe":{"type":"array","items":{"$ref":"#/$defs/DedupeKeyView"},"description":"the producer's idempotency keys naming this target (ADR-0076 D06, FP-026; API 2.133): each a call deduplicated onto it inside its window (emit(…, { idempotencyKey }) for a row, execute(…, { idempotencyKey }) for a run), the latest window first, at most 20; [] for a target no key names"}},"required":["id","name","key","scope","peerId","attempts","lastError","occurredAt","dispatchedAt","payload","retryAt","exhausted","attemptLimit","exhaustedBy","deliverAt","scheduled","cancelled","cancelledAt","cancelledBy","dismissed","dismissedAt","dismissedBy","dismissReason","priority","origin","peerKey","relayedAt","relayedOutAt","listeners","partition","runs","stuck","dedupe"],"additionalProperties":false,"$defs":{"ListenerResult":{"type":"object","properties":{"listener":{"type":"string"},"policy":{"$ref":"#/$defs/RelayPolicy"},"status":{"type":"string","enum":["executed","skipped","failed","compensated","running","waiting","pending"]},"reason":{"type":["string","null"]},"runId":{"type":["string","null"]},"batch":{"anyOf":[{"$ref":"#/$defs/BatchOutcome"},{"type":"null"}]}},"required":["listener","policy","status","reason","runId","batch"],"additionalProperties":false},"RelayPolicy":{"type":"string","description":"`execute`, `record`, `execute:<peers>` or `record (<role>)`: the listener's relay policy as a label"},"BatchOutcome":{"type":"object","properties":{"runId":{"type":"string"},"first":{"type":"string"},"last":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["runId","first","last","size"],"additionalProperties":false},"EventListenerRun":{"type":"object","properties":{"listener":{"type":"string"},"policy":{"$ref":"#/$defs/RelayPolicy"},"describe":{"description":"the listener's one sentence, what it does on the fact (ADR-0063 B23), or null","type":["string","null"]},"run":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"workflow":{"type":"string"},"status":{"$ref":"#/$defs/RunStatus"},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":["string","null"]},"startedAt":{"type":"string","description":"an ISO instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]}},"required":["id","workflow","status","attempt","error","startedAt","finishedAt"],"additionalProperties":false},{"type":"null"}]},"batch":{"anyOf":[{"type":"object","properties":{"first":{"type":"string"},"last":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["first","last","size"],"additionalProperties":false},{"type":"null"}]}},"required":["listener","policy","describe","run","batch"],"additionalProperties":false},"RunStatus":{"type":"string","enum":["RUNNING","COMPLETED","FAILED","COMPENSATED","UNDONE","WAITING","CONTINUED"]},"DedupeKeyView":{"type":"object","properties":{"key":{"type":"string"},"createdAt":{"type":"string","description":"an ISO instant"},"expiresAt":{"type":"string","description":"an ISO instant"}},"required":["key","createdAt","expiresAt"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/verify":{"get":{"operationId":"console.ledger.verify","summary":"The ledger hash chain walked per partition (the daily walk bounded by the month since ADR-0078 D08; cold=1 the whole walk from genesis), or the stored walk with cached=1.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0010; ADR-0041 item 37; ADR-0078 D08","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"cached":{"description":"1: the last stored walk (at most ten minutes old) instead of a walk now","type":"string"},"cold":{"description":"1: the cold walk, every row of every month recomputed from genesis (the quarterly drill; ADR-0078 D08), instead of the daily walk bounded by the month (the current month and the previous one row by row, every earlier month judged by its signed head record's seal)","type":"string"}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/$defs/Verify","$defs":{"Verify":{"type":"object","properties":{"ok":{"type":"boolean"},"chain":{"type":"string"},"chains":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"},"appendOnly":{"type":"object","properties":{"present":{"type":"boolean"},"enabled":{"type":"boolean"}},"required":["present","enabled"],"additionalProperties":false},"scopes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"ok":{"type":"boolean"},"entries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"brokenAt":{"type":"string"},"interleaved":{"type":"array","items":{"type":"string"}}},"required":["ok","entries"],"additionalProperties":{}}},"legacyEntries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"walked":{"description":"what the walk read (FW-103): the checkpoint's bound it started above (null from genesis), the rows and page statements of the chain scan, its wall time, and whether every row was recomputed from genesis (`full`, the audit) or the walk stood on the last clean walk's checkpoint (the console's refresh); absent on a copy stored before the field","type":"object","properties":{"from":{"type":["string","null"]},"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ms":{"type":"number"},"full":{"type":"boolean"}},"required":["from","rows","pages","ms","full"],"additionalProperties":false},"months":{"description":"the ledger by month (ADR-0078 D08, API 2.161): one entry per calendar month the ledger spans (UTC, `YYYY-MM`, ascending), `rows` what the month holds (the rows walked for a walked month, the store's estimate for a sealed one, null before a partition's first vacuum) and how it was judged (`walk`: every row recomputed, the current month, the previous and any month with no seal; `seal`: the month's tail per scope held to the signed head record of `seal`, the first taken after the month ended); absent on a cold or checkpointed walk and on a copy stored before the field","type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"rows":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"judged":{"type":"string","enum":["walk","seal"]},"seal":{"type":"string"}},"required":["month","rows","judged"],"additionalProperties":false}},"computedAt":{"type":"string","description":"an ISO instant"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"}},"required":["ok","chain","chains","appendOnly","scopes","legacyEntries"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/health":{"get":{"operationId":"console.health","summary":"The workflow and step summaries of the last hours (the stored copy, refreshed after the response once older than three minutes and served whatever its age while the refresh is cut or fails, stale saying so and computedAt the moment; since API 2.191 on every read, computing on a window's first, computeFailed beside it when the last compute failed), the event lag, the schema probe, the Instance row, the two latencies, the clock skew as this process holds it and the read replica's lag (a minute's copy).","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0019; ADR-0043 §G; ADR-0076 FP-012; ADR-0078 D04","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"hours":{"description":"the window in hours (24 unless said; a value that is not a number reads as 24)","type":"string"},"cached":{"description":"admitted for an older caller and changing nothing since API 2.191: every read serves the stored copy of the window (refreshed after the response once older than three minutes, served whatever its age while the refresh is cut or fails: stale says so, computedAt the moment) and computes nothing on the request path; a window with no copy yet answers computing, computeFailed beside it when the last compute failed","type":"string"},"fields":{"description":"events: the event lag alone, { events }, none of the summaries, the probe or the latencies (ADR-0069 U46b: the Events page's four tiles)","type":"string","enum":["events"]},"top":{"description":"the first n rows of the workflow table (by runs) and of the step table (by executions), 1 to 500, the cut counted on more; 0 or absent every row (ADR-0069 U46b: the Overview's two tables at 25 with Show all)","type":"string"}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"workflows":{"type":"array","items":{"$ref":"#/$defs/WorkflowHealth"}},"steps":{"type":"array","items":{"$ref":"#/$defs/StepHealth"}},"computedAt":{"type":"string","description":"an ISO instant"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"},"computing":{"description":"true while no stored copy of the window stands yet (its first read since API 2.191): the two tables empty, computedAt absent, the computation started off the response path; the next read serves what it lands. Absent once a copy stands.","type":"boolean"},"computeFailed":{"description":"true beside computing when the window's last compute failed (the claim row marked failed, cache.refresh_failed in the logs; CL-001's review of 2026-10-17): the tables are not merely young; the compute is tried again once the claim window has passed since the failure (CL-002: the window's own bound, two minutes for the day, never back to back under every stale reader). Absent otherwise.","type":"boolean"},"more":{"description":"under top=: how many rows of each table the cut left out (0 when none); absent without a cut","type":"object","properties":{"workflows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"steps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["workflows","steps"],"additionalProperties":false},"events":{"$ref":"#/$defs/EventLag"},"schema":{"$ref":"#/$defs/SchemaStatus"},"instance":{"$ref":"#/$defs/InstanceStatus"},"latency":{"$ref":"#/$defs/Latency"},"storage":{"description":"the framework tables' storage (ADR-0076 FP-015, API 2.127): bytes, live and dead rows, the update counters with the lifetime HOT share, and each table's growth against the previous reading; a minute's copy","$ref":"#/$defs/HealthStorage"},"sha":{"description":"the deployed commit as the bound platform's identity names it (ADR-0063 B10; what every run started here carries as build); null off a platform naming none","type":["string","null"]},"clock":{"description":"the clock skew as this process holds it (ADR-0076 FP-012, API 2.126): the newest reading, the process's extremes, the row's stats and the kill grace in force","$ref":"#/$defs/ClockSkew"},"replica":{"description":"the read replica's lag (ADR-0078 D04, API 2.155): the replay position and the last replayed commit on the replica against the writer's position and clock, a minute's copy; down with the reason when the store carries no replica or it answered nothing (the console reads on the writer), the store's fallback mark beside it","$ref":"#/$defs/HealthReplica"},"capacity":{"description":"the capacity card (ADR-0078 D05, API 2.157): per database the connections against the pooler's server pool, the compute and its range, the storage against its cap, the dead share and the bloat estimate per table against its autovacuum trigger, the five biggest tables, the replica's lag, the outbox's lag per partition, the archive's bytes, the ledger's rows a day and the file cache's hit ratio, with the thresholds in force and the breaches judged over them; a minute's copy","$ref":"#/$defs/HealthCapacity"}},"required":["workflows","steps","events","schema","instance","latency","storage","sha","clock","replica","capacity"],"additionalProperties":false},{"type":"object","properties":{"events":{"$ref":"#/$defs/EventLag"}},"required":["events"],"additionalProperties":false,"description":"under fields=events (ADR-0069 U46b): the event lag alone, nothing else read"}],"$defs":{"WorkflowHealth":{"type":"object","properties":{"workflow":{"type":"string"},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"running":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"successRate":{"type":"number"},"p50Ms":{"type":["number","null"]},"p95Ms":{"type":["number","null"]},"lastRunAt":{"type":"string","description":"an ISO instant"}},"required":["workflow","runs","completed","failed","running","successRate","p50Ms","p95Ms","lastRunAt"],"additionalProperties":false},"StepHealth":{"type":"object","properties":{"workflow":{"type":"string","description":"the workflow the step's rows belong to (FW-052, API 2.105): the summary is per (workflow, step), since one step name serves several definitions"},"name":{"type":"string"},"executions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"compensated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failureRate":{"type":"number"},"avgMs":{"type":["number","null"]},"p95Ms":{"type":["number","null"]}},"required":["workflow","name","executions","failed","compensated","failureRate","avgMs","p95Ms"],"additionalProperties":false},"EventLag":{"type":"object","properties":{"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"oldestPendingAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"lagSeconds":{"type":"number"},"claimed":{"type":"boolean"},"runId":{"type":["string","null"]},"deliveredLastHour":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scheduled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cancelled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dismissed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blockedHeadAgeMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the age in ms of the oldest exhausted or backing-off head blocking a partition (ADR-0076 FP-007), 0 when none; amber at fifteen minutes on the console"},"partition":{"type":"object","properties":{"oldest":{"description":"the partition of the oldest live row (pressure.oldest[0].partition); null with no live row, or on a row older code stored without one","type":["string","null"]},"ageS":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the oldest live row's age in whole seconds (pressure.oldest[0].ageS, the lag); 0 with none"},"verdict":{"type":"string","enum":["ok","amber"],"description":"amber when the oldest live row is fifteen minutes old or older after the dispatcher's pass (STALLED_PARTITION_MS): the partition is stalled, whatever holds its head, and the tick announces it as partition.stalled once an hour; ok under the bound or with no live row"}},"required":["oldest","ageS","verdict"],"additionalProperties":false,"description":"the partition SLO (ADR-0076 FP-017): the oldest live partition, its age and the verdict the console shows amber"}},"required":["pending","oldestPendingAt","lagSeconds","claimed","runId","deliveredLastHour","scheduled","cancelled","dismissed","blockedHeadAgeMs","partition"],"additionalProperties":false},"SchemaStatus":{"type":"object","properties":{"state":{"type":"string","enum":["ok","ahead","behind","missing","naming_mismatch","drifted","unverified","error","unprobed"]},"version":{"type":["number","null"]},"required":{"type":"number"},"min":{"type":"number"},"naming":{"anyOf":[{"type":"string","enum":["snake","prisma-legacy","custom"]},{"type":"null"}]},"recordedNaming":{"type":["string","null"]},"dialect":{"anyOf":[{"type":"string","const":"postgres"},{"type":"null"}]},"guard":{"anyOf":[{"type":"string","enum":["trigger","role","none"]},{"type":"null"}]},"catalog":{"anyOf":[{"$ref":"#/$defs/SchemaCatalog"},{"type":"null"}]},"policy":{"type":"string","enum":["refuse","warn","mixed"]},"rules":{"$ref":"#/$defs/SchemaPolicyRules"},"probedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"checkedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"when the standing verdict was last checked against the database: the last probe's moment (ADR-0076 FP-016; an ok is checked again an hour on, every other state a minute on); null before the first probe"},"nextCheckAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"when the standing verdict is looked at again: checkedAt plus the state's window (an hour for ok, a minute otherwise); null before the first probe"},"since":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"when the standing state was first found, kept across the re-probes that confirm it (a drift reads 'drifted since'); null before the first probe"},"error":{"type":"string"}},"required":["state","version","required","min","naming","recordedNaming","dialect","guard","catalog","policy","rules","probedAt","checkedAt","nextCheckAt","since"],"additionalProperties":false},"SchemaCatalog":{"type":"object","properties":{"state":{"type":"string","enum":["ok","drifted","unverified"]},"recorded":{"type":["string","null"]},"live":{"type":["string","null"]},"reason":{"type":["string","null"]}},"required":["state","recorded","live","reason"],"additionalProperties":false},"SchemaPolicyRules":{"type":"object","properties":{"behind":{"type":"string","enum":["refuse","warn"]},"drifted":{"type":"string","enum":["refuse","warn"]},"naming":{"type":"string","enum":["refuse","warn"]},"ahead":{"type":"string","enum":["refuse","warn"]}},"required":["behind","drifted","naming","ahead"],"additionalProperties":false},"InstanceStatus":{"type":"object","properties":{"state":{"type":"string","enum":["ok","absent","mismatch","unknown"]},"name":{"type":["string","null"]},"role":{"anyOf":[{"$ref":"#/$defs/EnvironmentRole"},{"type":"null"}]},"found":{"type":["string","null"]},"schemaVersion":{"type":"number"},"bootedAt":{"type":"string","description":"an ISO instant"},"refusing":{"type":"boolean"},"probedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"error":{"type":"string"}},"required":["state","name","role","found","refusing","probedAt"],"additionalProperties":false},"EnvironmentRole":{"type":"string","enum":["production","preview","local"]},"Latency":{"type":"object","properties":{"events":{"$ref":"#/$defs/EventLatency"},"ledger":{"$ref":"#/$defs/LedgerLatency"}},"required":["events","ledger"],"additionalProperties":false},"EventLatency":{"type":"object","properties":{"windowMinutes":{"type":"number"},"local":{"$ref":"#/$defs/EventLatencyGroup"},"relayed":{"$ref":"#/$defs/EventLatencyGroup"},"computedAt":{"type":"string","description":"an ISO instant"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"}},"required":["windowMinutes","local","relayed","computedAt","cached"],"additionalProperties":false},"EventLatencyGroup":{"type":"object","properties":{"first":{"$ref":"#/$defs/LatencyPercentiles"},"retried":{"$ref":"#/$defs/LatencyPercentiles"},"all":{"$ref":"#/$defs/LatencyPercentiles"}},"required":["first","retried","all"],"additionalProperties":false},"LatencyPercentiles":{"type":"object","properties":{"p50Ms":{"type":["number","null"]},"p95Ms":{"type":["number","null"]},"maxMs":{"type":["number","null"]},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["p50Ms","p95Ms","maxMs","n"],"additionalProperties":false},"LedgerLatency":{"type":"object","properties":{"p50Ms":{"type":["number","null"]},"p95Ms":{"type":["number","null"]},"maxMs":{"type":["number","null"]},"instanceStartedAt":{"type":"string","description":"an ISO instant"},"capacity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"lockWait":{"type":"object","properties":{"p50Ms":{"type":["number","null"]},"p95Ms":{"type":["number","null"]},"maxMs":{"type":["number","null"]}},"required":["p50Ms","p95Ms","maxMs"],"additionalProperties":false},"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"retried":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slow":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slowAboveMs":{"type":"number"},"outcomes":{"type":"object","properties":{"ok":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fenced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"landed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ok","fenced","landed","failed"],"additionalProperties":false}},"required":["p50Ms","p95Ms","maxMs","instanceStartedAt","capacity","n","total","lastAt","lockWait","rows","retried","slow","slowAboveMs","outcomes"],"additionalProperties":false},"HealthStorageTable":{"type":"object","properties":{"table":{"type":"string","description":"the database's own name under the store's naming"},"canonical":{"type":"string","description":"the definition's name (WorkflowRun)"},"totalBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pg_total_relation_size: the heap with its TOAST and the indexes"},"heapBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pg_table_size: the heap with its TOAST"},"indexBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pg_indexes_size"},"liveRows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pg_stat_user_tables.n_live_tup"},"deadRows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pg_stat_user_tables.n_dead_tup"},"updates":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"n_tup_upd since the statistics' reset"},"hotUpdates":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"n_tup_hot_upd: the updates that wrote no index entry"},"newPageUpdates":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"n_tup_newpage_upd (Postgres 16): the updates whose new version landed on another page, what fillfactor 90 (schema version 25) takes to none on the rows the engine touches after their page filled"},"hotShare":{"description":"hotUpdates / updates over the statistics' lifetime, 0 to 1; null before the first update","type":["number","null"]},"growth":{"anyOf":[{"type":"object","properties":{"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"totalBytes less the previous reading's"},"sinceAt":{"type":"string","description":"the previous reading's moment"},"perDayBytes":{"description":"the growth as a daily rate once the window is an hour; null under it","type":["number","null"]}},"required":["bytes","sinceAt","perDayBytes"],"additionalProperties":false},{"type":"null"}],"description":"the growth against the previous reading (the settings row health.storage.previous, replaced on the first reading and once it is a day old); null on a table's first reading"}},"required":["table","canonical","totalBytes","heapBytes","indexBytes","liveRows","deadRows","updates","hotUpdates","newPageUpdates","hotShare","growth"],"additionalProperties":false},"HealthStorage":{"type":"object","properties":{"at":{"type":"string","description":"the reading's moment"},"previousAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"the previous reading's moment, what the growth is against; null on the first"},"tables":{"type":"array","items":{"$ref":"#/$defs/HealthStorageTable"},"description":"one row per framework table the database holds, in name order; empty on a store with no catalog"},"computedAt":{"type":"string","description":"an ISO instant"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"}},"required":["at","previousAt","tables","computedAt","cached"],"additionalProperties":false},"ClockReading":{"type":"object","properties":{"skewMs":{"type":"number","description":"the store's clock less the process's at the read, ms; positive when the store's is ahead"},"rttMs":{"type":"number","description":"the bracket's width around the read, ms: the reading's own uncertainty"},"at":{"type":"string","description":"the process's moment after the read"},"source":{"type":"string","enum":["probe","pulse"],"description":"the probe's one clock_timestamp() on first use, or the resumer's pulse carrying it every tick"}},"required":["skewMs","rttMs","at","source"],"additionalProperties":false},"ClockSkew":{"type":"object","properties":{"last":{"anyOf":[{"$ref":"#/$defs/ClockReading"},{"type":"null"}],"description":"the newest reading of this process; null before any"},"process":{"anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxMs":{"type":"number"},"minMs":{"type":"number"}},"required":["count","maxMs","minMs"],"additionalProperties":false},{"type":"null"}],"description":"this process's own readings: how many, the extremes"},"row":{"anyOf":[{"type":"object","properties":{"last":{"$ref":"#/$defs/ClockReading"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxMs":{"type":"number"},"minMs":{"type":"number"},"p99Ms":{"type":"number","description":"the upper edge of the histogram bin the 99th percentile falls in (the maximum for the top bin), ms"}},"required":["last","count","maxMs","minMs","p99Ms"],"additionalProperties":false},{"type":"null"}],"description":"the settings row platform.clock_skew as this process last read or wrote it (every probe's reading, by compare-and-set); null before the first probe"},"killGraceMs":{"type":"number","description":"the kill grace in force on this process: baseKillGraceMs plus the measured positive p99 skew, at most the lease; what a stored kill's leaseUntil is written with"},"baseKillGraceMs":{"type":"number","description":"KILL_GRACE_MS, one heartbeat"},"warnMs":{"type":"number","description":"the skew a reading is said past, once per process (CLOCK_SKEW_WARN_MS; platform.clock_skew at warn)"}},"required":["last","process","row","killGraceMs","baseKillGraceMs","warnMs"],"additionalProperties":false},"HealthReplica":{"type":"object","properties":{"at":{"type":"string","description":"the reading's moment: the writer's clock_timestamp() inside its statement, what the lag is judged at"},"down":{"type":"boolean","description":"true when the replica's position could not be read: the store carries no replica (DATABASE_URL_REPLICA unset) or the replica answered nothing; the console's reads are on the writer meanwhile"},"reason":{"anyOf":[{"type":"string","enum":["no_replica","unreachable","failed"]},{"type":"null"}],"description":"why it is down: no_replica (the store carries no read half, nothing read), unreachable (a connect or socket failure, the shape the console's reads fall back on), failed (the replica refused the statement); null when not down"},"code":{"description":"the driver's SQLSTATE or socket code behind the reason (ECONNREFUSED, 57P01); null when not down or none","type":["string","null"]},"standby":{"description":"pg_is_in_recovery() on the read half: true on a replica, false on a second pool over the writer itself (a laptop), which reads as caught up; null when down","type":["boolean","null"]},"replayAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"the commit moment of the last transaction the replica replayed (pg_last_xact_replay_timestamp(), stamped on the primary); null when down, on no standby, or before the standby replayed one"},"bytesBehind":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the WAL bytes the replica's replay position (pg_last_wal_replay_lsn()) is behind the writer's current one (pg_current_wal_lsn()), 0 once caught up; null when down"},"lagMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the age of the replica's view in ms: 0 while nothing is behind, else the writer's clock less replayAt; null when down, or behind with nothing replayed yet. The Overview shows it amber from REPLICA_LAG_WARN_MS (5 s) and red from REPLICA_LAG_RED_MS (30 s)"},"computedAt":{"type":"string","description":"when the copy was read (a minute's copy: the replica is read once a window, never once a request)"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"},"fallback":{"anyOf":[{"type":"object","properties":{"active":{"type":"boolean","description":"true while the console's reads go to the writer without asking the replica (store.replica.fallback opened a window)"},"readsLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the reads of the family left on the writer before the replica is asked again (REPLICA_PROBE_EVERY at the window's start)"},"windows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many fallback windows opened since this process built its store"},"conflicts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many console reads the writer answered after the replica (a hot standby) cancelled them with a recovery conflict (SQLSTATE 40001, store.replica.conflict: one per read, no fallback window opened) since this process built its store"},"conflictAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"when the writer last answered such a read; null while none"}},"required":["active","readsLeft","windows","conflicts","conflictAt"],"additionalProperties":false},{"type":"null"}],"description":"the store's fallback mark as it stands at the request (never from the copy: the mark is the process's own); null on a store with no replica"}},"required":["at","down","reason","code","standby","replayAt","bytesBehind","lagMs","computedAt","cached","fallback"],"additionalProperties":false},"CapacityDatabase":{"type":"object","properties":{"id":{"type":"string","description":"the card's id for the database: engine for the store's, the host's own ids for the rest (what capacity.pressure names)"},"name":{"description":"the database's own name where it is known (current_database()), else null","type":["string","null"]},"connections":{"anyOf":[{"type":"object","properties":{"clients":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the client backends on the database at the read"},"active":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the client backends in an active transaction at the read"},"serverClients":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the client backends on the whole server at the read"},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the server's max_connections"},"serverPool":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the pooler's server pool: 0.9 × max, whole"},"share":{"type":"number","description":"clients / serverPool"}},"required":["clients","active","serverClients","max","serverPool","share"],"additionalProperties":false},{"type":"null"}],"description":"the server's connections (one statement a window on the writer); null on a store with no server"},"compute":{"anyOf":[{"type":"object","properties":{"cu":{"description":"the mean compute units over the last refresh interval; null with the reason","type":["number","null"]},"minCu":{"type":["number","null"]},"maxCu":{"type":["number","null"]},"pinnedHours":{"description":"how many hours the compute has stood at its ceiling over the newest readings (0.95 × maxCu and up); 0 when the newest interval is under it; null with the reason","type":["number","null"]},"reason":{"type":["string","null"]}},"required":["cu","minCu","maxCu","pinnedHours","reason"],"additionalProperties":false},{"type":"null"}],"description":"the compute as the host's database platform row holds it; null without a database platform"},"storage":{"anyOf":[{"$ref":"#/$defs/CapacityStorage"},{"type":"null"}]},"tables":{"type":"array","items":{"type":"object","properties":{"table":{"type":"string","description":"the definition's canonical name"},"totalBytes":{"type":"number"},"heapBytes":{"type":"number"},"liveRows":{"type":"number"},"deadRows":{"type":"number"},"deadShare":{"type":"number","description":"deadRows / (liveRows + deadRows), 0 on an empty table"},"bloatBytes":{"type":"number","description":"the dead rows' share of the heap, heapBytes × deadShare: the bloat estimate"},"vacuumTrigger":{"description":"the effective autovacuum trigger (the host's doctor reading); null where the host reads none","type":["number","null"]},"lastAutovacuumAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]}},"required":["table","totalBytes","heapBytes","liveRows","deadRows","deadShare","bloatBytes","vacuumTrigger","lastAutovacuumAt"],"additionalProperties":false},"description":"the framework tables in name order, the host's trigger beside each; empty on a store with no catalog"},"biggest":{"type":"array","items":{"type":"object","properties":{"table":{"type":"string"},"totalBytes":{"type":"number"}},"required":["table","totalBytes"],"additionalProperties":false},"description":"the five biggest tables by total bytes, biggest first"},"replica":{"anyOf":[{"type":"object","properties":{"lagMs":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"down":{"type":"boolean"},"reason":{"type":["string","null"]}},"required":["lagMs","down","reason"],"additionalProperties":false},{"type":"null"}],"description":"the replica's lag off health.replica; null on a host's own database"},"partitions":{"anyOf":[{"type":"object","properties":{"oldestAgeMs":{"description":"the oldest live row's age over every partition read, in ms; null with no live row","type":["number","null"]},"oldest":{"type":"array","items":{"type":"object","properties":{"partition":{"type":["string","null"]},"ageMs":{"type":"number"}},"required":["partition","ageMs"],"additionalProperties":false},"description":"the worst partitions, oldest first, at most PRESSURE_OLDEST_LIMIT"}},"required":["oldestAgeMs","oldest"],"additionalProperties":false},{"type":"null"}],"description":"the outbox's lag per partition (the pressure section's own read); null on a host's own database"},"archive":{"anyOf":[{"type":"object","properties":{"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bytes":{"description":"OutboxArchive's bytes off the storage reading; null off a store with no catalog","type":["number","null"]},"archiveDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rows","bytes","archiveDays"],"additionalProperties":false},{"type":"null"}]},"ledger":{"anyOf":[{"type":"object","properties":{"rows":{"description":"the ledger's live rows off the storage reading","type":["number","null"]},"lastDay":{"anyOf":[{"type":"object","properties":{"day":{"type":"string"},"rows":{"type":"number"}},"required":["day","rows"],"additionalProperties":false},{"type":"null"}],"description":"the last recorded day (the daily head records) and the rows it added"},"meanPerDay":{"description":"the mean rows a day over the recorded days before the last","type":["number","null"]},"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many recorded days the mean is over"},"factor":{"description":"lastDay.rows / meanPerDay; null without both or at a zero mean","type":["number","null"]}},"required":["rows","lastDay","meanPerDay","days","factor"],"additionalProperties":false},{"type":"null"}]},"fileCache":{"anyOf":[{"type":"object","properties":{"hitRatio":{"description":"hits over hits and misses since the compute started","type":["number","null"]},"intervalHitRatio":{"description":"the same over the newest interval; null on one reading or a reset","type":["number","null"]},"reason":{"type":["string","null"]}},"required":["hitRatio","intervalHitRatio","reason"],"additionalProperties":false},{"type":"null"}],"description":"the compute's local file cache as the host's database platform row holds it; null without one"}},"required":["id","name","connections","compute","storage","tables","biggest","replica","partitions","archive","ledger","fileCache"],"additionalProperties":false},"CapacityStorage":{"type":"object","properties":{"bytes":{"type":["number","null"]},"capBytes":{"description":"the cap the share is judged against (a tier's, a plan's, the server's own ceiling); null when none is known","type":["number","null"]},"share":{"description":"bytes / capBytes; null without both","type":["number","null"]},"source":{"description":"where the cap comes from, in the host's words; null without one","type":["string","null"]}},"required":["bytes","capBytes","share","source"],"additionalProperties":false},"CapacityThresholds":{"type":"object","properties":{"connectionsShare":{"type":"number","description":"the client backends on the database over the pooler's server pool (0.9 × max_connections), 0 to 1; 0.8 by default"},"cuPinnedHours":{"type":"number","description":"hours the compute may stand at its ceiling; 1 by default"},"storageShare":{"type":"number","description":"the storage over its cap, 0 to 1; 0.8 by default"},"deadShare":{"type":"number","description":"a hot table's dead rows over its rows, 0 to 1; 0.1 by default"},"autovacuumFactor":{"type":"number","description":"a hot table's dead rows over its own effective autovacuum trigger; the alert rule autovacuum's number (2 by default)"},"replicaLagMs":{"type":"number","description":"the replica's lag in ms; the alert rule replica.lag's number (REPLICA_LAG_WARN_MS, 5 000 by default)"},"partitionAgeMs":{"type":"number","description":"the oldest live row's age in ms; STALLED_PARTITION_MS (15 minutes) by default"},"archiveBytes":{"type":"number","description":"the archive's bytes; 1 GiB by default"},"ledgerDayFactor":{"type":"number","description":"the ledger's last recorded day over the mean of the days before; 2 by default"},"fileCacheHitRatio":{"type":"number","description":"the file cache's hit ratio under which the compute reads the disk, 0 to 1; 0.9 by default (the one measure that breaches below)"}},"required":["connectionsShare","cuPinnedHours","storageShare","deadShare","autovacuumFactor","replicaLagMs","partitionAgeMs","archiveBytes","ledgerDayFactor","fileCacheHitRatio"],"additionalProperties":false},"HealthCapacity":{"type":"object","properties":{"at":{"type":"string","description":"the reading's moment"},"databases":{"type":"array","items":{"$ref":"#/$defs/CapacityDatabase"},"description":"the engine's database first (id engine), the host's after it"},"thresholds":{"description":"the thresholds in force: the host's row over the defaults, the alert rules' numbers where a rule owns one","$ref":"#/$defs/CapacityThresholds"},"breaches":{"type":"array","items":{"type":"object","properties":{"database":{"type":"string"},"measure":{"type":"string","enum":["connections","cu","storage","deadShare","autovacuum","replica","partitions","archive","ledger","fileCache"]},"value":{"type":"number"},"threshold":{"type":"number"}},"required":["database","measure","value","threshold"],"additionalProperties":false},"description":"every measure past its threshold (the file cache's under it), in the databases' and the measures' order; what the daily capacity.doctor emits one capacity.pressure a day for; nothing from an unknown reading"},"computedAt":{"type":"string","description":"when the copy was read (a minute's copy)"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"}},"required":["at","databases","thresholds","breaches","computedAt","cached"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/workers":{"get":{"operationId":"console.workers","summary":"The Workers view's engine half (the last tick results, the event lag, the latencies, the timers, the caps, the buckets, the pressure section over the window), or the host's composition of it.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0015; ADR-0052 decisions 5 and 7","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"window":{"description":"the pressure section's window in minutes, 1 to 1440 (10 unless said)","type":"string"}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"last":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"at":{"type":"string","description":"an ISO instant"}},"required":["at"],"additionalProperties":{}}},"events":{"$ref":"#/$defs/EventLag"},"latency":{"$ref":"#/$defs/Latency"},"timers":{"type":"array","items":{"$ref":"#/$defs/WaitingRow"}},"caps":{"type":"array","items":{"$ref":"#/$defs/CapRow"}},"buckets":{"type":"array","items":{"$ref":"#/$defs/BucketRow"}},"pressure":{"$ref":"#/$defs/Pressure"},"archive":{"$ref":"#/$defs/ArchiveSummary"}},"required":["last","events","latency","timers","caps","buckets","pressure","archive"],"additionalProperties":{},"$defs":{"EventLag":{"type":"object","properties":{"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"oldestPendingAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"lagSeconds":{"type":"number"},"claimed":{"type":"boolean"},"runId":{"type":["string","null"]},"deliveredLastHour":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scheduled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cancelled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dismissed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blockedHeadAgeMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the age in ms of the oldest exhausted or backing-off head blocking a partition (ADR-0076 FP-007), 0 when none; amber at fifteen minutes on the console"},"partition":{"type":"object","properties":{"oldest":{"description":"the partition of the oldest live row (pressure.oldest[0].partition); null with no live row, or on a row older code stored without one","type":["string","null"]},"ageS":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the oldest live row's age in whole seconds (pressure.oldest[0].ageS, the lag); 0 with none"},"verdict":{"type":"string","enum":["ok","amber"],"description":"amber when the oldest live row is fifteen minutes old or older after the dispatcher's pass (STALLED_PARTITION_MS): the partition is stalled, whatever holds its head, and the tick announces it as partition.stalled once an hour; ok under the bound or with no live row"}},"required":["oldest","ageS","verdict"],"additionalProperties":false,"description":"the partition SLO (ADR-0076 FP-017): the oldest live partition, its age and the verdict the console shows amber"}},"required":["pending","oldestPendingAt","lagSeconds","claimed","runId","deliveredLastHour","scheduled","cancelled","dismissed","blockedHeadAgeMs","partition"],"additionalProperties":false},"Latency":{"type":"object","properties":{"events":{"$ref":"#/$defs/EventLatency"},"ledger":{"$ref":"#/$defs/LedgerLatency"}},"required":["events","ledger"],"additionalProperties":false},"EventLatency":{"type":"object","properties":{"windowMinutes":{"type":"number"},"local":{"$ref":"#/$defs/EventLatencyGroup"},"relayed":{"$ref":"#/$defs/EventLatencyGroup"},"computedAt":{"type":"string","description":"an ISO instant"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"}},"required":["windowMinutes","local","relayed","computedAt","cached"],"additionalProperties":false},"EventLatencyGroup":{"type":"object","properties":{"first":{"$ref":"#/$defs/LatencyPercentiles"},"retried":{"$ref":"#/$defs/LatencyPercentiles"},"all":{"$ref":"#/$defs/LatencyPercentiles"}},"required":["first","retried","all"],"additionalProperties":false},"LatencyPercentiles":{"type":"object","properties":{"p50Ms":{"type":["number","null"]},"p95Ms":{"type":["number","null"]},"maxMs":{"type":["number","null"]},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["p50Ms","p95Ms","maxMs","n"],"additionalProperties":false},"LedgerLatency":{"type":"object","properties":{"p50Ms":{"type":["number","null"]},"p95Ms":{"type":["number","null"]},"maxMs":{"type":["number","null"]},"instanceStartedAt":{"type":"string","description":"an ISO instant"},"capacity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"lockWait":{"type":"object","properties":{"p50Ms":{"type":["number","null"]},"p95Ms":{"type":["number","null"]},"maxMs":{"type":["number","null"]}},"required":["p50Ms","p95Ms","maxMs"],"additionalProperties":false},"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"retried":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slow":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slowAboveMs":{"type":"number"},"outcomes":{"type":"object","properties":{"ok":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fenced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"landed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ok","fenced","landed","failed"],"additionalProperties":false}},"required":["p50Ms","p95Ms","maxMs","instanceStartedAt","capacity","n","total","lastAt","lockWait","rows","retried","slow","slowAboveMs","outcomes"],"additionalProperties":false},"WaitingRow":{"type":"object","properties":{"id":{"type":"string"},"kind":{"$ref":"#/$defs/WaitKind"},"step":{"type":"string"},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"type":["string","null"]},"eventName":{"type":["string","null"]},"matchHash":{"type":["string","null"]},"childRunId":{"type":["string","null"]},"until":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"createdAt":{"type":"string","description":"an ISO instant"},"firedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"firedBy":{"anyOf":[{"$ref":"#/$defs/WaitFiredBy"},{"type":"null"}]},"payload":{},"batch":{"anyOf":[{"$ref":"#/$defs/RunWaitBatch"},{"type":"null"}],"description":"the batch a continue wait parked before a chunk (FW-046, API 2.104), read off the park step row; null on any other wait and on a park whose row is gone"},"join":{"anyOf":[{"$ref":"#/$defs/RunWaitJoin"},{"type":"null"}],"description":"the join's counters on a join wait (ADR-0076 FP-037, API 2.141: ctx.fanOut's park, the children started, not yet landed, failed and the failures tolerated); null on every other kind"},"runId":{"type":"string"},"workflow":{"type":["string","null"]},"ahead":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","kind","step","seq","attempt","token","eventName","matchHash","childRunId","until","createdAt","firedAt","firedBy","payload","batch","join","runId","workflow"],"additionalProperties":false},"WaitKind":{"type":"string","enum":["timer","signal","child","continue","slot","rate","retry","hold","cancel","join"]},"WaitFiredBy":{"type":"string","enum":["timer","fact","signal","child","deadline","continue","slot","cancel","timeout","resume","landed","join"]},"RunWaitBatch":{"type":"object","properties":{"name":{"type":"string","description":"the batch's name"},"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the chunk the run continues at (0-based)"},"total":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the chunk count, the array form's; null under the cursor form"}},"required":["name","index","total"],"additionalProperties":false},"RunWaitJoin":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children the fan-out started"},"remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children not yet landed (the join fires at 0)"},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children landed FAILED or COMPENSATED"},"tolerated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the failures the join admits before it fires failed"}},"required":["total","remaining","failed","tolerated"],"additionalProperties":false},"CapRow":{"type":"object","properties":{"workflow":{"type":"string"},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"keyed":{"type":"boolean"},"running":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"waiting":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["workflow","max","keyed","running","waiting"],"additionalProperties":false},"BucketRow":{"type":"object","properties":{"key":{"type":"string"},"tokens":{"type":"number"},"refilledAt":{"type":"string","description":"an ISO instant"},"holdUntil":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"lastLimitedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"updatedAt":{"type":"string","description":"an ISO instant"}},"required":["key","tokens","refilledAt","holdUntil","lastLimitedAt","updatedAt"],"additionalProperties":false},"Pressure":{"type":"object","properties":{"window":{"type":"object","properties":{"minutes":{"type":"number"},"since":{"type":"string","description":"an ISO instant"}},"required":["minutes","since"],"additionalProperties":false},"lanes":{"type":"array","items":{"$ref":"#/$defs/PressureLane"}},"total":{"type":"object","properties":{"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deliveredPerMinute":{"type":"number"},"batches":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rowsInBatches":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["delivered","deliveredPerMinute","batches","rowsInBatches"],"additionalProperties":false},"oldest":{"type":"array","items":{"$ref":"#/$defs/PressureOldestRow"}},"waits":{"type":"object","propertyNames":{"$ref":"#/$defs/PressureWaitKind"},"additionalProperties":{"type":"object","properties":{"open":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"open rows counted, at most 10 000 a kind (WAITS_BY_KIND_SCAN_MAX, ADR-0050 decision 3 as amended 2026-10-30; the read walks v11's (kind, token) partial a kind at a time and never every open wait): a floor at the cap"},"oldestAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"the oldest moment among the rows read (at most WAITS_BY_KIND_SCAN_MAX a kind, ADR-0050 decision 3 as amended 2026-10-30), null with none open"}},"required":["open","oldestAt"],"additionalProperties":false},"required":["slot","rate","retry","timer","fact","signal","child","continue","hold","join"]},"buckets":{"type":"array","items":{"$ref":"#/$defs/PressureBucket"}},"sharedWriteKeys":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"days":{"type":"array","items":{"type":"string"}}},"required":["count","days"],"additionalProperties":false},"unreplayableOutputs":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"days":{"type":"array","items":{"type":"string"}}},"required":["count","days"],"additionalProperties":false},"divergence":{"$ref":"#/$defs/PressureDivergence"},"kills":{"$ref":"#/$defs/PressureKills"},"wake":{"$ref":"#/$defs/PressureWake"},"answers":{"$ref":"#/$defs/PressureAnswers"},"cold":{"$ref":"#/$defs/PressureCold"},"budget":{"$ref":"#/$defs/PressureBudget"},"deadlineSource":{"$ref":"#/$defs/PressureDeadlineSource"},"statements":{"$ref":"#/$defs/PressureStatements"}},"required":["window","lanes","total","oldest","waits","buckets","sharedWriteKeys","unreplayableOutputs","divergence","kills","wake","answers","cold","budget","deadlineSource","statements"],"additionalProperties":false},"PressureLane":{"type":"object","properties":{"lane":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deliveredPerMinute":{"type":"number"},"batches":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rowsInBatches":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["lane","delivered","deliveredPerMinute","batches","rowsInBatches"],"additionalProperties":false},"PressureOldestRow":{"type":"object","properties":{"partition":{"type":["string","null"]},"ageS":{"type":"number"},"id":{"type":"string"},"occurredAt":{"type":"string","description":"an ISO instant"},"claimed":{"type":"boolean"},"runId":{"type":["string","null"]}},"required":["partition","ageS","id","occurredAt","claimed","runId"],"additionalProperties":false},"PressureWaitKind":{"type":"string","enum":["slot","rate","retry","timer","fact","signal","child","continue","hold","join"]},"PressureBucket":{"type":"object","properties":{"name":{"type":"string"},"tokens":{"type":"number"},"burst":{"type":["number","null"]},"perSecond":{"type":["number","null"]},"halved":{"type":"boolean"},"holdUntil":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"limitedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"refilledAt":{"type":"string","description":"an ISO instant"},"updatedAt":{"type":"string","description":"an ISO instant"}},"required":["name","tokens","burst","perSecond","halved","holdUntil","limitedAt","refilledAt","updatedAt"],"additionalProperties":false},"PressureDivergence":{"type":"object","properties":{"inputChanged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nameChanged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"days":{"type":"array","items":{"type":"string"}}},"required":["inputChanged","nameChanged","days"],"additionalProperties":false},"PressureKills":{"type":"object","properties":{"parkedBeforeKill":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"abandonedRetries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inlineCapped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"claimedAfterKill":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"zombieHeartbeatAfterKill":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"days":{"type":"array","items":{"type":"string"}}},"required":["parkedBeforeKill","abandonedRetries","inlineCapped","claimedAfterKill","zombieHeartbeatAfterKill","days"],"additionalProperties":false},"PressureWake":{"type":"object","properties":{"fast":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slow":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cron":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leftToCron":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"days":{"type":"array","items":{"type":"string"}}},"required":["fast","slow","cron","leftToCron","days"],"additionalProperties":false},"PressureAnswers":{"type":"object","properties":{"large":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"days":{"type":"array","items":{"type":"string"}}},"required":["large","days"],"additionalProperties":false},"PressureCold":{"type":"object","properties":{"since":{"type":"string","description":"an ISO instant"},"loads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"p95LoadMs":{"type":["number","null"]},"lastLoadMs":{"type":["number","null"]},"lastAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"p95BootMs":{"type":["number","null"]},"maxBootMs":{"type":["number","null"]},"floor":{"type":"boolean"},"floorAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]}},"required":["since","loads","p95LoadMs","lastLoadMs","lastAt","p95BootMs","maxBootMs","floor","floorAt"],"additionalProperties":false},"PressureBudget":{"type":"object","properties":{"parkedAtBudget":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"killed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"zombieHeartbeats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reserveOverruns":{"type":"object","properties":{"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completedObserved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"park":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"finish":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["completed","completedObserved","park","finish"],"additionalProperties":false},"days":{"type":"array","items":{"type":"string"}}},"required":["parkedAtBudget","killed","zombieHeartbeats","reserveOverruns","days"],"additionalProperties":false},"PressureDeadlineSource":{"type":"object","properties":{"platform":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"arrival":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"none":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"beyondPin":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"days":{"type":"array","items":{"type":"string"}}},"required":["platform","arrival","none","beyondPin","days"],"additionalProperties":false},"PressureStatements":{"type":"object","properties":{"process":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastTick":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["process","lastTick"],"additionalProperties":false},"ArchiveSummary":{"type":"object","properties":{"at":{"type":"string","description":"the reading's moment"},"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the archived facts the statistics count (OutboxArchive's live rows, the statistics' estimate; exact on a double over maps)"},"oldestAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"the oldest archived fact's own moment (occurredAt), null on an empty archive: how far back a replay reaches today"},"newestAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"the newest archived fact's own moment, null on an empty archive"},"archiveDays":{"type":"number","description":"the window in force (limits.retention.archiveDays): the days a delivered fact stays replayable from its own moment, 0 for the archive off"},"outboxDays":{"type":"number","description":"the outbox window in force: a fact younger than this is replayed from the live table, an older one from the archive"},"computedAt":{"type":"string","description":"an ISO instant"},"cached":{"type":"boolean"},"stale":{"description":"true when the copy served is its window or older (the engine's verdict, judged on the bound clock against the copy's own window, since CL-001's review of 2026-10-17): a refresh was handed to the platform after the response, or is in flight, or was cut or failed last time; the copy is served whatever its age, so read computedAt for the moment. false on a fresh copy and on a value computed now.","type":"boolean"}},"required":["at","rows","oldestAt","newestAt","archiveDays","outboxDays","computedAt","cached"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/catalog/workflows":{"get":{"operationId":"console.catalog.workflows","summary":"The catalog of workflows: every registered definition with its key fields, its scope source, its example, its schedule, its listener registration, the steps observed on its last completed run, its last run and the day's counts; since ADR-0069 U46a a page under `prefix=` (the names starting with it), `before=<name>` (the names after it) and `limit=` (50 unless said, 200 at most), sorted by name; the parameterless call every row as before. Since API 2.192 the day's counts and every observed step's p95 come from the stored copy of the window the health read keeps (`observedComputedAt` on every row, `observedStale` the engine's verdict on its age: served whatever its age, refreshed after the response once older than three minutes), never computed on the request path; a window with no copy yet answers `observedComputing` with zero counts and null p95s (`observedComputeFailed` beside it when the last compute failed) and the next read serves what it lands.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0051 §6; ADR-0069 U46a","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"prefix":{"description":"keep the rows whose name starts with this","type":"string"},"before":{"description":"the older page's cursor: the last name of the page held (the rows after it by name)","type":"string"},"limit":{"description":"rows, 1 to 200 (50 unless said); absent with no prefix and no cursor, every row","type":"string"}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/$defs/WorkflowCatalogRow"},"$defs":{"WorkflowCatalogRow":{"type":"object","properties":{"name":{"type":"string"},"keyFields":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"scope":{"type":"string","enum":["resolver","input"],"description":"where the scope comes from: never a partition field"},"describe":{"description":"the definition's one sentence, the intent in words (ADR-0060 decision 11), or null","type":["string","null"]},"example":{},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the definition's version (ADR-0051 §15), 1 when it names none"},"replay":{"type":"string","enum":["strict","lenient"],"description":"the definition's replay policy (ADR-0063 B04, PR 2; API 2.30): what its memo does when a body diverges from the run's rows (a prior row at the same seq or id carrying another name, or an input that hashes otherwise), for an effect other than read: `strict`, the default, lands the step FAILED `ReplayDiverged` before any re-invoke; `lenient` counts it on the Workers view and serves or re-invokes as before"},"lightweight":{"type":"boolean","description":"a lightweight definition (ADR-0076 FP-038, API 2.142): `defineWorkflow({ lightweight: true })` or `on(…, { lightweight: true })`, one run row and no step row per run, every step a read kept in memory and landed on the run row, re-run whole after a crash; false for every other definition"},"timeout":{"description":"the definition's timeout as written (ADR-0063 B16, `\"7d\"`, `\"1h\"`): every run is stamped with its start plus this and ends `RunTimedOut` past it; null when it names none","type":["string","null"]},"userStepMaxMs":{"type":"number","description":"the most a step of this definition may hold in one invocation, ms (ADR-0066 D06, D12: the function limit less the platform's reserve, `durable.userStepMaxMs`, the ceiling every door holds a needs, a timeoutMs, a batch's needs and an external spec's timeoutMs to); one number for every row"},"observedWindowHours":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the window the steps' `observedP95Ms` and `observedExecutions` are read over, hours back from the read's moment (FW-052: the step health summary's day); one number for every row"},"observedComputedAt":{"description":"when the stored copy of the window that `runs24h` and every step's `observedP95Ms` and `observedExecutions` are read from was computed (CL-001, 2026-10-17, API 2.192: the health read's own copy of the day, never computed on the request path; refreshed after the response once older than three minutes (HEALTH_FRESH_MS), and served whatever its age while the refresh is cut or fails, so read the moment; after beta's launch night took the catalog's own aggregate over the day's step table past the store's statement bound and `GET catalog/workflows` answered 500 as `GET health` had until API 2.191); one moment for every row, absent while the window's first copy is computing","type":"string"},"observedStale":{"description":"whether the copy served is three minutes (HEALTH_FRESH_MS) or older: the engine's verdict (the copy's `stale`, CL-001's review of 2026-10-17) and never a reader's guess, so a page says the moment (`observedComputedAt`) when it matters; a refresh runs after the response, or is in flight, or was cut or failed last time. One word for every row, absent while the window's first copy is computing.","type":"boolean"},"observedComputing":{"description":"true while no stored copy of the window stands yet (its first read since API 2.192): `runs24h` zeros and every step's `observedP95Ms` null with `observedExecutions` 0, the computation started off the response path; the next read serves what it lands. Absent once a copy stands.","type":"boolean"},"observedComputeFailed":{"description":"true beside `observedComputing` when the window's last compute failed (the claim row marked failed, `cache.refresh_failed` in the logs; CL-001's review of 2026-10-17): the figures are not merely young, and this read started the compute again; the console says 'not computed yet'. Absent otherwise.","type":"boolean"},"schedule":{"anyOf":[{"$ref":"#/$defs/CatalogSchedule"},{"type":"null"}]},"cancelOn":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"event":{"type":"string"},"fields":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"since":{"type":"boolean"}},"required":["event","fields","since"],"additionalProperties":false}},{"type":"null"}],"description":"the definition's cancel-on entries (ADR-0076 FP-033; API 2.136): each the fact that cancels a run, the match's fields (the static match's keys, a function's over the example; null when the example cannot read it; empty for every fact of the name) and whether a since is named; null for a definition without cancelOn"},"listener":{"anyOf":[{"type":"object","properties":{"event":{"type":"string"},"policy":{"$ref":"#/$defs/RelayPolicy"},"batch":{"anyOf":[{"$ref":"#/$defs/BatchWindow"},{"type":"null"}]}},"required":["event","policy","batch"],"additionalProperties":false},{"type":"null"}]},"steps":{"anyOf":[{"type":"array","items":{"$ref":"#/$defs/CatalogStep"}},{"type":"null"}]},"stepsFrom":{"anyOf":[{"type":"string","const":"last run"},{"type":"null"}]},"stepsPrunedAfterDays":{"type":"number","description":"the days after which retention takes a COMPLETED run's step rows whatever its ledger (FW-089, API 2.107: the limits' retention.stepsDays; the catalog's observed-steps column says \"steps pruned after N days\"); one number for every row"},"lastRun":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"status":{"$ref":"#/$defs/RunStatus"},"at":{"type":"string","description":"an ISO instant"}},"required":["id","status","at"],"additionalProperties":false},{"type":"null"}]},"runs24h":{"type":"object","properties":{"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the day's runs of the workflow that COMPLETED or were UNDONE since (a run undone did complete): the cached health row's `completed`, as the Overview's health table counts it (FW-083)"},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the day's runs of the workflow in limbo, FAILED or COMPENSATED, dismissed or not: the cached health row's `failed` (FW-083)"}},"required":["completed","failed"],"additionalProperties":false,"description":"the workflow's run counts over the health summary's day, off the cached `health.24h` row the Overview reads (FW-083; a count the row has not summed yet is 0)"},"exampleKey":{"description":"the key the definition computes over its example (ADR-0060 decision 13), what the console shows beside the key fields; null without an example, or when the key throws over it","type":["string","null"]},"hooks":{"type":"array","items":{"$ref":"#/$defs/CatalogHook"},"description":"the hooks the definition declares (ADR-0063 Appendix M U1), each with the handlers registered on it in registration order; empty for a definition that declares none"},"queries":{"type":"array","items":{"type":"string"},"description":"the queries the definition declares (ADR-0076 FP-031, API 2.140), by name, sorted: what GET runs/:id/query/:name answers for a run of it; empty for a definition that declares none"},"updates":{"type":"array","items":{"type":"string"},"description":"the updates the definition declares (ADR-0076 FP-031, API 2.140), by name, sorted: what POST runs/:id/update/:name lands for a run of it; empty for a definition that declares none"},"plugin":{"description":"the plugin the definition belongs to (ADR-0063 Appendix M U5): a plugin's name, the implicit plugin's for the host's own, null for the core's","type":["string","null"]}},"required":["name","keyFields","scope","describe","example","version","replay","lightweight","timeout","userStepMaxMs","observedWindowHours","schedule","cancelOn","listener","steps","stepsFrom","stepsPrunedAfterDays","lastRun","runs24h","exampleKey","hooks","queries","updates","plugin"],"additionalProperties":false},"CatalogSchedule":{"type":"object","properties":{"every":{"type":["string","number"]},"cron":{"type":"string"},"tz":{"type":"string"}},"additionalProperties":false},"RelayPolicy":{"type":"string","description":"`execute`, `record`, `execute:<peers>` or `record (<role>)`: the listener's relay policy as a label"},"BatchWindow":{"type":"object","properties":{"maxSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxWaitMs":{"type":"number"}},"required":["maxSize","maxWaitMs"],"additionalProperties":false},"CatalogStep":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"status":{"$ref":"#/$defs/StepStatus"},"outcome":{"type":["string","null"]},"ledgered":{"type":"boolean"},"durationMs":{"type":["number","null"]},"declared":{"anyOf":[{"$ref":"#/$defs/StepDeclaration"},{"type":"null"}],"description":"what the step declared on the last completed run (ADR-0060 decision 12): what it can and cannot undo, not only how long it took; null on a row stored before schema version 12"},"observedP95Ms":{"description":"the p95 of the step's durations over this workflow's rows of the catalog's window (FW-052, ADR-0066 T09 as landed; `observedWindowHours` on the row, the step health summary's reading: every attempt's row with a duration, a replayed row (COMPLETED on a resumed attempt at 0 ms, one per step per wake) left out, so a step before a sleep, a poll or a park keeps its real p95; since API 2.192 read off the stored copy of the window the health read keeps, `observedComputedAt` on the row, never computed on the request path), ms; null with no such row and while the window's first copy is computing (`observedComputing` on the row): what `doctor --definitions --api` judges `definitions/step-over-need` on when present, the last run's `durationMs` alone before it","type":["number","null"]},"observedExecutions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many rows of this workflow's step the p95 is over (FW-052): 0 with none, when `observedP95Ms` is null (a window still computing among them)"},"patch":{"description":"the patch this step is the marker of (ADR-0076 D07, FP-034; API 2.137): `ctx.patched(\"<id>\")`'s row, `patch:<id>`, a step row with no body the memo serves so a resumed run replays the branch it took; the id, null for any other step","type":["string","null"]}},"required":["seq","name","status","outcome","ledgered","durationMs","declared","observedP95Ms","observedExecutions","patch"],"additionalProperties":false},"StepStatus":{"type":"string","enum":["STARTED","COMPLETED","FAILED","COMPENSATED","WAITING"]},"StepDeclaration":{"type":"object","properties":{"undo":{"type":"boolean","description":"whether the step carries a compensate (an undo)"},"irreversible":{"description":"the reason the step cannot undo; null when it can","type":["string","null"]},"effect":{"type":"string","enum":["read","ledgered","external","provider"],"description":"what the step does to the world (ADR-0041 item 31)"},"id":{"description":"the step's stable identity (ADR-0051 §15), null without one","type":["string","null"]},"retry":{"description":"the retry the step declared and the tries its row counted (ADR-0063 B03), with its resume word when declared \"park\" (LB-004); absent without one","type":"object","properties":{"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many times the body may run in all"},"tries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the tries the row counted, resumed after a crash"},"resume":{"description":"the policy's resume word when it is \"park\" (ADR-0063 B03 amendment 2026-10-10, LB-004: every next try on a fresh invocation after a retry park); absent for the inline default and on a row stored before the word","type":"string","const":"park"}},"required":["attempts","tries"],"additionalProperties":false},"timeoutMs":{"description":"the timeout the step declared, ms (ADR-0063 B03); absent without one","type":"number"},"needsMs":{"description":"the need the step declared, ms (ADR-0066 D06: what it must have left of the budget to start; 0 admitted); absent without one, when the engine assumes the kind's default: a plain step's min(STEP_NEEDS_DEFAULT_MS, timeoutMs), an external step's two calls (2 × (external.timeoutMs ?? externalCallTimeoutMs), FW-020)","type":"number"},"external":{"description":"the step is an external step (FW-020; ADR-0066 D06 as landed): the phases, a read and a write of one call each, whose default need is two calls; absent on a plain step (a recordedWrite inside one keeps the plain default) and on a row stored before the field","type":"object","properties":{"timeoutMs":{"description":"the spec's own per-call timeout, ms; absent for the provider's default (the contract's externalCallTimeoutMs)","type":"number"},"idempotent":{"type":"boolean","description":"the spec's retry.idempotent: a non-idempotent write is never retried and is reconciled from the world"}},"required":["idempotent"],"additionalProperties":false},"onFail":{"description":"the failure policy the step declared (ADR-0063 Appendix M U6): \"return\" when its failure is its value, the row then FAILED with the outcome TOLERATED; absent for the default (throw)","type":"string","const":"return"},"completion":{"description":"the completion policy the step declared (FP-011 as landed, ADR-0076 D05 (3) opt-in): \"behind\" when a read step's COMPLETED row rides the next boundary's statement or the finish (one statement a step; a crash between the body's return and that statement leaves the row STARTED and the next attempt re-invokes the read); absent for the default (\"now\": the row in its own statement before the body goes on, replayed after any crash) and on a row stored before the field","type":"string","const":"behind"},"services":{"description":"the services the step read through i.services (ADR-0063 Appendix M U4), by name, sorted; absent when it read none","type":"array","items":{"type":"string"}}},"required":["undo","irreversible","effect","id"],"additionalProperties":false},"RunStatus":{"type":"string","enum":["RUNNING","COMPLETED","FAILED","COMPENSATED","UNDONE","WAITING","CONTINUED"]},"CatalogHook":{"type":"object","properties":{"name":{"type":"string","description":"the hook's name as the definition declares it"},"input":{"description":"the input's shape as JSON Schema when the definition declared a schema; null for a type marker (as<I>())"},"output":{"description":"the output's shape as JSON Schema when the definition declared a schema; null for a type marker or no declaration"},"handlers":{"type":"array","items":{"$ref":"#/$defs/CatalogHookHandler"},"description":"the handlers registered on the hook, in registration order (the order they run and the reverse of their undos)"}},"required":["name","input","output","handlers"],"additionalProperties":false},"CatalogHookHandler":{"type":"object","properties":{"name":{"type":"string","description":"the handler's name, as registered"},"module":{"description":"the module that registered it (<path>:<line>), where the stack named it; null otherwise","type":["string","null"]},"plugin":{"description":"the plugin that registered the handler (ADR-0063 Appendix M U5); null for one registered under no instance","type":["string","null"]},"effect":{"type":"string","enum":["read","ledgered","external","provider"],"description":"what the handler does to the world (ADR-0041 item 31)"},"undo":{"type":"boolean","description":"whether the handler carries an undo"},"irreversible":{"description":"the reason the handler cannot undo; null when it can","type":["string","null"]}},"required":["name","module","plugin","effect","undo","irreversible"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/catalog/events":{"get":{"operationId":"console.catalog.events","summary":"The catalog of events: every name of the bound catalog with its key parts, the partition its rule spells, the listeners registered on it with their policies, its owner and the day's count; since ADR-0069 U46a a page under `prefix=`, `before=<name>` and `limit=` (50 unless said, 200 at most), sorted by name; the parameterless call every row as before.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0051 §6; ADR-0069 U46a","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"prefix":{"description":"keep the rows whose name starts with this","type":"string"},"before":{"description":"the older page's cursor: the last name of the page held (the rows after it by name)","type":"string"},"limit":{"description":"rows, 1 to 200 (50 unless said); absent with no prefix and no cursor, every row","type":"string"}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/$defs/EventCatalogRow"},"$defs":{"EventCatalogRow":{"type":"object","properties":{"name":{"type":"string"},"parts":{"type":"array","items":{"type":"string"}},"partition":{"type":["string","null"]},"describe":{"description":"the fact's one sentence, what it means (ADR-0063 B23), or null","type":["string","null"]},"schema":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}],"description":"the payload's schema as JSON Schema (ADR-0063 B27): what the door admits, `required` naming every key part; null for a fact without one"},"listeners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"workflow":{"type":"string"},"policy":{"$ref":"#/$defs/RelayPolicy"},"batch":{"anyOf":[{"$ref":"#/$defs/BatchWindow"},{"type":"null"}]},"describe":{"description":"the listener's one sentence, what it does on the fact (ADR-0063 B23), or null","type":["string","null"]},"plugin":{"description":"the plugin that registered the listener (ADR-0063 Appendix M U5), or null","type":["string","null"]}},"required":["name","workflow","policy","batch","describe","plugin"],"additionalProperties":false}},"owner":{"type":"string","enum":["core","host"]},"plugin":{"description":"the plugin that declared the fact (ADR-0063 Appendix M U5): a plugin's name, the implicit plugin's for the host's own, null for the core's","type":["string","null"]},"recent24h":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["name","parts","partition","describe","schema","listeners","owner","plugin","recent24h"],"additionalProperties":false},"RelayPolicy":{"type":"string","description":"`execute`, `record`, `execute:<peers>` or `record (<role>)`: the listener's relay policy as a label"},"BatchWindow":{"type":"object","properties":{"maxSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxWaitMs":{"type":"number"}},"required":["maxSize","maxWaitMs"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/catalog/logs":{"get":{"operationId":"console.catalog.logs","summary":"The log catalog: every name the engine and the host log, as the two tables spell it (level, field names, one sentence of meaning, where to read on); `?prefix=` keeps the names under a prefix.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0060 decision 17","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"prefix":{"description":"keep the rows whose name starts with this, e.g. relay. or mdm.","type":"string","maxLength":200}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/$defs/LogCatalogRow"},"$defs":{"LogCatalogRow":{"type":"object","properties":{"name":{"type":"string","description":"the name as the line's `event` spells it; `*.<suffix>` is a family: the operator actions' `<action>.<suffix>` lines (the heads are the actions' names)"},"level":{"anyOf":[{"type":"string","enum":["debug","info","warn","error"]},{"type":"array","items":{"type":"string","enum":["debug","info","warn","error"]}}],"description":"the level the sites log it at; a list when more than one"},"fields":{"type":"array","items":{"type":"string"},"description":"the names of the fields the sites pass (names alone, never values; a site that spreads an object may pass more)"},"meaning":{"type":"string","description":"one sentence: what happened when the line was written, and what it tells the reader"},"see":{"description":"where to read on, or null","type":["string","null"]}},"required":["name","level","fields","meaning","see"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/catalog/workflows/{name}/key":{"get":{"operationId":"console.catalog.workflow.key","summary":"What an input keys to under one registered definition, as execute would compute it: the key, the partition and the summary the input resolves to, the stored form's re-key and whether it is the same (false with the part named when the policy redacts one: such a run is stored not resumable), and the run that owns the key now; a key another workflow owns says so as a value; 404 for a name no definition carries, 422 for an input the door refuses (a secret, a client, a Date, one past the stored cap), a key or resolver that throws over it, or a key that reads a part the policy redacts (the key is never answered).","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0060 decision 13","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"the workflow's name as the catalog spells it"},"input":{"description":"the input as JSON, what execute would be handed","type":"string","maxLength":8000}},"required":["name","input"]},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/$defs/WorkflowKeyView","$defs":{"WorkflowKeyView":{"type":"object","properties":{"workflow":{"type":"string"},"key":{"type":"string","description":"the key the definition computes over the input, as execute would"},"scope":{"description":"the partition the input resolves to: the resolver's answer, or the input's own partition field (ADR-0051 §1)","type":["string","null"]},"scopeId":{"description":"the partition the row belongs to","type":["string","null"]},"summary":{"description":"summary(input) in its stored form: the definition's, or the key fields picked off the input; null without one"},"storedKey":{"type":"string","description":"the key over the stored form of the input, what the resumer and the redrive re-key"},"same":{"type":"boolean","description":"key === storedKey and the stored form holds no redacted part: the identity rule (ADR-0060 decision 5) read over this input as execute judges it; false is the finding definitions/example-does-not-rekey, or redacted"},"redacted":{"anyOf":[{"$ref":"#/$defs/WorkflowKeyRedacted"},{"type":"null"}],"description":"the part the policy redacts in the stored form, when the input holds one: execute keeps such a run with no resumable input and never re-keys it, so same is false; null for an input stored whole"},"owner":{"anyOf":[{"$ref":"#/$defs/WorkflowKeyOwner"},{"type":"null"}],"description":"the run that owns the key now, or null before any run"},"belongs":{"description":"the other workflow the key row names, what execute would refuse with KeyCollision; null otherwise","type":["string","null"]}},"required":["workflow","key","scope","scopeId","summary","storedKey","same","redacted","owner","belongs"],"additionalProperties":false},"WorkflowKeyRedacted":{"type":"object","properties":{"part":{"type":"string","description":"the part's path, input.<field>, as the door of decision 7 spells one"},"finding":{"type":"string","description":"the sentence execute logs (run.not_resumable) when it keeps the run with no resumable input"},"remedy":{"type":"string"}},"required":["part","finding","remedy"],"additionalProperties":false},"WorkflowKeyOwner":{"type":"object","properties":{"runId":{"type":"string","description":"the run the key row names"},"workflow":{"type":"string","description":"the workflow the key row names: the one asked, or another (then `belongs` names it)"},"status":{"anyOf":[{"$ref":"#/$defs/RunStatus"},{"type":"null"}],"description":"the owning run's status; null when its row is gone"}},"required":["runId","workflow","status"],"additionalProperties":false},"RunStatus":{"type":"string","enum":["RUNNING","COMPLETED","FAILED","COMPENSATED","UNDONE","WAITING","CONTINUED"]}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/catalog/graph":{"get":{"operationId":"console.catalog.graph","summary":"The reaction graph, whole or asked (ADR-0060 decision 14 as amended 2026-10-30, GR-002): every fact, listener, workflow, ledger type, reverter and peer as a node, and every reaction as an edge (fact → listener under its policy and batch, listener → the workflow it starts, workflow → the facts it emits and waits on and the children it starts, its schedule and its cap, ledger type → reverter, peer → the facts its globs send it) carrying its primitive's drawback sentence; since FW-064 the steps a body walks as step nodes with what each declared (door, effect, undo or irreversible reason, id, the site) under declares edges and the recorded writes inside them as write nodes under writes edges, each with the phase it runs in; since GR-005 (API 2.270) the tables and columns the writes name as table and column nodes under writes edges from the write (the write node carrying its table, columns, compared columns, ledger, via and site; the table itself where the columns were not read whole), the modules a body's helper fold went through as module nodes under through edges, the raw delegate mutations outside a recorded write as raw edges from the step to the table with the verb, the columns and the site, a workflow's key as text and a step's onFail; since GR-007 (API 2.271) the doors the host's descriptor rows name as door nodes (the surface, the methods, the body, the judge, the site) under admits edges to the workflows each runs in its own answer, starts edges under after: answer to the workflows it hands past its answer (the hand, the chain and the execute's site) and emits edges for a webhook's facts, and the refusals a door or a step answers as a value as refusal nodes (the sentence, the judgements, the ADRs) under refuses edges from each door and step that names one (judged row at the door or step inside the step, the chain, the site); since GR-008 (API 2.272) every capability of the connector interfaces the descriptor names as a provider node under calls edges from each step whose fold calls it through a resolver (the resolver and the call's site on the edge); the body edges from the host's generated index, the dangling entries named. With from= the graph narrowed to a walk from that node (direction= out, in or both; depth= 1 to 3; kinds= and nodeKinds= the edge and node kinds kept; the walk bounded at GRAPH_WALK_EDGES_MAX edges and said under truncated; an unknown node dangling, never a 404), with to= the first path between the two, format=text the one text one line per edge, drawbacks=table the sentences once; node= as before (from=&direction=both&depth=1). Memoised a window, tagged (ETag, 304 on If-None-Match), bounded in bytes with its lists cut and said.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0060 decision 14 (as amended 2026-10-30, GR-002, GR-005, GR-007 and GR-008); ADR-0069 U46b (node=); FW-064 (the step-declaration edges)","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"node":{"description":"one node's id (ADR-0069 U46b): the node, every edge that touches it and the nodes those edges reach, as from=<id>&direction=both&depth=1; an unknown id an empty answer naming it dangling, never a 404","type":"string","maxLength":200},"from":{"description":"the node a walk starts from (GR-002): workflow:<name>, listener:<name>, fact:<name>, step:<workflow>:<step>, write:<workflow>:<step>:<key>, since GR-005 table:<Model>, column:<Model>.<column> (direction=in: its writers) and module:<path> (direction=in: the bodies whose fold went through it), and since GR-007 door:<surface>:<path> (what the door admits, hands past its answer and refuses; direction=in on a workflow: the doors that admit it) and refusal:<registry>:<slug> (direction=in: the doors and steps that may answer it), and since GR-008 provider:<kind>.<capability> (direction=in: the steps that call it through a resolver); an unknown id an empty answer naming it dangling, never a 404","type":"string","maxLength":200},"direction":{"description":"the edges followed: out (the default: what the node reaches), in (what reaches it) or both","type":"string","enum":["out","in","both"]},"depth":{"description":"how far the walk goes, 1 to 3 (1 unless said); the core's WALK_DEPTH_MAX (4) is an offline reader's bound, GR-010 the CLI","type":"string"},"kinds":{"description":"a comma list of the edge kinds kept (listens, starts, emits, waits, child, fanout, schedule, cap, cancels, hook, handles, reverts, receives, uses, declares, writes, through, raw, admits, refuses, calls); every kind unless said; an unknown word is refused by name; a dead end under the filter says the absence under the one kind asked, and only where the node carries no edge of the word","type":"string"},"nodeKinds":{"description":"a comma list of the kinds a far node may have (fact, listener, workflow, hook, handler, step, write, ledger, reverter, peer, service, table, column, module, door, refusal, provider); every kind unless said; an unknown word is refused by name","type":"string"},"to":{"description":"a node to find a path to from `from` (GR-002): the first path found within PATH_MAX hops over out edges (both under direction=both; direction=in and nodeKinds= are refused by name beside it), the edges in order, `path` saying found or none","type":"string","maxLength":200},"format":{"description":"json (the default): the graph narrowed to the walk; text: { query, lines, truncated }, one line per edge as the core's renderer prints it, a few KB; needs from=","type":"string","enum":["json","text"]},"drawbacks":{"description":"inline (the default): the drawback sentence on every edge, as before; table: the primitive on every edge and the sentences once under drawbacks, a fraction of the bytes","type":"string","enum":["inline","table"]}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/$defs/ReactionGraph"},{"$ref":"#/$defs/GraphText"}],"$defs":{"ReactionGraph":{"type":"object","properties":{"nodes":{"type":"array","items":{"$ref":"#/$defs/GraphNode"}},"edges":{"type":"array","items":{"$ref":"#/$defs/GraphEdge"}},"dangling":{"type":"array","items":{"type":"object","properties":{"node":{"type":"string"},"reason":{"type":"string"}},"required":["node","reason"],"additionalProperties":false}},"plugins":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"implicit":{"type":"boolean","description":"whether this is the implicit plugin (the configuration's top-level fields)"},"nodes":{"type":"array","items":{"type":"string"},"description":"the ids of the nodes that belong to the plugin, sorted"}},"required":["name","implicit","nodes"],"additionalProperties":false},"description":"the plugins in load order, the implicit one first (ADR-0063 Appendix M U5): what the graph groups by"},"index":{"anyOf":[{"type":"object","properties":{"source":{"type":"string"},"bodies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unresolved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["source","bodies","unresolved"],"additionalProperties":false},{"type":"null"}],"description":"what the host's generated index carried, or null when the host handed none (then no body edge is drawn)"},"query":{"description":"the walk this answer is (GR-002): present under from= or node=, absent on the whole graph","$ref":"#/$defs/GraphWalkQuery"},"truncated":{"description":"the walk's bound when hit and a byte cut's counts (GR-002; ADR-0076 FP-041), null when neither; absent on a whole graph that fit","$ref":"#/$defs/GraphTruncated"},"drawbacks":{"description":"under drawbacks=table (GR-002): the drawback sentence of every primitive the edges name, once each, keyed by the primitive","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"path":{"description":"under to= (GR-002): whether a path was found within max hops, and its hops; the edges are the path's in order","type":"object","properties":{"found":{"type":"boolean"},"hops":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["found","hops","max"],"additionalProperties":false}},"required":["nodes","edges","dangling","plugins","index"],"additionalProperties":false},"GraphNode":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"fact"},"name":{"type":"string"},"owner":{"type":"string","enum":["core","host"]},"parts":{"type":"array","items":{"type":"string"}},"describe":{"type":["string","null"]},"plugin":{"description":"the plugin the node belongs to (ADR-0063 Appendix M U5): a plugin's name, the implicit plugin's for the host's own, null for the core's","type":["string","null"]}},"required":["id","kind","name","owner","parts","describe","plugin"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"listener"},"name":{"type":"string"},"event":{"type":"string"},"workflow":{"type":"string"},"policy":{"$ref":"#/$defs/RelayPolicy"},"batch":{"anyOf":[{"$ref":"#/$defs/BatchWindow"},{"type":"null"}]},"describe":{"type":["string","null"]},"indexed":{"type":"boolean","description":"whether the host's index carries this body: false under no index, or for the core's own"},"plugin":{"description":"the plugin the node belongs to (ADR-0063 Appendix M U5): a plugin's name, the implicit plugin's for the host's own, null for the core's","type":["string","null"]},"through":{"type":"array","items":{"type":"string"},"description":"the modules the body's helper fold went through (GR-005, API 2.270), off the host's index: the far ends of its through edges; empty under no index or an unindexed body"}},"required":["id","kind","name","event","workflow","policy","batch","describe","indexed","plugin","through"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"workflow"},"name":{"type":"string"},"owner":{"type":"string","enum":["core","host"]},"describe":{"type":["string","null"]},"keyFields":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"key":{"description":"the definition's key as text off the host's index (GR-005, API 2.270): a function key's template, invoice.send:{invoiceId}:{requestId}, a field list, or <expression>; null under no index, an unindexed body or a key the walk left unsaid; never computed over an input","type":["string","null"]},"schedule":{"anyOf":[{"$ref":"#/$defs/GraphSchedule"},{"type":"null"}]},"concurrency":{"anyOf":[{"$ref":"#/$defs/GraphCap"},{"type":"null"}]},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"indexed":{"type":"boolean"},"plugin":{"description":"the plugin the node belongs to (ADR-0063 Appendix M U5): a plugin's name, the implicit plugin's for the host's own, null for the core's","type":["string","null"]},"through":{"type":"array","items":{"type":"string"},"description":"the modules the body's helper fold went through (GR-005, API 2.270), off the host's index: the far ends of its through edges; empty under no index or an unindexed body"}},"required":["id","kind","name","owner","describe","keyFields","key","schedule","concurrency","version","indexed","plugin","through"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"hook"},"name":{"type":"string"},"workflow":{"type":"string"},"output":{"type":"boolean","description":"whether the declaration carries an output shape"}},"required":["id","kind","name","workflow","output"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"handler"},"name":{"type":"string"},"workflow":{"type":"string"},"hook":{"type":"string"},"module":{"type":["string","null"]},"effect":{"type":"string","enum":["read","ledgered","external","provider"]},"undo":{"type":"boolean"},"irreversible":{"type":["string","null"]},"plugin":{"description":"the plugin the node belongs to (ADR-0063 Appendix M U5): a plugin's name, the implicit plugin's for the host's own, null for the core's","type":["string","null"]}},"required":["id","kind","name","workflow","hook","module","effect","undo","irreversible","plugin"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"step"},"name":{"type":"string"},"workflow":{"type":"string","description":"the workflow the body's runs are recorded under (a listener's listener.<name>)"},"door":{"type":"string","enum":["ctx.step","defineStep","defineExternalStep"],"description":"the door the step is declared at"},"effect":{"anyOf":[{"type":"string","enum":["read","ledgered","external","provider"]},{"type":"null"}],"description":"what the step declared it does to the world (ADR-0041 item 31); null when the walk could not read the declaration"},"undo":{"type":"boolean","description":"whether the step carries an undo"},"irreversible":{"description":"the reason the step cannot undo; null when it can; <expression> for a reason spelled by a template over the input","type":["string","null"]},"stepId":{"description":"the step's stable identity (ADR-0051 §15) where the literal spells one","type":["string","null"]},"onFail":{"description":"the step's onFail as declared (GR-005, API 2.270; ADR-0063 Appendix M U6): return takes the failure as a value, throw fails the run; null when unsaid, <expression> when spelled past what the walk reads","type":["string","null"]},"declared":{"type":"boolean","description":"whether the walk read the declaration off a literal (FW-064); false is a dangling entry, the declaration then the recorder's row alone"},"module":{"type":"string","description":"where the walk read the declaration (GR-002, API 2.269): the inline call's module, or the defined step's definition's"},"line":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the line of that site"}},"required":["id","kind","name","workflow","door","effect","undo","irreversible","stepId","onFail","declared","module","line"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"write"},"name":{"type":"string","description":"the write key's base"},"workflow":{"type":"string"},"step":{"type":"string"},"door":{"type":"string","enum":["recordedWrite","recordedRowWrite"],"description":"recordedWrite (and recorded), whose undo is declared; recordedRowWrite, whose undo is the primitive's own"},"undo":{"type":"boolean"},"phase":{"type":"string","enum":["invoke","compensate"],"description":"the phase the write runs in: invoke, the step's forward body (a defined step's invoke, an external spec's read and write, an inline step's body), or compensate, the step's own compensation (a defined step's compensate, an external spec's undo, an inline step's undo option), whose node id ends in :compensate"},"table":{"anyOf":[{"$ref":"#/$defs/GraphTableRef"},{"type":"null"}],"description":"the table the write names (GR-005, API 2.270), off the host's index; null when the walk could not read it, counted on the index's coverage line and drawn to no table"},"columns":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"the columns the write sets (GR-005): the data literal's keys, <expression> among them for a part the walk could not read; null when none was read; the write's writes edges reach each named column, and the table itself when the columns were not read whole"},"compared":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"the columns the write compares before it writes (GR-005), null when none was read"},"ledger":{"description":"the ledger resource the write records under (GR-005), null when unread","type":["string","null"]},"via":{"description":"the helpers between the step and the write (GR-005), each at its definition's line; null for a write in the step's own text","type":["string","null"]},"module":{"description":"the write's own site (GR-005): the module of the recorded call; null on an older index","type":["string","null"]},"line":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the line of that site"}},"required":["id","kind","name","workflow","step","door","undo","phase","table","columns","compared","ledger","via","module","line"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"table"},"name":{"type":"string","description":"the model's name as the host's schema spells it (GR-005, API 2.270): a model a recorded write or a raw mutation names, drawn once per model"},"datasource":{"type":"string","description":"the schema's directory under the host's schema root, app for the root schema"},"schema":{"description":"the schema's path off the index's tables; null when the index carries no row for it","type":["string","null"]},"line":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the model's line in the schema"},"clients":{"type":"array","items":{"type":"string"},"description":"the client identifiers the model is reached through"}},"required":["id","kind","name","datasource","schema","line","clients"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"column"},"name":{"type":"string","description":"<Model>.<column> (GR-005, API 2.270): a column a recorded write names; its in edges are its writers"},"table":{"type":"string"},"column":{"type":"string"},"type":{"description":"the column's type as the schema writes it; null when the index carries no row for it","type":["string","null"]},"default":{"description":"the default's text; null when none or unread","type":["string","null"]},"schema":{"type":["string","null"]},"line":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the column's line in the schema"}},"required":["id","kind","name","table","column","type","default","schema","line"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"module"},"name":{"type":"string","description":"the repository-relative path a body's helper fold went through (GR-005, API 2.270); its in edges are the bodies"}},"required":["id","kind","name"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"door"},"name":{"type":"string","description":"the door's path as its surface spells it (GR-007, API 2.271): pick/start, fulfillment/priority, a host action's name, a webhook's stem, a Next route's id; the id is door:<surface>:<path>"},"surface":{"type":"string","description":"the surface the door is on, the host descriptor's prefix: floor, console, host, webhook, api"},"method":{"description":"the methods the door answers (POST, GET|POST); null when unsaid","type":["string","null"]},"body":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"the body's fields off the surface's bodies table; null where the index read none"},"judge":{"anyOf":[{"$ref":"#/$defs/GraphJudge"},{"type":"null"}],"description":"the judge that reads the rows before any run (pickDoorRefusal); null where the walk saw none"},"route":{"description":"a host action's route (defineRoute({ path })); null otherwise","type":["string","null"]},"reads":{"type":"boolean","description":"whether the door runs nothing: a read, the index's reads mark; its admits absence is said"},"module":{"type":"string","description":"where the walk read the door: the branch's, the entry's or the route file's site"},"line":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the line of that site"}},"required":["id","kind","name","surface","method","body","judge","route","reads","module","line"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"refusal"},"name":{"type":"string","description":"the slug (GR-007, API 2.271): a catalogue row's, invoice-is-already-sent-ask-the-desk, the id refusal:<registry>:<slug>; a literal's under no registry, refusal:<slug>, a code literal's its code"},"registry":{"description":"the registry the row belongs to (floor); null for a literal under none","type":["string","null"]},"sentence":{"description":"the sentence template as the row spells it; null for a literal under no registry","type":["string","null"]},"judged":{"type":"array","items":{"type":"string"},"description":"the words the row is judged under across its doors (row at the door from the rows, step inside the step as the race's backstop), sorted; empty where the row says none or the refusal is a literal's"},"adr":{"type":"array","items":{"type":"string"},"description":"the ADRs the row cites, sorted; empty where none"},"module":{"type":"string","description":"the row's site, or the first literal's for a refusal under no registry"},"line":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the line of that site"}},"required":["id","kind","name","registry","sentence","judged","adr","module","line"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"provider"},"name":{"type":"string","description":"<kind>.<capability> (GR-008, API 2.272): a method of the connector interface the host's descriptor names for the kind, say shipping.buyLabel; the id provider:<kind>.<capability>; its in edges are the steps that call it through a resolver"},"provider":{"type":"string","description":"the provider kind, the descriptor's key: shipping, channel, notify"},"capability":{"type":"string","description":"the capability, the interface's method name"},"module":{"type":"string","description":"the interface's module, the file a reader opens"},"line":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the method's line in it"}},"required":["id","kind","name","provider","capability","module","line"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"ledger"},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"reverter"},"name":{"type":"string"},"needsClient":{"type":"boolean"},"judges":{"type":"boolean"}},"required":["id","kind","name","needsClient","judges"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"peer"},"name":{"type":"string"},"publish":{"type":"array","items":{"type":"string"}},"role":{"type":"string","enum":["production","preview","local"]}},"required":["id","kind","name","publish","role"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","const":"service"},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false}]},"RelayPolicy":{"type":"string","description":"`execute`, `record`, `execute:<peers>` or `record (<role>)`: the listener's relay policy as a label"},"BatchWindow":{"type":"object","properties":{"maxSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxWaitMs":{"type":"number"}},"required":["maxSize","maxWaitMs"],"additionalProperties":false},"GraphSchedule":{"type":"object","properties":{"every":{"type":["string","number"]},"cron":{"type":"string"}},"additionalProperties":false},"GraphCap":{"type":"object","properties":{"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"keyed":{"type":"boolean"}},"required":["max","keyed"],"additionalProperties":false},"GraphTableRef":{"type":"object","properties":{"client":{"type":["string","null"]},"datasource":{"type":"string"},"model":{"type":"string"}},"required":["client","datasource","model"],"additionalProperties":false},"GraphJudge":{"type":"object","properties":{"name":{"type":"string"},"module":{"type":["string","null"]},"line":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["name","module","line"],"additionalProperties":false},"GraphEdge":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"kind":{"type":"string","enum":["listens","starts","emits","waits","child","fanout","schedule","cap","cancels","hook","handles","reverts","receives","uses","declares","writes","through","raw","admits","refuses","calls"]},"step":{"description":"a uses edge (ADR-0063 Appendix M U4): the step the service read sits in, null for a read in the body outside any step; a calls edge from a body (GR-008): the step the call sits in where the graph carries no node for it, null outside any step","type":["string","null"]},"policy":{"$ref":"#/$defs/RelayPolicy"},"batch":{"anyOf":[{"$ref":"#/$defs/BatchWindow"},{"type":"null"}]},"schedule":{"$ref":"#/$defs/GraphSchedule"},"cap":{"$ref":"#/$defs/GraphCap"},"cancelOn":{"description":"a cancels edge (ADR-0076 FP-033; API 2.136): the entry's index in the definition's cancelOn and the match's fields (null when a function match the example cannot read)","type":"object","properties":{"entry":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fields":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["entry","fields"],"additionalProperties":false},"raw":{"description":"a raw edge (GR-005, API 2.270): a delegate mutation the step's fold holds outside a recorded write, its verb, the columns its data names (null when unread), the helpers between the step and the mutation (null in the step's own text) and the mutation's own site","type":"object","properties":{"verb":{"type":"string"},"columns":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"via":{"type":["string","null"]},"module":{"type":"string"},"line":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["verb","columns","via","module","line"],"additionalProperties":false},"body":{"description":"an admits edge (GR-007, API 2.271): the body's fields the door takes, null where the index read none","anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"after":{"description":"a starts edge from a door (GR-007, API 2.271): answer where the run is handed past the door's own answer under a hand (keepAlive); absent on a run the door or a body awaits","type":"string","const":"answer"},"hand":{"description":"a starts edge from a door under after (GR-007, API 2.271): the hand that carries the run, the chain of helpers it was reached through (null in the door's own text) and the execute's site","type":"object","properties":{"how":{"type":["string","null"]},"via":{"type":["string","null"]},"module":{"type":"string"},"line":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["how","via","module","line"],"additionalProperties":false},"refuses":{"description":"a refuses edge (GR-007, API 2.271): where the refusal is judged (row at the door from the rows, step inside the step as the race's backstop; null when the row leaves it unsaid), the chain of helpers (null in the door's or the step's own text) and the site, a catalogue row's for a door's row, the literal's otherwise","type":"object","properties":{"judged":{"type":["string","null"]},"via":{"type":["string","null"]},"module":{"type":"string"},"line":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["judged","via","module","line"],"additionalProperties":false},"calls":{"description":"a calls edge (GR-008, API 2.272): what bound the connector the step called the capability on (via: the resolver's name, connectorFor, channelFor; as reviewed 2026-10-30 a wrapper's chain to it, <wrapper>@<module>:<line> → <resolver>, or the connector interface's name where the walk read the kind off a type annotation, a parameter's or a declared answer's) and the call's site; step beside it, on an edge from a body, the step the index attributed the call to where the graph carries no node for it (a poll's probe), null outside any step","type":"object","properties":{"via":{"type":"string"},"module":{"type":"string"},"line":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["via","module","line"],"additionalProperties":false},"primitive":{"description":"the primitive the edge stands for, the name of its DRAWBACKS row (GR-002, API 2.269): on every edge under drawbacks=table, where the sentence rides once in the answer's drawbacks","type":"string"},"drawback":{"description":"the drawback sentence of the primitive the edge stands for (DRAWBACKS, ADR-0060 decision 16): on every edge under drawbacks=inline (the default), absent under drawbacks=table","type":"string"}},"required":["from","to","kind"],"additionalProperties":false},"GraphWalkQuery":{"type":"object","properties":{"from":{"type":"string"},"direction":{"type":"string","enum":["out","in","both"]},"depth":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kinds":{"anyOf":[{"type":"array","items":{"type":"string","enum":["listens","starts","emits","waits","child","fanout","schedule","cap","cancels","hook","handles","reverts","receives","uses","declares","writes","through","raw","admits","refuses","calls"]}},{"type":"null"}]},"nodeKinds":{"anyOf":[{"type":"array","items":{"type":"string","enum":["fact","listener","workflow","hook","handler","step","write","ledger","reverter","peer","service","table","column","module","door","refusal","provider"]}},{"type":"null"}]},"to":{"type":["string","null"]}},"required":["from","direction","depth","kinds","nodeKinds","to"],"additionalProperties":false},"GraphTruncated":{"anyOf":[{"type":"object","properties":{"atDepth":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"edgesLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"edges":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nodes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lines":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bytes":{"type":"object","properties":{"before":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cut":{"type":"array","items":{"type":"string"}}},"required":["before","max","cut"],"additionalProperties":false}},"additionalProperties":false},{"type":"null"}]},"GraphText":{"type":"object","properties":{"query":{"$ref":"#/$defs/GraphWalkQuery"},"lines":{"type":"array","items":{"type":"string"}},"truncated":{"$ref":"#/$defs/GraphTruncated"}},"required":["query","lines","truncated"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/waits":{"get":{"operationId":"console.waits","summary":"Every open wait, oldest first, each with its run's workflow; a slot wait says how many older runs of its match wait ahead of it. Since ADR-0069 U46b `workflow=` and `kind=` narrow the rows and `before=<createdAt iso>|<id>` pages them (the rows strictly after the cursor, oldest first; a full page's last row the next cursor); the parameterless call the oldest 200 as before.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0050 decision 3; ADR-0051 §10; ADR-0069 U46b","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"limit":{"description":"rows, 1 to 200; anything else is the most","type":"string"},"take":{"deprecated":true,"description":"the older spelling of limit, read when limit is not named; deprecated since API 2.111, gone with 3.0","type":"string"},"workflow":{"description":"the open waits of runs of this workflow alone (ADR-0069 U46b)","type":"string"},"kind":{"description":"the open waits of this kind alone (ADR-0069 U46b)","$ref":"#/$defs/WaitKind"},"before":{"description":"the older page's cursor: the last row's createdAt|id (ADR-0069 U46b; the list is oldest first, so the page after the cursor is the rows strictly after it)","type":"string"}},"$defs":{"WaitKind":{"type":"string","enum":["timer","signal","child","continue","slot","rate","retry","hold","cancel","join"]}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/$defs/WaitingRow"},"$defs":{"WaitingRow":{"type":"object","properties":{"id":{"type":"string"},"kind":{"$ref":"#/$defs/WaitKind"},"step":{"type":"string"},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"type":["string","null"]},"eventName":{"type":["string","null"]},"matchHash":{"type":["string","null"]},"childRunId":{"type":["string","null"]},"until":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"createdAt":{"type":"string","description":"an ISO instant"},"firedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"firedBy":{"anyOf":[{"$ref":"#/$defs/WaitFiredBy"},{"type":"null"}]},"payload":{},"batch":{"anyOf":[{"$ref":"#/$defs/RunWaitBatch"},{"type":"null"}],"description":"the batch a continue wait parked before a chunk (FW-046, API 2.104), read off the park step row; null on any other wait and on a park whose row is gone"},"join":{"anyOf":[{"$ref":"#/$defs/RunWaitJoin"},{"type":"null"}],"description":"the join's counters on a join wait (ADR-0076 FP-037, API 2.141: ctx.fanOut's park, the children started, not yet landed, failed and the failures tolerated); null on every other kind"},"runId":{"type":"string"},"workflow":{"type":["string","null"]},"ahead":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","kind","step","seq","attempt","token","eventName","matchHash","childRunId","until","createdAt","firedAt","firedBy","payload","batch","join","runId","workflow"],"additionalProperties":false},"WaitKind":{"type":"string","enum":["timer","signal","child","continue","slot","rate","retry","hold","cancel","join"]},"WaitFiredBy":{"type":"string","enum":["timer","fact","signal","child","deadline","continue","slot","cancel","timeout","resume","landed","join"]},"RunWaitBatch":{"type":"object","properties":{"name":{"type":"string","description":"the batch's name"},"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the chunk the run continues at (0-based)"},"total":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the chunk count, the array form's; null under the cursor form"}},"required":["name","index","total"],"additionalProperties":false},"RunWaitJoin":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children the fan-out started"},"remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children not yet landed (the join fires at 0)"},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children landed FAILED or COMPENSATED"},"tolerated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the failures the join admits before it fires failed"}},"required":["total","remaining","failed","tolerated"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/environments":{"get":{"operationId":"console.environments","summary":"The members of the mesh: this app first, then every configured peer with its declared role and URL, its answer to the newest ping addressed to it, the per-direction sequence and lag, the copies of it quarantined here (quarantined, quarantine: since API 2.148) and the witnessed heads, the registered ephemeral members last; the relay's one count of the local facts unsent past the expiring window; and every listener's relay policy under this app's role.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0053 decisions 4 and 5","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"environment":{"type":["string","null"]},"role":{"anyOf":[{"$ref":"#/$defs/EnvironmentRole"},{"type":"null"}]},"policyRole":{"anyOf":[{"$ref":"#/$defs/EnvironmentRole"},{"type":"null"}]},"relayEnabled":{"type":"boolean"},"expiring":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"local facts unsent past the relay's expiring window (the limits' relayExpiringDays), each fact once however many peers still owe it; a member's own expiring counts it for that peer alone; 0 with the relay off"},"members":{"type":"array","items":{"$ref":"#/$defs/EnvironmentMember"}},"ephemeral":{"anyOf":[{"type":"object","properties":{"peer":{"type":"string"},"url":{"type":"string"},"publish":{"type":"array","items":{"type":"string"}}},"required":["peer","url","publish"],"additionalProperties":false},{"type":"null"}]},"previews":{"anyOf":[{"type":"object","properties":{"publish":{"type":"array","items":{"type":"string"}}},"required":["publish"],"additionalProperties":false},{"type":"null"}]},"policies":{"type":"array","items":{"$ref":"#/$defs/RelayPolicyRow"},"description":"every listener's relay policy as its label under this app's role (ADR-0053 decision 4), the declared label beside it; the ones that execute are the listeners that run on a relayed copy here"},"storeService":{"description":"since API 2.116, on a host that composes the view: every store this app's probe rows, the peer's relayed install facts or its own Shop rows name, by domain, with which member serves it (ADR-0020 amendment 2026-10-10 D02, LB-001b); absent on a host with no such composition","type":"array","items":{"type":"object","properties":{"store":{"type":"string","description":"the store's domain"},"here":{"type":"object","properties":{"installed":{"description":"whether this app holds a usable session for the store (its probe row); null before the first probe","type":["boolean","null"]},"status":{"type":["string","null"]},"checkedAt":{"type":["string","null"]}},"required":["installed","status","checkedAt"],"additionalProperties":false,"description":"this app's own word, off its probe row"},"peer":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"installed":{"type":"boolean"},"occurredAt":{"type":["string","null"]}},"required":["name","installed","occurredAt"],"additionalProperties":false},{"type":"null"}],"description":"the peer's newest relayed install or uninstall fact as this app recorded it, with the member's name; null when no fact of the peer landed here"},"verdict":{"type":"string","enum":["here","peer","contested","nobody","unknown"],"description":"the gate's answer: served here; served by the peer (installed there, not here); contested (installed on both: served by nobody until one app is removed); nobody (installed on neither); unknown (no probe yet here, or no word of the peer while none here)"}},"required":["store","here","peer","verdict"],"additionalProperties":false,"description":"one store's service across the mesh (ADR-0020 amendment 2026-10-10 D02; API 2.116)"}}},"required":["environment","role","policyRole","relayEnabled","expiring","members","ephemeral","previews","policies"],"additionalProperties":false,"$defs":{"EnvironmentRole":{"type":"string","enum":["production","preview","local"]},"EnvironmentMember":{"type":"object","properties":{"name":{"type":"string"},"self":{"type":"boolean"},"role":{"$ref":"#/$defs/EnvironmentRole"},"url":{"type":["string","null"]},"host":{"type":["string","null"]},"publish":{"type":"array","items":{"type":"string"}},"wireVersion":{"type":["number","null"]},"ping":{"anyOf":[{"$ref":"#/$defs/RelayPing"},{"type":"null"}]},"out":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"peer":{"type":["string","null"]},"lastAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"lastId":{"type":["string","null"]},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"received":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"type":["string","null"]},"lastOkAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"seq":{"type":"number"},"claimedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]}},"required":["id","peer","lastAt","lastId","sent","received","pending","lastError","lastOkAt","updatedAt","seq","claimedAt"],"additionalProperties":false},{"type":"null"}]},"in":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"peer":{"type":["string","null"]},"lastAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"lastId":{"type":["string","null"]},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"received":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"type":["string","null"]},"lastOkAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"lastSeq":{"type":"number"}},"required":["id","peer","lastAt","lastId","sent","received","pending","lastError","lastOkAt","updatedAt","lastSeq"],"additionalProperties":false},{"type":"null"}]},"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"claimed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expiring":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quarantined":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"since API 2.148 (ADR-0076 SOC-18): the peer's copies quarantined here, how many the settings row relay.quarantine.<peer> holds (the newest hundred): a fact under a name this catalog lacks or whose payload its schema refused, never landed as a row and answered to the peer as rejected; 0 on this app's row"},"quarantine":{"type":"array","items":{"$ref":"#/$defs/QuarantineEntry"},"description":"since API 2.148 (ADR-0076 SOC-18): those copies, newest first, never a payload; empty on this app's row"},"heads":{"anyOf":[{"$ref":"#/$defs/WitnessedHeads"},{"type":"null"}]},"ephemeral":{"anyOf":[{"type":"object","properties":{"firstSeenAt":{"type":"string","description":"an ISO instant"},"lastSeenAt":{"type":"string","description":"an ISO instant"}},"required":["firstSeenAt","lastSeenAt"],"additionalProperties":false},{"type":"null"}]}},"required":["name","self","role","url","host","publish","wireVersion","ping","out","in","pending","claimed","expiring","quarantined","quarantine","heads","ephemeral"],"additionalProperties":false},"RelayPing":{"type":"object","properties":{"id":{"type":"string"},"sentAt":{"type":"string","description":"an ISO instant"},"answeredAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"roundTripMs":{"type":["number","null"]}},"required":["id","sentAt","answeredAt","roundTripMs"],"additionalProperties":false},"QuarantineEntry":{"type":"object","properties":{"id":{"type":"string","description":"the origin's id of the copy"},"name":{"type":"string","description":"the fact's name"},"at":{"type":"string","description":"when this app quarantined it"},"reason":{"type":"string","description":"why: the schema's first issue, or that the name is not a fact of this catalog"}},"required":["id","name","at","reason"],"additionalProperties":false},"WitnessedHeads":{"type":"object","properties":{"entries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastSeq":{"type":["string","null"]},"ok":{"type":"boolean"}},"required":["entries","lastSeq","ok"],"additionalProperties":false},"RelayPolicyRow":{"type":"object","properties":{"event":{"type":"string"},"listener":{"type":"string"},"policy":{"$ref":"#/$defs/RelayPolicy"},"declared":{"description":"`execute`, `record` or `execute:<peers>`: the policy as the registration declares it, before the role","$ref":"#/$defs/RelayPolicy"}},"required":["event","listener","policy","declared"],"additionalProperties":false},"RelayPolicy":{"type":"string","description":"`execute`, `record`, `execute:<peers>` or `record (<role>)`: the listener's relay policy as a label"}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/issues":{"get":{"operationId":"console.issues","summary":"The causes among the runs in limbo: one group per signature (unsigned for the rows stored before the column), count first, over the window.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0051 §9","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"since":{"description":"groups the runs started at or after this instant (the last thirty days unless said)","type":"string"},"workflow":{"description":"one workflow's runs","type":"string"},"limit":{"description":"groups, 1 to 200 (50 unless said); a whole number, more read as the most","type":"string"},"take":{"deprecated":true,"description":"the older spelling of limit, read when limit is not named; deprecated since API 2.111, gone with 3.0","type":"string"},"transient":{"description":"since API 2.118 (LB-012): `1` keeps the transient causes alone, the groups of the window whose code's row says transient, the limit bounding the transient groups answered (the groups are read at the ceiling and judged on the remedy join)","type":"string"}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/$defs/Issue"},"$defs":{"Issue":{"type":"object","properties":{"signature":{"type":"string","description":"sixteen hex characters, or `unsigned`"},"workflow":{"type":"string"},"step":{"type":["string","null"]},"errorCode":{"type":["string","null"]},"message":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"firstSeen":{"type":"string","description":"an ISO instant"},"lastSeen":{"type":"string","description":"an ISO instant"},"scopes":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"first":{"type":"array","items":{"type":"string"}}},"required":["count","first"],"additionalProperties":false},"redrivable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dismissed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sample":{"type":"object","properties":{"runId":{"type":"string"},"at":{"type":"string","description":"an ISO instant"}},"required":["runId","at"],"additionalProperties":false},"definitionVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the registered definition's version (ADR-0051 §15): what \"Redrive under version N\" accepts for a VersionMismatch cause; null when this deployment does not know the workflow"},"remedy":{"description":"what to do about the cause's errorCode (ADR-0060 decision 15: the host's row, else the engine's registry); null when the group has no code or no table names it","type":["string","null"]},"fix":{"anyOf":[{"$ref":"#/$defs/IssueFix"},{"type":"null"}],"description":"the fix a person recorded for the cause (ADR-0063 B11, POST issues/:signature/resolve), or since FW-033 the fix of another listed cause whose `also` names this one; null for a cause never resolved, and always for the unsigned group"},"recurring":{"type":"boolean","description":"true when the cause recurred after its fix (ADR-0044 §4; since FW-033 over the fix's whole set): the newest run of any signature the fix covers was seen after fix.since; false with no fix"},"builds":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]}},"required":["first","last"],"additionalProperties":false,"description":"the builds the cause was first and last seen under (ADR-0063 B10): the oldest run's first attempt's build and the newest run's latest; each null where the row carries none (a laptop, a row stored before schema version 17)"},"transient":{"type":"boolean","description":"since API 2.118 (LB-012; ADR-0051 §9 as amended 2026-10-10): true when the row errorCode joins (the host's, else the engine's) says transient: a provider or the platform slow or away for the moment (a 5xx, a 429, a bucket's refusal, a timeout, a kill), what the Errors page lists under Provider slow with one Redrive all; false for every other code, for a code no table names and for the unsigned group"}},"required":["signature","workflow","step","errorCode","message","count","firstSeen","lastSeen","scopes","redrivable","dismissed","sample","definitionVersion","remedy","fix","recurring","builds","transient"],"additionalProperties":false},"IssueFix":{"type":"object","properties":{"fixedIn":{"type":"string","description":"the pull request number or the sha, as text (`#123`)"},"since":{"type":"string","description":"when the fix was recorded"},"build":{"description":"the build the resolve was recorded under (ADR-0063 B10: the deployment's commit at the write); null off a platform naming none and on a fix recorded before B10","type":["string","null"]},"by":{"type":"string","description":"the actor who recorded it"},"also":{"type":"array","items":{"type":"string"},"description":"the other signatures the fix covers (FW-033; ADR-0044 §3: a reworded cause is a new signature by design, and the set reads recurring as one), sorted, never this cause's own; on a cause borrowing another's fix, the set from this cause's view (the owner among them); [] on a fix recorded before FW-033"},"note":{"description":"a line about the fix (FW-033), or null","type":["string","null"]},"runbook":{"description":"the runbook heading that answers the cause (FW-033; ADR-0044 §4's anchor), or null","type":["string","null"]}},"required":["fixedIn","since","build","by","also","note","runbook"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/issues/{signature}/runs":{"get":{"operationId":"console.issue.runs","summary":"One cause's runs, newest first, each as the limbo page shapes a row with its dismissal, the page after before; a path that names no signature is refused. Since API 2.145 (ADR-0076 FP-041) a page over answerBytesMax keeps its newest rows that fit and says the cut on the X-Durable-Truncated header.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0051 §9","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"signature","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"signature":{"description":"the cause's signature, or `unsigned` for the rows stored before the column","type":"string"},"limit":{"description":"rows, 1 to 200 (100 unless said); a whole number, more read as the most","type":"string"},"take":{"deprecated":true,"description":"the older spelling of limit, read when limit is not named; deprecated since API 2.111, gone with 3.0","type":"string"},"before":{"description":"the cursor of an older page: the last row's startedAt|id","type":"string"}},"required":["signature"]},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/$defs/IssueRun"},"$defs":{"IssueRun":{"type":"object","properties":{"id":{"type":"string"},"workflow":{"type":"string"},"scopeId":{"description":"the partition the row belongs to","type":["string","null"]},"actor":{"type":"string"},"actorLabel":{"type":"string"},"status":{"$ref":"#/$defs/RunStatus"},"error":{"type":["string","null"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startedAt":{"type":"string","description":"an ISO instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"steps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"entries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"redrivable":{"type":"boolean"},"redriveBlocked":{"type":["string","null"]},"compensation":{"anyOf":[{"$ref":"#/$defs/RunCompensation"},{"type":"null"}]},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the version of the definition the run started under (ADR-0051 §15); 1 on a row stored before the column"},"failedStep":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":["string","null"]},"errorCode":{"type":["string","null"]}},"required":["name","seq","attempt","error","errorCode"],"additionalProperties":false},{"type":"null"}]},"signature":{"type":["string","null"]},"autoRedrive":{"anyOf":[{"$ref":"#/$defs/AutoRedrive"},{"type":"null"}],"description":"the engine's auto-redrive state (ADR-0084, API 2.195): the ordinal and the bound, the moment the status is about, scheduled | running | landed | exhausted | stopped and why, and whether the retry is still in motion; null for a run it never retried"},"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]}},"required":["id","workflow","scopeId","actor","actorLabel","status","error","attempts","startedAt","finishedAt","steps","entries","redrivable","redriveBlocked","compensation","version","failedStep","signature","autoRedrive","dismissedAt","dismissedBy","dismissReason"],"additionalProperties":false},"RunStatus":{"type":"string","enum":["RUNNING","COMPLETED","FAILED","COMPENSATED","UNDONE","WAITING","CONTINUED"]},"RunCompensation":{"type":"object","properties":{"undone":{"type":"array","items":{"type":"string"}},"failed":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"error":{"type":"string"}},"required":["step","error"],"additionalProperties":false}},"irreversible":{"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"reason":{"type":"string"}},"required":["step","reason"],"additionalProperties":false}},"skipped":{"description":"why nothing was undone on a run the resumer landed FAILED without an attempt (ADR-0051 §15's `version mismatch`; since FW-021 the landing's own words, `abandoned: attempt limit <n>`, `abandoned: <the replay verdict>`): its completed steps' effects stand, nothing was tried; absent on a run a saga compensated","type":"string"}},"required":["undone","failed","irreversible"],"additionalProperties":false},"AutoRedrive":{"type":"object","properties":{"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the ordinal of the auto-redrive the row is about, 1..max"},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the bound in force when it was judged"},"at":{"type":"string","description":"the moment the status is about: the delayed fact's delivery while scheduled, the admission while running, the transition's moment otherwise"},"status":{"type":"string","enum":["scheduled","running","landed","exhausted","stopped"],"description":"scheduled (the delayed fact queued), running (the request admitted), landed (the redrive completed), exhausted (the bound spent), stopped (a cause the engine will not retry, a dismissal, a refusal, an undo)"},"reason":{"description":"why the engine stopped (stopped alone); null otherwise","type":["string","null"]},"pending":{"type":"boolean","description":"judged at read time with the engine's bound (ADR-0084 decision 6): a scheduled row until its moment plus the grace, a running one until its admission plus the lease; the sweep, the gate and the chip read this word and spell no bound"}},"required":["n","max","at","status","reason","pending"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/explain":{"get":{"operationId":"console.explain","summary":"One error code explained: its meaning, its remedy and its ADR from the host's table or the engine's registry; or a run id: the run, its failed step's code explained and every captured log name of its steps glossed with the log catalog; 404 for a code neither table names that is no run either.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0060 decisions 15 and 17","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":64,"description":"the error code as the issues view, a step row or a bundle spells it (StaleWrite, http_5xx, P2002, NonIdempotentWriteFailed:http_5xx, abandoned), or a run id: then the run's captured log lines are glossed with their catalog rows"}},"required":["code"]},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/$defs/Explanation"},{"$ref":"#/$defs/RunExplanation"}],"$defs":{"Explanation":{"type":"object","properties":{"code":{"type":"string","description":"the row's code as the table spells it"},"meaning":{"type":"string"},"remedy":{"type":"string"},"adr":{"type":"string"},"source":{"type":"string","enum":["engine","host"],"description":"which table answered: the engine's registry or the host's"},"transient":{"description":"since API 2.118 (LB-012): present, and true, when the row says the code names a provider or the platform slow or away for the moment, as the table spells it; absent on every other row","type":"boolean","const":true}},"required":["code","meaning","remedy","adr","source"],"additionalProperties":false},"RunExplanation":{"type":"object","properties":{"run":{"type":"object","properties":{"id":{"type":"string"},"workflow":{"type":"string"},"status":{"$ref":"#/$defs/RunStatus"},"error":{"type":["string","null"]},"signature":{"type":["string","null"]}},"required":["id","workflow","status","error","signature"],"additionalProperties":false},"failedStep":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errorCode":{"type":"string"},"error":{"type":["string","null"]},"explanation":{"anyOf":[{"$ref":"#/$defs/Explanation"},{"type":"null"}],"description":"the code's row from the host's table or the engine's registry; null when neither names it"}},"required":["name","attempt","seq","errorCode","error","explanation"],"additionalProperties":false},{"type":"null"}],"description":"the newest step row carrying an error code; null when none failed"},"lines":{"type":"array","items":{"$ref":"#/$defs/GlossedLine"},"description":"the captured names of every step row, in step order, once per name under its step"}},"required":["run","failedStep","lines"],"additionalProperties":false},"RunStatus":{"type":"string","enum":["RUNNING","COMPLETED","FAILED","COMPENSATED","UNDONE","WAITING","CONTINUED"]},"GlossedLine":{"type":"object","properties":{"step":{"type":"string"},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string","description":"the line's `event`"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many captured lines of the step carry the name"},"meaning":{"description":"the catalog row's sentence (the engine's table, the host's, or the family's); null when no row covers the name","type":["string","null"]},"see":{"type":["string","null"]}},"required":["step","attempt","seq","name","count","meaning","see"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console":{"get":{"operationId":"console.api.catalog","summary":"The catalogue: the API's version and its header, the two refusal shapes, and every entry with its path, method, scope, summary, ADR and its input and output as JSON Schema.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0051 §11","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"api":{"type":"object","properties":{"version":{"type":"string"},"header":{"type":"string"},"schema":{"type":"string","description":"the JSON Schema dialect the schemas are written in"},"session":{"anyOf":[{"type":"object","properties":{"header":{"type":"string","description":"the request header a signed session rides in"},"audience":{"type":"string","description":"the aud claim the session is minted with"},"algorithms":{"description":"the algorithms this deployment verifies a session under (SOC-04 part 2, API 2.152): HS256 under the shared secret while one is bound (one release more), ES256 and EdDSA by the header's kid while a key is listed; absent on an older API","type":"array","items":{"type":"string"}},"keys":{"description":"the public keys this deployment admits, by kid and algorithm; never a key's bytes (a JWKS URL serves those); absent on an older API","type":"array","items":{"type":"object","properties":{"kid":{"type":"string"},"alg":{"type":"string"},"source":{"type":"string","enum":["variable","jwks"],"description":"where the key was read: the deployment's listed keys, or its JWKS URL"}},"required":["kid","alg","source"],"additionalProperties":false}}},"required":["header","audience"],"additionalProperties":false},{"type":"null"}],"description":"how a script names itself to this API (ADR-0051 §14; ADR-0064 P06): a signed session, HS256 under the console's session secret or (SOC-04 part 2, API 2.152) ES256 or EdDSA under a key pair whose public half this deployment lists by kid, the subject cli:<name> or agent:<name>, five minutes, a fresh jti, sent in this header with this audience (durable-sdk undo reads it here); since SOC-04 (API 2.151) the audience is this environment's own, read here by every signer rather than spelled, and a mutation (POST, PUT, PATCH, DELETE) under the bearer with no session is 401 { error: \"session required\" } before any run exists; a personal token (Authorization: Bearer <prefix>…, the person's own, minted on the console) stands in for the bearer and the session both; null where the host binds none"},"names":{"type":"object","properties":{"scope":{"type":"string","description":"the host's name for a row's partition (the core's scope): what the events list's filter and every renamed field travel as"},"scopeId":{"type":"string","description":"the host's name for a row's partition id (the core's scopeId): what the runs list's filter and every renamed field travel as"}},"required":["scope","scopeId"],"additionalProperties":false,"description":"the partition fields' names on this wire (ADR-0064 P12, API 2.111): what a client renames a query's scopeId/scope to before it travels (the MCP reads them here as it starts); the core's own spellings where the host binds none"}},"required":["version","header","schema","session","names"],"additionalProperties":false},"errors":{"type":"object","properties":{"ErrorAnswer":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"RefusedAnswer":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["ErrorAnswer","RefusedAnswer"],"additionalProperties":false},"routes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"},"method":{"type":"string","enum":["GET","POST","DELETE"]},"scope":{"type":"string","enum":["read","write","destructive"]},"summary":{"type":"string"},"adr":{"type":"string"},"typed":{"type":"boolean"},"tool":{"type":["string","null"]},"toolSpec":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"args":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["title","description","args"],"additionalProperties":false},{"type":"null"}],"description":"the MCP tool that proxies the entry: its title, its description and its arguments as JSON Schema; what the MCP registers a host entry's tool from (ADR-0063 B24)"},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"output":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"plugin":{"description":"the plugin the entry belongs to (ADR-0063 Appendix M U5): a plugin's name for one of its routes, the implicit plugin's for a host entry, null for the table's own","type":["string","null"]},"ability":{"description":"the host's word for what a role needs at the door (ADR-0068 D10): <area>:<verb>, read on a read; enforced by the host's own gate from the session's abilities claim, never by the table, so null on the table's own entries","type":["string","null"]}},"required":["name","path","method","scope","summary","adr","typed","tool","toolSpec","input","output","plugin","ability"],"additionalProperties":false}}},"required":["api","errors","routes"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}/redrive":{"post":{"operationId":"console.run.redrive","summary":"Redrives one run in limbo as a run.redrive run under the operator; with invalidate the named completed steps are undone first; 404 for a run that is gone, 409 for one the action refuses.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0031; ADR-0051 §12, §15","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"},"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"},"invalidate":{"description":"the completed steps to undo before the resume; absent or null, a plain redrive","anyOf":[{"$ref":"#/$defs/InvalidateSpec"},{"type":"null"}]},"acceptVersion":{"description":"the deployed definition's version the caller accepts for a run stored under another (ADR-0051 §15): the number read on the run's detail as definitionVersion; absent or null, such a run is refused (409, `version 1 → 2`)","anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","requestId"],"$defs":{"InvalidateSpec":{"anyOf":[{"type":"object","properties":{"steps":{"minItems":1,"type":"array","items":{"type":"string","minLength":1},"description":"the completed steps to undo, by name"}},"required":["steps"],"additionalProperties":false},{"type":"object","properties":{"fromSeq":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"every completed step at this seq and after"}},"required":["fromSeq"],"additionalProperties":false}]}}}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the run.redrive run"},"targetRunId":{"type":"string"},"workflow":{"type":"string"},"before":{"type":"object","properties":{"status":{"type":"string"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":["string","null"]},"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["status","attempts","error","dismissedAt","dismissedBy","dismissReason","version"],"additionalProperties":false},"after":{"type":"object","properties":{"status":{"type":"string"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":["string","null"]},"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["status","attempts","error","dismissedAt","dismissedBy","dismissReason","version"],"additionalProperties":false},"result":{"$ref":"#/$defs/ExecutionStatus"},"invalidated":{"type":"array","items":{"$ref":"#/$defs/InvalidatedStep"}},"refused":{"type":"string"},"acceptedVersion":{"description":"the version the redrive accepted (ADR-0051 §15); absent on a redrive of a run at the definition's version","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ok","runId","targetRunId","workflow","before","after","result"],"additionalProperties":false,"$defs":{"ExecutionStatus":{"type":"string","enum":["completed","failed","compensated","in_progress","waiting","undone","continued"]},"InvalidatedStep":{"type":"object","properties":{"step":{"type":"string"},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"undone":{"type":"boolean"},"reason":{"type":"string"}},"required":["step","seq","undone"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}/dismiss":{"post":{"operationId":"console.run.dismiss","summary":"Sets one run in limbo aside with a reason as a run.dismiss run under the operator; the reason is cut at 500 characters; 404 for a run that is gone, 409 for one the action refuses.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0031 amendment","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"},"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"},"reason":{"description":"why it stops waiting; cut at 500 characters","type":"string","minLength":1}},"required":["id","requestId","reason"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the run.dismiss run"},"targetRunId":{"type":"string"},"workflow":{"type":"string"},"status":{"type":"string"},"before":{"type":"object","properties":{"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]}},"required":["dismissedAt","dismissedBy","dismissReason"],"additionalProperties":false},"after":{"type":"object","properties":{"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]}},"required":["dismissedAt","dismissedBy","dismissReason"],"additionalProperties":false},"changed":{"type":"boolean"}},"required":["ok","runId","targetRunId","workflow","status","before","after","changed"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}/undo":{"post":{"operationId":"console.run.undo","summary":"Reverts one run through the host's reverters as an undo.run run keyed per target (a resend is the same run); a divergence row of the run (`<step>:diverged`) is never reverted and counted on `diverged`; refused 409 with the reason and the blocked rows when the verdict is not undoable, or when the client its reverters need cannot be opened; 404 for a run that is gone.","tags":["console"],"x-scope":"admin","x-console-scope":"destructive","x-console-api":"2.273","x-adr":"ADR-0009; ADR-0041 item 13; ADR-0051 §13; ADR-0063 amended 2026-10-05","security":[{"apiKey":["admin"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"}},"required":["id"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the undo.run run"},"reverted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"diverged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the run's divergence rows left alone (not this run's writes; ADR-0063 amended 2026-10-05)"},"alreadyUndone":{"type":"boolean","const":true}},"required":["ok","runId","reverted","diverged"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/scopes/{scope}/undo":{"post":{"operationId":"console.scope.undo","summary":"Reverts every ledgered change on a scope since a moment, newest first, through the host's reverters as an undo.since run keyed per scope and moment (a resend is the same run; no request id); refused 409 with the blocked rows when a row no reverter answers stands in the window, or when the client the reverters need cannot be opened; 400 for a since that is not an instant.","tags":["console"],"x-scope":"admin","x-console-scope":"destructive","x-console-api":"2.273","x-adr":"ADR-0009; ADR-0051 §13; ADR-0064 P06","security":[{"apiKey":["admin"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"scope","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"scope":{"type":"string","minLength":1,"description":"the ledger partition (a store's domain under the host's names)"},"since":{"type":"string","minLength":1,"description":"the ISO instant to revert back to: every row stamped after it is reverted"}},"required":["scope","since"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the undo.since run"},"scope":{"type":"string"},"since":{"type":"string","description":"the instant in its ISO form, the one the run's key carries"},"reverted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"diverged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the window's divergence rows left alone (not their runs' writes; ADR-0063 amended 2026-10-05)"}},"required":["ok","runId","scope","since","reverted","diverged"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}/signal":{"post":{"operationId":"console.run.signal","summary":"Signals a run under a token with the body's payload, as a run.signal run under the operator: fires the signal or fact wait the run holds under that token (the wait's images in the answer), or buffers the signal as the fact run.signalled for the run's next waitForApproval under that name when the run is RUNNING or WAITING on something else (buffered: true); the token is cut at 200 characters; 409 when the run is COMPLETED, UNDONE or in limbo.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0050 decision 3; ADR-0063 B05","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"},"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"},"token":{"description":"the signal's name: the token the run waits for, or the fact's name for a fact wait","type":"string","minLength":1},"payload":{"description":"what the parked step reads; null when absent"}},"required":["id","requestId","token"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the run.signal run"},"targetRunId":{"type":"string"},"workflow":{"type":"string"},"waitId":{"type":"string"},"signal":{"type":"string"},"before":{"type":"object","properties":{"waitId":{"type":"string"},"signal":{"type":["string","null"]},"firedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"firedBy":{"type":["string","null"]}},"required":["waitId","signal","firedAt","firedBy"],"additionalProperties":false},"after":{"type":"object","properties":{"waitId":{"type":"string"},"signal":{"type":["string","null"]},"firedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"firedBy":{"type":["string","null"]}},"required":["waitId","signal","firedAt","firedBy"],"additionalProperties":false},"changed":{"type":"boolean","const":true},"recovered":{"description":"the step's own fire read back by a later attempt (FW-012, ADR-0050 decision 3 as amended 2026-10-08): the attempt that fired the wait under this request and token died between the fire and its row, and a redrive or the resumer's claim landed the signal as that fire, never a second, buffered approval","type":"object","properties":{"ledgered":{"type":"boolean","description":"whether the dead attempt's ledger row had landed (then none was appended again)"}},"required":["ledgered"],"additionalProperties":false}},"required":["ok","runId","targetRunId","workflow","waitId","signal","before","after","changed"],"additionalProperties":false},{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the run.signal run"},"targetRunId":{"type":"string"},"workflow":{"type":"string"},"signal":{"type":"string"},"status":{"type":"string","description":"the run's status at the signal: RUNNING, or WAITING on something else"},"buffered":{"type":"boolean","const":true,"description":"the run was not parked on the signal: it is held as the fact run.signalled for the run's next waitForApproval under that name (ADR-0063 B05)"},"changed":{"type":"boolean","const":false}},"required":["ok","runId","targetRunId","workflow","signal","status","buffered","changed"],"additionalProperties":false}]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/signal":{"post":{"operationId":"console.runs.signal","summary":"Signals the run that owns the body's key (the run's idempotency key whole, as execute stored it, never a prefix) under its token with the payload, as the same run.signal run under the operator that runs/:id/signal records: the wait it holds under the token fired, or the signal buffered for its next wait under that name (buffered: true); the token is cut at 200 characters, the key is refused past 200 (never cut: a key is exact); 404 when no run owns the key, 409 as runs/:id/signal refuses.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0063 Appendix M, U7 (M7); ADR-0050 decision 3","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200,"description":"the run's idempotency key, whole, as execute stored it (a field-list key spells name:field=value); never a prefix; at most 200 characters"},"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"},"token":{"description":"the signal's name: the token the run waits for, or the fact's name for a fact wait","type":"string","minLength":1},"payload":{"description":"what the parked step reads; null when absent"}},"required":["key","requestId","token"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the run.signal run"},"targetRunId":{"type":"string"},"workflow":{"type":"string"},"waitId":{"type":"string"},"signal":{"type":"string"},"before":{"type":"object","properties":{"waitId":{"type":"string"},"signal":{"type":["string","null"]},"firedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"firedBy":{"type":["string","null"]}},"required":["waitId","signal","firedAt","firedBy"],"additionalProperties":false},"after":{"type":"object","properties":{"waitId":{"type":"string"},"signal":{"type":["string","null"]},"firedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"firedBy":{"type":["string","null"]}},"required":["waitId","signal","firedAt","firedBy"],"additionalProperties":false},"changed":{"type":"boolean","const":true},"recovered":{"description":"the step's own fire read back by a later attempt (FW-012, ADR-0050 decision 3 as amended 2026-10-08): the attempt that fired the wait under this request and token died between the fire and its row, and a redrive or the resumer's claim landed the signal as that fire, never a second, buffered approval","type":"object","properties":{"ledgered":{"type":"boolean","description":"whether the dead attempt's ledger row had landed (then none was appended again)"}},"required":["ledgered"],"additionalProperties":false}},"required":["ok","runId","targetRunId","workflow","waitId","signal","before","after","changed"],"additionalProperties":false},{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the run.signal run"},"targetRunId":{"type":"string"},"workflow":{"type":"string"},"signal":{"type":"string"},"status":{"type":"string","description":"the run's status at the signal: RUNNING, or WAITING on something else"},"buffered":{"type":"boolean","const":true,"description":"the run was not parked on the signal: it is held as the fact run.signalled for the run's next waitForApproval under that name (ADR-0063 B05)"},"changed":{"type":"boolean","const":false}},"required":["ok","runId","targetRunId","workflow","signal","status","buffered","changed"],"additionalProperties":false}]}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}/cancel":{"post":{"operationId":"console.run.cancel","summary":"Asks a RUNNING or WAITING run to stop at its next step boundary as a run.cancel run under the operator (the request id minted when the body carries none); 409 with the remedy for a run in limbo or a completed one; 404 for a run that is gone.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0051 §12","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"},"requestId":{"description":"the action's idempotency key; minted by the API when absent (or empty, or not a string), so each such call is a new run","type":"string","minLength":1},"reason":{"description":"why, for the run's summary; cut at 500 characters; a value that is not a string reads as absent","type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the run.cancel run"},"targetRunId":{"type":"string"},"workflow":{"type":"string"},"status":{"type":"string"},"before":{"type":"object","properties":{"cancelRequestedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"cancelRequestedBy":{"type":["string","null"]}},"required":["cancelRequestedAt","cancelRequestedBy"],"additionalProperties":false},"after":{"type":"object","properties":{"cancelRequestedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"cancelRequestedBy":{"type":["string","null"]}},"required":["cancelRequestedAt","cancelRequestedBy"],"additionalProperties":false},"changed":{"type":"boolean","description":"false when the flag stood already (an earlier attempt of the run.cancel run set it before a crash, or another request did): the columns untouched"},"waitFired":{"type":"boolean","description":"a WAITING run's open wait was fired cancel, so it wakes and meets the flag (ADR-0063 amendment 2026-10-08, FW-011: fired whoever set the flag)"},"parked":{"anyOf":[{"type":"string","enum":["timer","signal","child","continue","slot","rate","retry","hold","join"]},{"type":"null"}],"description":"the kind of the wait fired, null when none was"},"landed":{"type":"boolean","description":"a run parked on a slot wait was marked FAILED at once (nothing ran in this attempt, no slot held; a redrive parked at the cap returns to its limbo state with its earlier record kept; FW-011)"},"childCancelled":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"status":{"type":"string","description":"the child's status as read"},"changed":{"type":"boolean","description":"its flag set here"},"fenced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the compare-and-sets that missed because the child moved between the read and the write, each followed by a re-read and asked again (at most three); changed false beside fenced at three means the child outran the walk"},"waitFired":{"type":"boolean","description":"its own open wait fired"},"landed":{"type":"boolean","description":"a slot-parked child marked FAILED here"}},"required":["runId","status","changed","fenced","waitFired","landed"],"additionalProperties":false},"description":"the children cancelled with a run parked on a child wait, outermost first (a child parked on a child walked the same way, eight deep; no fact of their own: the children ride on this run's record and the parent's run.cancelled; FW-011)"},"childrenCancelled":{"anyOf":[{"type":"object","properties":{"flagged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children still in flight, flagged in one statement"},"fired":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"their open waits fired cancel, so each wakes and meets its flag"}},"required":["flagged","fired"],"additionalProperties":false},{"type":"null"}],"description":"the children of a run parked on a fan-out's join wait cancelled in one statement, counted and never listed (ADR-0076 FP-037); null for a run parked on anything else"}},"required":["ok","runId","targetRunId","workflow","status","before","after","changed","waitFired","parked","landed","childCancelled","childrenCancelled"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}/hold":{"post":{"operationId":"console.run.hold","summary":"Holds a RUNNING or WAITING run at its next step boundary (nothing undone, the step in flight completes first; a WAITING run keeps its wait and parks at its wake's first boundary) as a run.hold run under the operator (the request id minted when the body carries none); 409 with the remedy for a run in limbo or a completed one; 404 for a run that is gone.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0063 B37","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"},"requestId":{"description":"the action's idempotency key; minted by the API when absent (or empty, or not a string), so each such call is a new run","type":"string","minLength":1},"reason":{"description":"why, for the run's summary and the run page; cut at 500 characters; a value that is not a string reads as absent","type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the run.hold run"},"targetRunId":{"type":"string"},"workflow":{"type":"string"},"status":{"type":"string"},"before":{"type":"object","properties":{"holdRequestedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"holdRequestedBy":{"type":["string","null"]}},"required":["holdRequestedAt","holdRequestedBy"],"additionalProperties":false},"after":{"type":"object","properties":{"holdRequestedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"holdRequestedBy":{"type":["string","null"]}},"required":["holdRequestedAt","holdRequestedBy"],"additionalProperties":false},"changed":{"type":"boolean"}},"required":["ok","runId","targetRunId","workflow","status","before","after","changed"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}/resume":{"post":{"operationId":"console.run.resume","summary":"Releases a held run as a run.resume run under the operator (the request id minted when the body carries none): clears the hold and fires the hold wait the run parked on, so it goes on from the boundary it was held at (waitFired false when it was still ahead of its boundary, or waiting on something else); 409 with the reason for a run with no hold on it or one that landed; 404 for a run that is gone.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0063 B37","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"},"requestId":{"description":"the action's idempotency key; minted by the API when absent (or empty, or not a string), so each such call is a new run","type":"string","minLength":1}},"required":["id"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the run.resume run"},"targetRunId":{"type":"string"},"workflow":{"type":"string"},"status":{"type":"string"},"before":{"type":"object","properties":{"holdRequestedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"holdRequestedBy":{"type":["string","null"]}},"required":["holdRequestedAt","holdRequestedBy"],"additionalProperties":false},"after":{"type":"object","properties":{"holdRequestedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"holdRequestedBy":{"type":["string","null"]}},"required":["holdRequestedAt","holdRequestedBy"],"additionalProperties":false},"changed":{"type":"boolean"},"waitFired":{"type":"boolean"}},"required":["ok","runId","targetRunId","workflow","status","before","after","changed","waitFired"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}/wake":{"post":{"operationId":"console.run.wake","summary":"Fires the timer a WAITING run sleeps on (ctx.sleep, ctx.sleepUntil, a poll's sleep between probes) before its moment, as a run.wake run under the operator (the request id minted when the body carries none): the wait is fired `signal` with no payload, the run wakes at once and the sleeping step reads fired: signal (changed: true); a timer that fired meanwhile (its moment, a cancel, the run's timeout) changes nothing (changed: false, firedBy naming what fired it); 409 with the reason for a run that is not WAITING, one waiting on something that is no timer (a signal or fact wait is run.signal's, a hold run.resume's, a child the child's own, a slot, rate, retry or continue park the engine's), or a timer that fired already; 404 for a run that is gone.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0050 decision 3 as amended 2026-10-09 (FW-073)","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"},"requestId":{"description":"the action's idempotency key; minted by the API when absent (or empty, or not a string), so each such call is a new run","type":"string","minLength":1}},"required":["id"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the run.wake run"},"targetRunId":{"type":"string"},"workflow":{"type":"string"},"changed":{"type":"boolean","description":"true when this wake fired the timer; false when it had fired meanwhile or the run had moved on (then status, waitId and firedBy say what)"},"waitId":{"type":["string","null"]},"step":{"description":"the sleeping step's name, when the timer fired","type":"string"},"until":{"description":"the moment the timer would have fired by itself, when it fired","anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"status":{"description":"the run's status inside the step, when nothing fired","type":"string"},"firedBy":{"description":"what fired the timer first, when nothing fired here","type":["string","null"]},"before":{"type":"object","properties":{"waitId":{"type":"string"},"kind":{"type":"string"},"step":{"type":"string"},"until":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"firedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"firedBy":{"type":["string","null"]}},"required":["waitId","kind","step","until","firedAt","firedBy"],"additionalProperties":false},"after":{"type":"object","properties":{"waitId":{"type":"string"},"kind":{"type":"string"},"step":{"type":"string"},"until":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"firedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"firedBy":{"type":["string","null"]}},"required":["waitId","kind","step","until","firedAt","firedBy"],"additionalProperties":false},"recovered":{"description":"the step's own fire read back on a later attempt (FW-012's rule): the attempt that fired died before its row landed","type":"object","properties":{"ledgered":{"type":"boolean"}},"required":["ledgered"],"additionalProperties":false}},"required":["ok","runId","targetRunId","workflow","changed","waitId"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/redrive":{"post":{"operationId":"console.runs.redrive","summary":"Redrives the listed runs (runIds, required: the ids the page showed, never a form that chooses the runs itself), of one workflow when one is named and since API 2.118 of any without it (the transient family's one Redrive all), fanned out through facts: one runs.redrive run re-verifies each id and queues one run.redrive.requested per run still in limbo; more ids than one request takes is refused; acceptVersion passes through to each redrive.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0041 item 19; ADR-0051 §12, §15","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"workflow":{"description":"the workflow the runs belong to (an id of another workflow is skipped with the reason); optional since API 2.118 (LB-012): without it the ids may be of several workflows, each re-verified against the limbo predicate alone","type":"string","minLength":1},"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"},"runIds":{"description":"the run ids to redrive (required; 400 without it), at most 5000; an entry that is not a non-empty string is dropped, an empty list redrives nothing","type":"array","items":{}},"acceptVersion":{"description":"the deployed definition's version the caller accepts for a run stored under another (ADR-0051 §15): the number read on the run's detail as definitionVersion; absent or null, such a run is refused (409, `version 1 → 2`)","anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]}},"required":["requestId","runIds"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"requested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"reason":{"type":"string"}},"required":["runId","reason"],"additionalProperties":false}},"key":{"type":"string","description":"the runs.redrive run's key: what to watch the request under"},"runId":{"type":"string","description":"the runs.redrive run"}},"required":["ok","requested","skipped","key","runId"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/dismiss":{"post":{"operationId":"console.runs.dismiss","summary":"Sets every run in limbo aside under the reason (or one workflow's, or the listed ids alone, each re-verified against limbo), one keyed run.dismiss run each; more ids than one request takes is refused.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0041 item 19; ADR-0051 §9","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"},"reason":{"description":"why they stop waiting; cut at 500 characters","type":"string","minLength":1},"workflow":{"description":"one workflow's runs alone; a value that is not a string reads as absent","type":"string"},"runIds":{"description":"the run ids to set aside, at most 200; an entry that is not a non-empty string is dropped","type":"array","items":{}},"limit":{"description":"the id-less form's bound, 1 to 1000 (500 unless said)","type":["number","string"]}},"required":["requestId","reason"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"dismissed":{"type":"array","items":{"type":"string"}},"skipped":{"type":"array","items":{"type":"object","properties":{"runId":{"type":"string"},"reason":{"type":"string"}},"required":["runId","reason"],"additionalProperties":false}},"remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the runs still in limbo and not set aside once the call landed (the workflow's under workflow; FW-046, API 2.104): the id-less form takes at most LIMBO_TAKE a call, so the answer says what remains"}},"required":["ok","dismissed","skipped","remaining"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/scrub":{"post":{"operationId":"console.runs.scrub","summary":"Rewrites the stored outputs of earlier runs of the workflow the instance binds through the serializer, as a keyed runs.scrub run under the operator; a resend is the same run.","tags":["console"],"x-scope":"admin","x-console-scope":"destructive","x-console-api":"2.273","x-adr":"ADR-0041 item 11","security":[{"apiKey":["admin"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"}},"required":["requestId"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the runs.scrub run"},"workflow":{"type":"string"},"scanned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewritten":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"redacted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ok","runId","workflow","scanned","rewritten","redacted"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/events/{id}/reset":{"post":{"operationId":"console.event.reset","summary":"Puts an exhausted outbox row back in the dispatcher's fetch as an event.reset run under the operator; 404 for a row that is gone, 409 for a delivered one.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0041 item 15","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the event's id"},"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"}},"required":["id","requestId"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the event.reset run"},"outboxId":{"type":"string"},"event":{"type":"string"},"before":{"type":"object","properties":{"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"retryAt":{"type":["string","null"]},"lastError":{"type":["string","null"]},"relayedOutAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]}},"required":["attempts","retryAt","lastError","relayedOutAt","dismissedAt","dismissedBy","dismissReason"],"additionalProperties":false},"after":{"type":"object","properties":{"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"retryAt":{"type":["string","null"]},"lastError":{"type":["string","null"]},"relayedOutAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]}},"required":["attempts","retryAt","lastError","relayedOutAt","dismissedAt","dismissedBy","dismissReason"],"additionalProperties":false},"changed":{"type":"boolean"},"listenerRunGone":{"type":"boolean","description":"the reset edge retention narrowed (FW-089, API 2.107): true when the row is older than the listener run window and no listener run of it stands any more (a listener delivered a row at a time judged by the row's own run key, a batch listener through the slice its run's summary spells, since a slice's run is keyed on its head alone), so the dispatcher's next delivery runs the listener's body afresh with no key to answer it (a keyed child run stays fenced by its own key); false while a listener run of the row stands or the row is younger than the window"}},"required":["ok","runId","outboxId","event","before","after","changed","listenerRunGone"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/events/{id}/redeliver":{"post":{"operationId":"console.event.redeliver","summary":"Runs one listener's body once more over a delivered (or exhausted) row as an event.redeliver run under the operator (the request id minted when the body carries none); the listener is cut at 200 characters; 409 for a listener the event has no registration for, a row the dispatcher still owns, a relayed copy the listener records here, or a batch listener; 404 for a row that is gone.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0051 §12","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the event's id"},"requestId":{"description":"the action's idempotency key; minted by the API when absent (or empty, or not a string), so each such call is a new run","type":"string","minLength":1},"listener":{"description":"the listener's name, as the event page lists it","type":"string","minLength":1}},"required":["id","listener"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the event.redeliver run"},"outboxId":{"type":"string"},"event":{"type":"string"},"listener":{"type":"string"},"listenerRunId":{"type":"string"},"outcome":{"type":"string","enum":["delivered","in_progress","failed"]},"status":{"type":["string","null"]},"error":{"type":["string","null"]},"reused":{"type":"boolean"},"before":{"type":"object","properties":{"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dispatchedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"lastError":{"type":["string","null"]},"redelivery":{"type":"object","properties":{"listener":{"type":"string"},"requestId":{"type":"string"},"runId":{"type":"string"},"outcome":{"type":"string","enum":["delivered","in_progress","failed"]}},"required":["listener","requestId","runId","outcome"],"additionalProperties":false}},"required":["attempts","dispatchedAt","lastError"],"additionalProperties":false},"after":{"type":"object","properties":{"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dispatchedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"lastError":{"type":["string","null"]},"redelivery":{"type":"object","properties":{"listener":{"type":"string"},"requestId":{"type":"string"},"runId":{"type":"string"},"outcome":{"type":"string","enum":["delivered","in_progress","failed"]}},"required":["listener","requestId","runId","outcome"],"additionalProperties":false}},"required":["attempts","dispatchedAt","lastError"],"additionalProperties":false}},"required":["ok","runId","outboxId","event","listener","listenerRunId","outcome","status","error","reused","before","after"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/events/redrive":{"post":{"operationId":"console.events.redrive","summary":"Puts one listener's dead-letter queue back on the dispatcher's board (the undelivered rows exhausted under its retry policy, GET events?exhausted=<listener>) as an events.redrive run under the operator keyed per listener, since and request: oldest first, attempts at zero, the moment kept, at velocity rows a second at most (500, the ceiling and the default; each chunk of velocity rows live a second after the one before); 404 for a listener no registration carries.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0076 FP-028 (D06)","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"},"listener":{"description":"the listener's name, as the event page lists it; its exhausted rows are the queue","type":"string","minLength":1},"since":{"description":"the ISO instant the rows occurred at or after; absent, every exhausted row of the listener","type":"string"},"velocity":{"description":"rows a second, 1 to 500 (the ceiling unless said): the chunk's size, each chunk live a second after the one before","type":"integer","minimum":1,"maximum":500}},"required":["requestId","listener"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the events.redrive run"},"listener":{"type":"string"},"since":{"type":"string","description":"the window's start, as the key spells it"},"velocity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"chunks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the chunks the run walked"},"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the exhausted rows read over every chunk"},"reset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the rows put back over every chunk (a row reset, delivered or dismissed meanwhile is read and not moved)"}},"required":["ok","runId","listener","since","velocity","chunks","rows","reset"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/events/replay":{"post":{"operationId":"console.event.replay","summary":"Re-delivers a window's delivered facts, from the outbox and the archive tier (OutboxArchive, archiveDays back), to one listener or every listener as new runs keyed listener.<name>:<id>:replay:<requestId>, the payload's requestId under the replay: prefix, as an event.replay run under the operator keyed per window, listener, partition and request: record-policy listeners alone unless execute: true admits the execute ones; at most ten replays open at once; 404 for a listener no registration carries, 409 for a window that ends before it starts, a batch or debounced listener, an execute listener without the word, or the eleventh open replay.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0076 FP-027 (D06)","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"},"since":{"type":"string","description":"the ISO instant the rows occurred at or after (their own moment, occurredAt)"},"until":{"description":"the ISO instant the rows occurred before; absent, the moment of the request","type":"string"},"listener":{"description":"one listener's name, as the event page lists it: its event's rows alone, to it alone; absent, every row of the window to every listener the replay admits","type":"string","minLength":1},"partition":{"description":"one partition's rows alone; absent, every partition","type":"string","minLength":1,"maxLength":200},"execute":{"description":"true: execute-policy listeners run again too, by your own word; absent or false, record-policy listeners alone","type":"boolean"}},"required":["requestId","since"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the event.replay run"},"listener":{"description":"the listener named, null for every listener","type":["string","null"]},"partition":{"type":["string","null"]},"since":{"type":"string","description":"the window's start, as the key spells it"},"until":{"type":"string","description":"the window's end, as the key spells it"},"execute":{"type":"boolean"},"chunks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the chunks the run walked"},"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the window's delivered rows read over every chunk"},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the listener runs that ran (a run parked on a wait among them)"},"reused":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"of delivered, the runs found rather than started (an earlier attempt's or a resend's)"},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the listener runs that landed in limbo, each its own page's"},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the deliveries the replay did not admit: an execute listener without execute: true, a batch or debounced listener, a record listener on a relayed copy"}},"required":["ok","runId","listener","partition","since","until","execute","chunks","rows","delivered","reused","failed","skipped"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/events/reset":{"post":{"operationId":"console.events.reset","summary":"Resets many events under one request: the ids named, or with exhausted: true every head whose attempts reached the limit, one keyed event.reset run per row; ok when none failed; more ids than one request takes is refused.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0041 item 14","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"},"ids":{"description":"the event ids to reset, at most 500; an entry that is not a string is dropped; a value that is not a list reads as absent (the exhausted form)","type":"array","items":{}},"exhausted":{"description":"true: every exhausted head, up to limit; another value is not true","type":"boolean"},"limit":{"description":"the most exhausted heads taken, 1 to 500","type":["number","string"]}},"required":["requestId"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"requestId":{"type":"string"},"results":{"type":"array","items":{"$ref":"#/$defs/EventsResetRow"}},"reset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unchanged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reused":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"refused":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notFound":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inProgress":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the exhausted heads still on the board once the call landed (FW-046, API 2.104): the exhausted form takes at most BULK_RESET_MAX a call, so the answer says what remains"}},"required":["ok","requestId","results","reset","unchanged","reused","refused","notFound","inProgress","failed","remaining"],"additionalProperties":false,"$defs":{"EventsResetRow":{"type":"object","properties":{"outboxId":{"type":"string"},"status":{"type":"string","enum":["not_found","refused","completed","in_progress","failed","compensated","undone","waiting","continued"]},"runId":{"type":"string"},"changed":{"type":"boolean"},"reused":{"type":"boolean"},"error":{"type":"string"}},"required":["outboxId","status"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/events/{id}/dismiss":{"post":{"operationId":"console.event.dismiss","summary":"Takes an exhausted outbox row off the dispatcher's board with a reason as an event.dismiss run under the operator, so its partition moves again (the reset is the way back); the reason is cut at 500 characters; 404 for a row that is gone, 409 for a live row (reset or redeliver it), a delivered one or a cancelled one.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0041 amendment 2026-10-05","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the event's id"},"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"},"reason":{"description":"why the row will never deliver; cut at 500 characters","type":"string","minLength":1}},"required":["id","requestId","reason"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the event.dismiss run"},"outboxId":{"type":"string"},"event":{"type":"string"},"before":{"type":"object","properties":{"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]}},"required":["attempts","dismissedAt","dismissedBy","dismissReason"],"additionalProperties":false},"after":{"type":"object","properties":{"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dismissedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"dismissedBy":{"type":["string","null"]},"dismissReason":{"type":["string","null"]}},"required":["attempts","dismissedAt","dismissedBy","dismissReason"],"additionalProperties":false},"changed":{"type":"boolean"}},"required":["ok","runId","outboxId","event","before","after","changed"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/events/dismiss":{"post":{"operationId":"console.events.dismiss","summary":"Dismisses many exhausted events under one request and one reason: the ids named, one keyed event.dismiss run per row; ok when none failed; never the exhausted heads as a whole (each row is a judgement that it will never deliver); more ids than one request takes is refused.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0041 amendment 2026-10-05","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"},"ids":{"description":"the event ids to dismiss, at most 500; an entry that is not a string is dropped","type":"array","items":{}},"reason":{"description":"why the rows will never deliver; cut at 500 characters","type":"string","minLength":1}},"required":["requestId","reason"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"requestId":{"type":"string"},"results":{"type":"array","items":{"$ref":"#/$defs/EventsDismissRow"}},"dismissed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unchanged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reused":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"refused":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notFound":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inProgress":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ok","requestId","results","dismissed","unchanged","reused","refused","notFound","inProgress","failed"],"additionalProperties":false,"$defs":{"EventsDismissRow":{"type":"object","properties":{"outboxId":{"type":"string"},"status":{"type":"string","enum":["not_found","refused","completed","in_progress","failed","compensated","undone","waiting","continued"]},"runId":{"type":"string"},"changed":{"type":"boolean"},"reused":{"type":"boolean"},"error":{"type":"string"}},"required":["outboxId","status"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/issues/{signature}/resolve":{"post":{"operationId":"console.issue.resolve","summary":"Records a cause as fixed in a pull request or a sha, as an issue.resolve run keyed per signature and request writing the settings row issue.<signature>, with the other signatures the fix covers (also), a note and the runbook heading; a run of any signature of the set seen after the fix reads as recurring; a redrive after a death past the write answers the row as written; 400 for a signature that is not sixteen hex characters (the unsigned group is never resolved) or a missing fixedIn, 409 for an also, a note or a heading off its bound, a fixedIn, a note or a heading the stored policy would redact (a credential, an address), or when the row moved under the write.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0063 B11; ADR-0044 §3 and §4; FW-033","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"signature","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"signature":{"type":"string","pattern":"^[0-9a-f]{16}$","description":"the cause's signature, sixteen hex characters; the unsigned group cannot be resolved"},"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"},"fixedIn":{"description":"the pull request number or the sha, as text (`#123`, `a1b2c3d`); cut at 200 characters","type":"string","minLength":1},"also":{"description":"the other signatures the fix covers (FW-033; ADR-0044 §3: the same issue reworded), sixteen hex characters each, at most 8, never this cause's own; the set reads recurring as one","type":"array","items":{"type":"string"}},"note":{"description":"a line about the fix (FW-033), at most 500 characters","type":"string"},"runbook":{"description":"the runbook heading that answers the cause (FW-033; ADR-0044 §4's anchor), one line of at most 120 characters","type":"string"}},"required":["signature","requestId","fixedIn"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the issue.resolve run"},"cause":{"type":"string","description":"the cause's signature (named `cause` here: a stored field named `signature` is redacted by the policy)"},"fixedIn":{"type":"string"},"since":{"type":"string","description":"when the fix was recorded: the bound clock"},"build":{"description":"the build the fix shipped in; null until ADR-0063 B10","type":["string","null"]},"by":{"type":"string"},"also":{"type":"array","items":{"type":"string"},"description":"the other signatures the fix covers, as stored (FW-033)"},"note":{"description":"the note as stored (FW-033)","type":["string","null"]},"runbook":{"description":"the runbook heading as stored (FW-033)","type":["string","null"]},"before":{"anyOf":[{"$ref":"#/$defs/IssueFix"},{"type":"null"}],"description":"the fix that stood on the row before, or null for a cause first resolved"},"after":{"description":"the fix as written","$ref":"#/$defs/IssueFix"},"superseded":{"type":"boolean","description":"true when a fix stood before: this resolve replaced it"}},"required":["ok","runId","cause","fixedIn","since","build","by","also","note","runbook","before","after","superseded"],"additionalProperties":false,"$defs":{"IssueFix":{"type":"object","properties":{"fixedIn":{"type":"string","description":"the pull request number or the sha, as text (`#123`)"},"since":{"type":"string","description":"when the fix was recorded"},"build":{"description":"the build the resolve was recorded under (ADR-0063 B10: the deployment's commit at the write); null off a platform naming none and on a fix recorded before B10","type":["string","null"]},"by":{"type":"string","description":"the actor who recorded it"},"also":{"type":"array","items":{"type":"string"},"description":"the other signatures the fix covers (FW-033; ADR-0044 §3: a reworded cause is a new signature by design, and the set reads recurring as one), sorted, never this cause's own; on a cause borrowing another's fix, the set from this cause's view (the owner among them); [] on a fix recorded before FW-033"},"note":{"description":"a line about the fix (FW-033), or null","type":["string","null"]},"runbook":{"description":"the runbook heading that answers the cause (FW-033; ADR-0044 §4's anchor), or null","type":["string","null"]}},"required":["fixedIn","since","build","by","also","note","runbook"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/environments/{name}/ping":{"post":{"operationId":"console.environment.ping","summary":"Starts the host's relay.ping run under the operator, asking the named peer alone to answer; 202 with the ping; 409 relay off with no peer configured or no ping bound, 404 for a name that is not a configured peer.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0053 decision 5","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"the peer's name"}},"required":["name"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"pingId":{"type":"string"},"key":{"type":"string"},"runId":{"type":"string"}},"required":["pingId","key","runId"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/environments/{name}/backfill":{"post":{"operationId":"console.environment.backfill","summary":"Forgets the deliveries the peer acknowledged since a moment and re-marks the local facts they named unsent, to that peer alone (a fenced or set-aside row and a row another peer alone acknowledged stay marked; a member that never acknowledged a row is sent nothing), as a relay.backfill run keyed per peer, moment and request; 409 relay off with no peer, 409 for a since older than the unsent window.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0053 decision 5; ADR-0046 §H","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"the peer's name"},"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"},"since":{"type":"string","minLength":1,"description":"the ISO instant to backfill from"}},"required":["name","requestId","since"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the relay.backfill run"},"peer":{"type":"string"},"since":{"type":"string"},"deliveries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the delivery rows forgotten: the ones this peer acknowledged at or after since"},"facts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the local facts re-marked unsent: the rows those deliveries named, which travel again to this peer alone"},"before":{"type":"object","properties":{"deliveriesSince":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the peer's deliveries at or after since, before"},"markedSince":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the marked local facts this peer acknowledged at or after since, before"}},"required":["deliveriesSince","markedSince"],"additionalProperties":false},"after":{"type":"object","properties":{"deliveriesSince":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the peer's deliveries at or after since, after: none"},"markedSince":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the marked local facts this peer acknowledged at or after since, after: none"}},"required":["deliveriesSince","markedSince"],"additionalProperties":false}},"required":["ok","runId","peer","since","deliveries","facts","before","after"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/listeners/policy/reset":{"post":{"operationId":"console.listeners.policy.reset","summary":"Puts every flipped listener back to record, one keyed relay.policy.override run each under the request; 409 where the override itself is refused (a production or preview console).","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0053 decision 3","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"}},"required":["requestId"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"cleared":{"type":"array","items":{"type":"string"}},"failed":{"type":"array","items":{"type":"object","properties":{"listener":{"type":"string"},"error":{"type":"string"}},"required":["listener","error"],"additionalProperties":false}},"refused":{"type":"null"}},"required":["ok","cleared","failed","refused"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/listeners/{name}/policy":{"post":{"operationId":"console.listeners.policy","summary":"Flips one listener to execute on relayed copies for the local sandbox's session, or back to record, as a keyed relay.policy.override run; 404 for a listener the registry lacks, 409 unless this environment's policies read local.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0053 decision 3","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"the listener's name"},"requestId":{"type":"string","minLength":1,"description":"the action's idempotency key: a resend with the same id is the same run"},"policy":{"type":"string","enum":["execute","record"]}},"required":["name","requestId","policy"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"runId":{"type":"string","description":"the relay.policy.override run"},"listener":{"type":"string"},"policy":{"type":"string","enum":["execute","record"]},"before":{"type":"object","properties":{"policy":{"type":"string","enum":["execute","record"]}},"required":["policy"],"additionalProperties":false},"after":{"type":"object","properties":{"policy":{"type":"string","enum":["execute","record"]}},"required":["policy"],"additionalProperties":false},"changed":{"type":"boolean"}},"required":["ok","runId","listener","policy","before","after","changed"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}/steps":{"get":{"operationId":"console.run.steps","summary":"One run's step rows, a page at a time (ADR-0069 U46a): the run's walk when `attempt=` is absent (the newest row per memo key over every attempt, the review of FW-091: a memo hit inserts no row), that attempt's rows when named, `before=<seq>` the older page, `limit=` 1 to 200 (100 unless said) seqs, each row as runs/:id shapes it with its logs and `superseded`, `next` the older page's cursor or null, `total` the walk's or the attempt's rows; 404 for a run that is gone.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0069 U46a","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"},"attempt":{"description":"the attempt whose rows are read, a whole number from 1; absent, the run's walk (the newest row per memo key over every attempt, the review of FW-091)","type":"string"},"before":{"description":"the older page's cursor: the seq of the oldest row the page held (the rows strictly below it)","type":"string"},"limit":{"description":"rows, 1 to 200 (100 unless said); a whole number, more read as the most","type":"string"}},"required":["id"]},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"steps":{"type":"array","items":{"$ref":"#/$defs/RunStep"}},"next":{"description":"the older page's cursor: the seq of the oldest row served, passed back as before; null when every older row is here","type":["string","null"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the walk's step rows in all, or the attempt's when named"},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the attempt read: the named one, else the run's newest (the walk composes every attempt's rows)"}},"required":["steps","next","total","attempt"],"additionalProperties":false,"$defs":{"RunStep":{"type":"object","properties":{"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"stepId":{"description":"the step's stable identity (ADR-0051 §15); null on a step declared without one and on a row stored before the column","type":["string","null"]},"declared":{"anyOf":[{"$ref":"#/$defs/StepDeclaration"},{"type":"null"}],"description":"what the step declared (ADR-0060 decision 12): its undo, its reason, its effect and its id as the recorder stored them on the row; null on a row stored before schema version 12"},"status":{"$ref":"#/$defs/StepStatus"},"outcome":{"anyOf":[{"anyOf":[{"$ref":"#/$defs/StepOutcome"},{"type":"string"}]},{"type":"null"}]},"pending":{"anyOf":[{"type":"array","items":{"$ref":"#/$defs/PendingWrite"}},{"type":"null"}]},"wait":{"anyOf":[{"$ref":"#/$defs/RunWait"},{"type":"null"}]},"startedAt":{"type":"string","description":"an ISO instant"},"finishedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"durationMs":{"type":["number","null"]},"tookMs":{"description":"how long the row stood open, ms (ADR-0066 D12: finishedAt − startedAt, computed in the read model); null while the row is open","type":["number","null"]},"overMs":{"description":"on a step stamped FunctionKilled (ADR-0066 D07): how far past its deadline the reclaim came, ms, as the row's error text spells it (whole seconds); null on every other row","type":["number","null"]},"error":{"type":["string","null"]},"input":{},"output":{},"logs":{"anyOf":[{"type":"array","items":{"$ref":"#/$defs/LogLine"}},{"type":"null"}]},"errorCode":{"type":["string","null"]},"codecId":{"description":"the payload codec the row's values are sealed under (ADR-0063 B25): the bound codec's id at the write, null for values stored in clear and on rows stored before schema version 15; a value under an id this deployment does not bind reads `[encoded]`","type":["string","null"]},"remedy":{"description":"what to do about the step's errorCode (ADR-0060 decision 15: the host's row, else the engine's registry); null when the step did not fail or no table names the code","type":["string","null"]},"superseded":{"type":"boolean","description":"a newer row under the same memo key replaced this one (the review of FW-091, API 2.108): the recorder never consults it again; judged per row, never per attempt, since a memo hit inserts no row and an older attempt's served rows stand in the run's walk"}},"required":["attempt","seq","name","stepId","declared","status","outcome","pending","wait","startedAt","finishedAt","durationMs","tookMs","overMs","error","input","output","logs","errorCode","codecId","remedy","superseded"],"additionalProperties":false},"StepDeclaration":{"type":"object","properties":{"undo":{"type":"boolean","description":"whether the step carries a compensate (an undo)"},"irreversible":{"description":"the reason the step cannot undo; null when it can","type":["string","null"]},"effect":{"type":"string","enum":["read","ledgered","external","provider"],"description":"what the step does to the world (ADR-0041 item 31)"},"id":{"description":"the step's stable identity (ADR-0051 §15), null without one","type":["string","null"]},"retry":{"description":"the retry the step declared and the tries its row counted (ADR-0063 B03), with its resume word when declared \"park\" (LB-004); absent without one","type":"object","properties":{"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many times the body may run in all"},"tries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the tries the row counted, resumed after a crash"},"resume":{"description":"the policy's resume word when it is \"park\" (ADR-0063 B03 amendment 2026-10-10, LB-004: every next try on a fresh invocation after a retry park); absent for the inline default and on a row stored before the word","type":"string","const":"park"}},"required":["attempts","tries"],"additionalProperties":false},"timeoutMs":{"description":"the timeout the step declared, ms (ADR-0063 B03); absent without one","type":"number"},"needsMs":{"description":"the need the step declared, ms (ADR-0066 D06: what it must have left of the budget to start; 0 admitted); absent without one, when the engine assumes the kind's default: a plain step's min(STEP_NEEDS_DEFAULT_MS, timeoutMs), an external step's two calls (2 × (external.timeoutMs ?? externalCallTimeoutMs), FW-020)","type":"number"},"external":{"description":"the step is an external step (FW-020; ADR-0066 D06 as landed): the phases, a read and a write of one call each, whose default need is two calls; absent on a plain step (a recordedWrite inside one keeps the plain default) and on a row stored before the field","type":"object","properties":{"timeoutMs":{"description":"the spec's own per-call timeout, ms; absent for the provider's default (the contract's externalCallTimeoutMs)","type":"number"},"idempotent":{"type":"boolean","description":"the spec's retry.idempotent: a non-idempotent write is never retried and is reconciled from the world"}},"required":["idempotent"],"additionalProperties":false},"onFail":{"description":"the failure policy the step declared (ADR-0063 Appendix M U6): \"return\" when its failure is its value, the row then FAILED with the outcome TOLERATED; absent for the default (throw)","type":"string","const":"return"},"completion":{"description":"the completion policy the step declared (FP-011 as landed, ADR-0076 D05 (3) opt-in): \"behind\" when a read step's COMPLETED row rides the next boundary's statement or the finish (one statement a step; a crash between the body's return and that statement leaves the row STARTED and the next attempt re-invokes the read); absent for the default (\"now\": the row in its own statement before the body goes on, replayed after any crash) and on a row stored before the field","type":"string","const":"behind"},"services":{"description":"the services the step read through i.services (ADR-0063 Appendix M U4), by name, sorted; absent when it read none","type":"array","items":{"type":"string"}}},"required":["undo","irreversible","effect","id"],"additionalProperties":false},"StepStatus":{"type":"string","enum":["STARTED","COMPLETED","FAILED","COMPENSATED","WAITING"]},"StepOutcome":{"type":"string","enum":["COMPENSATED","COMPENSATION_FAILED","IRREVERSIBLE","FENCED","RECONCILED","TOLERATED"]},"PendingWrite":{"type":"object","properties":{"writeKey":{"type":"string"},"scope":{"type":"string","description":"the ledger partition"},"resourceType":{"type":"string"},"resourceId":{"type":"string"},"operation":{"type":"string"},"before":{},"after":{},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"string","description":"an ISO instant"}},"required":["writeKey","scope","resourceType","resourceId","operation","before","after","attempt","at"],"additionalProperties":false},"RunWait":{"type":"object","properties":{"id":{"type":"string"},"kind":{"$ref":"#/$defs/WaitKind"},"step":{"type":"string"},"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token":{"type":["string","null"]},"eventName":{"type":["string","null"]},"matchHash":{"type":["string","null"]},"childRunId":{"type":["string","null"]},"until":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"createdAt":{"type":"string","description":"an ISO instant"},"firedAt":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}]},"firedBy":{"anyOf":[{"$ref":"#/$defs/WaitFiredBy"},{"type":"null"}]},"payload":{},"batch":{"anyOf":[{"$ref":"#/$defs/RunWaitBatch"},{"type":"null"}],"description":"the batch a continue wait parked before a chunk (FW-046, API 2.104), read off the park step row; null on any other wait and on a park whose row is gone"},"join":{"anyOf":[{"$ref":"#/$defs/RunWaitJoin"},{"type":"null"}],"description":"the join's counters on a join wait (ADR-0076 FP-037, API 2.141: ctx.fanOut's park, the children started, not yet landed, failed and the failures tolerated); null on every other kind"}},"required":["id","kind","step","seq","attempt","token","eventName","matchHash","childRunId","until","createdAt","firedAt","firedBy","payload","batch","join"],"additionalProperties":false},"WaitKind":{"type":"string","enum":["timer","signal","child","continue","slot","rate","retry","hold","cancel","join"]},"WaitFiredBy":{"type":"string","enum":["timer","fact","signal","child","deadline","continue","slot","cancel","timeout","resume","landed","join"]},"RunWaitBatch":{"type":"object","properties":{"name":{"type":"string","description":"the batch's name"},"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the chunk the run continues at (0-based)"},"total":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"the chunk count, the array form's; null under the cursor form"}},"required":["name","index","total"],"additionalProperties":false},"RunWaitJoin":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children the fan-out started"},"remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children not yet landed (the join fires at 0)"},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the children landed FAILED or COMPENSATED"},"tolerated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the failures the join admits before it fires failed"}},"required":["total","remaining","failed","tolerated"],"additionalProperties":false},"LogLine":{"type":"object","properties":{"ts":{"type":"string","description":"an ISO instant"},"level":{"type":"string","enum":["debug","info","warn","error"]},"event":{"type":"string"},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["ts","level","event"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}/ledger":{"get":{"operationId":"console.run.ledger","summary":"One run's ledger rows, a page at a time (ADR-0069 U46a): `before=<seq>` the older page, `limit=` 1 to 200 (100 unless said), each row as runs/:id shapes it, `next` the older page's cursor or null, `total` the run's rows; 404 for a run that is gone.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0069 U46a","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"},"before":{"description":"the older page's cursor: the seq of the oldest row the page held (the rows strictly below it)","type":"string"},"limit":{"description":"rows, 1 to 200 (100 unless said); a whole number, more read as the most","type":"string"}},"required":["id"]},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"string"},"step":{"type":"string"},"resource":{"type":"string"},"operation":{"type":"string"},"before":{},"after":{},"reversesId":{"type":["string","null"]},"occurredAt":{"type":"string","description":"an ISO instant"},"codecId":{"description":"the payload codec the row's values are sealed under (ADR-0063 B25): the bound codec's id at the write, null for values stored in clear and on rows stored before schema version 15; a value under an id this deployment does not bind reads `[encoded]`","type":["string","null"]}},"required":["seq","step","resource","operation","before","after","reversesId","occurredAt","codecId"],"additionalProperties":false}},"next":{"description":"the older page's cursor: the seq of the oldest row served, passed back as before; null when every older row is here","type":["string","null"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the run's ledger rows in all"}},"required":["entries","next","total"],"additionalProperties":false}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}/query/{name}":{"get":{"operationId":"console.run.query","summary":"A declared query over the run's stored state (ADR-0076 FP-031; Temporal's Query): the registered definition's handler run here over WorkflowRun.state (the state as of the run's last step boundary or its landing, {} when none was written) with args= (JSON, optional), no row written and no run touched (one read of the run row); 404 for a run that is gone; 409 with the sentence for a query the definition does not declare, a handler that threw (its own sentence) or a workflow this deployment does not know.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0076 FP-031","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"},"name":{"type":"string","minLength":1,"maxLength":200,"description":"the query's name as the definition declares it"},"args":{"description":"the query's args as JSON; absent for a query that takes none","type":"string","maxLength":8000}},"required":["id","name"]},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/$defs/RunQueryAnswer","$defs":{"RunQueryAnswer":{"type":"object","properties":{"runId":{"type":"string"},"workflow":{"type":"string"},"query":{"type":"string"},"status":{"description":"the run's status at the read","$ref":"#/$defs/RunStatus"},"value":{"description":"the handler's answer over the stored state"}},"required":["runId","workflow","query","status","value"],"additionalProperties":false},"RunStatus":{"type":"string","enum":["RUNNING","COMPLETED","FAILED","COMPENSATED","UNDONE","WAITING","CONTINUED"]}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/runs/{id}/update/{name}":{"post":{"operationId":"console.run.update","summary":"A declared update of the run's state (ADR-0076 FP-031; Temporal's Update): the definition's validator run here over the stored state and refused 409 by name before any row (update.refused with the validator's sentence; update.landed for a COMPLETED, UNDONE or limbo run; update.open.max past ten landed and not yet applied; update.unknown); then one signal under updateId (a run.signal run keyed on the run, the token update and the id: a resend under the same id is the same run and the same fact), the body's ctx.updates() applying it at its next door as one step whose output is the value, and the request held for the value on the landings' channel (wait, the duration grammar, 20s at most and by default; a 500 ms poll where the store cannot listen): 200 applied with the value, 409 refused with the body's sentence when the door refused it, 202 in_flight when the wait ended first (ask again under the same id), 409 unapplied when the run landed without a door for it; 404 for a run that is gone.","tags":["console"],"x-scope":"deploy","x-console-scope":"write","x-console-api":"2.273","x-adr":"ADR-0076 FP-031","security":[{"apiKey":["deploy"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"the run's id"},"name":{"type":"string","minLength":1,"maxLength":200,"description":"the update's name as the definition declares it"},"updateId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"the update's id: the dedupe key (a resend under it is the same run and the same fact) and the key of its value"},"args":{"description":"the update's args, plain JSON; what validate and apply read"},"wait":{"description":"hold the answer for the value this long (the duration grammar), at most 20s a request and the default; 202 in_flight past it","type":"string"}},"required":["id","name","updateId"]}}}},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/$defs/RunUpdateAnswer","$defs":{"RunUpdateAnswer":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"status":{"type":"string","const":"applied"},"runId":{"type":"string"},"workflow":{"type":"string"},"update":{"type":"string"},"updateId":{"type":"string"},"value":{"description":"what apply answered, as the door's row holds it"},"at":{"anyOf":[{"type":"string","description":"an ISO instant"},{"type":"null"}],"description":"when the door's row landed"},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the attempt whose door applied it"},"signal":{"type":"object","properties":{"runId":{"type":"string","description":"the run.signal run that landed the update"},"buffered":{"type":"boolean","description":"whether the run was not parked on the token when the signal landed (the door applied it at its next call) rather than woken by it"},"reused":{"type":"boolean","description":"whether the same updateId had been sent before: the same run, no second fact"}},"required":["runId","buffered","reused"],"additionalProperties":false,"description":"the signal the update rode"}},"required":["ok","status","runId","workflow","update","updateId","value","at","attempt","signal"],"additionalProperties":false}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}},"/apps/{slug}/console/catalog/graph/impact":{"get":{"operationId":"console.catalog.graph.impact","summary":"The engine's half of a blast radius (ADR-0060 decision 14 as amended 2026-10-30, GR-014): for the modules named under modules= (a comma list of paths as the index spells them), the bodies whose own module or helper fold reaches one (by: module, through) and their forward hop over the deployment's graph, the one graph per window with the host's index held beside it: the doors admitting or handing them (after), the facts they emit with their listeners, the tables and columns their steps write or mutate raw, the providers they call, the refusals their steps answer and, counted apart under refusalsAtDoors, those only their doors judge (a door's catalogue whole), and the bodies the index never read; never the checkout's lists (the twins, the importers, the rules, the pages, the tests), which no deployment holds: the MCP's graph_impact and durable-sdk graph impact join them off graph-refs.json. Tagged (ETag, 304 on If-None-Match), bounded in bytes with its lists cut from the doors' catalogues inward and said under truncated; an empty or over-long list 400.","tags":["console"],"x-scope":"read","x-console-scope":"read","x-console-api":"2.273","x-adr":"ADR-0060 decision 14 (as amended 2026-10-30, GR-014); ADR-0076 FP-041 (the cuts)","security":[{"apiKey":["read"]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"x-query":{"type":"object","properties":{"modules":{"type":"string","maxLength":8000,"description":"a comma list of module paths as the index spells them (repository-relative, forward slashes: src/lib/invoices.ts, src/lib/orders.server.ts): the bodies whose own module or helper fold reaches one, and their forward hop; each read once, sorted; an empty list is refused"}},"required":["modules"]},"responses":{"200":{"description":"the app's answer, re-serialised","headers":{"X-Durable-Api":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}},"X-Durable-Truncated":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/$defs/GraphImpact","$defs":{"GraphImpact":{"type":"object","properties":{"modules":{"type":"array","items":{"type":"string"},"description":"the modules asked, each once, sorted"},"bodies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["workflow","listener"]},"why":{"type":"array","items":{"type":"object","properties":{"word":{"type":"string","enum":["module","through","writes"],"description":"module: the body's own module is one asked; through: its helper fold went through one; writes: it writes a table asked"},"of":{"type":"string"}},"required":["word","of"],"additionalProperties":false}},"site":{"anyOf":[{"$ref":"#/$defs/GraphImpactSite"},{"type":"null"}]}},"required":["id","kind","why","site"],"additionalProperties":false}},"doors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"body":{"type":"string"},"after":{"type":"boolean","description":"true where the door hands the body past its own answer (a starts edge under after: answer), false where it admits it"},"site":{"$ref":"#/$defs/GraphImpactSite"}},"required":["id","body","after","site"],"additionalProperties":false}},"facts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"by":{"type":"array","items":{"type":"string"}},"listeners":{"type":"array","items":{"type":"string"}}},"required":["id","by","listeners"],"additionalProperties":false}},"listeners":{"type":"array","items":{"type":"string"},"description":"the listeners on the facts the reached bodies emit"},"tables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"read":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"word":{"type":"string"}},"required":["module","word"],"additionalProperties":false}},"written":{"type":"array","items":{"type":"string"}}},"required":["id","read","written"],"additionalProperties":false}},"providers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"by":{"type":"array","items":{"type":"string"}}},"required":["id","by"],"additionalProperties":false}},"refusals":{"type":"array","items":{"$ref":"#/$defs/GraphImpactRefusal"},"description":"the refusals a reached step answers, and the doors judging the same"},"refusalsAtDoors":{"type":"array","items":{"$ref":"#/$defs/GraphImpactRefusal"},"description":"the refusals only the reached doors judge (a door's catalogue whole), none of the reached steps: counted apart"},"unindexed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the bodies of the graph the index never read"},"truncated":{"$ref":"#/$defs/GraphImpactTruncated"}},"required":["modules","bodies","doors","facts","listeners","tables","providers","refusals","refusalsAtDoors","unindexed","truncated"],"additionalProperties":false},"GraphImpactSite":{"type":"object","properties":{"module":{"type":"string"},"line":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["module","line"],"additionalProperties":false},"GraphImpactRefusal":{"type":"object","properties":{"id":{"type":"string"},"by":{"type":"array","items":{"type":"object","properties":{"by":{"type":"string"},"judged":{"type":["string","null"]}},"required":["by","judged"],"additionalProperties":false}}},"required":["id","by"],"additionalProperties":false},"GraphImpactTruncated":{"anyOf":[{"type":"object","properties":{"bodies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"doors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"facts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listeners":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tables":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"providers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"refusals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"refusalsAtDoors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bytes":{"type":"object","properties":{"before":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cut":{"type":"array","items":{"type":"string"}}},"required":["before","max","cut"],"additionalProperties":false}},"additionalProperties":false},{"type":"null"}]}}}}}},"400":{"description":"a refused value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"401":{"description":"no credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"403":{"description":"a scope short, or an origin refused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"404":{"description":"not under the tenant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"409":{"description":"a conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"422":{"description":"a validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"429":{"description":"a quota or a bucket","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"502":{"description":"the app's console redirected or answered no JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"503":{"description":"a provider down","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"seconds"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}},"504":{"description":"the app's console did not answer in time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaneError"}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"dsk_live_…","description":"An API key, or the dashboard's session under the same-origin rules."}},"schemas":{"PlaneError":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"remedy":{"type":"string"},"docs":{"type":"string"}},"required":["code","message","remedy","docs"]}},"required":["error"],"description":"PlaneError","additionalProperties":false}}},"x-console-api":{"version":"2.273","header":"X-Durable-Api"}}