run402 2.39.0 → 2.39.1
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/org.mjs
CHANGED
|
@@ -45,7 +45,7 @@ const SUB_HELP = {
|
|
|
45
45
|
Usage:
|
|
46
46
|
run402 org whoami
|
|
47
47
|
|
|
48
|
-
Calls GET /agent/v1/whoami. Returns the control-plane principal (id/type/
|
|
48
|
+
Calls GET /agent/v1/whoami. Returns the control-plane principal (id/type/displayName/createdAt),
|
|
49
49
|
authenticator_id, and every org membership with role + status. This is the REMOTE
|
|
50
50
|
identity; for local wallet/profile state use \`run402 status\`.
|
|
51
51
|
`,
|
package/package.json
CHANGED
|
@@ -11,11 +11,21 @@ export type OrgRole = "owner" | "admin" | "developer" | "billing" | "viewer";
|
|
|
11
11
|
* A resolved control-plane principal. `type` is the principal kind
|
|
12
12
|
* (`"human"` / `"agent"` / `"ci"` — future kinds pass through). Unknown future
|
|
13
13
|
* fields are preserved via the index signature.
|
|
14
|
+
*
|
|
15
|
+
* NOTE: the `principal` sub-object is serialized in **camelCase** by the gateway
|
|
16
|
+
* (`displayName` / `createdAt` / `disabledAt`), unlike the snake_case
|
|
17
|
+
* `memberships[]` and top-level `authenticator_id`. The gateway OMITS
|
|
18
|
+
* `displayName` and `disabledAt` when they are null, so both are optional.
|
|
14
19
|
*/
|
|
15
20
|
export interface Principal {
|
|
16
21
|
id: string;
|
|
17
22
|
type: string;
|
|
18
|
-
|
|
23
|
+
/** Human-readable label (e.g. the wallet address for a SIWX human). Omitted when unset. */
|
|
24
|
+
displayName?: string;
|
|
25
|
+
/** ISO-8601 creation time. */
|
|
26
|
+
createdAt: string;
|
|
27
|
+
/** ISO-8601 timestamp present only when the principal is disabled (and thus fails auth); omitted otherwise. */
|
|
28
|
+
disabledAt?: string;
|
|
19
29
|
[key: string]: unknown;
|
|
20
30
|
}
|
|
21
31
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"org.types.d.ts","sourceRoot":"","sources":["../../src/namespaces/org.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,0FAA0F;AAC1F,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE7E
|
|
1
|
+
{"version":3,"file":"org.types.d.ts","sourceRoot":"","sources":["../../src/namespaces/org.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,0FAA0F;AAC1F,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE7E;;;;;;;;;GASG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,2FAA2F;IAC3F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,+GAA+G;IAC/G,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,aAAa,EAAE,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,0EAA0E;AAC1E,MAAM,WAAW,SAAS;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,GAA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