run402-mcp 4.17.8 → 4.17.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/identity-format.js +1 -1
- package/dist/identity-format.js.map +1 -1
- package/package.json +8 -7
- package/sdk/README.md +5 -5
- package/sdk/dist/namespaces/buzz.types.d.ts +38 -2
- package/sdk/dist/namespaces/buzz.types.d.ts.map +1 -1
- package/sdk/dist/namespaces/identity-links.types.d.ts +34 -4
- package/sdk/dist/namespaces/identity-links.types.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -370,11 +370,11 @@ const p = await r.project(project.project_id);
|
|
|
370
370
|
await p.assets.put("hello.txt", { content: "hi" });
|
|
371
371
|
```
|
|
372
372
|
|
|
373
|
-
The SDK is organised into focused namespaces: `actions` (Node recursive action runner), `pay` (bounded arbitrary-URL x402 buyer), `projects`, `snapshots`, `branches`, `archives`, `assets`, `cache`, `ci`, `sites`, `functions`, `jobs`, `secrets`, `subdomains`, `domains`, `email` (+ `webhooks`), `senderDomain`, `auth`, `apps`, `tier`, `billing`, `contracts`, `ai`, `allowance`, `service`, `admin`, `operator` (the human/email operator session: browser-delegated `login` + `overview` across every wallet that verified your email), `wallets` (signed server-side wallet label), `orgs` (org-owned control plane + `r.org(id)` sub-client), `grants` (per-project capability grants), and `identityLinks` (public
|
|
373
|
+
The SDK is organised into focused namespaces: `actions` (Node recursive action runner), `pay` (bounded arbitrary-URL x402 buyer), `projects`, `snapshots`, `branches`, `archives`, `assets`, `cache`, `ci`, `sites`, `functions`, `jobs`, `secrets`, `subdomains`, `domains`, `email` (+ `webhooks`), `senderDomain`, `auth`, `apps`, `tier`, `billing`, `contracts`, `ai`, `allowance`, `service`, `admin`, `operator` (the human/email operator session: browser-delegated `login` + `overview` across every wallet that verified your email), `wallets` (signed server-side wallet label), `orgs` (org-owned control plane + `r.org(id)` sub-client), `grants` (per-project capability grants), and `identityLinks` (public, protocol-discriminated human/agent Nostr attribution), plus the `r.project(id).apply` hero for atomic mixed writes (release slices + assets slice via `/apply/v1/*`). Every operation throws a typed `Run402Error` subclass on failure: `PaymentRequired`, `PaymentBuyerError`, `ProjectNotFound`, `Unauthorized`, `ApiError`, `NetworkError`, `LocalError`, `Run402DeployError`. `apply()` automatically re-plans safe current-base `BASE_RELEASE_CONFLICT` races and emits `apply.retry` progress events. See [`sdk/README.md`](./sdk/README.md).
|
|
374
374
|
|
|
375
|
-
## Buzz/Nostr
|
|
375
|
+
## Buzz/Nostr identity links
|
|
376
376
|
|
|
377
|
-
|
|
377
|
+
Humans and agents can publicly attribute separately held Buzz/Nostr identities to their Run402 principal. Agent links use the EOA-plus-kind-1 protocol; human links use a normal browser, fresh passkey, and released Buzz consent ceremony at <https://console.run402.com/identity-links/connect>. Both produce the same public `idlnk_…` resource shape with a discriminating `proof_protocol`. One principal may have several active Nostr subjects, while one active Nostr subject belongs to only one principal. This is attribution only: Nostr identities never authenticate, authorize, pay, deploy, or receive transfers. Run402 never accepts or derives from an `nsec`, Nostr private key, mnemonic, seed, passkey, session credential, or derivation path.
|
|
378
378
|
|
|
379
379
|
The human-facing install is a Buzz message—no terminal required:
|
|
380
380
|
|
|
@@ -411,7 +411,7 @@ The file installation stage is inert. Continuing onboarding publishes a durable
|
|
|
411
411
|
|
|
412
412
|
See the [`buzz/` guide](./buzz/README.md) for prerequisites, the no-secret signer model, released-client fixtures, migration guidance, and the full workflow, or inspect the exact [`run402-buzz` listing on skills.sh](https://skills.sh/kychee-com/run402/run402-buzz). The low-level CLI commands remain available for debugging, but they are not a competing onboarding path.
|
|
413
413
|
|
|
414
|
-
The community control plane keeps four concepts separate: installing the skill is inert shared capability; installing a community associates a Buzz relay community with a Run402 organization after dual consent; human adoption
|
|
414
|
+
The community control plane keeps four concepts separate: installing the skill is inert shared capability; installing a community associates a Buzz relay community with a Run402 organization after dual consent; human adoption records a terminal consent receipt, creates the human's public Buzz identity link, and adds an ordinary owner membership without demoting the founder agent; agent enrollment gives each later agent principal only bounded, expiring grants to named existing projects. The completed receipt, public attribution, and membership remain independent: revoking the link does not remove org authority, and removing the membership does not revoke the link or rewrite the receipt. Buzz itself remains unchanged: approval uses already-shipped browser-fragment/kind-1 behavior plus released NIP-11/NIP-43 evidence, while Run402 owns offers, organizations, descriptor discovery, and lifecycle. `run402 buzz status` capability-detects older gateways; MCP only renders exact HTTPS/CLI handoffs. See the [Fizz/Honey workflow](./buzz/references/community-control-plane.md).
|
|
415
415
|
|
|
416
416
|
**Astro SSR + ISR cache (v1.52+).** For Astro apps, use `@run402/astro` 1.0+: `export default run402();` in `astro.config.mjs` returns an `AstroUserConfig` composing the SSR adapter (Lambda + SnapStart + ISR cache + AsyncLocalStorage request-context), image integration, and build-time detectors. Functions opt into the SSR class via `FunctionSpec.class: "ssr"` in `ReleaseSpec`; the gateway provisions SnapStart and caches HTML responses keyed by `(host, path, search, method, locale, release_id)`. Cache is bypass-by-default (no-store unless `Cache-Control` explicitly allows it AND no `Set-Cookie` AND no auth-taint flag from `auth.*` helpers / payment primitives). Invalidate from in-function code or out-of-band: `r.cache.invalidate(url)` / `r.cache.invalidatePrefix({ host, prefix })` / `r.cache.invalidateAll({ host })` (SDK), `run402 cache invalidate <url>` (CLI). Inspect cached state with `r.cache.inspect(url)` / `run402 cache inspect <url>`. Agent DX helpers also in the CLI: `run402 doctor` (5 health checks), `run402 dev` (Astro dev with `.env.local`), `run402 logs --request-id req_...` (correlate across functions). Full reference at [`astro/README.md`](./astro/README.md) and [`cli/llms-cli.txt`](./cli/llms-cli.txt) (R402_* SSR Runtime Error Codes section).
|
|
417
417
|
|
package/dist/identity-format.js
CHANGED
|
@@ -5,7 +5,7 @@ export function formatLinkedIdentity(identity) {
|
|
|
5
5
|
const lifecycle = identity.effective_status === "active"
|
|
6
6
|
? "active"
|
|
7
7
|
: identity.effective_status;
|
|
8
|
-
return `${identity.kind} ${inline(identity.display_subject || identity.public_subject)} (${lifecycle})`;
|
|
8
|
+
return `${inline(identity.identity_link_id)} ${identity.kind} ${inline(identity.display_subject || identity.public_subject)} — ${identity.proof_protocol} (${lifecycle}) — public attribution only, not organization authority`;
|
|
9
9
|
}
|
|
10
10
|
export function formatPrincipal(principal) {
|
|
11
11
|
if (!principal)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-format.js","sourceRoot":"","sources":["../src/identity-format.ts"],"names":[],"mappings":"AAMA,SAAS,MAAM,CAAC,KAAa;IAC3B,OAAO,KAAK,KAAK,IAAI,CAAC;AACxB,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,QAAsC;IACzE,MAAM,SAAS,GAAG,QAAQ,CAAC,gBAAgB,KAAK,QAAQ;QACtD,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAC9B,OAAO,GAAG,QAAQ,CAAC,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC,eAAe,IAAI,QAAQ,CAAC,cAAc,CAAC,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"identity-format.js","sourceRoot":"","sources":["../src/identity-format.ts"],"names":[],"mappings":"AAMA,SAAS,MAAM,CAAC,KAAa;IAC3B,OAAO,KAAK,KAAK,IAAI,CAAC;AACxB,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,QAAsC;IACzE,MAAM,SAAS,GAAG,QAAQ,CAAC,gBAAgB,KAAK,QAAQ;QACtD,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAC9B,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,QAAQ,CAAC,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC,eAAe,IAAI,QAAQ,CAAC,cAAc,CAAC,MAAM,QAAQ,CAAC,cAAc,KAAK,SAAS,yDAAyD,CAAC;AAClO,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,SAAqD;IACnF,IAAI,CAAC,SAAS;QAAE,OAAO,YA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vG,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa;QACvC,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE;QAC7E,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,SAAS,GAAG,OAAO,KAAK,CAAC,SAAS,CAAC,IAAI,KAAK,QAAQ;QACxD,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI;QACtB,CAAC,CAAC,SAAS,CAAC;IACd,OAAO,GAAG,SAAS,oBAAoB,aAAa,sBAAsB,MAAM,gBAAgB,SAAS,EAAE,CAAC;AAC9G,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "run402-mcp",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.9",
|
|
4
|
+
"packageManager": "npm@11.19.0",
|
|
4
5
|
"mcpName": "com.run402/mcp",
|
|
5
6
|
"description": "MCP server for Run402 — pay-per-call infrastructure for AI agents over x402 USDC micropayments. Generate an image for $0.03 with no signup, or provision Postgres databases with REST API, auth, storage and row-level security.",
|
|
6
7
|
"type": "module",
|
|
@@ -67,17 +68,17 @@
|
|
|
67
68
|
},
|
|
68
69
|
"dependencies": {
|
|
69
70
|
"@humanwhocodes/momoa": "3.3.10",
|
|
70
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
71
|
+
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
71
72
|
"@noble/curves": "^2.0.1",
|
|
72
73
|
"@noble/hashes": "^2.0.1",
|
|
73
74
|
"@scure/base": "1.2.6",
|
|
74
|
-
"@x402/evm": "^2.
|
|
75
|
-
"@x402/extensions": "^2.
|
|
76
|
-
"@x402/fetch": "^2.
|
|
75
|
+
"@x402/evm": "^2.21.0",
|
|
76
|
+
"@x402/extensions": "^2.21.0",
|
|
77
|
+
"@x402/fetch": "^2.21.0",
|
|
77
78
|
"ipaddr.js": "1.9.1",
|
|
78
79
|
"json-canonicalize": "2.0.0",
|
|
79
|
-
"mppx": "^0.4.
|
|
80
|
-
"viem": "^2.
|
|
80
|
+
"mppx": "^0.4.12",
|
|
81
|
+
"viem": "^2.55.11",
|
|
81
82
|
"zod": "^3.24.0"
|
|
82
83
|
},
|
|
83
84
|
"devDependencies": {
|
package/sdk/README.md
CHANGED
|
@@ -31,7 +31,7 @@ That's it — credentials are read, x402 payments are signed, results are typed.
|
|
|
31
31
|
|
|
32
32
|
## Public Buzz/Nostr identity links
|
|
33
33
|
|
|
34
|
-
`r.identityLinks`
|
|
34
|
+
`r.identityLinks` represents public, proof-backed Nostr attribution for both human and agent principals. Agent creation uses the EOA-plus-kind-1 ceremony below. Human creation is the normal browser/passkey/Buzz flow at <https://console.run402.com/identity-links/connect>; it never asks a human to paste an event or handle a passkey/session credential. Both return a common `idlnk_…` shape discriminated by `proof_protocol`. One principal may hold multiple distinct active subjects, while an active subject is linked to only one principal. Identity links never authenticate and never change organization authority or ownership.
|
|
35
35
|
|
|
36
36
|
```ts
|
|
37
37
|
import { readFile } from "node:fs/promises";
|
|
@@ -44,12 +44,12 @@ const begin = await r.identityLinks.nostr.begin({
|
|
|
44
44
|
const rawEvent = await readFile("buzz-event.json", "utf8");
|
|
45
45
|
const proof = await r.identityLinks.nostr.complete({ rawEvent });
|
|
46
46
|
await r.identityLinks.getProof(proof.identity_link_id); // public, no auth
|
|
47
|
-
await r.identityLinks.revoke(proof.identity_link_id); //
|
|
47
|
+
await r.identityLinks.revoke(proof.identity_link_id); // agent EOA or direct human session, by protocol
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
The SDK locally rejects secret-shaped inputs and verifies the exact seven-field NIP-01 event, event id, and BIP-340 signature before completion.
|
|
50
|
+
The SDK locally rejects secret-shaped inputs and verifies the exact seven-field NIP-01 event, event id, and BIP-340 signature before agent completion. `list()` preserves every active and revoked link plus its proof protocol; public proof reads expose independently verifiable Nostr evidence separately from Run402-attested human-session checks. Human link creation and revocation remain browser-canonical, and link revocation never removes an org membership. Buzz operators should use the self-contained [`run402-buzz` package](../buzz/README.md); the SDK ceremony is a lower-level agent API, not a separate getting-started path.
|
|
51
51
|
|
|
52
|
-
`r.buzz.status()` capability-detects the community control plane and the additive human-adoption offer flow. `r.buzz.offerAdoption(...)` and typed `humanAdoptionOffers.create/get/cancel/createAttempt` expose the durable HTTPS handoff without treating offer creation as consent or authority; the attempt method is for an explicitly authenticated human client. Existing `humanAdoptions` direct methods remain advanced compatibility. `communityInstallations` and `enrollments` expose their independent lifecycles; `install(...)` and `enroll(...)` are goal aliases. The SDK generates idempotency keys when omitted, rejects nested secret-shaped fields before network access, never signs Buzz events, and represents enrollment authority only as expiring grants to named existing projects. MCP intentionally omits offer/attempt mutations and renders the exact handoff. Buzz itself remains unchanged. Gateway failures retain their stable code, exact repair `field`, complete `nextActions`, and `safeToRetry`. See the [Fizz/Honey lifecycle](../buzz/references/community-control-plane.md).
|
|
52
|
+
`r.buzz.status()` capability-detects the community control plane and the additive human-adoption offer flow. `r.buzz.offerAdoption(...)` and typed `humanAdoptionOffers.create/get/cancel/createAttempt` expose the durable HTTPS handoff without treating offer creation as consent or authority; the attempt method is for an explicitly authenticated human client. Polling a completed offer returns three distinct effects: the terminal consent receipt, public human identity attribution, and ordinary owner membership. The membership is the only organization-authority source; link and membership revocation are independent and neither rewrites the receipt. Existing `humanAdoptions` direct methods remain advanced compatibility. `communityInstallations` and `enrollments` expose their independent lifecycles; `install(...)` and `enroll(...)` are goal aliases. The SDK generates idempotency keys when omitted, rejects nested secret-shaped fields before network access, never signs Buzz events, and represents enrollment authority only as expiring grants to named existing projects. MCP intentionally omits offer/attempt mutations and renders the exact handoff. Buzz itself remains unchanged. Gateway failures retain their stable code, exact repair `field`, complete `nextActions`, and `safeToRetry`. See the [Fizz/Honey lifecycle](../buzz/references/community-control-plane.md).
|
|
53
53
|
|
|
54
54
|
Before creating an x402 payment payload, the Node entry confirms USDC with
|
|
55
55
|
bounded retry/backoff and independent RPC failover on Base and Base Sepolia.
|
|
@@ -325,7 +325,7 @@ The `CredentialsProvider` interface has two required methods (`getAuth`, `getPro
|
|
|
325
325
|
| `service` | `status`, `health` (no auth, no setup — works on a fresh install) |
|
|
326
326
|
| `admin` | Operator/admin endpoints: messages/contact, per-project finance (`getProjectFinance`) |
|
|
327
327
|
| `operator` | **The human / email principal** — distinct from the agent's per-wallet SIWX identity (and from platform-`admin`). Read session: `deviceStart`, `devicePoll`, `overview({ token })`, `revoke({ token })` — browser-delegated device-authorization (RFC 8628, the `aws sso login` model); `overview` returns the email-union across every wallet that verified the email. Write session (v1.78): `buildCliAuthorizeUrl`/`exchangeCliToken` (loopback-PKCE CLI login) + the hosted `operator.session.*` surface (email magic-link / passkey / OAuth login, `whoami`/`refresh`/`revoke`, step-up, authenticators, recovery) — carry a minted session SDK-wide with `controlPlaneSessionCredentials({ token })`. Drives `run402 operator login[/--loopback]/overview/whoami/logout`. No MCP tool by design — MCP authenticates as the agent, not the human. |
|
|
328
|
-
| `identityLinks` | Public
|
|
328
|
+
| `identityLinks` | Public human/agent external identity attribution with a discriminated proof protocol. Agent `nostr.begin`/`complete` uses EOA + kind 1; human creation/revocation is browser-canonical. `list`, `getProof`, and `revoke` preserve multiple active and revoked records. Never accepts a Nostr secret and never grants authority. |
|
|
329
329
|
| `buzz` | Capability-detecting Buzz control plane. `offerAdoption` plus `humanAdoptionOffers` creates/reads/cancels durable HTTPS handoffs and creates human-bound attempts; direct `humanAdoptions` is advanced compatibility. `install/enroll` and typed community/enrollment methods preserve separate principals, bounded named-project grants, drift, and scoped revocation. Buzz signing stays outside the SDK. |
|
|
330
330
|
| `wallet(address)` | `getLabel()`, `setLabel(label)` — the signed server-side wallet label (gateway `/wallets/v1/:address/label`) surfaced in the operator console; pushed on `wallets use` unless `RUN402_WALLET_LABEL_SYNC=0`. Use the `r.wallet(address)` handle (the two-string `r.wallets.setLabel(address, label)` is deprecated) |
|
|
331
331
|
| `orgs` | **Org-owned control plane** (v1.77+; first-class orgs v1.82). `create`, `list`, `whoami` (the gateway-resolved control-plane identity) on the collection; the scoped `r.org(id)` sub-client (org analog of `r.project(id)`) adds `get`, `rename`, `setPayoutWallet`, `members.*` (`list`/`add`/`setRole`/`revoke`), `invites.*` (`list`/`create`/`revoke`), `audit`. Org create/read/rename summaries include `tier`, `lease_started_at`, and `lease_expires_at`. |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type BuzzHumanAdoptionStatus = "pending" | "
|
|
1
|
+
export type BuzzHumanAdoptionStatus = "pending" | "completed" | "expired" | "cancelled";
|
|
2
2
|
export type BuzzHumanAdoptionOfferStatus = "available" | "completed" | "cancelled" | "ineligible";
|
|
3
3
|
export type BuzzHumanAdoptionOfferIneligibleReason = "agent_inactive" | "agent_not_sole_owner" | "human_owner_exists" | "identity_link_inactive" | "owner_attestation_missing" | "active_adoption_exists" | "direct_adoption_pending";
|
|
4
4
|
export type BuzzCommunityInstallationStatus = "pending" | "active" | "expired" | "revoked";
|
|
@@ -66,6 +66,8 @@ export interface BuzzHumanAdoption {
|
|
|
66
66
|
org_id: string;
|
|
67
67
|
initiating_agent_principal_id?: string;
|
|
68
68
|
identity_link_id?: string;
|
|
69
|
+
initiating_agent_identity_link_id?: string;
|
|
70
|
+
human_identity_link_id?: string | null;
|
|
69
71
|
expected_buzz_owner_subject?: string;
|
|
70
72
|
status: BuzzHumanAdoptionStatus;
|
|
71
73
|
owner_proof_content: {
|
|
@@ -97,6 +99,7 @@ export interface BuzzHumanAdoption {
|
|
|
97
99
|
expires_at: string;
|
|
98
100
|
consumed_at: string | null;
|
|
99
101
|
activated_at: string | null;
|
|
102
|
+
completed_at: string | null;
|
|
100
103
|
expired_at: string | null;
|
|
101
104
|
cancelled_at: string | null;
|
|
102
105
|
created_at: string;
|
|
@@ -220,9 +223,42 @@ export interface BuzzHumanAdoptionOffer {
|
|
|
220
223
|
current_buzz_human_adoption_id: string | null;
|
|
221
224
|
completed_buzz_human_adoption: {
|
|
222
225
|
buzz_human_adoption_id: string;
|
|
223
|
-
status: "
|
|
226
|
+
status: "completed";
|
|
227
|
+
consent_receipt: {
|
|
228
|
+
status: "completed";
|
|
229
|
+
completed_at: string | null;
|
|
230
|
+
};
|
|
231
|
+
public_identity_attribution: {
|
|
232
|
+
human_identity_link_id: string | null;
|
|
233
|
+
authority_for_organization: false;
|
|
234
|
+
revoke_independently: true;
|
|
235
|
+
};
|
|
236
|
+
organization_authority: {
|
|
237
|
+
membership_id: string | null;
|
|
238
|
+
role: "owner";
|
|
239
|
+
source: "org_membership";
|
|
240
|
+
revoke_independently: true;
|
|
241
|
+
};
|
|
224
242
|
authority_effects: NonNullable<BuzzHumanAdoption["authority_effects"]>;
|
|
225
243
|
} | null;
|
|
244
|
+
latest_attempt_receipt?: {
|
|
245
|
+
attempt_reference: string;
|
|
246
|
+
status: BuzzHumanAdoptionStatus;
|
|
247
|
+
issued_at: string | null;
|
|
248
|
+
expires_at: string | null;
|
|
249
|
+
expired_at: string | null;
|
|
250
|
+
cancelled_at: string | null;
|
|
251
|
+
activated_at: string | null;
|
|
252
|
+
diagnosis_code: string;
|
|
253
|
+
last_observed_stage: string | null;
|
|
254
|
+
last_trace_id: string | null;
|
|
255
|
+
milestones: Array<{
|
|
256
|
+
stage: string;
|
|
257
|
+
observed_at: string;
|
|
258
|
+
trace_id?: string;
|
|
259
|
+
result_code?: string;
|
|
260
|
+
}>;
|
|
261
|
+
} | null;
|
|
226
262
|
created_at: string;
|
|
227
263
|
updated_at: string;
|
|
228
264
|
completed_at: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buzz.types.d.ts","sourceRoot":"","sources":["../../src/namespaces/buzz.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"buzz.types.d.ts","sourceRoot":"","sources":["../../src/namespaces/buzz.types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C,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,+BAA+B,CAAC;QACxC,sBAAsB,EAAE,OAAO,CAAC;KACjC,CAAC,CAAC;IACH,iBAAiB,EAAE,KAAK,CAAC;QACvB,wBAAwB,EAAE,MAAM,CAAC;QACjC,8BAA8B,EAAE,MAAM,CAAC;QACvC,MAAM,EAAE,yBAAyB,CAAC;KACnC,CAAC,CAAC;IACH,WAAW,EAAE;QACX,4CAA4C,EAAE,OAAO,CAAC;QACtD,iCAAiC,EAAE,OAAO,CAAC;QAC3C,0BAA0B,EAAE,OAAO,CAAC;QACpC,6BAA6B,EAAE,OAAO,CAAC;KACxC,CAAC;IACF,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IACjC,YAAY,EAAE,cAAc,EAAE,CAAC;CAChC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface LinkedIdentityRepresentation {
|
|
2
2
|
identity_link_id: string;
|
|
3
|
+
proof_protocol: "run402.identity-link.nostr.v1" | "run402.identity-link.nostr.human.v1" | (string & {});
|
|
3
4
|
kind: "nostr_nip01" | (string & {});
|
|
4
5
|
public_subject: string;
|
|
5
6
|
display_subject: string;
|
|
@@ -81,7 +82,7 @@ export interface NostrEventV1 {
|
|
|
81
82
|
id: string;
|
|
82
83
|
pubkey: string;
|
|
83
84
|
created_at: number;
|
|
84
|
-
kind:
|
|
85
|
+
kind: number;
|
|
85
86
|
tags: string[][];
|
|
86
87
|
content: string;
|
|
87
88
|
sig: string;
|
|
@@ -107,17 +108,46 @@ export interface PreparedIdentityLinkChallenge extends IdentityLinkChallenge {
|
|
|
107
108
|
wallet_signature: string;
|
|
108
109
|
proof_content: string;
|
|
109
110
|
}
|
|
110
|
-
export interface
|
|
111
|
+
export interface IdentityLinkProofCommon {
|
|
111
112
|
identity_link_id: string;
|
|
112
|
-
proof_protocol: "run402.identity-link.nostr.v1";
|
|
113
113
|
status: "active" | "revoked";
|
|
114
114
|
effective_status: "active" | "revoked" | "principal_inactive";
|
|
115
115
|
verified_at: string;
|
|
116
116
|
revoked_at: string | null;
|
|
117
|
+
public_subject: string;
|
|
118
|
+
display_subject: string;
|
|
119
|
+
proved_principal: {
|
|
120
|
+
principal_id: string;
|
|
121
|
+
principal_type: "human" | "agent" | "ci" | "system" | (string & {});
|
|
122
|
+
};
|
|
123
|
+
effective_principal: {
|
|
124
|
+
principal_id: string;
|
|
125
|
+
principal_type: "human" | "agent" | "ci" | "system" | (string & {});
|
|
126
|
+
};
|
|
127
|
+
nostr_event: NostrEventV1;
|
|
128
|
+
}
|
|
129
|
+
export interface AgentIdentityLinkProof extends IdentityLinkProofCommon {
|
|
130
|
+
proof_protocol: "run402.identity-link.nostr.v1";
|
|
117
131
|
public_payload: string;
|
|
118
132
|
wallet_signature: string;
|
|
119
|
-
|
|
133
|
+
verification_statement: null;
|
|
134
|
+
}
|
|
135
|
+
export interface HumanIdentityLinkVerificationStatement {
|
|
136
|
+
schema_version: 1;
|
|
137
|
+
acceptance_context: "standalone_human_link" | "buzz_human_adoption";
|
|
138
|
+
adopting_principal: "run402_verified";
|
|
139
|
+
target_session: "run402_verified" | "legacy_run402_verified";
|
|
140
|
+
fresh_passkey: "run402_verified";
|
|
141
|
+
verified_at: string;
|
|
142
|
+
}
|
|
143
|
+
export interface HumanIdentityLinkProof extends IdentityLinkProofCommon {
|
|
144
|
+
proof_protocol: "run402.identity-link.nostr.human.v1";
|
|
145
|
+
public_payload: null;
|
|
146
|
+
wallet_signature: null;
|
|
147
|
+
verification_statement: HumanIdentityLinkVerificationStatement;
|
|
120
148
|
}
|
|
149
|
+
/** Public attribution only. Neither variant is an authenticator or authority edge. */
|
|
150
|
+
export type IdentityLinkProof = AgentIdentityLinkProof | HumanIdentityLinkProof;
|
|
121
151
|
export interface IdentityLinkListResult {
|
|
122
152
|
identity_links: LinkedIdentityRepresentation[];
|
|
123
153
|
next_cursor: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-links.types.d.ts","sourceRoot":"","sources":["../../src/namespaces/identity-links.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,aAAa,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC7B,gBAAgB,EAAE,QAAQ,GAAG,SAAS,GAAG,oBAAoB,CAAC;IAC9D,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACpE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,iBAAiB,EAAE,4BAA4B,EAAE,CAAC;CACnD;AAED,MAAM,WAAW,iCAAiC;IAChD,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,QAAQ,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAiB;IAChC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AI,CAAC;IAC5C,SAAS,EAAE,iBAAiB,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"identity-links.types.d.ts","sourceRoot":"","sources":["../../src/namespaces/identity-links.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EACV,+BAA+B,GAC/B,qCAAqC,GACrC,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAClB,IAAI,EAAE,aAAa,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC7B,gBAAgB,EAAE,QAAQ,GAAG,SAAS,GAAG,oBAAoB,CAAC;IAC9D,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACpE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,iBAAiB,EAAE,4BAA4B,EAAE,CAAC;CACnD;AAED,MAAM,WAAW,iCAAiC;IAChD,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAA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