@openvtc/trust-tasks 0.28.16 → 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 (42) hide show
  1. package/CHANGELOG.md +43 -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 +15 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +15 -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/vtc/networks/preview/0.1/payload.d.ts +696 -0
  22. package/dist/vtc/networks/preview/0.1/payload.d.ts.map +1 -0
  23. package/dist/vtc/networks/preview/0.1/payload.js +376 -0
  24. package/dist/vtc/networks/preview/0.1/payload.js.map +1 -0
  25. package/dist/vtn/registry/check/0.1/payload.d.ts +528 -0
  26. package/dist/vtn/registry/check/0.1/payload.d.ts.map +1 -0
  27. package/dist/vtn/registry/check/0.1/payload.js +282 -0
  28. package/dist/vtn/registry/check/0.1/payload.js.map +1 -0
  29. package/dist/vtn/registry/status/0.1/payload.d.ts +736 -0
  30. package/dist/vtn/registry/status/0.1/payload.d.ts.map +1 -0
  31. package/dist/vtn/registry/status/0.1/payload.js +421 -0
  32. package/dist/vtn/registry/status/0.1/payload.js.map +1 -0
  33. package/package.json +1 -1
  34. package/src/_shared/components.ts +26 -1
  35. package/src/index.ts +15 -0
  36. package/src/vta/collection/_shared/0.1/collection.ts +2 -2
  37. package/src/vta/collection/list/0.1/payload.ts +2 -2
  38. package/src/vta/collection/settings/set/0.1/payload.ts +319 -0
  39. package/src/vta/collection/settings/show/0.1/payload.ts +296 -0
  40. package/src/vtc/networks/preview/0.1/payload.ts +483 -0
  41. package/src/vtn/registry/check/0.1/payload.ts +365 -0
  42. package/src/vtn/registry/status/0.1/payload.ts +502 -0
@@ -3,7 +3,7 @@
3
3
  * Source: specs/vta/collection/_shared/0.1/collection.schema.json
4
4
  */
5
5
  /**
6
- * Shared shapes for the collection of messages for a principal's identifiers. A VTA collects, from the mediator each identifier's DID document advertises, the messages queued for every identifier whose messaging keys it holds in one of the principal's trust contexts — its personas — unless a client of the principal holds a collection claim for it: a lease, granted by vta/collection/claim and ended by vta/collection/release or at its end, under which that client is the identifier's one collector. The mediator permits one connection per identifier, so at most one party collects for an identifier at a time (VTI-NTF-080 – VTI-NTF-092).
6
+ * Shared shapes for the collection of messages for a principal's identifiers. A VTA collects, from the mediator each identifier's DID document advertises, the messages queued for every identifier whose messaging keys it holds in one of the principal's trust contexts — its personas — unless a client of the principal holds a collection claim for it: a lease, granted by vta/collection/claim and ended by vta/collection/release or at its end, under which that client is the identifier's one collector. The mediator permits one connection per identifier, so at most one party collects for an identifier at a time (VTI-NTF-080 – VTI-NTF-092). Whether the VTA collects by default for the unclaimed identifiers of a trust context is that context's own setting, enabled unless a context administrator disables it with vta/collection/settings/set (VTI-NTF-094 – VTI-NTF-098).
7
7
  */
8
8
  export interface VTACollectionSharedDefinitions {
9
9
  [k: string]: unknown | undefined;
@@ -12,5 +12,5 @@ export interface VTACollectionSharedDefinitions {
12
12
  * The definitions this shared schema publishes, hoisted to one declaration each.
13
13
  * See "../../../../_shared/components.js".
14
14
  */
15
- export type { Claim, CollectionEntry, Collector, ContextId_VtaCollectionV0_1 as ContextId, Did_NotificationsV0_1 as Did, NotCollectedReason } from "../../../../_shared/components.js";
15
+ export type { Claim, CollectionEntry, CollectionSetting, Collector, ContextId_VtaCollectionV0_1 as ContextId, Did_NotificationsV0_1 as Did, NotCollectedReason } from "../../../../_shared/components.js";
16
16
  //# sourceMappingURL=collection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../../src/vta/collection/_shared/0.1/collection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,2BAA2B,IAAI,SAAS,EAAE,qBAAqB,IAAI,GAAG,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC"}
1
+ {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../../src/vta/collection/_shared/0.1/collection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,SAAS,EAAE,2BAA2B,IAAI,SAAS,EAAE,qBAAqB,IAAI,GAAG,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC"}
@@ -187,7 +187,7 @@ export declare const PAYLOAD_SCHEMA: {
187
187
  };
188
188
  readonly NotCollectedReason: {
189
189
  readonly title: "NotCollectedReason";
190
- readonly description: "Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, the VTA's operator has not enabled collection by default (VTI-NTF-093), so the VTA collects for no identifier a client has not claimed.";
190
+ readonly description: "Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, collection by default is disabled for the identifier's trust context — by the context's own setting, or because the VTA's operator has suspended it for every context — so the VTA collects for no identifier there that a client has not claimed (VTI-NTF-097, VTI-NTF-098); vta/collection/settings/show says which.";
191
191
  readonly type: "string";
192
192
  readonly enum: readonly ["limit", "conflict", "disabled"];
193
193
  };
@@ -332,7 +332,7 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
332
332
  };
333
333
  readonly NotCollectedReason: {
334
334
  readonly title: "NotCollectedReason";
335
- readonly description: "Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, the VTA's operator has not enabled collection by default (VTI-NTF-093), so the VTA collects for no identifier a client has not claimed.";
335
+ readonly description: "Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, collection by default is disabled for the identifier's trust context — by the context's own setting, or because the VTA's operator has suspended it for every context — so the VTA collects for no identifier there that a client has not claimed (VTI-NTF-097, VTI-NTF-098); vta/collection/settings/show says which.";
336
336
  readonly type: "string";
337
337
  readonly enum: readonly ["limit", "conflict", "disabled"];
338
338
  };
@@ -521,7 +521,7 @@ export declare const SPEC: {
521
521
  };
522
522
  readonly NotCollectedReason: {
523
523
  readonly title: "NotCollectedReason";
524
- readonly description: "Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, the VTA's operator has not enabled collection by default (VTI-NTF-093), so the VTA collects for no identifier a client has not claimed.";
524
+ readonly description: "Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, collection by default is disabled for the identifier's trust context — by the context's own setting, or because the VTA's operator has suspended it for every context — so the VTA collects for no identifier there that a client has not claimed (VTI-NTF-097, VTI-NTF-098); vta/collection/settings/show says which.";
525
525
  readonly type: "string";
526
526
  readonly enum: readonly ["limit", "conflict", "disabled"];
527
527
  };
@@ -677,7 +677,7 @@ export declare const RESPONSE_SPEC: {
677
677
  };
678
678
  readonly NotCollectedReason: {
679
679
  readonly title: "NotCollectedReason";
680
- readonly description: "Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, the VTA's operator has not enabled collection by default (VTI-NTF-093), so the VTA collects for no identifier a client has not claimed.";
680
+ readonly description: "Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, collection by default is disabled for the identifier's trust context — by the context's own setting, or because the VTA's operator has suspended it for every context — so the VTA collects for no identifier there that a client has not claimed (VTI-NTF-097, VTI-NTF-098); vta/collection/settings/show says which.";
681
681
  readonly type: "string";
682
682
  readonly enum: readonly ["limit", "conflict", "disabled"];
683
683
  };
@@ -169,7 +169,7 @@ export const PAYLOAD_SCHEMA = {
169
169
  },
170
170
  "NotCollectedReason": {
171
171
  "title": "NotCollectedReason",
172
- "description": "Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, the VTA's operator has not enabled collection by default (VTI-NTF-093), so the VTA collects for no identifier a client has not claimed.",
172
+ "description": "Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, collection by default is disabled for the identifier's trust context — by the context's own setting, or because the VTA's operator has suspended it for every context — so the VTA collects for no identifier there that a client has not claimed (VTI-NTF-097, VTI-NTF-098); vta/collection/settings/show says which.",
173
173
  "type": "string",
174
174
  "enum": [
175
175
  "limit",
@@ -346,7 +346,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
346
346
  },
347
347
  "NotCollectedReason": {
348
348
  "title": "NotCollectedReason",
349
- "description": "Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, the VTA's operator has not enabled collection by default (VTI-NTF-093), so the VTA collects for no identifier a client has not claimed.",
349
+ "description": "Why nobody collects for an identifier the VTA would otherwise collect for: `limit`, the VTA is at the bound it states on the number of identifiers it collects for (VTI-NTF-088); `conflict`, another connection for the identifier kept closing the VTA's, and the VTA stopped after the bound it states until the conflict is resolved (VTI-NTF-085). `disabled`, collection by default is disabled for the identifier's trust context — by the context's own setting, or because the VTA's operator has suspended it for every context — so the VTA collects for no identifier there that a client has not claimed (VTI-NTF-097, VTI-NTF-098); vta/collection/settings/show says which.",
350
350
  "type": "string",
351
351
  "enum": [
352
352
  "limit",
@@ -1 +1 @@
1
- {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/collection/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,qDAA8D,CAAC;AAEvF;;;;;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,8DAAuE,CAAC;AAKzG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,qDAAqD;IAC5D,OAAO,EAAE,iCAAiC;IAC1C,aAAa,EAAE,0YAA0Y;IACzZ,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,WAAW;KACZ;IACD,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,MAAM,EAAE,mBAAmB;SAC5B;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,aAAa;YACrB,aAAa,EAAE,uBAAuB;SACvC;QACD,WAAW,EAAE;YACX,MAAM,EAAE,mBAAmB;YAC3B,aAAa,EAAE,2GAA2G;SAC3H;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,uHAAuH;SACvI;QACD,OAAO,EAAE;YACP,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,GAAG;YACd,aAAa,EAAE,2BAA2B;SAC3C;QACD,KAAK,EAAE;YACL,MAAM,EAA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"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/collection/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,qDAA8D,CAAC;AAEvF;;;;;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,8DAAuE,CAAC;AAKzG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,qDAAqD;IAC5D,OAAO,EAAE,iCAAiC;IAC1C,aAAa,EAAE,0YAA0Y;IACzZ,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,WAAW;KACZ;IACD,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,MAAM,EAAE,mBAAmB;SAC5B;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,aAAa;YACrB,aAAa,EAAE,uBAAuB;SACvC;QACD,WAAW,EAAE;YACX,MAAM,EAAE,mBAAmB;YAC3B,aAAa,EAAE,2GAA2G;SAC3H;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,uHAAuH;SACvI;QACD,OAAO,EAAE;YACP,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,GAAG;YACd,aAAa,EAAE,2BAA2B;SAC3C;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,0CAA0C;YACnD,MAAM,EAAE,QAA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AE;YACL,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,QAAQ;YACvB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,IAAI;YACjB,SAAS,EAAE,sBAAsB;SAClC;QACD,WAAW,EAAE;YACX,OAAO,EAAE,WAAW;YACpB,aAAa,EAAE,gLAAgL;YAC/L,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,KAAK;gBACL,QAAQ;gBACR,MAAM;aACP;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;QACD,WAAW,EAAE;YACX,OAAO,EAAE,WAAW;YACpB,aAAa,EAAE,8CAA8C;YAC7D,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;SACjB;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,469 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/collection/settings/set/0.1/payload.schema.json
4
+ */
5
+ import type { CollectionSetting, ContextId_VtaCollectionV0_1 as ContextId, Did_NotificationsV0_1 as Did, Ext } from "../../../../../_shared/components.js";
6
+ /**
7
+ * A client with administrative authority over a trust context enables or disables collection by default there: whether its VTA collects for the context's identifiers that no client has claimed (VTI-NTF-094, VTI-NTF-095). The VTA stores the setting, applies it before it answers — disabling it stops collection and closes the VTA's connections for those identifiers — and records the change in its audit trail (VTI-NTF-096). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTACollectionSettingsSetPayload {
10
+ /**
11
+ * The trust context whose setting to change. The change applies to that context's identifiers alone, not to its ancestors' or descendants' (VTI-NTF-094).
12
+ */
13
+ contextId: ContextId;
14
+ /**
15
+ * true to enable collection by default for the context, false to disable it.
16
+ */
17
+ collectByDefault: boolean;
18
+ ext?: Ext;
19
+ }
20
+ /**
21
+ * The context's setting once the change has taken effect.
22
+ */
23
+ export interface VTACollectionSettingsSetResponsePayload {
24
+ setting: CollectionSetting;
25
+ /**
26
+ * Whether this request changed the setting. False when the context already held the value asked for, in which case nothing changed but the record of the request (VTI-NTF-095).
27
+ */
28
+ changed: boolean;
29
+ }
30
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
31
+ export type { CollectionSetting, ContextId, Did, Ext };
32
+ /** Trust Task type URI. */
33
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/collection/settings/set/0.1";
34
+ /**
35
+ * The earlier version of this specification that this one declares it
36
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
37
+ * `null`. Only the direct declaration — follow the chain with
38
+ * `extendsChain` / `readForSpec`.
39
+ */
40
+ export declare const EXTENDS: string | null;
41
+ /**
42
+ * Why this version is deprecated, or `null` while it is current. A
43
+ * superseded or retired version is still supported, and is withdrawn from
44
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
45
+ * Versions").
46
+ */
47
+ export declare const DEPRECATION: string | null;
48
+ /** Stable alias for this specification's request payload shape. */
49
+ export type Payload = VTACollectionSettingsSetPayload;
50
+ /** Trust Task response type URI (request type URI + "#response"). */
51
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/collection/settings/set/0.1#response";
52
+ /** Stable alias for this specification's success-response payload shape. */
53
+ export type Response = VTACollectionSettingsSetResponsePayload;
54
+ /**
55
+ * This specification's payload schema, as a value.
56
+ *
57
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
58
+ * rather than only as a `.json` file because TypeScript types are erased
59
+ * at runtime: without a schema a consumer has nothing to validate, and
60
+ * every REQUIRED payload member is optional in practice. Cross-file
61
+ * `$ref`s are already inlined, so it needs no resolver.
62
+ */
63
+ export declare const PAYLOAD_SCHEMA: {
64
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
65
+ readonly $id: "https://trusttasks.org/spec/vta/collection/settings/set/0.1";
66
+ readonly title: "VTA Collection — Settings — Set — payload";
67
+ readonly description: "A client with administrative authority over a trust context enables or disables collection by default there: whether its VTA collects for the context's identifiers that no client has claimed (VTI-NTF-094, VTI-NTF-095). The VTA stores the setting, applies it before it answers — disabling it stops collection and closes the VTA's connections for those identifiers — and records the change in its audit trail (VTI-NTF-096). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
68
+ readonly type: "object";
69
+ readonly additionalProperties: false;
70
+ readonly required: readonly ["contextId", "collectByDefault"];
71
+ readonly properties: {
72
+ readonly contextId: {
73
+ readonly $ref: "#/$defs/ContextId";
74
+ readonly description: "The trust context whose setting to change. The change applies to that context's identifiers alone, not to its ancestors' or descendants' (VTI-NTF-094).";
75
+ };
76
+ readonly collectByDefault: {
77
+ readonly type: "boolean";
78
+ readonly description: "true to enable collection by default for the context, false to disable it.";
79
+ };
80
+ readonly ext: {
81
+ readonly $ref: "#/$defs/Ext";
82
+ };
83
+ };
84
+ readonly $defs: {
85
+ readonly Response: {
86
+ readonly $anchor: "response";
87
+ readonly title: "VTA Collection — Settings — Set — response payload";
88
+ readonly type: "object";
89
+ readonly additionalProperties: false;
90
+ readonly required: readonly ["setting", "changed"];
91
+ readonly description: "The context's setting once the change has taken effect.";
92
+ readonly properties: {
93
+ readonly setting: {
94
+ readonly $ref: "#/$defs/CollectionSetting";
95
+ };
96
+ readonly changed: {
97
+ readonly type: "boolean";
98
+ readonly description: "Whether this request changed the setting. False when the context already held the value asked for, in which case nothing changed but the record of the request (VTI-NTF-095).";
99
+ };
100
+ };
101
+ };
102
+ readonly CollectionSetting: {
103
+ readonly title: "CollectionSetting";
104
+ readonly description: "Whether the VTA collects by default for the identifiers of one trust context that no client has claimed (VTI-NTF-094 – VTI-NTF-098), and who last changed that. The VTA collects for them exactly when `collectByDefault` is true and `suspendedByOperator` is false. `changedBy` and `changedAt` are present together, and both absent while the setting has never been changed.";
105
+ readonly type: "object";
106
+ readonly additionalProperties: false;
107
+ readonly required: readonly ["contextId", "collectByDefault", "suspendedByOperator"];
108
+ readonly properties: {
109
+ readonly contextId: {
110
+ readonly $ref: "#/$defs/ContextId";
111
+ readonly description: "The trust context the setting belongs to. It applies to that context's identifiers alone, not to its ancestors' or descendants' (VTI-NTF-094).";
112
+ };
113
+ readonly collectByDefault: {
114
+ readonly type: "boolean";
115
+ readonly description: "The context's own setting: true unless a party with administrative authority over the context has disabled it (VTI-NTF-094, VTI-NTF-095). The VTA keeps it across restarts.";
116
+ };
117
+ readonly suspendedByOperator: {
118
+ readonly type: "boolean";
119
+ readonly description: "Whether the VTA's operator has suspended collection by default for every context (VTI-NTF-098). While true, the VTA collects for no unclaimed identifier here whatever `collectByDefault` says, and does not change it; once lifted, `collectByDefault` applies again. Always false at a VTA that offers its operator no suspension.";
120
+ };
121
+ readonly changedBy: {
122
+ readonly $ref: "#/$defs/Did";
123
+ readonly description: "The subject of the access control entry that last changed `collectByDefault` (VTI-NTF-096).";
124
+ };
125
+ readonly changedAt: {
126
+ readonly type: "string";
127
+ readonly format: "date-time";
128
+ readonly description: "When `collectByDefault` was last changed.";
129
+ };
130
+ };
131
+ readonly dependentSchemas: {
132
+ readonly changedBy: {
133
+ readonly required: readonly ["changedAt"];
134
+ };
135
+ readonly changedAt: {
136
+ readonly required: readonly ["changedBy"];
137
+ };
138
+ };
139
+ };
140
+ readonly Did: {
141
+ readonly title: "Did";
142
+ readonly description: "A DID.";
143
+ readonly type: "string";
144
+ readonly minLength: 8;
145
+ readonly maxLength: 2048;
146
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
147
+ };
148
+ readonly ContextId: {
149
+ readonly title: "ContextId";
150
+ readonly description: "The trust context the identifier belongs to.";
151
+ readonly type: "string";
152
+ readonly minLength: 1;
153
+ readonly maxLength: 256;
154
+ };
155
+ readonly Ext: {
156
+ readonly title: "Ext";
157
+ 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.";
158
+ readonly type: "object";
159
+ readonly minProperties: 1;
160
+ readonly additionalProperties: true;
161
+ readonly propertyNames: {
162
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
163
+ };
164
+ };
165
+ };
166
+ };
167
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
168
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
169
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
170
+ readonly $ref: "#/$defs/Response";
171
+ readonly $defs: {
172
+ readonly Response: {
173
+ readonly $anchor: "response";
174
+ readonly title: "VTA Collection — Settings — Set — response payload";
175
+ readonly type: "object";
176
+ readonly additionalProperties: false;
177
+ readonly required: readonly ["setting", "changed"];
178
+ readonly description: "The context's setting once the change has taken effect.";
179
+ readonly properties: {
180
+ readonly setting: {
181
+ readonly $ref: "#/$defs/CollectionSetting";
182
+ };
183
+ readonly changed: {
184
+ readonly type: "boolean";
185
+ readonly description: "Whether this request changed the setting. False when the context already held the value asked for, in which case nothing changed but the record of the request (VTI-NTF-095).";
186
+ };
187
+ };
188
+ };
189
+ readonly CollectionSetting: {
190
+ readonly title: "CollectionSetting";
191
+ readonly description: "Whether the VTA collects by default for the identifiers of one trust context that no client has claimed (VTI-NTF-094 – VTI-NTF-098), and who last changed that. The VTA collects for them exactly when `collectByDefault` is true and `suspendedByOperator` is false. `changedBy` and `changedAt` are present together, and both absent while the setting has never been changed.";
192
+ readonly type: "object";
193
+ readonly additionalProperties: false;
194
+ readonly required: readonly ["contextId", "collectByDefault", "suspendedByOperator"];
195
+ readonly properties: {
196
+ readonly contextId: {
197
+ readonly $ref: "#/$defs/ContextId";
198
+ readonly description: "The trust context the setting belongs to. It applies to that context's identifiers alone, not to its ancestors' or descendants' (VTI-NTF-094).";
199
+ };
200
+ readonly collectByDefault: {
201
+ readonly type: "boolean";
202
+ readonly description: "The context's own setting: true unless a party with administrative authority over the context has disabled it (VTI-NTF-094, VTI-NTF-095). The VTA keeps it across restarts.";
203
+ };
204
+ readonly suspendedByOperator: {
205
+ readonly type: "boolean";
206
+ readonly description: "Whether the VTA's operator has suspended collection by default for every context (VTI-NTF-098). While true, the VTA collects for no unclaimed identifier here whatever `collectByDefault` says, and does not change it; once lifted, `collectByDefault` applies again. Always false at a VTA that offers its operator no suspension.";
207
+ };
208
+ readonly changedBy: {
209
+ readonly $ref: "#/$defs/Did";
210
+ readonly description: "The subject of the access control entry that last changed `collectByDefault` (VTI-NTF-096).";
211
+ };
212
+ readonly changedAt: {
213
+ readonly type: "string";
214
+ readonly format: "date-time";
215
+ readonly description: "When `collectByDefault` was last changed.";
216
+ };
217
+ };
218
+ readonly dependentSchemas: {
219
+ readonly changedBy: {
220
+ readonly required: readonly ["changedAt"];
221
+ };
222
+ readonly changedAt: {
223
+ readonly required: readonly ["changedBy"];
224
+ };
225
+ };
226
+ };
227
+ readonly Did: {
228
+ readonly title: "Did";
229
+ readonly description: "A DID.";
230
+ readonly type: "string";
231
+ readonly minLength: 8;
232
+ readonly maxLength: 2048;
233
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
234
+ };
235
+ readonly ContextId: {
236
+ readonly title: "ContextId";
237
+ readonly description: "The trust context the identifier belongs to.";
238
+ readonly type: "string";
239
+ readonly minLength: 1;
240
+ readonly maxLength: 256;
241
+ };
242
+ readonly Ext: {
243
+ readonly title: "Ext";
244
+ 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.";
245
+ readonly type: "object";
246
+ readonly minProperties: 1;
247
+ readonly additionalProperties: true;
248
+ readonly propertyNames: {
249
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
250
+ };
251
+ };
252
+ };
253
+ };
254
+ /**
255
+ * SPEC.md §7.2 policy for the request variant, from this specification's
256
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
257
+ * per-specification and cannot be derived from the document alone, and
258
+ * item 2 needs the schema this carries.
259
+ */
260
+ export declare const SPEC: {
261
+ readonly typeUri: "https://trusttasks.org/spec/vta/collection/settings/set/0.1";
262
+ readonly isBearer: false;
263
+ readonly isProofRequired: false;
264
+ readonly isRecipientRequired: true;
265
+ readonly isIssuedAtRequired: true;
266
+ readonly payloadSchema: {
267
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
268
+ readonly $id: "https://trusttasks.org/spec/vta/collection/settings/set/0.1";
269
+ readonly title: "VTA Collection — Settings — Set — payload";
270
+ readonly description: "A client with administrative authority over a trust context enables or disables collection by default there: whether its VTA collects for the context's identifiers that no client has claimed (VTI-NTF-094, VTI-NTF-095). The VTA stores the setting, applies it before it answers — disabling it stops collection and closes the VTA's connections for those identifiers — and records the change in its audit trail (VTI-NTF-096). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
271
+ readonly type: "object";
272
+ readonly additionalProperties: false;
273
+ readonly required: readonly ["contextId", "collectByDefault"];
274
+ readonly properties: {
275
+ readonly contextId: {
276
+ readonly $ref: "#/$defs/ContextId";
277
+ readonly description: "The trust context whose setting to change. The change applies to that context's identifiers alone, not to its ancestors' or descendants' (VTI-NTF-094).";
278
+ };
279
+ readonly collectByDefault: {
280
+ readonly type: "boolean";
281
+ readonly description: "true to enable collection by default for the context, false to disable it.";
282
+ };
283
+ readonly ext: {
284
+ readonly $ref: "#/$defs/Ext";
285
+ };
286
+ };
287
+ readonly $defs: {
288
+ readonly Response: {
289
+ readonly $anchor: "response";
290
+ readonly title: "VTA Collection — Settings — Set — response payload";
291
+ readonly type: "object";
292
+ readonly additionalProperties: false;
293
+ readonly required: readonly ["setting", "changed"];
294
+ readonly description: "The context's setting once the change has taken effect.";
295
+ readonly properties: {
296
+ readonly setting: {
297
+ readonly $ref: "#/$defs/CollectionSetting";
298
+ };
299
+ readonly changed: {
300
+ readonly type: "boolean";
301
+ readonly description: "Whether this request changed the setting. False when the context already held the value asked for, in which case nothing changed but the record of the request (VTI-NTF-095).";
302
+ };
303
+ };
304
+ };
305
+ readonly CollectionSetting: {
306
+ readonly title: "CollectionSetting";
307
+ readonly description: "Whether the VTA collects by default for the identifiers of one trust context that no client has claimed (VTI-NTF-094 – VTI-NTF-098), and who last changed that. The VTA collects for them exactly when `collectByDefault` is true and `suspendedByOperator` is false. `changedBy` and `changedAt` are present together, and both absent while the setting has never been changed.";
308
+ readonly type: "object";
309
+ readonly additionalProperties: false;
310
+ readonly required: readonly ["contextId", "collectByDefault", "suspendedByOperator"];
311
+ readonly properties: {
312
+ readonly contextId: {
313
+ readonly $ref: "#/$defs/ContextId";
314
+ readonly description: "The trust context the setting belongs to. It applies to that context's identifiers alone, not to its ancestors' or descendants' (VTI-NTF-094).";
315
+ };
316
+ readonly collectByDefault: {
317
+ readonly type: "boolean";
318
+ readonly description: "The context's own setting: true unless a party with administrative authority over the context has disabled it (VTI-NTF-094, VTI-NTF-095). The VTA keeps it across restarts.";
319
+ };
320
+ readonly suspendedByOperator: {
321
+ readonly type: "boolean";
322
+ readonly description: "Whether the VTA's operator has suspended collection by default for every context (VTI-NTF-098). While true, the VTA collects for no unclaimed identifier here whatever `collectByDefault` says, and does not change it; once lifted, `collectByDefault` applies again. Always false at a VTA that offers its operator no suspension.";
323
+ };
324
+ readonly changedBy: {
325
+ readonly $ref: "#/$defs/Did";
326
+ readonly description: "The subject of the access control entry that last changed `collectByDefault` (VTI-NTF-096).";
327
+ };
328
+ readonly changedAt: {
329
+ readonly type: "string";
330
+ readonly format: "date-time";
331
+ readonly description: "When `collectByDefault` was last changed.";
332
+ };
333
+ };
334
+ readonly dependentSchemas: {
335
+ readonly changedBy: {
336
+ readonly required: readonly ["changedAt"];
337
+ };
338
+ readonly changedAt: {
339
+ readonly required: readonly ["changedBy"];
340
+ };
341
+ };
342
+ };
343
+ readonly Did: {
344
+ readonly title: "Did";
345
+ readonly description: "A DID.";
346
+ readonly type: "string";
347
+ readonly minLength: 8;
348
+ readonly maxLength: 2048;
349
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
350
+ };
351
+ readonly ContextId: {
352
+ readonly title: "ContextId";
353
+ readonly description: "The trust context the identifier belongs to.";
354
+ readonly type: "string";
355
+ readonly minLength: 1;
356
+ readonly maxLength: 256;
357
+ };
358
+ readonly Ext: {
359
+ readonly title: "Ext";
360
+ 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.";
361
+ readonly type: "object";
362
+ readonly minProperties: 1;
363
+ readonly additionalProperties: true;
364
+ readonly propertyNames: {
365
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
366
+ };
367
+ };
368
+ };
369
+ };
370
+ };
371
+ /**
372
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
373
+ * tracks the *issuer* party's requirement because a response swaps the
374
+ * parties (§7.3 item 5).
375
+ */
376
+ export declare const RESPONSE_SPEC: {
377
+ readonly typeUri: "https://trusttasks.org/spec/vta/collection/settings/set/0.1#response";
378
+ readonly isBearer: false;
379
+ readonly isProofRequired: false;
380
+ readonly isRecipientRequired: true;
381
+ readonly isIssuedAtRequired: true;
382
+ readonly payloadSchema: {
383
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
384
+ readonly $ref: "#/$defs/Response";
385
+ readonly $defs: {
386
+ readonly Response: {
387
+ readonly $anchor: "response";
388
+ readonly title: "VTA Collection — Settings — Set — response payload";
389
+ readonly type: "object";
390
+ readonly additionalProperties: false;
391
+ readonly required: readonly ["setting", "changed"];
392
+ readonly description: "The context's setting once the change has taken effect.";
393
+ readonly properties: {
394
+ readonly setting: {
395
+ readonly $ref: "#/$defs/CollectionSetting";
396
+ };
397
+ readonly changed: {
398
+ readonly type: "boolean";
399
+ readonly description: "Whether this request changed the setting. False when the context already held the value asked for, in which case nothing changed but the record of the request (VTI-NTF-095).";
400
+ };
401
+ };
402
+ };
403
+ readonly CollectionSetting: {
404
+ readonly title: "CollectionSetting";
405
+ readonly description: "Whether the VTA collects by default for the identifiers of one trust context that no client has claimed (VTI-NTF-094 – VTI-NTF-098), and who last changed that. The VTA collects for them exactly when `collectByDefault` is true and `suspendedByOperator` is false. `changedBy` and `changedAt` are present together, and both absent while the setting has never been changed.";
406
+ readonly type: "object";
407
+ readonly additionalProperties: false;
408
+ readonly required: readonly ["contextId", "collectByDefault", "suspendedByOperator"];
409
+ readonly properties: {
410
+ readonly contextId: {
411
+ readonly $ref: "#/$defs/ContextId";
412
+ readonly description: "The trust context the setting belongs to. It applies to that context's identifiers alone, not to its ancestors' or descendants' (VTI-NTF-094).";
413
+ };
414
+ readonly collectByDefault: {
415
+ readonly type: "boolean";
416
+ readonly description: "The context's own setting: true unless a party with administrative authority over the context has disabled it (VTI-NTF-094, VTI-NTF-095). The VTA keeps it across restarts.";
417
+ };
418
+ readonly suspendedByOperator: {
419
+ readonly type: "boolean";
420
+ readonly description: "Whether the VTA's operator has suspended collection by default for every context (VTI-NTF-098). While true, the VTA collects for no unclaimed identifier here whatever `collectByDefault` says, and does not change it; once lifted, `collectByDefault` applies again. Always false at a VTA that offers its operator no suspension.";
421
+ };
422
+ readonly changedBy: {
423
+ readonly $ref: "#/$defs/Did";
424
+ readonly description: "The subject of the access control entry that last changed `collectByDefault` (VTI-NTF-096).";
425
+ };
426
+ readonly changedAt: {
427
+ readonly type: "string";
428
+ readonly format: "date-time";
429
+ readonly description: "When `collectByDefault` was last changed.";
430
+ };
431
+ };
432
+ readonly dependentSchemas: {
433
+ readonly changedBy: {
434
+ readonly required: readonly ["changedAt"];
435
+ };
436
+ readonly changedAt: {
437
+ readonly required: readonly ["changedBy"];
438
+ };
439
+ };
440
+ };
441
+ readonly Did: {
442
+ readonly title: "Did";
443
+ readonly description: "A DID.";
444
+ readonly type: "string";
445
+ readonly minLength: 8;
446
+ readonly maxLength: 2048;
447
+ readonly pattern: "^did:[a-z0-9]+:\\S+$";
448
+ };
449
+ readonly ContextId: {
450
+ readonly title: "ContextId";
451
+ readonly description: "The trust context the identifier belongs to.";
452
+ readonly type: "string";
453
+ readonly minLength: 1;
454
+ readonly maxLength: 256;
455
+ };
456
+ readonly Ext: {
457
+ readonly title: "Ext";
458
+ 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.";
459
+ readonly type: "object";
460
+ readonly minProperties: 1;
461
+ readonly additionalProperties: true;
462
+ readonly propertyNames: {
463
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
464
+ };
465
+ };
466
+ };
467
+ };
468
+ };
469
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vta/collection/settings/set/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,2BAA2B,IAAI,SAAS,EAAE,qBAAqB,IAAI,GAAG,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAG3J;;GAEG;AACH,MA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