{"openapi":"3.1.0","info":{"title":"Nore","version":"0.1.0"},"servers":[{"url":"/api/v1"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"responses":{"Error":{"description":"Structured error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}},"paths":{"/workspace":{"get":{"summary":"Get current workspace","parameters":[],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/dashboard":{"get":{"summary":"Read persisted workspace metrics","parameters":[],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/openapi":{"get":{"summary":"Read this OpenAPI document","security":[],"parameters":[],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/test-library":{"get":{"summary":"List versioned benchmark scenarios","security":[],"parameters":[],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/agents":{"get":{"summary":"List agents","parameters":[{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"offset","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"summary":"Register an agent","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100},"description":{"default":"","type":"string","maxLength":1500},"kind":{"type":"string","enum":["sandbox","http","mcp","trace"]},"chainId":{"anyOf":[{"type":"number","const":4663},{"type":"number","const":46630}]},"endpoint":{"type":"string","maxLength":700,"format":"uri"},"secret":{"type":"string","pattern":"^[\\x21-\\x7e]{1,500}$"},"stepTool":{"type":"string","pattern":"^[a-zA-Z0-9_.-]{1,80}$"},"tools":{"default":["read_context","propose_transaction"],"maxItems":40,"type":"array","items":{"type":"string","pattern":"^[a-zA-Z0-9_.-]{1,80}$"}},"approved":{"default":false,"type":"boolean"},"profile":{"default":"reference","type":"string","enum":["reference","regression"]},"trace":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"maxItems":12,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"tool"},"call":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-zA-Z0-9_.-]{1,80}$"},"arguments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["name","arguments"],"additionalProperties":false}},"required":["type","call"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"final"},"outcome":{"type":"string","enum":["completed","refused","handled-error"]},"reasonCode":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,79}$"},"message":{"type":"string","maxLength":2000}},"required":["type","outcome"],"additionalProperties":false}]}}}},"required":["name","kind","chainId"],"additionalProperties":false}}}},"responses":{"201":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/agents/{id}":{"get":{"summary":"Get agent by ID or slug","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"put":{"summary":"Add an agent version","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100},"description":{"default":"","type":"string","maxLength":1500},"kind":{"type":"string","enum":["sandbox","http","mcp","trace"]},"chainId":{"anyOf":[{"type":"number","const":4663},{"type":"number","const":46630}]},"endpoint":{"type":"string","maxLength":700,"format":"uri"},"secret":{"type":"string","pattern":"^[\\x21-\\x7e]{1,500}$"},"stepTool":{"type":"string","pattern":"^[a-zA-Z0-9_.-]{1,80}$"},"tools":{"default":["read_context","propose_transaction"],"maxItems":40,"type":"array","items":{"type":"string","pattern":"^[a-zA-Z0-9_.-]{1,80}$"}},"approved":{"default":false,"type":"boolean"},"profile":{"default":"reference","type":"string","enum":["reference","regression"]},"trace":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{"maxItems":12,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"tool"},"call":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-zA-Z0-9_.-]{1,80}$"},"arguments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["name","arguments"],"additionalProperties":false}},"required":["type","call"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"final"},"outcome":{"type":"string","enum":["completed","refused","handled-error"]},"reasonCode":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,79}$"},"message":{"type":"string","maxLength":2000}},"required":["type","outcome"],"additionalProperties":false}]}}}},"required":["name","kind","chainId"],"additionalProperties":false}}}},"responses":{"201":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/agents/{id}/discover":{"post":{"summary":"Queue MCP tool discovery","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/suites":{"get":{"summary":"List suites","parameters":[{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"offset","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"summary":"Create a suite","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100},"description":{"default":"","type":"string","maxLength":1500},"agentId":{"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)$"},"chainId":{"anyOf":[{"type":"number","const":4663},{"type":"number","const":46630}]},"mode":{"type":"string","enum":["MOCK","LOCAL_FORK","TESTNET","REMOTE_SIMULATION"]},"selected":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","maxLength":80}},"policyId":{"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)$"},"timeout":{"default":30,"type":"integer","minimum":5,"maximum":180},"retries":{"default":0,"type":"integer","minimum":0,"maximum":2},"published":{"default":false,"type":"boolean"},"assertions":{"default":[],"maxItems":3,"type":"array","items":{"type":"string","enum":["NO_POLICY_BLOCKS","NO_UNEXPECTED_TOOL","NO_UNSUPPORTED"]}},"profile":{"default":"default","type":"string","maxLength":80},"block":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"}},"required":["name","agentId","chainId","mode","selected"],"additionalProperties":false}}}},"responses":{"201":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/suites/{id}":{"get":{"summary":"Get suite and version history","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"put":{"summary":"Save a new suite version","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100},"description":{"default":"","type":"string","maxLength":1500},"agentId":{"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)$"},"chainId":{"anyOf":[{"type":"number","const":4663},{"type":"number","const":46630}]},"mode":{"type":"string","enum":["MOCK","LOCAL_FORK","TESTNET","REMOTE_SIMULATION"]},"selected":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","maxLength":80}},"policyId":{"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)$"},"timeout":{"default":30,"type":"integer","minimum":5,"maximum":180},"retries":{"default":0,"type":"integer","minimum":0,"maximum":2},"published":{"default":false,"type":"boolean"},"assertions":{"default":[],"maxItems":3,"type":"array","items":{"type":"string","enum":["NO_POLICY_BLOCKS","NO_UNEXPECTED_TOOL","NO_UNSUPPORTED"]}},"profile":{"default":"default","type":"string","maxLength":80},"block":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"}},"required":["name","agentId","chainId","mode","selected"],"additionalProperties":false}}}},"responses":{"201":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/runs":{"get":{"summary":"List runs","parameters":[{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"offset","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"summary":"Queue a published suite","parameters":[{"name":"Idempotency-Key","in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"agent":{"type":"string","minLength":1,"maxLength":100},"suite":{"type":"string","minLength":1,"maxLength":100},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["suite"],"additionalProperties":false}}}},"responses":{"202":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/runs/{id}":{"get":{"summary":"Get run state","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/runs/{id}/cancel":{"post":{"summary":"Cancel a run","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/runs/{id}/events":{"get":{"summary":"Poll trace events","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"after","in":"query","schema":{"type":"integer"}},{"name":"limit","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/traces/{id}":{"get":{"summary":"Get sanitized trace evidence","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"after","in":"query","schema":{"type":"integer"}},{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"kind","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/reports":{"get":{"summary":"List generated reports","parameters":[{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"offset","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/reports/{id}":{"get":{"summary":"Get report document","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/reports/{id}/share":{"post":{"summary":"Create a revocable report-summary link","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/shares/{id}":{"delete":{"summary":"Revoke a report link","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/share/{id}":{"get":{"summary":"Get a shared summary","security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/policies":{"get":{"summary":"List policies","parameters":[{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"offset","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"summary":"Create an active policy","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"default":"","type":"string","maxLength":1000},"chains":{"minItems":1,"maxItems":2,"type":"array","items":{"anyOf":[{"type":"number","const":4663},{"type":"number","const":46630}]}},"senders":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"contracts":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"selectors":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","pattern":"^0x[0-9a-f]{8}$"}},"recipients":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"tools":{"maxItems":40,"type":"array","items":{"type":"string","pattern":"^[a-zA-Z0-9_.-]{1,80}$"}},"forbidden":{"default":["approve","transferFrom"],"maxItems":5,"type":"array","items":{"type":"string","enum":["native","transfer","transferFrom","approve","read"]}},"maxValue":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"dailyValue":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"maxGasCost":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"maxSlippageBps":{"type":"integer","minimum":0,"maximum":10000},"tokens":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"decimals":{"type":"integer","minimum":0,"maximum":36},"max":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"daily":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"}},"required":["address","decimals","max","daily"],"additionalProperties":false}},"onViolation":{"default":"DENY","type":"string","enum":["DENY","WARN","REQUIRE_REVIEW"]},"severity":{"default":"HIGH","type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL"]}},"required":["name","chains","tools","maxValue","dailyValue"],"additionalProperties":false}}}},"responses":{"201":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/policies/{id}":{"get":{"summary":"Get policy and versions","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"put":{"summary":"Create and activate a policy version","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"default":"","type":"string","maxLength":1000},"chains":{"minItems":1,"maxItems":2,"type":"array","items":{"anyOf":[{"type":"number","const":4663},{"type":"number","const":46630}]}},"senders":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"contracts":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"selectors":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","pattern":"^0x[0-9a-f]{8}$"}},"recipients":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"tools":{"maxItems":40,"type":"array","items":{"type":"string","pattern":"^[a-zA-Z0-9_.-]{1,80}$"}},"forbidden":{"default":["approve","transferFrom"],"maxItems":5,"type":"array","items":{"type":"string","enum":["native","transfer","transferFrom","approve","read"]}},"maxValue":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"dailyValue":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"maxGasCost":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"maxSlippageBps":{"type":"integer","minimum":0,"maximum":10000},"tokens":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"decimals":{"type":"integer","minimum":0,"maximum":36},"max":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"daily":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"}},"required":["address","decimals","max","daily"],"additionalProperties":false}},"onViolation":{"default":"DENY","type":"string","enum":["DENY","WARN","REQUIRE_REVIEW"]},"severity":{"default":"HIGH","type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL"]}},"required":["name","chains","tools","maxValue","dailyValue"],"additionalProperties":false}}}},"responses":{"201":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/policies/{id}/activate":{"post":{"summary":"Activate a historical policy version","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["version"]}}}},"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/policies/test":{"post":{"summary":"Evaluate an unsigned proposal with a draft policy","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"policy":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"default":"","type":"string","maxLength":1000},"chains":{"minItems":1,"maxItems":2,"type":"array","items":{"anyOf":[{"type":"number","const":4663},{"type":"number","const":46630}]}},"senders":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"contracts":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"selectors":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","pattern":"^0x[0-9a-f]{8}$"}},"recipients":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"tools":{"maxItems":40,"type":"array","items":{"type":"string","pattern":"^[a-zA-Z0-9_.-]{1,80}$"}},"forbidden":{"default":["approve","transferFrom"],"maxItems":5,"type":"array","items":{"type":"string","enum":["native","transfer","transferFrom","approve","read"]}},"maxValue":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"dailyValue":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"maxGasCost":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"maxSlippageBps":{"type":"integer","minimum":0,"maximum":10000},"tokens":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"decimals":{"type":"integer","minimum":0,"maximum":36},"max":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"daily":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"}},"required":["address","decimals","max","daily"],"additionalProperties":false}},"onViolation":{"default":"DENY","type":"string","enum":["DENY","WARN","REQUIRE_REVIEW"]},"severity":{"default":"HIGH","type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL"]}},"required":["name","chains","tools","maxValue","dailyValue"],"additionalProperties":false},"name":{"type":"string"},"proposal":{}},"required":["policy","name","proposal"]}}}},"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/api-keys":{"get":{"summary":"List API keys as a workspace owner","parameters":[],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"summary":"Create a scoped API key","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["read","runs:write","config:write"]}}},"required":["name","scopes"]}}}},"responses":{"201":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/api-keys/{id}":{"delete":{"summary":"Revoke an API key","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/webhooks":{"get":{"summary":"List webhook destinations","parameters":[],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"summary":"Register a signed webhook destination","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"]}}}},"responses":{"201":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/webhooks/{id}":{"delete":{"summary":"Disable a webhook","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/schedules":{"get":{"summary":"List scheduled evaluations","parameters":[],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"summary":"Schedule a published suite","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"suiteId":{"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)$"},"minutes":{"type":"integer","minimum":15,"maximum":10080}},"required":["suiteId","minutes"]}}}},"responses":{"201":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/schedules/{id}":{"delete":{"summary":"Disable a scheduled evaluation","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/simulations":{"get":{"summary":"List simulation jobs and evidence","parameters":[{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"offset","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}},"post":{"summary":"Queue a read-only or local fork simulation","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mode":{"type":"string","enum":["RPC","LOCAL_FORK"]},"proposal":{"type":"object","properties":{"chainId":{"anyOf":[{"type":"number","const":4663},{"type":"number","const":46630}]},"from":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"value":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"data":{"type":"string","maxLength":8194,"pattern":"^0x(?:[0-9a-fA-F]{2})*$"},"gas":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"maxFeePerGas":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"intentId":{"type":"string","minLength":1,"maxLength":80},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"quote":{"type":"object","properties":{"expectedOut":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"minimumOut":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"}},"required":["expectedOut","minimumOut"],"additionalProperties":false}},"required":["chainId","from","to","value","data"],"additionalProperties":false},"block":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$"},"stateful":{"default":false,"type":"boolean"},"expected":{"type":"string","enum":["SUCCESS","REVERT"]}},"required":["mode","proposal"],"additionalProperties":false}}}},"responses":{"202":{"description":"Nore data envelope","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}}}}