@run402/sdk 4.93.1 → 4.94.0

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.
Files changed (195) hide show
  1. package/README.md +21 -19
  2. package/core-dist/config.d.ts +16 -2
  3. package/core-dist/config.js +52 -18
  4. package/core-dist/control-plane-session.d.ts +29 -14
  5. package/core-dist/control-plane-session.js +31 -6
  6. package/core-dist/keystore.js +7 -7
  7. package/core-dist/profiles.d.ts +3 -3
  8. package/core-dist/profiles.js +9 -7
  9. package/core-dist/{allowance-auth.d.ts → wallet-auth.d.ts} +6 -6
  10. package/core-dist/{allowance-auth.js → wallet-auth.js} +15 -15
  11. package/core-dist/wallet.d.ts +22 -0
  12. package/core-dist/{allowance.js → wallet.js} +20 -20
  13. package/core-dist/{write-auth-session.d.ts → write-approvals.d.ts} +28 -26
  14. package/core-dist/{write-auth-session.js → write-approvals.js} +19 -19
  15. package/dist/actions.d.ts +1 -1
  16. package/dist/actions.d.ts.map +1 -1
  17. package/dist/control-plane-credentials.d.ts +8 -8
  18. package/dist/control-plane-credentials.js +7 -7
  19. package/dist/credentials.d.ts +19 -19
  20. package/dist/credentials.d.ts.map +1 -1
  21. package/dist/credentials.js +1 -1
  22. package/dist/errors.d.ts +24 -26
  23. package/dist/errors.d.ts.map +1 -1
  24. package/dist/errors.js +34 -37
  25. package/dist/errors.js.map +1 -1
  26. package/dist/index.d.ts +29 -16
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +29 -16
  29. package/dist/index.js.map +1 -1
  30. package/dist/kernel.d.ts +1 -1
  31. package/dist/kernel.d.ts.map +1 -1
  32. package/dist/kernel.js +10 -9
  33. package/dist/kernel.js.map +1 -1
  34. package/dist/namespaces/admin.d.ts +51 -120
  35. package/dist/namespaces/admin.d.ts.map +1 -1
  36. package/dist/namespaces/admin.js +41 -45
  37. package/dist/namespaces/admin.js.map +1 -1
  38. package/dist/namespaces/agent.d.ts +2 -2
  39. package/dist/namespaces/agent.d.ts.map +1 -1
  40. package/dist/namespaces/agent.js +2 -2
  41. package/dist/namespaces/agent.js.map +1 -1
  42. package/dist/namespaces/ai.d.ts +1 -1
  43. package/dist/namespaces/ai.js +1 -1
  44. package/dist/namespaces/billing.d.ts +6 -3
  45. package/dist/namespaces/billing.d.ts.map +1 -1
  46. package/dist/namespaces/billing.js.map +1 -1
  47. package/dist/namespaces/buzz-notifications.types.d.ts +1 -1
  48. package/dist/namespaces/buzz.d.ts +2 -2
  49. package/dist/namespaces/buzz.d.ts.map +1 -1
  50. package/dist/namespaces/buzz.js +2 -2
  51. package/dist/namespaces/buzz.js.map +1 -1
  52. package/dist/namespaces/buzz.types.d.ts +2 -2
  53. package/dist/namespaces/buzz.types.d.ts.map +1 -1
  54. package/dist/namespaces/credentials.types.d.ts +1 -1
  55. package/dist/namespaces/deploy.d.ts +1 -1
  56. package/dist/namespaces/deploy.js +5 -5
  57. package/dist/namespaces/deploy.js.map +1 -1
  58. package/dist/namespaces/deploy.types.d.ts +4 -4
  59. package/dist/namespaces/escalations.d.ts +1 -1
  60. package/dist/namespaces/escalations.js +1 -1
  61. package/dist/namespaces/escalations.types.d.ts +2 -2
  62. package/dist/namespaces/escalations.types.d.ts.map +1 -1
  63. package/dist/namespaces/events.types.d.ts +1 -1
  64. package/dist/namespaces/functions.d.ts +1 -1
  65. package/dist/namespaces/functions.js +1 -1
  66. package/dist/namespaces/gitvault.crypto.d.ts +1 -1
  67. package/dist/namespaces/gitvault.d.ts +24 -24
  68. package/dist/namespaces/gitvault.d.ts.map +1 -1
  69. package/dist/namespaces/gitvault.js +109 -109
  70. package/dist/namespaces/gitvault.js.map +1 -1
  71. package/dist/namespaces/me.d.ts +120 -0
  72. package/dist/namespaces/me.d.ts.map +1 -0
  73. package/dist/namespaces/me.js +34 -0
  74. package/dist/namespaces/me.js.map +1 -0
  75. package/dist/namespaces/org.d.ts +108 -6
  76. package/dist/namespaces/org.d.ts.map +1 -1
  77. package/dist/namespaces/org.js +63 -7
  78. package/dist/namespaces/org.js.map +1 -1
  79. package/dist/namespaces/org.types.d.ts +29 -9
  80. package/dist/namespaces/org.types.d.ts.map +1 -1
  81. package/dist/namespaces/pay.js +3 -3
  82. package/dist/namespaces/pay.js.map +1 -1
  83. package/dist/namespaces/projects.d.ts +9 -9
  84. package/dist/namespaces/projects.js +15 -15
  85. package/dist/namespaces/projects.js.map +1 -1
  86. package/dist/namespaces/projects.types.d.ts +28 -12
  87. package/dist/namespaces/projects.types.d.ts.map +1 -1
  88. package/dist/namespaces/rooms.d.ts +7 -7
  89. package/dist/namespaces/rooms.js +17 -17
  90. package/dist/namespaces/rooms.js.map +1 -1
  91. package/dist/namespaces/rooms.types.d.ts +9 -9
  92. package/dist/namespaces/rooms.types.d.ts.map +1 -1
  93. package/dist/namespaces/service.d.ts +1 -1
  94. package/dist/namespaces/service.js +1 -1
  95. package/dist/namespaces/{operator-session.d.ts → session.d.ts} +135 -51
  96. package/dist/namespaces/session.d.ts.map +1 -0
  97. package/dist/namespaces/{operator-session.js → session.js} +118 -30
  98. package/dist/namespaces/session.js.map +1 -0
  99. package/dist/namespaces/subdomains.d.ts +5 -5
  100. package/dist/namespaces/subdomains.d.ts.map +1 -1
  101. package/dist/namespaces/subdomains.js +6 -6
  102. package/dist/namespaces/subdomains.js.map +1 -1
  103. package/dist/namespaces/tier.d.ts +43 -20
  104. package/dist/namespaces/tier.d.ts.map +1 -1
  105. package/dist/namespaces/tier.js +7 -7
  106. package/dist/namespaces/tier.js.map +1 -1
  107. package/dist/namespaces/transfers.d.ts +74 -71
  108. package/dist/namespaces/transfers.d.ts.map +1 -1
  109. package/dist/namespaces/transfers.js +31 -38
  110. package/dist/namespaces/transfers.js.map +1 -1
  111. package/dist/namespaces/vouchers.d.ts +9 -10
  112. package/dist/namespaces/vouchers.d.ts.map +1 -1
  113. package/dist/namespaces/vouchers.js +4 -5
  114. package/dist/namespaces/vouchers.js.map +1 -1
  115. package/dist/namespaces/wallets.d.ts +72 -3
  116. package/dist/namespaces/wallets.d.ts.map +1 -1
  117. package/dist/namespaces/wallets.js +141 -3
  118. package/dist/namespaces/wallets.js.map +1 -1
  119. package/dist/namespaces/write-approval.d.ts +101 -0
  120. package/dist/namespaces/write-approval.d.ts.map +1 -0
  121. package/dist/namespaces/write-approval.js +62 -0
  122. package/dist/namespaces/write-approval.js.map +1 -0
  123. package/dist/node/actions-node.d.ts +3 -3
  124. package/dist/node/actions-node.d.ts.map +1 -1
  125. package/dist/node/actions-node.js +36 -36
  126. package/dist/node/actions-node.js.map +1 -1
  127. package/dist/node/{bearer-claim-key.d.ts → bearer-redeem-key.d.ts} +12 -12
  128. package/dist/node/bearer-redeem-key.d.ts.map +1 -0
  129. package/dist/node/{bearer-claim-key.js → bearer-redeem-key.js} +21 -21
  130. package/dist/node/bearer-redeem-key.js.map +1 -0
  131. package/dist/node/ci.d.ts +1 -1
  132. package/dist/node/ci.d.ts.map +1 -1
  133. package/dist/node/ci.js +6 -6
  134. package/dist/node/ci.js.map +1 -1
  135. package/dist/node/credentials.d.ts +17 -16
  136. package/dist/node/credentials.d.ts.map +1 -1
  137. package/dist/node/credentials.js +28 -27
  138. package/dist/node/credentials.js.map +1 -1
  139. package/dist/node/funding-recovery.d.ts +1 -1
  140. package/dist/node/funding-recovery.d.ts.map +1 -1
  141. package/dist/node/funding-recovery.js +1 -1
  142. package/dist/node/funding-recovery.js.map +1 -1
  143. package/dist/node/gitvault-apply.d.ts +1 -1
  144. package/dist/node/gitvault-apply.d.ts.map +1 -1
  145. package/dist/node/gitvault-handoff.d.ts +22 -22
  146. package/dist/node/gitvault-handoff.d.ts.map +1 -1
  147. package/dist/node/gitvault-handoff.js +45 -45
  148. package/dist/node/gitvault-handoff.js.map +1 -1
  149. package/dist/node/gitvault-prewarm.js +7 -7
  150. package/dist/node/gitvault-prewarm.js.map +1 -1
  151. package/dist/node/gitvault-restore.d.ts +1 -1
  152. package/dist/node/gitvault-restore.js +1 -1
  153. package/dist/node/index.d.ts +16 -16
  154. package/dist/node/index.d.ts.map +1 -1
  155. package/dist/node/index.js +15 -15
  156. package/dist/node/index.js.map +1 -1
  157. package/dist/node/org-adopt.d.ts +49 -0
  158. package/dist/node/org-adopt.d.ts.map +1 -0
  159. package/dist/node/org-adopt.js +77 -0
  160. package/dist/node/org-adopt.js.map +1 -0
  161. package/dist/node/paid-fetch.d.ts +7 -7
  162. package/dist/node/paid-fetch.d.ts.map +1 -1
  163. package/dist/node/paid-fetch.js +54 -54
  164. package/dist/node/paid-fetch.js.map +1 -1
  165. package/dist/node/preflight.d.ts +1 -1
  166. package/dist/node/preflight.d.ts.map +1 -1
  167. package/dist/node/preflight.js +1 -1
  168. package/dist/node/preflight.js.map +1 -1
  169. package/dist/node/source-scan.d.ts +1 -1
  170. package/dist/node/source-scan.js +2 -2
  171. package/dist/node/source-scan.js.map +1 -1
  172. package/dist/scoped.d.ts +3 -3
  173. package/dist/scoped.d.ts.map +1 -1
  174. package/dist/scoped.js +2 -2
  175. package/dist/scoped.js.map +1 -1
  176. package/package.json +1 -1
  177. package/core-dist/allowance.d.ts +0 -22
  178. package/core-dist/operator-session.d.ts +0 -80
  179. package/core-dist/operator-session.js +0 -154
  180. package/dist/namespaces/allowance.d.ts +0 -79
  181. package/dist/namespaces/allowance.d.ts.map +0 -1
  182. package/dist/namespaces/allowance.js +0 -149
  183. package/dist/namespaces/allowance.js.map +0 -1
  184. package/dist/namespaces/operator-session.d.ts.map +0 -1
  185. package/dist/namespaces/operator-session.js.map +0 -1
  186. package/dist/namespaces/operator.d.ts +0 -359
  187. package/dist/namespaces/operator.d.ts.map +0 -1
  188. package/dist/namespaces/operator.js +0 -272
  189. package/dist/namespaces/operator.js.map +0 -1
  190. package/dist/node/bearer-claim-key.d.ts.map +0 -1
  191. package/dist/node/bearer-claim-key.js.map +0 -1
  192. package/dist/node/operator-claim.d.ts +0 -49
  193. package/dist/node/operator-claim.d.ts.map +0 -1
  194. package/dist/node/operator-claim.js +0 -77
  195. package/dist/node/operator-claim.js.map +0 -1
@@ -1,272 +0,0 @@
1
- /**
2
- * `operator` namespace — the *human* (email) principal, distinct from the
3
- * agent's per-wallet SIWX identity.
4
- *
5
- * The human authenticates in the browser via an OAuth 2.0 device-authorization
6
- * grant (RFC 8628, the `aws sso login` model): `deviceStart` returns a
7
- * user-facing code + URL, the human approves it via the existing magic-link or
8
- * passkey web flow, and `devicePoll` brokers the resulting operator-session
9
- * token. `overview` reads the email-union account view with that token, and
10
- * `revoke` ends the session server-side.
11
- *
12
- * Bearer auth is passed explicitly (`opts.token`) rather than sourced from a
13
- * credential provider, because the operator session is a Node-only on-disk
14
- * cache (`core/operator-session.ts`) and this namespace stays isomorphic. The
15
- * `device*` endpoints are unauthenticated (the `device_code` in the body is the
16
- * credential), so they send no auth headers.
17
- *
18
- * Gateway contract: the RFC 8628 device-auth bridge.
19
- */
20
- import { ApiError, LocalError, NetworkError } from "../errors.js";
21
- import { OperatorSession } from "./operator-session.js";
22
- const POLL_ERROR_CODES = new Set([
23
- "authorization_pending",
24
- "slow_down",
25
- "access_denied",
26
- "expired_token",
27
- ]);
28
- /**
29
- * Wallet-owned org claim — `r.operator.claimWalletOrg.*`. The isomorphic
30
- * (raw-proof) seam: `challenge` issues a nonce; `submit` posts the dual proof
31
- * (control-plane session bearer + a fresh `SIGN-IN-WITH-X` wallet signature). The
32
- * Node convenience `signWalletOrgClaim` / `claimWalletOrg` in `@run402/sdk/node`
33
- * runs the whole dance (read session → challenge → sign → submit).
34
- */
35
- export class ClaimWalletOrg {
36
- client;
37
- constructor(client) {
38
- this.client = client;
39
- }
40
- /** Request a single-use challenge nonce the wallet must sign (`POST …/claim-wallet-org/challenge`). */
41
- async challenge(input) {
42
- if (!input?.wallet) {
43
- throw new LocalError("claimWalletOrg.challenge requires { wallet }", "requesting wallet-org claim challenge");
44
- }
45
- return this.client.request("/agent/v1/operator/claim-wallet-org/challenge", {
46
- method: "POST",
47
- body: { wallet: input.wallet },
48
- ...(input.token ? { headers: { Authorization: `Bearer ${input.token}` }, withAuth: false } : {}),
49
- context: "requesting wallet-org claim challenge",
50
- });
51
- }
52
- /**
53
- * Execute the claim (`POST …/claim-wallet-org`) carrying both proofs: the
54
- * control-plane session bearer (the human) and the `SIGN-IN-WITH-X` wallet
55
- * signature. Returns a discriminated {@link ClaimResult}; a `select_org` result
56
- * is returned (not thrown). Throws {@link StepUpRequiredError} when the session
57
- * is not passkey-fresh, and `ApiError` (`WALLET_PROOF_INVALID`) on a bad proof.
58
- */
59
- async submit(input) {
60
- if (!input?.siwx) {
61
- throw new LocalError("claimWalletOrg.submit requires { siwx } (the SIGN-IN-WITH-X proof)", "claiming wallet org");
62
- }
63
- const headers = { "SIGN-IN-WITH-X": input.siwx };
64
- if (input.token)
65
- headers.Authorization = `Bearer ${input.token}`;
66
- const body = {};
67
- if (input.orgId !== undefined)
68
- body.org_id = input.orgId;
69
- if (input.displayName !== undefined)
70
- body.display_name = input.displayName;
71
- return this.client.request("/agent/v1/operator/claim-wallet-org", {
72
- method: "POST",
73
- body,
74
- headers,
75
- withAuth: !input.token,
76
- context: "claiming wallet org",
77
- });
78
- }
79
- }
80
- /**
81
- * Operator-approval ceremony seams — `r.operator.approval.*`. Isomorphic
82
- * (raw-request) seams: `requestChallenge` opens a passkey approval scoped to an
83
- * `(action, target)`; the human approves in the browser; the confirm page
84
- * redirects to the CLI loopback with a one-time `code`; `exchangeClaimCode`
85
- * (PKCE) mints the token. The loopback server + PKCE generation live in the
86
- * Node CLI (`run402 operator approve`).
87
- */
88
- export class Approval {
89
- client;
90
- constructor(client) {
91
- this.client = client;
92
- }
93
- /** Begin a scoped approval (`POST …/write-auth/challenges`). Carries the cp-session bearer. */
94
- async requestChallenge(input) {
95
- const body = {
96
- action: input.action,
97
- cli_redirect_uri: input.cliRedirectUri,
98
- code_challenge: input.codeChallenge,
99
- state: input.state,
100
- };
101
- if (input.orgId !== undefined)
102
- body.org_id = input.orgId;
103
- if (input.projectId !== undefined)
104
- body.project_id = input.projectId;
105
- return this.client.request("/agent/v1/control-plane/write-auth/challenges", {
106
- method: "POST",
107
- body,
108
- ...(input.token
109
- ? { headers: { Authorization: `Bearer ${input.token}` }, withAuth: false }
110
- : {}),
111
- context: "requesting operator approval challenge",
112
- });
113
- }
114
- /**
115
- * Exchange the loopback claim `code` (+ PKCE verifier + `state`) for the
116
- * approval token (`POST …/write-auth/cli/token`). No `redirect_uri` — it is
117
- * bound at challenge time. Unauthenticated (code+verifier are the credential).
118
- */
119
- async exchangeClaimCode(input) {
120
- return this.client.request("/agent/v1/control-plane/write-auth/cli/token", {
121
- method: "POST",
122
- body: { code: input.code, code_verifier: input.codeVerifier, state: input.state },
123
- withAuth: false,
124
- context: "exchanging operator approval claim code",
125
- });
126
- }
127
- }
128
- export class Operator {
129
- client;
130
- /**
131
- * The hosted/browser control-plane **session** surface (gateway v1.78):
132
- * `r.operator.session.email`, `verifyEmail`, `passkeyVerify`, `whoami`,
133
- * `refresh`, `revoke`, and the step-up / authenticator helpers.
134
- * The write-capable human login + step-up + authenticators, distinct from the
135
- * read-only device/overview methods on this class and the loopback-PKCE
136
- * CLI write-login below. See {@link OperatorSession}.
137
- */
138
- session;
139
- /**
140
- * Wallet-owned org claim (v1.82): `r.operator.claimWalletOrg.challenge()` +
141
- * `.submit()`. The raw dual-proof seam; the Node convenience `claimWalletOrg`
142
- * in `@run402/sdk/node` runs the full dance.
143
- */
144
- claimWalletOrg;
145
- /**
146
- * Operator-approval (write-auth) ceremony: `r.operator.approval.requestChallenge()`
147
- * + `.exchangeClaimCode()`. The Node CLI (`run402 operator approve`) runs the
148
- * loopback + PKCE around these isomorphic seams.
149
- */
150
- approval;
151
- constructor(client) {
152
- this.client = client;
153
- this.session = new OperatorSession(client);
154
- this.claimWalletOrg = new ClaimWalletOrg(client);
155
- this.approval = new Approval(client);
156
- }
157
- /**
158
- * Begin the device-authorization flow. Unauthenticated. Returns the codes the
159
- * CLI prints (`user_code` + `verification_uri`) plus the poll `interval` and
160
- * `expires_in`.
161
- */
162
- async deviceStart(opts = {}) {
163
- return this.client.request("/agent/v1/operator/session/device", {
164
- method: "POST",
165
- body: opts.clientName ? { client_name: opts.clientName } : {},
166
- withAuth: false,
167
- context: "starting operator device authorization",
168
- });
169
- }
170
- /**
171
- * Poll once for approval. Bypasses the kernel's error mapping on purpose: the
172
- * RFC 8628 error codes (`authorization_pending`, `slow_down`, ...) are normal
173
- * polling states returned as data, not exceptions. Only an unexpected
174
- * response shape throws.
175
- */
176
- async devicePoll(deviceCode) {
177
- const url = `${this.client.apiBase}/agent/v1/operator/session/device/token`;
178
- let res;
179
- try {
180
- res = await this.client.fetch(url, {
181
- method: "POST",
182
- headers: { "Content-Type": "application/json" },
183
- body: JSON.stringify({ device_code: deviceCode }),
184
- });
185
- }
186
- catch (err) {
187
- throw new NetworkError(`Network error while polling operator device token: ${err.message}`, err, "polling operator device token");
188
- }
189
- const body = (await res.json().catch(() => null));
190
- if (res.ok && body && typeof body.operator_session_token === "string") {
191
- return { kind: "approved", session: body };
192
- }
193
- const error = body && typeof body.error === "string" ? body.error : null;
194
- if (error && POLL_ERROR_CODES.has(error)) {
195
- return { kind: error };
196
- }
197
- throw new ApiError(`Unexpected operator device-token response (HTTP ${res.status})`, res.status, body, "polling operator device token");
198
- }
199
- /**
200
- * Fetch the organization overview. With `opts.token` the request carries the
201
- * operator-session bearer and returns the email-union; without it the request
202
- * falls back to the credential provider's default auth (SIWX) and returns
203
- * that wallet's slice. The CLI always passes a token (human-only surface); the
204
- * SDK supports both because the gateway endpoint accepts both principals.
205
- */
206
- async overview(opts = {}) {
207
- if (opts.token) {
208
- return this.client.request("/agent/v1/operator/overview", {
209
- headers: { Authorization: `Bearer ${opts.token}` },
210
- withAuth: false,
211
- context: "fetching operator overview",
212
- });
213
- }
214
- return this.client.request("/agent/v1/operator/overview", {
215
- context: "fetching operator overview",
216
- });
217
- }
218
- /**
219
- * Revoke the operator session server-side (the server half of
220
- * `operator logout`). Idempotent on the gateway; returns 204. The local cache
221
- * is cleared separately by the CLI.
222
- */
223
- async revoke(opts) {
224
- await this.client.request("/agent/v1/operator/session/revoke", {
225
- method: "POST",
226
- headers: { Authorization: `Bearer ${opts.token}` },
227
- withAuth: false,
228
- context: "revoking operator session",
229
- });
230
- }
231
- // ── Loopback-PKCE write-login (v1.78, RFC 8252 §7.3) ──────────────────────
232
- // The aws-sso-style write login: the CLI starts a `127.0.0.1` server, opens
233
- // the browser to the authorize URL (the console runs the passkey ceremony +
234
- // approves), receives the code on the loopback redirect, then exchanges it
235
- // here for a write-capable, passkey-fresh control-plane session
236
- // (`provenance=loopback_pkce`). PKCE generation + the loopback server live in
237
- // the Node CLI; these two methods are the isomorphic SDK seam.
238
- /**
239
- * Build the loopback-PKCE authorize URL the CLI opens in the browser. Pure —
240
- * no network, no Node APIs — so it is safe in any runtime. The caller
241
- * generates `codeChallenge`/`state`/`nonce` and runs the redirect server.
242
- */
243
- buildCliAuthorizeUrl(params) {
244
- const q = new URLSearchParams({
245
- redirect_uri: params.redirectUri,
246
- code_challenge: params.codeChallenge,
247
- code_challenge_method: "S256",
248
- state: params.state,
249
- nonce: params.nonce,
250
- });
251
- return `${this.client.apiBase}/agent/v1/control-plane/cli/authorize?${q.toString()}`;
252
- }
253
- /**
254
- * Exchange the loopback authorization code (+ PKCE verifier) for a
255
- * write-capable {@link ControlPlaneSession}. Unauthenticated — the code +
256
- * verifier are the credential.
257
- */
258
- async exchangeCliToken(params) {
259
- return this.client.request("/agent/v1/control-plane/cli/token", {
260
- method: "POST",
261
- body: {
262
- code: params.code,
263
- code_verifier: params.codeVerifier,
264
- redirect_uri: params.redirectUri,
265
- state: params.state,
266
- },
267
- withAuth: false,
268
- context: "exchanging CLI authorization code",
269
- });
270
- }
271
- }
272
- //# sourceMappingURL=operator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operator.js","sourceRoot":"","sources":["../../src/namespaces/operator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,QA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C,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;AAC/F,CAAC"}
@@ -1,49 +0,0 @@
1
- /** Node-only wallet-owned org claim helpers (v1.82, first-class-orgs). */
2
- import type { Run402 } from "../index.js";
3
- import type { ClaimResult } from "../namespaces/operator.js";
4
- export interface SignWalletOrgClaimOptions {
5
- apiBase?: string;
6
- allowancePath?: string;
7
- /** SIWX chain id; defaults to `eip155:84532`. Not pinned by the gateway (only the nonce is action-bound). */
8
- chainId?: string;
9
- issuedAt?: string;
10
- expirationTime?: string;
11
- }
12
- /**
13
- * Build the `SIGN-IN-WITH-X` wallet proof for a wallet-org claim: a fresh CAIP-122
14
- * SIWX message carrying the challenge `nonce`, signed by the local allowance.
15
- * The gateway binds the action/wallet/org/expiry server-side via the nonce, so
16
- * there is no canonical statement to match (simpler than `signCiDelegation`).
17
- */
18
- export declare function signWalletOrgClaim(nonce: string, opts?: SignWalletOrgClaimOptions): string;
19
- export interface ClaimWalletOrgOptions {
20
- /**
21
- * The wallet (0x EVM address) whose agent-owned org to claim. Defaults to the
22
- * active allowance address — the proof is always signed by the active wallet,
23
- * so an override must match the active wallet (select it via `--wallet`).
24
- */
25
- wallet?: string;
26
- /** Org id to claim — supply only on the second round, after a `select_org` result. */
27
- orgId?: string;
28
- /** Optional label to set on the claimed org. `null`/`""` clears. */
29
- displayName?: string | null;
30
- /** Override the control-plane session bearer (default: the local live session cache). */
31
- token?: string;
32
- apiBase?: string;
33
- allowancePath?: string;
34
- controlPlaneSessionPath?: string;
35
- chainId?: string;
36
- }
37
- /**
38
- * Run the full wallet-org claim dance (Node): resolve the human's write-capable
39
- * control-plane session from the local cache, request a challenge, sign the
40
- * nonce with the active allowance, and submit both proofs. Returns the
41
- * discriminated {@link ClaimResult} — a `select_org` result is returned, not
42
- * thrown; re-invoke with `{ orgId }` to claim a specific org (this re-runs a
43
- * fresh challenge + signature, which is fine: the nonce is claim-scoped).
44
- *
45
- * Does NOT drive the WebAuthn step-up: a stale session surfaces
46
- * `StepUpRequiredError` for the caller (CLI) to handle.
47
- */
48
- export declare function claimWalletOrg(r: Run402, opts?: ClaimWalletOrgOptions): Promise<ClaimResult>;
49
- //# sourceMappingURL=operator-claim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operator-claim.d.ts","sourceRoot":"","sources":["../../src/node/operator-claim.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAO1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6GAA6G;IAC7G,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,yBAA8B,GAAG,MAAM,CAyB9F;AAED,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sFAAsF;IACtF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,GAAE,qBAA0B,GAAG,OAAO,CAAC,WAAW,CAAC,CAqCtG"}
@@ -1,77 +0,0 @@
1
- /** Node-only wallet-owned org claim helpers (v1.82, first-class-orgs). */
2
- import { readAllowance } from "../../core-dist/allowance.js";
3
- import { buildSIWxAuthHeaders } from "../../core-dist/allowance-auth.js";
4
- import { getApiBase } from "../../core-dist/config.js";
5
- import { loadLiveControlPlaneSession } from "../../core-dist/control-plane-session.js";
6
- import { LocalError } from "../errors.js";
7
- /**
8
- * Build the `SIGN-IN-WITH-X` wallet proof for a wallet-org claim: a fresh CAIP-122
9
- * SIWX message carrying the challenge `nonce`, signed by the local allowance.
10
- * The gateway binds the action/wallet/org/expiry server-side via the nonce, so
11
- * there is no canonical statement to match (simpler than `signCiDelegation`).
12
- */
13
- export function signWalletOrgClaim(nonce, opts = {}) {
14
- if (!nonce || typeof nonce !== "string") {
15
- throw new LocalError("signWalletOrgClaim requires the challenge nonce", "signing wallet-org claim");
16
- }
17
- const allowance = readAllowance(opts.allowancePath);
18
- if (!allowance || !allowance.address || !allowance.privateKey) {
19
- throw new LocalError("No local allowance configured. Run `run402 init` or `run402 allowance create` before claiming a wallet org.", "signing wallet-org claim");
20
- }
21
- const apiBase = opts.apiBase ?? getApiBase();
22
- const url = new URL("/agent/v1/operator/claim-wallet-org", apiBase);
23
- const now = new Date();
24
- const headers = buildSIWxAuthHeaders({
25
- allowance,
26
- domain: url.hostname,
27
- uri: url.toString(),
28
- statement: "Claim wallet-owned org",
29
- chainId: opts.chainId ?? "eip155:84532",
30
- nonce,
31
- issuedAt: opts.issuedAt ?? now.toISOString(),
32
- expirationTime: opts.expirationTime ?? new Date(now.getTime() + 5 * 60 * 1000).toISOString(),
33
- });
34
- return headers["SIGN-IN-WITH-X"];
35
- }
36
- /**
37
- * Run the full wallet-org claim dance (Node): resolve the human's write-capable
38
- * control-plane session from the local cache, request a challenge, sign the
39
- * nonce with the active allowance, and submit both proofs. Returns the
40
- * discriminated {@link ClaimResult} — a `select_org` result is returned, not
41
- * thrown; re-invoke with `{ orgId }` to claim a specific org (this re-runs a
42
- * fresh challenge + signature, which is fine: the nonce is claim-scoped).
43
- *
44
- * Does NOT drive the WebAuthn step-up: a stale session surfaces
45
- * `StepUpRequiredError` for the caller (CLI) to handle.
46
- */
47
- export async function claimWalletOrg(r, opts = {}) {
48
- let token = opts.token;
49
- if (!token) {
50
- const session = loadLiveControlPlaneSession(opts.controlPlaneSessionPath);
51
- if (!session) {
52
- throw new LocalError("No live control-plane session. Run `run402 operator login --loopback` (write-capable, passkey-fresh) before claiming a wallet org.", "claiming wallet org");
53
- }
54
- token = session.control_plane_session_token;
55
- }
56
- let wallet = opts.wallet;
57
- if (!wallet) {
58
- const allowance = readAllowance(opts.allowancePath);
59
- if (!allowance || !allowance.address) {
60
- throw new LocalError("No wallet specified and no local allowance address found. Pass { wallet } or run `run402 init`.", "claiming wallet org");
61
- }
62
- wallet = allowance.address;
63
- }
64
- const challenge = await r.operator.claimWalletOrg.challenge({ wallet, token });
65
- const siwx = signWalletOrgClaim(challenge.nonce, {
66
- apiBase: opts.apiBase,
67
- allowancePath: opts.allowancePath,
68
- chainId: opts.chainId,
69
- });
70
- return r.operator.claimWalletOrg.submit({
71
- token,
72
- siwx,
73
- orgId: opts.orgId,
74
- displayName: opts.displayName,
75
- });
76
- }
77
- //# sourceMappingURL=operator-claim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operator-claim.js","sourceRoot":"","sources":["../../src/node/operator-claim.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAE1E,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAa1C;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAa,EAAE,OAAkC,EAAE;IACpF,IAAI,CAAC,K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