@openvtc/trust-tasks 0.28.12 → 0.28.14

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 (101) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/dist/_shared/components.d.ts +458 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +43 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +43 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/process-attestation/0.1/payload.d.ts +73 -7
  9. package/dist/process-attestation/0.1/payload.d.ts.map +1 -1
  10. package/dist/process-attestation/0.1/payload.js +40 -6
  11. package/dist/process-attestation/0.1/payload.js.map +1 -1
  12. package/dist/trust-task-discovery/0.1/payload.d.ts +4 -4
  13. package/dist/trust-task-discovery/0.1/payload.js +1 -1
  14. package/dist/trust-task-discovery/0.2/payload.d.ts +4 -4
  15. package/dist/trust-task-discovery/0.2/payload.js +1 -1
  16. package/dist/trust-task-discovery/0.3/payload.d.ts +14 -2
  17. package/dist/trust-task-discovery/0.3/payload.d.ts.map +1 -1
  18. package/dist/trust-task-discovery/0.3/payload.js +1 -1
  19. package/dist/trust-task-discovery/0.3/payload.js.map +1 -1
  20. package/dist/trust-task-discovery/0.4/payload.d.ts +521 -0
  21. package/dist/trust-task-discovery/0.4/payload.d.ts.map +1 -0
  22. package/dist/trust-task-discovery/0.4/payload.js +266 -0
  23. package/dist/trust-task-discovery/0.4/payload.js.map +1 -0
  24. package/dist/vtc/boards/_shared/0.1/board.d.ts +22 -0
  25. package/dist/vtc/boards/_shared/0.1/board.d.ts.map +1 -0
  26. package/dist/vtc/boards/_shared/0.1/board.js +6 -0
  27. package/dist/vtc/boards/_shared/0.1/board.js.map +1 -0
  28. package/dist/vtc/boards/create/0.1/payload.d.ts +2402 -0
  29. package/dist/vtc/boards/create/0.1/payload.d.ts.map +1 -0
  30. package/dist/vtc/boards/create/0.1/payload.js +1349 -0
  31. package/dist/vtc/boards/create/0.1/payload.js.map +1 -0
  32. package/dist/vtc/boards/ideas/decide/0.1/payload.d.ts +1781 -0
  33. package/dist/vtc/boards/ideas/decide/0.1/payload.d.ts.map +1 -0
  34. package/dist/vtc/boards/ideas/decide/0.1/payload.js +1028 -0
  35. package/dist/vtc/boards/ideas/decide/0.1/payload.js.map +1 -0
  36. package/dist/vtc/boards/ideas/propose/0.1/payload.d.ts +1781 -0
  37. package/dist/vtc/boards/ideas/propose/0.1/payload.d.ts.map +1 -0
  38. package/dist/vtc/boards/ideas/propose/0.1/payload.js +1025 -0
  39. package/dist/vtc/boards/ideas/propose/0.1/payload.js.map +1 -0
  40. package/dist/vtc/boards/ideas/select/0.1/payload.d.ts +1788 -0
  41. package/dist/vtc/boards/ideas/select/0.1/payload.d.ts.map +1 -0
  42. package/dist/vtc/boards/ideas/select/0.1/payload.js +1029 -0
  43. package/dist/vtc/boards/ideas/select/0.1/payload.js.map +1 -0
  44. package/dist/vtc/boards/ideas/update/0.1/payload.d.ts +1781 -0
  45. package/dist/vtc/boards/ideas/update/0.1/payload.d.ts.map +1 -0
  46. package/dist/vtc/boards/ideas/update/0.1/payload.js +1023 -0
  47. package/dist/vtc/boards/ideas/update/0.1/payload.js.map +1 -0
  48. package/dist/vtc/boards/ideas/withdraw/0.1/payload.d.ts +1753 -0
  49. package/dist/vtc/boards/ideas/withdraw/0.1/payload.d.ts.map +1 -0
  50. package/dist/vtc/boards/ideas/withdraw/0.1/payload.js +1011 -0
  51. package/dist/vtc/boards/ideas/withdraw/0.1/payload.js.map +1 -0
  52. package/dist/vtc/boards/list/0.1/payload.d.ts +2267 -0
  53. package/dist/vtc/boards/list/0.1/payload.d.ts.map +1 -0
  54. package/dist/vtc/boards/list/0.1/payload.js +1326 -0
  55. package/dist/vtc/boards/list/0.1/payload.js.map +1 -0
  56. package/dist/vtc/boards/notes/add/0.1/payload.d.ts +655 -0
  57. package/dist/vtc/boards/notes/add/0.1/payload.d.ts.map +1 -0
  58. package/dist/vtc/boards/notes/add/0.1/payload.js +374 -0
  59. package/dist/vtc/boards/notes/add/0.1/payload.js.map +1 -0
  60. package/dist/vtc/boards/notes/hide/0.1/payload.d.ts +657 -0
  61. package/dist/vtc/boards/notes/hide/0.1/payload.d.ts.map +1 -0
  62. package/dist/vtc/boards/notes/hide/0.1/payload.js +378 -0
  63. package/dist/vtc/boards/notes/hide/0.1/payload.js.map +1 -0
  64. package/dist/vtc/boards/notes/list/0.1/payload.d.ts +730 -0
  65. package/dist/vtc/boards/notes/list/0.1/payload.d.ts.map +1 -0
  66. package/dist/vtc/boards/notes/list/0.1/payload.js +406 -0
  67. package/dist/vtc/boards/notes/list/0.1/payload.js.map +1 -0
  68. package/dist/vtc/boards/notes/withdraw/0.1/payload.d.ts +641 -0
  69. package/dist/vtc/boards/notes/withdraw/0.1/payload.d.ts.map +1 -0
  70. package/dist/vtc/boards/notes/withdraw/0.1/payload.js +367 -0
  71. package/dist/vtc/boards/notes/withdraw/0.1/payload.js.map +1 -0
  72. package/dist/vtc/boards/show/0.1/payload.d.ts +3713 -0
  73. package/dist/vtc/boards/show/0.1/payload.d.ts.map +1 -0
  74. package/dist/vtc/boards/show/0.1/payload.js +2160 -0
  75. package/dist/vtc/boards/show/0.1/payload.js.map +1 -0
  76. package/dist/vtc/boards/update/0.1/payload.d.ts +2423 -0
  77. package/dist/vtc/boards/update/0.1/payload.d.ts.map +1 -0
  78. package/dist/vtc/boards/update/0.1/payload.js +1356 -0
  79. package/dist/vtc/boards/update/0.1/payload.js.map +1 -0
  80. package/package.json +1 -1
  81. package/src/_shared/components.ts +493 -0
  82. package/src/index.ts +43 -0
  83. package/src/process-attestation/0.1/payload.ts +53 -9
  84. package/src/trust-task-discovery/0.1/payload.ts +5 -5
  85. package/src/trust-task-discovery/0.2/payload.ts +5 -5
  86. package/src/trust-task-discovery/0.3/payload.ts +15 -3
  87. package/src/trust-task-discovery/0.4/payload.ts +387 -0
  88. package/src/vtc/boards/_shared/0.1/board.ts +23 -0
  89. package/src/vtc/boards/create/0.1/payload.ts +1517 -0
  90. package/src/vtc/boards/ideas/decide/0.1/payload.ts +1068 -0
  91. package/src/vtc/boards/ideas/propose/0.1/payload.ts +1063 -0
  92. package/src/vtc/boards/ideas/select/0.1/payload.ts +1070 -0
  93. package/src/vtc/boards/ideas/update/0.1/payload.ts +1061 -0
  94. package/src/vtc/boards/ideas/withdraw/0.1/payload.ts +1045 -0
  95. package/src/vtc/boards/list/0.1/payload.ts +1376 -0
  96. package/src/vtc/boards/notes/add/0.1/payload.ts +410 -0
  97. package/src/vtc/boards/notes/hide/0.1/payload.ts +414 -0
  98. package/src/vtc/boards/notes/list/0.1/payload.ts +457 -0
  99. package/src/vtc/boards/notes/withdraw/0.1/payload.ts +401 -0
  100. package/src/vtc/boards/show/0.1/payload.ts +2212 -0
  101. package/src/vtc/boards/update/0.1/payload.ts +1529 -0
package/src/index.ts CHANGED
@@ -1938,6 +1938,7 @@ export * as TrustTaskControl_v0_1 from "./trust-task-control/0.1/payload.js";
1938
1938
  export * as TrustTaskDiscovery_v0_1 from "./trust-task-discovery/0.1/payload.js";
1939
1939
  export * as TrustTaskDiscovery_v0_2 from "./trust-task-discovery/0.2/payload.js";
1940
1940
  export * as TrustTaskDiscovery_v0_3 from "./trust-task-discovery/0.3/payload.js";
1941
+ export * as TrustTaskDiscovery_v0_4 from "./trust-task-discovery/0.4/payload.js";
1941
1942
  export * as TrustTaskError_v0_1 from "./trust-task-error/0.1/payload.js";
1942
1943
  export * as TrustTaskError_v0_2 from "./trust-task-error/0.2/payload.js";
1943
1944
  export * as TrustTaskError_v0_3 from "./trust-task-error/0.3/payload.js";
@@ -3146,6 +3147,48 @@ export import VtcBackupExport_v0_1 = _VtcBackupExport_v0_1;
3146
3147
  import * as _VtcBackupImport_v0_1 from "./vtc/backup/import/0.1/payload.js";
3147
3148
  /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3148
3149
  export import VtcBackupImport_v0_1 = _VtcBackupImport_v0_1;
3150
+ import * as _BoardShared_v0_1 from "./vtc/boards/_shared/0.1/board.js";
3151
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3152
+ export import BoardShared_v0_1 = _BoardShared_v0_1;
3153
+ import * as _VtcBoardsCreate_v0_1 from "./vtc/boards/create/0.1/payload.js";
3154
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3155
+ export import VtcBoardsCreate_v0_1 = _VtcBoardsCreate_v0_1;
3156
+ import * as _VtcBoardsIdeasDecide_v0_1 from "./vtc/boards/ideas/decide/0.1/payload.js";
3157
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3158
+ export import VtcBoardsIdeasDecide_v0_1 = _VtcBoardsIdeasDecide_v0_1;
3159
+ import * as _VtcBoardsIdeasPropose_v0_1 from "./vtc/boards/ideas/propose/0.1/payload.js";
3160
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3161
+ export import VtcBoardsIdeasPropose_v0_1 = _VtcBoardsIdeasPropose_v0_1;
3162
+ import * as _VtcBoardsIdeasSelect_v0_1 from "./vtc/boards/ideas/select/0.1/payload.js";
3163
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3164
+ export import VtcBoardsIdeasSelect_v0_1 = _VtcBoardsIdeasSelect_v0_1;
3165
+ import * as _VtcBoardsIdeasUpdate_v0_1 from "./vtc/boards/ideas/update/0.1/payload.js";
3166
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3167
+ export import VtcBoardsIdeasUpdate_v0_1 = _VtcBoardsIdeasUpdate_v0_1;
3168
+ import * as _VtcBoardsIdeasWithdraw_v0_1 from "./vtc/boards/ideas/withdraw/0.1/payload.js";
3169
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3170
+ export import VtcBoardsIdeasWithdraw_v0_1 = _VtcBoardsIdeasWithdraw_v0_1;
3171
+ import * as _VtcBoardsList_v0_1 from "./vtc/boards/list/0.1/payload.js";
3172
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3173
+ export import VtcBoardsList_v0_1 = _VtcBoardsList_v0_1;
3174
+ import * as _VtcBoardsNotesAdd_v0_1 from "./vtc/boards/notes/add/0.1/payload.js";
3175
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3176
+ export import VtcBoardsNotesAdd_v0_1 = _VtcBoardsNotesAdd_v0_1;
3177
+ import * as _VtcBoardsNotesHide_v0_1 from "./vtc/boards/notes/hide/0.1/payload.js";
3178
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3179
+ export import VtcBoardsNotesHide_v0_1 = _VtcBoardsNotesHide_v0_1;
3180
+ import * as _VtcBoardsNotesList_v0_1 from "./vtc/boards/notes/list/0.1/payload.js";
3181
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3182
+ export import VtcBoardsNotesList_v0_1 = _VtcBoardsNotesList_v0_1;
3183
+ import * as _VtcBoardsNotesWithdraw_v0_1 from "./vtc/boards/notes/withdraw/0.1/payload.js";
3184
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3185
+ export import VtcBoardsNotesWithdraw_v0_1 = _VtcBoardsNotesWithdraw_v0_1;
3186
+ import * as _VtcBoardsShow_v0_1 from "./vtc/boards/show/0.1/payload.js";
3187
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3188
+ export import VtcBoardsShow_v0_1 = _VtcBoardsShow_v0_1;
3189
+ import * as _VtcBoardsUpdate_v0_1 from "./vtc/boards/update/0.1/payload.js";
3190
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3191
+ export import VtcBoardsUpdate_v0_1 = _VtcBoardsUpdate_v0_1;
3149
3192
  import * as _VtcCeremoniesList_v0_1 from "./vtc/ceremonies/list/0.1/payload.js";
3150
3193
  /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3151
3194
  export import VtcCeremoniesList_v0_1 = _VtcCeremoniesList_v0_1;
@@ -3,7 +3,7 @@
3
3
  * Source: specs/process-attestation/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { Ext } from "../../_shared/components.js";
6
+ import type { DigestMultibase, Ext } from "../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -22,6 +22,10 @@ export type ReceiptReference =
22
22
  type: "uri";
23
23
  uri: string;
24
24
  mediaType?: string;
25
+ /**
26
+ * Digest of the exact receipt bytes the URI serves. The response's proof covers the URI and not what it serves, so this is what lets a retained response show which receipt it referred to; a Verifier that dereferences the URI compares before relying on the bytes (Verifier rule 6).
27
+ */
28
+ digestMultibase?: DigestMultibase;
25
29
  }
26
30
  | {
27
31
  type: "inline";
@@ -102,13 +106,19 @@ export interface Disclosed {
102
106
  endedAt?: string;
103
107
  checkpointCount?: number;
104
108
  };
109
+ /**
110
+ * The Holder's own report of its receipt's state. It is not verification: a Verifier relies on its own verification of the receipt (Verifier rules 4 and 7).
111
+ */
105
112
  integrity?: {
106
113
  chainValid?: boolean;
107
114
  signatureValid?: boolean;
108
115
  keyCustody?: "software" | "tpm" | "secureEnclave";
109
116
  };
110
117
  anchors?: {
111
- kind: "rfc3161" | "opentimestamps" | "roughtime";
118
+ /**
119
+ * The anchoring mechanism. `rfc3161` is a timestamp-authority response, `opentimestamps` an OpenTimestamps proof, `roughtime` a Roughtime sample, `blockchain` a direct chain anchor. Appended values are additive; a reader passes an unrecognised one through.
120
+ */
121
+ kind: "rfc3161" | "opentimestamps" | "roughtime" | "blockchain";
112
122
  anchoredAt?: string;
113
123
  }[];
114
124
  }
@@ -123,7 +133,7 @@ export interface Unavailable {
123
133
  }
124
134
 
125
135
  /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
126
- export type { Ext };
136
+ export type { DigestMultibase, Ext };
127
137
 
128
138
  /** Trust Task type URI. */
129
139
  export const TYPE_URI = "https://trusttasks.org/spec/process-attestation/0.1" as const;
@@ -350,6 +360,10 @@ export const PAYLOAD_SCHEMA = {
350
360
  "mediaType": {
351
361
  "type": "string",
352
362
  "maxLength": 255
363
+ },
364
+ "digestMultibase": {
365
+ "$ref": "#/$defs/DigestMultibase",
366
+ "description": "Digest of the exact receipt bytes the URI serves. The response's proof covers the URI and not what it serves, so this is what lets a retained response show which receipt it referred to; a Verifier that dereferences the URI compares before relying on the bytes (Verifier rule 6)."
353
367
  }
354
368
  }
355
369
  },
@@ -440,7 +454,8 @@ export const PAYLOAD_SCHEMA = {
440
454
  "secureEnclave"
441
455
  ]
442
456
  }
443
- }
457
+ },
458
+ "description": "The Holder's own report of its receipt's state. It is not verification: a Verifier relies on its own verification of the receipt (Verifier rules 4 and 7)."
444
459
  },
445
460
  "anchors": {
446
461
  "type": "array",
@@ -456,8 +471,10 @@ export const PAYLOAD_SCHEMA = {
456
471
  "enum": [
457
472
  "rfc3161",
458
473
  "opentimestamps",
459
- "roughtime"
460
- ]
474
+ "roughtime",
475
+ "blockchain"
476
+ ],
477
+ "description": "The anchoring mechanism. `rfc3161` is a timestamp-authority response, `opentimestamps` an OpenTimestamps proof, `roughtime` a Roughtime sample, `blockchain` a direct chain anchor. Appended values are additive; a reader passes an unrecognised one through."
461
478
  },
462
479
  "anchoredAt": {
463
480
  "type": "string",
@@ -468,6 +485,16 @@ export const PAYLOAD_SCHEMA = {
468
485
  }
469
486
  }
470
487
  },
488
+ "DigestMultibase": {
489
+ "title": "DigestMultibase",
490
+ "description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
491
+ "type": "string",
492
+ "minLength": 16,
493
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
494
+ "examples": [
495
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
496
+ ]
497
+ },
471
498
  "Ext": {
472
499
  "title": "Ext",
473
500
  "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.",
@@ -640,6 +667,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
640
667
  "mediaType": {
641
668
  "type": "string",
642
669
  "maxLength": 255
670
+ },
671
+ "digestMultibase": {
672
+ "$ref": "#/$defs/DigestMultibase",
673
+ "description": "Digest of the exact receipt bytes the URI serves. The response's proof covers the URI and not what it serves, so this is what lets a retained response show which receipt it referred to; a Verifier that dereferences the URI compares before relying on the bytes (Verifier rule 6)."
643
674
  }
644
675
  }
645
676
  },
@@ -730,7 +761,8 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
730
761
  "secureEnclave"
731
762
  ]
732
763
  }
733
- }
764
+ },
765
+ "description": "The Holder's own report of its receipt's state. It is not verification: a Verifier relies on its own verification of the receipt (Verifier rules 4 and 7)."
734
766
  },
735
767
  "anchors": {
736
768
  "type": "array",
@@ -746,8 +778,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
746
778
  "enum": [
747
779
  "rfc3161",
748
780
  "opentimestamps",
749
- "roughtime"
750
- ]
781
+ "roughtime",
782
+ "blockchain"
783
+ ],
784
+ "description": "The anchoring mechanism. `rfc3161` is a timestamp-authority response, `opentimestamps` an OpenTimestamps proof, `roughtime` a Roughtime sample, `blockchain` a direct chain anchor. Appended values are additive; a reader passes an unrecognised one through."
751
785
  },
752
786
  "anchoredAt": {
753
787
  "type": "string",
@@ -758,6 +792,16 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
758
792
  }
759
793
  }
760
794
  },
795
+ "DigestMultibase": {
796
+ "title": "DigestMultibase",
797
+ "description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
798
+ "type": "string",
799
+ "minLength": 16,
800
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
801
+ "examples": [
802
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
803
+ ]
804
+ },
761
805
  "Ext": {
762
806
  "title": "Ext",
763
807
  "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.",
@@ -6,7 +6,7 @@
6
6
  /**
7
7
  * Request payload for the framework-defined trust-task-discovery exchange. Carries zero or more slug-glob patterns the discoverer wants the responder to filter against. The response payload schema is reachable via $anchor: 'response'.
8
8
  *
9
- * @deprecated superseded by trust-task-discovery/0.3
9
+ * @deprecated superseded by trust-task-discovery/0.4
10
10
  */
11
11
  export interface TrustTaskDiscoveryPayload {
12
12
  /**
@@ -69,7 +69,7 @@ export interface TrustTaskDiscoveryPayload {
69
69
  /**
70
70
  * List of bare Type URIs the responding party supports. Carried in a Trust Task document whose type is https://trusttasks.org/spec/trust-task-discovery/0.1#response.
71
71
  *
72
- * @deprecated superseded by trust-task-discovery/0.3
72
+ * @deprecated superseded by trust-task-discovery/0.4
73
73
  */
74
74
  export interface TrustTaskDiscoveryResponsePayload {
75
75
  /**
@@ -113,12 +113,12 @@ export const EXTENDS: string | null = null;
113
113
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
114
114
  * Versions").
115
115
  */
116
- export const DEPRECATION: string | null = "superseded by trust-task-discovery/0.3";
116
+ export const DEPRECATION: string | null = "superseded by trust-task-discovery/0.4";
117
117
 
118
118
  /**
119
119
  * Stable alias for this specification's request payload shape.
120
120
  *
121
- * @deprecated superseded by trust-task-discovery/0.3
121
+ * @deprecated superseded by trust-task-discovery/0.4
122
122
  */
123
123
  export type Payload = TrustTaskDiscoveryPayload;
124
124
 
@@ -128,7 +128,7 @@ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/trust-task-discove
128
128
  /**
129
129
  * Stable alias for this specification's success-response payload shape.
130
130
  *
131
- * @deprecated superseded by trust-task-discovery/0.3
131
+ * @deprecated superseded by trust-task-discovery/0.4
132
132
  */
133
133
  export type Response = TrustTaskDiscoveryResponsePayload;
134
134
 
@@ -6,7 +6,7 @@
6
6
  /**
7
7
  * Request payload for the framework-defined trust-task-discovery exchange. Carries zero or more slug-glob patterns the discoverer wants the responder to filter against. The response payload schema is reachable via $anchor: 'response'.
8
8
  *
9
- * @deprecated superseded by trust-task-discovery/0.3
9
+ * @deprecated superseded by trust-task-discovery/0.4
10
10
  */
11
11
  export interface TrustTaskDiscoveryPayload {
12
12
  /**
@@ -69,7 +69,7 @@ export interface TrustTaskDiscoveryPayload {
69
69
  /**
70
70
  * List of bare Type URIs the responding party supports. Carried in a Trust Task document whose type is https://trusttasks.org/spec/trust-task-discovery/0.2#response.
71
71
  *
72
- * @deprecated superseded by trust-task-discovery/0.3
72
+ * @deprecated superseded by trust-task-discovery/0.4
73
73
  */
74
74
  export interface TrustTaskDiscoveryResponsePayload {
75
75
  /**
@@ -113,12 +113,12 @@ export const EXTENDS: string | null = null;
113
113
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
114
114
  * Versions").
115
115
  */
116
- export const DEPRECATION: string | null = "superseded by trust-task-discovery/0.3";
116
+ export const DEPRECATION: string | null = "superseded by trust-task-discovery/0.4";
117
117
 
118
118
  /**
119
119
  * Stable alias for this specification's request payload shape.
120
120
  *
121
- * @deprecated superseded by trust-task-discovery/0.3
121
+ * @deprecated superseded by trust-task-discovery/0.4
122
122
  */
123
123
  export type Payload = TrustTaskDiscoveryPayload;
124
124
 
@@ -128,7 +128,7 @@ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/trust-task-discove
128
128
  /**
129
129
  * Stable alias for this specification's success-response payload shape.
130
130
  *
131
- * @deprecated superseded by trust-task-discovery/0.3
131
+ * @deprecated superseded by trust-task-discovery/0.4
132
132
  */
133
133
  export type Response = TrustTaskDiscoveryResponsePayload;
134
134
 
@@ -5,6 +5,8 @@
5
5
 
6
6
  /**
7
7
  * Request payload for the framework-defined trust-task-discovery exchange. Carries zero or more slug-glob patterns the discoverer wants the responder to filter against. The response payload schema is reachable via $anchor: 'response'.
8
+ *
9
+ * @deprecated superseded by trust-task-discovery/0.4
8
10
  */
9
11
  export interface TrustTaskDiscoveryPayload {
10
12
  /**
@@ -66,6 +68,8 @@ export interface TrustTaskDiscoveryPayload {
66
68
  }
67
69
  /**
68
70
  * List of bare Type URIs the responding party supports. Carried in a Trust Task document whose type is https://trusttasks.org/spec/trust-task-discovery/0.3#response. A response-level `acceptanceWindow` is the window the responder applies to every listed Type URI whose entry carries none of its own. Where neither is present for an entry, the discoverer has learnt nothing about that entry's window and MUST NOT read the absence as the absence of a window.
71
+ *
72
+ * @deprecated superseded by trust-task-discovery/0.4
69
73
  */
70
74
  export interface TrustTaskDiscoveryResponsePayload {
71
75
  /**
@@ -124,15 +128,23 @@ export const EXTENDS: string | null = null;
124
128
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
125
129
  * Versions").
126
130
  */
127
- export const DEPRECATION: string | null = null;
131
+ export const DEPRECATION: string | null = "superseded by trust-task-discovery/0.4";
128
132
 
129
- /** Stable alias for this specification's request payload shape. */
133
+ /**
134
+ * Stable alias for this specification's request payload shape.
135
+ *
136
+ * @deprecated superseded by trust-task-discovery/0.4
137
+ */
130
138
  export type Payload = TrustTaskDiscoveryPayload;
131
139
 
132
140
  /** Trust Task response type URI (request type URI + "#response"). */
133
141
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/trust-task-discovery/0.3#response" as const;
134
142
 
135
- /** Stable alias for this specification's success-response payload shape. */
143
+ /**
144
+ * Stable alias for this specification's success-response payload shape.
145
+ *
146
+ * @deprecated superseded by trust-task-discovery/0.4
147
+ */
136
148
  export type Response = TrustTaskDiscoveryResponsePayload;
137
149
 
138
150
  /**