@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.
Files changed (166) hide show
  1. package/CHANGELOG.md +220 -0
  2. package/dist/_shared/components.d.ts +206 -5
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +27 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +27 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/persona/_shared/0.1/persona-record.d.ts +22 -0
  9. package/dist/persona/_shared/0.1/persona-record.d.ts.map +1 -0
  10. package/dist/persona/_shared/0.1/persona-record.js +6 -0
  11. package/dist/persona/_shared/0.1/persona-record.js.map +1 -0
  12. package/dist/persona/attribute/delete/1.0/payload.d.ts +351 -0
  13. package/dist/persona/attribute/delete/1.0/payload.d.ts.map +1 -0
  14. package/dist/persona/attribute/delete/1.0/payload.js +188 -0
  15. package/dist/persona/attribute/delete/1.0/payload.js.map +1 -0
  16. package/dist/persona/attribute/list/1.0/payload.d.ts +895 -0
  17. package/dist/persona/attribute/list/1.0/payload.d.ts.map +1 -0
  18. package/dist/persona/attribute/list/1.0/payload.js +530 -0
  19. package/dist/persona/attribute/list/1.0/payload.js.map +1 -0
  20. package/dist/persona/attribute/put/1.0/payload.d.ts +829 -0
  21. package/dist/persona/attribute/put/1.0/payload.d.ts.map +1 -0
  22. package/dist/persona/attribute/put/1.0/payload.js +487 -0
  23. package/dist/persona/attribute/put/1.0/payload.js.map +1 -0
  24. package/dist/persona/binding/get/1.0/payload.d.ts +382 -0
  25. package/dist/persona/binding/get/1.0/payload.d.ts.map +1 -0
  26. package/dist/persona/binding/get/1.0/payload.js +206 -0
  27. package/dist/persona/binding/get/1.0/payload.js.map +1 -0
  28. package/dist/persona/binding/list/1.0/payload.d.ts +387 -0
  29. package/dist/persona/binding/list/1.0/payload.d.ts.map +1 -0
  30. package/dist/persona/binding/list/1.0/payload.js +210 -0
  31. package/dist/persona/binding/list/1.0/payload.js.map +1 -0
  32. package/dist/persona/binding/set/1.0/payload.d.ts +545 -0
  33. package/dist/persona/binding/set/1.0/payload.d.ts.map +1 -0
  34. package/dist/persona/binding/set/1.0/payload.js +302 -0
  35. package/dist/persona/binding/set/1.0/payload.js.map +1 -0
  36. package/dist/persona/contact/delete/1.0/payload.d.ts +313 -0
  37. package/dist/persona/contact/delete/1.0/payload.d.ts.map +1 -0
  38. package/dist/persona/contact/delete/1.0/payload.js +174 -0
  39. package/dist/persona/contact/delete/1.0/payload.js.map +1 -0
  40. package/dist/persona/contact/get/1.0/payload.d.ts +1027 -0
  41. package/dist/persona/contact/get/1.0/payload.d.ts.map +1 -0
  42. package/dist/persona/contact/get/1.0/payload.js +606 -0
  43. package/dist/persona/contact/get/1.0/payload.js.map +1 -0
  44. package/dist/persona/contact/list/1.0/payload.d.ts +490 -0
  45. package/dist/persona/contact/list/1.0/payload.d.ts.map +1 -0
  46. package/dist/persona/contact/list/1.0/payload.js +262 -0
  47. package/dist/persona/contact/list/1.0/payload.js.map +1 -0
  48. package/dist/persona/contact/put/1.0/payload.d.ts +885 -0
  49. package/dist/persona/contact/put/1.0/payload.d.ts.map +1 -0
  50. package/dist/persona/contact/put/1.0/payload.js +518 -0
  51. package/dist/persona/contact/put/1.0/payload.js.map +1 -0
  52. package/dist/persona/correlation/analyze/1.0/payload.d.ts +648 -0
  53. package/dist/persona/correlation/analyze/1.0/payload.d.ts.map +1 -0
  54. package/dist/persona/correlation/analyze/1.0/payload.js +338 -0
  55. package/dist/persona/correlation/analyze/1.0/payload.js.map +1 -0
  56. package/dist/persona/disclosure/history/1.0/payload.d.ts +639 -0
  57. package/dist/persona/disclosure/history/1.0/payload.d.ts.map +1 -0
  58. package/dist/persona/disclosure/history/1.0/payload.js +339 -0
  59. package/dist/persona/disclosure/history/1.0/payload.js.map +1 -0
  60. package/dist/persona/disclosure/present/1.0/payload.d.ts +400 -0
  61. package/dist/persona/disclosure/present/1.0/payload.d.ts.map +1 -0
  62. package/dist/persona/disclosure/present/1.0/payload.js +211 -0
  63. package/dist/persona/disclosure/present/1.0/payload.js.map +1 -0
  64. package/dist/persona/disclosure/preview/1.0/payload.d.ts +858 -0
  65. package/dist/persona/disclosure/preview/1.0/payload.d.ts.map +1 -0
  66. package/dist/persona/disclosure/preview/1.0/payload.js +480 -0
  67. package/dist/persona/disclosure/preview/1.0/payload.js.map +1 -0
  68. package/dist/persona/local/binding/set/1.0/payload.d.ts +394 -0
  69. package/dist/persona/local/binding/set/1.0/payload.d.ts.map +1 -0
  70. package/dist/persona/local/binding/set/1.0/payload.js +226 -0
  71. package/dist/persona/local/binding/set/1.0/payload.js.map +1 -0
  72. package/dist/persona/local/profile/delete/1.0/payload.d.ts +311 -0
  73. package/dist/persona/local/profile/delete/1.0/payload.d.ts.map +1 -0
  74. package/dist/persona/local/profile/delete/1.0/payload.js +173 -0
  75. package/dist/persona/local/profile/delete/1.0/payload.js.map +1 -0
  76. package/dist/persona/local/profile/get/1.0/payload.d.ts +368 -0
  77. package/dist/persona/local/profile/get/1.0/payload.d.ts.map +1 -0
  78. package/dist/persona/local/profile/get/1.0/payload.js +210 -0
  79. package/dist/persona/local/profile/get/1.0/payload.js.map +1 -0
  80. package/dist/persona/local/profile/list/1.0/payload.d.ts +387 -0
  81. package/dist/persona/local/profile/list/1.0/payload.d.ts.map +1 -0
  82. package/dist/persona/local/profile/list/1.0/payload.js +214 -0
  83. package/dist/persona/local/profile/list/1.0/payload.js.map +1 -0
  84. package/dist/persona/local/profile/put/1.0/payload.d.ts +545 -0
  85. package/dist/persona/local/profile/put/1.0/payload.d.ts.map +1 -0
  86. package/dist/persona/local/profile/put/1.0/payload.js +315 -0
  87. package/dist/persona/local/profile/put/1.0/payload.js.map +1 -0
  88. package/dist/persona/profile/delete/1.0/payload.d.ts +350 -0
  89. package/dist/persona/profile/delete/1.0/payload.d.ts.map +1 -0
  90. package/dist/persona/profile/delete/1.0/payload.js +189 -0
  91. package/dist/persona/profile/delete/1.0/payload.js.map +1 -0
  92. package/dist/persona/profile/get/1.0/payload.d.ts +1307 -0
  93. package/dist/persona/profile/get/1.0/payload.d.ts.map +1 -0
  94. package/dist/persona/profile/get/1.0/payload.js +802 -0
  95. package/dist/persona/profile/get/1.0/payload.js.map +1 -0
  96. package/dist/persona/profile/list/1.0/payload.d.ts +1120 -0
  97. package/dist/persona/profile/list/1.0/payload.d.ts.map +1 -0
  98. package/dist/persona/profile/list/1.0/payload.js +680 -0
  99. package/dist/persona/profile/list/1.0/payload.js.map +1 -0
  100. package/dist/persona/profile/put/1.0/payload.d.ts +1115 -0
  101. package/dist/persona/profile/put/1.0/payload.d.ts.map +1 -0
  102. package/dist/persona/profile/put/1.0/payload.js +675 -0
  103. package/dist/persona/profile/put/1.0/payload.js.map +1 -0
  104. package/dist/persona/renderers/list/1.0/payload.d.ts +362 -0
  105. package/dist/persona/renderers/list/1.0/payload.d.ts.map +1 -0
  106. package/dist/persona/renderers/list/1.0/payload.js +197 -0
  107. package/dist/persona/renderers/list/1.0/payload.js.map +1 -0
  108. package/dist/rooms/owner/claim/0.1/payload.d.ts +391 -0
  109. package/dist/rooms/owner/claim/0.1/payload.d.ts.map +1 -0
  110. package/dist/rooms/owner/claim/0.1/payload.js +214 -0
  111. package/dist/rooms/owner/claim/0.1/payload.js.map +1 -0
  112. package/dist/rooms/owner/transfer/0.1/payload.d.ts +391 -0
  113. package/dist/rooms/owner/transfer/0.1/payload.d.ts.map +1 -0
  114. package/dist/rooms/owner/transfer/0.1/payload.js +214 -0
  115. package/dist/rooms/owner/transfer/0.1/payload.js.map +1 -0
  116. package/dist/vta/_shared/0.1/app-state-record.d.ts +1 -1
  117. package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -1
  118. package/dist/vta/app-state/delete/1.0/payload.d.ts +1 -1
  119. package/dist/vta/app-state/delete/1.0/payload.d.ts.map +1 -1
  120. package/dist/vta/app-state/get/1.0/payload.d.ts +1 -1
  121. package/dist/vta/app-state/get/1.0/payload.d.ts.map +1 -1
  122. package/dist/vta/app-state/get-many/1.0/payload.d.ts +1 -1
  123. package/dist/vta/app-state/get-many/1.0/payload.d.ts.map +1 -1
  124. package/dist/vta/app-state/list/1.0/payload.d.ts +1 -1
  125. package/dist/vta/app-state/list/1.0/payload.d.ts.map +1 -1
  126. package/dist/vta/app-state/put/1.0/payload.d.ts +1 -1
  127. package/dist/vta/app-state/put/1.0/payload.d.ts.map +1 -1
  128. package/dist/vta/app-state/put-many/1.0/payload.d.ts +1 -1
  129. package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -1
  130. package/package.json +1 -1
  131. package/src/_shared/components.ts +213 -5
  132. package/src/index.ts +27 -0
  133. package/src/persona/_shared/0.1/persona-record.ts +23 -0
  134. package/src/persona/attribute/delete/1.0/payload.ts +238 -0
  135. package/src/persona/attribute/list/1.0/payload.ts +588 -0
  136. package/src/persona/attribute/put/1.0/payload.ts +559 -0
  137. package/src/persona/binding/get/1.0/payload.ts +257 -0
  138. package/src/persona/binding/list/1.0/payload.ts +260 -0
  139. package/src/persona/binding/set/1.0/payload.ts +370 -0
  140. package/src/persona/contact/delete/1.0/payload.ts +216 -0
  141. package/src/persona/contact/get/1.0/payload.ts +662 -0
  142. package/src/persona/contact/list/1.0/payload.ts +323 -0
  143. package/src/persona/contact/put/1.0/payload.ts +580 -0
  144. package/src/persona/correlation/analyze/1.0/payload.ts +466 -0
  145. package/src/persona/disclosure/history/1.0/payload.ts +415 -0
  146. package/src/persona/disclosure/present/1.0/payload.ts +274 -0
  147. package/src/persona/disclosure/preview/1.0/payload.ts +597 -0
  148. package/src/persona/local/binding/set/1.0/payload.ts +267 -0
  149. package/src/persona/local/profile/delete/1.0/payload.ts +215 -0
  150. package/src/persona/local/profile/get/1.0/payload.ts +251 -0
  151. package/src/persona/local/profile/list/1.0/payload.ts +260 -0
  152. package/src/persona/local/profile/put/1.0/payload.ts +373 -0
  153. package/src/persona/profile/delete/1.0/payload.ts +236 -0
  154. package/src/persona/profile/get/1.0/payload.ts +844 -0
  155. package/src/persona/profile/list/1.0/payload.ts +723 -0
  156. package/src/persona/profile/put/1.0/payload.ts +741 -0
  157. package/src/persona/renderers/list/1.0/payload.ts +248 -0
  158. package/src/rooms/owner/claim/0.1/payload.ts +268 -0
  159. package/src/rooms/owner/transfer/0.1/payload.ts +268 -0
  160. package/src/vta/_shared/0.1/app-state-record.ts +1 -1
  161. package/src/vta/app-state/delete/1.0/payload.ts +1 -1
  162. package/src/vta/app-state/get/1.0/payload.ts +1 -1
  163. package/src/vta/app-state/get-many/1.0/payload.ts +1 -1
  164. package/src/vta/app-state/list/1.0/payload.ts +1 -1
  165. package/src/vta/app-state/put/1.0/payload.ts +1 -1
  166. package/src/vta/app-state/put-many/1.0/payload.ts +1 -1
@@ -0,0 +1,302 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/persona/binding/set/1.0/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/persona/binding/set/1.0";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/persona/binding/set/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/binding/set/1.0",
21
+ "title": "Persona Binding Set — payload",
22
+ "description": "Assign a profile to a persona DID within a context, or clear the assignment. This is the step that pushes a composition across the context boundary: the maintainer materialises the profile into the context, and a context never reaches back the other way.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "contextId",
27
+ "personaDid"
28
+ ],
29
+ "properties": {
30
+ "contextId": {
31
+ "type": "string",
32
+ "minLength": 1,
33
+ "description": "The context the persona lives in. The binding is context-scoped even though the profile it names is not."
34
+ },
35
+ "personaDid": {
36
+ "type": "string",
37
+ "minLength": 1,
38
+ "maxLength": 2048,
39
+ "description": "The persona being bound."
40
+ },
41
+ "profileId": {
42
+ "oneOf": [
43
+ {
44
+ "$ref": "#/$defs/Ulid"
45
+ },
46
+ {
47
+ "type": "null"
48
+ }
49
+ ],
50
+ "description": "The profile to bind, or null to clear. Null is a first-class value and not an omission: a persona with no profile is a legitimate, common state — a throwaway identity that presents nothing — and the schema says so rather than leaving a consumer to infer it from an absent member."
51
+ },
52
+ "publicEntries": {
53
+ "type": "array",
54
+ "maxItems": 32,
55
+ "items": {
56
+ "$ref": "#/$defs/Ulid"
57
+ },
58
+ "description": "Attributes the holder opts into publishing on the persona's own DID document or equivalent public surface. Empty by default and MUST remain empty unless explicitly set: everything else is a per-verifier projection, and a published value is one document every relying party sees identically — a permanent correlation point the rest of this family exists to avoid."
59
+ },
60
+ "expectedVersion": {
61
+ "$ref": "#/$defs/ExpectedVersion"
62
+ },
63
+ "ext": {
64
+ "$ref": "#/$defs/Ext"
65
+ }
66
+ },
67
+ "$defs": {
68
+ "Response": {
69
+ "$anchor": "response",
70
+ "title": "Persona Binding Set — response payload",
71
+ "description": "Success response to persona/binding/set. Type https://trusttasks.org/spec/persona/binding/set/1.0#response.",
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "required": [
75
+ "contextId",
76
+ "personaDid",
77
+ "version",
78
+ "boundAt"
79
+ ],
80
+ "properties": {
81
+ "contextId": {
82
+ "type": "string",
83
+ "minLength": 1
84
+ },
85
+ "personaDid": {
86
+ "type": "string",
87
+ "minLength": 1
88
+ },
89
+ "profileId": {
90
+ "oneOf": [
91
+ {
92
+ "$ref": "#/$defs/Ulid"
93
+ },
94
+ {
95
+ "type": "null"
96
+ }
97
+ ]
98
+ },
99
+ "version": {
100
+ "$ref": "#/$defs/Version"
101
+ },
102
+ "materialisedClaimCount": {
103
+ "type": "integer",
104
+ "minimum": 0,
105
+ "description": "How many claims were materialised into the context by this binding. A count, so the holder can see that a push happened and how large it was without the response restating the values."
106
+ },
107
+ "correlation": {
108
+ "type": "object",
109
+ "additionalProperties": false,
110
+ "required": [
111
+ "severity"
112
+ ],
113
+ "description": "Advisory. Correlation is scored HERE as well as at composition, because composing is hypothetical and binding is when a value actually crosses into a context. Binding one profile to a second persona is reported at `high` unconditionally: that act makes the two personas the same person by construction.",
114
+ "properties": {
115
+ "severity": {
116
+ "type": "string",
117
+ "enum": [
118
+ "none",
119
+ "low",
120
+ "high"
121
+ ]
122
+ },
123
+ "alsoBoundPersonaCount": {
124
+ "type": "integer",
125
+ "minimum": 0,
126
+ "description": "How many other personas are bound to this same profile. A count, not identifiers."
127
+ }
128
+ }
129
+ },
130
+ "boundAt": {
131
+ "type": "string",
132
+ "format": "date-time"
133
+ },
134
+ "ext": {
135
+ "$ref": "#/$defs/Ext"
136
+ }
137
+ }
138
+ },
139
+ "Ext": {
140
+ "title": "Ext",
141
+ "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.",
142
+ "type": "object",
143
+ "minProperties": 1,
144
+ "additionalProperties": true,
145
+ "propertyNames": {
146
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
147
+ }
148
+ },
149
+ "Version": {
150
+ "title": "Version",
151
+ "description": "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.",
152
+ "type": "integer",
153
+ "minimum": 1
154
+ },
155
+ "Ulid": {
156
+ "title": "Ulid",
157
+ "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.",
158
+ "type": "string",
159
+ "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
160
+ },
161
+ "ExpectedVersion": {
162
+ "title": "ExpectedVersion",
163
+ "description": "Optimistic-concurrency precondition. A positive value requires the record's current `version` to equal it exactly; zero means create-only and applies only when no live record exists at the address.",
164
+ "type": "integer",
165
+ "minimum": 0
166
+ }
167
+ }
168
+ };
169
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
170
+ export const RESPONSE_PAYLOAD_SCHEMA = {
171
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
172
+ "$ref": "#/$defs/Response",
173
+ "$defs": {
174
+ "Response": {
175
+ "$anchor": "response",
176
+ "title": "Persona Binding Set — response payload",
177
+ "description": "Success response to persona/binding/set. Type https://trusttasks.org/spec/persona/binding/set/1.0#response.",
178
+ "type": "object",
179
+ "additionalProperties": false,
180
+ "required": [
181
+ "contextId",
182
+ "personaDid",
183
+ "version",
184
+ "boundAt"
185
+ ],
186
+ "properties": {
187
+ "contextId": {
188
+ "type": "string",
189
+ "minLength": 1
190
+ },
191
+ "personaDid": {
192
+ "type": "string",
193
+ "minLength": 1
194
+ },
195
+ "profileId": {
196
+ "oneOf": [
197
+ {
198
+ "$ref": "#/$defs/Ulid"
199
+ },
200
+ {
201
+ "type": "null"
202
+ }
203
+ ]
204
+ },
205
+ "version": {
206
+ "$ref": "#/$defs/Version"
207
+ },
208
+ "materialisedClaimCount": {
209
+ "type": "integer",
210
+ "minimum": 0,
211
+ "description": "How many claims were materialised into the context by this binding. A count, so the holder can see that a push happened and how large it was without the response restating the values."
212
+ },
213
+ "correlation": {
214
+ "type": "object",
215
+ "additionalProperties": false,
216
+ "required": [
217
+ "severity"
218
+ ],
219
+ "description": "Advisory. Correlation is scored HERE as well as at composition, because composing is hypothetical and binding is when a value actually crosses into a context. Binding one profile to a second persona is reported at `high` unconditionally: that act makes the two personas the same person by construction.",
220
+ "properties": {
221
+ "severity": {
222
+ "type": "string",
223
+ "enum": [
224
+ "none",
225
+ "low",
226
+ "high"
227
+ ]
228
+ },
229
+ "alsoBoundPersonaCount": {
230
+ "type": "integer",
231
+ "minimum": 0,
232
+ "description": "How many other personas are bound to this same profile. A count, not identifiers."
233
+ }
234
+ }
235
+ },
236
+ "boundAt": {
237
+ "type": "string",
238
+ "format": "date-time"
239
+ },
240
+ "ext": {
241
+ "$ref": "#/$defs/Ext"
242
+ }
243
+ }
244
+ },
245
+ "Ext": {
246
+ "title": "Ext",
247
+ "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.",
248
+ "type": "object",
249
+ "minProperties": 1,
250
+ "additionalProperties": true,
251
+ "propertyNames": {
252
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
253
+ }
254
+ },
255
+ "Version": {
256
+ "title": "Version",
257
+ "description": "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.",
258
+ "type": "integer",
259
+ "minimum": 1
260
+ },
261
+ "Ulid": {
262
+ "title": "Ulid",
263
+ "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.",
264
+ "type": "string",
265
+ "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
266
+ },
267
+ "ExpectedVersion": {
268
+ "title": "ExpectedVersion",
269
+ "description": "Optimistic-concurrency precondition. A positive value requires the record's current `version` to equal it exactly; zero means create-only and applies only when no live record exists at the address.",
270
+ "type": "integer",
271
+ "minimum": 0
272
+ }
273
+ }
274
+ };
275
+ /**
276
+ * SPEC.md §7.2 policy for the request variant, from this specification's
277
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
278
+ * per-specification and cannot be derived from the document alone, and
279
+ * item 2 needs the schema this carries.
280
+ */
281
+ export const SPEC = {
282
+ typeUri: TYPE_URI,
283
+ isBearer: false,
284
+ isProofRequired: true,
285
+ isRecipientRequired: true,
286
+ isIssuedAtRequired: true,
287
+ payloadSchema: PAYLOAD_SCHEMA,
288
+ };
289
+ /**
290
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
291
+ * tracks the *issuer* party's requirement because a response swaps the
292
+ * parties (§7.3 item 5).
293
+ */
294
+ export const RESPONSE_SPEC = {
295
+ typeUri: RESPONSE_TYPE_URI,
296
+ isBearer: false,
297
+ isProofRequired: true,
298
+ isRecipientRequired: true,
299
+ isIssuedAtRequired: true,
300
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
301
+ };
302
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/persona/binding/set/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA2DH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,qDAA8D,CAAC;AAKvF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,8DAAuE,CAAC;AAKzG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,qDAAqD;IAC5D,OAAO,EAAE,+BAA+B;IACxC,aAAa,EAAE,gQAAgQ;IAC/Q,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,WAAW;QACX,YAAY;KACb;IACD,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,0GAA0G;SAC1H;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,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,SAAS,EAAE,mCAAmC;aAC/C;SACF;QACD,SAAS,EAAE;YACT,OAAO,EAAE,SAAS;YAClB,aAAa,EAAE,gGAAgG;YAC/G,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,CAAC;SACb;QACD,MAAM,EAAE;YACN,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,waAAwa;YACvb,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,0BAA0B;SACtC;QACD,iBAAiB,EAAE;YACjB,OAAO,EAAE,iBAAiB;YAC1B,aAAa,EAAE,uMAAuM;YACtN,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,CAAC;SACb;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
@@ -0,0 +1,313 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/persona/contact/delete/1.0/payload.schema.json
4
+ */
5
+ import type { Ext, Ulid } from "../../../../_shared/components.js";
6
+ /**
7
+ * Remove a contact and every revision of it.
8
+ */
9
+ export interface PersonaContactDeletePayload {
10
+ contextId: string;
11
+ contactId: Ulid;
12
+ ext?: Ext;
13
+ }
14
+ /**
15
+ * Success response to persona/contact/delete. Type https://trusttasks.org/spec/persona/contact/delete/1.0#response. Deleting an absent contact is a success carrying existed: false, which is what makes a repeated delete converge.
16
+ */
17
+ export interface PersonaContactDeleteResponsePayload {
18
+ contactId: Ulid;
19
+ existed: boolean;
20
+ /**
21
+ * How many revisions went with it, so a holder deleting a long history is told the size of what they removed.
22
+ */
23
+ revisionsRemoved?: number;
24
+ /**
25
+ * Revisions NOT removed because a disclosure record still references them. A maintainer that keeps such revisions MUST report the count rather than let the holder believe the deletion was total — an incomplete erasure the holder thinks is complete is worse than one they know about.
26
+ */
27
+ retainedForDisclosure?: number;
28
+ ext?: Ext;
29
+ }
30
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
31
+ export type { Ext, Ulid };
32
+ /** Trust Task type URI. */
33
+ export declare const TYPE_URI: "https://trusttasks.org/spec/persona/contact/delete/1.0";
34
+ /** Stable alias for this specification's request payload shape. */
35
+ export type Payload = PersonaContactDeletePayload;
36
+ /** Trust Task response type URI (request type URI + "#response"). */
37
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/persona/contact/delete/1.0#response";
38
+ /** Stable alias for this specification's success-response payload shape. */
39
+ export type Response = PersonaContactDeleteResponsePayload;
40
+ /**
41
+ * This specification's payload schema, as a value.
42
+ *
43
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
44
+ * rather than only as a `.json` file because TypeScript types are erased
45
+ * at runtime: without a schema a consumer has nothing to validate, and
46
+ * every REQUIRED payload member is optional in practice. Cross-file
47
+ * `$ref`s are already inlined, so it needs no resolver.
48
+ */
49
+ export declare const PAYLOAD_SCHEMA: {
50
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
51
+ readonly $id: "https://trusttasks.org/spec/persona/contact/delete/1.0";
52
+ readonly title: "Persona Contact Delete — payload";
53
+ readonly description: "Remove a contact and every revision of it.";
54
+ readonly type: "object";
55
+ readonly additionalProperties: false;
56
+ readonly required: readonly ["contextId", "contactId"];
57
+ readonly properties: {
58
+ readonly contextId: {
59
+ readonly type: "string";
60
+ readonly minLength: 1;
61
+ };
62
+ readonly contactId: {
63
+ readonly $ref: "#/$defs/Ulid";
64
+ };
65
+ readonly ext: {
66
+ readonly $ref: "#/$defs/Ext";
67
+ };
68
+ };
69
+ readonly $defs: {
70
+ readonly Response: {
71
+ readonly $anchor: "response";
72
+ readonly title: "Persona Contact Delete — response payload";
73
+ readonly description: "Success response to persona/contact/delete. Type https://trusttasks.org/spec/persona/contact/delete/1.0#response. Deleting an absent contact is a success carrying existed: false, which is what makes a repeated delete converge.";
74
+ readonly type: "object";
75
+ readonly additionalProperties: false;
76
+ readonly required: readonly ["contactId", "existed"];
77
+ readonly properties: {
78
+ readonly contactId: {
79
+ readonly $ref: "#/$defs/Ulid";
80
+ };
81
+ readonly existed: {
82
+ readonly type: "boolean";
83
+ };
84
+ readonly revisionsRemoved: {
85
+ readonly type: "integer";
86
+ readonly minimum: 0;
87
+ readonly description: "How many revisions went with it, so a holder deleting a long history is told the size of what they removed.";
88
+ };
89
+ readonly retainedForDisclosure: {
90
+ readonly type: "integer";
91
+ readonly minimum: 0;
92
+ readonly description: "Revisions NOT removed because a disclosure record still references them. A maintainer that keeps such revisions MUST report the count rather than let the holder believe the deletion was total — an incomplete erasure the holder thinks is complete is worse than one they know about.";
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 Ulid: {
110
+ readonly title: "Ulid";
111
+ 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.";
112
+ readonly type: "string";
113
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
114
+ };
115
+ };
116
+ };
117
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
118
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
119
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
120
+ readonly $ref: "#/$defs/Response";
121
+ readonly $defs: {
122
+ readonly Response: {
123
+ readonly $anchor: "response";
124
+ readonly title: "Persona Contact Delete — response payload";
125
+ readonly description: "Success response to persona/contact/delete. Type https://trusttasks.org/spec/persona/contact/delete/1.0#response. Deleting an absent contact is a success carrying existed: false, which is what makes a repeated delete converge.";
126
+ readonly type: "object";
127
+ readonly additionalProperties: false;
128
+ readonly required: readonly ["contactId", "existed"];
129
+ readonly properties: {
130
+ readonly contactId: {
131
+ readonly $ref: "#/$defs/Ulid";
132
+ };
133
+ readonly existed: {
134
+ readonly type: "boolean";
135
+ };
136
+ readonly revisionsRemoved: {
137
+ readonly type: "integer";
138
+ readonly minimum: 0;
139
+ readonly description: "How many revisions went with it, so a holder deleting a long history is told the size of what they removed.";
140
+ };
141
+ readonly retainedForDisclosure: {
142
+ readonly type: "integer";
143
+ readonly minimum: 0;
144
+ readonly description: "Revisions NOT removed because a disclosure record still references them. A maintainer that keeps such revisions MUST report the count rather than let the holder believe the deletion was total — an incomplete erasure the holder thinks is complete is worse than one they know about.";
145
+ };
146
+ readonly ext: {
147
+ readonly $ref: "#/$defs/Ext";
148
+ };
149
+ };
150
+ };
151
+ readonly Ext: {
152
+ readonly title: "Ext";
153
+ 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.";
154
+ readonly type: "object";
155
+ readonly minProperties: 1;
156
+ readonly additionalProperties: true;
157
+ readonly propertyNames: {
158
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
159
+ };
160
+ };
161
+ readonly Ulid: {
162
+ readonly title: "Ulid";
163
+ 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.";
164
+ readonly type: "string";
165
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
166
+ };
167
+ };
168
+ };
169
+ /**
170
+ * SPEC.md §7.2 policy for the request variant, from this specification's
171
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
172
+ * per-specification and cannot be derived from the document alone, and
173
+ * item 2 needs the schema this carries.
174
+ */
175
+ export declare const SPEC: {
176
+ readonly typeUri: "https://trusttasks.org/spec/persona/contact/delete/1.0";
177
+ readonly isBearer: false;
178
+ readonly isProofRequired: true;
179
+ readonly isRecipientRequired: true;
180
+ readonly isIssuedAtRequired: true;
181
+ readonly payloadSchema: {
182
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
183
+ readonly $id: "https://trusttasks.org/spec/persona/contact/delete/1.0";
184
+ readonly title: "Persona Contact Delete — payload";
185
+ readonly description: "Remove a contact and every revision of it.";
186
+ readonly type: "object";
187
+ readonly additionalProperties: false;
188
+ readonly required: readonly ["contextId", "contactId"];
189
+ readonly properties: {
190
+ readonly contextId: {
191
+ readonly type: "string";
192
+ readonly minLength: 1;
193
+ };
194
+ readonly contactId: {
195
+ readonly $ref: "#/$defs/Ulid";
196
+ };
197
+ readonly ext: {
198
+ readonly $ref: "#/$defs/Ext";
199
+ };
200
+ };
201
+ readonly $defs: {
202
+ readonly Response: {
203
+ readonly $anchor: "response";
204
+ readonly title: "Persona Contact Delete — response payload";
205
+ readonly description: "Success response to persona/contact/delete. Type https://trusttasks.org/spec/persona/contact/delete/1.0#response. Deleting an absent contact is a success carrying existed: false, which is what makes a repeated delete converge.";
206
+ readonly type: "object";
207
+ readonly additionalProperties: false;
208
+ readonly required: readonly ["contactId", "existed"];
209
+ readonly properties: {
210
+ readonly contactId: {
211
+ readonly $ref: "#/$defs/Ulid";
212
+ };
213
+ readonly existed: {
214
+ readonly type: "boolean";
215
+ };
216
+ readonly revisionsRemoved: {
217
+ readonly type: "integer";
218
+ readonly minimum: 0;
219
+ readonly description: "How many revisions went with it, so a holder deleting a long history is told the size of what they removed.";
220
+ };
221
+ readonly retainedForDisclosure: {
222
+ readonly type: "integer";
223
+ readonly minimum: 0;
224
+ readonly description: "Revisions NOT removed because a disclosure record still references them. A maintainer that keeps such revisions MUST report the count rather than let the holder believe the deletion was total — an incomplete erasure the holder thinks is complete is worse than one they know about.";
225
+ };
226
+ readonly ext: {
227
+ readonly $ref: "#/$defs/Ext";
228
+ };
229
+ };
230
+ };
231
+ readonly Ext: {
232
+ readonly title: "Ext";
233
+ 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.";
234
+ readonly type: "object";
235
+ readonly minProperties: 1;
236
+ readonly additionalProperties: true;
237
+ readonly propertyNames: {
238
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
239
+ };
240
+ };
241
+ readonly Ulid: {
242
+ readonly title: "Ulid";
243
+ 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.";
244
+ readonly type: "string";
245
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
246
+ };
247
+ };
248
+ };
249
+ };
250
+ /**
251
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
252
+ * tracks the *issuer* party's requirement because a response swaps the
253
+ * parties (§7.3 item 5).
254
+ */
255
+ export declare const RESPONSE_SPEC: {
256
+ readonly typeUri: "https://trusttasks.org/spec/persona/contact/delete/1.0#response";
257
+ readonly isBearer: false;
258
+ readonly isProofRequired: true;
259
+ readonly isRecipientRequired: true;
260
+ readonly isIssuedAtRequired: true;
261
+ readonly payloadSchema: {
262
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
263
+ readonly $ref: "#/$defs/Response";
264
+ readonly $defs: {
265
+ readonly Response: {
266
+ readonly $anchor: "response";
267
+ readonly title: "Persona Contact Delete — response payload";
268
+ readonly description: "Success response to persona/contact/delete. Type https://trusttasks.org/spec/persona/contact/delete/1.0#response. Deleting an absent contact is a success carrying existed: false, which is what makes a repeated delete converge.";
269
+ readonly type: "object";
270
+ readonly additionalProperties: false;
271
+ readonly required: readonly ["contactId", "existed"];
272
+ readonly properties: {
273
+ readonly contactId: {
274
+ readonly $ref: "#/$defs/Ulid";
275
+ };
276
+ readonly existed: {
277
+ readonly type: "boolean";
278
+ };
279
+ readonly revisionsRemoved: {
280
+ readonly type: "integer";
281
+ readonly minimum: 0;
282
+ readonly description: "How many revisions went with it, so a holder deleting a long history is told the size of what they removed.";
283
+ };
284
+ readonly retainedForDisclosure: {
285
+ readonly type: "integer";
286
+ readonly minimum: 0;
287
+ readonly description: "Revisions NOT removed because a disclosure record still references them. A maintainer that keeps such revisions MUST report the count rather than let the holder believe the deletion was total — an incomplete erasure the holder thinks is complete is worse than one they know about.";
288
+ };
289
+ readonly ext: {
290
+ readonly $ref: "#/$defs/Ext";
291
+ };
292
+ };
293
+ };
294
+ readonly Ext: {
295
+ readonly title: "Ext";
296
+ 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.";
297
+ readonly type: "object";
298
+ readonly minProperties: 1;
299
+ readonly additionalProperties: true;
300
+ readonly propertyNames: {
301
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
302
+ };
303
+ };
304
+ readonly Ulid: {
305
+ readonly title: "Ulid";
306
+ 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.";
307
+ readonly type: "string";
308
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
309
+ };
310
+ };
311
+ };
312
+ };
313
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/persona/contact/delete/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAC;AAGnE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,IAAI,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;AAE1B,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,CAAC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