@openvtc/trust-tasks 0.19.5 → 0.19.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.
Files changed (27) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/index.d.ts +4 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +4 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/vtc/registry/records/list/0.1/payload.d.ts +576 -0
  7. package/dist/vtc/registry/records/list/0.1/payload.d.ts.map +1 -0
  8. package/dist/vtc/registry/records/list/0.1/payload.js +312 -0
  9. package/dist/vtc/registry/records/list/0.1/payload.js.map +1 -0
  10. package/dist/vtc/registry/sync-jobs/discard/0.1/payload.d.ts +254 -0
  11. package/dist/vtc/registry/sync-jobs/discard/0.1/payload.d.ts.map +1 -0
  12. package/dist/vtc/registry/sync-jobs/discard/0.1/payload.js +145 -0
  13. package/dist/vtc/registry/sync-jobs/discard/0.1/payload.js.map +1 -0
  14. package/dist/vtc/registry/sync-jobs/list/0.1/payload.d.ts +584 -0
  15. package/dist/vtc/registry/sync-jobs/list/0.1/payload.d.ts.map +1 -0
  16. package/dist/vtc/registry/sync-jobs/list/0.1/payload.js +343 -0
  17. package/dist/vtc/registry/sync-jobs/list/0.1/payload.js.map +1 -0
  18. package/dist/vtc/registry/sync-jobs/retry/0.1/payload.d.ts +474 -0
  19. package/dist/vtc/registry/sync-jobs/retry/0.1/payload.d.ts.map +1 -0
  20. package/dist/vtc/registry/sync-jobs/retry/0.1/payload.js +269 -0
  21. package/dist/vtc/registry/sync-jobs/retry/0.1/payload.js.map +1 -0
  22. package/package.json +1 -1
  23. package/src/index.ts +4 -0
  24. package/src/vtc/registry/records/list/0.1/payload.ts +407 -0
  25. package/src/vtc/registry/sync-jobs/discard/0.1/payload.ts +184 -0
  26. package/src/vtc/registry/sync-jobs/list/0.1/payload.ts +433 -0
  27. package/src/vtc/registry/sync-jobs/retry/0.1/payload.ts +331 -0
@@ -0,0 +1,312 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/registry/records/list/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/registry/records/list/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/registry/records/list/0.1#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/vtc/registry/records/list/0.1",
21
+ "title": "VTC Registry Records List — payload",
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "entityId": {
26
+ "type": "string",
27
+ "minLength": 1,
28
+ "description": "Filter to records about this entity."
29
+ },
30
+ "authorityId": {
31
+ "type": "string",
32
+ "minLength": 1,
33
+ "description": "Filter to records asserted by this authority."
34
+ },
35
+ "action": {
36
+ "type": "string",
37
+ "minLength": 1,
38
+ "description": "Filter to records for this action."
39
+ },
40
+ "resource": {
41
+ "type": "string",
42
+ "minLength": 1,
43
+ "description": "Filter to records for this resource."
44
+ },
45
+ "source": {
46
+ "$ref": "#/$defs/Source",
47
+ "description": "Which view to enumerate. Defaults to `registry`."
48
+ },
49
+ "cursor": {
50
+ "type": "string",
51
+ "description": "Opaque continuation token from a previous page's `nextCursor`."
52
+ },
53
+ "limit": {
54
+ "type": "integer",
55
+ "minimum": 1,
56
+ "maximum": 200,
57
+ "description": "Page size; the maintainer clamps to 1..=200 (default 50)."
58
+ },
59
+ "ext": {
60
+ "$ref": "#/$defs/Ext"
61
+ }
62
+ },
63
+ "$defs": {
64
+ "Source": {
65
+ "type": "string",
66
+ "enum": [
67
+ "registry",
68
+ "local"
69
+ ],
70
+ "description": "`registry` enumerates the trust registry itself; `local` enumerates the community's own record of what it published. They are different questions and a consumer MUST NOT treat one as a cache of the other."
71
+ },
72
+ "Record": {
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "required": [
76
+ "entityId",
77
+ "authorityId",
78
+ "action",
79
+ "resource",
80
+ "recordType"
81
+ ],
82
+ "properties": {
83
+ "entityId": {
84
+ "type": "string",
85
+ "minLength": 1,
86
+ "description": "The entity the record is about."
87
+ },
88
+ "authorityId": {
89
+ "type": "string",
90
+ "minLength": 1,
91
+ "description": "The authority asserting it."
92
+ },
93
+ "action": {
94
+ "type": "string",
95
+ "minLength": 1,
96
+ "description": "The action the assertion covers."
97
+ },
98
+ "resource": {
99
+ "type": "string",
100
+ "minLength": 1,
101
+ "description": "The resource the assertion covers."
102
+ },
103
+ "recordType": {
104
+ "type": "string",
105
+ "minLength": 1,
106
+ "description": "Record discriminator, as the trust registry states it."
107
+ },
108
+ "recognized": {
109
+ "type": [
110
+ "boolean",
111
+ "null"
112
+ ],
113
+ "description": "Present on recognition records: whether the action+resource is recognised. Absent on other record types — absent is not `false`."
114
+ },
115
+ "authorized": {
116
+ "type": [
117
+ "boolean",
118
+ "null"
119
+ ],
120
+ "description": "Present on authorization records: whether the action+resource authorization is confirmed. Absent on other record types — absent is not `false`."
121
+ },
122
+ "ext": {
123
+ "$ref": "#/$defs/Ext"
124
+ }
125
+ }
126
+ },
127
+ "Response": {
128
+ "$anchor": "response",
129
+ "title": "VTC Registry Records List — response payload",
130
+ "type": "object",
131
+ "additionalProperties": false,
132
+ "required": [
133
+ "items",
134
+ "source"
135
+ ],
136
+ "properties": {
137
+ "items": {
138
+ "type": "array",
139
+ "items": {
140
+ "$ref": "#/$defs/Record"
141
+ },
142
+ "description": "The matching records, in the maintainer's stable enumeration order."
143
+ },
144
+ "source": {
145
+ "$ref": "#/$defs/Source",
146
+ "description": "Which view these items came from, echoed so a consumer never has to infer it from the request it thinks it sent."
147
+ },
148
+ "nextCursor": {
149
+ "type": [
150
+ "string",
151
+ "null"
152
+ ],
153
+ "description": "Continuation token for the next page, or null when this is the last."
154
+ },
155
+ "ext": {
156
+ "$ref": "#/$defs/Ext"
157
+ }
158
+ }
159
+ },
160
+ "Ext": {
161
+ "title": "Ext",
162
+ "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.",
163
+ "type": "object",
164
+ "minProperties": 1,
165
+ "additionalProperties": true,
166
+ "propertyNames": {
167
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
168
+ }
169
+ }
170
+ }
171
+ };
172
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
173
+ export const RESPONSE_PAYLOAD_SCHEMA = {
174
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
175
+ "$ref": "#/$defs/Response",
176
+ "$defs": {
177
+ "Source": {
178
+ "type": "string",
179
+ "enum": [
180
+ "registry",
181
+ "local"
182
+ ],
183
+ "description": "`registry` enumerates the trust registry itself; `local` enumerates the community's own record of what it published. They are different questions and a consumer MUST NOT treat one as a cache of the other."
184
+ },
185
+ "Record": {
186
+ "type": "object",
187
+ "additionalProperties": false,
188
+ "required": [
189
+ "entityId",
190
+ "authorityId",
191
+ "action",
192
+ "resource",
193
+ "recordType"
194
+ ],
195
+ "properties": {
196
+ "entityId": {
197
+ "type": "string",
198
+ "minLength": 1,
199
+ "description": "The entity the record is about."
200
+ },
201
+ "authorityId": {
202
+ "type": "string",
203
+ "minLength": 1,
204
+ "description": "The authority asserting it."
205
+ },
206
+ "action": {
207
+ "type": "string",
208
+ "minLength": 1,
209
+ "description": "The action the assertion covers."
210
+ },
211
+ "resource": {
212
+ "type": "string",
213
+ "minLength": 1,
214
+ "description": "The resource the assertion covers."
215
+ },
216
+ "recordType": {
217
+ "type": "string",
218
+ "minLength": 1,
219
+ "description": "Record discriminator, as the trust registry states it."
220
+ },
221
+ "recognized": {
222
+ "type": [
223
+ "boolean",
224
+ "null"
225
+ ],
226
+ "description": "Present on recognition records: whether the action+resource is recognised. Absent on other record types — absent is not `false`."
227
+ },
228
+ "authorized": {
229
+ "type": [
230
+ "boolean",
231
+ "null"
232
+ ],
233
+ "description": "Present on authorization records: whether the action+resource authorization is confirmed. Absent on other record types — absent is not `false`."
234
+ },
235
+ "ext": {
236
+ "$ref": "#/$defs/Ext"
237
+ }
238
+ }
239
+ },
240
+ "Response": {
241
+ "$anchor": "response",
242
+ "title": "VTC Registry Records List — response payload",
243
+ "type": "object",
244
+ "additionalProperties": false,
245
+ "required": [
246
+ "items",
247
+ "source"
248
+ ],
249
+ "properties": {
250
+ "items": {
251
+ "type": "array",
252
+ "items": {
253
+ "$ref": "#/$defs/Record"
254
+ },
255
+ "description": "The matching records, in the maintainer's stable enumeration order."
256
+ },
257
+ "source": {
258
+ "$ref": "#/$defs/Source",
259
+ "description": "Which view these items came from, echoed so a consumer never has to infer it from the request it thinks it sent."
260
+ },
261
+ "nextCursor": {
262
+ "type": [
263
+ "string",
264
+ "null"
265
+ ],
266
+ "description": "Continuation token for the next page, or null when this is the last."
267
+ },
268
+ "ext": {
269
+ "$ref": "#/$defs/Ext"
270
+ }
271
+ }
272
+ },
273
+ "Ext": {
274
+ "title": "Ext",
275
+ "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.",
276
+ "type": "object",
277
+ "minProperties": 1,
278
+ "additionalProperties": true,
279
+ "propertyNames": {
280
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
281
+ }
282
+ }
283
+ }
284
+ };
285
+ /**
286
+ * SPEC.md §7.2 policy for the request variant, from this specification's
287
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
288
+ * per-specification and cannot be derived from the document alone, and
289
+ * item 2 needs the schema this carries.
290
+ */
291
+ export const SPEC = {
292
+ typeUri: TYPE_URI,
293
+ isBearer: false,
294
+ isProofRequired: false,
295
+ isRecipientRequired: true,
296
+ isIssuedAtRequired: false,
297
+ payloadSchema: PAYLOAD_SCHEMA,
298
+ };
299
+ /**
300
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
301
+ * tracks the *issuer* party's requirement because a response swaps the
302
+ * parties (§7.3 item 5).
303
+ */
304
+ export const RESPONSE_SPEC = {
305
+ typeUri: RESPONSE_TYPE_URI,
306
+ isBearer: false,
307
+ isProofRequired: false,
308
+ isRecipientRequired: true,
309
+ isIssuedAtRequired: false,
310
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
311
+ };
312
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/registry/records/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsFH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,2DAAoE,CAAC;AAK7F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,oEAA6E,CAAC;AAK/G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,2DAA2D;IAClE,OAAO,EAAE,qCAAqC;IAC9C,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;QACZ,UAAU,EAAE;YACV,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,sCAAsC;SACtD;QACD,aAAa,EAAE;YACb,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,+CAA+C;SAC/D;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QA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ACT;YACD,YAAY,EAAE;gBACZ,OAAO,EAAE;oBACP,MAAM,EAAE,OAAO;oBACf,OAAO,EAAE;wBACP,MAAM,EAAE,gBAAgB;qBACzB;oBACD,aAAa,EAAE,qEAAqE;iBACrF;gBACD,QAAQ,EAAE;oBACR,MAAM,EAAE,gBAAgB;oBACxB,aAAa,EAAE,kHAAkH;iBAClI;gBACD,YAAY,EAAE;oBACZ,MAAM,EAAE;wBACN,QAAQ;wBACR,MAAM;qBACP;oBACD,aAAa,EAAE,sEAAsE;iBACtF;gBACD,KAAK,EAAE;oBACL,MAAM,EAAE,aAAa;iBACtB;aACF;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,uKAAuK;YACtL,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,CAAC;YAClB,sBAAsB,EAAE,IAAI;YAC5B,eAAe,EAAE;gBACf,SAAS,EAAE,mCAAmC;aAC/C;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
@@ -0,0 +1,254 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/registry/sync-jobs/discard/0.1/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../../_shared/components.js";
6
+ /**
7
+ * Delete an abandoned trust-registry reconciliation job without dispatching it. The registry's record for that member is left exactly as it is.
8
+ */
9
+ export interface VTCRegistrySyncJobsDiscardPayload {
10
+ /**
11
+ * The job to delete, from `vtc/registry/sync-jobs/list`. Required and single: discard is irreversible, so there is deliberately no bulk form.
12
+ */
13
+ jobId: string;
14
+ ext?: Ext;
15
+ }
16
+ export interface VTCRegistrySyncJobsDiscardResponsePayload {
17
+ /**
18
+ * The deleted job, echoed.
19
+ */
20
+ jobId: string;
21
+ /**
22
+ * The member whose pending change was dropped. Returned because the caller is discarding by identifier and this names what it actually cost.
23
+ */
24
+ memberDid: string;
25
+ ext?: Ext;
26
+ }
27
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
28
+ export type { Ext };
29
+ /** Trust Task type URI. */
30
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/registry/sync-jobs/discard/0.1";
31
+ /** Stable alias for this specification's request payload shape. */
32
+ export type Payload = VTCRegistrySyncJobsDiscardPayload;
33
+ /** Trust Task response type URI (request type URI + "#response"). */
34
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/registry/sync-jobs/discard/0.1#response";
35
+ /** Stable alias for this specification's success-response payload shape. */
36
+ export type Response = VTCRegistrySyncJobsDiscardResponsePayload;
37
+ /**
38
+ * This specification's payload schema, as a value.
39
+ *
40
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
41
+ * rather than only as a `.json` file because TypeScript types are erased
42
+ * at runtime: without a schema a consumer has nothing to validate, and
43
+ * every REQUIRED payload member is optional in practice. Cross-file
44
+ * `$ref`s are already inlined, so it needs no resolver.
45
+ */
46
+ export declare const PAYLOAD_SCHEMA: {
47
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
48
+ readonly $id: "https://trusttasks.org/spec/vtc/registry/sync-jobs/discard/0.1";
49
+ readonly title: "VTC Registry Sync Jobs Discard — payload";
50
+ readonly description: "Delete an abandoned trust-registry reconciliation job without dispatching it. The registry's record for that member is left exactly as it is.";
51
+ readonly type: "object";
52
+ readonly additionalProperties: false;
53
+ readonly required: readonly ["jobId"];
54
+ readonly properties: {
55
+ readonly jobId: {
56
+ readonly type: "string";
57
+ readonly minLength: 1;
58
+ readonly description: "The job to delete, from `vtc/registry/sync-jobs/list`. Required and single: discard is irreversible, so there is deliberately no bulk form.";
59
+ };
60
+ readonly ext: {
61
+ readonly $ref: "#/$defs/Ext";
62
+ };
63
+ };
64
+ readonly $defs: {
65
+ readonly Response: {
66
+ readonly $anchor: "response";
67
+ readonly title: "VTC Registry Sync Jobs Discard — response payload";
68
+ readonly type: "object";
69
+ readonly additionalProperties: false;
70
+ readonly required: readonly ["jobId", "memberDid"];
71
+ readonly properties: {
72
+ readonly jobId: {
73
+ readonly type: "string";
74
+ readonly minLength: 1;
75
+ readonly description: "The deleted job, echoed.";
76
+ };
77
+ readonly memberDid: {
78
+ readonly type: "string";
79
+ readonly minLength: 1;
80
+ readonly description: "The member whose pending change was dropped. Returned because the caller is discarding by identifier and this names what it actually cost.";
81
+ };
82
+ readonly ext: {
83
+ readonly $ref: "#/$defs/Ext";
84
+ };
85
+ };
86
+ };
87
+ readonly Ext: {
88
+ readonly title: "Ext";
89
+ 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.";
90
+ readonly type: "object";
91
+ readonly minProperties: 1;
92
+ readonly additionalProperties: true;
93
+ readonly propertyNames: {
94
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
95
+ };
96
+ };
97
+ };
98
+ };
99
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
100
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
101
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
102
+ readonly $ref: "#/$defs/Response";
103
+ readonly $defs: {
104
+ readonly Response: {
105
+ readonly $anchor: "response";
106
+ readonly title: "VTC Registry Sync Jobs Discard — response payload";
107
+ readonly type: "object";
108
+ readonly additionalProperties: false;
109
+ readonly required: readonly ["jobId", "memberDid"];
110
+ readonly properties: {
111
+ readonly jobId: {
112
+ readonly type: "string";
113
+ readonly minLength: 1;
114
+ readonly description: "The deleted job, echoed.";
115
+ };
116
+ readonly memberDid: {
117
+ readonly type: "string";
118
+ readonly minLength: 1;
119
+ readonly description: "The member whose pending change was dropped. Returned because the caller is discarding by identifier and this names what it actually cost.";
120
+ };
121
+ readonly ext: {
122
+ readonly $ref: "#/$defs/Ext";
123
+ };
124
+ };
125
+ };
126
+ readonly Ext: {
127
+ readonly title: "Ext";
128
+ 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.";
129
+ readonly type: "object";
130
+ readonly minProperties: 1;
131
+ readonly additionalProperties: true;
132
+ readonly propertyNames: {
133
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
134
+ };
135
+ };
136
+ };
137
+ };
138
+ /**
139
+ * SPEC.md §7.2 policy for the request variant, from this specification's
140
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
141
+ * per-specification and cannot be derived from the document alone, and
142
+ * item 2 needs the schema this carries.
143
+ */
144
+ export declare const SPEC: {
145
+ readonly typeUri: "https://trusttasks.org/spec/vtc/registry/sync-jobs/discard/0.1";
146
+ readonly isBearer: false;
147
+ readonly isProofRequired: true;
148
+ readonly isRecipientRequired: true;
149
+ readonly isIssuedAtRequired: true;
150
+ readonly payloadSchema: {
151
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
152
+ readonly $id: "https://trusttasks.org/spec/vtc/registry/sync-jobs/discard/0.1";
153
+ readonly title: "VTC Registry Sync Jobs Discard — payload";
154
+ readonly description: "Delete an abandoned trust-registry reconciliation job without dispatching it. The registry's record for that member is left exactly as it is.";
155
+ readonly type: "object";
156
+ readonly additionalProperties: false;
157
+ readonly required: readonly ["jobId"];
158
+ readonly properties: {
159
+ readonly jobId: {
160
+ readonly type: "string";
161
+ readonly minLength: 1;
162
+ readonly description: "The job to delete, from `vtc/registry/sync-jobs/list`. Required and single: discard is irreversible, so there is deliberately no bulk form.";
163
+ };
164
+ readonly ext: {
165
+ readonly $ref: "#/$defs/Ext";
166
+ };
167
+ };
168
+ readonly $defs: {
169
+ readonly Response: {
170
+ readonly $anchor: "response";
171
+ readonly title: "VTC Registry Sync Jobs Discard — response payload";
172
+ readonly type: "object";
173
+ readonly additionalProperties: false;
174
+ readonly required: readonly ["jobId", "memberDid"];
175
+ readonly properties: {
176
+ readonly jobId: {
177
+ readonly type: "string";
178
+ readonly minLength: 1;
179
+ readonly description: "The deleted job, echoed.";
180
+ };
181
+ readonly memberDid: {
182
+ readonly type: "string";
183
+ readonly minLength: 1;
184
+ readonly description: "The member whose pending change was dropped. Returned because the caller is discarding by identifier and this names what it actually cost.";
185
+ };
186
+ readonly ext: {
187
+ readonly $ref: "#/$defs/Ext";
188
+ };
189
+ };
190
+ };
191
+ readonly Ext: {
192
+ readonly title: "Ext";
193
+ 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.";
194
+ readonly type: "object";
195
+ readonly minProperties: 1;
196
+ readonly additionalProperties: true;
197
+ readonly propertyNames: {
198
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
199
+ };
200
+ };
201
+ };
202
+ };
203
+ };
204
+ /**
205
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
206
+ * tracks the *issuer* party's requirement because a response swaps the
207
+ * parties (§7.3 item 5).
208
+ */
209
+ export declare const RESPONSE_SPEC: {
210
+ readonly typeUri: "https://trusttasks.org/spec/vtc/registry/sync-jobs/discard/0.1#response";
211
+ readonly isBearer: false;
212
+ readonly isProofRequired: true;
213
+ readonly isRecipientRequired: true;
214
+ readonly isIssuedAtRequired: true;
215
+ readonly payloadSchema: {
216
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
217
+ readonly $ref: "#/$defs/Response";
218
+ readonly $defs: {
219
+ readonly Response: {
220
+ readonly $anchor: "response";
221
+ readonly title: "VTC Registry Sync Jobs Discard — response payload";
222
+ readonly type: "object";
223
+ readonly additionalProperties: false;
224
+ readonly required: readonly ["jobId", "memberDid"];
225
+ readonly properties: {
226
+ readonly jobId: {
227
+ readonly type: "string";
228
+ readonly minLength: 1;
229
+ readonly description: "The deleted job, echoed.";
230
+ };
231
+ readonly memberDid: {
232
+ readonly type: "string";
233
+ readonly minLength: 1;
234
+ readonly description: "The member whose pending change was dropped. Returned because the caller is discarding by identifier and this names what it actually cost.";
235
+ };
236
+ readonly ext: {
237
+ readonly $ref: "#/$defs/Ext";
238
+ };
239
+ };
240
+ };
241
+ readonly Ext: {
242
+ readonly title: "Ext";
243
+ 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.";
244
+ readonly type: "object";
245
+ readonly minProperties: 1;
246
+ readonly additionalProperties: true;
247
+ readonly propertyNames: {
248
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
249
+ };
250
+ };
251
+ };
252
+ };
253
+ };
254
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/registry/sync-jobs/discard/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,yCAAyC;IACxD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,gEAAyE,CAAC;AAElG,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,iCAAiC,CAAC;AAExD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,yEAAkF,CAAC;AAEpH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,yCAAyC,CAAC;AAEjE;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}