@openvtc/trust-tasks 0.20.8 → 0.21.0

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 (208) hide show
  1. package/CHANGELOG.md +233 -0
  2. package/dist/_shared/components.d.ts +299 -2
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/passkey/enroll/invite/0.2/payload.d.ts +456 -0
  5. package/dist/auth/passkey/enroll/invite/0.2/payload.d.ts.map +1 -0
  6. package/dist/auth/passkey/enroll/invite/0.2/payload.js +248 -0
  7. package/dist/auth/passkey/enroll/invite/0.2/payload.js.map +1 -0
  8. package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.d.ts +728 -0
  9. package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.d.ts.map +1 -0
  10. package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.js +430 -0
  11. package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.js.map +1 -0
  12. package/dist/auth/passkey/enroll/redeem/start/0.1/payload.d.ts +1043 -0
  13. package/dist/auth/passkey/enroll/redeem/start/0.1/payload.d.ts.map +1 -0
  14. package/dist/auth/passkey/enroll/redeem/start/0.1/payload.js +628 -0
  15. package/dist/auth/passkey/enroll/redeem/start/0.1/payload.js.map +1 -0
  16. package/dist/auth/passkey/revoke/finish/0.2/payload.d.ts +533 -0
  17. package/dist/auth/passkey/revoke/finish/0.2/payload.d.ts.map +1 -0
  18. package/dist/auth/passkey/revoke/finish/0.2/payload.js +315 -0
  19. package/dist/auth/passkey/revoke/finish/0.2/payload.js.map +1 -0
  20. package/dist/auth/passkey/revoke/start/0.2/payload.d.ts +511 -0
  21. package/dist/auth/passkey/revoke/start/0.2/payload.d.ts.map +1 -0
  22. package/dist/auth/passkey/revoke/start/0.2/payload.js +297 -0
  23. package/dist/auth/passkey/revoke/start/0.2/payload.js.map +1 -0
  24. package/dist/auth/step-up/approve-response/0.5/payload.d.ts +887 -0
  25. package/dist/auth/step-up/approve-response/0.5/payload.d.ts.map +1 -0
  26. package/dist/auth/step-up/approve-response/0.5/payload.js +504 -0
  27. package/dist/auth/step-up/approve-response/0.5/payload.js.map +1 -0
  28. package/dist/device/list/0.1/payload.d.ts +4 -4
  29. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  30. package/dist/device/list/0.1/payload.js +4 -2
  31. package/dist/device/list/0.1/payload.js.map +1 -1
  32. package/dist/device/list/0.2/payload.d.ts +4 -4
  33. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  34. package/dist/device/list/0.2/payload.js +4 -2
  35. package/dist/device/list/0.2/payload.js.map +1 -1
  36. package/dist/device/register/0.1/payload.d.ts +4 -4
  37. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  38. package/dist/device/register/0.1/payload.js +4 -2
  39. package/dist/device/register/0.1/payload.js.map +1 -1
  40. package/dist/device/register/0.2/payload.d.ts +4 -4
  41. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  42. package/dist/device/register/0.2/payload.js +4 -2
  43. package/dist/device/register/0.2/payload.js.map +1 -1
  44. package/dist/git-ns/_shared/0.4/git-ns.d.ts +16 -0
  45. package/dist/git-ns/_shared/0.4/git-ns.d.ts.map +1 -0
  46. package/dist/git-ns/_shared/0.4/git-ns.js +6 -0
  47. package/dist/git-ns/_shared/0.4/git-ns.js.map +1 -0
  48. package/dist/git-ns/account/link-status/0.1/payload.d.ts +2 -2
  49. package/dist/git-ns/account/link-status/0.1/payload.js +2 -2
  50. package/dist/git-ns/account/link-status/0.1/payload.js.map +1 -1
  51. package/dist/git-ns/account/unlink/0.1/payload.d.ts +411 -0
  52. package/dist/git-ns/account/unlink/0.1/payload.d.ts.map +1 -0
  53. package/dist/git-ns/account/unlink/0.1/payload.js +228 -0
  54. package/dist/git-ns/account/unlink/0.1/payload.js.map +1 -0
  55. package/dist/git-ns/bridge/event/0.3/payload.d.ts +1682 -0
  56. package/dist/git-ns/bridge/event/0.3/payload.d.ts.map +1 -0
  57. package/dist/git-ns/bridge/event/0.3/payload.js +971 -0
  58. package/dist/git-ns/bridge/event/0.3/payload.js.map +1 -0
  59. package/dist/git-ns/bridge/job/0.4/payload.d.ts +1068 -0
  60. package/dist/git-ns/bridge/job/0.4/payload.d.ts.map +1 -0
  61. package/dist/git-ns/bridge/job/0.4/payload.js +573 -0
  62. package/dist/git-ns/bridge/job/0.4/payload.js.map +1 -0
  63. package/dist/git-ns/drift/resolve/0.3/payload.d.ts +1072 -0
  64. package/dist/git-ns/drift/resolve/0.3/payload.d.ts.map +1 -0
  65. package/dist/git-ns/drift/resolve/0.3/payload.js +634 -0
  66. package/dist/git-ns/drift/resolve/0.3/payload.js.map +1 -0
  67. package/dist/git-ns/namespace/reseat/0.3/payload.d.ts +515 -0
  68. package/dist/git-ns/namespace/reseat/0.3/payload.d.ts.map +1 -0
  69. package/dist/git-ns/namespace/reseat/0.3/payload.js +296 -0
  70. package/dist/git-ns/namespace/reseat/0.3/payload.js.map +1 -0
  71. package/dist/git-ns/repo/create/0.3/payload.d.ts +1101 -0
  72. package/dist/git-ns/repo/create/0.3/payload.d.ts.map +1 -0
  73. package/dist/git-ns/repo/create/0.3/payload.js +646 -0
  74. package/dist/git-ns/repo/create/0.3/payload.js.map +1 -0
  75. package/dist/git-ns/right/break-glass/0.1/payload.d.ts +685 -0
  76. package/dist/git-ns/right/break-glass/0.1/payload.d.ts.map +1 -0
  77. package/dist/git-ns/right/break-glass/0.1/payload.js +397 -0
  78. package/dist/git-ns/right/break-glass/0.1/payload.js.map +1 -0
  79. package/dist/git-ns/right/break-glass-notice/0.1/payload.d.ts +384 -0
  80. package/dist/git-ns/right/break-glass-notice/0.1/payload.d.ts.map +1 -0
  81. package/dist/git-ns/right/break-glass-notice/0.1/payload.js +216 -0
  82. package/dist/git-ns/right/break-glass-notice/0.1/payload.js.map +1 -0
  83. package/dist/git-ns/right/grant/0.3/payload.d.ts +678 -0
  84. package/dist/git-ns/right/grant/0.3/payload.d.ts.map +1 -0
  85. package/dist/git-ns/right/grant/0.3/payload.js +383 -0
  86. package/dist/git-ns/right/grant/0.3/payload.js.map +1 -0
  87. package/dist/git-ns/right/ratify/0.1/payload.d.ts +702 -0
  88. package/dist/git-ns/right/ratify/0.1/payload.d.ts.map +1 -0
  89. package/dist/git-ns/right/ratify/0.1/payload.js +404 -0
  90. package/dist/git-ns/right/ratify/0.1/payload.js.map +1 -0
  91. package/dist/git-ns/right/revoke/0.3/payload.d.ts +664 -0
  92. package/dist/git-ns/right/revoke/0.3/payload.d.ts.map +1 -0
  93. package/dist/git-ns/right/revoke/0.3/payload.js +378 -0
  94. package/dist/git-ns/right/revoke/0.3/payload.js.map +1 -0
  95. package/dist/git-ns/roles/reproject/0.1/payload.d.ts +325 -0
  96. package/dist/git-ns/roles/reproject/0.1/payload.d.ts.map +1 -0
  97. package/dist/git-ns/roles/reproject/0.1/payload.js +176 -0
  98. package/dist/git-ns/roles/reproject/0.1/payload.js.map +1 -0
  99. package/dist/git-ns/view/0.1/payload.d.ts +2 -2
  100. package/dist/git-ns/view/0.1/payload.js +2 -2
  101. package/dist/git-ns/view/0.1/payload.js.map +1 -1
  102. package/dist/git-ns/view/0.2/payload.d.ts +2 -2
  103. package/dist/git-ns/view/0.2/payload.js +2 -2
  104. package/dist/git-ns/view/0.2/payload.js.map +1 -1
  105. package/dist/git-ns/view/0.3/payload.d.ts +2 -2
  106. package/dist/git-ns/view/0.3/payload.js +2 -2
  107. package/dist/git-ns/view/0.3/payload.js.map +1 -1
  108. package/dist/git-ns/view/0.4/payload.d.ts +1696 -0
  109. package/dist/git-ns/view/0.4/payload.d.ts.map +1 -0
  110. package/dist/git-ns/view/0.4/payload.js +1012 -0
  111. package/dist/git-ns/view/0.4/payload.js.map +1 -0
  112. package/dist/index.d.ts +30 -0
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.js +30 -0
  115. package/dist/index.js.map +1 -1
  116. package/dist/messaging/message/status/0.1/payload.d.ts +372 -0
  117. package/dist/messaging/message/status/0.1/payload.d.ts.map +1 -0
  118. package/dist/messaging/message/status/0.1/payload.js +214 -0
  119. package/dist/messaging/message/status/0.1/payload.js.map +1 -0
  120. package/dist/vta/_shared/0.3/did-key-roles.d.ts +16 -0
  121. package/dist/vta/_shared/0.3/did-key-roles.d.ts.map +1 -0
  122. package/dist/vta/_shared/0.3/did-key-roles.js +6 -0
  123. package/dist/vta/_shared/0.3/did-key-roles.js.map +1 -0
  124. package/dist/vta/attestation/mnemonic-export/1.0/payload.d.ts +326 -0
  125. package/dist/vta/attestation/mnemonic-export/1.0/payload.d.ts.map +1 -0
  126. package/dist/vta/attestation/mnemonic-export/1.0/payload.js +175 -0
  127. package/dist/vta/attestation/mnemonic-export/1.0/payload.js.map +1 -0
  128. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts +1914 -0
  129. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts.map +1 -0
  130. package/dist/vta/webvh/dids/keys/add/1.0/payload.js +1128 -0
  131. package/dist/vta/webvh/dids/keys/add/1.0/payload.js.map +1 -0
  132. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts +1603 -0
  133. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts.map +1 -0
  134. package/dist/vta/webvh/dids/keys/list/1.0/payload.js +942 -0
  135. package/dist/vta/webvh/dids/keys/list/1.0/payload.js.map +1 -0
  136. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts +1914 -0
  137. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts.map +1 -0
  138. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js +1123 -0
  139. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js.map +1 -0
  140. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts +2021 -0
  141. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts.map +1 -0
  142. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js +1168 -0
  143. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js.map +1 -0
  144. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts +1992 -0
  145. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts.map +1 -0
  146. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js +1151 -0
  147. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js.map +1 -0
  148. package/dist/vta/webvh/dids/update/2.0/payload.d.ts +1062 -0
  149. package/dist/vta/webvh/dids/update/2.0/payload.d.ts.map +1 -0
  150. package/dist/vta/webvh/dids/update/2.0/payload.js +616 -0
  151. package/dist/vta/webvh/dids/update/2.0/payload.js.map +1 -0
  152. package/dist/vtc/credentials/reissue/0.1/payload.d.ts +502 -0
  153. package/dist/vtc/credentials/reissue/0.1/payload.d.ts.map +1 -0
  154. package/dist/vtc/credentials/reissue/0.1/payload.js +282 -0
  155. package/dist/vtc/credentials/reissue/0.1/payload.js.map +1 -0
  156. package/dist/vtc/members/personhood/challenge/0.1/payload.d.ts +2 -2
  157. package/dist/vtc/members/personhood/challenge/0.1/payload.js +2 -2
  158. package/dist/vtc/members/personhood/challenge/0.1/payload.js.map +1 -1
  159. package/dist/vtc/vetting/vetters/profile/0.1/payload.d.ts +2 -2
  160. package/dist/vtc/vetting/vetters/profile/0.1/payload.js +2 -2
  161. package/dist/vtc/vetting/vetters/profile/0.1/payload.js.map +1 -1
  162. package/dist/vtc/vetting/vetters/resend/0.1/payload.d.ts +2 -2
  163. package/dist/vtc/vetting/vetters/resend/0.1/payload.js +2 -2
  164. package/dist/vtc/vetting/vetters/resend/0.1/payload.js.map +1 -1
  165. package/package.json +1 -1
  166. package/src/_shared/components.ts +313 -2
  167. package/src/auth/passkey/enroll/invite/0.2/payload.ts +325 -0
  168. package/src/auth/passkey/enroll/redeem/finish/0.1/payload.ts +499 -0
  169. package/src/auth/passkey/enroll/redeem/start/0.1/payload.ts +700 -0
  170. package/src/auth/passkey/revoke/finish/0.2/payload.ts +379 -0
  171. package/src/auth/passkey/revoke/start/0.2/payload.ts +349 -0
  172. package/src/auth/step-up/approve-response/0.5/payload.ts +593 -0
  173. package/src/device/list/0.1/payload.ts +4 -2
  174. package/src/device/list/0.2/payload.ts +4 -2
  175. package/src/device/register/0.1/payload.ts +4 -2
  176. package/src/device/register/0.2/payload.ts +4 -2
  177. package/src/git-ns/_shared/0.4/git-ns.ts +17 -0
  178. package/src/git-ns/account/link-status/0.1/payload.ts +2 -2
  179. package/src/git-ns/account/unlink/0.1/payload.ts +274 -0
  180. package/src/git-ns/bridge/event/0.3/payload.ts +1132 -0
  181. package/src/git-ns/bridge/job/0.4/payload.ts +691 -0
  182. package/src/git-ns/drift/resolve/0.3/payload.ts +707 -0
  183. package/src/git-ns/namespace/reseat/0.3/payload.ts +342 -0
  184. package/src/git-ns/repo/create/0.3/payload.ts +706 -0
  185. package/src/git-ns/right/break-glass/0.1/payload.ts +443 -0
  186. package/src/git-ns/right/break-glass-notice/0.1/payload.ts +258 -0
  187. package/src/git-ns/right/grant/0.3/payload.ts +434 -0
  188. package/src/git-ns/right/ratify/0.1/payload.ts +455 -0
  189. package/src/git-ns/right/revoke/0.3/payload.ts +425 -0
  190. package/src/git-ns/roles/reproject/0.1/payload.ts +220 -0
  191. package/src/git-ns/view/0.1/payload.ts +2 -2
  192. package/src/git-ns/view/0.2/payload.ts +2 -2
  193. package/src/git-ns/view/0.3/payload.ts +2 -2
  194. package/src/git-ns/view/0.4/payload.ts +1075 -0
  195. package/src/index.ts +30 -0
  196. package/src/messaging/message/status/0.1/payload.ts +270 -0
  197. package/src/vta/_shared/0.3/did-key-roles.ts +17 -0
  198. package/src/vta/attestation/mnemonic-export/1.0/payload.ts +232 -0
  199. package/src/vta/webvh/dids/keys/add/1.0/payload.ts +1217 -0
  200. package/src/vta/webvh/dids/keys/list/1.0/payload.ts +1004 -0
  201. package/src/vta/webvh/dids/keys/retire/1.0/payload.ts +1212 -0
  202. package/src/vta/webvh/dids/keys/revoke/1.0/payload.ts +1276 -0
  203. package/src/vta/webvh/dids/rotate-keys/2.0/payload.ts +1262 -0
  204. package/src/vta/webvh/dids/update/2.0/payload.ts +713 -0
  205. package/src/vtc/credentials/reissue/0.1/payload.ts +357 -0
  206. package/src/vtc/members/personhood/challenge/0.1/payload.ts +2 -2
  207. package/src/vtc/vetting/vetters/profile/0.1/payload.ts +2 -2
  208. package/src/vtc/vetting/vetters/resend/0.1/payload.ts +2 -2
@@ -0,0 +1,357 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/credentials/reissue/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * Ask a VTC to re-sign its status lists and re-issue the attestation artefacts still in force that an attestation key revoked for compromise signed, under the community's current attestation key. Re-sending the same request returns the progress of the job it started.
11
+ */
12
+ export interface VTCCredentialsReissuePayload {
13
+ /**
14
+ * The revocation that requires re-issuance. The VTC MUST verify it against its own DID's key roles (vta/webvh/dids/keys/list) rather than trust it.
15
+ */
16
+ cause: {
17
+ /**
18
+ * The attestation key of the community's DID that was revoked for compromise.
19
+ */
20
+ verificationMethod: string;
21
+ /**
22
+ * The VTA's rotation record (`kind: compromise`) for the revocation, when known.
23
+ */
24
+ rotationId?: string;
25
+ };
26
+ /**
27
+ * `all` (the default) re-signs status lists first and then re-issues artefacts. `statusListsOnly` re-signs status lists and stops — for an operator who must restore status checking within minutes and schedule the rest.
28
+ */
29
+ scope?: "all" | "statusListsOnly";
30
+ /**
31
+ * Report what would be re-signed and re-issued, without doing it. Absent reads as false.
32
+ */
33
+ dryRun?: boolean;
34
+ ext?: Ext;
35
+ }
36
+ /**
37
+ * Success response. Type https://trusttasks.org/spec/vtc/credentials/reissue/0.1#response. Counts only — never a list of members or credentials.
38
+ */
39
+ export interface VTCCredentialsReissueResponsePayload {
40
+ /**
41
+ * The job this cause started. The same cause always names the same job.
42
+ */
43
+ jobId: string;
44
+ /**
45
+ * `planned` — a dry run. `running` — status lists are being re-signed. `statusListsDone` — every status list is re-signed; artefacts are being re-issued (or, for `statusListsOnly`, the job is done). `completed` — everything in scope is re-signed and re-issued. `failed` — the job stopped; `artefacts.failed` and the audit trail say where.
46
+ */
47
+ state: "planned" | "running" | "statusListsDone" | "completed" | "failed";
48
+ dryRun: boolean;
49
+ statusLists: ReissueProgress;
50
+ artefacts: ReissueProgress;
51
+ /**
52
+ * The attestation keys (verification methods) the new signatures are made with.
53
+ */
54
+ signedWith?: string[];
55
+ ext?: Ext;
56
+ }
57
+ export interface ReissueProgress {
58
+ total: number;
59
+ done: number;
60
+ failed: number;
61
+ /**
62
+ * Artefacts re-issued but not yet delivered to their holder — the holder is offline or unreachable. They are held for the holder's next renewal or contact.
63
+ */
64
+ undeliverable?: number;
65
+ }
66
+
67
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
68
+ export type { Ext };
69
+
70
+ /** Trust Task type URI. */
71
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/credentials/reissue/0.1" as const;
72
+
73
+ /** Stable alias for this specification's request payload shape. */
74
+ export type Payload = VTCCredentialsReissuePayload;
75
+
76
+ /** Trust Task response type URI (request type URI + "#response"). */
77
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/credentials/reissue/0.1#response" as const;
78
+
79
+ /** Stable alias for this specification's success-response payload shape. */
80
+ export type Response = VTCCredentialsReissueResponsePayload;
81
+
82
+ /**
83
+ * This specification's payload schema, as a value.
84
+ *
85
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
86
+ * rather than only as a `.json` file because TypeScript types are erased
87
+ * at runtime: without a schema a consumer has nothing to validate, and
88
+ * every REQUIRED payload member is optional in practice. Cross-file
89
+ * `$ref`s are already inlined, so it needs no resolver.
90
+ */
91
+ export const PAYLOAD_SCHEMA = {
92
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
93
+ "$id": "https://trusttasks.org/spec/vtc/credentials/reissue/0.1",
94
+ "title": "VTC Credentials Reissue — payload",
95
+ "description": "Ask a VTC to re-sign its status lists and re-issue the attestation artefacts still in force that an attestation key revoked for compromise signed, under the community's current attestation key. Re-sending the same request returns the progress of the job it started.",
96
+ "type": "object",
97
+ "additionalProperties": false,
98
+ "required": [
99
+ "cause"
100
+ ],
101
+ "properties": {
102
+ "cause": {
103
+ "type": "object",
104
+ "additionalProperties": false,
105
+ "required": [
106
+ "verificationMethod"
107
+ ],
108
+ "description": "The revocation that requires re-issuance. The VTC MUST verify it against its own DID's key roles (vta/webvh/dids/keys/list) rather than trust it.",
109
+ "properties": {
110
+ "verificationMethod": {
111
+ "type": "string",
112
+ "minLength": 1,
113
+ "description": "The attestation key of the community's DID that was revoked for compromise."
114
+ },
115
+ "rotationId": {
116
+ "type": "string",
117
+ "minLength": 1,
118
+ "description": "The VTA's rotation record (`kind: compromise`) for the revocation, when known."
119
+ }
120
+ }
121
+ },
122
+ "scope": {
123
+ "type": "string",
124
+ "enum": [
125
+ "all",
126
+ "statusListsOnly"
127
+ ],
128
+ "description": "`all` (the default) re-signs status lists first and then re-issues artefacts. `statusListsOnly` re-signs status lists and stops — for an operator who must restore status checking within minutes and schedule the rest."
129
+ },
130
+ "dryRun": {
131
+ "type": "boolean",
132
+ "description": "Report what would be re-signed and re-issued, without doing it. Absent reads as false."
133
+ },
134
+ "ext": {
135
+ "$ref": "#/$defs/Ext"
136
+ }
137
+ },
138
+ "$defs": {
139
+ "Response": {
140
+ "$anchor": "response",
141
+ "title": "VTC Credentials Reissue — response payload",
142
+ "description": "Success response. Type https://trusttasks.org/spec/vtc/credentials/reissue/0.1#response. Counts only — never a list of members or credentials.",
143
+ "type": "object",
144
+ "additionalProperties": false,
145
+ "required": [
146
+ "jobId",
147
+ "state",
148
+ "dryRun",
149
+ "statusLists",
150
+ "artefacts"
151
+ ],
152
+ "properties": {
153
+ "jobId": {
154
+ "type": "string",
155
+ "minLength": 1,
156
+ "description": "The job this cause started. The same cause always names the same job."
157
+ },
158
+ "state": {
159
+ "type": "string",
160
+ "enum": [
161
+ "planned",
162
+ "running",
163
+ "statusListsDone",
164
+ "completed",
165
+ "failed"
166
+ ],
167
+ "description": "`planned` — a dry run. `running` — status lists are being re-signed. `statusListsDone` — every status list is re-signed; artefacts are being re-issued (or, for `statusListsOnly`, the job is done). `completed` — everything in scope is re-signed and re-issued. `failed` — the job stopped; `artefacts.failed` and the audit trail say where."
168
+ },
169
+ "dryRun": {
170
+ "type": "boolean"
171
+ },
172
+ "statusLists": {
173
+ "$ref": "#/$defs/Progress"
174
+ },
175
+ "artefacts": {
176
+ "$ref": "#/$defs/Progress"
177
+ },
178
+ "signedWith": {
179
+ "type": "array",
180
+ "items": {
181
+ "type": "string"
182
+ },
183
+ "description": "The attestation keys (verification methods) the new signatures are made with."
184
+ },
185
+ "ext": {
186
+ "$ref": "#/$defs/Ext"
187
+ }
188
+ }
189
+ },
190
+ "Progress": {
191
+ "title": "ReissueProgress",
192
+ "type": "object",
193
+ "additionalProperties": false,
194
+ "required": [
195
+ "total",
196
+ "done",
197
+ "failed"
198
+ ],
199
+ "properties": {
200
+ "total": {
201
+ "type": "integer",
202
+ "minimum": 0
203
+ },
204
+ "done": {
205
+ "type": "integer",
206
+ "minimum": 0
207
+ },
208
+ "failed": {
209
+ "type": "integer",
210
+ "minimum": 0
211
+ },
212
+ "undeliverable": {
213
+ "type": "integer",
214
+ "minimum": 0,
215
+ "description": "Artefacts re-issued but not yet delivered to their holder — the holder is offline or unreachable. They are held for the holder's next renewal or contact."
216
+ }
217
+ }
218
+ },
219
+ "Ext": {
220
+ "title": "Ext",
221
+ "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.",
222
+ "type": "object",
223
+ "minProperties": 1,
224
+ "additionalProperties": true,
225
+ "propertyNames": {
226
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
227
+ }
228
+ }
229
+ }
230
+ } as const;
231
+
232
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
233
+ export const RESPONSE_PAYLOAD_SCHEMA = {
234
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
235
+ "$ref": "#/$defs/Response",
236
+ "$defs": {
237
+ "Response": {
238
+ "$anchor": "response",
239
+ "title": "VTC Credentials Reissue — response payload",
240
+ "description": "Success response. Type https://trusttasks.org/spec/vtc/credentials/reissue/0.1#response. Counts only — never a list of members or credentials.",
241
+ "type": "object",
242
+ "additionalProperties": false,
243
+ "required": [
244
+ "jobId",
245
+ "state",
246
+ "dryRun",
247
+ "statusLists",
248
+ "artefacts"
249
+ ],
250
+ "properties": {
251
+ "jobId": {
252
+ "type": "string",
253
+ "minLength": 1,
254
+ "description": "The job this cause started. The same cause always names the same job."
255
+ },
256
+ "state": {
257
+ "type": "string",
258
+ "enum": [
259
+ "planned",
260
+ "running",
261
+ "statusListsDone",
262
+ "completed",
263
+ "failed"
264
+ ],
265
+ "description": "`planned` — a dry run. `running` — status lists are being re-signed. `statusListsDone` — every status list is re-signed; artefacts are being re-issued (or, for `statusListsOnly`, the job is done). `completed` — everything in scope is re-signed and re-issued. `failed` — the job stopped; `artefacts.failed` and the audit trail say where."
266
+ },
267
+ "dryRun": {
268
+ "type": "boolean"
269
+ },
270
+ "statusLists": {
271
+ "$ref": "#/$defs/Progress"
272
+ },
273
+ "artefacts": {
274
+ "$ref": "#/$defs/Progress"
275
+ },
276
+ "signedWith": {
277
+ "type": "array",
278
+ "items": {
279
+ "type": "string"
280
+ },
281
+ "description": "The attestation keys (verification methods) the new signatures are made with."
282
+ },
283
+ "ext": {
284
+ "$ref": "#/$defs/Ext"
285
+ }
286
+ }
287
+ },
288
+ "Progress": {
289
+ "title": "ReissueProgress",
290
+ "type": "object",
291
+ "additionalProperties": false,
292
+ "required": [
293
+ "total",
294
+ "done",
295
+ "failed"
296
+ ],
297
+ "properties": {
298
+ "total": {
299
+ "type": "integer",
300
+ "minimum": 0
301
+ },
302
+ "done": {
303
+ "type": "integer",
304
+ "minimum": 0
305
+ },
306
+ "failed": {
307
+ "type": "integer",
308
+ "minimum": 0
309
+ },
310
+ "undeliverable": {
311
+ "type": "integer",
312
+ "minimum": 0,
313
+ "description": "Artefacts re-issued but not yet delivered to their holder — the holder is offline or unreachable. They are held for the holder's next renewal or contact."
314
+ }
315
+ }
316
+ },
317
+ "Ext": {
318
+ "title": "Ext",
319
+ "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.",
320
+ "type": "object",
321
+ "minProperties": 1,
322
+ "additionalProperties": true,
323
+ "propertyNames": {
324
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
325
+ }
326
+ }
327
+ }
328
+ } as const;
329
+
330
+ /**
331
+ * SPEC.md §7.2 policy for the request variant, from this specification's
332
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
333
+ * per-specification and cannot be derived from the document alone, and
334
+ * item 2 needs the schema this carries.
335
+ */
336
+ export const SPEC = {
337
+ typeUri: TYPE_URI,
338
+ isBearer: false,
339
+ isProofRequired: true,
340
+ isRecipientRequired: true,
341
+ isIssuedAtRequired: true,
342
+ payloadSchema: PAYLOAD_SCHEMA,
343
+ } as const;
344
+
345
+ /**
346
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
347
+ * tracks the *issuer* party's requirement because a response swaps the
348
+ * parties (§7.3 item 5).
349
+ */
350
+ export const RESPONSE_SPEC = {
351
+ typeUri: RESPONSE_TYPE_URI,
352
+ isBearer: false,
353
+ isProofRequired: true,
354
+ isRecipientRequired: true,
355
+ isIssuedAtRequired: true,
356
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
357
+ } as const;
@@ -159,7 +159,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
159
159
  export const SPEC = {
160
160
  typeUri: TYPE_URI,
161
161
  isBearer: false,
162
- isProofRequired: false,
162
+ isProofRequired: true,
163
163
  isRecipientRequired: true,
164
164
  isIssuedAtRequired: false,
165
165
  payloadSchema: PAYLOAD_SCHEMA,
@@ -173,7 +173,7 @@ export const SPEC = {
173
173
  export const RESPONSE_SPEC = {
174
174
  typeUri: RESPONSE_TYPE_URI,
175
175
  isBearer: false,
176
- isProofRequired: false,
176
+ isProofRequired: true,
177
177
  isRecipientRequired: true,
178
178
  isIssuedAtRequired: false,
179
179
  payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
@@ -626,7 +626,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
626
626
  export const SPEC = {
627
627
  typeUri: TYPE_URI,
628
628
  isBearer: false,
629
- isProofRequired: false,
629
+ isProofRequired: true,
630
630
  isRecipientRequired: true,
631
631
  isIssuedAtRequired: true,
632
632
  payloadSchema: PAYLOAD_SCHEMA,
@@ -640,7 +640,7 @@ export const SPEC = {
640
640
  export const RESPONSE_SPEC = {
641
641
  typeUri: RESPONSE_TYPE_URI,
642
642
  isBearer: false,
643
- isProofRequired: false,
643
+ isProofRequired: true,
644
644
  isRecipientRequired: true,
645
645
  isIssuedAtRequired: true,
646
646
  payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
@@ -153,7 +153,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
153
153
  export const SPEC = {
154
154
  typeUri: TYPE_URI,
155
155
  isBearer: false,
156
- isProofRequired: false,
156
+ isProofRequired: true,
157
157
  isRecipientRequired: true,
158
158
  isIssuedAtRequired: false,
159
159
  payloadSchema: PAYLOAD_SCHEMA,
@@ -167,7 +167,7 @@ export const SPEC = {
167
167
  export const RESPONSE_SPEC = {
168
168
  typeUri: RESPONSE_TYPE_URI,
169
169
  isBearer: false,
170
- isProofRequired: false,
170
+ isProofRequired: true,
171
171
  isRecipientRequired: true,
172
172
  isIssuedAtRequired: false,
173
173
  payloadSchema: RESPONSE_PAYLOAD_SCHEMA,