@openvtc/trust-tasks 0.28.17 → 0.28.18

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 (37) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/_shared/components.d.ts +26 -1
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +12 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +12 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/vta/collection/_shared/0.1/collection.d.ts +2 -2
  9. package/dist/vta/collection/_shared/0.1/collection.d.ts.map +1 -1
  10. package/dist/vta/collection/list/0.1/payload.d.ts +4 -4
  11. package/dist/vta/collection/list/0.1/payload.js +2 -2
  12. package/dist/vta/collection/list/0.1/payload.js.map +1 -1
  13. package/dist/vta/collection/settings/set/0.1/payload.d.ts +469 -0
  14. package/dist/vta/collection/settings/set/0.1/payload.d.ts.map +1 -0
  15. package/dist/vta/collection/settings/set/0.1/payload.js +275 -0
  16. package/dist/vta/collection/settings/set/0.1/payload.js.map +1 -0
  17. package/dist/vta/collection/settings/show/0.1/payload.d.ts +437 -0
  18. package/dist/vta/collection/settings/show/0.1/payload.d.ts.map +1 -0
  19. package/dist/vta/collection/settings/show/0.1/payload.js +260 -0
  20. package/dist/vta/collection/settings/show/0.1/payload.js.map +1 -0
  21. package/dist/vtn/registry/check/0.1/payload.d.ts +528 -0
  22. package/dist/vtn/registry/check/0.1/payload.d.ts.map +1 -0
  23. package/dist/vtn/registry/check/0.1/payload.js +282 -0
  24. package/dist/vtn/registry/check/0.1/payload.js.map +1 -0
  25. package/dist/vtn/registry/status/0.1/payload.d.ts +736 -0
  26. package/dist/vtn/registry/status/0.1/payload.d.ts.map +1 -0
  27. package/dist/vtn/registry/status/0.1/payload.js +421 -0
  28. package/dist/vtn/registry/status/0.1/payload.js.map +1 -0
  29. package/package.json +1 -1
  30. package/src/_shared/components.ts +26 -1
  31. package/src/index.ts +12 -0
  32. package/src/vta/collection/_shared/0.1/collection.ts +2 -2
  33. package/src/vta/collection/list/0.1/payload.ts +2 -2
  34. package/src/vta/collection/settings/set/0.1/payload.ts +319 -0
  35. package/src/vta/collection/settings/show/0.1/payload.ts +296 -0
  36. package/src/vtn/registry/check/0.1/payload.ts +365 -0
  37. package/src/vtn/registry/status/0.1/payload.ts +502 -0
@@ -0,0 +1,282 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtn/registry/check/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtn/registry/check/0.1";
7
+ /**
8
+ * The earlier version of this specification that this one declares it
9
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
10
+ * `null`. Only the direct declaration — follow the chain with
11
+ * `extendsChain` / `readForSpec`.
12
+ */
13
+ export const EXTENDS = null;
14
+ /**
15
+ * Why this version is deprecated, or `null` while it is current. A
16
+ * superseded or retired version is still supported, and is withdrawn from
17
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
18
+ * Versions").
19
+ */
20
+ export const DEPRECATION = null;
21
+ /** Trust Task response type URI (request type URI + "#response"). */
22
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtn/registry/check/0.1#response";
23
+ /**
24
+ * This specification's payload schema, as a value.
25
+ *
26
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
27
+ * rather than only as a `.json` file because TypeScript types are erased
28
+ * at runtime: without a schema a consumer has nothing to validate, and
29
+ * every REQUIRED payload member is optional in practice. Cross-file
30
+ * `$ref`s are already inlined, so it needs no resolver.
31
+ */
32
+ export const PAYLOAD_SCHEMA = {
33
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
34
+ "$id": "https://trusttasks.org/spec/vtn/registry/check/0.1",
35
+ "title": "VTN Registry — Check — payload",
36
+ "description": "Ask the network to ask its trust registry about one party. The outer document members are owned by the framework — SPEC §6.3.",
37
+ "type": "object",
38
+ "additionalProperties": false,
39
+ "required": [
40
+ "did"
41
+ ],
42
+ "properties": {
43
+ "did": {
44
+ "$ref": "#/$defs/Did",
45
+ "description": "The party asked about."
46
+ },
47
+ "ext": {
48
+ "$ref": "#/$defs/Ext"
49
+ }
50
+ },
51
+ "$defs": {
52
+ "Actions": {
53
+ "type": "object",
54
+ "additionalProperties": false,
55
+ "required": [
56
+ "member",
57
+ "listed"
58
+ ],
59
+ "properties": {
60
+ "member": {
61
+ "type": "string",
62
+ "minLength": 1,
63
+ "description": "The action acknowledged members are published under."
64
+ },
65
+ "listed": {
66
+ "type": "string",
67
+ "minLength": 1,
68
+ "description": "The action listed parties are published under, where the network publishes them."
69
+ }
70
+ }
71
+ },
72
+ "Response": {
73
+ "$anchor": "response",
74
+ "title": "VTN Registry — Check — response payload",
75
+ "description": "What the registry answered, and its own answer document.",
76
+ "type": "object",
77
+ "additionalProperties": false,
78
+ "required": [
79
+ "registry",
80
+ "authority",
81
+ "resource",
82
+ "actions",
83
+ "did",
84
+ "reachable"
85
+ ],
86
+ "properties": {
87
+ "registry": {
88
+ "$ref": "#/$defs/Did",
89
+ "description": "The trust registry asked."
90
+ },
91
+ "authority": {
92
+ "$ref": "#/$defs/Did",
93
+ "description": "The network's DID: the authority of its records."
94
+ },
95
+ "resource": {
96
+ "type": "string",
97
+ "minLength": 1,
98
+ "description": "The TRQP resource the network's records are published under."
99
+ },
100
+ "actions": {
101
+ "$ref": "#/$defs/Actions"
102
+ },
103
+ "did": {
104
+ "$ref": "#/$defs/Did",
105
+ "description": "The party asked about."
106
+ },
107
+ "reachable": {
108
+ "type": "boolean",
109
+ "description": "Whether the registry answered. `false` is indeterminate, never \"not a member\"."
110
+ },
111
+ "member": {
112
+ "type": "boolean",
113
+ "description": "Whether the registry holds an authorised member record for the party. Absent when not reachable."
114
+ },
115
+ "listed": {
116
+ "type": "boolean",
117
+ "description": "Whether the registry holds an authorised listed record for the party. Absent when not reachable."
118
+ },
119
+ "answer": {
120
+ "type": "object",
121
+ "description": "The registry's answer document, verbatim and signed by the registry."
122
+ },
123
+ "reason": {
124
+ "type": "string",
125
+ "maxLength": 1024,
126
+ "description": "Why the registry could not be asked, when not reachable."
127
+ },
128
+ "ext": {
129
+ "$ref": "#/$defs/Ext"
130
+ }
131
+ }
132
+ },
133
+ "Ext": {
134
+ "title": "Ext",
135
+ "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.",
136
+ "type": "object",
137
+ "minProperties": 1,
138
+ "additionalProperties": true,
139
+ "propertyNames": {
140
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
141
+ }
142
+ },
143
+ "Did": {
144
+ "type": "string",
145
+ "pattern": "^did:[a-z0-9]+:.+$",
146
+ "maxLength": 2048,
147
+ "description": "A DID."
148
+ }
149
+ }
150
+ };
151
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
152
+ export const RESPONSE_PAYLOAD_SCHEMA = {
153
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
154
+ "$ref": "#/$defs/Response",
155
+ "$defs": {
156
+ "Actions": {
157
+ "type": "object",
158
+ "additionalProperties": false,
159
+ "required": [
160
+ "member",
161
+ "listed"
162
+ ],
163
+ "properties": {
164
+ "member": {
165
+ "type": "string",
166
+ "minLength": 1,
167
+ "description": "The action acknowledged members are published under."
168
+ },
169
+ "listed": {
170
+ "type": "string",
171
+ "minLength": 1,
172
+ "description": "The action listed parties are published under, where the network publishes them."
173
+ }
174
+ }
175
+ },
176
+ "Response": {
177
+ "$anchor": "response",
178
+ "title": "VTN Registry — Check — response payload",
179
+ "description": "What the registry answered, and its own answer document.",
180
+ "type": "object",
181
+ "additionalProperties": false,
182
+ "required": [
183
+ "registry",
184
+ "authority",
185
+ "resource",
186
+ "actions",
187
+ "did",
188
+ "reachable"
189
+ ],
190
+ "properties": {
191
+ "registry": {
192
+ "$ref": "#/$defs/Did",
193
+ "description": "The trust registry asked."
194
+ },
195
+ "authority": {
196
+ "$ref": "#/$defs/Did",
197
+ "description": "The network's DID: the authority of its records."
198
+ },
199
+ "resource": {
200
+ "type": "string",
201
+ "minLength": 1,
202
+ "description": "The TRQP resource the network's records are published under."
203
+ },
204
+ "actions": {
205
+ "$ref": "#/$defs/Actions"
206
+ },
207
+ "did": {
208
+ "$ref": "#/$defs/Did",
209
+ "description": "The party asked about."
210
+ },
211
+ "reachable": {
212
+ "type": "boolean",
213
+ "description": "Whether the registry answered. `false` is indeterminate, never \"not a member\"."
214
+ },
215
+ "member": {
216
+ "type": "boolean",
217
+ "description": "Whether the registry holds an authorised member record for the party. Absent when not reachable."
218
+ },
219
+ "listed": {
220
+ "type": "boolean",
221
+ "description": "Whether the registry holds an authorised listed record for the party. Absent when not reachable."
222
+ },
223
+ "answer": {
224
+ "type": "object",
225
+ "description": "The registry's answer document, verbatim and signed by the registry."
226
+ },
227
+ "reason": {
228
+ "type": "string",
229
+ "maxLength": 1024,
230
+ "description": "Why the registry could not be asked, when not reachable."
231
+ },
232
+ "ext": {
233
+ "$ref": "#/$defs/Ext"
234
+ }
235
+ }
236
+ },
237
+ "Ext": {
238
+ "title": "Ext",
239
+ "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.",
240
+ "type": "object",
241
+ "minProperties": 1,
242
+ "additionalProperties": true,
243
+ "propertyNames": {
244
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
245
+ }
246
+ },
247
+ "Did": {
248
+ "type": "string",
249
+ "pattern": "^did:[a-z0-9]+:.+$",
250
+ "maxLength": 2048,
251
+ "description": "A DID."
252
+ }
253
+ }
254
+ };
255
+ /**
256
+ * SPEC.md §7.2 policy for the request variant, from this specification's
257
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
258
+ * per-specification and cannot be derived from the document alone, and
259
+ * item 2 needs the schema this carries.
260
+ */
261
+ export const SPEC = {
262
+ typeUri: TYPE_URI,
263
+ isBearer: false,
264
+ isProofRequired: false,
265
+ isRecipientRequired: true,
266
+ isIssuedAtRequired: false,
267
+ payloadSchema: PAYLOAD_SCHEMA,
268
+ };
269
+ /**
270
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
271
+ * tracks the *issuer* party's requirement because a response swaps the
272
+ * parties (§7.3 item 5).
273
+ */
274
+ export const RESPONSE_SPEC = {
275
+ typeUri: RESPONSE_TYPE_URI,
276
+ isBearer: false,
277
+ isProofRequired: false,
278
+ isRecipientRequired: true,
279
+ isIssuedAtRequired: false,
280
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
281
+ };
282
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtn/registry/check/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAwEH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,oDAA6D,CAAC;AAEtF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAkB,IAAI,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAkB,IAAI,CAAC;AAK/C,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,6DAAsE,CAAC;AAKxG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,oDAAoD;IAC3D,OAAO,EAAE,gCAAgC;IACzC,aAAa,EAAE,+HAA+H;IAC9I,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,KAAK;KACN;IACD,YAAY,EAAE;QACZ,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;YACrB,aAAa,EAAE,wBAAwB;SACxC;QACD,KAAK,EAAE;YACL,MAA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