← Receivers

shop:go-live

shop family

Switch a store to LIVE money on card and crypto together. Refuses, writing nothing, until every gap is closed — live_connect (a Stripe Connect account the live key confirms can charge), mainnet_treasury (a well-formed payout address), confirmed_prices (the owner confirmed every active price), live_keys (the platform's live Stripe pair) — and names each one still open. Owner-only.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
owner
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/shop:go-live \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "workspace": "kiln" }}'

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 Which store. NOT an authority claim — the attested caller must control it (callerControlsWorkspace). Absent = the caller's own.
  • slug string optional Alias of `workspace`.

Response

What comes back from the call.

  • ok boolean TRUE when the store is live (now, or already).
  • workspace string
  • live_at number Unix seconds the store went live.
  • already boolean The store was already live; nothing was written.
  • error string `forbidden` · `no_db` · `no_store` · `not_ready` (a gap is open) · `changed` (the store moved while switching; nothing was written).
  • missing live_connect | mainnet_treasury | confirmed_prices | live_keys[] Every gap still open, by name.
  • detail string One line naming each gap and what is missing — never a key, never an address.

Traffic

Every call to shop:go-live, 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 shop:go-live, 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 2
  • one.ie/web/src/lib/receiver-index.generated.ts:316
  • one.ie/web/src/lib/resolvers/storefront/shop-live.ts:11
→

Answered by

shop:go-live one.ie/web/src/lib/resolvers/commerce.ts:909 Dispatched through POST /api/ask/shop:go-live, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Which store. NOT an authority claim — the attested caller must control it (callerControlsWorkspace). Absent = the caller's own.",
      "type": "string"
    },
    "slug": {
      "description": "Alias of `workspace`.",
      "type": "string"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "description": "TRUE when the store is live (now, or already)."
    },
    "workspace": {
      "type": "string"
    },
    "live_at": {
      "description": "Unix seconds the store went live.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "already": {
      "description": "The store was already live; nothing was written.",
      "type": "boolean"
    },
    "error": {
      "description": "`forbidden` · `no_db` · `no_store` · `not_ready` (a gap is open) · `changed` (the store moved while switching; nothing was written).",
      "type": "string"
    },
    "missing": {
      "description": "Every gap still open, by name.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "live_connect",
          "mainnet_treasury",
          "confirmed_prices",
          "live_keys"
        ]
      }
    },
    "detail": {
      "description": "One line naming each gap and what is missing — never a key, never an address.",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}