{"openapi":"3.1.0","info":{"title":"Vingolin Workspace API","version":"1.0.0","description":"Workspace-scoped server API. Session writes require X-CSRF-Token. Bearer tokens are limited by membership, scopes, expiry, and revocation. Monetary values are integer IDR."},"servers":[{"url":"/"}],"paths":{"/api/v1/workspaces/{workspace}/projects/{project}/files":{"parameters":[{"name":"workspace","in":"path","required":true,"schema":{"type":"string","pattern":"^ws_[a-f0-9]{32}$"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","pattern":"^prj_[a-f0-9]{32}$"}}],"get":{"operationId":"readProjectFiles","security":[{"WorkspaceToken":[]},{"SessionCookie":[]}],"parameters":[{"name":"path","in":"query","description":"Optional exact relative file path to read; omitted requests return metadata only.","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"Private source metadata and optionally selected UTF-8 file","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"project_id":{"type":"string"},"project_name":{"type":"string"},"total_bytes":{"type":"integer"},"files":{"type":"array","maxItems":100,"items":{"type":"object","properties":{"path":{"type":"string"},"sha256":{"type":"string"},"bytes":{"type":"integer"}}}},"selected":{"type":["object","null"],"properties":{"path":{"type":"string"},"content":{"type":"string"},"sha256":{"type":"string"}}}}}}}}}},"401":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/workspaces/{workspace}/projects/{project}/archive":{"parameters":[{"name":"workspace","in":"path","required":true,"schema":{"type":"string","pattern":"^ws_[a-f0-9]{32}$"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","pattern":"^prj_[a-f0-9]{32}$"}}],"get":{"operationId":"downloadProjectArchive","security":[{"WorkspaceToken":[]},{"SessionCookie":[]}],"description":"Downloads a bounded snapshot of private source as ZIP. Does not clone an external repository or execute code. Empty projects return 409.","responses":{"200":{"description":"ZIP source snapshot","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/workspaces":{"get":{"operationId":"listWorkspaces","security":[{"SessionCookie":[]}],"responses":{"200":{"description":"Identity memberships","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Workspace"}}}}}}},"401":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/workspaces/{workspace}/read-model/{section}":{"parameters":[{"name":"workspace","in":"path","required":true,"schema":{"type":"string","pattern":"^ws_[a-f0-9]{32}$"}},{"name":"section","in":"path","required":true,"schema":{"type":"string","enum":["overview","projects","chat","runs","reviews","knowledge","usage","audit"]}}],"get":{"operationId":"readWorkspace","security":[{"WorkspaceToken":[]},{"SessionCookie":[]}],"description":"Role-filtered data. Usage includes worker_health only for owner/admin, without process IDs, host names, or other workspace identifiers.","parameters":[{"name":"q","in":"query","schema":{"type":"string","maxLength":150}},{"name":"page","in":"query","schema":{"type":"integer","minimum":1}},{"name":"conversation","in":"query","schema":{"type":"string"}},{"name":"run","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Role-filtered read model","content":{"application/json":{"schema":{"type":"object","required":["schema","data"],"properties":{"schema":{"const":"vingolin.workspace.v1"},"data":{"type":"object","properties":{"worker_health":{"$ref":"#/components/schemas/WorkerHealth"}},"additionalProperties":true}}}}}},"401":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/workspaces/{workspace}/commands":{"parameters":[{"name":"workspace","in":"path","required":true,"schema":{"type":"string","pattern":"^ws_[a-f0-9]{32}$"}}],"post":{"operationId":"executeCommand","security":[{"WorkspaceToken":[]},{"SessionCookie":[]}],"description":"Commands use the same permission and quota services as the web console. Idempotent mutations bind the key to workspace, actor and request content. Read the command schema for retry behavior. Workspace provisioning uses the authenticated web console.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"}},{"name":"X-CSRF-Token","in":"header","required":false,"description":"Required for session-authenticated writes.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Command"}}}},"responses":{"200":{"description":"Command result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"destination":{"type":"string"},"result":true}}}}}}},"401":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/workspaces/{workspace}/jobs/{job}":{"parameters":[{"name":"workspace","in":"path","required":true,"schema":{"type":"string","pattern":"^ws_[a-f0-9]{32}$"}},{"name":"job","in":"path","required":true,"schema":{"type":"string","pattern":"^job_[a-f0-9]{32}$"}}],"get":{"operationId":"readJob","security":[{"WorkspaceToken":[]},{"SessionCookie":[]}],"responses":{"200":{"description":"Job state without private input or lease credentials","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Job"}}}}}},"401":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/workspaces/{workspace}/jobs/{job}/events":{"parameters":[{"name":"workspace","in":"path","required":true,"schema":{"type":"string","pattern":"^ws_[a-f0-9]{32}$"}},{"name":"job","in":"path","required":true,"schema":{"type":"string","pattern":"^job_[a-f0-9]{32}$"}}],"get":{"operationId":"jobEvents","security":[{"WorkspaceToken":[]},{"SessionCookie":[]}],"description":"Bounded SSE state, delta and done events. Provider deltas are emitted only after the configured gateway transport validates the event stream; reconnect using Last-Event-ID. Each connection is bounded to 8 seconds.","parameters":[{"name":"Last-Event-ID","in":"header","schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"Job event stream","content":{"text/event-stream":{"schema":{"type":"string"}}}},"401":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/billing/qrisbill/webhook":{"post":{"operationId":"qrisbillWebhook","security":[],"description":"Authenticated Qrisbill delivery. A verified matching invoice is required before any entitlement or credit changes.","parameters":[{"name":"X-Qrisbill-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Qrisbill-Delivery","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Qrisbill-Timestamp","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Verified delivery accepted","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"accepted"}}}}}},"403":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"WorkspaceToken":{"type":"http","scheme":"bearer","bearerFormat":"vg_<64 hex characters>"},"SessionCookie":{"type":"apiKey","in":"cookie","name":"VINEXELSESSID","description":"Actual project session cookie name follows runtime configuration."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}}}},"Workspace":{"type":"object","required":["workspace_id","name","role"],"properties":{"workspace_id":{"type":"string"},"name":{"type":"string"},"role":{"enum":["owner","admin","developer","viewer"]}}},"Job":{"type":"object","required":["job_id","state","kind"],"properties":{"job_id":{"type":"string"},"state":{"type":"string"},"kind":{"type":"string"},"error_code":{"type":["string","null"]},"result_json":{"type":"string"}}},"WorkerHealth":{"type":"object","required":["state","active","accepting","heartbeat_at"],"additionalProperties":false,"properties":{"state":{"enum":["ready","draining","unavailable"]},"active":{"type":"integer","minimum":0},"accepting":{"type":"integer","minimum":0},"heartbeat_at":{"type":["string","null"],"description":"Latest live worker heartbeat as a UTC database timestamp."}}},"Command":{"oneOf":[{"type":"object","title":"workspace.settings","description":"Permission: owner.","required":["action","name","budget_monthly"],"properties":{"action":{"const":"workspace.settings"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"name":{"type":"string","maxLength":150},"budget_monthly":{"type":"integer","minimum":0,"maximum":1000000}},"additionalProperties":false},{"type":"object","title":"member.change","description":"Permission: owner/admin; admin cannot grant admin or transfer ownership.","required":["action","email","role","operation"],"properties":{"action":{"const":"member.change"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"email":{"type":"string","format":"email"},"role":{"enum":["admin","developer","viewer"]},"operation":{"enum":["save","remove","transfer"]}},"additionalProperties":false},{"type":"object","title":"project.save","description":"Permission: owner/admin/developer; edits require current version.","required":["action","name"],"properties":{"action":{"const":"project.save"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"name":{"type":"string","maxLength":150},"project_id":{"type":"string","maxLength":80},"description":{"type":"string","maxLength":2000},"instructions":{"type":"string","maxLength":12000},"repository":{"type":"string","maxLength":500},"environment":{"enum":["development","staging","production"]},"version":{"type":"integer","minimum":0}},"additionalProperties":false},{"type":"object","title":"project.archive","description":"Permission: owner/admin.","required":["action","project_id"],"properties":{"action":{"const":"project.archive"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"project_id":{"type":"string","maxLength":80}},"additionalProperties":false},{"type":"object","title":"project.source","description":"Permission: owner/admin/developer; creates a manual proposal run; owner/admin explicit changes queue application, developer changes await review; replay returns the same run.","required":["action","project_id","path","operation"],"properties":{"action":{"const":"project.source"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"project_id":{"type":"string","maxLength":80},"path":{"type":"string","maxLength":200},"content":{"type":"string","maxLength":100000,"description":"UTF-8; maximum 100000 bytes. Empty for deletion."},"base_sha256":{"type":["string","null"],"pattern":"^(?:[a-f0-9]{64})?$","description":"Current digest required for existing files; empty/null for a new file."},"operation":{"enum":["write","delete"]}},"additionalProperties":false},{"type":"object","title":"knowledge.save","description":"Permission: owner/admin/developer; edits require current version.","required":["action","title","body"],"properties":{"action":{"const":"knowledge.save"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"knowledge_id":{"type":"string","maxLength":80},"title":{"type":"string","maxLength":180},"body":{"type":"string","maxLength":50000},"source_url":{"type":"string","maxLength":1000},"kind":{"enum":["document","memory"]},"version":{"type":"integer","minimum":0}},"additionalProperties":false},{"type":"object","title":"knowledge.delete","description":"Permission: owner/admin/developer.","required":["action","knowledge_id"],"properties":{"action":{"const":"knowledge.delete"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"knowledge_id":{"type":"string","maxLength":80}},"additionalProperties":false},{"type":"object","title":"chat.create","description":"Permission: owner/admin/developer.","required":["action"],"properties":{"action":{"const":"chat.create"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"title":{"type":"string","maxLength":180},"project_id":{"type":"string","maxLength":80},"model":{"enum":["fast","balanced","advanced"]}},"additionalProperties":false},{"type":"object","title":"chat.send","description":"Permission: owner/admin/developer.","required":["action","conversation_id","content"],"properties":{"action":{"const":"chat.send"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"conversation_id":{"type":"string","maxLength":80},"content":{"type":"string","maxLength":12000}},"additionalProperties":false},{"type":"object","title":"chat.update","description":"Permission: owner/admin/developer.","required":["action","conversation_id","operation"],"properties":{"action":{"const":"chat.update"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"conversation_id":{"type":"string","maxLength":80},"operation":{"enum":["rename","archive"]},"title":{"type":"string","maxLength":180}},"additionalProperties":false},{"type":"object","title":"attachment.remove","description":"Permission: owner/admin/developer.","required":["action","attachment_id"],"properties":{"action":{"const":"attachment.remove"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"attachment_id":{"type":"string","maxLength":80},"conversation_id":{"type":"string","maxLength":80}},"additionalProperties":false},{"type":"object","title":"run.create","description":"Permission: owner/admin/developer.","required":["action","title","goal","project_id"],"properties":{"action":{"const":"run.create"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"title":{"type":"string","maxLength":180},"goal":{"type":"string","maxLength":16000},"project_id":{"type":"string","maxLength":80},"model":{"enum":["fast","balanced","advanced"]}},"additionalProperties":false},{"type":"object","title":"run.review","description":"Permission: owner/admin.","required":["action","run_id","decision","notes"],"properties":{"action":{"const":"run.review"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"run_id":{"type":"string","maxLength":80},"decision":{"enum":["approved","rejected"]},"notes":{"type":"string","maxLength":4000}},"additionalProperties":false},{"type":"object","title":"run.comment","description":"Permission: owner/admin/developer.","required":["action","run_id","body"],"properties":{"action":{"const":"run.comment"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"run_id":{"type":"string","maxLength":80},"body":{"type":"string","maxLength":6000}},"additionalProperties":false},{"type":"object","title":"job.cancel","description":"Permission: owner/admin/developer.","required":["action","job_id"],"properties":{"action":{"const":"job.cancel"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"job_id":{"type":"string","maxLength":80}},"additionalProperties":false},{"type":"object","title":"job.reconcile","description":"Permission: owner.","required":["action","job_id","charge","reason"],"properties":{"action":{"const":"job.reconcile"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"job_id":{"type":"string","maxLength":80},"charge":{"enum":["yes","no"]},"reason":{"type":"string","maxLength":2000},"file_resolution":{"enum":["inspect","close"],"default":"inspect","description":"For apply jobs, inspect actual file digests; close explicitly preserves current files and cancels the run without replay or rollback. Local jobs cannot charge AI credits."}},"additionalProperties":false},{"type":"object","title":"token.create","description":"Permission: owner/admin/developer; secret returned once; replay is rejected.","required":["action","label","scopes","days"],"properties":{"action":{"const":"token.create"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"label":{"type":"string","maxLength":100},"scopes":{"type":"array","minItems":1,"uniqueItems":true,"items":{"enum":["workspace.read","workspace.write"]}},"days":{"type":"integer","minimum":1,"maximum":90}},"additionalProperties":false},{"type":"object","title":"token.revoke","description":"Permission: token owner or owner/admin.","required":["action","token_id"],"properties":{"action":{"const":"token.revoke"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"token_id":{"type":"string","maxLength":80}},"additionalProperties":false},{"type":"object","title":"billing.order","description":"Permission: owner.","required":["action","kind","selection","catalog_version"],"properties":{"action":{"const":"billing.order"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"kind":{"enum":["subscription","credits"]},"selection":{"enum":["pro","team","credits-100"]},"catalog_version":{"const":"2026-10-28.v1"}},"additionalProperties":false},{"type":"object","title":"billing.checkout","description":"Permission: owner; gateway checkout uses order ID as idempotency key.","required":["action","order_id"],"properties":{"action":{"const":"billing.checkout"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"order_id":{"type":"string","maxLength":80}},"additionalProperties":false},{"type":"object","title":"billing.reconcile","description":"Permission: owner; repeats reconcile verified payment state.","required":["action","order_id"],"properties":{"action":{"const":"billing.reconcile"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"order_id":{"type":"string","maxLength":80}},"additionalProperties":false},{"type":"object","title":"billing.cancel","description":"Permission: owner; omitted order ID ends subscription at period end.","required":["action"],"properties":{"action":{"const":"billing.cancel"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"order_id":{"type":"string","maxLength":80}},"additionalProperties":false},{"type":"object","title":"integration.bind","description":"Permission: owner/admin.","required":["action","provider","endpoint","credential_ref"],"properties":{"action":{"const":"integration.bind"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"provider":{"const":"avaread"},"endpoint":{"type":"string","format":"uri","description":"Exact API endpoint approved by the server operator for this credential and target workspace."},"credential_ref":{"type":"string","pattern":"^VINGOLIN_INTEGRATION_[A-Z0-9_]{1,64}$","description":"Server secret reference authorized for this workspace; never the bearer value."}},"additionalProperties":false},{"type":"object","title":"integration.disconnect","description":"Permission: owner/admin.","required":["action","provider"],"properties":{"action":{"const":"integration.disconnect"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"provider":{"const":"avaread"}},"additionalProperties":false},{"type":"object","title":"integration.import","description":"Permission: owner/admin; imports a snapshot; retries return the original snapshot; use a new key to import a newer source revision.","required":["action","source_workspace","document_id"],"properties":{"action":{"const":"integration.import"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"source_workspace":{"type":"string","maxLength":80},"document_id":{"type":"string","maxLength":80}},"additionalProperties":false},{"type":"object","title":"run.cancel","description":"Permission: owner/admin/developer.","required":["action","run_id"],"properties":{"action":{"const":"run.cancel"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"run_id":{"type":"string","maxLength":80}},"additionalProperties":false},{"type":"object","title":"run.retry","description":"Permission: owner/admin/developer.","required":["action","run_id"],"properties":{"action":{"const":"run.retry"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"run_id":{"type":"string","maxLength":80}},"additionalProperties":false},{"type":"object","title":"run.apply","description":"Permission: owner/admin.","required":["action","run_id"],"properties":{"action":{"const":"run.apply"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"run_id":{"type":"string","maxLength":80}},"additionalProperties":false},{"type":"object","title":"run.test","description":"Permission: owner/admin; approval binds execution to a snapshot digest; no custom shell/image arguments.","required":["action","run_id"],"properties":{"action":{"const":"run.test"},"workspace_id":{"type":"string","maxLength":80},"command_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$"},"run_id":{"type":"string","maxLength":80},"profile":{"type":"string","enum":["php-syntax","php-tests","go-tests","node-tests"],"default":"php-syntax"}},"additionalProperties":false}]}}}}