@openvtc/trust-tasks 0.19.11 → 0.19.13

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 (42) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +1 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/persona/attribute/put/1.0/payload.d.ts +183 -0
  7. package/dist/persona/attribute/put/1.0/payload.d.ts.map +1 -1
  8. package/dist/persona/attribute/put/1.0/payload.js +96 -0
  9. package/dist/persona/attribute/put/1.0/payload.js.map +1 -1
  10. package/dist/persona/binding/get/1.0/payload.d.ts +33 -5
  11. package/dist/persona/binding/get/1.0/payload.d.ts.map +1 -1
  12. package/dist/persona/binding/get/1.0/payload.js +14 -2
  13. package/dist/persona/binding/get/1.0/payload.js.map +1 -1
  14. package/dist/persona/binding/list/1.0/payload.d.ts +33 -5
  15. package/dist/persona/binding/list/1.0/payload.d.ts.map +1 -1
  16. package/dist/persona/binding/list/1.0/payload.js +14 -2
  17. package/dist/persona/binding/list/1.0/payload.js.map +1 -1
  18. package/dist/persona/binding/set/1.0/payload.d.ts +16 -0
  19. package/dist/persona/binding/set/1.0/payload.d.ts.map +1 -1
  20. package/dist/persona/binding/set/1.0/payload.js +6 -0
  21. package/dist/persona/binding/set/1.0/payload.js.map +1 -1
  22. package/dist/persona/disclosure/history/1.0/payload.d.ts +42 -0
  23. package/dist/persona/disclosure/history/1.0/payload.d.ts.map +1 -1
  24. package/dist/persona/disclosure/history/1.0/payload.js +28 -0
  25. package/dist/persona/disclosure/history/1.0/payload.js.map +1 -1
  26. package/dist/persona/local/binding/set/1.0/payload.d.ts +16 -0
  27. package/dist/persona/local/binding/set/1.0/payload.d.ts.map +1 -1
  28. package/dist/persona/local/binding/set/1.0/payload.js +6 -0
  29. package/dist/persona/local/binding/set/1.0/payload.js.map +1 -1
  30. package/dist/vtc/join-requests/supplement/0.1/payload.d.ts +569 -0
  31. package/dist/vtc/join-requests/supplement/0.1/payload.d.ts.map +1 -0
  32. package/dist/vtc/join-requests/supplement/0.1/payload.js +319 -0
  33. package/dist/vtc/join-requests/supplement/0.1/payload.js.map +1 -0
  34. package/package.json +1 -1
  35. package/src/index.ts +1 -0
  36. package/src/persona/attribute/put/1.0/payload.ts +115 -0
  37. package/src/persona/binding/get/1.0/payload.ts +19 -3
  38. package/src/persona/binding/list/1.0/payload.ts +19 -3
  39. package/src/persona/binding/set/1.0/payload.ts +10 -0
  40. package/src/persona/disclosure/history/1.0/payload.ts +34 -0
  41. package/src/persona/local/binding/set/1.0/payload.ts +10 -0
  42. package/src/vtc/join-requests/supplement/0.1/payload.ts +369 -0
@@ -0,0 +1,319 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/join-requests/supplement/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/join-requests/supplement/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/join-requests/supplement/0.1#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/vtc/join-requests/supplement/0.1",
21
+ "title": "VTC Join-Requests Supplement — payload",
22
+ "description": "The evidence an applicant offers in answer to a community's request for more, against the join request they already have open. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "vp"
27
+ ],
28
+ "properties": {
29
+ "vp": {
30
+ "type": "object",
31
+ "description": "The Verifiable Presentation satisfying the `presentationDefinition` the community returned when it deferred. It REPLACES the presentation on the request rather than adding to it, so it carries everything the community requires and not only the shortfall — see the spec's Definitions."
32
+ },
33
+ "requestId": {
34
+ "type": "string",
35
+ "minLength": 1,
36
+ "description": "The request to supplement. OPTIONAL: an applicant whose submit response was lost never received one, and the consumer then resolves the request from the authenticated applicant. A consumer given this value MUST prefer it over inferring the request from the caller."
37
+ },
38
+ "extensions": {
39
+ "type": "object",
40
+ "description": "An opaque bag the community stores verbatim and this task does not interpret. Replaces the bag on the request on the same terms as `vp`."
41
+ },
42
+ "ext": {
43
+ "$ref": "#/$defs/Ext"
44
+ }
45
+ },
46
+ "$defs": {
47
+ "Response": {
48
+ "$anchor": "response",
49
+ "title": "VTC Join-Requests Supplement — response payload",
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "required": [
53
+ "requestId",
54
+ "verdict"
55
+ ],
56
+ "description": "The community's fresh decision on the re-presented evidence. Failures use trust-task-error, not this shape.",
57
+ "properties": {
58
+ "requestId": {
59
+ "type": "string",
60
+ "minLength": 1,
61
+ "description": "The request that was re-decided (a UUID). Returned even when the request omitted it, so an applicant who used the id-less form learns which request they answered."
62
+ },
63
+ "verdict": {
64
+ "$ref": "#/$defs/Verdict",
65
+ "description": "What the community decided on the new evidence, in the same shape `vtc/join-requests/submit` returns. MAY be any outcome a submission can produce, including a further request for more evidence and including a refusal."
66
+ },
67
+ "ext": {
68
+ "$ref": "#/$defs/Ext"
69
+ }
70
+ }
71
+ },
72
+ "Ext": {
73
+ "title": "Ext",
74
+ "description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
75
+ "type": "object",
76
+ "minProperties": 1,
77
+ "additionalProperties": true,
78
+ "propertyNames": {
79
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
80
+ }
81
+ },
82
+ "Verdict": {
83
+ "$anchor": "verdict",
84
+ "title": "Verdict",
85
+ "type": "object",
86
+ "additionalProperties": false,
87
+ "required": [
88
+ "effect",
89
+ "with"
90
+ ],
91
+ "description": "A ceremony decision: the effect, plus its effect-dependent detail.",
92
+ "properties": {
93
+ "effect": {
94
+ "$ref": "#/$defs/VerdictEffect"
95
+ },
96
+ "with": {
97
+ "$ref": "#/$defs/VerdictWith"
98
+ }
99
+ }
100
+ },
101
+ "VerdictWith": {
102
+ "$anchor": "verdictWith",
103
+ "title": "VerdictWith",
104
+ "type": "object",
105
+ "additionalProperties": false,
106
+ "description": "The effect-dependent detail of a verdict.\n\nEvery member is optional at the schema level and which ones are meaningful depends on `effect`: `role` / `obligations` / `bundleRef` on `allow`, `code` / `reason` on `deny`, `queue` / `reason` on `refer`, `needs` / `presentationDefinition` on `requestMore`. The dependency is stated here rather than enforced by `if`/`then` per effect, so that the shape stays a single flat object a generated type can carry without a discriminated union per family — a deliberate trade of schema strictness for implementability, and the reason a consumer MUST branch on `effect` rather than on which members happen to be present.",
107
+ "properties": {
108
+ "role": {
109
+ "type": "string",
110
+ "minLength": 1,
111
+ "description": "The granted local role. `allow` only."
112
+ },
113
+ "obligations": {
114
+ "type": "object",
115
+ "description": "Conditions attached to the grant. `allow` only."
116
+ },
117
+ "bundleRef": {
118
+ "type": "object",
119
+ "description": "Pointer to a sealed credential bundle, added by the community where issuance occurred rather than emitted by the policy. `allow` only."
120
+ },
121
+ "code": {
122
+ "type": "string",
123
+ "minLength": 1,
124
+ "description": "Stable refusal code, safe to branch on. `deny` only."
125
+ },
126
+ "reason": {
127
+ "type": [
128
+ "string",
129
+ "null"
130
+ ],
131
+ "maxLength": 1024,
132
+ "description": "Elaboration in prose, when the decider gave one. `deny` and `refer`."
133
+ },
134
+ "queue": {
135
+ "type": "string",
136
+ "minLength": 1,
137
+ "description": "Which review queue the decision was parked in, so an applicant can be told who now holds it. `refer` only."
138
+ },
139
+ "needs": {
140
+ "type": "array",
141
+ "items": {
142
+ "type": "string",
143
+ "minLength": 1
144
+ },
145
+ "description": "What further evidence is required, named so the applicant can act without a support conversation. `requestMore` only."
146
+ },
147
+ "presentationDefinition": {
148
+ "type": "object",
149
+ "description": "A machine-readable statement of the same request, so a wallet can satisfy it without a human reading `needs`. `requestMore` only."
150
+ }
151
+ }
152
+ },
153
+ "VerdictEffect": {
154
+ "$anchor": "verdictEffect",
155
+ "title": "VerdictEffect",
156
+ "type": "string",
157
+ "enum": [
158
+ "allow",
159
+ "deny",
160
+ "refer",
161
+ "requestMore"
162
+ ],
163
+ "description": "What the policy decided.\n\n`allow` — admitted. `deny` — refused, terminally for this submission. `refer` — parked for a human or quorum decision; the applicant is neither in nor out. `requestMore` — the policy cannot decide yet and names what further evidence it needs.\n\nThe four are not reducible to a pending/decided pair. `refer` and `requestMore` are both 'not decided', but they place the next action with different parties: `refer` waits on the community, `requestMore` waits on the applicant. A consumer that cannot tell them apart cannot tell a user whether to wait or to act."
164
+ }
165
+ }
166
+ };
167
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
168
+ export const RESPONSE_PAYLOAD_SCHEMA = {
169
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
170
+ "$ref": "#/$defs/Response",
171
+ "$defs": {
172
+ "Response": {
173
+ "$anchor": "response",
174
+ "title": "VTC Join-Requests Supplement — response payload",
175
+ "type": "object",
176
+ "additionalProperties": false,
177
+ "required": [
178
+ "requestId",
179
+ "verdict"
180
+ ],
181
+ "description": "The community's fresh decision on the re-presented evidence. Failures use trust-task-error, not this shape.",
182
+ "properties": {
183
+ "requestId": {
184
+ "type": "string",
185
+ "minLength": 1,
186
+ "description": "The request that was re-decided (a UUID). Returned even when the request omitted it, so an applicant who used the id-less form learns which request they answered."
187
+ },
188
+ "verdict": {
189
+ "$ref": "#/$defs/Verdict",
190
+ "description": "What the community decided on the new evidence, in the same shape `vtc/join-requests/submit` returns. MAY be any outcome a submission can produce, including a further request for more evidence and including a refusal."
191
+ },
192
+ "ext": {
193
+ "$ref": "#/$defs/Ext"
194
+ }
195
+ }
196
+ },
197
+ "Ext": {
198
+ "title": "Ext",
199
+ "description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
200
+ "type": "object",
201
+ "minProperties": 1,
202
+ "additionalProperties": true,
203
+ "propertyNames": {
204
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
205
+ }
206
+ },
207
+ "Verdict": {
208
+ "$anchor": "verdict",
209
+ "title": "Verdict",
210
+ "type": "object",
211
+ "additionalProperties": false,
212
+ "required": [
213
+ "effect",
214
+ "with"
215
+ ],
216
+ "description": "A ceremony decision: the effect, plus its effect-dependent detail.",
217
+ "properties": {
218
+ "effect": {
219
+ "$ref": "#/$defs/VerdictEffect"
220
+ },
221
+ "with": {
222
+ "$ref": "#/$defs/VerdictWith"
223
+ }
224
+ }
225
+ },
226
+ "VerdictWith": {
227
+ "$anchor": "verdictWith",
228
+ "title": "VerdictWith",
229
+ "type": "object",
230
+ "additionalProperties": false,
231
+ "description": "The effect-dependent detail of a verdict.\n\nEvery member is optional at the schema level and which ones are meaningful depends on `effect`: `role` / `obligations` / `bundleRef` on `allow`, `code` / `reason` on `deny`, `queue` / `reason` on `refer`, `needs` / `presentationDefinition` on `requestMore`. The dependency is stated here rather than enforced by `if`/`then` per effect, so that the shape stays a single flat object a generated type can carry without a discriminated union per family — a deliberate trade of schema strictness for implementability, and the reason a consumer MUST branch on `effect` rather than on which members happen to be present.",
232
+ "properties": {
233
+ "role": {
234
+ "type": "string",
235
+ "minLength": 1,
236
+ "description": "The granted local role. `allow` only."
237
+ },
238
+ "obligations": {
239
+ "type": "object",
240
+ "description": "Conditions attached to the grant. `allow` only."
241
+ },
242
+ "bundleRef": {
243
+ "type": "object",
244
+ "description": "Pointer to a sealed credential bundle, added by the community where issuance occurred rather than emitted by the policy. `allow` only."
245
+ },
246
+ "code": {
247
+ "type": "string",
248
+ "minLength": 1,
249
+ "description": "Stable refusal code, safe to branch on. `deny` only."
250
+ },
251
+ "reason": {
252
+ "type": [
253
+ "string",
254
+ "null"
255
+ ],
256
+ "maxLength": 1024,
257
+ "description": "Elaboration in prose, when the decider gave one. `deny` and `refer`."
258
+ },
259
+ "queue": {
260
+ "type": "string",
261
+ "minLength": 1,
262
+ "description": "Which review queue the decision was parked in, so an applicant can be told who now holds it. `refer` only."
263
+ },
264
+ "needs": {
265
+ "type": "array",
266
+ "items": {
267
+ "type": "string",
268
+ "minLength": 1
269
+ },
270
+ "description": "What further evidence is required, named so the applicant can act without a support conversation. `requestMore` only."
271
+ },
272
+ "presentationDefinition": {
273
+ "type": "object",
274
+ "description": "A machine-readable statement of the same request, so a wallet can satisfy it without a human reading `needs`. `requestMore` only."
275
+ }
276
+ }
277
+ },
278
+ "VerdictEffect": {
279
+ "$anchor": "verdictEffect",
280
+ "title": "VerdictEffect",
281
+ "type": "string",
282
+ "enum": [
283
+ "allow",
284
+ "deny",
285
+ "refer",
286
+ "requestMore"
287
+ ],
288
+ "description": "What the policy decided.\n\n`allow` — admitted. `deny` — refused, terminally for this submission. `refer` — parked for a human or quorum decision; the applicant is neither in nor out. `requestMore` — the policy cannot decide yet and names what further evidence it needs.\n\nThe four are not reducible to a pending/decided pair. `refer` and `requestMore` are both 'not decided', but they place the next action with different parties: `refer` waits on the community, `requestMore` waits on the applicant. A consumer that cannot tell them apart cannot tell a user whether to wait or to act."
289
+ }
290
+ }
291
+ };
292
+ /**
293
+ * SPEC.md §7.2 policy for the request variant, from this specification's
294
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
295
+ * per-specification and cannot be derived from the document alone, and
296
+ * item 2 needs the schema this carries.
297
+ */
298
+ export const SPEC = {
299
+ typeUri: TYPE_URI,
300
+ isBearer: false,
301
+ isProofRequired: true,
302
+ isRecipientRequired: true,
303
+ isIssuedAtRequired: true,
304
+ payloadSchema: PAYLOAD_SCHEMA,
305
+ };
306
+ /**
307
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
308
+ * tracks the *issuer* party's requirement because a response swaps the
309
+ * parties (§7.3 item 5).
310
+ */
311
+ export const RESPONSE_SPEC = {
312
+ typeUri: RESPONSE_TYPE_URI,
313
+ isBearer: false,
314
+ isProofRequired: false,
315
+ isRecipientRequired: true,
316
+ isIssuedAtRequired: true,
317
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
318
+ };
319
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/supplement/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAyCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,8DAAuE,CAAC;AAKhG,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,uEAAgF,CAAC;AAKlH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,8DAA8D;IACrE,OAAO,EAAE,wCAAwC;IACjD,aAAa,EAAE,6PAA6P;IAC5Q,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,IAAI;KACL;IACD,YAAY,EAAE;QACZ,IAAI,EAAE;YACJ,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,6RAA6R;SAC7S;QACD,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,0QAA0Q;SAC1R;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,0IAA0I;SAC1J;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,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C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openvtc/trust-tasks",
3
- "version": "0.19.11",
3
+ "version": "0.19.13",
4
4
  "description": "Generated TypeScript bindings for the Trust Tasks framework registry.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -481,6 +481,7 @@ export * as VtcJoinRequestsStatus_v0_1 from "./vtc/join-requests/status/0.1/payl
481
481
  export * as VtcJoinRequestsSubmitReceipt_v0_1 from "./vtc/join-requests/submit-receipt/0.1/payload.js";
482
482
  export * as VtcJoinRequestsSubmit_v0_1 from "./vtc/join-requests/submit/0.1/payload.js";
483
483
  export * as VtcJoinRequestsSubmit_v0_2 from "./vtc/join-requests/submit/0.2/payload.js";
484
+ export * as VtcJoinRequestsSupplement_v0_1 from "./vtc/join-requests/supplement/0.1/payload.js";
484
485
  export * as VtcJoinRequestsWithdraw_v0_1 from "./vtc/join-requests/withdraw/0.1/payload.js";
485
486
  export * as VtcMembersAdminRemove_v0_1 from "./vtc/members/admin-remove/0.1/payload.js";
486
487
  export * as VtcMembersCredentials_v0_1 from "./vtc/members/credentials/0.1/payload.js";
@@ -64,6 +64,25 @@ export interface PersonaAttributePutResponsePayload {
64
64
  */
65
65
  sharedWithProfileCount?: number;
66
66
  };
67
+ /**
68
+ * Every place this write changed what a persona presents: each binding whose projection was re-pushed because a face wearing it shows this attribute live. An edit propagates by design, and a holder told only that it saved cannot tell whether it refreshed one face or nine. Holder-authorized, so identifiers are returned. Absent when nothing was bound to a face showing it.
69
+ *
70
+ * @maxItems 256
71
+ */
72
+ refreshed?: {
73
+ profileId: Ulid;
74
+ contextId: string;
75
+ personaDid: string;
76
+ }[];
77
+ /**
78
+ * Faces that pin this attribute to an earlier version and so did NOT follow the edit — the counterparties that must keep seeing the value they verified. Named so the holder can decide, per face, whether that is still what they want. Absent when no face pins it.
79
+ *
80
+ * @maxItems 256
81
+ */
82
+ heldByPin?: {
83
+ profileId: Ulid;
84
+ pinVersion: Version;
85
+ }[];
67
86
  createdAt?: string;
68
87
  updatedAt: string;
69
88
  ext?: Ext;
@@ -192,6 +211,54 @@ export const PAYLOAD_SCHEMA = {
192
211
  }
193
212
  }
194
213
  },
214
+ "refreshed": {
215
+ "type": "array",
216
+ "maxItems": 256,
217
+ "description": "Every place this write changed what a persona presents: each binding whose projection was re-pushed because a face wearing it shows this attribute live. An edit propagates by design, and a holder told only that it saved cannot tell whether it refreshed one face or nine. Holder-authorized, so identifiers are returned. Absent when nothing was bound to a face showing it.",
218
+ "items": {
219
+ "type": "object",
220
+ "additionalProperties": false,
221
+ "required": [
222
+ "profileId",
223
+ "contextId",
224
+ "personaDid"
225
+ ],
226
+ "properties": {
227
+ "profileId": {
228
+ "$ref": "#/$defs/Ulid"
229
+ },
230
+ "contextId": {
231
+ "type": "string",
232
+ "minLength": 1
233
+ },
234
+ "personaDid": {
235
+ "type": "string",
236
+ "minLength": 1
237
+ }
238
+ }
239
+ }
240
+ },
241
+ "heldByPin": {
242
+ "type": "array",
243
+ "maxItems": 256,
244
+ "description": "Faces that pin this attribute to an earlier version and so did NOT follow the edit — the counterparties that must keep seeing the value they verified. Named so the holder can decide, per face, whether that is still what they want. Absent when no face pins it.",
245
+ "items": {
246
+ "type": "object",
247
+ "additionalProperties": false,
248
+ "required": [
249
+ "profileId",
250
+ "pinVersion"
251
+ ],
252
+ "properties": {
253
+ "profileId": {
254
+ "$ref": "#/$defs/Ulid"
255
+ },
256
+ "pinVersion": {
257
+ "$ref": "#/$defs/Version"
258
+ }
259
+ }
260
+ }
261
+ },
195
262
  "createdAt": {
196
263
  "type": "string",
197
264
  "format": "date-time"
@@ -412,6 +479,54 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
412
479
  }
413
480
  }
414
481
  },
482
+ "refreshed": {
483
+ "type": "array",
484
+ "maxItems": 256,
485
+ "description": "Every place this write changed what a persona presents: each binding whose projection was re-pushed because a face wearing it shows this attribute live. An edit propagates by design, and a holder told only that it saved cannot tell whether it refreshed one face or nine. Holder-authorized, so identifiers are returned. Absent when nothing was bound to a face showing it.",
486
+ "items": {
487
+ "type": "object",
488
+ "additionalProperties": false,
489
+ "required": [
490
+ "profileId",
491
+ "contextId",
492
+ "personaDid"
493
+ ],
494
+ "properties": {
495
+ "profileId": {
496
+ "$ref": "#/$defs/Ulid"
497
+ },
498
+ "contextId": {
499
+ "type": "string",
500
+ "minLength": 1
501
+ },
502
+ "personaDid": {
503
+ "type": "string",
504
+ "minLength": 1
505
+ }
506
+ }
507
+ }
508
+ },
509
+ "heldByPin": {
510
+ "type": "array",
511
+ "maxItems": 256,
512
+ "description": "Faces that pin this attribute to an earlier version and so did NOT follow the edit — the counterparties that must keep seeing the value they verified. Named so the holder can decide, per face, whether that is still what they want. Absent when no face pins it.",
513
+ "items": {
514
+ "type": "object",
515
+ "additionalProperties": false,
516
+ "required": [
517
+ "profileId",
518
+ "pinVersion"
519
+ ],
520
+ "properties": {
521
+ "profileId": {
522
+ "$ref": "#/$defs/Ulid"
523
+ },
524
+ "pinVersion": {
525
+ "$ref": "#/$defs/Version"
526
+ }
527
+ }
528
+ }
529
+ },
415
530
  "createdAt": {
416
531
  "type": "string",
417
532
  "format": "date-time"
@@ -29,7 +29,11 @@ export interface PersonaBindingGetResponsePayload {
29
29
  */
30
30
  profileId?: Ulid;
31
31
  /**
32
- * The holder's label for the bound profile, so an application can show which identity is in use. Names a composition; reveals none of it.
32
+ * The name the holder chose for this context to call the face (persona/binding/set `label`). Absent when they chose none.
33
+ */
34
+ label?: string;
35
+ /**
36
+ * The holder's OWN name for the bound face. A maintainer MUST omit it unless the caller is holder-authorized: it is the holder's filing, not something they told this context, and it can say far more than the face shows. A context-scoped caller reads `label`.
33
37
  */
34
38
  profileName?: string;
35
39
  /**
@@ -118,10 +122,16 @@ export const PAYLOAD_SCHEMA = {
118
122
  "$ref": "#/$defs/Ulid",
119
123
  "description": "Present when bound. An identifier only; a context-scoped caller cannot resolve it, because profile reads are holder-authorized."
120
124
  },
125
+ "label": {
126
+ "type": "string",
127
+ "minLength": 1,
128
+ "maxLength": 128,
129
+ "description": "The name the holder chose for this context to call the face (persona/binding/set `label`). Absent when they chose none."
130
+ },
121
131
  "profileName": {
122
132
  "type": "string",
123
133
  "maxLength": 128,
124
- "description": "The holder's label for the bound profile, so an application can show which identity is in use. Names a composition; reveals none of it."
134
+ "description": "The holder's OWN name for the bound face. A maintainer MUST omit it unless the caller is holder-authorized: it is the holder's filing, not something they told this context, and it can say far more than the face shows. A context-scoped caller reads `label`."
125
135
  },
126
136
  "claimCount": {
127
137
  "type": "integer",
@@ -189,10 +199,16 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
189
199
  "$ref": "#/$defs/Ulid",
190
200
  "description": "Present when bound. An identifier only; a context-scoped caller cannot resolve it, because profile reads are holder-authorized."
191
201
  },
202
+ "label": {
203
+ "type": "string",
204
+ "minLength": 1,
205
+ "maxLength": 128,
206
+ "description": "The name the holder chose for this context to call the face (persona/binding/set `label`). Absent when they chose none."
207
+ },
192
208
  "profileName": {
193
209
  "type": "string",
194
210
  "maxLength": 128,
195
- "description": "The holder's label for the bound profile, so an application can show which identity is in use. Names a composition; reveals none of it."
211
+ "description": "The holder's OWN name for the bound face. A maintainer MUST omit it unless the caller is holder-authorized: it is the holder's filing, not something they told this context, and it can say far more than the face shows. A context-scoped caller reads `label`."
196
212
  },
197
213
  "claimCount": {
198
214
  "type": "integer",
@@ -26,7 +26,11 @@ export interface PersonaBindingListResponsePayload {
26
26
  personaDid: string;
27
27
  bound: boolean;
28
28
  /**
29
- * The holder's label for the bound profile. Names a composition; reveals none of it.
29
+ * The name the holder chose for this context to call the face. Absent when they chose none.
30
+ */
31
+ label?: string;
32
+ /**
33
+ * The holder's OWN name for the bound face. A maintainer MUST omit it unless the caller is holder-authorized; see persona/binding/get.
30
34
  */
31
35
  profileName?: string;
32
36
  claimCount?: number;
@@ -121,10 +125,16 @@ export const PAYLOAD_SCHEMA = {
121
125
  "bound": {
122
126
  "type": "boolean"
123
127
  },
128
+ "label": {
129
+ "type": "string",
130
+ "minLength": 1,
131
+ "maxLength": 128,
132
+ "description": "The name the holder chose for this context to call the face. Absent when they chose none."
133
+ },
124
134
  "profileName": {
125
135
  "type": "string",
126
136
  "maxLength": 128,
127
- "description": "The holder's label for the bound profile. Names a composition; reveals none of it."
137
+ "description": "The holder's OWN name for the bound face. A maintainer MUST omit it unless the caller is holder-authorized; see persona/binding/get."
128
138
  },
129
139
  "claimCount": {
130
140
  "type": "integer",
@@ -192,10 +202,16 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
192
202
  "bound": {
193
203
  "type": "boolean"
194
204
  },
205
+ "label": {
206
+ "type": "string",
207
+ "minLength": 1,
208
+ "maxLength": 128,
209
+ "description": "The name the holder chose for this context to call the face. Absent when they chose none."
210
+ },
195
211
  "profileName": {
196
212
  "type": "string",
197
213
  "maxLength": 128,
198
- "description": "The holder's label for the bound profile. Names a composition; reveals none of it."
214
+ "description": "The holder's OWN name for the bound face. A maintainer MUST omit it unless the caller is holder-authorized; see persona/binding/get."
199
215
  },
200
216
  "claimCount": {
201
217
  "type": "integer",
@@ -28,6 +28,10 @@ export interface PersonaBindingSetPayload {
28
28
  * @maxItems 32
29
29
  */
30
30
  publicEntries?: Ulid[];
31
+ /**
32
+ * What this context may call the face the persona wears here, chosen by the holder for this context. Returned by persona/binding/get and persona/binding/list in place of the holder's own name for the face, which is theirs and may say far more than they would tell a context ('the divorce'). Omit to give the context no name at all.
33
+ */
34
+ label?: string;
31
35
  expectedVersion?: ExpectedVersion;
32
36
  ext?: Ext;
33
37
  }
@@ -123,6 +127,12 @@ export const PAYLOAD_SCHEMA = {
123
127
  },
124
128
  "description": "Attributes the holder opts into publishing on the persona's own DID document or equivalent public surface. Empty by default and MUST remain empty unless explicitly set: everything else is a per-verifier projection, and a published value is one document every relying party sees identically — a permanent correlation point the rest of this family exists to avoid."
125
129
  },
130
+ "label": {
131
+ "type": "string",
132
+ "minLength": 1,
133
+ "maxLength": 128,
134
+ "description": "What this context may call the face the persona wears here, chosen by the holder for this context. Returned by persona/binding/get and persona/binding/list in place of the holder's own name for the face, which is theirs and may say far more than they would tell a context ('the divorce'). Omit to give the context no name at all."
135
+ },
126
136
  "expectedVersion": {
127
137
  "$ref": "#/$defs/ExpectedVersion"
128
138
  },