@openvtc/trust-tasks 0.16.8 → 0.16.10

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 (206) hide show
  1. package/CHANGELOG.md +285 -0
  2. package/dist/_shared/components.d.ts +206 -7
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/device/list/0.1/payload.d.ts +4 -4
  5. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  6. package/dist/device/list/0.1/payload.js +6 -2
  7. package/dist/device/list/0.1/payload.js.map +1 -1
  8. package/dist/device/list/0.2/payload.d.ts +4 -4
  9. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  10. package/dist/device/list/0.2/payload.js +6 -2
  11. package/dist/device/list/0.2/payload.js.map +1 -1
  12. package/dist/device/register/0.1/payload.d.ts +4 -4
  13. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  14. package/dist/device/register/0.1/payload.js +6 -2
  15. package/dist/device/register/0.1/payload.js.map +1 -1
  16. package/dist/device/register/0.2/payload.d.ts +4 -4
  17. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  18. package/dist/device/register/0.2/payload.js +6 -2
  19. package/dist/device/register/0.2/payload.js.map +1 -1
  20. package/dist/index.d.ts +31 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +31 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/persona/_shared/0.1/persona-record.d.ts +22 -0
  25. package/dist/persona/_shared/0.1/persona-record.d.ts.map +1 -0
  26. package/dist/persona/_shared/0.1/persona-record.js +6 -0
  27. package/dist/persona/_shared/0.1/persona-record.js.map +1 -0
  28. package/dist/persona/attribute/delete/1.0/payload.d.ts +351 -0
  29. package/dist/persona/attribute/delete/1.0/payload.d.ts.map +1 -0
  30. package/dist/persona/attribute/delete/1.0/payload.js +188 -0
  31. package/dist/persona/attribute/delete/1.0/payload.js.map +1 -0
  32. package/dist/persona/attribute/list/1.0/payload.d.ts +895 -0
  33. package/dist/persona/attribute/list/1.0/payload.d.ts.map +1 -0
  34. package/dist/persona/attribute/list/1.0/payload.js +532 -0
  35. package/dist/persona/attribute/list/1.0/payload.js.map +1 -0
  36. package/dist/persona/attribute/put/1.0/payload.d.ts +829 -0
  37. package/dist/persona/attribute/put/1.0/payload.d.ts.map +1 -0
  38. package/dist/persona/attribute/put/1.0/payload.js +487 -0
  39. package/dist/persona/attribute/put/1.0/payload.js.map +1 -0
  40. package/dist/persona/binding/get/1.0/payload.d.ts +382 -0
  41. package/dist/persona/binding/get/1.0/payload.d.ts.map +1 -0
  42. package/dist/persona/binding/get/1.0/payload.js +206 -0
  43. package/dist/persona/binding/get/1.0/payload.js.map +1 -0
  44. package/dist/persona/binding/list/1.0/payload.d.ts +387 -0
  45. package/dist/persona/binding/list/1.0/payload.d.ts.map +1 -0
  46. package/dist/persona/binding/list/1.0/payload.js +210 -0
  47. package/dist/persona/binding/list/1.0/payload.js.map +1 -0
  48. package/dist/persona/binding/set/1.0/payload.d.ts +545 -0
  49. package/dist/persona/binding/set/1.0/payload.d.ts.map +1 -0
  50. package/dist/persona/binding/set/1.0/payload.js +302 -0
  51. package/dist/persona/binding/set/1.0/payload.js.map +1 -0
  52. package/dist/persona/contact/delete/1.0/payload.d.ts +313 -0
  53. package/dist/persona/contact/delete/1.0/payload.d.ts.map +1 -0
  54. package/dist/persona/contact/delete/1.0/payload.js +174 -0
  55. package/dist/persona/contact/delete/1.0/payload.js.map +1 -0
  56. package/dist/persona/contact/get/1.0/payload.d.ts +1027 -0
  57. package/dist/persona/contact/get/1.0/payload.d.ts.map +1 -0
  58. package/dist/persona/contact/get/1.0/payload.js +606 -0
  59. package/dist/persona/contact/get/1.0/payload.js.map +1 -0
  60. package/dist/persona/contact/list/1.0/payload.d.ts +490 -0
  61. package/dist/persona/contact/list/1.0/payload.d.ts.map +1 -0
  62. package/dist/persona/contact/list/1.0/payload.js +262 -0
  63. package/dist/persona/contact/list/1.0/payload.js.map +1 -0
  64. package/dist/persona/contact/put/1.0/payload.d.ts +885 -0
  65. package/dist/persona/contact/put/1.0/payload.d.ts.map +1 -0
  66. package/dist/persona/contact/put/1.0/payload.js +518 -0
  67. package/dist/persona/contact/put/1.0/payload.js.map +1 -0
  68. package/dist/persona/correlation/analyze/1.0/payload.d.ts +648 -0
  69. package/dist/persona/correlation/analyze/1.0/payload.d.ts.map +1 -0
  70. package/dist/persona/correlation/analyze/1.0/payload.js +338 -0
  71. package/dist/persona/correlation/analyze/1.0/payload.js.map +1 -0
  72. package/dist/persona/disclosure/history/1.0/payload.d.ts +639 -0
  73. package/dist/persona/disclosure/history/1.0/payload.d.ts.map +1 -0
  74. package/dist/persona/disclosure/history/1.0/payload.js +339 -0
  75. package/dist/persona/disclosure/history/1.0/payload.js.map +1 -0
  76. package/dist/persona/disclosure/present/1.0/payload.d.ts +400 -0
  77. package/dist/persona/disclosure/present/1.0/payload.d.ts.map +1 -0
  78. package/dist/persona/disclosure/present/1.0/payload.js +211 -0
  79. package/dist/persona/disclosure/present/1.0/payload.js.map +1 -0
  80. package/dist/persona/disclosure/preview/1.0/payload.d.ts +858 -0
  81. package/dist/persona/disclosure/preview/1.0/payload.d.ts.map +1 -0
  82. package/dist/persona/disclosure/preview/1.0/payload.js +480 -0
  83. package/dist/persona/disclosure/preview/1.0/payload.js.map +1 -0
  84. package/dist/persona/local/binding/set/1.0/payload.d.ts +394 -0
  85. package/dist/persona/local/binding/set/1.0/payload.d.ts.map +1 -0
  86. package/dist/persona/local/binding/set/1.0/payload.js +226 -0
  87. package/dist/persona/local/binding/set/1.0/payload.js.map +1 -0
  88. package/dist/persona/local/profile/delete/1.0/payload.d.ts +311 -0
  89. package/dist/persona/local/profile/delete/1.0/payload.d.ts.map +1 -0
  90. package/dist/persona/local/profile/delete/1.0/payload.js +173 -0
  91. package/dist/persona/local/profile/delete/1.0/payload.js.map +1 -0
  92. package/dist/persona/local/profile/get/1.0/payload.d.ts +368 -0
  93. package/dist/persona/local/profile/get/1.0/payload.d.ts.map +1 -0
  94. package/dist/persona/local/profile/get/1.0/payload.js +210 -0
  95. package/dist/persona/local/profile/get/1.0/payload.js.map +1 -0
  96. package/dist/persona/local/profile/list/1.0/payload.d.ts +387 -0
  97. package/dist/persona/local/profile/list/1.0/payload.d.ts.map +1 -0
  98. package/dist/persona/local/profile/list/1.0/payload.js +214 -0
  99. package/dist/persona/local/profile/list/1.0/payload.js.map +1 -0
  100. package/dist/persona/local/profile/put/1.0/payload.d.ts +545 -0
  101. package/dist/persona/local/profile/put/1.0/payload.d.ts.map +1 -0
  102. package/dist/persona/local/profile/put/1.0/payload.js +315 -0
  103. package/dist/persona/local/profile/put/1.0/payload.js.map +1 -0
  104. package/dist/persona/profile/delete/1.0/payload.d.ts +350 -0
  105. package/dist/persona/profile/delete/1.0/payload.d.ts.map +1 -0
  106. package/dist/persona/profile/delete/1.0/payload.js +189 -0
  107. package/dist/persona/profile/delete/1.0/payload.js.map +1 -0
  108. package/dist/persona/profile/get/1.0/payload.d.ts +1307 -0
  109. package/dist/persona/profile/get/1.0/payload.d.ts.map +1 -0
  110. package/dist/persona/profile/get/1.0/payload.js +804 -0
  111. package/dist/persona/profile/get/1.0/payload.js.map +1 -0
  112. package/dist/persona/profile/list/1.0/payload.d.ts +1120 -0
  113. package/dist/persona/profile/list/1.0/payload.d.ts.map +1 -0
  114. package/dist/persona/profile/list/1.0/payload.js +680 -0
  115. package/dist/persona/profile/list/1.0/payload.js.map +1 -0
  116. package/dist/persona/profile/put/1.0/payload.d.ts +1115 -0
  117. package/dist/persona/profile/put/1.0/payload.d.ts.map +1 -0
  118. package/dist/persona/profile/put/1.0/payload.js +675 -0
  119. package/dist/persona/profile/put/1.0/payload.js.map +1 -0
  120. package/dist/persona/renderers/list/1.0/payload.d.ts +362 -0
  121. package/dist/persona/renderers/list/1.0/payload.d.ts.map +1 -0
  122. package/dist/persona/renderers/list/1.0/payload.js +197 -0
  123. package/dist/persona/renderers/list/1.0/payload.js.map +1 -0
  124. package/dist/rooms/keys/commit/0.1/payload.d.ts +266 -0
  125. package/dist/rooms/keys/commit/0.1/payload.d.ts.map +1 -0
  126. package/dist/rooms/keys/commit/0.1/payload.js +146 -0
  127. package/dist/rooms/keys/commit/0.1/payload.js.map +1 -0
  128. package/dist/rooms/keys/key-package/0.1/payload.d.ts +272 -0
  129. package/dist/rooms/keys/key-package/0.1/payload.d.ts.map +1 -0
  130. package/dist/rooms/keys/key-package/0.1/payload.js +147 -0
  131. package/dist/rooms/keys/key-package/0.1/payload.js.map +1 -0
  132. package/dist/rooms/keys/welcome/0.1/payload.d.ts +276 -0
  133. package/dist/rooms/keys/welcome/0.1/payload.d.ts.map +1 -0
  134. package/dist/rooms/keys/welcome/0.1/payload.js +148 -0
  135. package/dist/rooms/keys/welcome/0.1/payload.js.map +1 -0
  136. package/dist/rooms/owner/claim/0.1/payload.d.ts +391 -0
  137. package/dist/rooms/owner/claim/0.1/payload.d.ts.map +1 -0
  138. package/dist/rooms/owner/claim/0.1/payload.js +214 -0
  139. package/dist/rooms/owner/claim/0.1/payload.js.map +1 -0
  140. package/dist/rooms/owner/transfer/0.1/payload.d.ts +391 -0
  141. package/dist/rooms/owner/transfer/0.1/payload.d.ts.map +1 -0
  142. package/dist/rooms/owner/transfer/0.1/payload.js +214 -0
  143. package/dist/rooms/owner/transfer/0.1/payload.js.map +1 -0
  144. package/dist/rooms/records/curate/0.1/payload.d.ts +500 -0
  145. package/dist/rooms/records/curate/0.1/payload.d.ts.map +1 -0
  146. package/dist/rooms/records/curate/0.1/payload.js +277 -0
  147. package/dist/rooms/records/curate/0.1/payload.js.map +1 -0
  148. package/dist/vta/_shared/0.1/app-state-record.d.ts +1 -1
  149. package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -1
  150. package/dist/vta/app-state/delete/1.0/payload.d.ts +1 -1
  151. package/dist/vta/app-state/delete/1.0/payload.d.ts.map +1 -1
  152. package/dist/vta/app-state/get/1.0/payload.d.ts +1 -1
  153. package/dist/vta/app-state/get/1.0/payload.d.ts.map +1 -1
  154. package/dist/vta/app-state/get-many/1.0/payload.d.ts +1 -1
  155. package/dist/vta/app-state/get-many/1.0/payload.d.ts.map +1 -1
  156. package/dist/vta/app-state/list/1.0/payload.d.ts +1 -1
  157. package/dist/vta/app-state/list/1.0/payload.d.ts.map +1 -1
  158. package/dist/vta/app-state/put/1.0/payload.d.ts +1 -1
  159. package/dist/vta/app-state/put/1.0/payload.d.ts.map +1 -1
  160. package/dist/vta/app-state/put-many/1.0/payload.d.ts +1 -1
  161. package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -1
  162. package/package.json +1 -1
  163. package/src/_shared/components.ts +217 -7
  164. package/src/device/list/0.1/payload.ts +6 -2
  165. package/src/device/list/0.2/payload.ts +6 -2
  166. package/src/device/register/0.1/payload.ts +6 -2
  167. package/src/device/register/0.2/payload.ts +6 -2
  168. package/src/index.ts +31 -0
  169. package/src/persona/_shared/0.1/persona-record.ts +23 -0
  170. package/src/persona/attribute/delete/1.0/payload.ts +238 -0
  171. package/src/persona/attribute/list/1.0/payload.ts +590 -0
  172. package/src/persona/attribute/put/1.0/payload.ts +559 -0
  173. package/src/persona/binding/get/1.0/payload.ts +257 -0
  174. package/src/persona/binding/list/1.0/payload.ts +260 -0
  175. package/src/persona/binding/set/1.0/payload.ts +370 -0
  176. package/src/persona/contact/delete/1.0/payload.ts +216 -0
  177. package/src/persona/contact/get/1.0/payload.ts +662 -0
  178. package/src/persona/contact/list/1.0/payload.ts +323 -0
  179. package/src/persona/contact/put/1.0/payload.ts +580 -0
  180. package/src/persona/correlation/analyze/1.0/payload.ts +466 -0
  181. package/src/persona/disclosure/history/1.0/payload.ts +415 -0
  182. package/src/persona/disclosure/present/1.0/payload.ts +274 -0
  183. package/src/persona/disclosure/preview/1.0/payload.ts +597 -0
  184. package/src/persona/local/binding/set/1.0/payload.ts +267 -0
  185. package/src/persona/local/profile/delete/1.0/payload.ts +215 -0
  186. package/src/persona/local/profile/get/1.0/payload.ts +251 -0
  187. package/src/persona/local/profile/list/1.0/payload.ts +260 -0
  188. package/src/persona/local/profile/put/1.0/payload.ts +373 -0
  189. package/src/persona/profile/delete/1.0/payload.ts +236 -0
  190. package/src/persona/profile/get/1.0/payload.ts +846 -0
  191. package/src/persona/profile/list/1.0/payload.ts +723 -0
  192. package/src/persona/profile/put/1.0/payload.ts +741 -0
  193. package/src/persona/renderers/list/1.0/payload.ts +248 -0
  194. package/src/rooms/keys/commit/0.1/payload.ts +195 -0
  195. package/src/rooms/keys/key-package/0.1/payload.ts +196 -0
  196. package/src/rooms/keys/welcome/0.1/payload.ts +201 -0
  197. package/src/rooms/owner/claim/0.1/payload.ts +268 -0
  198. package/src/rooms/owner/transfer/0.1/payload.ts +268 -0
  199. package/src/rooms/records/curate/0.1/payload.ts +357 -0
  200. package/src/vta/_shared/0.1/app-state-record.ts +1 -1
  201. package/src/vta/app-state/delete/1.0/payload.ts +1 -1
  202. package/src/vta/app-state/get/1.0/payload.ts +1 -1
  203. package/src/vta/app-state/get-many/1.0/payload.ts +1 -1
  204. package/src/vta/app-state/list/1.0/payload.ts +1 -1
  205. package/src/vta/app-state/put/1.0/payload.ts +1 -1
  206. package/src/vta/app-state/put-many/1.0/payload.ts +1 -1
@@ -0,0 +1,1120 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/persona/profile/list/1.0/payload.schema.json
4
+ */
5
+ import type { ClaimType, Ext, Profile, ProfileEntry, ProofRung, Provenance, Ulid, ValueType, Version_PersonaV0_1 as Version } from "../../../../_shared/components.js";
6
+ /**
7
+ * Enumerate the holder's profiles. Compositions only — entries are returned, values are not.
8
+ */
9
+ export interface PersonaProfileListPayload {
10
+ /**
11
+ * Opaque continuation token from a prior response. A producer MUST NOT construct or parse one.
12
+ */
13
+ cursor?: string;
14
+ limit?: number;
15
+ ext?: Ext;
16
+ }
17
+ /**
18
+ * Success response to persona/profile/list. Type https://trusttasks.org/spec/persona/profile/list/1.0#response. Profiles are returned as composed; there is no resolve option here, because resolving every profile in one call would decrypt the holder's entire pool to answer a question about names.
19
+ */
20
+ export interface PersonaProfileListResponsePayload {
21
+ /**
22
+ * @maxItems 500
23
+ */
24
+ profiles: Profile[];
25
+ /**
26
+ * Present when more remain. Its absence is the only exhaustion signal.
27
+ */
28
+ nextCursor?: string;
29
+ ext?: Ext;
30
+ }
31
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
32
+ export type { ClaimType, Ext, Profile, ProfileEntry, ProofRung, Provenance, Ulid, ValueType, Version };
33
+ /** Trust Task type URI. */
34
+ export declare const TYPE_URI: "https://trusttasks.org/spec/persona/profile/list/1.0";
35
+ /** Stable alias for this specification's request payload shape. */
36
+ export type Payload = PersonaProfileListPayload;
37
+ /** Trust Task response type URI (request type URI + "#response"). */
38
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/persona/profile/list/1.0#response";
39
+ /** Stable alias for this specification's success-response payload shape. */
40
+ export type Response = PersonaProfileListResponsePayload;
41
+ /**
42
+ * This specification's payload schema, as a value.
43
+ *
44
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
45
+ * rather than only as a `.json` file because TypeScript types are erased
46
+ * at runtime: without a schema a consumer has nothing to validate, and
47
+ * every REQUIRED payload member is optional in practice. Cross-file
48
+ * `$ref`s are already inlined, so it needs no resolver.
49
+ */
50
+ export declare const PAYLOAD_SCHEMA: {
51
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
52
+ readonly $id: "https://trusttasks.org/spec/persona/profile/list/1.0";
53
+ readonly title: "Persona Profile List — payload";
54
+ readonly description: "Enumerate the holder's profiles. Compositions only — entries are returned, values are not.";
55
+ readonly type: "object";
56
+ readonly additionalProperties: false;
57
+ readonly properties: {
58
+ readonly cursor: {
59
+ readonly type: "string";
60
+ readonly maxLength: 4096;
61
+ readonly description: "Opaque continuation token from a prior response. A producer MUST NOT construct or parse one.";
62
+ };
63
+ readonly limit: {
64
+ readonly type: "integer";
65
+ readonly minimum: 1;
66
+ readonly maximum: 500;
67
+ readonly default: 100;
68
+ };
69
+ readonly ext: {
70
+ readonly $ref: "#/$defs/Ext";
71
+ };
72
+ };
73
+ readonly $defs: {
74
+ readonly Response: {
75
+ readonly $anchor: "response";
76
+ readonly title: "Persona Profile List — response payload";
77
+ readonly description: "Success response to persona/profile/list. Type https://trusttasks.org/spec/persona/profile/list/1.0#response. Profiles are returned as composed; there is no resolve option here, because resolving every profile in one call would decrypt the holder's entire pool to answer a question about names.";
78
+ readonly type: "object";
79
+ readonly additionalProperties: false;
80
+ readonly required: readonly ["profiles"];
81
+ readonly properties: {
82
+ readonly profiles: {
83
+ readonly type: "array";
84
+ readonly maxItems: 500;
85
+ readonly items: {
86
+ readonly $ref: "#/$defs/Profile";
87
+ };
88
+ };
89
+ readonly nextCursor: {
90
+ readonly type: "string";
91
+ readonly maxLength: 4096;
92
+ readonly description: "Present when more remain. Its absence is the only exhaustion signal.";
93
+ };
94
+ readonly ext: {
95
+ readonly $ref: "#/$defs/Ext";
96
+ };
97
+ };
98
+ };
99
+ readonly Ext: {
100
+ readonly title: "Ext";
101
+ 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.";
102
+ readonly type: "object";
103
+ readonly minProperties: 1;
104
+ readonly additionalProperties: true;
105
+ readonly propertyNames: {
106
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
107
+ };
108
+ };
109
+ readonly Profile: {
110
+ readonly title: "Profile";
111
+ readonly description: "A named projection over the pool. Agent-scoped, like the pool it draws from. `entries` is ordered and the order is display order.";
112
+ readonly type: "object";
113
+ readonly additionalProperties: false;
114
+ readonly required: readonly ["profileId", "name", "entries", "version", "updatedAt"];
115
+ readonly properties: {
116
+ readonly profileId: {
117
+ readonly $ref: "#/$defs/Ulid";
118
+ };
119
+ readonly name: {
120
+ readonly type: "string";
121
+ readonly minLength: 1;
122
+ readonly maxLength: 128;
123
+ readonly description: "The holder's name for this profile — \"Work\", \"Gaming\". Not disclosed.";
124
+ };
125
+ readonly entries: {
126
+ readonly type: "array";
127
+ readonly maxItems: 256;
128
+ readonly items: {
129
+ readonly $ref: "#/$defs/ProfileEntry";
130
+ };
131
+ };
132
+ readonly credentialRefs: {
133
+ readonly type: "array";
134
+ readonly maxItems: 256;
135
+ readonly items: {
136
+ readonly type: "string";
137
+ readonly minLength: 1;
138
+ };
139
+ readonly description: "Vault identifiers of credentials associated with this profile as INVENTORY, distinct from the evidence relationship a `credentialBacked` attribute expresses. The two answer different questions — what can this persona prove, versus what backs this specific claim — and a consumer MUST NOT read one as the other.";
140
+ };
141
+ readonly version: {
142
+ readonly $ref: "#/$defs/Version";
143
+ };
144
+ readonly createdAt: {
145
+ readonly type: "string";
146
+ readonly format: "date-time";
147
+ };
148
+ readonly updatedAt: {
149
+ readonly type: "string";
150
+ readonly format: "date-time";
151
+ };
152
+ };
153
+ };
154
+ readonly Version: {
155
+ readonly title: "Version";
156
+ readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
157
+ readonly type: "integer";
158
+ readonly minimum: 1;
159
+ };
160
+ readonly ProfileEntry: {
161
+ readonly title: "ProfileEntry";
162
+ readonly description: "One line of a profile, in exactly one of four forms. Together they are the whole of a profile's flexibility, and each exists for a case the others handle badly.\n\n`{ref}` — use the pool attribute, live. Editing the pool updates every profile that references it, which is the point.\n\n`{ref, pinVersion}` — use the value as it was at that version. For a profile that must keep presenting the value a counterparty already verified.\n\n`{ref, override}` — the same fact, a different value here. (\"In the gaming profile my display name is different.\")\n\n`{inline}` — a value that never enters the pool, and so never leaks into another profile.\n\nOmission is exclusion; there is no removal marker.";
163
+ readonly type: "object";
164
+ readonly oneOf: readonly [{
165
+ readonly additionalProperties: false;
166
+ readonly required: readonly ["ref"];
167
+ readonly properties: {
168
+ readonly ref: {
169
+ readonly $ref: "#/$defs/Ulid";
170
+ };
171
+ };
172
+ }, {
173
+ readonly additionalProperties: false;
174
+ readonly required: readonly ["ref", "pinVersion"];
175
+ readonly properties: {
176
+ readonly ref: {
177
+ readonly $ref: "#/$defs/Ulid";
178
+ };
179
+ readonly pinVersion: {
180
+ readonly $ref: "#/$defs/Version";
181
+ };
182
+ };
183
+ }, {
184
+ readonly additionalProperties: false;
185
+ readonly required: readonly ["ref", "override"];
186
+ readonly properties: {
187
+ readonly ref: {
188
+ readonly $ref: "#/$defs/Ulid";
189
+ };
190
+ readonly override: {
191
+ readonly type: "object";
192
+ readonly additionalProperties: false;
193
+ readonly required: readonly ["value"];
194
+ readonly properties: {
195
+ readonly value: {};
196
+ readonly label: {
197
+ readonly type: "string";
198
+ readonly maxLength: 128;
199
+ };
200
+ };
201
+ readonly description: "Replaces the pool attribute's value for this profile only. `type`, `valueType` and `provenance` are inherited from the referenced attribute and MUST NOT be overridden — an override that changed provenance would let a self-asserted value present as attested.";
202
+ };
203
+ };
204
+ }, {
205
+ readonly additionalProperties: false;
206
+ readonly required: readonly ["inline"];
207
+ readonly properties: {
208
+ readonly inline: {
209
+ readonly type: "object";
210
+ readonly additionalProperties: false;
211
+ readonly required: readonly ["type", "valueType", "value", "provenance"];
212
+ readonly properties: {
213
+ readonly type: {
214
+ readonly $ref: "#/$defs/ClaimType";
215
+ };
216
+ readonly valueType: {
217
+ readonly $ref: "#/$defs/ValueType";
218
+ };
219
+ readonly value: {};
220
+ readonly label: {
221
+ readonly type: "string";
222
+ readonly maxLength: 128;
223
+ };
224
+ readonly provenance: {
225
+ readonly $ref: "#/$defs/Provenance";
226
+ };
227
+ };
228
+ };
229
+ };
230
+ }];
231
+ };
232
+ readonly Provenance: {
233
+ readonly title: "Provenance";
234
+ readonly 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.";
235
+ readonly type: "object";
236
+ readonly required: readonly ["kind"];
237
+ readonly oneOf: readonly [{
238
+ readonly additionalProperties: false;
239
+ readonly required: readonly ["kind"];
240
+ readonly properties: {
241
+ readonly kind: {
242
+ readonly const: "selfAsserted";
243
+ };
244
+ };
245
+ }, {
246
+ readonly additionalProperties: false;
247
+ readonly required: readonly ["kind", "credentialId", "claimPath"];
248
+ readonly properties: {
249
+ readonly kind: {
250
+ readonly const: "credentialBacked";
251
+ };
252
+ readonly credentialId: {
253
+ readonly type: "string";
254
+ readonly minLength: 1;
255
+ readonly description: "Vault identifier of the backing credential.";
256
+ };
257
+ readonly claimPath: {
258
+ readonly type: "string";
259
+ readonly pattern: "^(/[^/~]*(~[01][^/~]*)*)*$";
260
+ readonly description: "RFC 6901 JSON Pointer to the claim within the credential, e.g. `/credentialSubject/familyName`.";
261
+ };
262
+ readonly issuerDid: {
263
+ readonly type: "string";
264
+ readonly minLength: 1;
265
+ readonly description: "Issuer of the backing credential. Advisory: a consumer MUST verify the credential rather than trusting this member.";
266
+ };
267
+ readonly proof: {
268
+ readonly $ref: "#/$defs/ProofRung";
269
+ readonly description: "The disclosure rung this claim was, or will be, presented at.";
270
+ };
271
+ };
272
+ }, {
273
+ readonly additionalProperties: false;
274
+ readonly required: readonly ["kind", "generator"];
275
+ readonly properties: {
276
+ readonly kind: {
277
+ readonly const: "generated";
278
+ };
279
+ readonly generator: {
280
+ readonly type: "string";
281
+ readonly minLength: 1;
282
+ readonly maxLength: 64;
283
+ readonly description: "Names the minting scheme, e.g. `relayEmail`. Maintainer-defined.";
284
+ };
285
+ readonly perVerifier: {
286
+ readonly type: "boolean";
287
+ readonly default: true;
288
+ readonly description: "When true (the default and the only useful setting), a distinct value is minted for each verifier.";
289
+ };
290
+ };
291
+ }];
292
+ };
293
+ readonly ProofRung: {
294
+ readonly title: "ProofRung";
295
+ readonly 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.";
296
+ readonly type: "string";
297
+ readonly enum: readonly ["predicate", "derived", "selectiveDisclosure", "whole"];
298
+ };
299
+ readonly ValueType: {
300
+ readonly title: "ValueType";
301
+ readonly 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.";
302
+ readonly type: "string";
303
+ readonly enum: readonly ["string", "number", "boolean", "date", "object"];
304
+ };
305
+ readonly ClaimType: {
306
+ readonly title: "ClaimType";
307
+ readonly 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.";
308
+ readonly type: "string";
309
+ readonly minLength: 1;
310
+ readonly maxLength: 128;
311
+ readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
312
+ };
313
+ readonly Ulid: {
314
+ readonly title: "Ulid";
315
+ 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.";
316
+ readonly type: "string";
317
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
318
+ };
319
+ };
320
+ };
321
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
322
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
323
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
324
+ readonly $ref: "#/$defs/Response";
325
+ readonly $defs: {
326
+ readonly Response: {
327
+ readonly $anchor: "response";
328
+ readonly title: "Persona Profile List — response payload";
329
+ readonly description: "Success response to persona/profile/list. Type https://trusttasks.org/spec/persona/profile/list/1.0#response. Profiles are returned as composed; there is no resolve option here, because resolving every profile in one call would decrypt the holder's entire pool to answer a question about names.";
330
+ readonly type: "object";
331
+ readonly additionalProperties: false;
332
+ readonly required: readonly ["profiles"];
333
+ readonly properties: {
334
+ readonly profiles: {
335
+ readonly type: "array";
336
+ readonly maxItems: 500;
337
+ readonly items: {
338
+ readonly $ref: "#/$defs/Profile";
339
+ };
340
+ };
341
+ readonly nextCursor: {
342
+ readonly type: "string";
343
+ readonly maxLength: 4096;
344
+ readonly description: "Present when more remain. Its absence is the only exhaustion signal.";
345
+ };
346
+ readonly ext: {
347
+ readonly $ref: "#/$defs/Ext";
348
+ };
349
+ };
350
+ };
351
+ readonly Ext: {
352
+ readonly title: "Ext";
353
+ 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.";
354
+ readonly type: "object";
355
+ readonly minProperties: 1;
356
+ readonly additionalProperties: true;
357
+ readonly propertyNames: {
358
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
359
+ };
360
+ };
361
+ readonly Profile: {
362
+ readonly title: "Profile";
363
+ readonly description: "A named projection over the pool. Agent-scoped, like the pool it draws from. `entries` is ordered and the order is display order.";
364
+ readonly type: "object";
365
+ readonly additionalProperties: false;
366
+ readonly required: readonly ["profileId", "name", "entries", "version", "updatedAt"];
367
+ readonly properties: {
368
+ readonly profileId: {
369
+ readonly $ref: "#/$defs/Ulid";
370
+ };
371
+ readonly name: {
372
+ readonly type: "string";
373
+ readonly minLength: 1;
374
+ readonly maxLength: 128;
375
+ readonly description: "The holder's name for this profile — \"Work\", \"Gaming\". Not disclosed.";
376
+ };
377
+ readonly entries: {
378
+ readonly type: "array";
379
+ readonly maxItems: 256;
380
+ readonly items: {
381
+ readonly $ref: "#/$defs/ProfileEntry";
382
+ };
383
+ };
384
+ readonly credentialRefs: {
385
+ readonly type: "array";
386
+ readonly maxItems: 256;
387
+ readonly items: {
388
+ readonly type: "string";
389
+ readonly minLength: 1;
390
+ };
391
+ readonly description: "Vault identifiers of credentials associated with this profile as INVENTORY, distinct from the evidence relationship a `credentialBacked` attribute expresses. The two answer different questions — what can this persona prove, versus what backs this specific claim — and a consumer MUST NOT read one as the other.";
392
+ };
393
+ readonly version: {
394
+ readonly $ref: "#/$defs/Version";
395
+ };
396
+ readonly createdAt: {
397
+ readonly type: "string";
398
+ readonly format: "date-time";
399
+ };
400
+ readonly updatedAt: {
401
+ readonly type: "string";
402
+ readonly format: "date-time";
403
+ };
404
+ };
405
+ };
406
+ readonly Version: {
407
+ readonly title: "Version";
408
+ readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
409
+ readonly type: "integer";
410
+ readonly minimum: 1;
411
+ };
412
+ readonly ProfileEntry: {
413
+ readonly title: "ProfileEntry";
414
+ readonly description: "One line of a profile, in exactly one of four forms. Together they are the whole of a profile's flexibility, and each exists for a case the others handle badly.\n\n`{ref}` — use the pool attribute, live. Editing the pool updates every profile that references it, which is the point.\n\n`{ref, pinVersion}` — use the value as it was at that version. For a profile that must keep presenting the value a counterparty already verified.\n\n`{ref, override}` — the same fact, a different value here. (\"In the gaming profile my display name is different.\")\n\n`{inline}` — a value that never enters the pool, and so never leaks into another profile.\n\nOmission is exclusion; there is no removal marker.";
415
+ readonly type: "object";
416
+ readonly oneOf: readonly [{
417
+ readonly additionalProperties: false;
418
+ readonly required: readonly ["ref"];
419
+ readonly properties: {
420
+ readonly ref: {
421
+ readonly $ref: "#/$defs/Ulid";
422
+ };
423
+ };
424
+ }, {
425
+ readonly additionalProperties: false;
426
+ readonly required: readonly ["ref", "pinVersion"];
427
+ readonly properties: {
428
+ readonly ref: {
429
+ readonly $ref: "#/$defs/Ulid";
430
+ };
431
+ readonly pinVersion: {
432
+ readonly $ref: "#/$defs/Version";
433
+ };
434
+ };
435
+ }, {
436
+ readonly additionalProperties: false;
437
+ readonly required: readonly ["ref", "override"];
438
+ readonly properties: {
439
+ readonly ref: {
440
+ readonly $ref: "#/$defs/Ulid";
441
+ };
442
+ readonly override: {
443
+ readonly type: "object";
444
+ readonly additionalProperties: false;
445
+ readonly required: readonly ["value"];
446
+ readonly properties: {
447
+ readonly value: {};
448
+ readonly label: {
449
+ readonly type: "string";
450
+ readonly maxLength: 128;
451
+ };
452
+ };
453
+ readonly description: "Replaces the pool attribute's value for this profile only. `type`, `valueType` and `provenance` are inherited from the referenced attribute and MUST NOT be overridden — an override that changed provenance would let a self-asserted value present as attested.";
454
+ };
455
+ };
456
+ }, {
457
+ readonly additionalProperties: false;
458
+ readonly required: readonly ["inline"];
459
+ readonly properties: {
460
+ readonly inline: {
461
+ readonly type: "object";
462
+ readonly additionalProperties: false;
463
+ readonly required: readonly ["type", "valueType", "value", "provenance"];
464
+ readonly properties: {
465
+ readonly type: {
466
+ readonly $ref: "#/$defs/ClaimType";
467
+ };
468
+ readonly valueType: {
469
+ readonly $ref: "#/$defs/ValueType";
470
+ };
471
+ readonly value: {};
472
+ readonly label: {
473
+ readonly type: "string";
474
+ readonly maxLength: 128;
475
+ };
476
+ readonly provenance: {
477
+ readonly $ref: "#/$defs/Provenance";
478
+ };
479
+ };
480
+ };
481
+ };
482
+ }];
483
+ };
484
+ readonly Provenance: {
485
+ readonly title: "Provenance";
486
+ readonly 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.";
487
+ readonly type: "object";
488
+ readonly required: readonly ["kind"];
489
+ readonly oneOf: readonly [{
490
+ readonly additionalProperties: false;
491
+ readonly required: readonly ["kind"];
492
+ readonly properties: {
493
+ readonly kind: {
494
+ readonly const: "selfAsserted";
495
+ };
496
+ };
497
+ }, {
498
+ readonly additionalProperties: false;
499
+ readonly required: readonly ["kind", "credentialId", "claimPath"];
500
+ readonly properties: {
501
+ readonly kind: {
502
+ readonly const: "credentialBacked";
503
+ };
504
+ readonly credentialId: {
505
+ readonly type: "string";
506
+ readonly minLength: 1;
507
+ readonly description: "Vault identifier of the backing credential.";
508
+ };
509
+ readonly claimPath: {
510
+ readonly type: "string";
511
+ readonly pattern: "^(/[^/~]*(~[01][^/~]*)*)*$";
512
+ readonly description: "RFC 6901 JSON Pointer to the claim within the credential, e.g. `/credentialSubject/familyName`.";
513
+ };
514
+ readonly issuerDid: {
515
+ readonly type: "string";
516
+ readonly minLength: 1;
517
+ readonly description: "Issuer of the backing credential. Advisory: a consumer MUST verify the credential rather than trusting this member.";
518
+ };
519
+ readonly proof: {
520
+ readonly $ref: "#/$defs/ProofRung";
521
+ readonly description: "The disclosure rung this claim was, or will be, presented at.";
522
+ };
523
+ };
524
+ }, {
525
+ readonly additionalProperties: false;
526
+ readonly required: readonly ["kind", "generator"];
527
+ readonly properties: {
528
+ readonly kind: {
529
+ readonly const: "generated";
530
+ };
531
+ readonly generator: {
532
+ readonly type: "string";
533
+ readonly minLength: 1;
534
+ readonly maxLength: 64;
535
+ readonly description: "Names the minting scheme, e.g. `relayEmail`. Maintainer-defined.";
536
+ };
537
+ readonly perVerifier: {
538
+ readonly type: "boolean";
539
+ readonly default: true;
540
+ readonly description: "When true (the default and the only useful setting), a distinct value is minted for each verifier.";
541
+ };
542
+ };
543
+ }];
544
+ };
545
+ readonly ProofRung: {
546
+ readonly title: "ProofRung";
547
+ readonly 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.";
548
+ readonly type: "string";
549
+ readonly enum: readonly ["predicate", "derived", "selectiveDisclosure", "whole"];
550
+ };
551
+ readonly ValueType: {
552
+ readonly title: "ValueType";
553
+ readonly 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.";
554
+ readonly type: "string";
555
+ readonly enum: readonly ["string", "number", "boolean", "date", "object"];
556
+ };
557
+ readonly ClaimType: {
558
+ readonly title: "ClaimType";
559
+ readonly 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.";
560
+ readonly type: "string";
561
+ readonly minLength: 1;
562
+ readonly maxLength: 128;
563
+ readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
564
+ };
565
+ readonly Ulid: {
566
+ readonly title: "Ulid";
567
+ 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.";
568
+ readonly type: "string";
569
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
570
+ };
571
+ };
572
+ };
573
+ /**
574
+ * SPEC.md §7.2 policy for the request variant, from this specification's
575
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
576
+ * per-specification and cannot be derived from the document alone, and
577
+ * item 2 needs the schema this carries.
578
+ */
579
+ export declare const SPEC: {
580
+ readonly typeUri: "https://trusttasks.org/spec/persona/profile/list/1.0";
581
+ readonly isBearer: false;
582
+ readonly isProofRequired: true;
583
+ readonly isRecipientRequired: true;
584
+ readonly isIssuedAtRequired: false;
585
+ readonly payloadSchema: {
586
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
587
+ readonly $id: "https://trusttasks.org/spec/persona/profile/list/1.0";
588
+ readonly title: "Persona Profile List — payload";
589
+ readonly description: "Enumerate the holder's profiles. Compositions only — entries are returned, values are not.";
590
+ readonly type: "object";
591
+ readonly additionalProperties: false;
592
+ readonly properties: {
593
+ readonly cursor: {
594
+ readonly type: "string";
595
+ readonly maxLength: 4096;
596
+ readonly description: "Opaque continuation token from a prior response. A producer MUST NOT construct or parse one.";
597
+ };
598
+ readonly limit: {
599
+ readonly type: "integer";
600
+ readonly minimum: 1;
601
+ readonly maximum: 500;
602
+ readonly default: 100;
603
+ };
604
+ readonly ext: {
605
+ readonly $ref: "#/$defs/Ext";
606
+ };
607
+ };
608
+ readonly $defs: {
609
+ readonly Response: {
610
+ readonly $anchor: "response";
611
+ readonly title: "Persona Profile List — response payload";
612
+ readonly description: "Success response to persona/profile/list. Type https://trusttasks.org/spec/persona/profile/list/1.0#response. Profiles are returned as composed; there is no resolve option here, because resolving every profile in one call would decrypt the holder's entire pool to answer a question about names.";
613
+ readonly type: "object";
614
+ readonly additionalProperties: false;
615
+ readonly required: readonly ["profiles"];
616
+ readonly properties: {
617
+ readonly profiles: {
618
+ readonly type: "array";
619
+ readonly maxItems: 500;
620
+ readonly items: {
621
+ readonly $ref: "#/$defs/Profile";
622
+ };
623
+ };
624
+ readonly nextCursor: {
625
+ readonly type: "string";
626
+ readonly maxLength: 4096;
627
+ readonly description: "Present when more remain. Its absence is the only exhaustion signal.";
628
+ };
629
+ readonly ext: {
630
+ readonly $ref: "#/$defs/Ext";
631
+ };
632
+ };
633
+ };
634
+ readonly Ext: {
635
+ readonly title: "Ext";
636
+ 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.";
637
+ readonly type: "object";
638
+ readonly minProperties: 1;
639
+ readonly additionalProperties: true;
640
+ readonly propertyNames: {
641
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
642
+ };
643
+ };
644
+ readonly Profile: {
645
+ readonly title: "Profile";
646
+ readonly description: "A named projection over the pool. Agent-scoped, like the pool it draws from. `entries` is ordered and the order is display order.";
647
+ readonly type: "object";
648
+ readonly additionalProperties: false;
649
+ readonly required: readonly ["profileId", "name", "entries", "version", "updatedAt"];
650
+ readonly properties: {
651
+ readonly profileId: {
652
+ readonly $ref: "#/$defs/Ulid";
653
+ };
654
+ readonly name: {
655
+ readonly type: "string";
656
+ readonly minLength: 1;
657
+ readonly maxLength: 128;
658
+ readonly description: "The holder's name for this profile — \"Work\", \"Gaming\". Not disclosed.";
659
+ };
660
+ readonly entries: {
661
+ readonly type: "array";
662
+ readonly maxItems: 256;
663
+ readonly items: {
664
+ readonly $ref: "#/$defs/ProfileEntry";
665
+ };
666
+ };
667
+ readonly credentialRefs: {
668
+ readonly type: "array";
669
+ readonly maxItems: 256;
670
+ readonly items: {
671
+ readonly type: "string";
672
+ readonly minLength: 1;
673
+ };
674
+ readonly description: "Vault identifiers of credentials associated with this profile as INVENTORY, distinct from the evidence relationship a `credentialBacked` attribute expresses. The two answer different questions — what can this persona prove, versus what backs this specific claim — and a consumer MUST NOT read one as the other.";
675
+ };
676
+ readonly version: {
677
+ readonly $ref: "#/$defs/Version";
678
+ };
679
+ readonly createdAt: {
680
+ readonly type: "string";
681
+ readonly format: "date-time";
682
+ };
683
+ readonly updatedAt: {
684
+ readonly type: "string";
685
+ readonly format: "date-time";
686
+ };
687
+ };
688
+ };
689
+ readonly Version: {
690
+ readonly title: "Version";
691
+ readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
692
+ readonly type: "integer";
693
+ readonly minimum: 1;
694
+ };
695
+ readonly ProfileEntry: {
696
+ readonly title: "ProfileEntry";
697
+ readonly description: "One line of a profile, in exactly one of four forms. Together they are the whole of a profile's flexibility, and each exists for a case the others handle badly.\n\n`{ref}` — use the pool attribute, live. Editing the pool updates every profile that references it, which is the point.\n\n`{ref, pinVersion}` — use the value as it was at that version. For a profile that must keep presenting the value a counterparty already verified.\n\n`{ref, override}` — the same fact, a different value here. (\"In the gaming profile my display name is different.\")\n\n`{inline}` — a value that never enters the pool, and so never leaks into another profile.\n\nOmission is exclusion; there is no removal marker.";
698
+ readonly type: "object";
699
+ readonly oneOf: readonly [{
700
+ readonly additionalProperties: false;
701
+ readonly required: readonly ["ref"];
702
+ readonly properties: {
703
+ readonly ref: {
704
+ readonly $ref: "#/$defs/Ulid";
705
+ };
706
+ };
707
+ }, {
708
+ readonly additionalProperties: false;
709
+ readonly required: readonly ["ref", "pinVersion"];
710
+ readonly properties: {
711
+ readonly ref: {
712
+ readonly $ref: "#/$defs/Ulid";
713
+ };
714
+ readonly pinVersion: {
715
+ readonly $ref: "#/$defs/Version";
716
+ };
717
+ };
718
+ }, {
719
+ readonly additionalProperties: false;
720
+ readonly required: readonly ["ref", "override"];
721
+ readonly properties: {
722
+ readonly ref: {
723
+ readonly $ref: "#/$defs/Ulid";
724
+ };
725
+ readonly override: {
726
+ readonly type: "object";
727
+ readonly additionalProperties: false;
728
+ readonly required: readonly ["value"];
729
+ readonly properties: {
730
+ readonly value: {};
731
+ readonly label: {
732
+ readonly type: "string";
733
+ readonly maxLength: 128;
734
+ };
735
+ };
736
+ readonly description: "Replaces the pool attribute's value for this profile only. `type`, `valueType` and `provenance` are inherited from the referenced attribute and MUST NOT be overridden — an override that changed provenance would let a self-asserted value present as attested.";
737
+ };
738
+ };
739
+ }, {
740
+ readonly additionalProperties: false;
741
+ readonly required: readonly ["inline"];
742
+ readonly properties: {
743
+ readonly inline: {
744
+ readonly type: "object";
745
+ readonly additionalProperties: false;
746
+ readonly required: readonly ["type", "valueType", "value", "provenance"];
747
+ readonly properties: {
748
+ readonly type: {
749
+ readonly $ref: "#/$defs/ClaimType";
750
+ };
751
+ readonly valueType: {
752
+ readonly $ref: "#/$defs/ValueType";
753
+ };
754
+ readonly value: {};
755
+ readonly label: {
756
+ readonly type: "string";
757
+ readonly maxLength: 128;
758
+ };
759
+ readonly provenance: {
760
+ readonly $ref: "#/$defs/Provenance";
761
+ };
762
+ };
763
+ };
764
+ };
765
+ }];
766
+ };
767
+ readonly Provenance: {
768
+ readonly title: "Provenance";
769
+ readonly 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.";
770
+ readonly type: "object";
771
+ readonly required: readonly ["kind"];
772
+ readonly oneOf: readonly [{
773
+ readonly additionalProperties: false;
774
+ readonly required: readonly ["kind"];
775
+ readonly properties: {
776
+ readonly kind: {
777
+ readonly const: "selfAsserted";
778
+ };
779
+ };
780
+ }, {
781
+ readonly additionalProperties: false;
782
+ readonly required: readonly ["kind", "credentialId", "claimPath"];
783
+ readonly properties: {
784
+ readonly kind: {
785
+ readonly const: "credentialBacked";
786
+ };
787
+ readonly credentialId: {
788
+ readonly type: "string";
789
+ readonly minLength: 1;
790
+ readonly description: "Vault identifier of the backing credential.";
791
+ };
792
+ readonly claimPath: {
793
+ readonly type: "string";
794
+ readonly pattern: "^(/[^/~]*(~[01][^/~]*)*)*$";
795
+ readonly description: "RFC 6901 JSON Pointer to the claim within the credential, e.g. `/credentialSubject/familyName`.";
796
+ };
797
+ readonly issuerDid: {
798
+ readonly type: "string";
799
+ readonly minLength: 1;
800
+ readonly description: "Issuer of the backing credential. Advisory: a consumer MUST verify the credential rather than trusting this member.";
801
+ };
802
+ readonly proof: {
803
+ readonly $ref: "#/$defs/ProofRung";
804
+ readonly description: "The disclosure rung this claim was, or will be, presented at.";
805
+ };
806
+ };
807
+ }, {
808
+ readonly additionalProperties: false;
809
+ readonly required: readonly ["kind", "generator"];
810
+ readonly properties: {
811
+ readonly kind: {
812
+ readonly const: "generated";
813
+ };
814
+ readonly generator: {
815
+ readonly type: "string";
816
+ readonly minLength: 1;
817
+ readonly maxLength: 64;
818
+ readonly description: "Names the minting scheme, e.g. `relayEmail`. Maintainer-defined.";
819
+ };
820
+ readonly perVerifier: {
821
+ readonly type: "boolean";
822
+ readonly default: true;
823
+ readonly description: "When true (the default and the only useful setting), a distinct value is minted for each verifier.";
824
+ };
825
+ };
826
+ }];
827
+ };
828
+ readonly ProofRung: {
829
+ readonly title: "ProofRung";
830
+ readonly 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.";
831
+ readonly type: "string";
832
+ readonly enum: readonly ["predicate", "derived", "selectiveDisclosure", "whole"];
833
+ };
834
+ readonly ValueType: {
835
+ readonly title: "ValueType";
836
+ readonly 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.";
837
+ readonly type: "string";
838
+ readonly enum: readonly ["string", "number", "boolean", "date", "object"];
839
+ };
840
+ readonly ClaimType: {
841
+ readonly title: "ClaimType";
842
+ readonly 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.";
843
+ readonly type: "string";
844
+ readonly minLength: 1;
845
+ readonly maxLength: 128;
846
+ readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
847
+ };
848
+ readonly Ulid: {
849
+ readonly title: "Ulid";
850
+ 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.";
851
+ readonly type: "string";
852
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
853
+ };
854
+ };
855
+ };
856
+ };
857
+ /**
858
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
859
+ * tracks the *issuer* party's requirement because a response swaps the
860
+ * parties (§7.3 item 5).
861
+ */
862
+ export declare const RESPONSE_SPEC: {
863
+ readonly typeUri: "https://trusttasks.org/spec/persona/profile/list/1.0#response";
864
+ readonly isBearer: false;
865
+ readonly isProofRequired: true;
866
+ readonly isRecipientRequired: true;
867
+ readonly isIssuedAtRequired: false;
868
+ readonly payloadSchema: {
869
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
870
+ readonly $ref: "#/$defs/Response";
871
+ readonly $defs: {
872
+ readonly Response: {
873
+ readonly $anchor: "response";
874
+ readonly title: "Persona Profile List — response payload";
875
+ readonly description: "Success response to persona/profile/list. Type https://trusttasks.org/spec/persona/profile/list/1.0#response. Profiles are returned as composed; there is no resolve option here, because resolving every profile in one call would decrypt the holder's entire pool to answer a question about names.";
876
+ readonly type: "object";
877
+ readonly additionalProperties: false;
878
+ readonly required: readonly ["profiles"];
879
+ readonly properties: {
880
+ readonly profiles: {
881
+ readonly type: "array";
882
+ readonly maxItems: 500;
883
+ readonly items: {
884
+ readonly $ref: "#/$defs/Profile";
885
+ };
886
+ };
887
+ readonly nextCursor: {
888
+ readonly type: "string";
889
+ readonly maxLength: 4096;
890
+ readonly description: "Present when more remain. Its absence is the only exhaustion signal.";
891
+ };
892
+ readonly ext: {
893
+ readonly $ref: "#/$defs/Ext";
894
+ };
895
+ };
896
+ };
897
+ readonly Ext: {
898
+ readonly title: "Ext";
899
+ 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.";
900
+ readonly type: "object";
901
+ readonly minProperties: 1;
902
+ readonly additionalProperties: true;
903
+ readonly propertyNames: {
904
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
905
+ };
906
+ };
907
+ readonly Profile: {
908
+ readonly title: "Profile";
909
+ readonly description: "A named projection over the pool. Agent-scoped, like the pool it draws from. `entries` is ordered and the order is display order.";
910
+ readonly type: "object";
911
+ readonly additionalProperties: false;
912
+ readonly required: readonly ["profileId", "name", "entries", "version", "updatedAt"];
913
+ readonly properties: {
914
+ readonly profileId: {
915
+ readonly $ref: "#/$defs/Ulid";
916
+ };
917
+ readonly name: {
918
+ readonly type: "string";
919
+ readonly minLength: 1;
920
+ readonly maxLength: 128;
921
+ readonly description: "The holder's name for this profile — \"Work\", \"Gaming\". Not disclosed.";
922
+ };
923
+ readonly entries: {
924
+ readonly type: "array";
925
+ readonly maxItems: 256;
926
+ readonly items: {
927
+ readonly $ref: "#/$defs/ProfileEntry";
928
+ };
929
+ };
930
+ readonly credentialRefs: {
931
+ readonly type: "array";
932
+ readonly maxItems: 256;
933
+ readonly items: {
934
+ readonly type: "string";
935
+ readonly minLength: 1;
936
+ };
937
+ readonly description: "Vault identifiers of credentials associated with this profile as INVENTORY, distinct from the evidence relationship a `credentialBacked` attribute expresses. The two answer different questions — what can this persona prove, versus what backs this specific claim — and a consumer MUST NOT read one as the other.";
938
+ };
939
+ readonly version: {
940
+ readonly $ref: "#/$defs/Version";
941
+ };
942
+ readonly createdAt: {
943
+ readonly type: "string";
944
+ readonly format: "date-time";
945
+ };
946
+ readonly updatedAt: {
947
+ readonly type: "string";
948
+ readonly format: "date-time";
949
+ };
950
+ };
951
+ };
952
+ readonly Version: {
953
+ readonly title: "Version";
954
+ readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
955
+ readonly type: "integer";
956
+ readonly minimum: 1;
957
+ };
958
+ readonly ProfileEntry: {
959
+ readonly title: "ProfileEntry";
960
+ readonly description: "One line of a profile, in exactly one of four forms. Together they are the whole of a profile's flexibility, and each exists for a case the others handle badly.\n\n`{ref}` — use the pool attribute, live. Editing the pool updates every profile that references it, which is the point.\n\n`{ref, pinVersion}` — use the value as it was at that version. For a profile that must keep presenting the value a counterparty already verified.\n\n`{ref, override}` — the same fact, a different value here. (\"In the gaming profile my display name is different.\")\n\n`{inline}` — a value that never enters the pool, and so never leaks into another profile.\n\nOmission is exclusion; there is no removal marker.";
961
+ readonly type: "object";
962
+ readonly oneOf: readonly [{
963
+ readonly additionalProperties: false;
964
+ readonly required: readonly ["ref"];
965
+ readonly properties: {
966
+ readonly ref: {
967
+ readonly $ref: "#/$defs/Ulid";
968
+ };
969
+ };
970
+ }, {
971
+ readonly additionalProperties: false;
972
+ readonly required: readonly ["ref", "pinVersion"];
973
+ readonly properties: {
974
+ readonly ref: {
975
+ readonly $ref: "#/$defs/Ulid";
976
+ };
977
+ readonly pinVersion: {
978
+ readonly $ref: "#/$defs/Version";
979
+ };
980
+ };
981
+ }, {
982
+ readonly additionalProperties: false;
983
+ readonly required: readonly ["ref", "override"];
984
+ readonly properties: {
985
+ readonly ref: {
986
+ readonly $ref: "#/$defs/Ulid";
987
+ };
988
+ readonly override: {
989
+ readonly type: "object";
990
+ readonly additionalProperties: false;
991
+ readonly required: readonly ["value"];
992
+ readonly properties: {
993
+ readonly value: {};
994
+ readonly label: {
995
+ readonly type: "string";
996
+ readonly maxLength: 128;
997
+ };
998
+ };
999
+ readonly description: "Replaces the pool attribute's value for this profile only. `type`, `valueType` and `provenance` are inherited from the referenced attribute and MUST NOT be overridden — an override that changed provenance would let a self-asserted value present as attested.";
1000
+ };
1001
+ };
1002
+ }, {
1003
+ readonly additionalProperties: false;
1004
+ readonly required: readonly ["inline"];
1005
+ readonly properties: {
1006
+ readonly inline: {
1007
+ readonly type: "object";
1008
+ readonly additionalProperties: false;
1009
+ readonly required: readonly ["type", "valueType", "value", "provenance"];
1010
+ readonly properties: {
1011
+ readonly type: {
1012
+ readonly $ref: "#/$defs/ClaimType";
1013
+ };
1014
+ readonly valueType: {
1015
+ readonly $ref: "#/$defs/ValueType";
1016
+ };
1017
+ readonly value: {};
1018
+ readonly label: {
1019
+ readonly type: "string";
1020
+ readonly maxLength: 128;
1021
+ };
1022
+ readonly provenance: {
1023
+ readonly $ref: "#/$defs/Provenance";
1024
+ };
1025
+ };
1026
+ };
1027
+ };
1028
+ }];
1029
+ };
1030
+ readonly Provenance: {
1031
+ readonly title: "Provenance";
1032
+ readonly 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.";
1033
+ readonly type: "object";
1034
+ readonly required: readonly ["kind"];
1035
+ readonly oneOf: readonly [{
1036
+ readonly additionalProperties: false;
1037
+ readonly required: readonly ["kind"];
1038
+ readonly properties: {
1039
+ readonly kind: {
1040
+ readonly const: "selfAsserted";
1041
+ };
1042
+ };
1043
+ }, {
1044
+ readonly additionalProperties: false;
1045
+ readonly required: readonly ["kind", "credentialId", "claimPath"];
1046
+ readonly properties: {
1047
+ readonly kind: {
1048
+ readonly const: "credentialBacked";
1049
+ };
1050
+ readonly credentialId: {
1051
+ readonly type: "string";
1052
+ readonly minLength: 1;
1053
+ readonly description: "Vault identifier of the backing credential.";
1054
+ };
1055
+ readonly claimPath: {
1056
+ readonly type: "string";
1057
+ readonly pattern: "^(/[^/~]*(~[01][^/~]*)*)*$";
1058
+ readonly description: "RFC 6901 JSON Pointer to the claim within the credential, e.g. `/credentialSubject/familyName`.";
1059
+ };
1060
+ readonly issuerDid: {
1061
+ readonly type: "string";
1062
+ readonly minLength: 1;
1063
+ readonly description: "Issuer of the backing credential. Advisory: a consumer MUST verify the credential rather than trusting this member.";
1064
+ };
1065
+ readonly proof: {
1066
+ readonly $ref: "#/$defs/ProofRung";
1067
+ readonly description: "The disclosure rung this claim was, or will be, presented at.";
1068
+ };
1069
+ };
1070
+ }, {
1071
+ readonly additionalProperties: false;
1072
+ readonly required: readonly ["kind", "generator"];
1073
+ readonly properties: {
1074
+ readonly kind: {
1075
+ readonly const: "generated";
1076
+ };
1077
+ readonly generator: {
1078
+ readonly type: "string";
1079
+ readonly minLength: 1;
1080
+ readonly maxLength: 64;
1081
+ readonly description: "Names the minting scheme, e.g. `relayEmail`. Maintainer-defined.";
1082
+ };
1083
+ readonly perVerifier: {
1084
+ readonly type: "boolean";
1085
+ readonly default: true;
1086
+ readonly description: "When true (the default and the only useful setting), a distinct value is minted for each verifier.";
1087
+ };
1088
+ };
1089
+ }];
1090
+ };
1091
+ readonly ProofRung: {
1092
+ readonly title: "ProofRung";
1093
+ readonly 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.";
1094
+ readonly type: "string";
1095
+ readonly enum: readonly ["predicate", "derived", "selectiveDisclosure", "whole"];
1096
+ };
1097
+ readonly ValueType: {
1098
+ readonly title: "ValueType";
1099
+ readonly 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.";
1100
+ readonly type: "string";
1101
+ readonly enum: readonly ["string", "number", "boolean", "date", "object"];
1102
+ };
1103
+ readonly ClaimType: {
1104
+ readonly title: "ClaimType";
1105
+ readonly 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.";
1106
+ readonly type: "string";
1107
+ readonly minLength: 1;
1108
+ readonly maxLength: 128;
1109
+ readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
1110
+ };
1111
+ readonly Ulid: {
1112
+ readonly title: "Ulid";
1113
+ 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.";
1114
+ readonly type: "string";
1115
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
1116
+ };
1117
+ };
1118
+ };
1119
+ };
1120
+ //# sourceMappingURL=payload.d.ts.map