run402 2.41.1 → 2.43.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.
- package/lib/operator.mjs +75 -7
- package/lib/org.mjs +150 -67
- package/lib/projects.mjs +156 -13
- package/lib/status.mjs +5 -2
- package/package.json +1 -1
- package/sdk/dist/control-plane-credentials.d.ts +1 -1
- package/sdk/dist/control-plane-credentials.js +1 -1
- package/sdk/dist/index.d.ts +16 -7
- package/sdk/dist/index.d.ts.map +1 -1
- package/sdk/dist/index.js +19 -8
- package/sdk/dist/index.js.map +1 -1
- package/sdk/dist/namespaces/operator.d.ts +101 -0
- package/sdk/dist/namespaces/operator.d.ts.map +1 -1
- package/sdk/dist/namespaces/operator.js +60 -1
- package/sdk/dist/namespaces/operator.js.map +1 -1
- package/sdk/dist/namespaces/org.d.ts +73 -35
- package/sdk/dist/namespaces/org.d.ts.map +1 -1
- package/sdk/dist/namespaces/org.js +122 -71
- package/sdk/dist/namespaces/org.js.map +1 -1
- package/sdk/dist/namespaces/org.types.d.ts +51 -17
- package/sdk/dist/namespaces/org.types.d.ts.map +1 -1
- package/sdk/dist/namespaces/org.types.js +7 -4
- package/sdk/dist/namespaces/org.types.js.map +1 -1
- package/sdk/dist/namespaces/projects.d.ts +44 -16
- package/sdk/dist/namespaces/projects.d.ts.map +1 -1
- package/sdk/dist/namespaces/projects.js +72 -28
- package/sdk/dist/namespaces/projects.js.map +1 -1
- package/sdk/dist/namespaces/projects.types.d.ts +98 -10
- package/sdk/dist/namespaces/projects.types.d.ts.map +1 -1
- package/sdk/dist/node/index.d.ts +3 -1
- package/sdk/dist/node/index.d.ts.map +1 -1
- package/sdk/dist/node/index.js +2 -1
- package/sdk/dist/node/index.js.map +1 -1
- package/sdk/dist/node/operator-claim.d.ts +49 -0
- package/sdk/dist/node/operator-claim.d.ts.map +1 -0
- package/sdk/dist/node/operator-claim.js +77 -0
- package/sdk/dist/node/operator-claim.js.map +1 -0
- package/sdk/dist/scoped.d.ts +3 -2
- package/sdk/dist/scoped.d.ts.map +1 -1
- package/sdk/dist/scoped.js +5 -2
- package/sdk/dist/scoped.js.map +1 -1
package/lib/projects.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { readFileSync } from "fs";
|
|
2
2
|
import { loadKeyStore, API, allowanceAuthHeaders, resolveProjectId, getActiveProjectId } from "./config.mjs";
|
|
3
|
+
import { loadLiveOperatorSession } from "../core-dist/operator-session.js";
|
|
3
4
|
import { getSdk } from "./sdk.mjs";
|
|
4
5
|
import { reportSdkError, fail, parseFlagJson } from "./sdk-errors.mjs";
|
|
5
6
|
import { assertKnownFlags, failBadProjectId, flagValue, hasHelp, normalizeArgv, positionalArgs, resolvePositionalProject, validateRegularFile } from "./argparse.mjs";
|
|
@@ -11,9 +12,10 @@ Usage:
|
|
|
11
12
|
|
|
12
13
|
Subcommands:
|
|
13
14
|
quote Show pricing tiers
|
|
14
|
-
provision [--tier <tier>] [--name <n>] Provision a new Postgres project (pays via x402)
|
|
15
|
+
provision [--tier <tier>] [--name <n>] [--org <id>] Provision a new Postgres project (pays via x402)
|
|
15
16
|
use <id> Set the active project (used as default for other commands)
|
|
16
|
-
list
|
|
17
|
+
list [--org <id>] [--all] List your projects from the server (name, site_url, custom domains, org_id, active marker)
|
|
18
|
+
rename <id> --name <label> Rename a project (fix an auto-generated name)
|
|
17
19
|
info [id] Show project details: REST URL, keys
|
|
18
20
|
keys [id] Print anon_key and service_key as JSON
|
|
19
21
|
sql [id] "<query>" [--file <path>] [--params '<json>'] Run a SQL query (supports parameterized queries)
|
|
@@ -36,6 +38,9 @@ Examples:
|
|
|
36
38
|
run402 projects provision --tier hobby --name my-app
|
|
37
39
|
run402 projects use prj_abc123
|
|
38
40
|
run402 projects list
|
|
41
|
+
run402 projects list --org 11111111-2222-3333-4444-555555555555
|
|
42
|
+
run402 projects list --all
|
|
43
|
+
run402 projects rename prj_abc123 --name "My Site"
|
|
39
44
|
run402 projects info prj_abc123
|
|
40
45
|
run402 projects sql prj_abc123 "SELECT * FROM users LIMIT 5"
|
|
41
46
|
run402 projects sql prj_abc123 "SELECT * FROM users WHERE id = $1" --params '[42]'
|
|
@@ -50,11 +55,25 @@ Examples:
|
|
|
50
55
|
run402 projects keys prj_abc123
|
|
51
56
|
run402 projects delete prj_abc123 --confirm
|
|
52
57
|
|
|
58
|
+
Global options (any command):
|
|
59
|
+
--wallet <name> Use a named wallet (profile) for this command. Precedence:
|
|
60
|
+
--wallet > RUN402_WALLET env > nearest .run402.json binding >
|
|
61
|
+
'run402 wallets use' default > 'default'. See 'run402 wallets'.
|
|
62
|
+
|
|
53
63
|
Notes:
|
|
54
64
|
- <id> is the project_id shown in 'run402 projects list' (prefix: 'prj_')
|
|
55
65
|
- Most commands that take <id> default to the active project when omitted
|
|
56
66
|
(set it with 'run402 projects use <id>'). Project IDs start with 'prj_';
|
|
57
67
|
any first positional that doesn't is treated as the next argument instead.
|
|
68
|
+
- 'list' is a SERVER read, not the local keystore: it shows every project the
|
|
69
|
+
active wallet can reach (membership-scoped), with name, site_url, custom
|
|
70
|
+
domains, and org_id. '--org <id>' filters to one org; '--all' reads the
|
|
71
|
+
cross-wallet inventory for every wallet controlling your operator email
|
|
72
|
+
(run 'run402 operator login' first for the union, else it falls back to the
|
|
73
|
+
current wallet's slice). The 'active' marker still comes from local state.
|
|
74
|
+
- 'rename' fixes a project's display name. You must be an org admin (or hold a
|
|
75
|
+
project:write grant) on the owning org; it works even if the project was
|
|
76
|
+
never provisioned from this machine.
|
|
58
77
|
- 'rest' uses PostgREST query syntax (table name + optional query string)
|
|
59
78
|
- 'provision' requires a funded allowance — payment is automatic via x402
|
|
60
79
|
- 'apply-expose' declares the full authorization surface (tables, views, RPCs)
|
|
@@ -76,14 +95,63 @@ Notes:
|
|
|
76
95
|
`;
|
|
77
96
|
|
|
78
97
|
const SUB_HELP = {
|
|
98
|
+
list: `run402 projects list — List your projects from the server
|
|
99
|
+
|
|
100
|
+
Usage:
|
|
101
|
+
run402 projects list [--org <id>] [--all]
|
|
102
|
+
|
|
103
|
+
Options:
|
|
104
|
+
--org <id> Filter to projects owned by one org (billing account).
|
|
105
|
+
Authorize-before-reveal: a non-member or guessed id is a
|
|
106
|
+
403; a non-UUID id is a 400.
|
|
107
|
+
--all Read the cross-wallet inventory across every wallet
|
|
108
|
+
controlling your operator email. Run 'run402 operator
|
|
109
|
+
login' first for the union; without a session it falls
|
|
110
|
+
back to the current wallet's slice. Mutually exclusive
|
|
111
|
+
with --org.
|
|
112
|
+
|
|
113
|
+
Notes:
|
|
114
|
+
- This is a SERVER read (membership-scoped), not the local keystore. Each row
|
|
115
|
+
has project_id, name, site_url, custom_domains, org_id, status, and an
|
|
116
|
+
'active' marker derived from local state.
|
|
117
|
+
- Tier and lifecycle live on the billing account, not each project — use
|
|
118
|
+
'run402 status' or 'run402 tier status' for the account view.
|
|
119
|
+
|
|
120
|
+
Examples:
|
|
121
|
+
run402 projects list
|
|
122
|
+
run402 projects list --org 11111111-2222-3333-4444-555555555555
|
|
123
|
+
run402 projects list --all
|
|
124
|
+
run402 projects list --wallet work
|
|
125
|
+
`,
|
|
126
|
+
rename: `run402 projects rename — Rename a project
|
|
127
|
+
|
|
128
|
+
Usage:
|
|
129
|
+
run402 projects rename <id> --name <label>
|
|
130
|
+
|
|
131
|
+
Arguments:
|
|
132
|
+
<id> Project ID (prefix: 'prj_'). Required.
|
|
133
|
+
|
|
134
|
+
Options:
|
|
135
|
+
--name <label> New display name (1-200 chars, no control characters).
|
|
136
|
+
|
|
137
|
+
Notes:
|
|
138
|
+
- You must be an org admin (or hold a project:write grant) on the owning org.
|
|
139
|
+
Authorize-before-reveal: an unauthorized or guessed id returns 403, never a
|
|
140
|
+
not-found oracle. Works even if the project isn't in the local keystore.
|
|
141
|
+
|
|
142
|
+
Examples:
|
|
143
|
+
run402 projects rename prj_abc123 --name "My Site"
|
|
144
|
+
`,
|
|
79
145
|
provision: `run402 projects provision — Provision a new Postgres project
|
|
80
146
|
|
|
81
147
|
Usage:
|
|
82
|
-
run402 projects provision [--tier <tier>] [--name <name>]
|
|
148
|
+
run402 projects provision [--tier <tier>] [--name <name>] [--org <id>]
|
|
83
149
|
|
|
84
150
|
Options:
|
|
85
151
|
--tier <tier> Tier for the new project (default: prototype)
|
|
86
152
|
--name <name> Human-readable name for the project
|
|
153
|
+
--org <id> Provision into an EXISTING org (needs developer+ on it).
|
|
154
|
+
Omit for the cold-start path. Tier is org-governed.
|
|
87
155
|
|
|
88
156
|
Notes:
|
|
89
157
|
- Payment is automatic via x402; requires a funded allowance
|
|
@@ -93,6 +161,7 @@ Examples:
|
|
|
93
161
|
run402 projects provision
|
|
94
162
|
run402 projects provision --tier prototype
|
|
95
163
|
run402 projects provision --tier hobby --name my-app
|
|
164
|
+
run402 projects provision --org org_abc123
|
|
96
165
|
`,
|
|
97
166
|
sql: `run402 projects sql — Run a SQL query against a project's database
|
|
98
167
|
|
|
@@ -184,12 +253,24 @@ async function quote() {
|
|
|
184
253
|
}
|
|
185
254
|
|
|
186
255
|
async function provision(args) {
|
|
187
|
-
const opts = { tier: "prototype", name: undefined };
|
|
256
|
+
const opts = { tier: "prototype", name: undefined, orgId: undefined };
|
|
188
257
|
for (let i = 0; i < args.length; i++) {
|
|
189
258
|
if (args[i] === "--tier" && args[i + 1]) opts.tier = args[++i];
|
|
190
259
|
// Use !== undefined so an empty-string value is captured (and rejected
|
|
191
260
|
// below) rather than silently dropped by the falsy-check pattern (GH-176).
|
|
192
261
|
if (args[i] === "--name" && args[i + 1] !== undefined) opts.name = args[++i];
|
|
262
|
+
// --org targets an EXISTING org (v1.82); caller needs developer+ on it.
|
|
263
|
+
// Omitted = cold-start. Tier is org-governed, so --tier is irrelevant here
|
|
264
|
+
// (the gateway ignores a client-supplied tier in all cases).
|
|
265
|
+
if (args[i] === "--org" && args[i + 1] !== undefined) opts.orgId = args[++i];
|
|
266
|
+
}
|
|
267
|
+
if (opts.orgId === "") {
|
|
268
|
+
fail({
|
|
269
|
+
code: "BAD_USAGE",
|
|
270
|
+
message: "--org must not be empty.",
|
|
271
|
+
details: { field: "--org" },
|
|
272
|
+
hint: "Pass an org id (run402 org list), or omit --org for the cold-start path.",
|
|
273
|
+
});
|
|
193
274
|
}
|
|
194
275
|
// Validate --name when provided. Omitted --name lets the server pick a
|
|
195
276
|
// default. The same envelope should also be enforced server-side (GH-176).
|
|
@@ -225,7 +306,7 @@ async function provision(args) {
|
|
|
225
306
|
|
|
226
307
|
const activeBefore = getActiveProjectId();
|
|
227
308
|
try {
|
|
228
|
-
const data = await getSdk().projects.provision({ tier: opts.tier, name: opts.name });
|
|
309
|
+
const data = await getSdk().projects.provision({ tier: opts.tier, name: opts.name, orgId: opts.orgId });
|
|
229
310
|
const activeAfter = getActiveProjectId();
|
|
230
311
|
const out = { ...data };
|
|
231
312
|
if (activeBefore && activeAfter && activeBefore !== activeAfter) {
|
|
@@ -360,12 +441,71 @@ async function getExpose(projectId) {
|
|
|
360
441
|
}
|
|
361
442
|
}
|
|
362
443
|
|
|
363
|
-
async function list() {
|
|
364
|
-
const
|
|
365
|
-
const
|
|
366
|
-
if (
|
|
367
|
-
|
|
368
|
-
|
|
444
|
+
async function list(args = []) {
|
|
445
|
+
const org = flagValue(args, "--org");
|
|
446
|
+
const all = Array.isArray(args) && args.includes("--all");
|
|
447
|
+
if (all && org) {
|
|
448
|
+
fail({
|
|
449
|
+
code: "BAD_USAGE",
|
|
450
|
+
message: "--all and --org are mutually exclusive.",
|
|
451
|
+
hint: "--all reads the cross-wallet operator inventory; --org filters the membership-scoped list to one org.",
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// `--all` reads the operator email-union inventory across every wallet
|
|
456
|
+
// controlling your verified email. Pass the cached operator-session token
|
|
457
|
+
// when present (cross-wallet union); otherwise the SDK falls back to SIWX
|
|
458
|
+
// wallet auth and the gateway returns just this wallet's slice.
|
|
459
|
+
const opts = {};
|
|
460
|
+
if (all) {
|
|
461
|
+
opts.all = true;
|
|
462
|
+
const session = loadLiveOperatorSession();
|
|
463
|
+
if (session) opts.token = session.operator_session_token;
|
|
464
|
+
} else if (org) {
|
|
465
|
+
opts.org = org;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
// Active marker comes from local state; the inventory itself is the server
|
|
469
|
+
// read (NOT the keystore), so it surfaces every project the wallet/email can
|
|
470
|
+
// reach — including ones never provisioned from this machine.
|
|
471
|
+
const activeId = getActiveProjectId();
|
|
472
|
+
|
|
473
|
+
try {
|
|
474
|
+
const data = await getSdk().projects.list(opts);
|
|
475
|
+
const rows = (data.projects || []).map((p) => ({
|
|
476
|
+
project_id: p.id,
|
|
477
|
+
name: p.name ?? null,
|
|
478
|
+
active: p.id === activeId,
|
|
479
|
+
site_url: p.site_url ?? null,
|
|
480
|
+
custom_domains: p.custom_domains ?? [],
|
|
481
|
+
org_id: p.billing_account_id ?? null,
|
|
482
|
+
status: p.status ?? p.effective_status ?? null,
|
|
483
|
+
}));
|
|
484
|
+
const out = { projects: rows };
|
|
485
|
+
if (data.scope !== undefined) out.scope = data.scope;
|
|
486
|
+
if (data.has_more !== undefined) out.has_more = data.has_more;
|
|
487
|
+
if (data.next_cursor !== undefined && data.next_cursor !== null) out.next_cursor = data.next_cursor;
|
|
488
|
+
console.log(JSON.stringify(out, null, 2));
|
|
489
|
+
} catch (err) {
|
|
490
|
+
reportSdkError(err);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
async function rename(projectId, args = []) {
|
|
495
|
+
const name = flagValue(args, "--name");
|
|
496
|
+
if (!name) {
|
|
497
|
+
fail({
|
|
498
|
+
code: "BAD_USAGE",
|
|
499
|
+
message: "Missing --name.",
|
|
500
|
+
hint: "run402 projects rename <id> --name \"My Site\"",
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
try {
|
|
504
|
+
const data = await getSdk().projects.rename(projectId, name);
|
|
505
|
+
console.log(JSON.stringify({ project_id: data.project_id, name: data.name, renamed: true }, null, 2));
|
|
506
|
+
} catch (err) {
|
|
507
|
+
reportSdkError(err);
|
|
508
|
+
}
|
|
369
509
|
}
|
|
370
510
|
|
|
371
511
|
async function info(projectId) {
|
|
@@ -555,7 +695,9 @@ async function deleteProject(projectId, args = []) {
|
|
|
555
695
|
}
|
|
556
696
|
|
|
557
697
|
const FLAGS_BY_SUB = {
|
|
558
|
-
provision: { known: ["--tier", "--name"], values: ["--tier", "--name"] },
|
|
698
|
+
provision: { known: ["--tier", "--name", "--org"], values: ["--tier", "--name", "--org"] },
|
|
699
|
+
list: { known: ["--org", "--all"], values: ["--org"] },
|
|
700
|
+
rename: { known: ["--name"], values: ["--name"] },
|
|
559
701
|
sql: { known: ["--file", "--params"], values: ["--file", "--params"] },
|
|
560
702
|
costs: { known: ["--window"], values: ["--window"] },
|
|
561
703
|
"apply-expose": { known: ["--file"], values: ["--file"] },
|
|
@@ -595,7 +737,8 @@ export async function run(sub, args) {
|
|
|
595
737
|
case "quote": await quote(); break;
|
|
596
738
|
case "provision": await provision(args); break;
|
|
597
739
|
case "use": await use(args[0]); break;
|
|
598
|
-
case "list": await list(); break;
|
|
740
|
+
case "list": await list(args); break;
|
|
741
|
+
case "rename": { const { projectId, rest } = resolvePositionalProject(args, { rejectBareFirst: true, valueFlags: FLAGS_BY_SUB.rename.values }); await rename(projectId, rest); break; }
|
|
599
742
|
case "info": { const { projectId } = resolvePositionalProject(args, { rejectBareFirst: true }); await info(projectId); break; }
|
|
600
743
|
case "keys": { const { projectId } = resolvePositionalProject(args, { rejectBareFirst: true }); await keys(projectId); break; }
|
|
601
744
|
case "sql": { const { projectId, rest } = resolvePositionalProject(args, { maxBarePositionals: 1, valueFlags: FLAGS_BY_SUB.sql.values, rejectBareFirstWhenFlagPresent: ["--file"] }); await sqlCmd(projectId, rest); break; }
|
package/lib/status.mjs
CHANGED
|
@@ -90,11 +90,14 @@ export async function run(args = []) {
|
|
|
90
90
|
const wallet = allowance.address.toLowerCase();
|
|
91
91
|
const rail = allowance.rail || "x402";
|
|
92
92
|
|
|
93
|
-
// Parallel API calls: tier + billing balance + server-side projects + on-chain wallet balance
|
|
93
|
+
// Parallel API calls: tier + billing balance + server-side projects + on-chain wallet balance.
|
|
94
|
+
// projects.list() is the membership-scoped named inventory (project-findability);
|
|
95
|
+
// SIWX wallet auth is signed from the allowance. Best-effort — a missing
|
|
96
|
+
// allowance yields null and we fall back to the local keystore below.
|
|
94
97
|
const [tier, billing, remote, walletBalance] = await Promise.all([
|
|
95
98
|
getSdk().tier.status().catch(() => null),
|
|
96
99
|
getSdk().billing.checkBalance(wallet).catch(() => null),
|
|
97
|
-
getSdk().projects.list(
|
|
100
|
+
getSdk().projects.list().catch(() => null),
|
|
98
101
|
readWalletBalanceUsdMicros(rail, allowance.address),
|
|
99
102
|
]);
|
|
100
103
|
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* / `passkeyVerify` / the loopback-PKCE `exchangeCliToken`, then:
|
|
10
10
|
*
|
|
11
11
|
* const r = run402({ credentials: controlPlaneSessionCredentials({ token }) });
|
|
12
|
-
* await r.
|
|
12
|
+
* await r.orgs.whoami(); // resolves the principal + memberships
|
|
13
13
|
*
|
|
14
14
|
* High-stakes writes still require a fresh passkey — an `email`/`oauth` session
|
|
15
15
|
* gets {@link StepUpRequiredError}; run the step-up ceremony
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* / `passkeyVerify` / the loopback-PKCE `exchangeCliToken`, then:
|
|
10
10
|
*
|
|
11
11
|
* const r = run402({ credentials: controlPlaneSessionCredentials({ token }) });
|
|
12
|
-
* await r.
|
|
12
|
+
* await r.orgs.whoami(); // resolves the principal + memberships
|
|
13
13
|
*
|
|
14
14
|
* High-stakes writes still require a fresh passkey — an `email`/`oauth` session
|
|
15
15
|
* gets {@link StepUpRequiredError}; run the step-up ceremony
|
package/sdk/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ import { Deploy } from "./namespaces/deploy.js";
|
|
|
30
30
|
import { Ci } from "./namespaces/ci.js";
|
|
31
31
|
import { Jobs } from "./namespaces/jobs.js";
|
|
32
32
|
import { Operator } from "./namespaces/operator.js";
|
|
33
|
-
import {
|
|
33
|
+
import { Orgs, ScopedOrg } from "./namespaces/org.js";
|
|
34
34
|
import { Grants } from "./namespaces/grants.js";
|
|
35
35
|
import type { ContentSource, FileSet } from "./namespaces/deploy.types.js";
|
|
36
36
|
import { ScopedRun402 } from "./scoped.js";
|
|
@@ -85,12 +85,13 @@ export declare class Run402 {
|
|
|
85
85
|
*/
|
|
86
86
|
readonly operator: Operator;
|
|
87
87
|
/**
|
|
88
|
-
* Org
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
88
|
+
* Org collection + identity (gateway v1.77+, first-class in v1.82):
|
|
89
|
+
* `r.orgs.create()` / `list()` / `whoami()`. For operations on a single org by
|
|
90
|
+
* id use the scoped sub-client {@link Run402.org} (`r.org(id).get()` /
|
|
91
|
+
* `rename()` / `members.*` / `invites.*` / `audit()`). Distinct from the local,
|
|
92
|
+
* network-free {@link Run402.whoami}.
|
|
92
93
|
*/
|
|
93
|
-
readonly
|
|
94
|
+
readonly orgs: Orgs;
|
|
94
95
|
/**
|
|
95
96
|
* Per-project capability grants for agent/CI principals. Also available
|
|
96
97
|
* project-scoped as `r.project(id).grants`.
|
|
@@ -128,6 +129,14 @@ export declare class Run402 {
|
|
|
128
129
|
* use {@link project} instead.
|
|
129
130
|
*/
|
|
130
131
|
useProject(id: string): Promise<ScopedRun402>;
|
|
132
|
+
/**
|
|
133
|
+
* Return an org-scoped sub-client with `id` pre-bound — the org analog of
|
|
134
|
+
* {@link Run402.project}. Instance operations (`get`, `rename`, `members.*`,
|
|
135
|
+
* `invites.*`, `audit`) drop their org-id argument. Synchronous: an org id is
|
|
136
|
+
* always explicit (there is no "active org" fallback). Collection/identity
|
|
137
|
+
* operations (`create`, `list`, `whoami`) live on {@link Run402.orgs}.
|
|
138
|
+
*/
|
|
139
|
+
org(id: string): ScopedOrg;
|
|
131
140
|
/**
|
|
132
141
|
* Identify the active wallet and project: `{ local_label, server_label,
|
|
133
142
|
* address, activeProject }`. `local_label` is the local wallet/profile
|
|
@@ -208,7 +217,7 @@ export type * from "./namespaces/jobs.js";
|
|
|
208
217
|
export type * from "./namespaces/operator.js";
|
|
209
218
|
export { OperatorSession } from "./namespaces/operator-session.js";
|
|
210
219
|
export type * from "./namespaces/operator-session.js";
|
|
211
|
-
export {
|
|
220
|
+
export { Orgs, ScopedOrg, OrgMembers, OrgInvites } from "./namespaces/org.js";
|
|
212
221
|
export type * from "./namespaces/org.types.js";
|
|
213
222
|
export { Grants } from "./namespaces/grants.js";
|
|
214
223
|
export type * from "./namespaces/grants.types.js";
|
package/sdk/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD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;AAC3C,mBAAmB,8BAA8B,CAAC;AAClD,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,8BAA8B,CAAC;AAClD,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,uBAAuB,CAAC;AAC3C,mBAAmB,iCAAiC,CAAC;AACrD,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,0BAA0B,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,mBAAmB,kCAAkC,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9E,mBAAmB,2BAA2B,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,mBAAmB,8BAA8B,CAAC;AAClD,mBAAmB,gCAAgC,CAAC;AACpD,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,+BAA+B,CAAC;AACnD,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,uBAAuB,CAAC;AAC3C,mBAAmB,4BAA4B,CAAC;AAChD,mBAAmB,sBAAsB,CAAC"}
|
package/sdk/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import { Deploy } from "./namespaces/deploy.js";
|
|
|
30
30
|
import { Ci } from "./namespaces/ci.js";
|
|
31
31
|
import { Jobs } from "./namespaces/jobs.js";
|
|
32
32
|
import { Operator } from "./namespaces/operator.js";
|
|
33
|
-
import {
|
|
33
|
+
import { Orgs, ScopedOrg } from "./namespaces/org.js";
|
|
34
34
|
import { Grants } from "./namespaces/grants.js";
|
|
35
35
|
import { ScopedRun402 } from "./scoped.js";
|
|
36
36
|
import { LocalError } from "./errors.js";
|
|
@@ -72,12 +72,13 @@ export class Run402 {
|
|
|
72
72
|
*/
|
|
73
73
|
operator;
|
|
74
74
|
/**
|
|
75
|
-
* Org
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
75
|
+
* Org collection + identity (gateway v1.77+, first-class in v1.82):
|
|
76
|
+
* `r.orgs.create()` / `list()` / `whoami()`. For operations on a single org by
|
|
77
|
+
* id use the scoped sub-client {@link Run402.org} (`r.org(id).get()` /
|
|
78
|
+
* `rename()` / `members.*` / `invites.*` / `audit()`). Distinct from the local,
|
|
79
|
+
* network-free {@link Run402.whoami}.
|
|
79
80
|
*/
|
|
80
|
-
|
|
81
|
+
orgs;
|
|
81
82
|
/**
|
|
82
83
|
* Per-project capability grants for agent/CI principals. Also available
|
|
83
84
|
* project-scoped as `r.project(id).grants`.
|
|
@@ -133,7 +134,7 @@ export class Run402 {
|
|
|
133
134
|
this.ci = new Ci(client);
|
|
134
135
|
this.jobs = new Jobs(client);
|
|
135
136
|
this.operator = new Operator(client);
|
|
136
|
-
this.
|
|
137
|
+
this.orgs = new Orgs(client);
|
|
137
138
|
this.grants = new Grants(client);
|
|
138
139
|
}
|
|
139
140
|
/**
|
|
@@ -184,6 +185,16 @@ export class Run402 {
|
|
|
184
185
|
await this.projects.use(id);
|
|
185
186
|
return this.project(id);
|
|
186
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* Return an org-scoped sub-client with `id` pre-bound — the org analog of
|
|
190
|
+
* {@link Run402.project}. Instance operations (`get`, `rename`, `members.*`,
|
|
191
|
+
* `invites.*`, `audit`) drop their org-id argument. Synchronous: an org id is
|
|
192
|
+
* always explicit (there is no "active org" fallback). Collection/identity
|
|
193
|
+
* operations (`create`, `list`, `whoami`) live on {@link Run402.orgs}.
|
|
194
|
+
*/
|
|
195
|
+
org(id) {
|
|
196
|
+
return new ScopedOrg(this.#client, id);
|
|
197
|
+
}
|
|
187
198
|
/**
|
|
188
199
|
* Identify the active wallet and project: `{ local_label, server_label,
|
|
189
200
|
* address, activeProject }`. `local_label` is the local wallet/profile
|
|
@@ -248,6 +259,6 @@ export { Ci, CI_AUDIENCE, CI_GITHUB_ACTIONS_ISSUER, CI_GITHUB_ACTIONS_PROVIDER,
|
|
|
248
259
|
export { ScopedRun402 } from "./scoped.js";
|
|
249
260
|
export { Transfers } from "./namespaces/transfers.js";
|
|
250
261
|
export { OperatorSession } from "./namespaces/operator-session.js";
|
|
251
|
-
export {
|
|
262
|
+
export { Orgs, ScopedOrg, OrgMembers, OrgInvites } from "./namespaces/org.js";
|
|
252
263
|
export { Grants } from "./namespaces/grants.js";
|
|
253
264
|
//# sourceMappingURL=index.js.map
|
package/sdk/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAkC,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CA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YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAiBtD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -114,6 +114,101 @@ export interface CliTokenExchange {
|
|
|
114
114
|
/** Must match the `state` used at authorize time. */
|
|
115
115
|
state: string;
|
|
116
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* A claim challenge (`POST …/claim-wallet-org/challenge`). The wallet must sign a
|
|
119
|
+
* fresh SIWX message carrying {@link ClaimChallenge.nonce}; that signed message
|
|
120
|
+
* becomes the `SIGN-IN-WITH-X` header on {@link ClaimWalletOrg.submit}. Reveals
|
|
121
|
+
* nothing about the wallet's orgs — control is proven only at claim time.
|
|
122
|
+
*/
|
|
123
|
+
export interface ClaimChallenge {
|
|
124
|
+
challenge_id: string;
|
|
125
|
+
nonce: string;
|
|
126
|
+
expires_at: string;
|
|
127
|
+
sign_instructions?: {
|
|
128
|
+
scheme?: string;
|
|
129
|
+
nonce?: string;
|
|
130
|
+
note?: string;
|
|
131
|
+
[key: string]: unknown;
|
|
132
|
+
};
|
|
133
|
+
[key: string]: unknown;
|
|
134
|
+
}
|
|
135
|
+
/** Input to {@link ClaimWalletOrg.challenge}. */
|
|
136
|
+
export interface ClaimChallengeInput {
|
|
137
|
+
/** The wallet (0x EVM address) whose agent-owned org is being claimed. */
|
|
138
|
+
wallet: string;
|
|
139
|
+
/**
|
|
140
|
+
* The human's write-capable control-plane session bearer. Falls back to the
|
|
141
|
+
* client's default auth when omitted — pass it explicitly unless the client was
|
|
142
|
+
* constructed with control-plane-session credentials.
|
|
143
|
+
*/
|
|
144
|
+
token?: string;
|
|
145
|
+
}
|
|
146
|
+
/** Input to {@link ClaimWalletOrg.submit}. */
|
|
147
|
+
export interface ClaimSubmitInput {
|
|
148
|
+
/**
|
|
149
|
+
* The fresh SIWX proof over the challenge nonce — the value of the
|
|
150
|
+
* `SIGN-IN-WITH-X` header (the wallet proof). In Node, build it with
|
|
151
|
+
* `signWalletOrgClaim` from `@run402/sdk/node`.
|
|
152
|
+
*/
|
|
153
|
+
siwx: string;
|
|
154
|
+
/** The human's control-plane session bearer (see {@link ClaimChallengeInput.token}). */
|
|
155
|
+
token?: string;
|
|
156
|
+
/**
|
|
157
|
+
* Target org id. Omit on the first submit; supply it on the second round when
|
|
158
|
+
* the first returned `select_org` (the wallet's agent owns more than one org).
|
|
159
|
+
* The same `token` + `siwx` are reused — no re-challenge, no re-sign.
|
|
160
|
+
*/
|
|
161
|
+
orgId?: string;
|
|
162
|
+
/** Optional label to set on the claimed org at the same time. `null`/`""` clears. */
|
|
163
|
+
displayName?: string | null;
|
|
164
|
+
}
|
|
165
|
+
/** One org offered for selection when a wallet's agent owns more than one (`select_org`). */
|
|
166
|
+
export interface SelectableOrg {
|
|
167
|
+
org_id: string;
|
|
168
|
+
display_name: string | null;
|
|
169
|
+
tier: string;
|
|
170
|
+
[key: string]: unknown;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Result of {@link ClaimWalletOrg.submit}. A discriminated union: `"claimed"` on
|
|
174
|
+
* success, or `"select_org"` when the wallet's agent owns more than one org and
|
|
175
|
+
* the caller must re-submit with a chosen `orgId`. `select_org` is a normal
|
|
176
|
+
* (non-error) result — it is returned, never thrown.
|
|
177
|
+
*/
|
|
178
|
+
export type ClaimResult = {
|
|
179
|
+
status: "claimed";
|
|
180
|
+
org_id: string;
|
|
181
|
+
display_name: string | null;
|
|
182
|
+
role: string;
|
|
183
|
+
/** True when the human already owned the org (idempotent re-claim). */
|
|
184
|
+
already_owned?: boolean;
|
|
185
|
+
[key: string]: unknown;
|
|
186
|
+
} | {
|
|
187
|
+
status: "select_org";
|
|
188
|
+
selectable_orgs: SelectableOrg[];
|
|
189
|
+
[key: string]: unknown;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Wallet-owned org claim — `r.operator.claimWalletOrg.*`. The isomorphic
|
|
193
|
+
* (raw-proof) seam: `challenge` issues a nonce; `submit` posts the dual proof
|
|
194
|
+
* (control-plane session bearer + a fresh `SIGN-IN-WITH-X` wallet signature). The
|
|
195
|
+
* Node convenience `signWalletOrgClaim` / `claimWalletOrg` in `@run402/sdk/node`
|
|
196
|
+
* runs the whole dance (read session → challenge → sign → submit).
|
|
197
|
+
*/
|
|
198
|
+
export declare class ClaimWalletOrg {
|
|
199
|
+
private readonly client;
|
|
200
|
+
constructor(client: Client);
|
|
201
|
+
/** Request a single-use challenge nonce the wallet must sign (`POST …/claim-wallet-org/challenge`). */
|
|
202
|
+
challenge(input: ClaimChallengeInput): Promise<ClaimChallenge>;
|
|
203
|
+
/**
|
|
204
|
+
* Execute the claim (`POST …/claim-wallet-org`) carrying both proofs: the
|
|
205
|
+
* control-plane session bearer (the human) and the `SIGN-IN-WITH-X` wallet
|
|
206
|
+
* signature. Returns a discriminated {@link ClaimResult}; a `select_org` result
|
|
207
|
+
* is returned (not thrown). Throws {@link StepUpRequiredError} when the session
|
|
208
|
+
* is not passkey-fresh, and `ApiError` (`WALLET_PROOF_INVALID`) on a bad proof.
|
|
209
|
+
*/
|
|
210
|
+
submit(input: ClaimSubmitInput): Promise<ClaimResult>;
|
|
211
|
+
}
|
|
117
212
|
export declare class Operator {
|
|
118
213
|
private readonly client;
|
|
119
214
|
/**
|
|
@@ -125,6 +220,12 @@ export declare class Operator {
|
|
|
125
220
|
* CLI write-login below. See {@link OperatorSession}.
|
|
126
221
|
*/
|
|
127
222
|
readonly session: OperatorSession;
|
|
223
|
+
/**
|
|
224
|
+
* Wallet-owned org claim (v1.82): `r.operator.claimWalletOrg.challenge()` +
|
|
225
|
+
* `.submit()`. The raw dual-proof seam; the Node convenience `claimWalletOrg`
|
|
226
|
+
* in `@run402/sdk/node` runs the full dance.
|
|
227
|
+
*/
|
|
228
|
+
readonly claimWalletOrg: ClaimWalletOrg;
|
|
128
229
|
constructor(client: Client);
|
|
129
230
|
/**
|
|
130
231
|
* Begin the device-authorization flow. Unauthenticated. Returns the codes the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../src/namespaces/operator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,oDAAoD;AACpD,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,uEAAuE;IACvE,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,8EAA8E;AAC9E,MAAM,WAAW,oBAAoB;IACnC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GACxB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,oBAAoB,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,uBAAuB,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,GACzB;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,CAAC;AAE9B;;;;;GAKG;AACH,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