Message reference
Every OCP 1.0 message and core object, generated from the normative Zod contracts. Message tables show the payload fields (the envelope {v, id, type, ts, sid?, replyTo?} is common to all). Each links to its machine-readable JSON Schema.
Messages
| Field | Type | Req. | Constraints |
|---|
| actionId | string | ✓ | len 10–64 |
| tool | string | ✓ | |
| input | object | ✓ | |
| turnId | string | | |
| Field | Type | Req. | Constraints |
|---|
| actionId | string | ✓ | |
| ok | boolean | ✓ | |
| output | any | | |
| error | string | | len 0–500 |
| Field | Type | Req. | Constraints |
|---|
| rev | integer | ✓ | ≥ 0 |
| url | string | | len 0–2048 |
| resource | object | | |
| selection | object | | |
| view | object | | |
| Field | Type | Req. | Constraints |
|---|
| code | "AUTH_EXPIRED" | "SCOPE_DENIED" | "RATE_LIMITED" | "NONCE_USED" | "SESSION_GONE" | "TURN_ABORTED" | "CONTEXT_TOO_LARGE" | "PAIR_DENIED" | "UNSUPPORTED" | "INTERNAL" | ✓ | |
| message | string | ✓ | len 0–500 |
| retryable | boolean | ✓ | |
| details | object | | |
| Field | Type | Req. | Constraints |
|---|
| claimId | string | ✓ | |
| device | object | ✓ | |
| expiresAt | integer | ✓ | |
| Field | Type | Req. | Constraints |
|---|
| claimId | string | ✓ | |
| approved | boolean | ✓ | |
| Field | Type | Req. | Constraints |
|---|
| device | object | ✓ | |
| scopes | string[] | ✓ | |
| tier | "t0" | "t1" | "t2" | ✓ | |
| Field | Type | Req. | Constraints |
|---|
| by | "surface" | "hub" | "admin" | ✓ | |
| Field | Type | Req. | Constraints |
|---|
| reason | "surface_gone" | "revoked" | "ttl_idle" | "ttl_absolute" | "error" | "user" | ✓ | |
| Field | Type | Req. | Constraints |
|---|
| sid | string | ✓ | |
| capabilities | object | ✓ | |
| tier | "t0" | "t1" | "t2" | ✓ | |
| scopes | string[] | ✓ | |
| resumeKey | string | | |
| Field | Type | Req. | Constraints |
|---|
| capabilities | object | ✓ | |
| resumeKey | string | | len 16–256 |
| Field | Type | Req. | Constraints |
|---|
| token | string | ✓ | len 20–∞ |
| expiresIn | integer | ✓ | |
| Field | Type | Req. | Constraints |
|---|
| peer | "surface" | "companion" | ✓ | |
| Field | Type | Req. | Constraints |
|---|
| peer | "surface" | "companion" | ✓ | |
| graceMs | integer | ✓ | |
| Field | Type | Req. | Constraints |
|---|
| tools | object[] | ✓ | |
| Field | Type | Req. | Constraints |
|---|
| turnId | string | ✓ | |
| Field | Type | Req. | Constraints |
|---|
| turnId | string | ✓ | |
| index | integer | ✓ | |
| resource | object | ✓ | |
| quote | string | | len 0–500 |
| Field | Type | Req. | Constraints |
|---|
| turnId | string | ✓ | |
| text | string | ✓ | |
| Field | Type | Req. | Constraints |
|---|
| turnId | string | ✓ | |
| contextRev | integer | | ≥ 0 |
| usage | object | | |
| Field | Type | Req. | Constraints |
|---|
| turnId | string | ✓ | |
| code | "TURN_ABORTED" | "RATE_LIMITED" | "SCOPE_DENIED" | "INTERNAL" | ✓ | |
| message | string | ✓ | len 0–500 |
| Field | Type | Req. | Constraints |
|---|
| turnId | string | ✓ | len 10–64 |
| text | string | | len 1–8000 |
| audioRef | string | | len 0–512 |
| lang | string | | len 2–35 |
| Field | Type | Req. | Constraints |
|---|
| requestId | string | ✓ | len 10–64 |
| kind | "confirm" | "choice" | "notice" | ✓ | |
| title | string | ✓ | len 0–200 |
| body | string | | len 0–2000 |
| options | object[] | | |
| expiresAt | integer | ✓ | |
| actionId | string | | |
| Field | Type | Req. | Constraints |
|---|
| requestId | string | ✓ | |
| result | string | ✓ | len 0–64 |
| peer | "surface" | "companion" | ✓ | |
Core objects
| Field | Type | Req. | Constraints |
|---|
| profiles | object[] | ✓ | |
| stt | "device" | "hub" | "none" | | |
| tts | "device" | "hub" | "none" | | |
| locales | string[] | | |
| audio | boolean | | |
| tools | boolean | | |
| Field | Type | Req. | Constraints |
|---|
| rev | integer | ✓ | ≥ 0 |
| url | string | | len 0–2048 |
| resource | object | | |
| selection | object | | |
| view | object | | |
| Field | Type | Req. | Constraints |
|---|
| siteKey | string | ✓ | len 1–128 |
| hub | string | ✓ | uri |
| allowedOrigins | string[] | | |
| Field | Type | Req. | Constraints |
|---|
| v | string | ✓ | |
| id | string | ✓ | len 10–64 |
| type | string | ✓ | len 1–64 |
| ts | integer | ✓ | |
| sid | string | | len 16–128 |
| replyTo | string | | len 10–64 |
| payload | any | | |
| Field | Type | Req. | Constraints |
|---|
| code | "AUTH_EXPIRED" | "SCOPE_DENIED" | "RATE_LIMITED" | "NONCE_USED" | "SESSION_GONE" | "TURN_ABORTED" | "CONTEXT_TOO_LARGE" | "PAIR_DENIED" | "UNSUPPORTED" | "INTERNAL" | ✓ | |
| message | string | ✓ | len 0–500 |
| retryable | boolean | ✓ | |
| details | object | | |
| Field | Type | Req. | Constraints |
|---|
| jws | string | ✓ | len 20–∞ |
| devicePubKey | object | ✓ | |
| attestation | string | | |
| device | object | ✓ | |
| Field | Type | Req. | Constraints |
|---|
| v | string | ✓ | |
| iss | string | ✓ | uri |
| sid | string | ✓ | len 22–∞ |
| nonce | string | ✓ | len 22–∞ |
| exp | integer | ✓ | |
| iat | integer | ✓ | |
| cap | string | ✓ | uri |
| Field | Type | Req. | Constraints |
|---|
| name | "core" | "embed" | "companion" | "provider" | ✓ | |
| version | string | ✓ | |
| Field | Type | Req. | Constraints |
|---|
| kind | string | ✓ | len 1–64 |
| id | string | ✓ | len 1–256 |
| title | string | | len 0–500 |
| Field | Type | Req. | Constraints |
|---|
| name | string | ✓ | len 1–128 |
| description | string | ✓ | len 0–1000 |
| inputSchema | object | ✓ | |
| location | "hub" | "surface" | ✓ | |
| write | boolean | | |
| Field | Type | Req. | Constraints |
|---|
| ocp | object | ✓ | |
| issuer | string | ✓ | uri |
| jwks_uri | string | ✓ | uri |
| ws_endpoint | string | ✓ | uri |
| profiles | object[] | ✓ | |