@openvtc/trust-tasks 0.21.11 → 0.21.13

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 +76 -0
  2. package/dist/_framework/0.4/framework.d.ts +1 -1
  3. package/dist/_framework/0.4/framework.d.ts.map +1 -1
  4. package/dist/_shared/components.d.ts +371 -0
  5. package/dist/_shared/components.d.ts.map +1 -1
  6. package/dist/auth/_shared/0.1/signing-key.d.ts +16 -0
  7. package/dist/auth/_shared/0.1/signing-key.d.ts.map +1 -0
  8. package/dist/auth/_shared/0.1/signing-key.js +6 -0
  9. package/dist/auth/_shared/0.1/signing-key.js.map +1 -0
  10. package/dist/auth/signing-key/enroll/0.1/payload.d.ts +545 -0
  11. package/dist/auth/signing-key/enroll/0.1/payload.d.ts.map +1 -0
  12. package/dist/auth/signing-key/enroll/0.1/payload.js +307 -0
  13. package/dist/auth/signing-key/enroll/0.1/payload.js.map +1 -0
  14. package/dist/auth/signing-key/list/0.1/payload.d.ts +509 -0
  15. package/dist/auth/signing-key/list/0.1/payload.d.ts.map +1 -0
  16. package/dist/auth/signing-key/list/0.1/payload.js +289 -0
  17. package/dist/auth/signing-key/list/0.1/payload.js.map +1 -0
  18. package/dist/auth/signing-key/revoke/0.1/payload.d.ts +292 -0
  19. package/dist/auth/signing-key/revoke/0.1/payload.d.ts.map +1 -0
  20. package/dist/auth/signing-key/revoke/0.1/payload.js +167 -0
  21. package/dist/auth/signing-key/revoke/0.1/payload.js.map +1 -0
  22. package/dist/index.d.ts +39 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +39 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/vta/contexts/update-did/1.1/payload.d.ts +388 -0
  27. package/dist/vta/contexts/update-did/1.1/payload.d.ts.map +1 -0
  28. package/dist/vta/contexts/update-did/1.1/payload.js +227 -0
  29. package/dist/vta/contexts/update-did/1.1/payload.js.map +1 -0
  30. package/dist/vtc/_shared/0.1/community-presentation.d.ts +16 -0
  31. package/dist/vtc/_shared/0.1/community-presentation.d.ts.map +1 -0
  32. package/dist/vtc/_shared/0.1/community-presentation.js +6 -0
  33. package/dist/vtc/_shared/0.1/community-presentation.js.map +1 -0
  34. package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts +16 -0
  35. package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts.map +1 -0
  36. package/dist/vtc/_shared/0.1/relationship-lifecycle.js +6 -0
  37. package/dist/vtc/_shared/0.1/relationship-lifecycle.js.map +1 -0
  38. package/dist/vtc/_shared/0.1/schema-registry.d.ts +16 -0
  39. package/dist/vtc/_shared/0.1/schema-registry.d.ts.map +1 -0
  40. package/dist/vtc/_shared/0.1/schema-registry.js +6 -0
  41. package/dist/vtc/_shared/0.1/schema-registry.js.map +1 -0
  42. package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts +16 -0
  43. package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts.map +1 -0
  44. package/dist/vtc/_shared/0.1/vetting-auto-grant.js +6 -0
  45. package/dist/vtc/_shared/0.1/vetting-auto-grant.js.map +1 -0
  46. package/dist/vtc/_shared/0.1/website-transfer.d.ts +16 -0
  47. package/dist/vtc/_shared/0.1/website-transfer.d.ts.map +1 -0
  48. package/dist/vtc/_shared/0.1/website-transfer.js +6 -0
  49. package/dist/vtc/_shared/0.1/website-transfer.js.map +1 -0
  50. package/dist/vtc/community/branding/show/0.1/payload.d.ts +319 -0
  51. package/dist/vtc/community/branding/show/0.1/payload.d.ts.map +1 -0
  52. package/dist/vtc/community/branding/show/0.1/payload.js +179 -0
  53. package/dist/vtc/community/branding/show/0.1/payload.js.map +1 -0
  54. package/dist/vtc/community/branding/update/0.1/payload.d.ts +328 -0
  55. package/dist/vtc/community/branding/update/0.1/payload.d.ts.map +1 -0
  56. package/dist/vtc/community/branding/update/0.1/payload.js +185 -0
  57. package/dist/vtc/community/branding/update/0.1/payload.js.map +1 -0
  58. package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts +267 -0
  59. package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts.map +1 -0
  60. package/dist/vtc/community/join-discovery/show/0.1/payload.js +157 -0
  61. package/dist/vtc/community/join-discovery/show/0.1/payload.js.map +1 -0
  62. package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts +276 -0
  63. package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts.map +1 -0
  64. package/dist/vtc/community/join-discovery/update/0.1/payload.js +163 -0
  65. package/dist/vtc/community/join-discovery/update/0.1/payload.js.map +1 -0
  66. package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts +339 -0
  67. package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts.map +1 -0
  68. package/dist/vtc/community/requested-attributes/show/0.1/payload.js +193 -0
  69. package/dist/vtc/community/requested-attributes/show/0.1/payload.js.map +1 -0
  70. package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts +348 -0
  71. package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts.map +1 -0
  72. package/dist/vtc/community/requested-attributes/update/0.1/payload.js +199 -0
  73. package/dist/vtc/community/requested-attributes/update/0.1/payload.js.map +1 -0
  74. package/dist/vtc/join-requests/query/0.1/payload.d.ts +412 -0
  75. package/dist/vtc/join-requests/query/0.1/payload.d.ts.map +1 -0
  76. package/dist/vtc/join-requests/query/0.1/payload.js +228 -0
  77. package/dist/vtc/join-requests/query/0.1/payload.js.map +1 -0
  78. package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts +1016 -0
  79. package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts.map +1 -0
  80. package/dist/vtc/join-requests/vetting/show/0.1/payload.js +509 -0
  81. package/dist/vtc/join-requests/vetting/show/0.1/payload.js.map +1 -0
  82. package/dist/vtc/relationships/restore/0.1/payload.d.ts +462 -0
  83. package/dist/vtc/relationships/restore/0.1/payload.d.ts.map +1 -0
  84. package/dist/vtc/relationships/restore/0.1/payload.js +270 -0
  85. package/dist/vtc/relationships/restore/0.1/payload.js.map +1 -0
  86. package/dist/vtc/relationships/suspend/0.1/payload.d.ts +462 -0
  87. package/dist/vtc/relationships/suspend/0.1/payload.d.ts.map +1 -0
  88. package/dist/vtc/relationships/suspend/0.1/payload.js +270 -0
  89. package/dist/vtc/relationships/suspend/0.1/payload.js.map +1 -0
  90. package/dist/vtc/rooms/list/0.1/payload.d.ts +653 -0
  91. package/dist/vtc/rooms/list/0.1/payload.d.ts.map +1 -0
  92. package/dist/vtc/rooms/list/0.1/payload.js +360 -0
  93. package/dist/vtc/rooms/list/0.1/payload.js.map +1 -0
  94. package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts +240 -0
  95. package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts.map +1 -0
  96. package/dist/vtc/schemas/accepts/delete/0.1/payload.js +141 -0
  97. package/dist/vtc/schemas/accepts/delete/0.1/payload.js.map +1 -0
  98. package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts +1214 -0
  99. package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts.map +1 -0
  100. package/dist/vtc/schemas/accepts/list/0.1/payload.js +681 -0
  101. package/dist/vtc/schemas/accepts/list/0.1/payload.js.map +1 -0
  102. package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts +1165 -0
  103. package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts.map +1 -0
  104. package/dist/vtc/schemas/accepts/register/0.1/payload.js +665 -0
  105. package/dist/vtc/schemas/accepts/register/0.1/payload.js.map +1 -0
  106. package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts +1144 -0
  107. package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts.map +1 -0
  108. package/dist/vtc/schemas/accepts/show/0.1/payload.js +655 -0
  109. package/dist/vtc/schemas/accepts/show/0.1/payload.js.map +1 -0
  110. package/dist/vtc/schemas/delete/0.1/payload.d.ts +240 -0
  111. package/dist/vtc/schemas/delete/0.1/payload.d.ts.map +1 -0
  112. package/dist/vtc/schemas/delete/0.1/payload.js +141 -0
  113. package/dist/vtc/schemas/delete/0.1/payload.js.map +1 -0
  114. package/dist/vtc/schemas/list/0.1/payload.d.ts +541 -0
  115. package/dist/vtc/schemas/list/0.1/payload.d.ts.map +1 -0
  116. package/dist/vtc/schemas/list/0.1/payload.js +300 -0
  117. package/dist/vtc/schemas/list/0.1/payload.js.map +1 -0
  118. package/dist/vtc/schemas/register/0.1/payload.d.ts +512 -0
  119. package/dist/vtc/schemas/register/0.1/payload.d.ts.map +1 -0
  120. package/dist/vtc/schemas/register/0.1/payload.js +292 -0
  121. package/dist/vtc/schemas/register/0.1/payload.js.map +1 -0
  122. package/dist/vtc/schemas/show/0.1/payload.d.ts +484 -0
  123. package/dist/vtc/schemas/show/0.1/payload.d.ts.map +1 -0
  124. package/dist/vtc/schemas/show/0.1/payload.js +279 -0
  125. package/dist/vtc/schemas/show/0.1/payload.js.map +1 -0
  126. package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts +463 -0
  127. package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts.map +1 -0
  128. package/dist/vtc/vetting/auto-grant/show/0.1/payload.js +269 -0
  129. package/dist/vtc/vetting/auto-grant/show/0.1/payload.js.map +1 -0
  130. package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts +491 -0
  131. package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts.map +1 -0
  132. package/dist/vtc/vetting/auto-grant/update/0.1/payload.js +282 -0
  133. package/dist/vtc/vetting/auto-grant/update/0.1/payload.js.map +1 -0
  134. package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts +608 -0
  135. package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts.map +1 -0
  136. package/dist/vtc/vetting/revocations/list/0.1/payload.js +332 -0
  137. package/dist/vtc/vetting/revocations/list/0.1/payload.js.map +1 -0
  138. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts +992 -0
  139. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts.map +1 -0
  140. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js +461 -0
  141. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js.map +1 -0
  142. package/dist/vtc/website/deploy/0.1/payload.d.ts +369 -0
  143. package/dist/vtc/website/deploy/0.1/payload.d.ts.map +1 -0
  144. package/dist/vtc/website/deploy/0.1/payload.js +213 -0
  145. package/dist/vtc/website/deploy/0.1/payload.js.map +1 -0
  146. package/dist/vtc/website/files/show/0.1/payload.d.ts +455 -0
  147. package/dist/vtc/website/files/show/0.1/payload.d.ts.map +1 -0
  148. package/dist/vtc/website/files/show/0.1/payload.js +247 -0
  149. package/dist/vtc/website/files/show/0.1/payload.js.map +1 -0
  150. package/dist/vtc/website/upload/abort/0.1/payload.d.ts +256 -0
  151. package/dist/vtc/website/upload/abort/0.1/payload.d.ts.map +1 -0
  152. package/dist/vtc/website/upload/abort/0.1/payload.js +149 -0
  153. package/dist/vtc/website/upload/abort/0.1/payload.js.map +1 -0
  154. package/dist/vtc/website/upload/begin/0.1/payload.d.ts +658 -0
  155. package/dist/vtc/website/upload/begin/0.1/payload.d.ts.map +1 -0
  156. package/dist/vtc/website/upload/begin/0.1/payload.js +375 -0
  157. package/dist/vtc/website/upload/begin/0.1/payload.js.map +1 -0
  158. package/dist/vtc/website/upload/chunk/0.1/payload.d.ts +447 -0
  159. package/dist/vtc/website/upload/chunk/0.1/payload.d.ts.map +1 -0
  160. package/dist/vtc/website/upload/chunk/0.1/payload.js +253 -0
  161. package/dist/vtc/website/upload/chunk/0.1/payload.js.map +1 -0
  162. package/dist/vtc/website/upload/commit/0.1/payload.d.ts +603 -0
  163. package/dist/vtc/website/upload/commit/0.1/payload.d.ts.map +1 -0
  164. package/dist/vtc/website/upload/commit/0.1/payload.js +337 -0
  165. package/dist/vtc/website/upload/commit/0.1/payload.js.map +1 -0
  166. package/package.json +1 -1
  167. package/src/_framework/0.4/framework.ts +1 -1
  168. package/src/_shared/components.ts +371 -0
  169. package/src/auth/_shared/0.1/signing-key.ts +17 -0
  170. package/src/auth/signing-key/enroll/0.1/payload.ts +349 -0
  171. package/src/auth/signing-key/list/0.1/payload.ts +323 -0
  172. package/src/auth/signing-key/revoke/0.1/payload.ts +204 -0
  173. package/src/index.ts +39 -0
  174. package/src/vta/contexts/update-did/1.1/payload.ts +256 -0
  175. package/src/vtc/_shared/0.1/community-presentation.ts +17 -0
  176. package/src/vtc/_shared/0.1/relationship-lifecycle.ts +17 -0
  177. package/src/vtc/_shared/0.1/schema-registry.ts +17 -0
  178. package/src/vtc/_shared/0.1/vetting-auto-grant.ts +17 -0
  179. package/src/vtc/_shared/0.1/website-transfer.ts +17 -0
  180. package/src/vtc/community/branding/show/0.1/payload.ts +207 -0
  181. package/src/vtc/community/branding/update/0.1/payload.ts +214 -0
  182. package/src/vtc/community/join-discovery/show/0.1/payload.ts +185 -0
  183. package/src/vtc/community/join-discovery/update/0.1/payload.ts +192 -0
  184. package/src/vtc/community/requested-attributes/show/0.1/payload.ts +221 -0
  185. package/src/vtc/community/requested-attributes/update/0.1/payload.ts +228 -0
  186. package/src/vtc/join-requests/query/0.1/payload.ts +285 -0
  187. package/src/vtc/join-requests/vetting/show/0.1/payload.ts +740 -0
  188. package/src/vtc/relationships/restore/0.1/payload.ts +307 -0
  189. package/src/vtc/relationships/suspend/0.1/payload.ts +307 -0
  190. package/src/vtc/rooms/list/0.1/payload.ts +449 -0
  191. package/src/vtc/schemas/accepts/delete/0.1/payload.ts +170 -0
  192. package/src/vtc/schemas/accepts/list/0.1/payload.ts +724 -0
  193. package/src/vtc/schemas/accepts/register/0.1/payload.ts +697 -0
  194. package/src/vtc/schemas/accepts/show/0.1/payload.ts +684 -0
  195. package/src/vtc/schemas/delete/0.1/payload.ts +170 -0
  196. package/src/vtc/schemas/list/0.1/payload.ts +344 -0
  197. package/src/vtc/schemas/register/0.1/payload.ts +325 -0
  198. package/src/vtc/schemas/show/0.1/payload.ts +308 -0
  199. package/src/vtc/vetting/auto-grant/show/0.1/payload.ts +297 -0
  200. package/src/vtc/vetting/auto-grant/update/0.1/payload.ts +316 -0
  201. package/src/vtc/vetting/revocations/list/0.1/payload.ts +416 -0
  202. package/src/vtc/vetting/vetters/grants/list/0.1/payload.ts +700 -0
  203. package/src/vtc/website/deploy/0.1/payload.ts +255 -0
  204. package/src/vtc/website/files/show/0.1/payload.ts +303 -0
  205. package/src/vtc/website/upload/abort/0.1/payload.ts +182 -0
  206. package/src/vtc/website/upload/begin/0.1/payload.ts +408 -0
  207. package/src/vtc/website/upload/chunk/0.1/payload.ts +295 -0
  208. package/src/vtc/website/upload/commit/0.1/payload.ts +385 -0
@@ -0,0 +1,740 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/join-requests/vetting/show/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { DigestMultibase, Ext, VettingMethod, VettingRelationship } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * An administrator reads the vetting facts one join request was decided on. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCJoinRequestsVettingShowPayload {
13
+ /**
14
+ * The join request, as vtc/join-requests/list returns it.
15
+ */
16
+ id: string;
17
+ ext?: Ext;
18
+ }
19
+ export interface VTCJoinRequestsVettingShowResponsePayload {
20
+ /**
21
+ * Echoed.
22
+ */
23
+ requestId: string;
24
+ vetting?: VettingFacts;
25
+ ext?: Ext;
26
+ }
27
+ /**
28
+ * What the community established about a request's vetting evidence when it decided — the join policy's vetting input, in lowerCamelCase.
29
+ */
30
+ export interface VettingFacts {
31
+ /**
32
+ * The Accepts criterion whose requirements were applied.
33
+ */
34
+ criterionId: string;
35
+ requirementsDigest: DigestMultibase;
36
+ /**
37
+ * The applicant named the same `requirementsDigest` — they applied under the version of the requirements that was applied.
38
+ */
39
+ applicantDigestMatches: boolean;
40
+ /**
41
+ * @maxItems 64
42
+ */
43
+ statements: VettingStatementFacts[];
44
+ /**
45
+ * Distinct eligible vetters counted, each once however many DIDs they hold.
46
+ */
47
+ distinctCountedVetters: number;
48
+ /**
49
+ * Counted statements by method.
50
+ */
51
+ byMethod: {
52
+ [k: string]: number | undefined;
53
+ };
54
+ /**
55
+ * Every counted statement carries the same identity commitment.
56
+ */
57
+ commitmentsConsistent: boolean;
58
+ /**
59
+ * No declared-relationship cap was exceeded.
60
+ */
61
+ independenceOk: boolean;
62
+ /**
63
+ * The requirements demanded an invitation.
64
+ */
65
+ invitationRequired: boolean;
66
+ /**
67
+ * Count, method floors, consistency and independence all held.
68
+ */
69
+ satisfied: boolean;
70
+ /**
71
+ * What was still missing, in the `vetting:*` grammar. Empty when `satisfied`.
72
+ *
73
+ * @maxItems 16
74
+ */
75
+ needs:
76
+ | []
77
+ | [string]
78
+ | [string, string]
79
+ | [string, string, string]
80
+ | [string, string, string, string]
81
+ | [string, string, string, string, string]
82
+ | [string, string, string, string, string, string]
83
+ | [string, string, string, string, string, string, string]
84
+ | [string, string, string, string, string, string, string, string]
85
+ | [string, string, string, string, string, string, string, string, string]
86
+ | [string, string, string, string, string, string, string, string, string, string]
87
+ | [string, string, string, string, string, string, string, string, string, string, string]
88
+ | [string, string, string, string, string, string, string, string, string, string, string, string]
89
+ | [string, string, string, string, string, string, string, string, string, string, string, string, string]
90
+ | [string, string, string, string, string, string, string, string, string, string, string, string, string, string]
91
+ | [
92
+ string,
93
+ string,
94
+ string,
95
+ string,
96
+ string,
97
+ string,
98
+ string,
99
+ string,
100
+ string,
101
+ string,
102
+ string,
103
+ string,
104
+ string,
105
+ string,
106
+ string
107
+ ]
108
+ | [
109
+ string,
110
+ string,
111
+ string,
112
+ string,
113
+ string,
114
+ string,
115
+ string,
116
+ string,
117
+ string,
118
+ string,
119
+ string,
120
+ string,
121
+ string,
122
+ string,
123
+ string,
124
+ string
125
+ ];
126
+ /**
127
+ * When the facts were recorded.
128
+ */
129
+ recordedAt: string;
130
+ }
131
+ /**
132
+ * One identity-vetting statement the applicant's presentation carried, as the community saw it at the decision — plus whether its vetter has withdrawn it since.
133
+ */
134
+ export interface VettingStatementFacts {
135
+ /**
136
+ * The statement's `id`, when it had one.
137
+ */
138
+ id?: string;
139
+ /**
140
+ * The vetter who issued it, when it could be read.
141
+ */
142
+ issuer?: string;
143
+ /**
144
+ * Its proof, type, validity window and body verified.
145
+ */
146
+ verified: boolean;
147
+ /**
148
+ * Its issuer was an eligible vetter at the decision.
149
+ */
150
+ eligible: boolean;
151
+ /**
152
+ * Withdrawn by its vetter before the decision.
153
+ */
154
+ revoked: boolean;
155
+ /**
156
+ * Withdrawn by its vetter now — after the decision, when `revoked` is false. Read live, not recorded.
157
+ */
158
+ withdrawnNow: boolean;
159
+ method?: VettingMethod;
160
+ declaredRelationship?: VettingRelationship;
161
+ /**
162
+ * It counted toward the requirements.
163
+ */
164
+ counted: boolean;
165
+ /**
166
+ * Why it did not count, as machine codes in the `vetting:*` grammar the join policy reads. Empty when it counted.
167
+ *
168
+ * @maxItems 16
169
+ */
170
+ failures:
171
+ | []
172
+ | [string]
173
+ | [string, string]
174
+ | [string, string, string]
175
+ | [string, string, string, string]
176
+ | [string, string, string, string, string]
177
+ | [string, string, string, string, string, string]
178
+ | [string, string, string, string, string, string, string]
179
+ | [string, string, string, string, string, string, string, string]
180
+ | [string, string, string, string, string, string, string, string, string]
181
+ | [string, string, string, string, string, string, string, string, string, string]
182
+ | [string, string, string, string, string, string, string, string, string, string, string]
183
+ | [string, string, string, string, string, string, string, string, string, string, string, string]
184
+ | [string, string, string, string, string, string, string, string, string, string, string, string, string]
185
+ | [string, string, string, string, string, string, string, string, string, string, string, string, string, string]
186
+ | [
187
+ string,
188
+ string,
189
+ string,
190
+ string,
191
+ string,
192
+ string,
193
+ string,
194
+ string,
195
+ string,
196
+ string,
197
+ string,
198
+ string,
199
+ string,
200
+ string,
201
+ string
202
+ ]
203
+ | [
204
+ string,
205
+ string,
206
+ string,
207
+ string,
208
+ string,
209
+ string,
210
+ string,
211
+ string,
212
+ string,
213
+ string,
214
+ string,
215
+ string,
216
+ string,
217
+ string,
218
+ string,
219
+ string
220
+ ];
221
+ }
222
+
223
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
224
+ export type { DigestMultibase, Ext, VettingMethod, VettingRelationship };
225
+
226
+ /** Trust Task type URI. */
227
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/join-requests/vetting/show/0.1" as const;
228
+
229
+ /** Stable alias for this specification's request payload shape. */
230
+ export type Payload = VTCJoinRequestsVettingShowPayload;
231
+
232
+ /** Trust Task response type URI (request type URI + "#response"). */
233
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/join-requests/vetting/show/0.1#response" as const;
234
+
235
+ /** Stable alias for this specification's success-response payload shape. */
236
+ export type Response = VTCJoinRequestsVettingShowResponsePayload;
237
+
238
+ /**
239
+ * This specification's payload schema, as a value.
240
+ *
241
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
242
+ * rather than only as a `.json` file because TypeScript types are erased
243
+ * at runtime: without a schema a consumer has nothing to validate, and
244
+ * every REQUIRED payload member is optional in practice. Cross-file
245
+ * `$ref`s are already inlined, so it needs no resolver.
246
+ */
247
+ export const PAYLOAD_SCHEMA = {
248
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
249
+ "$id": "https://trusttasks.org/spec/vtc/join-requests/vetting/show/0.1",
250
+ "title": "VTC Join Requests — Vetting — Show — payload",
251
+ "description": "An administrator reads the vetting facts one join request was decided on. The outer document members are owned by the framework — SPEC §6.3.",
252
+ "type": "object",
253
+ "additionalProperties": false,
254
+ "required": [
255
+ "id"
256
+ ],
257
+ "properties": {
258
+ "id": {
259
+ "type": "string",
260
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
261
+ "description": "The join request, as vtc/join-requests/list returns it."
262
+ },
263
+ "ext": {
264
+ "$ref": "#/$defs/Ext"
265
+ }
266
+ },
267
+ "$defs": {
268
+ "VettingStatementFacts": {
269
+ "title": "VettingStatementFacts",
270
+ "type": "object",
271
+ "additionalProperties": false,
272
+ "required": [
273
+ "verified",
274
+ "eligible",
275
+ "revoked",
276
+ "withdrawnNow",
277
+ "counted",
278
+ "failures"
279
+ ],
280
+ "description": "One identity-vetting statement the applicant's presentation carried, as the community saw it at the decision — plus whether its vetter has withdrawn it since.",
281
+ "properties": {
282
+ "id": {
283
+ "type": "string",
284
+ "minLength": 1,
285
+ "maxLength": 2048,
286
+ "description": "The statement's `id`, when it had one."
287
+ },
288
+ "issuer": {
289
+ "type": "string",
290
+ "pattern": "^did:",
291
+ "maxLength": 2048,
292
+ "description": "The vetter who issued it, when it could be read."
293
+ },
294
+ "verified": {
295
+ "type": "boolean",
296
+ "description": "Its proof, type, validity window and body verified."
297
+ },
298
+ "eligible": {
299
+ "type": "boolean",
300
+ "description": "Its issuer was an eligible vetter at the decision."
301
+ },
302
+ "revoked": {
303
+ "type": "boolean",
304
+ "description": "Withdrawn by its vetter before the decision."
305
+ },
306
+ "withdrawnNow": {
307
+ "type": "boolean",
308
+ "description": "Withdrawn by its vetter now — after the decision, when `revoked` is false. Read live, not recorded."
309
+ },
310
+ "method": {
311
+ "$ref": "#/$defs/VettingMethod"
312
+ },
313
+ "declaredRelationship": {
314
+ "$ref": "#/$defs/VettingRelationship"
315
+ },
316
+ "counted": {
317
+ "type": "boolean",
318
+ "description": "It counted toward the requirements."
319
+ },
320
+ "failures": {
321
+ "type": "array",
322
+ "maxItems": 16,
323
+ "items": {
324
+ "type": "string",
325
+ "minLength": 1,
326
+ "maxLength": 128
327
+ },
328
+ "description": "Why it did not count, as machine codes in the `vetting:*` grammar the join policy reads. Empty when it counted."
329
+ }
330
+ }
331
+ },
332
+ "VettingFacts": {
333
+ "title": "VettingFacts",
334
+ "type": "object",
335
+ "additionalProperties": false,
336
+ "required": [
337
+ "criterionId",
338
+ "requirementsDigest",
339
+ "applicantDigestMatches",
340
+ "statements",
341
+ "distinctCountedVetters",
342
+ "byMethod",
343
+ "commitmentsConsistent",
344
+ "independenceOk",
345
+ "invitationRequired",
346
+ "satisfied",
347
+ "needs",
348
+ "recordedAt"
349
+ ],
350
+ "description": "What the community established about a request's vetting evidence when it decided — the join policy's vetting input, in lowerCamelCase.",
351
+ "properties": {
352
+ "criterionId": {
353
+ "type": "string",
354
+ "minLength": 1,
355
+ "maxLength": 128,
356
+ "description": "The Accepts criterion whose requirements were applied."
357
+ },
358
+ "requirementsDigest": {
359
+ "$ref": "#/$defs/DigestMultibase"
360
+ },
361
+ "applicantDigestMatches": {
362
+ "type": "boolean",
363
+ "description": "The applicant named the same `requirementsDigest` — they applied under the version of the requirements that was applied."
364
+ },
365
+ "statements": {
366
+ "type": "array",
367
+ "maxItems": 64,
368
+ "items": {
369
+ "$ref": "#/$defs/VettingStatementFacts"
370
+ }
371
+ },
372
+ "distinctCountedVetters": {
373
+ "type": "integer",
374
+ "minimum": 0,
375
+ "description": "Distinct eligible vetters counted, each once however many DIDs they hold."
376
+ },
377
+ "byMethod": {
378
+ "type": "object",
379
+ "propertyNames": {
380
+ "$ref": "#/$defs/VettingMethod"
381
+ },
382
+ "additionalProperties": {
383
+ "type": "integer",
384
+ "minimum": 0
385
+ },
386
+ "description": "Counted statements by method."
387
+ },
388
+ "commitmentsConsistent": {
389
+ "type": "boolean",
390
+ "description": "Every counted statement carries the same identity commitment."
391
+ },
392
+ "independenceOk": {
393
+ "type": "boolean",
394
+ "description": "No declared-relationship cap was exceeded."
395
+ },
396
+ "invitationRequired": {
397
+ "type": "boolean",
398
+ "description": "The requirements demanded an invitation."
399
+ },
400
+ "satisfied": {
401
+ "type": "boolean",
402
+ "description": "Count, method floors, consistency and independence all held."
403
+ },
404
+ "needs": {
405
+ "type": "array",
406
+ "maxItems": 16,
407
+ "items": {
408
+ "type": "string",
409
+ "minLength": 1,
410
+ "maxLength": 128
411
+ },
412
+ "description": "What was still missing, in the `vetting:*` grammar. Empty when `satisfied`."
413
+ },
414
+ "recordedAt": {
415
+ "type": "string",
416
+ "format": "date-time",
417
+ "description": "When the facts were recorded."
418
+ }
419
+ }
420
+ },
421
+ "Response": {
422
+ "$anchor": "response",
423
+ "title": "VTC Join Requests — Vetting — Show — response payload",
424
+ "type": "object",
425
+ "additionalProperties": false,
426
+ "required": [
427
+ "requestId"
428
+ ],
429
+ "properties": {
430
+ "requestId": {
431
+ "type": "string",
432
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
433
+ "description": "Echoed."
434
+ },
435
+ "vetting": {
436
+ "$ref": "#/$defs/VettingFacts"
437
+ },
438
+ "ext": {
439
+ "$ref": "#/$defs/Ext"
440
+ }
441
+ }
442
+ },
443
+ "Ext": {
444
+ "title": "Ext",
445
+ "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.",
446
+ "type": "object",
447
+ "minProperties": 1,
448
+ "additionalProperties": true,
449
+ "propertyNames": {
450
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
451
+ }
452
+ },
453
+ "VettingMethod": {
454
+ "title": "VettingMethod",
455
+ "type": "string",
456
+ "enum": [
457
+ "inPerson",
458
+ "video",
459
+ "priorAcquaintance"
460
+ ],
461
+ "description": "How the vetter established that the person they checked is the person controlling the applicant's DID. `inPerson` — both people were physically together. `video` — a live, two-way video call. `priorAcquaintance` — the vetter has known or worked with this person over a period, and attests from that knowledge rather than from a document. A method is a description of what happened, not an assurance level: which methods count, and how many of each, is community policy."
462
+ },
463
+ "DigestMultibase": {
464
+ "title": "DigestMultibase",
465
+ "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`.",
466
+ "type": "string",
467
+ "minLength": 16,
468
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
469
+ "examples": [
470
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
471
+ ]
472
+ },
473
+ "VettingRelationship": {
474
+ "title": "VettingRelationship",
475
+ "type": "string",
476
+ "enum": [
477
+ "none",
478
+ "communityColleague",
479
+ "sameEmployer",
480
+ "family",
481
+ "otherPersonal"
482
+ ],
483
+ "description": "The vetter's own declaration of how they relate to the applicant. Declared, not verified: it exists so community policy can cap how much evidence comes from people close to the applicant, and a false declaration is the vetter's attributable act."
484
+ }
485
+ }
486
+ } as const;
487
+
488
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
489
+ export const RESPONSE_PAYLOAD_SCHEMA = {
490
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
491
+ "$ref": "#/$defs/Response",
492
+ "$defs": {
493
+ "VettingStatementFacts": {
494
+ "title": "VettingStatementFacts",
495
+ "type": "object",
496
+ "additionalProperties": false,
497
+ "required": [
498
+ "verified",
499
+ "eligible",
500
+ "revoked",
501
+ "withdrawnNow",
502
+ "counted",
503
+ "failures"
504
+ ],
505
+ "description": "One identity-vetting statement the applicant's presentation carried, as the community saw it at the decision — plus whether its vetter has withdrawn it since.",
506
+ "properties": {
507
+ "id": {
508
+ "type": "string",
509
+ "minLength": 1,
510
+ "maxLength": 2048,
511
+ "description": "The statement's `id`, when it had one."
512
+ },
513
+ "issuer": {
514
+ "type": "string",
515
+ "pattern": "^did:",
516
+ "maxLength": 2048,
517
+ "description": "The vetter who issued it, when it could be read."
518
+ },
519
+ "verified": {
520
+ "type": "boolean",
521
+ "description": "Its proof, type, validity window and body verified."
522
+ },
523
+ "eligible": {
524
+ "type": "boolean",
525
+ "description": "Its issuer was an eligible vetter at the decision."
526
+ },
527
+ "revoked": {
528
+ "type": "boolean",
529
+ "description": "Withdrawn by its vetter before the decision."
530
+ },
531
+ "withdrawnNow": {
532
+ "type": "boolean",
533
+ "description": "Withdrawn by its vetter now — after the decision, when `revoked` is false. Read live, not recorded."
534
+ },
535
+ "method": {
536
+ "$ref": "#/$defs/VettingMethod"
537
+ },
538
+ "declaredRelationship": {
539
+ "$ref": "#/$defs/VettingRelationship"
540
+ },
541
+ "counted": {
542
+ "type": "boolean",
543
+ "description": "It counted toward the requirements."
544
+ },
545
+ "failures": {
546
+ "type": "array",
547
+ "maxItems": 16,
548
+ "items": {
549
+ "type": "string",
550
+ "minLength": 1,
551
+ "maxLength": 128
552
+ },
553
+ "description": "Why it did not count, as machine codes in the `vetting:*` grammar the join policy reads. Empty when it counted."
554
+ }
555
+ }
556
+ },
557
+ "VettingFacts": {
558
+ "title": "VettingFacts",
559
+ "type": "object",
560
+ "additionalProperties": false,
561
+ "required": [
562
+ "criterionId",
563
+ "requirementsDigest",
564
+ "applicantDigestMatches",
565
+ "statements",
566
+ "distinctCountedVetters",
567
+ "byMethod",
568
+ "commitmentsConsistent",
569
+ "independenceOk",
570
+ "invitationRequired",
571
+ "satisfied",
572
+ "needs",
573
+ "recordedAt"
574
+ ],
575
+ "description": "What the community established about a request's vetting evidence when it decided — the join policy's vetting input, in lowerCamelCase.",
576
+ "properties": {
577
+ "criterionId": {
578
+ "type": "string",
579
+ "minLength": 1,
580
+ "maxLength": 128,
581
+ "description": "The Accepts criterion whose requirements were applied."
582
+ },
583
+ "requirementsDigest": {
584
+ "$ref": "#/$defs/DigestMultibase"
585
+ },
586
+ "applicantDigestMatches": {
587
+ "type": "boolean",
588
+ "description": "The applicant named the same `requirementsDigest` — they applied under the version of the requirements that was applied."
589
+ },
590
+ "statements": {
591
+ "type": "array",
592
+ "maxItems": 64,
593
+ "items": {
594
+ "$ref": "#/$defs/VettingStatementFacts"
595
+ }
596
+ },
597
+ "distinctCountedVetters": {
598
+ "type": "integer",
599
+ "minimum": 0,
600
+ "description": "Distinct eligible vetters counted, each once however many DIDs they hold."
601
+ },
602
+ "byMethod": {
603
+ "type": "object",
604
+ "propertyNames": {
605
+ "$ref": "#/$defs/VettingMethod"
606
+ },
607
+ "additionalProperties": {
608
+ "type": "integer",
609
+ "minimum": 0
610
+ },
611
+ "description": "Counted statements by method."
612
+ },
613
+ "commitmentsConsistent": {
614
+ "type": "boolean",
615
+ "description": "Every counted statement carries the same identity commitment."
616
+ },
617
+ "independenceOk": {
618
+ "type": "boolean",
619
+ "description": "No declared-relationship cap was exceeded."
620
+ },
621
+ "invitationRequired": {
622
+ "type": "boolean",
623
+ "description": "The requirements demanded an invitation."
624
+ },
625
+ "satisfied": {
626
+ "type": "boolean",
627
+ "description": "Count, method floors, consistency and independence all held."
628
+ },
629
+ "needs": {
630
+ "type": "array",
631
+ "maxItems": 16,
632
+ "items": {
633
+ "type": "string",
634
+ "minLength": 1,
635
+ "maxLength": 128
636
+ },
637
+ "description": "What was still missing, in the `vetting:*` grammar. Empty when `satisfied`."
638
+ },
639
+ "recordedAt": {
640
+ "type": "string",
641
+ "format": "date-time",
642
+ "description": "When the facts were recorded."
643
+ }
644
+ }
645
+ },
646
+ "Response": {
647
+ "$anchor": "response",
648
+ "title": "VTC Join Requests — Vetting — Show — response payload",
649
+ "type": "object",
650
+ "additionalProperties": false,
651
+ "required": [
652
+ "requestId"
653
+ ],
654
+ "properties": {
655
+ "requestId": {
656
+ "type": "string",
657
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
658
+ "description": "Echoed."
659
+ },
660
+ "vetting": {
661
+ "$ref": "#/$defs/VettingFacts"
662
+ },
663
+ "ext": {
664
+ "$ref": "#/$defs/Ext"
665
+ }
666
+ }
667
+ },
668
+ "Ext": {
669
+ "title": "Ext",
670
+ "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.",
671
+ "type": "object",
672
+ "minProperties": 1,
673
+ "additionalProperties": true,
674
+ "propertyNames": {
675
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
676
+ }
677
+ },
678
+ "VettingMethod": {
679
+ "title": "VettingMethod",
680
+ "type": "string",
681
+ "enum": [
682
+ "inPerson",
683
+ "video",
684
+ "priorAcquaintance"
685
+ ],
686
+ "description": "How the vetter established that the person they checked is the person controlling the applicant's DID. `inPerson` — both people were physically together. `video` — a live, two-way video call. `priorAcquaintance` — the vetter has known or worked with this person over a period, and attests from that knowledge rather than from a document. A method is a description of what happened, not an assurance level: which methods count, and how many of each, is community policy."
687
+ },
688
+ "DigestMultibase": {
689
+ "title": "DigestMultibase",
690
+ "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`.",
691
+ "type": "string",
692
+ "minLength": 16,
693
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
694
+ "examples": [
695
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
696
+ ]
697
+ },
698
+ "VettingRelationship": {
699
+ "title": "VettingRelationship",
700
+ "type": "string",
701
+ "enum": [
702
+ "none",
703
+ "communityColleague",
704
+ "sameEmployer",
705
+ "family",
706
+ "otherPersonal"
707
+ ],
708
+ "description": "The vetter's own declaration of how they relate to the applicant. Declared, not verified: it exists so community policy can cap how much evidence comes from people close to the applicant, and a false declaration is the vetter's attributable act."
709
+ }
710
+ }
711
+ } as const;
712
+
713
+ /**
714
+ * SPEC.md §7.2 policy for the request variant, from this specification's
715
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
716
+ * per-specification and cannot be derived from the document alone, and
717
+ * item 2 needs the schema this carries.
718
+ */
719
+ export const SPEC = {
720
+ typeUri: TYPE_URI,
721
+ isBearer: false,
722
+ isProofRequired: false,
723
+ isRecipientRequired: true,
724
+ isIssuedAtRequired: false,
725
+ payloadSchema: PAYLOAD_SCHEMA,
726
+ } as const;
727
+
728
+ /**
729
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
730
+ * tracks the *issuer* party's requirement because a response swaps the
731
+ * parties (§7.3 item 5).
732
+ */
733
+ export const RESPONSE_SPEC = {
734
+ typeUri: RESPONSE_TYPE_URI,
735
+ isBearer: false,
736
+ isProofRequired: false,
737
+ isRecipientRequired: true,
738
+ isIssuedAtRequired: false,
739
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
740
+ } as const;