{"openapi": "3.1.0", "info": {"title": "Zeq machine", "version": "5.83.1", "x-zeq-api": 1, "description": "One machine, its owner's. Within an API version, routes and fields are only ever added. Errors are {refused: why}."}, "components": {"securitySchemes": {"bearer": {"type": "http", "scheme": "bearer", "description": "the owner's zeq_owner_ key, or a zeq_key_ key the owner issued with a scope"}}}, "paths": {"/record": {"get": {"summary": "the machine's genesis record", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/log": {"get": {"summary": "the signed history of what it computed; ?after=N for the rows after the first N, ?limit=M for up to 250 of them (100 when not given)", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/feed": {"get": {"summary": "the log as RSS 2.0", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/endpoints": {"get": {"summary": "this catalog of the machine's routes", "security": [], "responses": {"200": {"description": "ok"}}}}, "/pulse": {"get": {"summary": "server-sent events, one per Zeqond: zeqond, phase, R_t; ?n= to stop after n", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/shelf": {"get": {"summary": "the door's vocabulary: identities, fields, units", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/verify": {"post": {"summary": "what /ask returned, or {sealed: it, record?} -> {verified, by, reproduction}: a sealed answer against this machine's record, or another machine's against its public record, computed again here", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "description": "what /ask returned, or {sealed: it, record: the public record of the machine that sealed it, when not this one}"}}}}}}, "/ask": {"post": {"summary": "{question} -> a sealed answer, signed into the log; Authorization: Bearer zeq_owner_...", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["question"], "properties": {"question": {"type": "string", "description": "target ? equations | symbol = value unit, ..."}}}}}}}}, "/mcp": {"post": {"summary": "Model Context Protocol, JSON-RPC 2.0: initialize, tools/list, tools/call", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "description": "one JSON-RPC 2.0 request: initialize, tools/list, tools/call"}}}}}}, "/card": {"get": {"summary": "this machine's card: its public record and the key a parcel for it is sealed to", "security": [], "responses": {"200": {"description": "ok"}}}}, "/inbox": {"post": {"summary": "a parcel sealed to this machine by --share, delivered with a drop key its owner gave; kept 0600, opened only here", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "drop", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "description": "one ZEQ-PARCEL-v1 made by --share"}}}}}}, "/health": {"get": {"summary": "liveness for a load balancer: ok, the version and the API version", "security": [], "responses": {"200": {"description": "ok"}}}}, "/openapi.json": {"get": {"summary": "this API as OpenAPI 3.1: every route, its scope and its body, so a UI or an agent in any language is generated from it", "security": [], "responses": {"200": {"description": "ok"}}}}, "/ui": {"get": {"summary": "the skins here, carried and installed, by name", "security": [], "responses": {"200": {"description": "ok"}}}}, "/ui/{name}/": {"get": {"summary": "a skin's files, served only while they hash to their signed manifest, sandboxed so it talks to this machine alone", "security": [], "responses": {"200": {"description": "ok"}}}}, "/handoff": {"post": {"summary": "{token} -> a skin's own key, once: a token --console or --ui mints for 60 s, so no key rides a browser's address or command line", "security": [], "responses": {"200": {"description": "ok"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["token"], "properties": {"token": {"type": "string", "description": "the one-time token --console or --ui put after #once="}}}}}}}}, "/metrics": {"get": {"summary": "Prometheus text: requests by route and status, uptime, log rows and live keys, in aggregate", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/keys": {"get": {"summary": "the key table: names, scopes, prefixes and expiry; for an admin key", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}, "post": {"summary": "{name, scope, days} -> a new key, shown once; for an admin key, so a directory bridge manages keys from outside", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["name"], "properties": {"name": {"type": "string"}, "scope": {"enum": ["drop", "read", "write", "admin"]}, "days": {"type": "integer"}}}}}}}}, "/keys/revoke": {"post": {"summary": "{prefix} -> revoked, refused at its next request; for an admin key", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["prefix"], "properties": {"prefix": {"type": "string"}}}}}}}}, "/coverage": {"get": {"summary": "every branch: what this file computes there, from which equations, and the extensions named for it", "security": [], "responses": {"200": {"description": "ok"}}}}, "/catalogue": {"get": {"summary": "what this file computes and offers a builder, counted from the file", "security": [], "responses": {"200": {"description": "ok"}}}}, "/find": {"get": {"summary": "?q=WORDS -> identities on the shelf by name or meaning, and the named extensions a term points to", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/anchor": {"get": {"summary": "the machine's signed anchor of its log: its row count and newest link; keep it, and the log can later be checked whole against it", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/title": {"get": {"summary": "the machine's title: the certificate of its birth, self-issued or minted by its foundation, its serial and standing, and where the machine is", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/apps": {"get": {"summary": "the applications born on this machine: each one's ZID, key and name, countersigned by the machine, issued once in its log", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}, "post": {"summary": "{name} -> an application born on this machine, its record signed into the log, and a write key of its own shown once; for an admin key", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["name"], "properties": {"name": {"type": "string", "description": "the application's name on this machine: lower case letters, digits, _ and -"}}}}}}}}, "/clips": {"post": {"summary": "{\"name\", \"sha256\" and \"bytes\" | \"text\" | \"base64\", \"source\"?, \"cites\"?} -> the clip stamped: its hash signed into the log, the payload never kept", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}, "get": {"summary": "every clip of the log, every stamp among them: its id, Zeqond, name, sha256, length, source and the clips it cites", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/clips/{id}": {"get": {"summary": "one clip's evidence graph: the clips it rests on, walked from the log, and held or what is wrong", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/clips/{id}/check": {"post": {"summary": "{\"text\" | \"base64\" | \"sha256\"} -> whether that payload is the one the clip stamped; nothing kept", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/rpn": {"post": {"summary": "{\"keys\": [...]} -> the stack, every arithmetic key a question at the door with the units carried; nothing sealed", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/contracts": {"get": {"summary": "the contracts this machine runs: each one's name, state, fires and definition hash", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}, "post": {"summary": "{definition} -> the contract deployed, its definition hash pinned", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/contracts/{id}": {"get": {"summary": "one contract: its definition, state and the chain of its fires, checked", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/contracts/{id}/pause": {"post": {"summary": "stop the contract's timed fires until it is resumed; a manual fire still runs", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/contracts/{id}/resume": {"post": {"summary": "timed fires again, the next slot set from now", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/contracts/{id}/skip-next": {"post": {"summary": "pass over the next timed fire, up to 100 ahead", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/contracts/{id}/fire": {"post": {"summary": "{to, input, dry_run} -> fired, won't_fire, refused or tampered, with why", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/nearby": {"get": {"summary": "Nearby on this machine: open to everyone or to paired machines, its ports, the offers and pairings waiting for the owner, its paired machines", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}, "post": {"summary": "{\"answer\": ID, \"accept\": true|false} | {\"everyone\": SECONDS} | {\"contacts\": true} -> the owner's word on an offer or a pairing, or who may reach the machine", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/tour": {"post": {"summary": "the demonstration computed now, each answer sealed by this machine into its log, against the value the proof pins: the owner's, since it signs a row for every question", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/children": {"get": {"summary": "the machines this one issued, from its signed log: index, ZID, slug, and whether each is here", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/elapsed": {"get": {"summary": "this machine's spine: every seal, each checked against its record and the seal before", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/elapsed/verify": {"post": {"summary": "{seal, record, before} -> whether the seal is that machine's and its time is real, in under 0.01 s", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/events": {"post": {"summary": "{\"events\": [hit, ...]} or {\"event\": hit} -> the hits appended hash-linked at this Zeqond, sealed at the tick", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}, "get": {"summary": "the hits from ?after=N, 250 at most, as they are on disk", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/events/verify": {"get": {"summary": "the file replayed against every signed tick: events, sealed, pending, and held or what is wrong", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/hitev4/capabilities": {"get": {"summary": "the machine a vault page talks to, its exact timebase and what a certificate is", "security": [], "responses": {"200": {"description": "ok"}}}}, "/hitev4/certify": {"post": {"summary": "{question, payload_sha256} -> a certificate binding the file's SHA-256 to an answer sealed now, signed and logged", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/hitev4/inspect": {"post": {"summary": "{vault: base64} -> its header, its Ed25519 and ML-DSA-65 signatures and its certificate checked here", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/notebook": {"get": {"summary": "every application's moves on this machine, in the log's order, each a signed row at its Zeqond; ?app=NAME for one application's", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/playground": {"post": {"summary": "{question} -> the answer as the door gives it, for anyone, five an hour per address; nothing sealed", "security": [], "responses": {"200": {"description": "ok"}}}}, "/repo": {"get": {"summary": "the repositories by name: created, commits, files, bytes, tree and head; never a file's content", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}, "post": {"summary": "{name} -> the repository created, commit 0 signed into the log", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/repo/{name}": {"get": {"summary": "one repository's tree: each file's path, size, sha256 and Zeqond, with its head", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/repo/{name}/file": {"get": {"summary": "one file by ?path=, opened as it was committed", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/repo/{name}/commit": {"post": {"summary": "{message, files: [{path, text or base64}], delete: [path]} -> one commit: the files sealed, a signed row of the log with the tree, the parent and the message", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/repo/{name}/log": {"get": {"summary": "the repository's commits from the log alone, in order, with the chain's verdict", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/repo/{name}/deploy": {"post": {"summary": "the repository deployed as a skin of this machine from its index.html: packed and signed by the machine, installed with a key of its own, served at /ui/NAME/; deployed again, replaced", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/repo/{name}/drop": {"post": {"summary": "the repository removed, by a signed row of the log; its commits stay in the log", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/vault": {"get": {"summary": "the vault's entries by name: when each was put, its size and expiry; never a value", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}, "post": {"summary": "{name, text or base64, expires_in_zeqonds} -> the entry sealed in the vault", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/vault/{name}": {"get": {"summary": "one entry's value, opened only as it was sealed and before its expiry; for an admin key", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/vault/{name}/drop": {"post": {"summary": "an entry removed from the vault, by a signed row of the log", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/connect": {"get": {"summary": "the catalogue of services: how each is authorized, where it answers, what is set and whether it is connected; never a value", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/connect/{name}/set": {"post": {"summary": "{client_id, client_secret} or {key}, and base where the catalogue names none: sealed in the connect store", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/connect/{name}/start": {"post": {"summary": "{redirect_uri, scope} -> the address to open to authorize the service, valid 600 s", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/connect/callback": {"get": {"summary": "where the service sends the browser back: the state of an authorization this machine began, once, and its code", "security": [], "responses": {"200": {"description": "ok"}}}}, "/connect/{name}/call": {"post": {"summary": "{method, path, body, headers, form} -> the service's answer, its credential added here; a body goes as JSON, or as a form when form is true; the call a signed row", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/connect/{name}/drop": {"post": {"summary": "everything kept for a service removed, each by a signed row", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/export": {"post": {"summary": "{sealed, record?, lang} -> the envelope, verified and computed again, as code in python, javascript or c; the snippet's sha256 signed into the log", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/reactors": {"post": {"summary": "{definition: {question, initial, transition, guards}} -> a reactor whose solver is the door", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}, "get": {"summary": "every reactor this machine holds: id, status, steps, deployed_z and its last output", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/reactors/{id}/close": {"post": {"summary": "stop an active reactor; it takes no more steps and the close is signed into the log", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/reactors/{id}": {"get": {"summary": "one reactor: its definition, status and every sealed step, their links checked", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/reactors/{id}/step": {"post": {"summary": "{env} -> the next step, asked, sealed, linked and gated", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/skills": {"get": {"summary": "the skills kept in the skills repository, by name", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}, "post": {"summary": "{name, domains} -> the skill made from the shelf and committed to the skills repository", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/skills/{name}": {"get": {"summary": "one skill's page", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/reach": {"get": {"summary": "what reach adds: the second catalogue's names, and every service defined or imported on this machine with its map size, hook and events; never a token", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/reach/define": {"post": {"summary": "{name, auth_mode, proxy_base_url?, authorization_url?, token_url?, key_header|key_query|key_path?, key_prefix?, headers?, zeq_use?} -> a service in the catalogue, by a signed row", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/reach/{name}/import": {"post": {"summary": "{url} or {document}, entry? laid over it -> the service read from its OpenAPI document into the catalogue, its operations mapped", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/reach/{name}/map": {"get": {"summary": "the operations the service's document named; ?q= narrows them", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/reach/{name}/forget": {"post": {"summary": "a service defined here removed with everything connect kept for it, each by a signed row", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/reach/{name}/hook/new": {"post": {"summary": "{sig?: {scheme: hex|prefixed|stripe|slack, header, secret}} -> a hook address for the service's events, its token shown once; with sig every event's signature is checked over its raw bytes", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/reach/{name}/hook": {"post": {"summary": "where the service sends its events, with the hook's token in the query and, when the hook was made with sig, its signature in the header: each a signed row and kept 128 deep", "security": [], "responses": {"200": {"description": "ok"}}}}, "/reach/trust": {"post": {"summary": "{record, role: author | attester} -> a machine trusted here to sign or attest definitions on the shelf, by a signed row", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}, "get": {"summary": "the authors and attesters trusted here, by ZID", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/reach/{name}/shelf": {"post": {"summary": "{url} | {shelf, name} | {document}, trust_author? -> a signed definition from the shelf verified and, for a service, placed in the catalogue at tier S (attested) or T (trusted author)", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/reach/sign": {"post": {"summary": "{name, kind: service | connection, definition, note?} -> the definition signed by this machine as its author, to publish on a shelf", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/reach/attest": {"post": {"summary": "{document} -> this machine's attestation over a signed definition, to publish beside it", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/reach/{name}/events": {"get": {"summary": "the events the service sent to its hook, newest last, each with its sha256 and Zeqond", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/connections": {"get": {"summary": "every connection defined here: its kind, where it reaches, whether a session is open; the kinds and stub languages the module offers; never a secret", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/connections/define": {"post": {"summary": "{name, kind: process|tcp|udp|socket|serial|mqtt|modbus, ...} -> a connection defined, by a signed row", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/connections/{name}/shelf": {"post": {"summary": "{url} | {shelf, name} | {document}, trust_author? -> a connection definition signed on the shelf, verified through reach (tier S attested, T trusted author) and defined here", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/connections/{name}/secret": {"post": {"summary": "{secret} -> the one secret a connection may need (a broker's password), sealed in this module's vault", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/connections/{name}/forget": {"post": {"summary": "the definition, its secret and any open session gone, by signed rows", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "admin"}}, "/connections/{name}/run": {"post": {"summary": "a process run once with the body on its standard input, its file hashed first -> stdout, exit, hashes; a signed row", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/connections/{name}/send": {"post": {"summary": "{data|hex|json, until?, max_bytes?, reply?} on a tcp or udp definition -> the reply; a signed row", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/connections/{name}/open": {"post": {"summary": "a framed session opened to a socket definition (an engine, a simulation)", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/connections/{name}/frame": {"post": {"summary": "one JSON frame on the open session -> the reply; chained and sealed once a Zeqond", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/connections/{name}/close": {"post": {"summary": "the session closed; what was not yet sealed, sealed", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/connections/{name}/serial": {"post": {"summary": "{data|hex, until?, max_bytes?} to a serial definition -> the reply; a signed row", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/connections/{name}/publish": {"post": {"summary": "{topic, data|json, qos?, retain?} to an mqtt definition; a signed row", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/connections/{name}/subscribe": {"post": {"summary": "{topics} on an mqtt definition: a subscription held open, messages chained and sealed once a Zeqond", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/connections/{name}/messages": {"get": {"summary": "the last 128 messages of an open subscription and the chain's root", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}, "/connections/{name}/modbus": {"post": {"summary": "{read: {fc, address, count}} or {write: {address, values}} on a modbus definition; a signed row", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "write"}}, "/connections/stub": {"get": {"summary": "?lang=python|javascript|csharp|cpp|gdscript|c -> a client for this machine in that language, written from its own API", "security": [{"bearer": []}], "responses": {"200": {"description": "ok"}, "401": {"description": "no key, a wrong one, a revoked or an expired one"}, "403": {"description": "a key whose scope does not reach"}}, "x-zeq-scope": "read"}}}}