@openvtc/trust-tasks 0.16.9 → 0.16.11
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/CHANGELOG.md +220 -0
- package/dist/_shared/components.d.ts +206 -5
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -1
- package/dist/persona/_shared/0.1/persona-record.d.ts +22 -0
- package/dist/persona/_shared/0.1/persona-record.d.ts.map +1 -0
- package/dist/persona/_shared/0.1/persona-record.js +6 -0
- package/dist/persona/_shared/0.1/persona-record.js.map +1 -0
- package/dist/persona/attribute/delete/1.0/payload.d.ts +351 -0
- package/dist/persona/attribute/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/attribute/delete/1.0/payload.js +188 -0
- package/dist/persona/attribute/delete/1.0/payload.js.map +1 -0
- package/dist/persona/attribute/list/1.0/payload.d.ts +895 -0
- package/dist/persona/attribute/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/attribute/list/1.0/payload.js +530 -0
- package/dist/persona/attribute/list/1.0/payload.js.map +1 -0
- package/dist/persona/attribute/put/1.0/payload.d.ts +829 -0
- package/dist/persona/attribute/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/attribute/put/1.0/payload.js +487 -0
- package/dist/persona/attribute/put/1.0/payload.js.map +1 -0
- package/dist/persona/binding/get/1.0/payload.d.ts +382 -0
- package/dist/persona/binding/get/1.0/payload.d.ts.map +1 -0
- package/dist/persona/binding/get/1.0/payload.js +206 -0
- package/dist/persona/binding/get/1.0/payload.js.map +1 -0
- package/dist/persona/binding/list/1.0/payload.d.ts +387 -0
- package/dist/persona/binding/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/binding/list/1.0/payload.js +210 -0
- package/dist/persona/binding/list/1.0/payload.js.map +1 -0
- package/dist/persona/binding/set/1.0/payload.d.ts +545 -0
- package/dist/persona/binding/set/1.0/payload.d.ts.map +1 -0
- package/dist/persona/binding/set/1.0/payload.js +302 -0
- package/dist/persona/binding/set/1.0/payload.js.map +1 -0
- package/dist/persona/contact/delete/1.0/payload.d.ts +313 -0
- package/dist/persona/contact/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/delete/1.0/payload.js +174 -0
- package/dist/persona/contact/delete/1.0/payload.js.map +1 -0
- package/dist/persona/contact/get/1.0/payload.d.ts +1027 -0
- package/dist/persona/contact/get/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/get/1.0/payload.js +606 -0
- package/dist/persona/contact/get/1.0/payload.js.map +1 -0
- package/dist/persona/contact/list/1.0/payload.d.ts +490 -0
- package/dist/persona/contact/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/list/1.0/payload.js +262 -0
- package/dist/persona/contact/list/1.0/payload.js.map +1 -0
- package/dist/persona/contact/put/1.0/payload.d.ts +885 -0
- package/dist/persona/contact/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/put/1.0/payload.js +518 -0
- package/dist/persona/contact/put/1.0/payload.js.map +1 -0
- package/dist/persona/correlation/analyze/1.0/payload.d.ts +648 -0
- package/dist/persona/correlation/analyze/1.0/payload.d.ts.map +1 -0
- package/dist/persona/correlation/analyze/1.0/payload.js +338 -0
- package/dist/persona/correlation/analyze/1.0/payload.js.map +1 -0
- package/dist/persona/disclosure/history/1.0/payload.d.ts +639 -0
- package/dist/persona/disclosure/history/1.0/payload.d.ts.map +1 -0
- package/dist/persona/disclosure/history/1.0/payload.js +339 -0
- package/dist/persona/disclosure/history/1.0/payload.js.map +1 -0
- package/dist/persona/disclosure/present/1.0/payload.d.ts +400 -0
- package/dist/persona/disclosure/present/1.0/payload.d.ts.map +1 -0
- package/dist/persona/disclosure/present/1.0/payload.js +211 -0
- package/dist/persona/disclosure/present/1.0/payload.js.map +1 -0
- package/dist/persona/disclosure/preview/1.0/payload.d.ts +858 -0
- package/dist/persona/disclosure/preview/1.0/payload.d.ts.map +1 -0
- package/dist/persona/disclosure/preview/1.0/payload.js +480 -0
- package/dist/persona/disclosure/preview/1.0/payload.js.map +1 -0
- package/dist/persona/local/binding/set/1.0/payload.d.ts +394 -0
- package/dist/persona/local/binding/set/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/binding/set/1.0/payload.js +226 -0
- package/dist/persona/local/binding/set/1.0/payload.js.map +1 -0
- package/dist/persona/local/profile/delete/1.0/payload.d.ts +311 -0
- package/dist/persona/local/profile/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/profile/delete/1.0/payload.js +173 -0
- package/dist/persona/local/profile/delete/1.0/payload.js.map +1 -0
- package/dist/persona/local/profile/get/1.0/payload.d.ts +368 -0
- package/dist/persona/local/profile/get/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/profile/get/1.0/payload.js +210 -0
- package/dist/persona/local/profile/get/1.0/payload.js.map +1 -0
- package/dist/persona/local/profile/list/1.0/payload.d.ts +387 -0
- package/dist/persona/local/profile/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/profile/list/1.0/payload.js +214 -0
- package/dist/persona/local/profile/list/1.0/payload.js.map +1 -0
- package/dist/persona/local/profile/put/1.0/payload.d.ts +545 -0
- package/dist/persona/local/profile/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/local/profile/put/1.0/payload.js +315 -0
- package/dist/persona/local/profile/put/1.0/payload.js.map +1 -0
- package/dist/persona/profile/delete/1.0/payload.d.ts +350 -0
- package/dist/persona/profile/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/delete/1.0/payload.js +189 -0
- package/dist/persona/profile/delete/1.0/payload.js.map +1 -0
- package/dist/persona/profile/get/1.0/payload.d.ts +1307 -0
- package/dist/persona/profile/get/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/get/1.0/payload.js +802 -0
- package/dist/persona/profile/get/1.0/payload.js.map +1 -0
- package/dist/persona/profile/list/1.0/payload.d.ts +1120 -0
- package/dist/persona/profile/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/list/1.0/payload.js +680 -0
- package/dist/persona/profile/list/1.0/payload.js.map +1 -0
- package/dist/persona/profile/put/1.0/payload.d.ts +1115 -0
- package/dist/persona/profile/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/put/1.0/payload.js +675 -0
- package/dist/persona/profile/put/1.0/payload.js.map +1 -0
- package/dist/persona/renderers/list/1.0/payload.d.ts +362 -0
- package/dist/persona/renderers/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/renderers/list/1.0/payload.js +197 -0
- package/dist/persona/renderers/list/1.0/payload.js.map +1 -0
- package/dist/rooms/owner/claim/0.1/payload.d.ts +391 -0
- package/dist/rooms/owner/claim/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/claim/0.1/payload.js +214 -0
- package/dist/rooms/owner/claim/0.1/payload.js.map +1 -0
- package/dist/rooms/owner/transfer/0.1/payload.d.ts +391 -0
- package/dist/rooms/owner/transfer/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/transfer/0.1/payload.js +214 -0
- package/dist/rooms/owner/transfer/0.1/payload.js.map +1 -0
- package/dist/vta/_shared/0.1/app-state-record.d.ts +1 -1
- package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -1
- package/dist/vta/app-state/delete/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/delete/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/get/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/get/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/get-many/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/get-many/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/list/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/list/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/put/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/put/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/put-many/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +213 -5
- package/src/index.ts +27 -0
- package/src/persona/_shared/0.1/persona-record.ts +23 -0
- package/src/persona/attribute/delete/1.0/payload.ts +238 -0
- package/src/persona/attribute/list/1.0/payload.ts +588 -0
- package/src/persona/attribute/put/1.0/payload.ts +559 -0
- package/src/persona/binding/get/1.0/payload.ts +257 -0
- package/src/persona/binding/list/1.0/payload.ts +260 -0
- package/src/persona/binding/set/1.0/payload.ts +370 -0
- package/src/persona/contact/delete/1.0/payload.ts +216 -0
- package/src/persona/contact/get/1.0/payload.ts +662 -0
- package/src/persona/contact/list/1.0/payload.ts +323 -0
- package/src/persona/contact/put/1.0/payload.ts +580 -0
- package/src/persona/correlation/analyze/1.0/payload.ts +466 -0
- package/src/persona/disclosure/history/1.0/payload.ts +415 -0
- package/src/persona/disclosure/present/1.0/payload.ts +274 -0
- package/src/persona/disclosure/preview/1.0/payload.ts +597 -0
- package/src/persona/local/binding/set/1.0/payload.ts +267 -0
- package/src/persona/local/profile/delete/1.0/payload.ts +215 -0
- package/src/persona/local/profile/get/1.0/payload.ts +251 -0
- package/src/persona/local/profile/list/1.0/payload.ts +260 -0
- package/src/persona/local/profile/put/1.0/payload.ts +373 -0
- package/src/persona/profile/delete/1.0/payload.ts +236 -0
- package/src/persona/profile/get/1.0/payload.ts +844 -0
- package/src/persona/profile/list/1.0/payload.ts +723 -0
- package/src/persona/profile/put/1.0/payload.ts +741 -0
- package/src/persona/renderers/list/1.0/payload.ts +248 -0
- package/src/rooms/owner/claim/0.1/payload.ts +268 -0
- package/src/rooms/owner/transfer/0.1/payload.ts +268 -0
- package/src/vta/_shared/0.1/app-state-record.ts +1 -1
- package/src/vta/app-state/delete/1.0/payload.ts +1 -1
- package/src/vta/app-state/get/1.0/payload.ts +1 -1
- package/src/vta/app-state/get-many/1.0/payload.ts +1 -1
- package/src/vta/app-state/list/1.0/payload.ts +1 -1
- package/src/vta/app-state/put/1.0/payload.ts +1 -1
- package/src/vta/app-state/put-many/1.0/payload.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/persona/attribute/list/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,mBAAmB,IAAI,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAG3J;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;AAE3F,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,wDAAiE,CAAC;AAE1F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,2BAA2B,CAAC;AAElD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,iEAA0E,CAAC;AAE5G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,mCAAmC,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1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/persona/attribute/list/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/persona/attribute/list/1.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/persona/attribute/list/1.0#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/persona/attribute/list/1.0",
|
|
21
|
+
"title": "Persona Attribute List — payload",
|
|
22
|
+
"description": "Enumerate the holder's attribute pool, optionally narrowed to a vocabulary prefix. Cursor-paginated. Values are omitted unless asked for, so a picker can render the pool without decrypting every fact in it.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"properties": {
|
|
26
|
+
"typePrefix": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"maxLength": 128,
|
|
29
|
+
"description": "Narrows the result to attributes whose `type` begins with this string, compared over the UTF-8 encoding. Because the vocabulary is dotted most-general-segment-first, `phone` selects every phone number and `name` every name — which is the access pattern a builder actually has. The maintainer MUST NOT interpret the value further; a prefix that ends mid-segment is a byte comparison like any other."
|
|
30
|
+
},
|
|
31
|
+
"includeValues": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"default": false,
|
|
34
|
+
"description": "When false (the default), each returned attribute carries its metadata and no `value`. A pool listing is the common case and it does not need plaintext: a picker renders `type` and `label`. Defaulting to false means the expensive, sensitive path is the one a producer has to ask for."
|
|
35
|
+
},
|
|
36
|
+
"includeStale": {
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"default": true,
|
|
39
|
+
"description": "When true (the default), credential-backed attributes whose backing could not be re-derived are returned carrying `stale` and `staleReason`. Set false to omit them. The default is true because a holder needs to SEE that a credential-backed fact has gone stale — silently dropping it would present a pool that looks smaller than it is, and the holder would not know a claim had stopped being presentable."
|
|
40
|
+
},
|
|
41
|
+
"cursor": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"maxLength": 4096,
|
|
44
|
+
"description": "Opaque continuation token from a prior response's `nextCursor`. A producer MUST NOT construct or parse one."
|
|
45
|
+
},
|
|
46
|
+
"limit": {
|
|
47
|
+
"type": "integer",
|
|
48
|
+
"minimum": 1,
|
|
49
|
+
"maximum": 500,
|
|
50
|
+
"default": 100,
|
|
51
|
+
"description": "Maximum attributes to return. The maintainer MAY return fewer for reasons of its own and a producer MUST NOT infer exhaustion from a short page — only an absent `nextCursor` means the end."
|
|
52
|
+
},
|
|
53
|
+
"ext": {
|
|
54
|
+
"$ref": "#/$defs/Ext"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"$defs": {
|
|
58
|
+
"Response": {
|
|
59
|
+
"$anchor": "response",
|
|
60
|
+
"title": "Persona Attribute List — response payload",
|
|
61
|
+
"description": "Success response to persona/attribute/list. Type https://trusttasks.org/spec/persona/attribute/list/1.0#response.",
|
|
62
|
+
"type": "object",
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"required": [
|
|
65
|
+
"attributes"
|
|
66
|
+
],
|
|
67
|
+
"properties": {
|
|
68
|
+
"attributes": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"maxItems": 500,
|
|
71
|
+
"items": {
|
|
72
|
+
"$ref": "#/$defs/Attribute"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"nextCursor": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"maxLength": 4096,
|
|
78
|
+
"description": "Present when more attributes remain. Absent means the enumeration is complete — that absence is the only exhaustion signal."
|
|
79
|
+
},
|
|
80
|
+
"ext": {
|
|
81
|
+
"$ref": "#/$defs/Ext"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"Ext": {
|
|
86
|
+
"title": "Ext",
|
|
87
|
+
"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.",
|
|
88
|
+
"type": "object",
|
|
89
|
+
"minProperties": 1,
|
|
90
|
+
"additionalProperties": true,
|
|
91
|
+
"propertyNames": {
|
|
92
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"Attribute": {
|
|
96
|
+
"title": "Attribute",
|
|
97
|
+
"description": "One atomic fact a holder keeps about themselves. Several attributes MAY share a `type` — three phone numbers, a legal name and a preferred name — which is why `attributeId` is the identity of a fact and `type` is not. The pool is flat and unordered; ordering is a profile's concern.",
|
|
98
|
+
"type": "object",
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"required": [
|
|
101
|
+
"attributeId",
|
|
102
|
+
"type",
|
|
103
|
+
"valueType",
|
|
104
|
+
"provenance",
|
|
105
|
+
"version",
|
|
106
|
+
"updatedAt"
|
|
107
|
+
],
|
|
108
|
+
"properties": {
|
|
109
|
+
"attributeId": {
|
|
110
|
+
"$ref": "#/$defs/Ulid"
|
|
111
|
+
},
|
|
112
|
+
"type": {
|
|
113
|
+
"$ref": "#/$defs/ClaimType"
|
|
114
|
+
},
|
|
115
|
+
"valueType": {
|
|
116
|
+
"$ref": "#/$defs/ValueType"
|
|
117
|
+
},
|
|
118
|
+
"value": {
|
|
119
|
+
"description": "The fact itself, agreeing with `valueType`. Encrypted at rest by the maintainer.\n\nOPTIONAL, and its absence is meaningful in two distinct situations a consumer MUST NOT conflate: the caller asked for a metadata-only view (`list` without `includeValues`, which is the DEFAULT and the common case), or a credential-backed value could not be re-derived. `stale` tells them apart. Requiring this member would make the default listing unrepresentable — a maintainer would have to choose between disclosing every value in bulk and emitting a non-conformant response."
|
|
120
|
+
},
|
|
121
|
+
"label": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"maxLength": 128,
|
|
124
|
+
"description": "The holder's own words for this attribute, shown in a picker. Never disclosed to a verifier; it is a note to self."
|
|
125
|
+
},
|
|
126
|
+
"provenance": {
|
|
127
|
+
"$ref": "#/$defs/Provenance"
|
|
128
|
+
},
|
|
129
|
+
"stale": {
|
|
130
|
+
"type": "boolean",
|
|
131
|
+
"description": "Present and true when a `credentialBacked` value could not be re-derived. `staleReason` says why. A maintainer MUST refuse to disclose a stale attribute."
|
|
132
|
+
},
|
|
133
|
+
"staleReason": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"enum": [
|
|
136
|
+
"revoked",
|
|
137
|
+
"expired",
|
|
138
|
+
"archived",
|
|
139
|
+
"deleted",
|
|
140
|
+
"notFound"
|
|
141
|
+
],
|
|
142
|
+
"description": "Why re-derivation failed. Present only alongside `stale`."
|
|
143
|
+
},
|
|
144
|
+
"version": {
|
|
145
|
+
"$ref": "#/$defs/Version"
|
|
146
|
+
},
|
|
147
|
+
"createdAt": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"format": "date-time"
|
|
150
|
+
},
|
|
151
|
+
"updatedAt": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"format": "date-time"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"Version": {
|
|
158
|
+
"title": "Version",
|
|
159
|
+
"description": "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.",
|
|
160
|
+
"type": "integer",
|
|
161
|
+
"minimum": 1
|
|
162
|
+
},
|
|
163
|
+
"Provenance": {
|
|
164
|
+
"title": "Provenance",
|
|
165
|
+
"description": "Where a value comes from, and the member that makes this family worth building on a trust stack rather than in an address book. It survives to the verifier, so a recipient can tell — per field — what the holder typed from what an issuer attested.\n\n`selfAsserted` — the holder supplied it.\n\n`credentialBacked` — the value is derived from a credential in the vault at `claimPath`. The stored value is a CACHE FOR DISPLAY; the credential is the truth. A maintainer MUST re-derive it on read and MUST fail closed (never presenting a stale value) when the credential has been revoked, has expired, or has been archived or deleted.\n\n`generated` — the value is minted per verifier at disclosure time and recorded against that verifier, so every relying party receives a different one that routes back to the holder. This is the shape of the most widely adopted consumer privacy feature in this space; a maintainer need not operate a relay to conform, but the shape must exist, because retrofitting per-verifier values into a pool-of-values model is a migration rather than an addition.",
|
|
166
|
+
"type": "object",
|
|
167
|
+
"required": [
|
|
168
|
+
"kind"
|
|
169
|
+
],
|
|
170
|
+
"oneOf": [
|
|
171
|
+
{
|
|
172
|
+
"additionalProperties": false,
|
|
173
|
+
"required": [
|
|
174
|
+
"kind"
|
|
175
|
+
],
|
|
176
|
+
"properties": {
|
|
177
|
+
"kind": {
|
|
178
|
+
"const": "selfAsserted"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"additionalProperties": false,
|
|
184
|
+
"required": [
|
|
185
|
+
"kind",
|
|
186
|
+
"credentialId",
|
|
187
|
+
"claimPath"
|
|
188
|
+
],
|
|
189
|
+
"properties": {
|
|
190
|
+
"kind": {
|
|
191
|
+
"const": "credentialBacked"
|
|
192
|
+
},
|
|
193
|
+
"credentialId": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"minLength": 1,
|
|
196
|
+
"description": "Vault identifier of the backing credential."
|
|
197
|
+
},
|
|
198
|
+
"claimPath": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"pattern": "^(/[^/~]*(~[01][^/~]*)*)*$",
|
|
201
|
+
"description": "RFC 6901 JSON Pointer to the claim within the credential, e.g. `/credentialSubject/familyName`."
|
|
202
|
+
},
|
|
203
|
+
"issuerDid": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"minLength": 1,
|
|
206
|
+
"description": "Issuer of the backing credential. Advisory: a consumer MUST verify the credential rather than trusting this member."
|
|
207
|
+
},
|
|
208
|
+
"proof": {
|
|
209
|
+
"$ref": "#/$defs/ProofRung",
|
|
210
|
+
"description": "The disclosure rung this claim was, or will be, presented at."
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"additionalProperties": false,
|
|
216
|
+
"required": [
|
|
217
|
+
"kind",
|
|
218
|
+
"generator"
|
|
219
|
+
],
|
|
220
|
+
"properties": {
|
|
221
|
+
"kind": {
|
|
222
|
+
"const": "generated"
|
|
223
|
+
},
|
|
224
|
+
"generator": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"minLength": 1,
|
|
227
|
+
"maxLength": 64,
|
|
228
|
+
"description": "Names the minting scheme, e.g. `relayEmail`. Maintainer-defined."
|
|
229
|
+
},
|
|
230
|
+
"perVerifier": {
|
|
231
|
+
"type": "boolean",
|
|
232
|
+
"default": true,
|
|
233
|
+
"description": "When true (the default and the only useful setting), a distinct value is minted for each verifier."
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
"ProofRung": {
|
|
240
|
+
"title": "ProofRung",
|
|
241
|
+
"description": "How strongly a credential-backed claim is hidden when presented, ordered most private first. `predicate` proves a statement over a claim without disclosing the claim. `derived` discloses exactly the claims needed via an unlinkable derived proof, so two presentations cannot be joined. `selectiveDisclosure` discloses exactly the claims needed but carries the issuer's signature unchanged, so two presentations ARE linkable. `whole` discloses the entire credential.\n\nThe distinction between the first two and the last two is of kind, not degree: only `predicate` and `derived` avoid handing two verifiers a join key. A maintainer MUST default to the highest rung the credential's format supports, and MUST NOT silently fall to a lower one — a request that cannot be satisfied at the rung a producer asked for is refused, because a silent privacy downgrade discloses material the holder believed was hidden.",
|
|
242
|
+
"type": "string",
|
|
243
|
+
"enum": [
|
|
244
|
+
"predicate",
|
|
245
|
+
"derived",
|
|
246
|
+
"selectiveDisclosure",
|
|
247
|
+
"whole"
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
"ValueType": {
|
|
251
|
+
"title": "ValueType",
|
|
252
|
+
"description": "The JSON shape of `value`, declared so that a consumer can render and compare without guessing. The maintainer validates that `value` agrees with this member and does nothing further: it does NOT validate a phone number against a phone-number grammar. That is a producer's affordance, and a store that grows opinions about the contents of its records eventually blocks its consumer's release.",
|
|
253
|
+
"type": "string",
|
|
254
|
+
"enum": [
|
|
255
|
+
"string",
|
|
256
|
+
"number",
|
|
257
|
+
"boolean",
|
|
258
|
+
"date",
|
|
259
|
+
"object"
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
"ClaimType": {
|
|
263
|
+
"title": "ClaimType",
|
|
264
|
+
"description": "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.",
|
|
265
|
+
"type": "string",
|
|
266
|
+
"minLength": 1,
|
|
267
|
+
"maxLength": 128,
|
|
268
|
+
"pattern": "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"
|
|
269
|
+
},
|
|
270
|
+
"Ulid": {
|
|
271
|
+
"title": "Ulid",
|
|
272
|
+
"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.",
|
|
273
|
+
"type": "string",
|
|
274
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
279
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
280
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
281
|
+
"$ref": "#/$defs/Response",
|
|
282
|
+
"$defs": {
|
|
283
|
+
"Response": {
|
|
284
|
+
"$anchor": "response",
|
|
285
|
+
"title": "Persona Attribute List — response payload",
|
|
286
|
+
"description": "Success response to persona/attribute/list. Type https://trusttasks.org/spec/persona/attribute/list/1.0#response.",
|
|
287
|
+
"type": "object",
|
|
288
|
+
"additionalProperties": false,
|
|
289
|
+
"required": [
|
|
290
|
+
"attributes"
|
|
291
|
+
],
|
|
292
|
+
"properties": {
|
|
293
|
+
"attributes": {
|
|
294
|
+
"type": "array",
|
|
295
|
+
"maxItems": 500,
|
|
296
|
+
"items": {
|
|
297
|
+
"$ref": "#/$defs/Attribute"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"nextCursor": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"maxLength": 4096,
|
|
303
|
+
"description": "Present when more attributes remain. Absent means the enumeration is complete — that absence is the only exhaustion signal."
|
|
304
|
+
},
|
|
305
|
+
"ext": {
|
|
306
|
+
"$ref": "#/$defs/Ext"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"Ext": {
|
|
311
|
+
"title": "Ext",
|
|
312
|
+
"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.",
|
|
313
|
+
"type": "object",
|
|
314
|
+
"minProperties": 1,
|
|
315
|
+
"additionalProperties": true,
|
|
316
|
+
"propertyNames": {
|
|
317
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"Attribute": {
|
|
321
|
+
"title": "Attribute",
|
|
322
|
+
"description": "One atomic fact a holder keeps about themselves. Several attributes MAY share a `type` — three phone numbers, a legal name and a preferred name — which is why `attributeId` is the identity of a fact and `type` is not. The pool is flat and unordered; ordering is a profile's concern.",
|
|
323
|
+
"type": "object",
|
|
324
|
+
"additionalProperties": false,
|
|
325
|
+
"required": [
|
|
326
|
+
"attributeId",
|
|
327
|
+
"type",
|
|
328
|
+
"valueType",
|
|
329
|
+
"provenance",
|
|
330
|
+
"version",
|
|
331
|
+
"updatedAt"
|
|
332
|
+
],
|
|
333
|
+
"properties": {
|
|
334
|
+
"attributeId": {
|
|
335
|
+
"$ref": "#/$defs/Ulid"
|
|
336
|
+
},
|
|
337
|
+
"type": {
|
|
338
|
+
"$ref": "#/$defs/ClaimType"
|
|
339
|
+
},
|
|
340
|
+
"valueType": {
|
|
341
|
+
"$ref": "#/$defs/ValueType"
|
|
342
|
+
},
|
|
343
|
+
"value": {
|
|
344
|
+
"description": "The fact itself, agreeing with `valueType`. Encrypted at rest by the maintainer.\n\nOPTIONAL, and its absence is meaningful in two distinct situations a consumer MUST NOT conflate: the caller asked for a metadata-only view (`list` without `includeValues`, which is the DEFAULT and the common case), or a credential-backed value could not be re-derived. `stale` tells them apart. Requiring this member would make the default listing unrepresentable — a maintainer would have to choose between disclosing every value in bulk and emitting a non-conformant response."
|
|
345
|
+
},
|
|
346
|
+
"label": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"maxLength": 128,
|
|
349
|
+
"description": "The holder's own words for this attribute, shown in a picker. Never disclosed to a verifier; it is a note to self."
|
|
350
|
+
},
|
|
351
|
+
"provenance": {
|
|
352
|
+
"$ref": "#/$defs/Provenance"
|
|
353
|
+
},
|
|
354
|
+
"stale": {
|
|
355
|
+
"type": "boolean",
|
|
356
|
+
"description": "Present and true when a `credentialBacked` value could not be re-derived. `staleReason` says why. A maintainer MUST refuse to disclose a stale attribute."
|
|
357
|
+
},
|
|
358
|
+
"staleReason": {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"enum": [
|
|
361
|
+
"revoked",
|
|
362
|
+
"expired",
|
|
363
|
+
"archived",
|
|
364
|
+
"deleted",
|
|
365
|
+
"notFound"
|
|
366
|
+
],
|
|
367
|
+
"description": "Why re-derivation failed. Present only alongside `stale`."
|
|
368
|
+
},
|
|
369
|
+
"version": {
|
|
370
|
+
"$ref": "#/$defs/Version"
|
|
371
|
+
},
|
|
372
|
+
"createdAt": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"format": "date-time"
|
|
375
|
+
},
|
|
376
|
+
"updatedAt": {
|
|
377
|
+
"type": "string",
|
|
378
|
+
"format": "date-time"
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"Version": {
|
|
383
|
+
"title": "Version",
|
|
384
|
+
"description": "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.",
|
|
385
|
+
"type": "integer",
|
|
386
|
+
"minimum": 1
|
|
387
|
+
},
|
|
388
|
+
"Provenance": {
|
|
389
|
+
"title": "Provenance",
|
|
390
|
+
"description": "Where a value comes from, and the member that makes this family worth building on a trust stack rather than in an address book. It survives to the verifier, so a recipient can tell — per field — what the holder typed from what an issuer attested.\n\n`selfAsserted` — the holder supplied it.\n\n`credentialBacked` — the value is derived from a credential in the vault at `claimPath`. The stored value is a CACHE FOR DISPLAY; the credential is the truth. A maintainer MUST re-derive it on read and MUST fail closed (never presenting a stale value) when the credential has been revoked, has expired, or has been archived or deleted.\n\n`generated` — the value is minted per verifier at disclosure time and recorded against that verifier, so every relying party receives a different one that routes back to the holder. This is the shape of the most widely adopted consumer privacy feature in this space; a maintainer need not operate a relay to conform, but the shape must exist, because retrofitting per-verifier values into a pool-of-values model is a migration rather than an addition.",
|
|
391
|
+
"type": "object",
|
|
392
|
+
"required": [
|
|
393
|
+
"kind"
|
|
394
|
+
],
|
|
395
|
+
"oneOf": [
|
|
396
|
+
{
|
|
397
|
+
"additionalProperties": false,
|
|
398
|
+
"required": [
|
|
399
|
+
"kind"
|
|
400
|
+
],
|
|
401
|
+
"properties": {
|
|
402
|
+
"kind": {
|
|
403
|
+
"const": "selfAsserted"
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"additionalProperties": false,
|
|
409
|
+
"required": [
|
|
410
|
+
"kind",
|
|
411
|
+
"credentialId",
|
|
412
|
+
"claimPath"
|
|
413
|
+
],
|
|
414
|
+
"properties": {
|
|
415
|
+
"kind": {
|
|
416
|
+
"const": "credentialBacked"
|
|
417
|
+
},
|
|
418
|
+
"credentialId": {
|
|
419
|
+
"type": "string",
|
|
420
|
+
"minLength": 1,
|
|
421
|
+
"description": "Vault identifier of the backing credential."
|
|
422
|
+
},
|
|
423
|
+
"claimPath": {
|
|
424
|
+
"type": "string",
|
|
425
|
+
"pattern": "^(/[^/~]*(~[01][^/~]*)*)*$",
|
|
426
|
+
"description": "RFC 6901 JSON Pointer to the claim within the credential, e.g. `/credentialSubject/familyName`."
|
|
427
|
+
},
|
|
428
|
+
"issuerDid": {
|
|
429
|
+
"type": "string",
|
|
430
|
+
"minLength": 1,
|
|
431
|
+
"description": "Issuer of the backing credential. Advisory: a consumer MUST verify the credential rather than trusting this member."
|
|
432
|
+
},
|
|
433
|
+
"proof": {
|
|
434
|
+
"$ref": "#/$defs/ProofRung",
|
|
435
|
+
"description": "The disclosure rung this claim was, or will be, presented at."
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"additionalProperties": false,
|
|
441
|
+
"required": [
|
|
442
|
+
"kind",
|
|
443
|
+
"generator"
|
|
444
|
+
],
|
|
445
|
+
"properties": {
|
|
446
|
+
"kind": {
|
|
447
|
+
"const": "generated"
|
|
448
|
+
},
|
|
449
|
+
"generator": {
|
|
450
|
+
"type": "string",
|
|
451
|
+
"minLength": 1,
|
|
452
|
+
"maxLength": 64,
|
|
453
|
+
"description": "Names the minting scheme, e.g. `relayEmail`. Maintainer-defined."
|
|
454
|
+
},
|
|
455
|
+
"perVerifier": {
|
|
456
|
+
"type": "boolean",
|
|
457
|
+
"default": true,
|
|
458
|
+
"description": "When true (the default and the only useful setting), a distinct value is minted for each verifier."
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
]
|
|
463
|
+
},
|
|
464
|
+
"ProofRung": {
|
|
465
|
+
"title": "ProofRung",
|
|
466
|
+
"description": "How strongly a credential-backed claim is hidden when presented, ordered most private first. `predicate` proves a statement over a claim without disclosing the claim. `derived` discloses exactly the claims needed via an unlinkable derived proof, so two presentations cannot be joined. `selectiveDisclosure` discloses exactly the claims needed but carries the issuer's signature unchanged, so two presentations ARE linkable. `whole` discloses the entire credential.\n\nThe distinction between the first two and the last two is of kind, not degree: only `predicate` and `derived` avoid handing two verifiers a join key. A maintainer MUST default to the highest rung the credential's format supports, and MUST NOT silently fall to a lower one — a request that cannot be satisfied at the rung a producer asked for is refused, because a silent privacy downgrade discloses material the holder believed was hidden.",
|
|
467
|
+
"type": "string",
|
|
468
|
+
"enum": [
|
|
469
|
+
"predicate",
|
|
470
|
+
"derived",
|
|
471
|
+
"selectiveDisclosure",
|
|
472
|
+
"whole"
|
|
473
|
+
]
|
|
474
|
+
},
|
|
475
|
+
"ValueType": {
|
|
476
|
+
"title": "ValueType",
|
|
477
|
+
"description": "The JSON shape of `value`, declared so that a consumer can render and compare without guessing. The maintainer validates that `value` agrees with this member and does nothing further: it does NOT validate a phone number against a phone-number grammar. That is a producer's affordance, and a store that grows opinions about the contents of its records eventually blocks its consumer's release.",
|
|
478
|
+
"type": "string",
|
|
479
|
+
"enum": [
|
|
480
|
+
"string",
|
|
481
|
+
"number",
|
|
482
|
+
"boolean",
|
|
483
|
+
"date",
|
|
484
|
+
"object"
|
|
485
|
+
]
|
|
486
|
+
},
|
|
487
|
+
"ClaimType": {
|
|
488
|
+
"title": "ClaimType",
|
|
489
|
+
"description": "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.",
|
|
490
|
+
"type": "string",
|
|
491
|
+
"minLength": 1,
|
|
492
|
+
"maxLength": 128,
|
|
493
|
+
"pattern": "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"
|
|
494
|
+
},
|
|
495
|
+
"Ulid": {
|
|
496
|
+
"title": "Ulid",
|
|
497
|
+
"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.",
|
|
498
|
+
"type": "string",
|
|
499
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
/**
|
|
504
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
505
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
506
|
+
* per-specification and cannot be derived from the document alone, and
|
|
507
|
+
* item 2 needs the schema this carries.
|
|
508
|
+
*/
|
|
509
|
+
export const SPEC = {
|
|
510
|
+
typeUri: TYPE_URI,
|
|
511
|
+
isBearer: false,
|
|
512
|
+
isProofRequired: true,
|
|
513
|
+
isRecipientRequired: true,
|
|
514
|
+
isIssuedAtRequired: false,
|
|
515
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
516
|
+
};
|
|
517
|
+
/**
|
|
518
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
519
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
520
|
+
* parties (§7.3 item 5).
|
|
521
|
+
*/
|
|
522
|
+
export const RESPONSE_SPEC = {
|
|
523
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
524
|
+
isBearer: false,
|
|
525
|
+
isProofRequired: true,
|
|
526
|
+
isRecipientRequired: true,
|
|
527
|
+
isIssuedAtRequired: false,
|
|
528
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
529
|
+
};
|
|
530
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/persona/attribute/list/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAiDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAK1F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAA0E,CAAC;AAK5G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,wDAAwD;IAC/D,OAAO,EAAE,kCAAkC;IAC3C,aAAa,EAAE,gNAAgN;IAC/N,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;QACZ,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