ONE preview:go-live
← Receivers

preview:go-live

preview family

The owner's one tap on an agent-built shop's preview: claims it, confirms the facts the agent held, sets the Sui payout to the signed-in person's OWN address, confirms the prices, sends the invites they ticked, and — only when their verified email is on the company's domain — puts USDC on Sui mainnet (cards stay in test), pays the pending credits once and lists the shop. Without that proof the shop stays in test mode and out of search, and the answer says how to prove the domain. Requires a key or passkey sign-in; a second tap moves nothing.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_workspace
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
no
This cannot be undone. Dry-run it first where the contract allows.
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/preview:go-live \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "token": <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.

  • token string required The preview token from /preview/<token> — names the shop; the signed-in person is the authority
  • pick number[] optional Indexes into the invite list the preview shows — the people and agents the owner ticked. Each is sent once

Response

What comes back from the call.

  • ok boolean
  • error string sign_in_required · person_required (an agent key or a service) · key_required (a backup sign-in) · invalid_or_expired · not_an_agent_signup · claimed_by_someone_else · still_building · build_failed · review_open · payout_unreadable · payout_set_elsewhere · no_price · prices_unconfirmed · confirm_failed · go_live_failed
  • next string What the person does next, in plain words
  • workspace string
  • live object
  • needs "domain_proof" Present when the domain is not proven: the shop is claimed and set up but stays on test money
  • steps object[]
  • storeUrl string
  • productUrl string | null
  • listing listed | unlisted
  • invites object[] An agent's key comes back here once, to the owner
  • creditsPaid number

Traffic

Every call to preview: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 preview: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

UI 1
  • one.ie/web/src/components/claim/TapToLive.tsx:6
API route 2
  • one.ie/web/src/lib/agent-signup/go-live.ts:153
  • one.ie/web/src/lib/receiver-index.generated.ts:360
→

Answered by

preview:go-live one.ie/web/src/lib/resolvers/movers-funnel.ts:517 Dispatched through POST /api/ask/preview:go-live, after the envelope validates the payload.

preview family · 1 more

JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "description": "The preview token from /preview/<token> — names the shop; the signed-in person is the authority"
    },
    "pick": {
      "description": "Indexes into the invite list the preview shows — the people and agents the owner ticked. Each is sent once",
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      }
    }
  },
  "required": [
    "token"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "error": {
      "description": "sign_in_required · person_required (an agent key or a service) · key_required (a backup sign-in) · invalid_or_expired · not_an_agent_signup · claimed_by_someone_else · still_building · build_failed · review_open · payout_unreadable · payout_set_elsewhere · no_price · prices_unconfirmed · confirm_failed · go_live_failed",
      "type": "string"
    },
    "next": {
      "description": "What the person does next, in plain words",
      "type": "string"
    },
    "workspace": {
      "type": "string"
    },
    "live": {
      "type": "object",
      "properties": {
        "crypto": {
          "type": "string",
          "enum": [
            "mainnet",
            "test"
          ]
        },
        "card": {
          "type": "string",
          "const": "test"
        }
      },
      "required": [
        "crypto",
        "card"
      ]
    },
    "needs": {
      "description": "Present when the domain is not proven: the shop is claimed and set up but stays on test money",
      "type": "string",
      "const": "domain_proof"
    },
    "steps": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "step": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "done",
              "already",
              "skipped",
              "held",
              "failed"
            ]
          },
          "error": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        },
        "required": [
          "step",
          "status"
        ]
      }
    },
    "storeUrl": {
      "type": "string"
    },
    "productUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "listing": {
      "type": "string",
      "enum": [
        "listed",
        "unlisted"
      ]
    },
    "invites": {
      "description": "An agent's key comes back here once, to the owner",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "person",
              "agent"
            ]
          },
          "status": {
            "type": "string"
          },
          "aid": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "to",
          "kind",
          "status"
        ]
      }
    },
    "creditsPaid": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "ok",
    "steps"
  ]
}