@openvtc/trust-tasks 0.17.5 → 0.17.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/persona/claim-types/list/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAGzG;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,OAAO,EAAE;QACP,IAAI,EAAE,SAAS,CAAC;QAChB,WAAW,EAAE,WAAW,CAAC;QACzB,OAAO,EAAE,kBAAkB,CAAC;QAC5B;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB;;;;WAIG;QACH,IAAI,CAAC,EACD,EAAE,GACF,CAAC,MAAM,CAAC,GACR,CAAC,MAAM,EAAE,MAAM,CAAC,GAChB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GACxB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAChC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GACxC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAChD,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GACxD,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+KjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsK1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,389 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/persona/claim-types/list/1.0/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/persona/claim-types/list/1.0";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/persona/claim-types/list/1.0#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/persona/claim-types/list/1.0",
21
+ "title": "Persona Claim Types List — payload",
22
+ "description": "Serve the claim-type registry this agent resolves against. A client that cannot read the table has to ship a copy of it, and a copy is a re-sync obligation on every change.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "properties": {
26
+ "ext": {
27
+ "$ref": "#/$defs/Ext"
28
+ }
29
+ },
30
+ "$defs": {
31
+ "Response": {
32
+ "$anchor": "response",
33
+ "title": "Persona Claim Types List — response payload",
34
+ "description": "Success response to persona/claim-types/list. Type https://trusttasks.org/spec/persona/claim-types/list/1.0#response.",
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "required": [
38
+ "registryVersion",
39
+ "entries",
40
+ "unregistered",
41
+ "strictness"
42
+ ],
43
+ "properties": {
44
+ "registryVersion": {
45
+ "type": "string",
46
+ "maxLength": 32,
47
+ "description": "Version of the core registry this agent implements — the version of _shared/claim-types.json, not of this task. A client caching the table keys the cache on this."
48
+ },
49
+ "entries": {
50
+ "type": "array",
51
+ "maxItems": 512,
52
+ "description": "The registered tokens. Both exact tokens and family prefixes appear here, undistinguished: which one an entry is follows from whether a given token equals it or descends from it, and marking them would invite a client to walk only one kind.",
53
+ "items": {
54
+ "type": "object",
55
+ "additionalProperties": false,
56
+ "required": [
57
+ "type",
58
+ "sensitivity",
59
+ "release",
60
+ "mask"
61
+ ],
62
+ "properties": {
63
+ "type": {
64
+ "$ref": "#/$defs/ClaimType"
65
+ },
66
+ "sensitivity": {
67
+ "$ref": "#/$defs/Sensitivity"
68
+ },
69
+ "release": {
70
+ "$ref": "#/$defs/ReleaseRequirement"
71
+ },
72
+ "mask": {
73
+ "type": "string",
74
+ "maxLength": 32,
75
+ "description": "Mask style, independent of sensitivity: any style that is not `none` is masked on screen whatever the sensitivity. Named rather than enumerated inline so a maintainer may serve a style this version does not list; a client that does not recognise a style MUST treat it as `full` rather than as `none`."
76
+ },
77
+ "minimumSet": {
78
+ "type": "boolean",
79
+ "description": "Marks a type a community may ask for without it being remarkable. The minimum set contains only normal-sensitivity, consent-release types; that is a rule rather than a coincidence."
80
+ },
81
+ "oidc": {
82
+ "type": "array",
83
+ "maxItems": 16,
84
+ "items": {
85
+ "type": "string",
86
+ "maxLength": 64
87
+ },
88
+ "description": "OIDC standard claims this type answers. A recorded mapping, applied at presentation — the token stays the maintainer's own and no external vocabulary is primary."
89
+ }
90
+ }
91
+ }
92
+ },
93
+ "unregistered": {
94
+ "type": "object",
95
+ "additionalProperties": false,
96
+ "required": [
97
+ "sensitivity",
98
+ "release",
99
+ "mask"
100
+ ],
101
+ "description": "The floor: what a token with no entry and no registered prefix resolves to. Served rather than assumed, because a client that hard-codes it cannot be tightened by a maintainer that raises it.",
102
+ "properties": {
103
+ "sensitivity": {
104
+ "$ref": "#/$defs/Sensitivity"
105
+ },
106
+ "release": {
107
+ "$ref": "#/$defs/ReleaseRequirement"
108
+ },
109
+ "mask": {
110
+ "type": "string",
111
+ "maxLength": 32
112
+ }
113
+ }
114
+ },
115
+ "strictness": {
116
+ "type": "object",
117
+ "additionalProperties": false,
118
+ "required": [
119
+ "sensitivity",
120
+ "release",
121
+ "mask"
122
+ ],
123
+ "description": "Each axis ordered MOST PROTECTIVE FIRST. This is what makes rule 3 computable by a client: resolution takes the longest registered prefix and the unregistered floor and keeps whichever is more protective, which requires an ordering the client did not invent.",
124
+ "properties": {
125
+ "sensitivity": {
126
+ "type": "array",
127
+ "maxItems": 8,
128
+ "items": {
129
+ "type": "string",
130
+ "maxLength": 32
131
+ }
132
+ },
133
+ "release": {
134
+ "type": "array",
135
+ "maxItems": 8,
136
+ "items": {
137
+ "type": "string",
138
+ "maxLength": 32
139
+ }
140
+ },
141
+ "mask": {
142
+ "type": "array",
143
+ "maxItems": 16,
144
+ "items": {
145
+ "type": "string",
146
+ "maxLength": 32
147
+ }
148
+ }
149
+ }
150
+ },
151
+ "ext": {
152
+ "$ref": "#/$defs/Ext"
153
+ }
154
+ }
155
+ },
156
+ "Ext": {
157
+ "title": "Ext",
158
+ "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.",
159
+ "type": "object",
160
+ "minProperties": 1,
161
+ "additionalProperties": true,
162
+ "propertyNames": {
163
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
164
+ }
165
+ },
166
+ "ReleaseRequirement": {
167
+ "title": "ReleaseRequirement",
168
+ "description": "What it takes to let a value LEAVE. Distinct from `Sensitivity`, which governs showing it to the holder.\n\n`consent` is the ordinary gate: `persona/disclosure/preview` renders what would leave and `persona/disclosure/present` releases it, so a human sees it once.\n\n`stepUp` additionally requires a fresh authentication bound to THAT preview — not to the session. Without the binding, \"each time\" degrades into \"once per login\", which is the failure the requirement exists to prevent; the single-use `previewId` the preview already mints is what an implementation binds to. A maintainer MUST refuse `persona/disclosure/present` for a `stepUp` attribute when no such approval accompanies it.\n\nAbsent means *not decided by the holder* and resolves from the claim-type registry, which defaults `payment.*` and `gov.*` to `stepUp`.",
169
+ "type": "string",
170
+ "enum": [
171
+ "consent",
172
+ "stepUp"
173
+ ]
174
+ },
175
+ "Sensitivity": {
176
+ "title": "Sensitivity",
177
+ "description": "How carefully a value is shown TO ITS OWN HOLDER. `high` means a consumer masks it by default, reveals it one attribute at a time on a deliberate act, and — the half that is not cosmetic — omits it from a listing that did not ask for sensitive values.\n\nAbsent means *not decided by the holder*, not `normal`: a consumer resolves it from the claim-type registry (see CLAIM-TYPES.md §4), which is why this member is optional and why an unregistered token resolves conservatively rather than permissively.\n\nDistinct from how linkable the value is. A payment card is highly sensitive and barely linkable — every card number is unique, so knowing one tells a second verifier nothing about the first. Reading either as a proxy for the other produces a consumer that hides the wrong things.",
178
+ "type": "string",
179
+ "enum": [
180
+ "normal",
181
+ "high"
182
+ ]
183
+ },
184
+ "ClaimType": {
185
+ "title": "ClaimType",
186
+ "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.",
187
+ "type": "string",
188
+ "minLength": 1,
189
+ "maxLength": 128,
190
+ "pattern": "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"
191
+ }
192
+ }
193
+ };
194
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
195
+ export const RESPONSE_PAYLOAD_SCHEMA = {
196
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
197
+ "$ref": "#/$defs/Response",
198
+ "$defs": {
199
+ "Response": {
200
+ "$anchor": "response",
201
+ "title": "Persona Claim Types List — response payload",
202
+ "description": "Success response to persona/claim-types/list. Type https://trusttasks.org/spec/persona/claim-types/list/1.0#response.",
203
+ "type": "object",
204
+ "additionalProperties": false,
205
+ "required": [
206
+ "registryVersion",
207
+ "entries",
208
+ "unregistered",
209
+ "strictness"
210
+ ],
211
+ "properties": {
212
+ "registryVersion": {
213
+ "type": "string",
214
+ "maxLength": 32,
215
+ "description": "Version of the core registry this agent implements — the version of _shared/claim-types.json, not of this task. A client caching the table keys the cache on this."
216
+ },
217
+ "entries": {
218
+ "type": "array",
219
+ "maxItems": 512,
220
+ "description": "The registered tokens. Both exact tokens and family prefixes appear here, undistinguished: which one an entry is follows from whether a given token equals it or descends from it, and marking them would invite a client to walk only one kind.",
221
+ "items": {
222
+ "type": "object",
223
+ "additionalProperties": false,
224
+ "required": [
225
+ "type",
226
+ "sensitivity",
227
+ "release",
228
+ "mask"
229
+ ],
230
+ "properties": {
231
+ "type": {
232
+ "$ref": "#/$defs/ClaimType"
233
+ },
234
+ "sensitivity": {
235
+ "$ref": "#/$defs/Sensitivity"
236
+ },
237
+ "release": {
238
+ "$ref": "#/$defs/ReleaseRequirement"
239
+ },
240
+ "mask": {
241
+ "type": "string",
242
+ "maxLength": 32,
243
+ "description": "Mask style, independent of sensitivity: any style that is not `none` is masked on screen whatever the sensitivity. Named rather than enumerated inline so a maintainer may serve a style this version does not list; a client that does not recognise a style MUST treat it as `full` rather than as `none`."
244
+ },
245
+ "minimumSet": {
246
+ "type": "boolean",
247
+ "description": "Marks a type a community may ask for without it being remarkable. The minimum set contains only normal-sensitivity, consent-release types; that is a rule rather than a coincidence."
248
+ },
249
+ "oidc": {
250
+ "type": "array",
251
+ "maxItems": 16,
252
+ "items": {
253
+ "type": "string",
254
+ "maxLength": 64
255
+ },
256
+ "description": "OIDC standard claims this type answers. A recorded mapping, applied at presentation — the token stays the maintainer's own and no external vocabulary is primary."
257
+ }
258
+ }
259
+ }
260
+ },
261
+ "unregistered": {
262
+ "type": "object",
263
+ "additionalProperties": false,
264
+ "required": [
265
+ "sensitivity",
266
+ "release",
267
+ "mask"
268
+ ],
269
+ "description": "The floor: what a token with no entry and no registered prefix resolves to. Served rather than assumed, because a client that hard-codes it cannot be tightened by a maintainer that raises it.",
270
+ "properties": {
271
+ "sensitivity": {
272
+ "$ref": "#/$defs/Sensitivity"
273
+ },
274
+ "release": {
275
+ "$ref": "#/$defs/ReleaseRequirement"
276
+ },
277
+ "mask": {
278
+ "type": "string",
279
+ "maxLength": 32
280
+ }
281
+ }
282
+ },
283
+ "strictness": {
284
+ "type": "object",
285
+ "additionalProperties": false,
286
+ "required": [
287
+ "sensitivity",
288
+ "release",
289
+ "mask"
290
+ ],
291
+ "description": "Each axis ordered MOST PROTECTIVE FIRST. This is what makes rule 3 computable by a client: resolution takes the longest registered prefix and the unregistered floor and keeps whichever is more protective, which requires an ordering the client did not invent.",
292
+ "properties": {
293
+ "sensitivity": {
294
+ "type": "array",
295
+ "maxItems": 8,
296
+ "items": {
297
+ "type": "string",
298
+ "maxLength": 32
299
+ }
300
+ },
301
+ "release": {
302
+ "type": "array",
303
+ "maxItems": 8,
304
+ "items": {
305
+ "type": "string",
306
+ "maxLength": 32
307
+ }
308
+ },
309
+ "mask": {
310
+ "type": "array",
311
+ "maxItems": 16,
312
+ "items": {
313
+ "type": "string",
314
+ "maxLength": 32
315
+ }
316
+ }
317
+ }
318
+ },
319
+ "ext": {
320
+ "$ref": "#/$defs/Ext"
321
+ }
322
+ }
323
+ },
324
+ "Ext": {
325
+ "title": "Ext",
326
+ "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.",
327
+ "type": "object",
328
+ "minProperties": 1,
329
+ "additionalProperties": true,
330
+ "propertyNames": {
331
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
332
+ }
333
+ },
334
+ "ReleaseRequirement": {
335
+ "title": "ReleaseRequirement",
336
+ "description": "What it takes to let a value LEAVE. Distinct from `Sensitivity`, which governs showing it to the holder.\n\n`consent` is the ordinary gate: `persona/disclosure/preview` renders what would leave and `persona/disclosure/present` releases it, so a human sees it once.\n\n`stepUp` additionally requires a fresh authentication bound to THAT preview — not to the session. Without the binding, \"each time\" degrades into \"once per login\", which is the failure the requirement exists to prevent; the single-use `previewId` the preview already mints is what an implementation binds to. A maintainer MUST refuse `persona/disclosure/present` for a `stepUp` attribute when no such approval accompanies it.\n\nAbsent means *not decided by the holder* and resolves from the claim-type registry, which defaults `payment.*` and `gov.*` to `stepUp`.",
337
+ "type": "string",
338
+ "enum": [
339
+ "consent",
340
+ "stepUp"
341
+ ]
342
+ },
343
+ "Sensitivity": {
344
+ "title": "Sensitivity",
345
+ "description": "How carefully a value is shown TO ITS OWN HOLDER. `high` means a consumer masks it by default, reveals it one attribute at a time on a deliberate act, and — the half that is not cosmetic — omits it from a listing that did not ask for sensitive values.\n\nAbsent means *not decided by the holder*, not `normal`: a consumer resolves it from the claim-type registry (see CLAIM-TYPES.md §4), which is why this member is optional and why an unregistered token resolves conservatively rather than permissively.\n\nDistinct from how linkable the value is. A payment card is highly sensitive and barely linkable — every card number is unique, so knowing one tells a second verifier nothing about the first. Reading either as a proxy for the other produces a consumer that hides the wrong things.",
346
+ "type": "string",
347
+ "enum": [
348
+ "normal",
349
+ "high"
350
+ ]
351
+ },
352
+ "ClaimType": {
353
+ "title": "ClaimType",
354
+ "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.",
355
+ "type": "string",
356
+ "minLength": 1,
357
+ "maxLength": 128,
358
+ "pattern": "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"
359
+ }
360
+ }
361
+ };
362
+ /**
363
+ * SPEC.md §7.2 policy for the request variant, from this specification's
364
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
365
+ * per-specification and cannot be derived from the document alone, and
366
+ * item 2 needs the schema this carries.
367
+ */
368
+ export const SPEC = {
369
+ typeUri: TYPE_URI,
370
+ isBearer: false,
371
+ isProofRequired: true,
372
+ isRecipientRequired: true,
373
+ isIssuedAtRequired: false,
374
+ payloadSchema: PAYLOAD_SCHEMA,
375
+ };
376
+ /**
377
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
378
+ * tracks the *issuer* party's requirement because a response swaps the
379
+ * parties (§7.3 item 5).
380
+ */
381
+ export const RESPONSE_SPEC = {
382
+ typeUri: RESPONSE_TYPE_URI,
383
+ isBearer: false,
384
+ isProofRequired: true,
385
+ isRecipientRequired: true,
386
+ isIssuedAtRequired: false,
387
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
388
+ };
389
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/persona/claim-types/list/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgMH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,0DAAmE,CAAC;AAK5F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mEAA4E,CAAC;AAK9G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,0DAA0D;IACjE,OAAO,EAAE,oCAAoC;IAC7C,aAAa,EAAE,8KAA8K;IAC7L,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;QACZ,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,6CAA6C;YACtD,aAAa,EAAE,uHAAuH;YACtI,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,iBAAiB;gBACjB,SAAS;gBACT,cAAc;gBACd,YAAY;aACb;YACD,YAAY,E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
1
1
  {
2
2
  "name": "@openvtc/trust-tasks",
3
- "version": "0.17.5",
3
+ "version": "0.17.6",
4
4
  "description": "Generated TypeScript bindings for the Trust Tasks framework registry.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",