@openvtc/trust-tasks 0.17.8 → 0.17.9

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.
@@ -0,0 +1,599 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/persona/facet/list/1.0/payload.schema.json
4
+ */
5
+ import type { Ext, FacetColour, Ulid, Version_PersonaV0_1 as Version } from "../../../../_shared/components.js";
6
+ /**
7
+ * List the holder's facets, with their membership. Cursor-paginated like every other persona listing.
8
+ */
9
+ export interface PersonaFacetListPayload {
10
+ /**
11
+ * The page size to ask for — never a cap on the result. A consumer that wants every facet follows `nextCursor` to the end; one that treats this as a limit will silently draw a partial picture.
12
+ */
13
+ limit?: number;
14
+ /**
15
+ * Continue a prior listing. Opaque: a producer echoes what it was given and MUST NOT construct one.
16
+ */
17
+ cursor?: string;
18
+ ext?: Ext;
19
+ }
20
+ /**
21
+ * Success response to persona/facet/list. Type https://trusttasks.org/spec/persona/facet/list/1.0#response.
22
+ */
23
+ export interface PersonaFacetListResponsePayload {
24
+ /**
25
+ * @maxItems 250
26
+ */
27
+ facets: Facet[];
28
+ /**
29
+ * Present when more facets remain. **Its absence is the only signal that a listing is complete** — a consumer MUST NOT infer exhaustion from a short page, because a maintainer may return fewer than `limit` for reasons of its own.
30
+ */
31
+ nextCursor?: string;
32
+ ext?: Ext;
33
+ }
34
+ /**
35
+ * One named part of the holder's life, and what belongs to it. Agent-scoped, like the attribute pool and the profiles it groups — a facet names records that sit above every trust context, so it cannot itself live inside one.
36
+ */
37
+ export interface Facet {
38
+ facetId: Ulid;
39
+ name: string;
40
+ colour: FacetColour;
41
+ icon?: string;
42
+ /**
43
+ * Profiles belonging to this facet. A maintainer MUST NOT prune an id whose profile has been deleted: a dangling member is how a consumer can offer to tidy, and silently dropping it turns a deletion the holder may not have intended into one they cannot see.
44
+ *
45
+ * @maxItems 256
46
+ */
47
+ faceIds: Ulid[];
48
+ /**
49
+ * Attributes belonging to this facet, with the same rule about dangling ids as `faceIds`.
50
+ *
51
+ * @maxItems 1024
52
+ */
53
+ attributeIds: Ulid[];
54
+ version: Version;
55
+ createdAt?: string;
56
+ updatedAt: string;
57
+ }
58
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
59
+ export type { Ext, FacetColour, Ulid, Version };
60
+ /** Trust Task type URI. */
61
+ export declare const TYPE_URI: "https://trusttasks.org/spec/persona/facet/list/1.0";
62
+ /** Stable alias for this specification's request payload shape. */
63
+ export type Payload = PersonaFacetListPayload;
64
+ /** Trust Task response type URI (request type URI + "#response"). */
65
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/persona/facet/list/1.0#response";
66
+ /** Stable alias for this specification's success-response payload shape. */
67
+ export type Response = PersonaFacetListResponsePayload;
68
+ /**
69
+ * This specification's payload schema, as a value.
70
+ *
71
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
72
+ * rather than only as a `.json` file because TypeScript types are erased
73
+ * at runtime: without a schema a consumer has nothing to validate, and
74
+ * every REQUIRED payload member is optional in practice. Cross-file
75
+ * `$ref`s are already inlined, so it needs no resolver.
76
+ */
77
+ export declare const PAYLOAD_SCHEMA: {
78
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
79
+ readonly $id: "https://trusttasks.org/spec/persona/facet/list/1.0";
80
+ readonly title: "Persona — Facet List — payload";
81
+ readonly description: "List the holder's facets, with their membership. Cursor-paginated like every other persona listing.";
82
+ readonly type: "object";
83
+ readonly additionalProperties: false;
84
+ readonly required: readonly [];
85
+ readonly properties: {
86
+ readonly limit: {
87
+ readonly type: "integer";
88
+ readonly minimum: 1;
89
+ readonly maximum: 250;
90
+ readonly default: 100;
91
+ readonly description: "The page size to ask for — never a cap on the result. A consumer that wants every facet follows `nextCursor` to the end; one that treats this as a limit will silently draw a partial picture.";
92
+ };
93
+ readonly cursor: {
94
+ readonly type: "string";
95
+ readonly maxLength: 4096;
96
+ readonly description: "Continue a prior listing. Opaque: a producer echoes what it was given and MUST NOT construct one.";
97
+ };
98
+ readonly ext: {
99
+ readonly $ref: "#/$defs/Ext";
100
+ };
101
+ };
102
+ readonly $defs: {
103
+ readonly Response: {
104
+ readonly $anchor: "response";
105
+ readonly title: "Persona Facet List — response payload";
106
+ readonly description: "Success response to persona/facet/list. Type https://trusttasks.org/spec/persona/facet/list/1.0#response.";
107
+ readonly type: "object";
108
+ readonly additionalProperties: false;
109
+ readonly required: readonly ["facets"];
110
+ readonly properties: {
111
+ readonly facets: {
112
+ readonly type: "array";
113
+ readonly maxItems: 250;
114
+ readonly items: {
115
+ readonly $ref: "#/$defs/Facet";
116
+ };
117
+ };
118
+ readonly nextCursor: {
119
+ readonly type: "string";
120
+ readonly maxLength: 4096;
121
+ readonly description: "Present when more facets remain. **Its absence is the only signal that a listing is complete** — a consumer MUST NOT infer exhaustion from a short page, because a maintainer may return fewer than `limit` for reasons of its own.";
122
+ };
123
+ readonly ext: {
124
+ readonly $ref: "#/$defs/Ext";
125
+ };
126
+ };
127
+ };
128
+ readonly Facet: {
129
+ readonly title: "Facet";
130
+ readonly type: "object";
131
+ readonly additionalProperties: false;
132
+ readonly required: readonly ["facetId", "name", "colour", "faceIds", "attributeIds", "version", "updatedAt"];
133
+ readonly description: "One named part of the holder's life, and what belongs to it. Agent-scoped, like the attribute pool and the profiles it groups — a facet names records that sit above every trust context, so it cannot itself live inside one.";
134
+ readonly properties: {
135
+ readonly facetId: {
136
+ readonly $ref: "#/$defs/Ulid";
137
+ };
138
+ readonly name: {
139
+ readonly type: "string";
140
+ readonly minLength: 1;
141
+ readonly maxLength: 64;
142
+ };
143
+ readonly colour: {
144
+ readonly $ref: "#/$defs/FacetColour";
145
+ };
146
+ readonly icon: {
147
+ readonly type: "string";
148
+ readonly minLength: 1;
149
+ readonly maxLength: 8;
150
+ };
151
+ readonly faceIds: {
152
+ readonly type: "array";
153
+ readonly maxItems: 256;
154
+ readonly uniqueItems: true;
155
+ readonly items: {
156
+ readonly $ref: "#/$defs/Ulid";
157
+ };
158
+ readonly description: "Profiles belonging to this facet. A maintainer MUST NOT prune an id whose profile has been deleted: a dangling member is how a consumer can offer to tidy, and silently dropping it turns a deletion the holder may not have intended into one they cannot see.";
159
+ };
160
+ readonly attributeIds: {
161
+ readonly type: "array";
162
+ readonly maxItems: 1024;
163
+ readonly uniqueItems: true;
164
+ readonly items: {
165
+ readonly $ref: "#/$defs/Ulid";
166
+ };
167
+ readonly description: "Attributes belonging to this facet, with the same rule about dangling ids as `faceIds`.";
168
+ };
169
+ readonly version: {
170
+ readonly $ref: "#/$defs/Version";
171
+ };
172
+ readonly createdAt: {
173
+ readonly type: "string";
174
+ readonly format: "date-time";
175
+ };
176
+ readonly updatedAt: {
177
+ readonly type: "string";
178
+ readonly format: "date-time";
179
+ };
180
+ };
181
+ };
182
+ readonly Version: {
183
+ readonly title: "Version";
184
+ readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
185
+ readonly type: "integer";
186
+ readonly minimum: 1;
187
+ };
188
+ readonly Ulid: {
189
+ readonly title: "Ulid";
190
+ readonly description: "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.";
191
+ readonly type: "string";
192
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
193
+ };
194
+ readonly FacetColour: {
195
+ readonly title: "FacetColour";
196
+ readonly description: "A colour **name**, resolved by each consumer against its own palette — never a hex value or any other literal. Two reasons, and both are about the consumer rather than the holder. A literal cannot be legible in a terminal, in a light theme and in a dark one at once, so a stored `#8B0000` is a colour that is wrong somewhere and the holder has no way to know where. And a consumer that reserves colours to mean something — an error, a warning, an irreversible act — must be able to keep a holder's decorative choice out of that channel; it cannot do that with an arbitrary value, and it can do it trivially with a closed set it maps itself. The eight members are chosen to be distinguishable from one another and deliberately carry no status connotation: none is named for success, warning or danger.";
197
+ readonly type: "string";
198
+ readonly enum: readonly ["slate", "indigo", "teal", "moss", "sand", "clay", "rose", "plum"];
199
+ };
200
+ readonly Ext: {
201
+ readonly title: "Ext";
202
+ readonly 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.";
203
+ readonly type: "object";
204
+ readonly minProperties: 1;
205
+ readonly additionalProperties: true;
206
+ readonly propertyNames: {
207
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
208
+ };
209
+ };
210
+ };
211
+ };
212
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
213
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
214
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
215
+ readonly $ref: "#/$defs/Response";
216
+ readonly $defs: {
217
+ readonly Response: {
218
+ readonly $anchor: "response";
219
+ readonly title: "Persona Facet List — response payload";
220
+ readonly description: "Success response to persona/facet/list. Type https://trusttasks.org/spec/persona/facet/list/1.0#response.";
221
+ readonly type: "object";
222
+ readonly additionalProperties: false;
223
+ readonly required: readonly ["facets"];
224
+ readonly properties: {
225
+ readonly facets: {
226
+ readonly type: "array";
227
+ readonly maxItems: 250;
228
+ readonly items: {
229
+ readonly $ref: "#/$defs/Facet";
230
+ };
231
+ };
232
+ readonly nextCursor: {
233
+ readonly type: "string";
234
+ readonly maxLength: 4096;
235
+ readonly description: "Present when more facets remain. **Its absence is the only signal that a listing is complete** — a consumer MUST NOT infer exhaustion from a short page, because a maintainer may return fewer than `limit` for reasons of its own.";
236
+ };
237
+ readonly ext: {
238
+ readonly $ref: "#/$defs/Ext";
239
+ };
240
+ };
241
+ };
242
+ readonly Facet: {
243
+ readonly title: "Facet";
244
+ readonly type: "object";
245
+ readonly additionalProperties: false;
246
+ readonly required: readonly ["facetId", "name", "colour", "faceIds", "attributeIds", "version", "updatedAt"];
247
+ readonly description: "One named part of the holder's life, and what belongs to it. Agent-scoped, like the attribute pool and the profiles it groups — a facet names records that sit above every trust context, so it cannot itself live inside one.";
248
+ readonly properties: {
249
+ readonly facetId: {
250
+ readonly $ref: "#/$defs/Ulid";
251
+ };
252
+ readonly name: {
253
+ readonly type: "string";
254
+ readonly minLength: 1;
255
+ readonly maxLength: 64;
256
+ };
257
+ readonly colour: {
258
+ readonly $ref: "#/$defs/FacetColour";
259
+ };
260
+ readonly icon: {
261
+ readonly type: "string";
262
+ readonly minLength: 1;
263
+ readonly maxLength: 8;
264
+ };
265
+ readonly faceIds: {
266
+ readonly type: "array";
267
+ readonly maxItems: 256;
268
+ readonly uniqueItems: true;
269
+ readonly items: {
270
+ readonly $ref: "#/$defs/Ulid";
271
+ };
272
+ readonly description: "Profiles belonging to this facet. A maintainer MUST NOT prune an id whose profile has been deleted: a dangling member is how a consumer can offer to tidy, and silently dropping it turns a deletion the holder may not have intended into one they cannot see.";
273
+ };
274
+ readonly attributeIds: {
275
+ readonly type: "array";
276
+ readonly maxItems: 1024;
277
+ readonly uniqueItems: true;
278
+ readonly items: {
279
+ readonly $ref: "#/$defs/Ulid";
280
+ };
281
+ readonly description: "Attributes belonging to this facet, with the same rule about dangling ids as `faceIds`.";
282
+ };
283
+ readonly version: {
284
+ readonly $ref: "#/$defs/Version";
285
+ };
286
+ readonly createdAt: {
287
+ readonly type: "string";
288
+ readonly format: "date-time";
289
+ };
290
+ readonly updatedAt: {
291
+ readonly type: "string";
292
+ readonly format: "date-time";
293
+ };
294
+ };
295
+ };
296
+ readonly Version: {
297
+ readonly title: "Version";
298
+ readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
299
+ readonly type: "integer";
300
+ readonly minimum: 1;
301
+ };
302
+ readonly Ulid: {
303
+ readonly title: "Ulid";
304
+ readonly description: "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.";
305
+ readonly type: "string";
306
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
307
+ };
308
+ readonly FacetColour: {
309
+ readonly title: "FacetColour";
310
+ readonly description: "A colour **name**, resolved by each consumer against its own palette — never a hex value or any other literal. Two reasons, and both are about the consumer rather than the holder. A literal cannot be legible in a terminal, in a light theme and in a dark one at once, so a stored `#8B0000` is a colour that is wrong somewhere and the holder has no way to know where. And a consumer that reserves colours to mean something — an error, a warning, an irreversible act — must be able to keep a holder's decorative choice out of that channel; it cannot do that with an arbitrary value, and it can do it trivially with a closed set it maps itself. The eight members are chosen to be distinguishable from one another and deliberately carry no status connotation: none is named for success, warning or danger.";
311
+ readonly type: "string";
312
+ readonly enum: readonly ["slate", "indigo", "teal", "moss", "sand", "clay", "rose", "plum"];
313
+ };
314
+ readonly Ext: {
315
+ readonly title: "Ext";
316
+ readonly 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.";
317
+ readonly type: "object";
318
+ readonly minProperties: 1;
319
+ readonly additionalProperties: true;
320
+ readonly propertyNames: {
321
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
322
+ };
323
+ };
324
+ };
325
+ };
326
+ /**
327
+ * SPEC.md §7.2 policy for the request variant, from this specification's
328
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
329
+ * per-specification and cannot be derived from the document alone, and
330
+ * item 2 needs the schema this carries.
331
+ */
332
+ export declare const SPEC: {
333
+ readonly typeUri: "https://trusttasks.org/spec/persona/facet/list/1.0";
334
+ readonly isBearer: false;
335
+ readonly isProofRequired: true;
336
+ readonly isRecipientRequired: true;
337
+ readonly isIssuedAtRequired: true;
338
+ readonly payloadSchema: {
339
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
340
+ readonly $id: "https://trusttasks.org/spec/persona/facet/list/1.0";
341
+ readonly title: "Persona — Facet List — payload";
342
+ readonly description: "List the holder's facets, with their membership. Cursor-paginated like every other persona listing.";
343
+ readonly type: "object";
344
+ readonly additionalProperties: false;
345
+ readonly required: readonly [];
346
+ readonly properties: {
347
+ readonly limit: {
348
+ readonly type: "integer";
349
+ readonly minimum: 1;
350
+ readonly maximum: 250;
351
+ readonly default: 100;
352
+ readonly description: "The page size to ask for — never a cap on the result. A consumer that wants every facet follows `nextCursor` to the end; one that treats this as a limit will silently draw a partial picture.";
353
+ };
354
+ readonly cursor: {
355
+ readonly type: "string";
356
+ readonly maxLength: 4096;
357
+ readonly description: "Continue a prior listing. Opaque: a producer echoes what it was given and MUST NOT construct one.";
358
+ };
359
+ readonly ext: {
360
+ readonly $ref: "#/$defs/Ext";
361
+ };
362
+ };
363
+ readonly $defs: {
364
+ readonly Response: {
365
+ readonly $anchor: "response";
366
+ readonly title: "Persona Facet List — response payload";
367
+ readonly description: "Success response to persona/facet/list. Type https://trusttasks.org/spec/persona/facet/list/1.0#response.";
368
+ readonly type: "object";
369
+ readonly additionalProperties: false;
370
+ readonly required: readonly ["facets"];
371
+ readonly properties: {
372
+ readonly facets: {
373
+ readonly type: "array";
374
+ readonly maxItems: 250;
375
+ readonly items: {
376
+ readonly $ref: "#/$defs/Facet";
377
+ };
378
+ };
379
+ readonly nextCursor: {
380
+ readonly type: "string";
381
+ readonly maxLength: 4096;
382
+ readonly description: "Present when more facets remain. **Its absence is the only signal that a listing is complete** — a consumer MUST NOT infer exhaustion from a short page, because a maintainer may return fewer than `limit` for reasons of its own.";
383
+ };
384
+ readonly ext: {
385
+ readonly $ref: "#/$defs/Ext";
386
+ };
387
+ };
388
+ };
389
+ readonly Facet: {
390
+ readonly title: "Facet";
391
+ readonly type: "object";
392
+ readonly additionalProperties: false;
393
+ readonly required: readonly ["facetId", "name", "colour", "faceIds", "attributeIds", "version", "updatedAt"];
394
+ readonly description: "One named part of the holder's life, and what belongs to it. Agent-scoped, like the attribute pool and the profiles it groups — a facet names records that sit above every trust context, so it cannot itself live inside one.";
395
+ readonly properties: {
396
+ readonly facetId: {
397
+ readonly $ref: "#/$defs/Ulid";
398
+ };
399
+ readonly name: {
400
+ readonly type: "string";
401
+ readonly minLength: 1;
402
+ readonly maxLength: 64;
403
+ };
404
+ readonly colour: {
405
+ readonly $ref: "#/$defs/FacetColour";
406
+ };
407
+ readonly icon: {
408
+ readonly type: "string";
409
+ readonly minLength: 1;
410
+ readonly maxLength: 8;
411
+ };
412
+ readonly faceIds: {
413
+ readonly type: "array";
414
+ readonly maxItems: 256;
415
+ readonly uniqueItems: true;
416
+ readonly items: {
417
+ readonly $ref: "#/$defs/Ulid";
418
+ };
419
+ readonly description: "Profiles belonging to this facet. A maintainer MUST NOT prune an id whose profile has been deleted: a dangling member is how a consumer can offer to tidy, and silently dropping it turns a deletion the holder may not have intended into one they cannot see.";
420
+ };
421
+ readonly attributeIds: {
422
+ readonly type: "array";
423
+ readonly maxItems: 1024;
424
+ readonly uniqueItems: true;
425
+ readonly items: {
426
+ readonly $ref: "#/$defs/Ulid";
427
+ };
428
+ readonly description: "Attributes belonging to this facet, with the same rule about dangling ids as `faceIds`.";
429
+ };
430
+ readonly version: {
431
+ readonly $ref: "#/$defs/Version";
432
+ };
433
+ readonly createdAt: {
434
+ readonly type: "string";
435
+ readonly format: "date-time";
436
+ };
437
+ readonly updatedAt: {
438
+ readonly type: "string";
439
+ readonly format: "date-time";
440
+ };
441
+ };
442
+ };
443
+ readonly Version: {
444
+ readonly title: "Version";
445
+ readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
446
+ readonly type: "integer";
447
+ readonly minimum: 1;
448
+ };
449
+ readonly Ulid: {
450
+ readonly title: "Ulid";
451
+ readonly description: "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.";
452
+ readonly type: "string";
453
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
454
+ };
455
+ readonly FacetColour: {
456
+ readonly title: "FacetColour";
457
+ readonly description: "A colour **name**, resolved by each consumer against its own palette — never a hex value or any other literal. Two reasons, and both are about the consumer rather than the holder. A literal cannot be legible in a terminal, in a light theme and in a dark one at once, so a stored `#8B0000` is a colour that is wrong somewhere and the holder has no way to know where. And a consumer that reserves colours to mean something — an error, a warning, an irreversible act — must be able to keep a holder's decorative choice out of that channel; it cannot do that with an arbitrary value, and it can do it trivially with a closed set it maps itself. The eight members are chosen to be distinguishable from one another and deliberately carry no status connotation: none is named for success, warning or danger.";
458
+ readonly type: "string";
459
+ readonly enum: readonly ["slate", "indigo", "teal", "moss", "sand", "clay", "rose", "plum"];
460
+ };
461
+ readonly Ext: {
462
+ readonly title: "Ext";
463
+ readonly 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.";
464
+ readonly type: "object";
465
+ readonly minProperties: 1;
466
+ readonly additionalProperties: true;
467
+ readonly propertyNames: {
468
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
469
+ };
470
+ };
471
+ };
472
+ };
473
+ };
474
+ /**
475
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
476
+ * tracks the *issuer* party's requirement because a response swaps the
477
+ * parties (§7.3 item 5).
478
+ */
479
+ export declare const RESPONSE_SPEC: {
480
+ readonly typeUri: "https://trusttasks.org/spec/persona/facet/list/1.0#response";
481
+ readonly isBearer: false;
482
+ readonly isProofRequired: true;
483
+ readonly isRecipientRequired: true;
484
+ readonly isIssuedAtRequired: true;
485
+ readonly payloadSchema: {
486
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
487
+ readonly $ref: "#/$defs/Response";
488
+ readonly $defs: {
489
+ readonly Response: {
490
+ readonly $anchor: "response";
491
+ readonly title: "Persona Facet List — response payload";
492
+ readonly description: "Success response to persona/facet/list. Type https://trusttasks.org/spec/persona/facet/list/1.0#response.";
493
+ readonly type: "object";
494
+ readonly additionalProperties: false;
495
+ readonly required: readonly ["facets"];
496
+ readonly properties: {
497
+ readonly facets: {
498
+ readonly type: "array";
499
+ readonly maxItems: 250;
500
+ readonly items: {
501
+ readonly $ref: "#/$defs/Facet";
502
+ };
503
+ };
504
+ readonly nextCursor: {
505
+ readonly type: "string";
506
+ readonly maxLength: 4096;
507
+ readonly description: "Present when more facets remain. **Its absence is the only signal that a listing is complete** — a consumer MUST NOT infer exhaustion from a short page, because a maintainer may return fewer than `limit` for reasons of its own.";
508
+ };
509
+ readonly ext: {
510
+ readonly $ref: "#/$defs/Ext";
511
+ };
512
+ };
513
+ };
514
+ readonly Facet: {
515
+ readonly title: "Facet";
516
+ readonly type: "object";
517
+ readonly additionalProperties: false;
518
+ readonly required: readonly ["facetId", "name", "colour", "faceIds", "attributeIds", "version", "updatedAt"];
519
+ readonly description: "One named part of the holder's life, and what belongs to it. Agent-scoped, like the attribute pool and the profiles it groups — a facet names records that sit above every trust context, so it cannot itself live inside one.";
520
+ readonly properties: {
521
+ readonly facetId: {
522
+ readonly $ref: "#/$defs/Ulid";
523
+ };
524
+ readonly name: {
525
+ readonly type: "string";
526
+ readonly minLength: 1;
527
+ readonly maxLength: 64;
528
+ };
529
+ readonly colour: {
530
+ readonly $ref: "#/$defs/FacetColour";
531
+ };
532
+ readonly icon: {
533
+ readonly type: "string";
534
+ readonly minLength: 1;
535
+ readonly maxLength: 8;
536
+ };
537
+ readonly faceIds: {
538
+ readonly type: "array";
539
+ readonly maxItems: 256;
540
+ readonly uniqueItems: true;
541
+ readonly items: {
542
+ readonly $ref: "#/$defs/Ulid";
543
+ };
544
+ readonly description: "Profiles belonging to this facet. A maintainer MUST NOT prune an id whose profile has been deleted: a dangling member is how a consumer can offer to tidy, and silently dropping it turns a deletion the holder may not have intended into one they cannot see.";
545
+ };
546
+ readonly attributeIds: {
547
+ readonly type: "array";
548
+ readonly maxItems: 1024;
549
+ readonly uniqueItems: true;
550
+ readonly items: {
551
+ readonly $ref: "#/$defs/Ulid";
552
+ };
553
+ readonly description: "Attributes belonging to this facet, with the same rule about dangling ids as `faceIds`.";
554
+ };
555
+ readonly version: {
556
+ readonly $ref: "#/$defs/Version";
557
+ };
558
+ readonly createdAt: {
559
+ readonly type: "string";
560
+ readonly format: "date-time";
561
+ };
562
+ readonly updatedAt: {
563
+ readonly type: "string";
564
+ readonly format: "date-time";
565
+ };
566
+ };
567
+ };
568
+ readonly Version: {
569
+ readonly title: "Version";
570
+ readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
571
+ readonly type: "integer";
572
+ readonly minimum: 1;
573
+ };
574
+ readonly Ulid: {
575
+ readonly title: "Ulid";
576
+ readonly description: "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.";
577
+ readonly type: "string";
578
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
579
+ };
580
+ readonly FacetColour: {
581
+ readonly title: "FacetColour";
582
+ readonly description: "A colour **name**, resolved by each consumer against its own palette — never a hex value or any other literal. Two reasons, and both are about the consumer rather than the holder. A literal cannot be legible in a terminal, in a light theme and in a dark one at once, so a stored `#8B0000` is a colour that is wrong somewhere and the holder has no way to know where. And a consumer that reserves colours to mean something — an error, a warning, an irreversible act — must be able to keep a holder's decorative choice out of that channel; it cannot do that with an arbitrary value, and it can do it trivially with a closed set it maps itself. The eight members are chosen to be distinguishable from one another and deliberately carry no status connotation: none is named for success, warning or danger.";
583
+ readonly type: "string";
584
+ readonly enum: readonly ["slate", "indigo", "teal", "moss", "sand", "clay", "rose", "plum"];
585
+ };
586
+ readonly Ext: {
587
+ readonly title: "Ext";
588
+ readonly 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.";
589
+ readonly type: "object";
590
+ readonly minProperties: 1;
591
+ readonly additionalProperties: true;
592
+ readonly propertyNames: {
593
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
594
+ };
595
+ };
596
+ };
597
+ };
598
+ };
599
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/persona/facet/list/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,mBAAmB,IAAI,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAGhH;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,EAAE,IAAI,EAAE,CAAC;IAChB;;;;OAIG;IACH,YAAY,EAAE,IAAI,EAAE,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAEhD,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,oDAA6D,CAAC;AAEtF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,uBAAuB,CAAC;AAE9C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,6DAAsE,CAAC;AAExG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,+BAA+B,CAAC;AAEvD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyJjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmI1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}