ONE thread:list-sealed
← Receivers

thread:list-sealed

thread family

Read your own Sealed notes a page at a time, with no thread id to know: the armored blocks only, for you to open on your own machine (`oneie read`). Members of the workspace only. The answer says when it is short: `older` + `nextCursor`, or on an `after` read `newer` + `newerCursor`.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
member
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/thread:list-sealed \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "workspace": <string>, "agent": <string>, "limit": <number>, "before": <string> }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • workspace string optional Whose Sealed notes: your workspace (default: the workspace your key or session acts in).
  • agent string optional An agent's OWN inbox in that workspace. Only the agent itself may read it (its own key): its owner and other agents are refused `not_the_agent`, because an owner reads an agent's notes only as a reader the agent added.
  • limit number optional Messages per page. Default 50, max 200.
  • before string optional `<ts>~<id>` cursor — the nextCursor of the previous page.
  • after string optional `<ts>~<id>` cursor — only notes newer than it (what arrived since the last read).

Response

What comes back from the call.

  • ok boolean
  • workspace string
  • threadId string | null null = no note has ever arrived.
  • notes object[]
  • skipped number Messages on this page that were not one sealed block (left out).
  • older boolean
  • nextCursor string
  • newer boolean
  • newerCursor string
  • limit number
  • agent string Set on an agent's own inbox.
  • error string sign_in_required · bad_workspace · bad_agent · not_the_agent · forbidden · authority_undetermined · no_db

Traffic

Every call to thread:list-sealed, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names thread:list-sealed, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 1
  • one.ie/web/src/lib/receiver-index.generated.ts:480
CLI 1
  • packages/cli/src/read.ts:123
→

Answered by

thread:list-sealed one.ie/web/src/lib/resolvers/sealed.ts:179 Dispatched through POST /api/ask/thread:list-sealed, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Whose Sealed notes: your workspace (default: the workspace your key or session acts in).",
      "type": "string",
      "minLength": 1,
      "maxLength": 63
    },
    "agent": {
      "description": "An agent's OWN inbox in that workspace. Only the agent itself may read it (its own key): its owner and other agents are refused `not_the_agent`, because an owner reads an agent's notes only as a reader the agent added.",
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "limit": {
      "description": "Messages per page. Default 50, max 200.",
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    },
    "before": {
      "description": "`<ts>~<id>` cursor — the nextCursor of the previous page.",
      "type": "string"
    },
    "after": {
      "description": "`<ts>~<id>` cursor — only notes newer than it (what arrived since the last read).",
      "type": "string"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "workspace": {
      "type": "string"
    },
    "threadId": {
      "description": "null = no note has ever arrived.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "at": {
            "type": "number",
            "description": "The row's raw ts — the cursor unit."
          },
          "sealed": {
            "type": "string",
            "description": "The armored age block, exactly as stored."
          },
          "sender": {
            "description": "The door's label ('Sam (not verified)', 'Someone with your lock') — never proof.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "at",
          "sealed"
        ]
      }
    },
    "skipped": {
      "description": "Messages on this page that were not one sealed block (left out).",
      "type": "number"
    },
    "older": {
      "type": "boolean"
    },
    "nextCursor": {
      "type": "string"
    },
    "newer": {
      "type": "boolean"
    },
    "newerCursor": {
      "type": "string"
    },
    "limit": {
      "type": "number"
    },
    "agent": {
      "description": "Set on an agent's own inbox.",
      "type": "string"
    },
    "error": {
      "description": "sign_in_required · bad_workspace · bad_agent · not_the_agent · forbidden · authority_undetermined · no_db",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}