@run402/sdk 4.96.0 → 4.97.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 (79) hide show
  1. package/README.md +3 -3
  2. package/dist/errors.d.ts +1 -1
  3. package/dist/errors.js +2 -2
  4. package/dist/errors.js.map +1 -1
  5. package/dist/grant-key-credentials.d.ts +38 -0
  6. package/dist/grant-key-credentials.d.ts.map +1 -0
  7. package/dist/grant-key-credentials.js +42 -0
  8. package/dist/grant-key-credentials.js.map +1 -0
  9. package/dist/index.d.ts +7 -14
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +6 -13
  12. package/dist/index.js.map +1 -1
  13. package/dist/namespaces/billing.d.ts +1 -1
  14. package/dist/namespaces/billing.js +1 -1
  15. package/dist/namespaces/buzz.js +1 -1
  16. package/dist/namespaces/buzz.js.map +1 -1
  17. package/dist/namespaces/credentials.d.ts +4 -4
  18. package/dist/namespaces/credentials.js +4 -4
  19. package/dist/namespaces/deploy.js +5 -5
  20. package/dist/namespaces/deploy.js.map +1 -1
  21. package/dist/namespaces/domains.d.ts +1 -1
  22. package/dist/namespaces/domains.js +1 -1
  23. package/dist/namespaces/errors.d.ts +1 -1
  24. package/dist/namespaces/errors.js +2 -2
  25. package/dist/namespaces/escalations.d.ts +2 -2
  26. package/dist/namespaces/escalations.js +2 -2
  27. package/dist/namespaces/escalations.types.d.ts +3 -3
  28. package/dist/namespaces/escalations.types.d.ts.map +1 -1
  29. package/dist/namespaces/events.d.ts +1 -1
  30. package/dist/namespaces/events.js +1 -1
  31. package/dist/namespaces/functions.js +1 -1
  32. package/dist/namespaces/functions.js.map +1 -1
  33. package/dist/namespaces/grants.d.ts +43 -9
  34. package/dist/namespaces/grants.d.ts.map +1 -1
  35. package/dist/namespaces/grants.js +99 -10
  36. package/dist/namespaces/grants.js.map +1 -1
  37. package/dist/namespaces/grants.types.d.ts +120 -15
  38. package/dist/namespaces/grants.types.d.ts.map +1 -1
  39. package/dist/namespaces/grants.types.js +12 -3
  40. package/dist/namespaces/grants.types.js.map +1 -1
  41. package/dist/namespaces/identity-links.types.d.ts +2 -2
  42. package/dist/namespaces/identity-links.types.d.ts.map +1 -1
  43. package/dist/namespaces/org.d.ts +1 -1
  44. package/dist/namespaces/org.js +1 -1
  45. package/dist/namespaces/projects.d.ts +1 -1
  46. package/dist/namespaces/projects.js +1 -1
  47. package/dist/namespaces/repos.js +2 -2
  48. package/dist/namespaces/repos.js.map +1 -1
  49. package/dist/namespaces/rooms.d.ts +3 -3
  50. package/dist/namespaces/rooms.js +3 -3
  51. package/dist/node/credentials.d.ts +9 -9
  52. package/dist/node/credentials.d.ts.map +1 -1
  53. package/dist/node/credentials.js +12 -12
  54. package/dist/node/credentials.js.map +1 -1
  55. package/dist/node/index.d.ts +5 -5
  56. package/dist/node/index.d.ts.map +1 -1
  57. package/dist/node/index.js +2 -2
  58. package/dist/node/index.js.map +1 -1
  59. package/dist/project-auth-classification.d.ts +8 -8
  60. package/dist/project-auth-classification.d.ts.map +1 -1
  61. package/dist/project-auth-classification.js +7 -7
  62. package/dist/project-auth-classification.js.map +1 -1
  63. package/dist/scoped.d.ts +6 -14
  64. package/dist/scoped.d.ts.map +1 -1
  65. package/dist/scoped.js +10 -21
  66. package/dist/scoped.js.map +1 -1
  67. package/package.json +1 -1
  68. package/dist/delegate-credentials.d.ts +0 -37
  69. package/dist/delegate-credentials.d.ts.map +0 -1
  70. package/dist/delegate-credentials.js +0 -41
  71. package/dist/delegate-credentials.js.map +0 -1
  72. package/dist/namespaces/delegates.d.ts +0 -50
  73. package/dist/namespaces/delegates.d.ts.map +0 -1
  74. package/dist/namespaces/delegates.js +0 -99
  75. package/dist/namespaces/delegates.js.map +0 -1
  76. package/dist/namespaces/delegates.types.d.ts +0 -88
  77. package/dist/namespaces/delegates.types.d.ts.map +0 -1
  78. package/dist/namespaces/delegates.types.js +0 -10
  79. package/dist/namespaces/delegates.types.js.map +0 -1
@@ -1,22 +1,55 @@
1
1
  /**
2
2
  * Request/response types for the `grants` namespace — per-project capability
3
- * grants for non-member (agent / CI) principals (gateway `org-member-management`).
4
- * Maps to `POST` / `DELETE /projects/v1/:project_id/grants`. Mutations require
5
- * the caller to be an active owner of the project's org.
3
+ * grants and the grant keys minted against them.
4
+ *
5
+ * A **grant** is the permission row: this principal may do this capability on
6
+ * this project until this date. A **grant key** is a credential minted against
7
+ * exactly one grant, narrower than it (scope, spend cap, expiry), revocable on
8
+ * its own, and never an owner. A grant may hold no key (the agent signs with
9
+ * its own wallet via SIWX), one, or several. Revoking a key leaves the grant;
10
+ * revoking the grant kills every key.
11
+ *
12
+ * Maps to `/projects/v1/:project_id/grants[...]` and
13
+ * `/projects/v1/:project_id/grant-keys/:key_id[...]`. Every call requires the
14
+ * caller to be an active owner of the project's org.
6
15
  */
7
- /** A per-project capability grant (`internal.project_grants`). */
8
- export interface ProjectGrant {
9
- id: string;
10
- project_id: string;
11
- principal_id: string;
12
- /** e.g. `"deploy"`, `"functions:write"`. */
13
- capability: string;
14
- policy: Record<string, unknown>;
15
- expires_at: string | null;
16
- revoked_at: string | null;
17
- created_at: string;
16
+ /** Grant-key kinds. Only `run402_agent_key` returns a bearer `token`. */
17
+ export type GrantKeyKind = "run402_agent_key" | "ci_oidc" | "tempo_access_key" | "base_disposable_eoa" | "erc7710";
18
+ /**
19
+ * Grant-key scope (`scope` JSONB). Always a subset of the grant: a key never
20
+ * widens it. Omit to take the grant's own capability.
21
+ */
22
+ export interface GrantKeyScope {
23
+ /** Schema version. Must be `1`. */
24
+ v: 1;
25
+ /** Non-empty capability list, e.g. `["deploy"]`. */
26
+ capabilities: string[];
27
+ /** Optional project allowlist. Defaults to the issuing project. */
28
+ projects?: string[];
18
29
  [key: string]: unknown;
19
30
  }
31
+ /** Spend cap (`spend_cap` JSONB). Required for the payment-rail kinds; enforced at send time. */
32
+ export interface GrantKeySpendCap {
33
+ v: 1;
34
+ currency: "usd_micros";
35
+ period?: "day" | "week" | "month";
36
+ per_tx?: number;
37
+ per_period?: number;
38
+ [key: string]: unknown;
39
+ }
40
+ /** A grant-key request: every field optional; `{}` takes every default. */
41
+ export interface GrantKeyInput {
42
+ /** Defaults to `"run402_agent_key"` (the bearer an agent holds). */
43
+ kind?: GrantKeyKind;
44
+ /** Defaults to the grant's own capability. */
45
+ scope?: GrantKeyScope;
46
+ /** Spend cap (payment-rail kinds). */
47
+ spendCap?: GrantKeySpendCap | null;
48
+ /** ISO-8601 expiry; omit or `null` for none beyond the grant's. */
49
+ expiresAt?: string | null;
50
+ /** Rail-specific public subject. */
51
+ publicSubject?: string;
52
+ }
20
53
  /** Input to {@link Grants.create}. */
21
54
  export interface CreateGrantInput {
22
55
  /** EVM address (or named wallet) the grant is issued to. */
@@ -27,12 +60,63 @@ export interface CreateGrantInput {
27
60
  policy?: Record<string, unknown>;
28
61
  /** Optional ISO-8601 expiry. Omit for a non-expiring grant. */
29
62
  expiresAt?: string;
63
+ /**
64
+ * Also mint the grant's first grant key in the same transaction. The key's
65
+ * `token` is returned ONCE in `key.token`.
66
+ */
67
+ key?: GrantKeyInput;
30
68
  }
31
- /** Result of {@link Grants.create} (`{ status:"ok", grant_id, principal_id }`). */
69
+ /**
70
+ * A freshly minted grant key. `token` is the `run402_agent_key` bearer,
71
+ * returned **once** and never again; `null` for kinds that carry no bearer.
72
+ */
73
+ export interface MintedGrantKey {
74
+ key_id: string;
75
+ kind: GrantKeyKind | (string & {});
76
+ token: string | null;
77
+ expires_at: string | null;
78
+ [key: string]: unknown;
79
+ }
80
+ /** Result of {@link Grants.create} (`{ status:"ok", grant_id, principal_id, key? }`). */
32
81
  export interface GrantCreateResult {
33
82
  status: string;
34
83
  grant_id: string;
35
84
  principal_id: string;
85
+ /** Present when a key was requested. */
86
+ key?: MintedGrantKey;
87
+ [key: string]: unknown;
88
+ }
89
+ /** A grant key as listed — never a token or secret material. */
90
+ export interface GrantKey {
91
+ key_id: string;
92
+ grant_id: string;
93
+ kind: GrantKeyKind;
94
+ principal_id: string;
95
+ public_subject: string | null;
96
+ scope: Record<string, unknown>;
97
+ spend_cap: Record<string, unknown> | null;
98
+ expires_at: string | null;
99
+ revoked_at: string | null;
100
+ created_at: string;
101
+ [key: string]: unknown;
102
+ }
103
+ /** A per-project capability grant with its grant keys nested. */
104
+ export interface ProjectGrant {
105
+ grant_id: string;
106
+ principal_id: string;
107
+ wallet: string | null;
108
+ /** e.g. `"deploy"`, `"functions:write"`. */
109
+ capability: string;
110
+ policy: Record<string, unknown>;
111
+ expires_at: string | null;
112
+ revoked_at: string | null;
113
+ created_at: string;
114
+ keys: GrantKey[];
115
+ [key: string]: unknown;
116
+ }
117
+ /** Result of {@link Grants.list}. */
118
+ export interface GrantListResult {
119
+ grants: ProjectGrant[];
36
120
  [key: string]: unknown;
37
121
  }
38
122
  /** Result of {@link Grants.revoke} (`{ status:"revoked", grant_id }`). */
@@ -41,4 +125,25 @@ export interface GrantRevokeResult {
41
125
  grant_id: string;
42
126
  [key: string]: unknown;
43
127
  }
128
+ /** Result of {@link Grants.createKey} (`{ status:"ok", grant_id, key }`). */
129
+ export interface GrantKeyCreateResult {
130
+ status: string;
131
+ grant_id: string;
132
+ key: MintedGrantKey;
133
+ [key: string]: unknown;
134
+ }
135
+ /** Result of {@link Grants.revokeKey} (`{ status:"revoked", key_id }`). */
136
+ export interface GrantKeyRevokeResult {
137
+ status: string;
138
+ key_id: string;
139
+ [key: string]: unknown;
140
+ }
141
+ /** Result of {@link Grants.rotateKey} (`{ status:"rotated", replaced_key_id, grant_id, key }`). */
142
+ export interface GrantKeyRotateResult {
143
+ status: string;
144
+ replaced_key_id: string;
145
+ grant_id: string;
146
+ key: MintedGrantKey;
147
+ [key: string]: unknown;
148
+ }
44
149
  //# sourceMappingURL=grants.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grants.types.d.ts","sourceRoot":"","sources":["../../src/namespaces/grants.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,kEAAkE;AAClE,MA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1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,qCAAqC;AACrC,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,0EAA0E;AAC1E,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,6EAA6E;AAC7E,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,cAAc,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,2EAA2E;AAC3E,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,mGAAmG;AACnG,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,cAAc,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -1,8 +1,17 @@
1
1
  /**
2
2
  * Request/response types for the `grants` namespace — per-project capability
3
- * grants for non-member (agent / CI) principals (gateway `org-member-management`).
4
- * Maps to `POST` / `DELETE /projects/v1/:project_id/grants`. Mutations require
5
- * the caller to be an active owner of the project's org.
3
+ * grants and the grant keys minted against them.
4
+ *
5
+ * A **grant** is the permission row: this principal may do this capability on
6
+ * this project until this date. A **grant key** is a credential minted against
7
+ * exactly one grant, narrower than it (scope, spend cap, expiry), revocable on
8
+ * its own, and never an owner. A grant may hold no key (the agent signs with
9
+ * its own wallet via SIWX), one, or several. Revoking a key leaves the grant;
10
+ * revoking the grant kills every key.
11
+ *
12
+ * Maps to `/projects/v1/:project_id/grants[...]` and
13
+ * `/projects/v1/:project_id/grant-keys/:key_id[...]`. Every call requires the
14
+ * caller to be an active owner of the project's org.
6
15
  */
7
16
  export {};
8
17
  //# sourceMappingURL=grants.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"grants.types.js","sourceRoot":"","sources":["../../src/namespaces/grants.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
1
+ {"version":3,"file":"grants.types.js","sourceRoot":"","sources":["../../src/namespaces/grants.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -51,11 +51,11 @@ export type AuthoritySnapshot = {
51
51
  grant_id: string;
52
52
  scope: string[];
53
53
  } | {
54
- kind: "delegate";
54
+ kind: "grant_key";
55
55
  organization_id: string;
56
56
  project_id: string;
57
57
  grant_id: string;
58
- delegate_id: string;
58
+ grant_key_id: string;
59
59
  scope: string[];
60
60
  } | {
61
61
  kind: "ci";
@@ -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,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,gBAA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AC;IACF,WAAW,EAAE,YAAY,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE,cAAc,EAAE,+BAA+B,CAAC;IAChD,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,sCAAsC;IACrD,cAAc,EAAE,CAAC,CAAC;IAClB,kBAAkB,EAAE,uBAAuB,GAAG,qBAAqB,CAAC;IACpE,kBAAkB,EAAE,iBAAiB,CAAC;IACtC,cAAc,EAAE,iBAAiB,GAAG,wBAAwB,CAAC;IAC7D,aAAa,EAAE,iBAAiB,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE,cAAc,EAAE,qCAAqC,CAAC;IACtD,cAAc,EAAE,IAAI,CAAC;IACrB,gBAAgB,EAAE,IAAI,CAAC;IACvB,sBAAsB,EAAE,sCAAsC,CAAC;CAChE;AAED,sFAAsF;AACtF,MAAM,MAAM,iBAAiB,GAAG,sBAAsB,GAAG,sBAAsB,CAAC;AAEhF,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,4BAA4B,EAAE,CAAC;IAC/C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B"}
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,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GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;KACrE,CAAC;IACF,WAAW,EAAE,YAAY,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE,cAAc,EAAE,+BAA+B,CAAC;IAChD,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,sCAAsC;IACrD,cAAc,EAAE,CAAC,CAAC;IAClB,kBAAkB,EAAE,uBAAuB,GAAG,qBAAqB,CAAC;IACpE,kBAAkB,EAAE,iBAAiB,CAAC;IACtC,cAAc,EAAE,iBAAiB,GAAG,wBAAwB,CAAC;IAC7D,aAAa,EAAE,iBAAiB,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE,cAAc,EAAE,qCAAqC,CAAC;IACtD,cAAc,EAAE,IAAI,CAAC;IACrB,gBAAgB,EAAE,IAAI,CAAC;IACvB,sBAAsB,EAAE,sCAAsC,CAAC;CAChE;AAED,sFAAsF;AACtF,MAAM,MAAM,iBAAiB,GAAG,sBAAsB,GAAG,sBAAsB,CAAC;AAEhF,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,4BAA4B,EAAE,CAAC;IAC/C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B"}
@@ -254,7 +254,7 @@ export declare class Orgs {
254
254
  * Set the caller's own display name (`PATCH /agent/v1/me`) — the name
255
255
  * promotion credit (`hand_to_member.credited_as`), `up`'s room presence,
256
256
  * and audit surfaces show for this principal. 1–64 characters after
257
- * trimming, no control characters. Self-only: a delegate names the
257
+ * trimming, no control characters. Self-only: a grant key names the
258
258
  * principal it acts for. Returns the same body `whoami()` returns.
259
259
  */
260
260
  setDisplayName(displayName: string): Promise<WhoAmIResult>;
@@ -336,7 +336,7 @@ export class Orgs {
336
336
  * Set the caller's own display name (`PATCH /agent/v1/me`) — the name
337
337
  * promotion credit (`hand_to_member.credited_as`), `up`'s room presence,
338
338
  * and audit surfaces show for this principal. 1–64 characters after
339
- * trimming, no control characters. Self-only: a delegate names the
339
+ * trimming, no control characters. Self-only: a grant key names the
340
340
  * principal it acts for. Returns the same body `whoami()` returns.
341
341
  */
342
342
  async setDisplayName(displayName) {
@@ -100,7 +100,7 @@ export declare class Projects {
100
100
  * List redacted tenant x402 payment records for priced function web routes
101
101
  * (`GET /projects/v1/:project_id/tenant-payments`). Requires
102
102
  * project.tenant_payments.read server-side: org developer+ or read-scoped
103
- * project grant/delegate.
103
+ * project grant or grant key.
104
104
  */
105
105
  listTenantPayments(projectId: string, opts?: ListTenantPaymentsOptions): Promise<TenantPaymentListResult>;
106
106
  /**
@@ -232,7 +232,7 @@ export class Projects {
232
232
  * List redacted tenant x402 payment records for priced function web routes
233
233
  * (`GET /projects/v1/:project_id/tenant-payments`). Requires
234
234
  * project.tenant_payments.read server-side: org developer+ or read-scoped
235
- * project grant/delegate.
235
+ * project grant or grant key.
236
236
  */
237
237
  async listTenantPayments(projectId, opts = {}) {
238
238
  const qs = new URLSearchParams();
@@ -174,7 +174,7 @@ export async function computeOpenProofOutcome(input) {
174
174
  receipt: null,
175
175
  error: {
176
176
  code: "VAULT_PROOF_OF_OPEN_PRINCIPAL_UNRESOLVED",
177
- message: "GET /agent/v1/whoami returned no resolvable principal for this credential (delegate bearers are not accepted by whoami) — submit via r.repos.submitProofOfOpen(repoId, principalId, evidence) directly instead",
177
+ message: "GET /agent/v1/whoami returned no resolvable principal for this credential (grant-key bearers are not accepted by whoami) — submit via r.repos.submitProofOfOpen(repoId, principalId, evidence) directly instead",
178
178
  },
179
179
  };
180
180
  }
@@ -2121,7 +2121,7 @@ export class Repos {
2121
2121
  const parsed = parseHandoffKey(options.key);
2122
2122
  // ensure wallet — A fresh machine has no wallet, and the redeem route
2123
2123
  // accepts ONLY a SIWX wallet signature (a control-plane session,
2124
- // delegate, or service key is refused HANDOFF_REDEEM_REQUIRES_WALLET —
2124
+ // grant key, or service key is refused HANDOFF_REDEEM_REQUIRES_WALLET —
2125
2125
  // the keystore key the redemption publishes is what makes the recipient a
2126
2126
  // real key-holder). Nothing upstream creates the wallet for an
2127
2127
  // unpaid request, so `resume` does it here, exactly as `repos resume